|
|
#! /bin/bash |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sed_quote_subst='s|\([`"$\\]\)|\\\1|g' |
|
|
|
|
|
|
|
|
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
|
|
emulate sh |
|
|
NULLCMD=: |
|
|
|
|
|
|
|
|
alias -g '${1+"$@"}'='"$@"' |
|
|
setopt NO_GLOB_SUBST |
|
|
else |
|
|
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
|
|
fi |
|
|
BIN_SH=xpg4; export BIN_SH |
|
|
DUALCASE=1; export DUALCASE |
|
|
|
|
|
|
|
|
|
|
|
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
|
|
|
|
|
relink_command="" |
|
|
|
|
|
|
|
|
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then |
|
|
|
|
|
generated_by_libtool_version='2.4.6' |
|
|
notinst_deplibs=' ../src/libcmph.la' |
|
|
else |
|
|
|
|
|
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then |
|
|
file="$0" |
|
|
|
|
|
|
|
|
func_fallback_echo () |
|
|
{ |
|
|
eval 'cat <<_LTECHO_EOF |
|
|
$1 |
|
|
_LTECHO_EOF' |
|
|
} |
|
|
ECHO="printf %s\\n" |
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lt_option_debug= |
|
|
func_parse_lt_options () |
|
|
{ |
|
|
lt_script_arg0=$0 |
|
|
shift |
|
|
for lt_opt |
|
|
do |
|
|
case "$lt_opt" in |
|
|
--lt-debug) lt_option_debug=1 ;; |
|
|
--lt-dump-script) |
|
|
lt_dump_D=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%/[^/]*$%%'` |
|
|
test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=. |
|
|
lt_dump_F=`$ECHO "X$lt_script_arg0" | /usr/bin/sed -e 's/^X//' -e 's%^.*/%%'` |
|
|
cat "$lt_dump_D/$lt_dump_F" |
|
|
exit 0 |
|
|
;; |
|
|
--lt-*) |
|
|
$ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2 |
|
|
exit 1 |
|
|
;; |
|
|
esac |
|
|
done |
|
|
|
|
|
|
|
|
if test -n "$lt_option_debug"; then |
|
|
echo "struct_vector_adapter_ex3:struct_vector_adapter_ex3:$LINENO: libtool wrapper (GNU libtool) 2.4.6" 1>&2 |
|
|
fi |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func_lt_dump_args () |
|
|
{ |
|
|
lt_dump_args_N=1; |
|
|
for lt_arg |
|
|
do |
|
|
$ECHO "struct_vector_adapter_ex3:struct_vector_adapter_ex3:$LINENO: newargv[$lt_dump_args_N]: $lt_arg" |
|
|
lt_dump_args_N=`expr $lt_dump_args_N + 1` |
|
|
done |
|
|
} |
|
|
|
|
|
|
|
|
func_exec_program_core () |
|
|
{ |
|
|
|
|
|
if test -n "$lt_option_debug"; then |
|
|
$ECHO "struct_vector_adapter_ex3:struct_vector_adapter_ex3:$LINENO: newargv[0]: $progdir/$program" 1>&2 |
|
|
func_lt_dump_args ${1+"$@"} 1>&2 |
|
|
fi |
|
|
exec "$progdir/$program" ${1+"$@"} |
|
|
|
|
|
$ECHO "$0: cannot exec $program $*" 1>&2 |
|
|
exit 1 |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
func_exec_program () |
|
|
{ |
|
|
case " $* " in |
|
|
*\ --lt-*) |
|
|
for lt_wr_arg |
|
|
do |
|
|
case $lt_wr_arg in |
|
|
--lt-*) ;; |
|
|
*) set x "$@" "$lt_wr_arg"; shift;; |
|
|
esac |
|
|
shift |
|
|
done ;; |
|
|
esac |
|
|
func_exec_program_core ${1+"$@"} |
|
|
} |
|
|
|
|
|
|
|
|
func_parse_lt_options "$0" ${1+"$@"} |
|
|
|
|
|
|
|
|
thisdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'` |
|
|
test "x$thisdir" = "x$file" && thisdir=. |
|
|
|
|
|
|
|
|
file=`ls -ld "$file" | /usr/bin/sed -n 's/.*-> //p'` |
|
|
while test -n "$file"; do |
|
|
destdir=`$ECHO "$file" | /usr/bin/sed 's%/[^/]*$%%'` |
|
|
|
|
|
|
|
|
if test "x$destdir" != "x$file"; then |
|
|
case "$destdir" in |
|
|
[\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;; |
|
|
*) thisdir="$thisdir/$destdir" ;; |
|
|
esac |
|
|
fi |
|
|
|
|
|
file=`$ECHO "$file" | /usr/bin/sed 's%^.*/%%'` |
|
|
file=`ls -ld "$thisdir/$file" | /usr/bin/sed -n 's/.*-> //p'` |
|
|
done |
|
|
|
|
|
|
|
|
|
|
|
WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no |
|
|
if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then |
|
|
|
|
|
if test "$thisdir" = "."; then |
|
|
thisdir=`pwd` |
|
|
fi |
|
|
|
|
|
case "$thisdir" in |
|
|
*[\\/].libs ) thisdir=`$ECHO "$thisdir" | /usr/bin/sed 's%[\\/][^\\/]*$%%'` ;; |
|
|
.libs ) thisdir=. ;; |
|
|
esac |
|
|
fi |
|
|
|
|
|
|
|
|
absdir=`cd "$thisdir" && pwd` |
|
|
test -n "$absdir" && thisdir="$absdir" |
|
|
|
|
|
program='struct_vector_adapter_ex3' |
|
|
progdir="$thisdir/.libs" |
|
|
|
|
|
|
|
|
if test -f "$progdir/$program"; then |
|
|
|
|
|
LD_LIBRARY_PATH="/media/eb2mt/a0e21538-b5b6-4e02-924f-85a196cf09e6/MT/toolkits/mosesdecoder/cmph-2.0.2/src/.libs:$LD_LIBRARY_PATH" |
|
|
|
|
|
|
|
|
|
|
|
LD_LIBRARY_PATH=`$ECHO "$LD_LIBRARY_PATH" | /usr/bin/sed 's/::*$//'` |
|
|
|
|
|
export LD_LIBRARY_PATH |
|
|
|
|
|
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then |
|
|
|
|
|
func_exec_program ${1+"$@"} |
|
|
fi |
|
|
else |
|
|
|
|
|
$ECHO "$0: error: '$progdir/$program' does not exist" 1>&2 |
|
|
$ECHO "This script is just a wrapper for $program." 1>&2 |
|
|
$ECHO "See the libtool documentation for more information." 1>&2 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|