2522
# Fix-up fallback echo if it was mangled by the above quoting rules.
2524
*'\\\[$]0 --fallback-echo"')dnl "
2525
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
2529
2544
_LT_OUTPUT_LIBTOOL_INIT
2547
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
2548
# ------------------------------------
2549
# Generate a child script FILE with all initialization necessary to
2550
# reuse the environment learned by the parent script, and make the
2551
# file executable. If COMMENT is supplied, it is inserted after the
2552
# `#!' sequence but before initialization text begins. After this
2553
# macro, additional text can be appended to FILE to form the body of
2554
# the child script. The macro ends with non-zero status if the
2555
# file could not be fully written (such as if the disk is full).
2556
m4_ifdef([AS_INIT_GENERATED],
2557
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
2558
[m4_defun([_LT_GENERATED_FILE_INIT],
2559
[m4_require([AS_PREPARE])]dnl
2560
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
2562
cat >$1 <<_ASEOF || lt_write_fail=1
2564
# Generated by $as_me.
2566
SHELL=\${CONFIG_SHELL-$SHELL}
2569
cat >>$1 <<\_ASEOF || lt_write_fail=1
2572
exec AS_MESSAGE_FD>&1
2574
test $lt_write_fail = 0 && chmod +x $1[]dnl
2575
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
3017
3081
# _LT_SHELL_INIT(ARG)
3018
3082
# -------------------
3019
3083
m4_define([_LT_SHELL_INIT],
3020
[ifdef([AC_DIVERSION_NOTICE],
3021
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
3022
[AC_DIVERT_PUSH(NOTICE)])
3084
[m4_divert_text([M4SH-INIT], [$1
3085
])])# _LT_SHELL_INIT
3028
3089
# _LT_PROG_ECHO_BACKSLASH
3029
3090
# -----------------------
3030
# Add some code to the start of the generated configure script which
3031
# will find an echo command which doesn't interpret backslashes.
3091
# Find how we can fake an echo command that does not interpret backslash.
3092
# In particular, with Autoconf 2.60 or later we add some code to the start
3093
# of the generated configure script which will find a shell with a builtin
3094
# printf (which we can use as an echo command).
3032
3095
m4_defun([_LT_PROG_ECHO_BACKSLASH],
3034
# Check that we are running under the correct shell.
3035
SHELL=${CONFIG_SHELL-/bin/sh}
3039
# Remove one level of quotation (which was required for Make).
3040
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
3096
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3097
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3098
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3100
AC_MSG_CHECKING([how to print strings])
3101
# Test print first, because it will be a builtin if present.
3102
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
3103
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3105
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3108
# Use this function as a fallback that always works.
3109
func_fallback_echo ()
3111
eval 'cat <<_LTECHO_EOF
3115
ECHO='func_fallback_echo'
3118
# func_echo_all arg...
3119
# Invoke $ECHO with all args, space-separated.
3126
printf*) AC_MSG_RESULT([printf]) ;;
3127
print*) AC_MSG_RESULT([print -r]) ;;
3128
*) AC_MSG_RESULT([cat]) ;;
3044
ECHO=${lt_ECHO-echo}
3045
if test "X[$]1" = X--no-reexec; then
3046
# Discard the --no-reexec flag, and continue.
3048
elif test "X[$]1" = X--fallback-echo; then
3049
# Avoid inline document here, it may be left over
3051
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
3052
# Yippee, $ECHO works!
3055
# Restart under the correct shell.
3056
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
3059
if test "X[$]1" = X--fallback-echo; then
3060
# used as fallback echo
3068
# The HP-UX ksh and POSIX shell print the target directory to stdout
3070
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
3072
if test -z "$lt_ECHO"; then
3073
if test "X${echo_test_string+set}" != Xset; then
3074
# find a string as large as possible, as long as the shell can cope with it
3075
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
3076
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
3077
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
3078
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
3085
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3086
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3087
test "X$echo_testing_string" = "X$echo_test_string"; then
3090
# The Solaris, AIX, and Digital Unix default echo programs unquote
3091
# backslashes. This makes it impossible to quote backslashes using
3092
# echo "$something" | sed 's/\\/\\\\/g'
3094
# So, first we look for a working echo in the user's PATH.
3096
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3097
for dir in $PATH /usr/ucb; do
3099
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
3100
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
3101
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
3102
test "X$echo_testing_string" = "X$echo_test_string"; then
3109
if test "X$ECHO" = Xecho; then
3110
# We didn't find a better echo, so look for alternatives.
3111
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
3112
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
3113
test "X$echo_testing_string" = "X$echo_test_string"; then
3114
# This shell has a builtin print -r that does the trick.
3116
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
3117
test "X$CONFIG_SHELL" != X/bin/ksh; then
3118
# If we have ksh, try running configure again with it.
3119
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
3120
export ORIGINAL_CONFIG_SHELL
3121
CONFIG_SHELL=/bin/ksh
3123
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
3127
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
3128
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
3129
test "X$echo_testing_string" = "X$echo_test_string"; then
3130
# Cool, printf works
3132
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3133
test "X$echo_testing_string" = 'X\t' &&
3134
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3135
test "X$echo_testing_string" = "X$echo_test_string"; then
3136
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
3138
SHELL="$CONFIG_SHELL"
3140
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3141
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
3142
test "X$echo_testing_string" = 'X\t' &&
3143
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
3144
test "X$echo_testing_string" = "X$echo_test_string"; then
3145
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
3147
# maybe with a smaller string...
3150
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
3151
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
3158
if test "$prev" != 'sed 50q "[$]0"'; then
3159
echo_test_string=`eval $prev`
3160
export echo_test_string
3161
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
3163
# Oops. We lost completely, so just stick with echo.
3172
# Copy echo and quote the copy suitably for passing to libtool from
3173
# the Makefile, instead of quoting the original, which is used later.
3175
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
3176
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
3131
m4_ifdef([_AS_DETECT_SUGGESTED],
3132
[_AS_DETECT_SUGGESTED([
3133
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
3134
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3135
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3136
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3137
PATH=/empty FPATH=/empty; export PATH FPATH
3138
test "X`printf %s $ECHO`" = "X$ECHO" \
3139
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
3181
3141
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
3182
_LT_DECL([], [ECHO], [1],
3183
[An echo program that does not interpret backslashes])
3142
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
3184
3143
])# _LT_PROG_ECHO_BACKSLASH
4021
4005
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
4022
4006
*) lt_awk_arg="/^libraries:/" ;;
4024
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
4025
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
4009
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
4010
*) lt_sed_strip_eq="s,=/,/,g" ;;
4012
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
4013
case $lt_search_path_spec in
4026
4015
# if the path contains ";" then we assume it to be the separator
4027
4016
# otherwise default to the standard path separator (i.e. ":") - it is
4028
4017
# assumed that no part of a normal pathname contains ";" but that should
4029
4018
# okay in the real world where ";" in dirpaths is itself problematic.
4030
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
4032
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
4019
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
4022
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
4034
4025
# Ok, now we have the path, separated by spaces, we can step through it
4035
4026
# and add multilib dir if necessary.
4036
4027
lt_tmp_lt_search_path_spec=
4430
4431
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
4431
4432
shlibpath_var=LD_LIBRARY_PATH
4432
4433
shlibpath_overrides_runpath=no
4433
4435
# Some binutils ld are patched to set DT_RUNPATH
4434
save_LDFLAGS=$LDFLAGS
4436
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4437
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4438
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4439
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4440
[shlibpath_overrides_runpath=yes])])
4441
LDFLAGS=$save_LDFLAGS
4436
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
4437
[lt_cv_shlibpath_overrides_runpath=no
4438
save_LDFLAGS=$LDFLAGS
4440
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
4441
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
4442
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
4443
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
4444
[lt_cv_shlibpath_overrides_runpath=yes])])
4445
LDFLAGS=$save_LDFLAGS
4448
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
4444
4450
# This implies no fast_install, which is unacceptable.
4445
4451
# Some rework will be needed to allow for fast_install
5989
6041
# All Alpha code is PIC.
5990
6042
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5993
# IBM XL C 8.0/Fortran 10.1 on PPC
6044
xl* | bgxl* | bgf* | mpixl*)
6045
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5994
6046
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5995
6047
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5996
6048
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5999
6051
case `$CC -V 2>&1 | sed 5q` in
6052
*Sun\ F* | *Sun*Fortran*)
6053
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6054
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6055
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6056
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6002
6060
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6003
6061
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6004
6062
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6007
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6008
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6009
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6010
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
6800
6907
irix5* | irix6* | nonstopux*)
6801
6908
if test "$GCC" = yes; then
6802
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6909
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6803
6910
# Try to use the -exported_symbol ld option, if it does not
6804
6911
# work, assume that -exports_file does not work either and
6805
6912
# implicitly export all symbols.
6806
6913
save_LDFLAGS="$LDFLAGS"
6807
6914
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
6808
6915
AC_LINK_IFELSE(int foo(void) {},
6809
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6916
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
6811
6918
LDFLAGS="$save_LDFLAGS"
6813
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6814
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6920
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6921
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
6816
6923
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6817
6924
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6873
6980
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6874
6981
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6875
6982
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6876
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6983
_LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6877
6984
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6881
6988
if test "$GCC" = yes; then
6882
6989
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6883
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6990
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6885
6992
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6886
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6993
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6888
6995
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
6889
6996
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6893
7000
osf4* | osf5*) # as osf3* with the addition of -msym flag
6894
7001
if test "$GCC" = yes; then
6895
7002
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6896
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
7003
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6897
7004
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6899
7006
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6900
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
7007
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
6901
7008
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
6902
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
7009
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
6904
7011
# Both c and cxx compiler support -rpath directly
6905
7012
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7090
7197
# Test whether the compiler implicitly links with -lc since on some
7091
7198
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7092
7199
# to ld, don't add -lc before -lgcc.
7093
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7095
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7200
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
7201
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
7203
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7097
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7100
libobjs=conftest.$ac_objext
7102
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7103
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7109
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7110
_LT_TAGVAR(allow_undefined_flag, $1)=
7111
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7113
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7115
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7117
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7119
cat conftest.err 1>&5
7122
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
7205
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7208
libobjs=conftest.$ac_objext
7210
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
7211
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
7217
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
7218
_LT_TAGVAR(allow_undefined_flag, $1)=
7219
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
7221
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7223
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
7225
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7227
cat conftest.err 1>&5
7231
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
7871
7977
pgCC* | pgcpp*)
7872
7978
# Portland Group C++ compiler
7873
7979
case `$CC -V` in
7874
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
7980
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7875
7981
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7876
7982
rm -rf $tpldir~
7877
7983
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7878
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
7984
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7879
7985
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7880
7986
rm -rf $tpldir~
7881
7987
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7882
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
7988
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7883
7989
$RANLIB $oldlib'
7884
7990
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7885
7991
rm -rf $tpldir~
7886
7992
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7887
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7993
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7888
7994
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7889
7995
rm -rf $tpldir~
7890
7996
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7891
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7997
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
7893
*) # Version 6 will use weak symbols
7999
*) # Version 6 and above use weak symbols
7894
8000
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
7895
8001
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
9824
9908
# Generated from ltversion.in.
9826
# serial 3017 ltversion.m4
9910
# serial 3175 ltversion.m4
9827
9911
# This file is part of GNU Libtool
9829
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
9830
m4_define([LT_PACKAGE_REVISION], [1.3017])
9913
m4_define([LT_PACKAGE_VERSION], [2.2.10])
9914
m4_define([LT_PACKAGE_REVISION], [1.3175])
9832
9916
AC_DEFUN([LTVERSION_VERSION],
9833
[macro_version='2.2.6b'
9834
macro_revision='1.3017'
9917
[macro_version='2.2.10'
9918
macro_revision='1.3175'
9835
9919
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
9836
9920
_LT_DECL(, macro_revision, 0)
9839
9923
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
9841
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
9925
# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc.
9842
9926
# Written by Scott James Remnant, 2004.
9844
9928
# This file is free software; the Free Software Foundation gives
9845
9929
# unlimited permission to copy and/or distribute it, with or without
9846
9930
# modifications, as long as this notice is preserved.
9848
# serial 4 lt~obsolete.m4
9932
# serial 5 lt~obsolete.m4
9850
9934
# These exist entirely to fool aclocal when bootstrapping libtool.