3 # testURI - temporary wrapper script for .libs/testURI
4 # Generated by ltmain.sh - GNU libtool 1.4.2 (1.922.2.54 2001/09/11 03:33:37)
6 # The testURI program cannot be directly executed until all the libtool
7 # libraries that it depends on are installed.
9 # This wrapper script should never be moved out of the build directory.
10 # If it is, it will not operate correctly.
12 # Sed substitution that helps us do robust quoting. It backslashifies
13 # metacharacters that are still active within double-quoted strings.
15 sed_quote_subst
='s/\([\\`\\"$\\\\]\)/\\\1/g'
17 # The HP-UX ksh and POSIX shell print the target directory to stdout
19 if test "${CDPATH+set}" = set; then CDPATH
=:; export CDPATH
; fi
21 relink_command
="(cd /home/msivertson/p4client/swg/current/src/external/3rd/library/libxml; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; LD_LIBRARY_PATH=\":/usr/java/jre/bin:/usr/java/jre/bin/classic:/opt/app/oracle/product/8.1.7/lib\"; export LD_LIBRARY_PATH; PATH=\"/opt/app/teambuilder/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/java/jre/bin:/opt/app/oracle/product/8.1.7/bin:/home/msivertson/p4client/swg/current/tools:/usr/java/bin\"; export PATH; gcc -g -O2 -Wall -o \$progdir/\$file testURI.o ./.libs/libxml2.so -lz -lm -Wl,--rpath -Wl,/home/msivertson/p4client/swg/current/src/external/3rd/library/libxml/.libs -Wl,--rpath -Wl,/usr/local/lib)"
23 # This environment variable determines our operation mode.
24 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
25 # install mode needs the following variable:
26 notinst_deplibs
=' ./libxml2.la'
28 # When we are sourced in execute mode, $file and $echo are already set.
29 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
32 # Make sure echo works.
33 if test "X$1" = X--no-reexec
; then
34 # Discard the --no-reexec flag, and continue.
36 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
37 # Yippee, $echo works!
40 # Restart under the correct shell, and then maybe $echo will work.
41 exec /bin
/sh
"$0" --no-reexec ${1+"$@"}
45 # Find the directory that this script lives in.
46 thisdir
=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
47 test "x$thisdir" = "x$file" && thisdir
=.
49 # Follow symbolic links until we get to the real thisdir.
50 file=`ls -ld "$file" | sed -n 's/.*-> //p'`
51 while test -n "$file"; do
52 destdir
=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
54 # If there was a directory component, then change thisdir.
55 if test "x$destdir" != "x$file"; then
57 [\\/]* |
[A-Za-z
]:[\\/]*) thisdir
="$destdir" ;;
58 *) thisdir
="$thisdir/$destdir" ;;
62 file=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
63 file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
66 # Try to get the absolute directory name.
67 absdir
=`cd "$thisdir" && pwd`
68 test -n "$absdir" && thisdir
="$absdir"
71 progdir
="$thisdir/.libs"
73 if test ! -f "$progdir/$program" || \
74 { file=`ls -1dt "$progdir/$program" "$progdir/../$program" 2>/dev/null | sed 1q`; \
75 test "X$file" != "X$progdir/$program"; }; then
79 if test ! -d "$progdir"; then
82 rm -f "$progdir/$file"
85 # relink executable if necessary
86 if test -n "$relink_command"; then
87 if relink_command_output
=`eval $relink_command 2>&1`; then :
89 echo "$relink_command_output" >&2
90 rm -f "$progdir/$file"
95 mv -f "$progdir/$file" "$progdir/$program" 2>/dev
/null ||
96 { rm -f "$progdir/$program";
97 mv -f "$progdir/$file" "$progdir/$program"; }
98 rm -f "$progdir/$file"
101 if test -f "$progdir/$program"; then
102 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
103 # Run the actual program with our arguments.
105 # Export the path to the program.
106 PATH
="$progdir:$PATH"
109 exec $program ${1+"$@"}
111 $echo "$0: cannot exec $program ${1+"$@"}"
115 # The program doesn't exist.
116 $echo "$0: error: $progdir/$program does not exist" 1>&2
117 $echo "This script is just a wrapper for $program." 1>&2
118 echo "See the libtool documentation for more information." 1>&2