3 # mgmtd/mgmt_test_fe - temporary wrapper script for .libs/mgmt_test_fe
4 # Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-2
6 # The mgmtd/mgmt_test_fe 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.
14 sed_quote_subst
='s|\([`"$\\]\)|\\\1|g'
16 # Be Bourne compatible
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
27 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
28 DUALCASE
=1; export DUALCASE
# for MKS sh
30 # The HP-UX ksh and POSIX shell print the target directory to stdout
32 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
36 # This environment variable determines our operation mode.
37 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
38 # install mode needs the following variables:
39 generated_by_libtool_version
='2.4.6'
40 notinst_deplibs
=' lib/libfrr.la'
42 # When we are sourced in execute mode, $file and $ECHO are already set.
43 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
46 # A function that is used when there is no print builtin or printf.
49 eval 'cat <<_LTECHO_EOF
56 # Very basic option parsing. These options are (a) specific to
57 # the libtool wrapper, (b) are identical between the wrapper
58 # /script/ and the wrapper /executable/ that is used only on
59 # windows platforms, and (c) all begin with the string --lt-
60 # (application programs are unlikely to have options that match
63 # There are only two supported options: --lt-debug and
64 # --lt-dump-script. There is, deliberately, no --lt-help.
66 # The first argument to this parsing function should be the
67 # script's ./libtool value, followed by no.
69 func_parse_lt_options
()
76 --lt-debug) lt_option_debug
=1 ;;
78 lt_dump_D
=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%/[^/]*$%%'`
79 test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D
=.
80 lt_dump_F
=`$ECHO "X$lt_script_arg0" | sed -e 's/^X//' -e 's%^.*/%%'`
81 cat "$lt_dump_D/$lt_dump_F"
85 $ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
91 # Print the debug banner immediately:
92 if test -n "$lt_option_debug"; then
93 echo "mgmt_test_fe:mgmtd/mgmt_test_fe:$LINENO: libtool wrapper (GNU libtool) 2.4.6 Debian-2.4.6-2" 1>&2
97 # Used when --lt-debug. Prints its arguments to stdout
98 # (redirection is the responsibility of the caller)
104 $ECHO "mgmt_test_fe:mgmtd/mgmt_test_fe:$LINENO: newargv[$lt_dump_args_N]: $lt_arg"
105 lt_dump_args_N
=`expr $lt_dump_args_N + 1`
109 # Core function for launching the target application
110 func_exec_program_core
()
113 if test -n "$lt_option_debug"; then
114 $ECHO "mgmt_test_fe:mgmtd/mgmt_test_fe:$LINENO: newargv[0]: $progdir/$program" 1>&2
115 func_lt_dump_args
${1+"$@"} 1>&2
117 exec "$progdir/$program" ${1+"$@"}
119 $ECHO "$0: cannot exec $program $*" 1>&2
123 # A function to encapsulate launching the target application
124 # Strips options in the --lt-* namespace from $@ and
125 # launches target application with the remaining arguments.
134 *) set x
"$@" "$lt_wr_arg"; shift;;
139 func_exec_program_core
${1+"$@"}
143 func_parse_lt_options
"$0" ${1+"$@"}
145 # Find the directory that this script lives in.
146 thisdir
=`$ECHO "$file" | sed 's%/[^/]*$%%'`
147 test "x$thisdir" = "x$file" && thisdir
=.
149 # Follow symbolic links until we get to the real thisdir.
150 file=`ls -ld "$file" | sed -n 's/.*-> //p'`
151 while test -n "$file"; do
152 destdir
=`$ECHO "$file" | sed 's%/[^/]*$%%'`
154 # If there was a directory component, then change thisdir.
155 if test "x$destdir" != "x$file"; then
157 [\\/]* |
[A-Za-z
]:[\\/]*) thisdir
="$destdir" ;;
158 *) thisdir
="$thisdir/$destdir" ;;
162 file=`$ECHO "$file" | sed 's%^.*/%%'`
163 file=`ls -ld "$thisdir/$file" | sed -n 's/.*-> //p'`
166 # Usually 'no', except on cygwin/mingw when embedded into
168 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
=no
169 if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
170 # special case for '.'
171 if test "$thisdir" = "."; then
174 # remove .libs from thisdir
176 *[\\/].libs
) thisdir
=`$ECHO "$thisdir" | sed 's%[\\/][^\\/]*$%%'` ;;
181 # Try to get the absolute directory name.
182 absdir
=`cd "$thisdir" && pwd`
183 test -n "$absdir" && thisdir
="$absdir"
185 program
='mgmt_test_fe'
186 progdir
="$thisdir/.libs"
189 if test -f "$progdir/$program"; then
190 # Add our own library path to LD_LIBRARY_PATH
191 LD_LIBRARY_PATH
="/root/upstream_p1/lib/.libs:$LD_LIBRARY_PATH"
193 # Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
194 # The second colon is a workaround for a bug in BeOS R4 sed
195 LD_LIBRARY_PATH
=`$ECHO "$LD_LIBRARY_PATH" | sed 's/::*$//'`
197 export LD_LIBRARY_PATH
199 if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
200 # Run the actual program with our arguments.
201 func_exec_program
${1+"$@"}
204 # The program doesn't exist.
205 $ECHO "$0: error: '$progdir/$program' does not exist" 1>&2
206 $ECHO "This script is just a wrapper for $program." 1>&2
207 $ECHO "See the libtool documentation for more information." 1>&2