]> git.ozlabs.org Git - ppp.git/blob - pppd/plugins/radius/radiusclient/src/radexample-debug
Add these files, used with TDB.
[ppp.git] / pppd / plugins / radius / radiusclient / src / radexample-debug
1 #! /bin/sh
2
3 # radexample - temporary wrapper script for .libs/radexample
4 # Generated by ltmain.sh - GNU libtool 1.0
5 #
6 # The radexample program cannot be directly executed until all the libtool
7 # libraries that it depends on are installed.
8 #
9 # This wrapper script should never be moved out of `/home/dfs/Servpoet/radiusclient-0.3.1/src'.
10 # If it is, it will not operate correctly.
11
12 # This environment variable determines our operation mode.
13 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
14   # install mode needs the following variables:
15   link_against_libtool_libs=' ../lib/libradiusclient.la'
16   finalize_command='gcc -g -O2 -o .libs/radexampleT radexample.o -Wl,-rpath -Wl,/usr/lib -L/usr/lib -lradiusclient -lcrypt -lnsl'
17 else
18   # Find the directory that this script lives in.
19   thisdir=`echo $0 | sed 's%/[^/]*$%%'`
20   test "x$thisdir" = "x$0" && thisdir=.
21
22   # Try to get the absolute directory name.
23   absdir=`cd "$thisdir" && pwd`
24   test -n "$absdir" && thisdir="$absdir"
25
26   progdir="$thisdir/.libs"
27   program="radexample"
28
29   if test -f "$progdir/$program"; then
30     # Run the actual program with our arguments.
31     args=
32     for arg
33     do
34       # Quote arguments (to preserve shell metacharacters).
35       args="$args '$arg'"
36     done
37
38     # Export the path to the program.
39     PATH="$progdir:$PATH"
40     export PATH
41
42     # Add our own library path to LD_LIBRARY_PATH
43     LD_LIBRARY_PATH="$thisdir/../lib/.libs:$LD_LIBRARY_PATH"
44
45     # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
46     LD_LIBRARY_PATH=`echo $LD_LIBRARY_PATH | sed -e 's/:*$//'`
47
48     export LD_LIBRARY_PATH
49
50     eval "exec ddd ./.libs/$program $args"
51
52     echo "$0: cannot exec $program $args"
53     exit 1
54   else
55     # The program doesn't exist.
56     echo "$0: error: $progdir/$program does not exist" 1>&2
57     echo "This script is just a wrapper for $program." 1>&2
58     echo "See the libtool documentation for more information." 1>&2
59     exit 1
60   fi
61 fi