268
268
# Check for compiler boilerplate output or warnings with
269
269
# the simple compiler test code.
270
270
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
271
[ac_outfile=conftest.$ac_objext
272
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
271
[AC_REQUIRE([LT_AC_PROG_SED])dnl
272
ac_outfile=conftest.$ac_objext
273
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
274
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
275
_lt_compiler_boilerplate=`cat conftest.err`
281
282
# Check for linker boilerplate output or warnings with
282
283
# the simple link test code.
283
284
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
[ac_outfile=conftest.$ac_objext
285
printf "$lt_simple_link_test_code" >conftest.$ac_ext
285
[AC_REQUIRE([LT_AC_PROG_SED])dnl
286
ac_outfile=conftest.$ac_objext
287
echo "$lt_simple_link_test_code" >conftest.$ac_ext
286
288
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
287
289
_lt_linker_boilerplate=`cat conftest.err`
298
300
# If we don't find anything, use the default library path according
299
301
# to the aix ld manual.
300
302
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
301
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
302
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
303
[AC_REQUIRE([LT_AC_PROG_SED])dnl
304
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
306
/Import File Strings/,/^$/ {
312
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
304
313
# Check for a 64-bit object if we didn't find anything.
305
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
314
if test -z "$aix_libpath"; then
315
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
307
317
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
308
318
])# _LT_AC_SYS_LIBPATH_AIX
537
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
547
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
548
s390*-*linux*|sparc*-*linux*)
538
549
# Find out which ABI we are using.
539
550
echo 'int i;' > conftest.$ac_ext
540
551
if AC_TRY_EVAL(ac_compile); then
541
552
case `/usr/bin/file conftest.o` in
555
x86_64-*kfreebsd*-gnu)
556
LD="${LD-ld} -m elf_i386_fbsd"
545
559
LD="${LD-ld} -m elf_i386"
628
646
AC_CACHE_CHECK([$1], [$2],
630
648
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
631
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
649
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
632
650
lt_compiler_flag="$3"
633
651
# Insert the option either (1) after the last *FLAGS variable, or
634
652
# (2) before a word containing "conftest.", or (3) at the end.
669
687
# ------------------------------------------------------------
670
688
# Check whether the given compiler option works
671
689
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
672
[AC_CACHE_CHECK([$1], [$2],
690
[AC_REQUIRE([LT_AC_PROG_SED])dnl
691
AC_CACHE_CHECK([$1], [$2],
674
693
save_LDFLAGS="$LDFLAGS"
675
694
LDFLAGS="$LDFLAGS $3"
676
printf "$lt_simple_link_test_code" > conftest.$ac_ext
695
echo "$lt_simple_link_test_code" > conftest.$ac_ext
677
696
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
678
697
# The linker can only warn and ignore the option if not recognized
679
698
# So say no if there are warnings
790
# If test is not a shell built-in, we'll probably end up computing a
791
# maximum length that is only half of the actual maximum length, but
793
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
794
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
809
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
810
if test -n "$lt_cv_sys_max_cmd_len"; then
811
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
812
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
814
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
815
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
795
816
= "XX$teststring") >/dev/null 2>&1 &&
796
new_result=`expr "X$teststring" : ".*" 2>&1` &&
797
lt_cv_sys_max_cmd_len=$new_result &&
798
test $i != 17 # 1/2 MB should be enough
801
teststring=$teststring$teststring
804
# Add a significant safety factor because C++ compilers can tack on massive
805
# amounts of additional arguments before passing them to the linker.
806
# It appears as though 1/2 is a usable value.
807
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
817
new_result=`expr "X$teststring" : ".*" 2>&1` &&
818
lt_cv_sys_max_cmd_len=$new_result &&
819
test $i != 17 # 1/2 MB should be enough
822
teststring=$teststring$teststring
825
# Add a significant safety factor because C++ compilers can tack on massive
826
# amounts of additional arguments before passing them to the linker.
827
# It appears as though 1/2 is a usable value.
828
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1031
1053
# ---------------------------------
1032
1054
# Check to see if options -c and -o are simultaneously supported by compiler
1033
1055
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1034
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1056
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1057
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1035
1058
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1036
1059
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1037
1060
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1210
1235
version_type=none
1211
1236
dynamic_linker="$host_os ld.so"
1212
1237
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1213
1239
if test "$GCC" = yes; then
1214
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1215
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1241
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1242
*) lt_awk_arg="/^libraries:/" ;;
1244
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1245
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1216
1246
# if the path contains ";" then we assume it to be the separator
1217
1247
# otherwise default to the standard path separator (i.e. ":") - it is
1218
1248
# assumed that no part of a normal pathname contains ";" but that should
1219
1249
# okay in the real world where ";" in dirpaths is itself problematic.
1220
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1250
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1222
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1252
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1254
# Ok, now we have the path, separated by spaces, we can step through it
1255
# and add multilib dir if necessary.
1256
lt_tmp_lt_search_path_spec=
1257
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1258
for lt_sys_path in $lt_search_path_spec; do
1259
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1260
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1262
test -d "$lt_sys_path" && \
1263
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1266
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1267
BEGIN {RS=" "; FS="/|\n";} {
1270
for (lt_i = NF; lt_i > 0; lt_i--) {
1271
if ($lt_i != "" && $lt_i != ".") {
1272
if ($lt_i == "..") {
1275
if (lt_count == 0) {
1276
lt_foo="/" $lt_i lt_foo;
1283
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1284
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1286
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1225
1288
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1227
1290
need_lib_prefix=unknown
1228
1291
hardcode_into_libs=no
1380
1443
shlibpath_overrides_runpath=yes
1381
1444
shlibpath_var=DYLD_LIBRARY_PATH
1382
1445
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1383
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1384
if test "$GCC" = yes; then
1385
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1387
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1447
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1389
1448
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1402
1461
dynamic_linker=no
1409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1410
soname_spec='${libname}${release}${shared_ext}$major'
1411
shlibpath_var=LD_LIBRARY_PATH
1412
shlibpath_overrides_runpath=no
1413
hardcode_into_libs=yes
1414
dynamic_linker='GNU ld.so'
1417
1464
freebsd* | dragonfly*)
1418
1465
# DragonFly does not have aout. When/if they implement a new
1419
1466
# versioning mechanism, adjust this.
1582
1629
# Some rework will be needed to allow for fast_install
1583
1630
# before this can be enabled.
1584
1631
hardcode_into_libs=yes
1586
# find out which ABI we are using
1589
x86_64*|s390x*|powerpc64*)
1590
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1591
if AC_TRY_EVAL(ac_compile); then
1592
case `/usr/bin/file conftest.$ac_objext` in
1595
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1632
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1633
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1603
1635
# Append ld.so.conf contents to the search path
1604
1636
if test -f /etc/ld.so.conf; then
1605
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/^[ ]*//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1606
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1637
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' ' '`
1638
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
1609
1641
# We used to test for /lib/ld.so.1 and disable shared libraries on
2284
2309
# how to check for library dependencies
2285
2310
# -- PORTME fill in with the dynamic library characteristics
2286
2311
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2287
[AC_CACHE_CHECK([how to recognise dependent libraries],
2312
[AC_CACHE_CHECK([how to recognize dependent libraries],
2288
2313
lt_cv_deplibs_check_method,
2289
2314
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2290
2315
lt_cv_file_magic_test_file=
2324
2349
mingw* | pw32*)
2325
2350
# Base MSYS/MinGW do not provide the 'file' command needed by
2326
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2327
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2328
lt_cv_file_magic_cmd='$OBJDUMP -f'
2351
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2352
# unless we find 'file', for example because we are cross-compiling.
2353
if ( file / ) >/dev/null 2>&1; then
2354
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2355
lt_cv_file_magic_cmd='func_win32_libid'
2357
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2358
lt_cv_file_magic_cmd='$OBJDUMP -f'
2331
2362
darwin* | rhapsody*)
2332
2363
lt_cv_deplibs_check_method=pass_all
2335
freebsd* | kfreebsd*-gnu | dragonfly*)
2366
freebsd* | dragonfly*)
2336
2367
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2337
2368
case $host_cpu in
2688
2723
_LT_AC_TAGVAR(objext, $1)=$objext
2690
2725
# Code to be used in simple compile tests
2691
lt_simple_compile_test_code="int some_variable = 0;\n"
2726
lt_simple_compile_test_code="int some_variable = 0;"
2693
2728
# Code to be used in simple link tests
2694
lt_simple_link_test_code='int main(){return(0);}\n'
2729
lt_simple_link_test_code='int main(){return(0);}'
2696
2731
_LT_AC_SYS_COMPILER
2793
2828
_LT_AC_TAGVAR(objext, $1)=$objext
2795
2830
# Code to be used in simple compile tests
2796
lt_simple_compile_test_code="int some_variable = 0;\n"
2831
lt_simple_compile_test_code="int some_variable = 0;"
2798
2833
# Code to be used in simple link tests
2799
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2834
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2801
2836
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2802
2837
_LT_AC_SYS_COMPILER
3101
3136
case $cc_basename in
3103
3138
output_verbose_link_cmd='echo'
3104
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3139
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3105
3140
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3106
3141
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3107
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3142
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3108
3143
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3377
3410
# dependencies.
3378
3411
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3414
case `$CC -V 2>&1 | sed 5q` in
3417
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3418
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3419
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3420
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3421
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3423
# Not sure whether something based on
3424
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3426
output_verbose_link_cmd='echo'
3428
# Archives containing C++ object files must be created using
3429
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3430
# necessary to make sure instantiated templates are included
3432
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3415
3471
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3418
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3419
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3420
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3421
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3422
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3423
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3424
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3425
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3474
if test -f /usr/libexec/ld.so; then
3475
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3476
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3477
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3478
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3479
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3480
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3481
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3482
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3484
output_verbose_link_cmd='echo'
3486
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3427
output_verbose_link_cmd='echo'
3430
3490
case $cc_basename in
3586
3646
case $host_os in
3587
3647
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3589
# The C++ compiler is used as linker so we must use $wl
3590
# flag to pass the commands to the underlying system
3591
# linker. We must also pass each convience library through
3592
# to the system linker between allextract/defaultextract.
3593
# The C++ compiler will combine linker options so we
3594
# cannot just pass the convience library names through
3649
# The compiler driver will combine and reorder linker options,
3650
# but understands `-z linker_flag'.
3596
3651
# Supported since Solaris 2.6 (maybe 2.5.1?)
3597
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3652
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3600
3655
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3892
3953
_LT_AC_TAGVAR(postdeps,$1)=
3957
case `$CC -V 2>&1 | sed 5q` in
3961
# The more standards-conforming stlport4 library is
3962
# incompatible with the Cstd library. Avoid specifying
3963
# it if it's in CXXFLAGS. Ignore libCrun as
3964
# -library=stlport4 depends on it.
3965
case " $CXX $CXXFLAGS " in
3966
*" -library=stlport4 "*)
3967
solaris_use_stlport4=yes
3970
if test "$solaris_use_stlport4" != yes; then
3971
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3896
3978
case $cc_basename in
3980
# The more standards-conforming stlport4 library is
3981
# incompatible with the Cstd library. Avoid specifying
3982
# it if it's in CXXFLAGS. Ignore libCrun as
3983
# -library=stlport4 depends on it.
3984
case " $CXX $CXXFLAGS " in
3985
*" -library=stlport4 "*)
3986
solaris_use_stlport4=yes
3898
3990
# Adding this requires a known-good setup of shared libraries for
3899
3991
# Sun compiler versions before 5.6, else PIC objects from an old
3900
3992
# archive will be linked into the output, leading to subtle bugs.
3901
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3993
if test "$solaris_use_stlport4" != yes; then
3994
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
3947
4041
_LT_AC_TAGVAR(objext, $1)=$objext
3949
4043
# Code to be used in simple compile tests
3950
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4044
lt_simple_compile_test_code="\
3952
4050
# Code to be used in simple link tests
3953
lt_simple_link_test_code=" program t\n end\n"
4051
lt_simple_link_test_code="\
3955
4056
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3956
4057
_LT_AC_SYS_COMPILER
4029
4130
_LT_AC_TAGVAR(objext, $1)=$objext
4031
4132
# Code to be used in simple compile tests
4032
lt_simple_compile_test_code="class foo {}\n"
4133
lt_simple_compile_test_code="class foo {}"
4034
4135
# Code to be used in simple link tests
4035
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4136
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4037
4138
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4038
4139
_LT_AC_SYS_COMPILER
4085
4186
_LT_AC_TAGVAR(objext, $1)=$objext
4087
4188
# Code to be used in simple compile tests
4088
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4189
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4090
4191
# Code to be used in simple link tests
4091
4192
lt_simple_link_test_code="$lt_simple_compile_test_code"
4174
4275
_LT_AC_TAGVAR(module_cmds, $1) \
4175
4276
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4176
4277
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4278
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4177
4279
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4178
4280
_LT_AC_TAGVAR(include_expsyms, $1); do
4220
4322
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4221
4323
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4223
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4325
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4224
4326
# Free Software Foundation, Inc.
4226
4328
# This file is part of GNU Libtool:
4545
4647
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4547
4649
# Fix the shell variable \$srcfile for the compiler.
4548
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4650
fix_srcfile_path=$lt_fix_srcfile_path
4550
4652
# Set to yes if exported symbols are required.
4551
4653
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4664
4767
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4665
4768
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4770
linux* | k*bsd*-gnu)
4668
4771
if test "$host_cpu" = ia64; then
4669
4772
symcode='[[ABCDGIRSTW]]'
4670
4773
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4854
4957
# like `-m68040'.
4855
4958
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4857
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4960
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4858
4961
# PIC is the default for these OSes.
4860
mingw* | os2* | pw32*)
4963
mingw* | cygwin* | os2* | pw32*)
4861
4964
# This hack is so that the source file can tell whether it is being
4862
4965
# built for inclusion in a dll (and should export symbols for example).
4966
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4967
# (--disable-auto-import) libraries
4863
4968
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4865
4970
darwin* | rhapsody*)
5007
5112
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5115
case `$CC -V 2>&1 | sed 5q` in
5118
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5119
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5120
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5127
5240
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5130
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5243
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5131
5244
# PIC is the default for these OSes.
5134
mingw* | pw32* | os2*)
5247
mingw* | cygwin* | pw32* | os2*)
5135
5248
# This hack is so that the source file can tell whether it is being
5136
5249
# built for inclusion in a dll (and should export symbols for example).
5250
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5251
# (--disable-auto-import) libraries
5137
5252
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5253
5368
# All Alpha code is PIC.
5254
5369
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5372
case `$CC -V 2>&1 | sed 5q` in
5375
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5376
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5377
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5380
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5381
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5382
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5383
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5356
5491
# ------------------------------------
5357
5492
# See if the linker supports building shared libraries.
5358
5493
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5359
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5494
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5495
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5360
5496
ifelse([$1],[CXX],[
5361
5497
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5362
5498
case $host_os in
5373
5509
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5375
5511
cygwin* | mingw*)
5376
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5512
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5379
5515
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5512
5648
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5513
5649
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5514
5650
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5515
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5651
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5517
5653
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5518
5654
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5545
5681
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5684
gnu* | linux* | k*bsd*-gnu)
5549
5685
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5551
5687
case $cc_basename,$host_cpu in
5563
5699
ifc* | ifort*) # Intel Fortran compiler
5564
5700
tmp_addflag=' -nofor_main' ;;
5566
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5702
case `$CC -V 2>&1 | sed 5q` in
5703
*Sun\ C*) # Sun C 5.9
5704
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5705
tmp_sharedflag='-G' ;;
5706
*Sun\ F*) # Sun Fortran 8.3
5707
tmp_sharedflag='-G' ;;
5709
tmp_sharedflag='-shared' ;;
5711
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5568
5713
if test $supports_anon_versioning = yes; then
5569
5714
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5570
5715
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5571
5716
$echo "local: *; };" >> $output_objdir/$libname.ver~
5572
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5717
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5575
5720
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5821
5966
# The linker will automatically build a .lib file if we build a DLL.
5822
5967
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5823
5968
# FIXME: Should let the user specify the lib program.
5824
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5969
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5825
5970
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5826
5971
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5863
6008
case $cc_basename in
5865
6010
output_verbose_link_cmd='echo'
5866
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
5867
6012
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5868
6013
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5869
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6014
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5870
6015
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5908
6053
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5909
freebsd* | kfreebsd*-gnu | dragonfly*)
6054
freebsd* | dragonfly*)
5910
6055
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5911
6056
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5912
6057
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6031
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6032
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6033
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6034
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6035
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6036
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6037
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6176
if test -f /usr/libexec/ld.so; then
6177
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6178
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6179
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6180
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6181
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6182
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6183
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6186
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6187
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6188
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6191
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6192
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6040
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6041
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6042
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6045
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6046
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6197
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6104
6253
case $host_os in
6105
6254
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6107
# The compiler driver will combine linker options so we
6108
# cannot just pass the convience library names through
6109
# without $wl, iff we do not link with $LD.
6110
# Luckily, gcc supports the same syntax we need for Sun Studio.
6256
# The compiler driver will combine and reorder linker options,
6257
# but understands `-z linker_flag'. GCC discards it without `$wl',
6258
# but is careful enough not to reorder.
6111
6259
# Supported since Solaris 2.6 (maybe 2.5.1?)
6114
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6116
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6260
if test "$GCC" = yes; then
6261
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6263
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6119
6267
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6174
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6322
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6175
6323
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6176
6324
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6177
6325
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6349
6497
[AC_CHECK_TOOL(RC, windres, no)
6501
# Cheap backport of AS_EXECUTABLE_P and required macros
6502
# from Autoconf 2.59; we should not use $as_executable_p directly.
6506
m4_ifndef([_AS_TEST_PREPARE],
6507
[m4_defun([_AS_TEST_PREPARE],
6508
[if test -x / >/dev/null 2>&1; then
6509
as_executable_p='test -x'
6511
as_executable_p='test -f'
6513
])])# _AS_TEST_PREPARE
6517
# Check whether a file is executable.
6518
m4_ifndef([AS_EXECUTABLE_P],
6519
[m4_defun([AS_EXECUTABLE_P],
6520
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6521
$as_executable_p $1[]dnl
6522
])])# AS_EXECUTABLE_P
6352
6524
# NOTE: This macro has been submitted for inclusion into #
6353
6525
# GNU Autoconf as AC_PROG_SED. When it is available in #
6354
6526
# a released version of Autoconf we should remove this #
6657
6829
am_aux_dir=`cd $ac_aux_dir && pwd`
6833
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
6834
# Free Software Foundation, Inc.
6836
# This file is free software; the Free Software Foundation
6837
# gives unlimited permission to copy and/or distribute it,
6838
# with or without modifications, as long as this notice is preserved.
6842
# This was merged into AC_PROG_CC in Autoconf.
6844
AU_DEFUN([AM_PROG_CC_STDC],
6846
AC_DIAGNOSE([obsolete], [$0:
6847
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
6848
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
6849
you adjust the code. You can also remove the above call to
6850
AC_PROG_CC if you already called it elsewhere.])
6851
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
6853
AU_DEFUN([fp_PROG_CC_STDC])
6660
6855
# AM_CONDITIONAL -*- Autoconf -*-
6662
6857
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7486
7681
AC_SUBST([am__untar])
7487
7682
]) # _AM_PROG_TAR
7684
m4_include([gnulib/m4/alloca.m4])
7685
m4_include([gnulib/m4/arpa_inet_h.m4])
7686
m4_include([gnulib/m4/eoverflow.m4])
7687
m4_include([gnulib/m4/extensions.m4])
7688
m4_include([gnulib/m4/float_h.m4])
7689
m4_include([gnulib/m4/fseeko.m4])
7690
m4_include([gnulib/m4/getaddrinfo.m4])
7691
m4_include([gnulib/m4/getdelim.m4])
7692
m4_include([gnulib/m4/getline.m4])
7693
m4_include([gnulib/m4/getpass.m4])
7694
m4_include([gnulib/m4/gnulib-common.m4])
7695
m4_include([gnulib/m4/gnulib-comp.m4])
7696
m4_include([gnulib/m4/include_next.m4])
7697
m4_include([gnulib/m4/inet_ntop.m4])
7698
m4_include([gnulib/m4/intmax_t.m4])
7699
m4_include([gnulib/m4/inttypes_h.m4])
7700
m4_include([gnulib/m4/longlong.m4])
7701
m4_include([gnulib/m4/lseek.m4])
7702
m4_include([gnulib/m4/malloc.m4])
7703
m4_include([gnulib/m4/netinet_in_h.m4])
7704
m4_include([gnulib/m4/onceonly_2_57.m4])
7705
m4_include([gnulib/m4/physmem.m4])
7706
m4_include([gnulib/m4/po.m4])
7707
m4_include([gnulib/m4/poll.m4])
7708
m4_include([gnulib/m4/realloc.m4])
7709
m4_include([gnulib/m4/snprintf.m4])
7710
m4_include([gnulib/m4/socklen.m4])
7711
m4_include([gnulib/m4/sockpfaf.m4])
7712
m4_include([gnulib/m4/stdbool.m4])
7713
m4_include([gnulib/m4/stdint.m4])
7714
m4_include([gnulib/m4/stdint_h.m4])
7715
m4_include([gnulib/m4/stdio_h.m4])
7716
m4_include([gnulib/m4/stdlib_h.m4])
7717
m4_include([gnulib/m4/strdup.m4])
7718
m4_include([gnulib/m4/string_h.m4])
7719
m4_include([gnulib/m4/strndup.m4])
7720
m4_include([gnulib/m4/strnlen.m4])
7721
m4_include([gnulib/m4/strpbrk.m4])
7722
m4_include([gnulib/m4/strsep.m4])
7723
m4_include([gnulib/m4/sys_select_h.m4])
7724
m4_include([gnulib/m4/sys_socket_h.m4])
7725
m4_include([gnulib/m4/sys_stat_h.m4])
7726
m4_include([gnulib/m4/sys_time_h.m4])
7727
m4_include([gnulib/m4/unistd_h.m4])
7728
m4_include([gnulib/m4/vasnprintf.m4])
7729
m4_include([gnulib/m4/vasprintf.m4])
7730
m4_include([gnulib/m4/wchar.m4])
7489
7731
m4_include([m4/compiler-flags.m4])
7490
7732
m4_include([m4/gettext.m4])
7491
7733
m4_include([m4/iconv.m4])