546
# Fix-up fallback echo if it was mangled by the above quoting rules.
548
*'\\\[$]0 --fallback-echo"')dnl "
549
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
553
566
_LT_OUTPUT_LIBTOOL_INIT
569
# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
570
# ------------------------------------
571
# Generate a child script FILE with all initialization necessary to
572
# reuse the environment learned by the parent script, and make the
573
# file executable. If COMMENT is supplied, it is inserted after the
574
# `#!' sequence but before initialization text begins. After this
575
# macro, additional text can be appended to FILE to form the body of
576
# the child script. The macro ends with non-zero status if the
577
# file could not be fully written (such as if the disk is full).
578
m4_ifdef([AS_INIT_GENERATED],
579
[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
580
[m4_defun([_LT_GENERATED_FILE_INIT],
581
[m4_require([AS_PREPARE])]dnl
582
[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
584
cat >$1 <<_ASEOF || lt_write_fail=1
586
# Generated by $as_me.
588
SHELL=\${CONFIG_SHELL-$SHELL}
591
cat >>$1 <<\_ASEOF || lt_write_fail=1
594
exec AS_MESSAGE_FD>&1
596
test $lt_write_fail = 0 && chmod +x $1[]dnl
597
m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1041
1103
# _LT_SHELL_INIT(ARG)
1042
1104
# -------------------
1043
1105
m4_define([_LT_SHELL_INIT],
1044
[ifdef([AC_DIVERSION_NOTICE],
1045
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1046
[AC_DIVERT_PUSH(NOTICE)])
1106
[m4_divert_text([M4SH-INIT], [$1
1107
])])# _LT_SHELL_INIT
1052
1111
# _LT_PROG_ECHO_BACKSLASH
1053
1112
# -----------------------
1054
# Add some code to the start of the generated configure script which
1055
# will find an echo command which doesn't interpret backslashes.
1113
# Find how we can fake an echo command that does not interpret backslash.
1114
# In particular, with Autoconf 2.60 or later we add some code to the start
1115
# of the generated configure script which will find a shell with a builtin
1116
# printf (which we can use as an echo command).
1056
1117
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1058
# Check that we are running under the correct shell.
1059
SHELL=${CONFIG_SHELL-/bin/sh}
1063
# Remove one level of quotation (which was required for Make).
1064
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1118
[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1119
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1120
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1122
AC_MSG_CHECKING([how to print strings])
1123
# Test print first, because it will be a builtin if present.
1124
if test "X`print -r -- -n 2>/dev/null`" = X-n && \
1125
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1127
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1130
# Use this function as a fallback that always works.
1131
func_fallback_echo ()
1133
eval 'cat <<_LTECHO_EOF
1137
ECHO='func_fallback_echo'
1140
# func_echo_all arg...
1141
# Invoke $ECHO with all args, space-separated.
1148
printf*) AC_MSG_RESULT([printf]) ;;
1149
print*) AC_MSG_RESULT([print -r]) ;;
1150
*) AC_MSG_RESULT([cat]) ;;
1068
ECHO=${lt_ECHO-echo}
1069
if test "X[$]1" = X--no-reexec; then
1070
# Discard the --no-reexec flag, and continue.
1072
elif test "X[$]1" = X--fallback-echo; then
1073
# Avoid inline document here, it may be left over
1075
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1076
# Yippee, $ECHO works!
1079
# Restart under the correct shell.
1080
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1083
if test "X[$]1" = X--fallback-echo; then
1084
# used as fallback echo
1092
# The HP-UX ksh and POSIX shell print the target directory to stdout
1094
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1096
if test -z "$lt_ECHO"; then
1097
if test "X${echo_test_string+set}" != Xset; then
1098
# find a string as large as possible, as long as the shell can cope with it
1099
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1100
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1101
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1102
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1109
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1110
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1111
test "X$echo_testing_string" = "X$echo_test_string"; then
1114
# The Solaris, AIX, and Digital Unix default echo programs unquote
1115
# backslashes. This makes it impossible to quote backslashes using
1116
# echo "$something" | sed 's/\\/\\\\/g'
1118
# So, first we look for a working echo in the user's PATH.
1120
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1121
for dir in $PATH /usr/ucb; do
1123
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1124
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1125
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1126
test "X$echo_testing_string" = "X$echo_test_string"; then
1133
if test "X$ECHO" = Xecho; then
1134
# We didn't find a better echo, so look for alternatives.
1135
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1136
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1137
test "X$echo_testing_string" = "X$echo_test_string"; then
1138
# This shell has a builtin print -r that does the trick.
1140
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1141
test "X$CONFIG_SHELL" != X/bin/ksh; then
1142
# If we have ksh, try running configure again with it.
1143
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1144
export ORIGINAL_CONFIG_SHELL
1145
CONFIG_SHELL=/bin/ksh
1147
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1151
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1152
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1153
test "X$echo_testing_string" = "X$echo_test_string"; then
1154
# Cool, printf works
1156
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1157
test "X$echo_testing_string" = 'X\t' &&
1158
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1159
test "X$echo_testing_string" = "X$echo_test_string"; then
1160
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1162
SHELL="$CONFIG_SHELL"
1164
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1165
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1166
test "X$echo_testing_string" = 'X\t' &&
1167
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1168
test "X$echo_testing_string" = "X$echo_test_string"; then
1169
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1171
# maybe with a smaller string...
1174
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1175
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1182
if test "$prev" != 'sed 50q "[$]0"'; then
1183
echo_test_string=`eval $prev`
1184
export echo_test_string
1185
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1187
# Oops. We lost completely, so just stick with echo.
1196
# Copy echo and quote the copy suitably for passing to libtool from
1197
# the Makefile, instead of quoting the original, which is used later.
1199
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1200
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1153
m4_ifdef([_AS_DETECT_SUGGESTED],
1154
[_AS_DETECT_SUGGESTED([
1155
test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1156
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1157
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1158
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1159
PATH=/empty FPATH=/empty; export PATH FPATH
1160
test "X`printf %s $ECHO`" = "X$ECHO" \
1161
|| test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1205
1163
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1206
_LT_DECL([], [ECHO], [1],
1207
[An echo program that does not interpret backslashes])
1164
_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1208
1165
])# _LT_PROG_ECHO_BACKSLASH
2045
2027
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2046
2028
*) lt_awk_arg="/^libraries:/" ;;
2048
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2049
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2031
mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2032
*) lt_sed_strip_eq="s,=/,/,g" ;;
2034
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2035
case $lt_search_path_spec in
2050
2037
# if the path contains ";" then we assume it to be the separator
2051
2038
# otherwise default to the standard path separator (i.e. ":") - it is
2052
2039
# assumed that no part of a normal pathname contains ";" but that should
2053
2040
# okay in the real world where ";" in dirpaths is itself problematic.
2054
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2056
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2041
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2044
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2058
2047
# Ok, now we have the path, separated by spaces, we can step through it
2059
2048
# and add multilib dir if necessary.
2060
2049
lt_tmp_lt_search_path_spec=
2454
2453
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2455
2454
shlibpath_var=LD_LIBRARY_PATH
2456
2455
shlibpath_overrides_runpath=no
2457
2457
# Some binutils ld are patched to set DT_RUNPATH
2458
save_LDFLAGS=$LDFLAGS
2460
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2461
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2462
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2463
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2464
[shlibpath_overrides_runpath=yes])])
2465
LDFLAGS=$save_LDFLAGS
2458
AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2459
[lt_cv_shlibpath_overrides_runpath=no
2460
save_LDFLAGS=$LDFLAGS
2462
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2463
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2464
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2465
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2466
[lt_cv_shlibpath_overrides_runpath=yes])])
2467
LDFLAGS=$save_LDFLAGS
2470
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2468
2472
# This implies no fast_install, which is unacceptable.
2469
2473
# Some rework will be needed to allow for fast_install
2470
2474
# before this can be enabled.
2471
2475
hardcode_into_libs=yes
2477
# Add ABI-specific directories to the system library path.
2478
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2473
2480
# Append ld.so.conf contents to the search path
2474
2481
if test -f /etc/ld.so.conf; then
2475
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2476
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2482
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2483
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
2479
2487
# We used to test for /lib/ld.so.1 and disable shared libraries on
4022
4063
# All Alpha code is PIC.
4023
4064
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4026
# IBM XL C 8.0/Fortran 10.1 on PPC
4066
xl* | bgxl* | bgf* | mpixl*)
4067
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4027
4068
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4028
4069
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4029
4070
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4032
4073
case `$CC -V 2>&1 | sed 5q` in
4074
*Sun\ F* | *Sun*Fortran*)
4075
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4076
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4077
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4078
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4035
4082
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4036
4083
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4037
4084
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4040
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4041
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4042
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4043
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4841
4929
irix5* | irix6* | nonstopux*)
4842
4930
if test "$GCC" = yes; then
4843
_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'
4931
_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'
4844
4932
# Try to use the -exported_symbol ld option, if it does not
4845
4933
# work, assume that -exports_file does not work either and
4846
4934
# implicitly export all symbols.
4847
4935
save_LDFLAGS="$LDFLAGS"
4848
4936
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
4849
4937
AC_LINK_IFELSE(int foo(void) {},
4850
_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'
4938
_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'
4852
4940
LDFLAGS="$save_LDFLAGS"
4854
_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'
4855
_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'
4942
_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'
4943
_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'
4857
4945
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4858
4946
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4914
5002
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4915
5003
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4916
5004
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4917
_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'
5005
_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'
4918
5006
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4922
5010
if test "$GCC" = yes; then
4923
5011
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4924
_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'
5012
_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'
4926
5014
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4927
_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'
5015
_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'
4929
5017
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
4930
5018
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4934
5022
osf4* | osf5*) # as osf3* with the addition of -msym flag
4935
5023
if test "$GCC" = yes; then
4936
5024
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4937
_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'
5025
_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'
4938
5026
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4940
5028
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4941
_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'
5029
_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'
4942
5030
_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~
4943
$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'
5031
$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'
4945
5033
# Both c and cxx compiler support -rpath directly
4946
5034
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5131
5219
# Test whether the compiler implicitly links with -lc since on some
5132
5220
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5133
5221
# to ld, don't add -lc before -lgcc.
5134
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5136
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5222
AC_CACHE_CHECK([whether -lc should be explicitly linked in],
5223
[lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
5225
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5138
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5141
libobjs=conftest.$ac_objext
5143
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5144
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5150
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5151
_LT_TAGVAR(allow_undefined_flag, $1)=
5152
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5154
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5156
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5158
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5160
cat conftest.err 1>&5
5163
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5227
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5230
libobjs=conftest.$ac_objext
5232
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5233
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5239
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5240
_LT_TAGVAR(allow_undefined_flag, $1)=
5241
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5243
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5245
lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5247
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5249
cat conftest.err 1>&5
5253
_LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
5916
6003
pgCC* | pgcpp*)
5917
6004
# Portland Group C++ compiler
5918
6005
case `$CC -V` in
5919
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6006
*pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
5920
6007
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
5921
6008
rm -rf $tpldir~
5922
6009
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
5923
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6010
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
5924
6011
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
5925
6012
rm -rf $tpldir~
5926
6013
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
5927
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6014
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
5928
6015
$RANLIB $oldlib'
5929
6016
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
5930
6017
rm -rf $tpldir~
5931
6018
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5932
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6019
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5933
6020
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
5934
6021
rm -rf $tpldir~
5935
6022
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
5936
$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'
6023
$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'
5938
*) # Version 6 will use weak symbols
6025
*) # Version 6 and above use weak symbols
5939
6026
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
5940
6027
_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'