Changeset 2084 for swish-e/trunk/aclocal.m4
- Timestamp:
- 03/12/08 21:24:47 (10 months ago)
- Files:
-
- swish-e/trunk/aclocal.m4 (modified) (211 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
swish-e/trunk/aclocal.m4
r1973 r2084 1 # generated automatically by aclocal 1. 9.5-*- Autoconf -*-1 # generated automatically by aclocal 1.10 -*- Autoconf -*- 2 2 3 3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4 # 2005 Free Software Foundation, Inc.4 # 2005, 2006 Free Software Foundation, Inc. 5 5 # This file is free software; the Free Software Foundation 6 6 # gives unlimited permission to copy and/or distribute it, … … 12 12 # PARTICULAR PURPOSE. 13 13 14 m4_if(m4_PACKAGE_VERSION, [2.61],, 15 [m4_fatal([this file was generated for autoconf 2.61. 16 You have another version of autoconf. If you want to use that, 17 you should regenerate the build system entirely.], [63])]) 18 14 19 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 15 20 16 # serial 47AC_PROG_LIBTOOL21 # serial 51 AC_PROG_LIBTOOL 17 22 18 23 … … 144 149 can_build_shared=yes 145 150 146 # All known linkers require a `.a' archive for static linking (except M $VC,151 # All known linkers require a `.a' archive for static linking (except MSVC, 147 152 # which needs '.lib'). 148 153 libext=a … … 164 169 test -z "$CC" && CC=cc 165 170 test -z "$LTCC" && LTCC=$CC 171 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 166 172 test -z "$DLLTOOL" && DLLTOOL=dlltool 167 173 test -z "$LD" && LD=ld … … 176 182 177 183 # Determine commands to create old-style static archives. 178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs $old_deplibs'184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 179 185 old_postinstall_cmds='chmod 644 $oldlib' 180 186 old_postuninstall_cmds= … … 183 189 case $host_os in 184 190 openbsd*) 185 old_postinstall_cmds=" \$RANLIB -t \$oldlib~$old_postinstall_cmds"191 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 186 192 ;; 187 193 *) 188 old_postinstall_cmds=" \$RANLIB \$oldlib~$old_postinstall_cmds"194 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 189 195 ;; 190 196 esac … … 233 239 # If no C compiler was specified, use CC. 234 240 LTCC=${LTCC-"$CC"} 241 242 # If no C compiler flags were specified, use CFLAGS. 243 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 235 244 236 245 # Allow CC to be a program name with arguments. … … 260 269 # the simple compiler test code. 261 270 AC_DEFUN([_LT_COMPILER_BOILERPLATE], 262 [ac_outfile=conftest.$ac_objext 263 printf "$lt_simple_compile_test_code" >conftest.$ac_ext 264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 271 [AC_REQUIRE([LT_AC_PROG_SED])dnl 272 ac_outfile=conftest.$ac_objext 273 echo "$lt_simple_compile_test_code" >conftest.$ac_ext 274 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 265 275 _lt_compiler_boilerplate=`cat conftest.err` 266 276 $rm conftest* … … 273 283 # the simple link test code. 274 284 AC_DEFUN([_LT_LINKER_BOILERPLATE], 275 [ac_outfile=conftest.$ac_objext 276 printf "$lt_simple_link_test_code" >conftest.$ac_ext 277 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err 285 [AC_REQUIRE([LT_AC_PROG_SED])dnl 286 ac_outfile=conftest.$ac_objext 287 echo "$lt_simple_link_test_code" >conftest.$ac_ext 288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 278 289 _lt_linker_boilerplate=`cat conftest.err` 279 290 $rm conftest* … … 290 301 # to the aix ld manual. 291 302 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 292 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 293 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 294 }'` 303 [AC_REQUIRE([LT_AC_PROG_SED])dnl 304 AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 305 lt_aix_libpath_sed=' 306 /Import File Strings/,/^$/ { 307 /^0/ { 308 s/^0 *\(.*\)$/\1/ 309 p 310 } 311 }' 312 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 295 313 # Check for a 64-bit object if we didn't find anything. 296 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; } 297 }'`; fi],[]) 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"` 316 fi],[]) 298 317 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 299 318 ])# _LT_AC_SYS_LIBPATH_AIX … … 360 379 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 361 380 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 362 if (echo_test_string= "`eval $cmd`") 2>/dev/null &&363 echo_test_string= "`eval $cmd`"&&381 if (echo_test_string=`eval $cmd`) 2>/dev/null && 382 echo_test_string=`eval $cmd` && 364 383 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 365 384 then … … 526 545 ;; 527 546 528 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*) 529 549 # Find out which ABI we are using. 530 550 echo 'int i;' > conftest.$ac_ext 531 551 if AC_TRY_EVAL(ac_compile); then 532 case "`/usr/bin/file conftest.o`"in552 case `/usr/bin/file conftest.o` in 533 553 *32-bit*) 534 554 case $host in 555 x86_64-*kfreebsd*-gnu) 556 LD="${LD-ld} -m elf_i386_fbsd" 557 ;; 535 558 x86_64-*linux*) 536 559 LD="${LD-ld} -m elf_i386" … … 549 572 *64-bit*) 550 573 case $host in 574 x86_64-*kfreebsd*-gnu) 575 LD="${LD-ld} -m elf_x86_64_fbsd" 576 ;; 551 577 x86_64-*linux*) 552 578 LD="${LD-ld} -m elf_x86_64" … … 581 607 fi 582 608 ;; 609 sparc*-*solaris*) 610 # Find out which ABI we are using. 611 echo 'int i;' > conftest.$ac_ext 612 if AC_TRY_EVAL(ac_compile); then 613 case `/usr/bin/file conftest.o` in 614 *64-bit*) 615 case $lt_cv_prog_gnu_ld in 616 yes*) LD="${LD-ld} -m elf64_sparc" ;; 617 *) LD="${LD-ld} -64" ;; 618 esac 619 ;; 620 esac 621 fi 622 rm -rf conftest* 623 ;; 624 583 625 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 584 626 [*-*-cygwin* | *-*-mingw* | *-*-pw32*) … … 604 646 [$2=no 605 647 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 606 printf"$lt_simple_compile_test_code" > conftest.$ac_ext648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 607 649 lt_compiler_flag="$3" 608 650 # Insert the option either (1) after the last *FLAGS variable, or … … 612 654 # The option is referenced via a variable to avoid confusing sed. 613 655 lt_compile=`echo "$ac_compile" | $SED \ 614 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 615 657 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 616 658 -e 's:$: $lt_compiler_flag:'` … … 623 665 # The compiler can only warn and ignore the option if not recognized 624 666 # So say no if there are warnings other than the usual output. 625 $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp626 $SED '/^$/d ' conftest.err >conftest.er2627 if test ! -s conftest.er r|| diff conftest.exp conftest.er2 >/dev/null; then667 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 668 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 669 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 628 670 $2=yes 629 671 fi … … 645 687 # Check whether the given compiler option works 646 688 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 647 [AC_CACHE_CHECK([$1], [$2], 689 [AC_REQUIRE([LT_AC_PROG_SED])dnl 690 AC_CACHE_CHECK([$1], [$2], 648 691 [$2=no 649 692 save_LDFLAGS="$LDFLAGS" 650 693 LDFLAGS="$LDFLAGS $3" 651 printf"$lt_simple_link_test_code" > conftest.$ac_ext694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 652 695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 653 # The compiler can only warn and ignore the option if not recognized696 # The linker can only warn and ignore the option if not recognized 654 697 # So say no if there are warnings 655 698 if test -s conftest.err; then 656 699 # Append any errors to the config.log. 657 700 cat conftest.err 1>&AS_MESSAGE_LOG_FD 658 $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp659 $SED '/^$/d ' conftest.err >conftest.er2701 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 660 703 if diff conftest.exp conftest.er2 >/dev/null; then 661 704 $2=yes … … 726 769 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 727 770 else 728 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD771 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 729 772 fi 730 773 # And add a safety zone … … 732 775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 733 776 ;; 777 778 interix*) 779 # We know the value 262144 and hardcode it with a safety zone (like BSD) 780 lt_cv_sys_max_cmd_len=196608 781 ;; 782 734 783 osf*) 735 784 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure … … 738 787 # First set a reasonable default. 739 788 lt_cv_sys_max_cmd_len=16384 740 # 789 # 741 790 if test -x /sbin/sysconfig; then 742 791 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in … … 745 794 fi 746 795 ;; 796 sco3.2v5*) 797 lt_cv_sys_max_cmd_len=102400 798 ;; 799 sysv5* | sco5v6* | sysv4.2uw2*) 800 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 801 if test -n "$kargmax"; then 802 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 803 else 804 lt_cv_sys_max_cmd_len=32768 805 fi 806 ;; 747 807 *) 748 # If test is not a shell built-in, we'll probably end up computing a 749 # maximum length that is only half of the actual maximum length, but 750 # we can't tell. 751 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 752 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 808 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 809 if test -n "$lt_cv_sys_max_cmd_len"; then 810 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 811 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 812 else 813 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 814 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 753 815 = "XX$teststring") >/dev/null 2>&1 && 754 new_result=`expr "X$teststring" : ".*" 2>&1` && 755 lt_cv_sys_max_cmd_len=$new_result && 756 test $i != 17 # 1/2 MB should be enough 757 do 758 i=`expr $i + 1` 759 teststring=$teststring$teststring 760 done 761 teststring= 762 # Add a significant safety factor because C++ compilers can tack on massive 763 # amounts of additional arguments before passing them to the linker. 764 # It appears as though 1/2 is a usable value. 765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 816 new_result=`expr "X$teststring" : ".*" 2>&1` && 817 lt_cv_sys_max_cmd_len=$new_result && 818 test $i != 17 # 1/2 MB should be enough 819 do 820 i=`expr $i + 1` 821 teststring=$teststring$teststring 822 done 823 teststring= 824 # Add a significant safety factor because C++ compilers can tack on massive 825 # amounts of additional arguments before passing them to the linker. 826 # It appears as though 1/2 is a usable value. 827 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 828 fi 766 829 ;; 767 830 esac … … 776 839 777 840 # _LT_AC_CHECK_DLFCN 778 # ------------------ --841 # ------------------ 779 842 AC_DEFUN([_LT_AC_CHECK_DLFCN], 780 843 [AC_CHECK_HEADERS(dlfcn.h)dnl … … 784 847 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 785 848 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 786 # ------------------------------------------------------------------ 849 # --------------------------------------------------------------------- 787 850 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 788 851 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 850 913 /* dlclose (self); */ 851 914 } 915 else 916 puts (dlerror ()); 852 917 853 918 exit (status); … … 855 920 EOF 856 921 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 857 (./conftest; exit; ) 2>/dev/null922 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 858 923 lt_status=$? 859 924 case x$lt_status in 860 925 x$lt_dlno_uscore) $1 ;; 861 926 x$lt_dlneed_uscore) $2 ;; 862 x$lt_ unknown|x*) $3 ;;927 x$lt_dlunknown|x*) $3 ;; 863 928 esac 864 929 else : … … 872 937 873 938 # AC_LIBTOOL_DLOPEN_SELF 874 # ------------------- 939 # ---------------------- 875 940 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 876 941 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl … … 943 1008 944 1009 save_LDFLAGS="$LDFLAGS" 945 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"1010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 946 1011 947 1012 save_LIBS="$LIBS" … … 956 1021 957 1022 if test "x$lt_cv_dlopen_self" = xyes; then 958 LDFLAGS="$LDFLAGS $link_static_flag"1023 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 959 1024 AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 960 1025 lt_cv_dlopen_self_static, [dnl … … 988 1053 # Check to see if options -c and -o are simultaneously supported by compiler 989 1054 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 990 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1055 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1056 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 991 1057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 992 1058 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], … … 996 1062 cd conftest 997 1063 mkdir out 998 printf"$lt_simple_compile_test_code" > conftest.$ac_ext1064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 999 1065 1000 1066 lt_compiler_flag="-o out/conftest2.$ac_objext" … … 1004 1070 # with a dollar sign (not a hyphen), so the echo should work correctly. 1005 1071 lt_compile=`echo "$ac_compile" | $SED \ 1006 -e 's:.*FLAGS} ?:&$lt_compiler_flag :; t' \1072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 1007 1073 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 1008 1074 -e 's:$: $lt_compiler_flag:'` … … 1016 1082 # The compiler can only warn and ignore the option if not recognized 1017 1083 # So say no if there are warnings 1018 $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp1019 $SED '/^$/d ' out/conftest.err >out/conftest.er21020 if test ! -s out/conftest.er r|| diff out/conftest.exp out/conftest.er2 >/dev/null; then1084 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 1085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 1086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 1021 1087 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 1022 1088 fi 1023 1089 fi 1024 chmod u+w . 1090 chmod u+w . 2>&AS_MESSAGE_LOG_FD 1025 1091 $rm conftest* 1026 1092 # SGI C++ compiler will create directory out/ii_files/ for … … 1136 1202 if test -n "$STRIP" ; then 1137 1203 striplib="$STRIP -x" 1204 old_striplib="$STRIP -S" 1138 1205 AC_MSG_RESULT([yes]) 1139 1206 else … … 1153 1220 # PORTME Fill in your ld.so characteristics 1154 1221 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 1155 [AC_MSG_CHECKING([dynamic linker characteristics]) 1222 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1223 AC_MSG_CHECKING([dynamic linker characteristics]) 1156 1224 library_names_spec= 1157 1225 libname_spec='lib$name' … … 1167 1235 dynamic_linker="$host_os ld.so" 1168 1236 sys_lib_dlsearch_path_spec="/lib /usr/lib" 1237 m4_if($1,[],[ 1169 1238 if test "$GCC" = yes; then 1170 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1171 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 1239 case $host_os in 1240 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 1241 *) lt_awk_arg="/^libraries:/" ;; 1242 esac 1243 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 1244 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 1172 1245 # if the path contains ";" then we assume it to be the separator 1173 1246 # otherwise default to the standard path separator (i.e. ":") - it is 1174 1247 # assumed that no part of a normal pathname contains ";" but that should 1175 1248 # okay in the real world where ";" in dirpaths is itself problematic. 1176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`1249 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 1177 1250 else 1178 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`1251 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 1179 1252 fi 1253 # Ok, now we have the path, separated by spaces, we can step through it 1254 # and add multilib dir if necessary. 1255 lt_tmp_lt_search_path_spec= 1256 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 1257 for lt_sys_path in $lt_search_path_spec; do 1258 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 1259 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 1260 else 1261 test -d "$lt_sys_path" && \ 1262 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 1263 fi 1264 done 1265 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 1266 BEGIN {RS=" "; FS="/|\n";} { 1267 lt_foo=""; 1268 lt_count=0; 1269 for (lt_i = NF; lt_i > 0; lt_i--) { 1270 if ($lt_i != "" && $lt_i != ".") { 1271 if ($lt_i == "..") { 1272 lt_count++; 1273 } else { 1274 if (lt_count == 0) { 1275 lt_foo="/" $lt_i lt_foo; 1276 } else { 1277 lt_count--; 1278 } 1279 } 1280 } 1281 } 1282 if (lt_foo != "") { lt_freq[[lt_foo]]++; } 1283 if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 1284 }'` 1285 sys_lib_search_path_spec=`echo $lt_search_path_spec` 1180 1286 else 1181 1287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 1182 fi 1288 fi]) 1183 1289 need_lib_prefix=unknown 1184 1290 hardcode_into_libs=no … … 1282 1388 dldir=$destdir/`dirname \$dlpath`~ 1283 1389 test -d \$dldir || mkdir -p \$dldir~ 1284 $install_prog $dir/$dlname \$dldir/$dlname' 1390 $install_prog $dir/$dlname \$dldir/$dlname~ 1391 chmod a+x \$dldir/$dlname' 1285 1392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 1286 1393 dlpath=$dir/\$dldll~ … … 1335 1442 shlibpath_overrides_runpath=yes 1336 1443 shlibpath_var=DYLD_LIBRARY_PATH 1337 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 1338 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 1339 if test "$GCC" = yes; then 1340 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"` 1341 else 1342 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 1343 fi 1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 1445 m4_if([$1], [],[ 1446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 1344 1447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 1345 1448 ;; … … 1358 1461 ;; 1359 1462 1360 kfreebsd*-gnu)1361 version_type=linux1362 need_lib_prefix=no1363 need_version=no1364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1365 soname_spec='${libname}${release}${shared_ext}$major'1366 shlibpath_var=LD_LIBRARY_PATH1367 shlibpath_overrides_runpath=no1368 hardcode_into_libs=yes1369 dynamic_linker='GNU ld.so'1370 ;;1371 1372 1463 freebsd* | dragonfly*) 1373 1464 # DragonFly does not have aout. When/if they implement a new 1374 1465 # versioning mechanism, adjust this. 1375 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 1466 if test -x /usr/bin/objformat; then 1467 objformat=`/usr/bin/objformat` 1468 else 1469 case $host_os in 1470 freebsd[[123]]*) objformat=aout ;; 1471 *) objformat=elf ;; 1472 esac 1473 fi 1376 1474 version_type=freebsd-$objformat 1377 1475 case $version_type in … … 1395 1493 hardcode_into_libs=yes 1396 1494 ;; 1397 *) # from 3.2 on 1495 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 1496 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 1398 1497 shlibpath_overrides_runpath=no 1498 hardcode_into_libs=yes 1499 ;; 1500 *) # from 4.6 on, and DragonFly 1501 shlibpath_overrides_runpath=yes 1399 1502 hardcode_into_libs=yes 1400 1503 ;; … … 1418 1521 need_lib_prefix=no 1419 1522 need_version=no 1420 case "$host_cpu"in1523 case $host_cpu in 1421 1524 ia64*) 1422 1525 shrext_cmds='.so' … … 1458 1561 ;; 1459 1562 1563 interix[[3-9]]*) 1564 version_type=linux 1565 need_lib_prefix=no 1566 need_version=no 1567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 1568 soname_spec='${libname}${release}${shared_ext}$major' 1569 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 1570 shlibpath_var=LD_LIBRARY_PATH 1571 shlibpath_overrides_runpath=no 1572 hardcode_into_libs=yes 1573 ;; 1574 1460 1575 irix5* | irix6* | nonstopux*) 1461 1576 case $host_os in … … 1501 1616 1502 1617 # This must be Linux ELF. 1503 linux* )1618 linux* | k*bsd*-gnu) 1504 1619 version_type=linux 1505 1620 need_lib_prefix=no … … 1515 1630 hardcode_into_libs=yes 1516 1631 1517 # find out which ABI we are using1518 libsuff=1519 case "$host_cpu" in1520 x86_64*|s390x*|powerpc64*)1521 echo '[#]line __oline__ "configure"' > conftest.$ac_ext1522 if AC_TRY_EVAL(ac_compile); then1523 case `/usr/bin/file conftest.$ac_objext` in1524 *64-bit*)1525 libsuff=641526 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"1527 ;;1528 esac1529 fi1530 rm -rf conftest*1531 ;;1532 esac1533 1534 1632 # Append ld.so.conf contents to the search path 1535 1633 if test -f /etc/ld.so.conf; then 1536 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s ", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`1537 sys_lib_dlsearch_path_spec="/lib ${libsuff} /usr/lib${libsuff}$lt_ld_extra"1634 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' ' '` 1635 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 1538 1636 fi 1539 1637 … … 1545 1643 # assume the GNU/Linux dynamic linker is in use. 1546 1644 dynamic_linker='GNU/Linux ld.so' 1547 ;;1548 1549 knetbsd*-gnu)1550 version_type=linux1551 need_lib_prefix=no1552 need_version=no1553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'1554 soname_spec='${libname}${release}${shared_ext}$major'1555 shlibpath_var=LD_LIBRARY_PATH1556 shlibpath_overrides_runpath=no1557 hardcode_into_libs=yes1558 dynamic_linker='GNU ld.so'1559 1645 ;; 1560 1646 … … 1596 1682 openbsd*) 1597 1683 version_type=sunos 1684 sys_lib_dlsearch_path_spec="/usr/lib" 1598 1685 need_lib_prefix=no 1599 need_version=no 1686 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 1687 case $host_os in 1688 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 1689 *) need_version=no ;; 1690 esac 1600 1691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 1601 1692 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' … … 1635 1726 ;; 1636 1727 1637 sco3.2v5*) 1638 version_type=osf 1639 soname_spec='${libname}${release}${shared_ext}$major' 1640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 1641 shlibpath_var=LD_LIBRARY_PATH 1728 rdos*) 1729 dynamic_linker=no 1642 1730 ;; 1643 1731 … … 1667 1755 ;; 1668 1756 1669 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)1757 sysv4 | sysv4.3*) 1670 1758 version_type=linux 1671 1759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' … … 1700 1788 ;; 1701 1789 1790 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 1791 version_type=freebsd-elf 1792 need_lib_prefix=no 1793 need_version=no 1794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 1795 soname_spec='${libname}${release}${shared_ext}$major' 1796 shlibpath_var=LD_LIBRARY_PATH 1797 hardcode_into_libs=yes 1798 if test "$with_gnu_ld" = yes; then 1799 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 1800 shlibpath_overrides_runpath=no 1801 else 1802 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 1803 shlibpath_overrides_runpath=yes 1804 case $host_os in 1805 sco3.2v5*) 1806 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 1807 ;; 1808 esac 1809 fi 1810 sys_lib_dlsearch_path_spec='/usr/lib' 1811 ;; 1812 1702 1813 uts4*) 1703 1814 version_type=linux … … 1713 1824 AC_MSG_RESULT([$dynamic_linker]) 1714 1825 test "$dynamic_linker" = no && can_build_shared=no 1826 1827 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 1828 if test "$GCC" = yes; then 1829 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 1830 fi 1715 1831 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 1716 1832 … … 1719 1835 # ---------------- 1720 1836 AC_DEFUN([_LT_AC_TAGCONFIG], 1721 [AC_ARG_WITH([tags], 1837 [AC_REQUIRE([LT_AC_PROG_SED])dnl 1838 AC_ARG_WITH([tags], 1722 1839 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 1723 1840 [include additional configurations @<:@automatic@:>@])], … … 1736 1853 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 1737 1854 fi 1855 fi 1856 if test -z "$LTCFLAGS"; then 1857 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 1738 1858 fi 1739 1859 … … 1827 1947 # AC_LIBTOOL_WIN32_DLL 1828 1948 # -------------------- 1829 # declare package support for building win32 dll's1949 # declare package support for building win32 DLLs 1830 1950 AC_DEFUN([AC_LIBTOOL_WIN32_DLL], 1831 1951 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) … … 1865 1985 # AC_DISABLE_SHARED 1866 1986 # ----------------- 1867 # -set the default shared flag to --disable-shared1987 # set the default shared flag to --disable-shared 1868 1988 AC_DEFUN([AC_DISABLE_SHARED], 1869 1989 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 1977 2097 # AC_PATH_TOOL_PREFIX 1978 2098 # ------------------- 1979 # find a file program which can recogni se shared library2099 # find a file program which can recognize shared library 1980 2100 AC_DEFUN([AC_PATH_TOOL_PREFIX], 1981 2101 [AC_REQUIRE([AC_PROG_EGREP])dnl … … 2001 2121 case $deplibs_check_method in 2002 2122 "file_magic "*) 2003 file_magic_regex= "`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"2123 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 2004 2124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 2005 2125 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | … … 2040 2160 # AC_PATH_MAGIC 2041 2161 # ------------- 2042 # find a file program which can recogni se a shared library2162 # find a file program which can recognize a shared library 2043 2163 AC_DEFUN([AC_PATH_MAGIC], 2044 2164 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) … … 2111 2231 lt_cv_path_LD="$ac_dir/$ac_prog" 2112 2232 # Check to see if the program is GNU ld. I'd rather use --version, 2113 # but apparently some GNU ld'sonly accept -v.2233 # but apparently some variants of GNU ld only accept -v. 2114 2234 # Break only if it was the GNU/non-GNU ld that we prefer. 2115 2235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in … … 2143 2263 [AC_REQUIRE([AC_PROG_EGREP])dnl 2144 2264 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 2145 [# I'd rather use --version here, but apparently some GNU ld 's only accept -v.2265 [# I'd rather use --version here, but apparently some GNU lds only accept -v. 2146 2266 case `$LD -v 2>&1 </dev/null` in 2147 2267 *GNU* | *'with BFD'*) … … 2173 2293 darwin*) 2174 2294 if test "$GCC" = yes; then 2175 reload_cmds='$ CC-nostdlib ${wl}-r -o $output$reload_objs'2295 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 2176 2296 else 2177 2297 reload_cmds='$LD$reload_flag -o $output$reload_objs' … … 2187 2307 # -- PORTME fill in with the dynamic library characteristics 2188 2308 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 2189 [AC_CACHE_CHECK([how to recogni se dependent libraries],2309 [AC_CACHE_CHECK([how to recognize dependent libraries], 2190 2310 lt_cv_deplibs_check_method, 2191 2311 [lt_cv_file_magic_cmd='$MAGIC_CMD' … … 2226 2346 mingw* | pw32*) 2227 2347 # Base MSYS/MinGW do not provide the 'file' command needed by 2228 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 2229 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2230 lt_cv_file_magic_cmd='$OBJDUMP -f' 2348 # func_win32_libid shell function, so use a weaker test based on 'objdump', 2349 # unless we find 'file', for example because we are cross-compiling. 2350 if ( file / ) >/dev/null 2>&1; then 2351 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 2352 lt_cv_file_magic_cmd='func_win32_libid' 2353 else 2354 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 2355 lt_cv_file_magic_cmd='$OBJDUMP -f' 2356 fi 2231 2357 ;; 2232 2358 … … 2235 2361 ;; 2236 2362 2237 freebsd* | kfreebsd*-gnu |dragonfly*)2363 freebsd* | dragonfly*) 2238 2364 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 2239 2365 case $host_cpu in … … 2257 2383 hpux10.20* | hpux11*) 2258 2384 lt_cv_file_magic_cmd=/usr/bin/file 2259 case "$host_cpu"in2385 case $host_cpu in 2260 2386 ia64*) 2261 2387 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' … … 2271 2397 ;; 2272 2398 esac 2399 ;; 2400 2401 interix[[3-9]]*) 2402 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 2403 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 2273 2404 ;; 2274 2405 … … 2284 2415 2285 2416 # This must be Linux ELF. 2286 linux* )2417 linux* | k*bsd*-gnu) 2287 2418 lt_cv_deplibs_check_method=pass_all 2288 2419 ;; … … 2318 2449 ;; 2319 2450 2320 sco3.2v5*)2451 rdos*) 2321 2452 lt_cv_deplibs_check_method=pass_all 2322 2453 ;; … … 2326 2457 ;; 2327 2458 2328 sysv4 | sysv4. 2uw2* | sysv4.3* | sysv5*)2459 sysv4 | sysv4.3*) 2329 2460 case $host_vendor in 2330 2461 motorola) … … 2347 2478 lt_cv_deplibs_check_method=pass_all 2348 2479 ;; 2480 pc) 2481 lt_cv_deplibs_check_method=pass_all 2482 ;; 2349 2483 esac 2350 2484 ;; 2351 2485 2352 sysv5 OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)2486 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 2353 2487 lt_cv_deplibs_check_method=pass_all 2354 2488 ;; … … 2370 2504 lt_cv_path_NM="$NM" 2371 2505 else 2372 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2373 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 2374 IFS="$lt_save_ifs" 2375 test -z "$ac_dir" && ac_dir=. 2376 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 2377 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2378 # Check to see if the nm accepts a BSD-compat flag. 2379 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2380 # nm: unknown option "B" ignored 2381 # Tru64's nm complains that /dev/null is an invalid object file 2382 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2383 */dev/null* | *'Invalid file or object type'*) 2384 lt_cv_path_NM="$tmp_nm -B" 2385 break 2386 ;; 2387 *) 2388 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2389 */dev/null*) 2390 lt_cv_path_NM="$tmp_nm -p" 2506 lt_nm_to_check="${ac_tool_prefix}nm" 2507 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 2508 lt_nm_to_check="$lt_nm_to_check nm" 2509 fi 2510 for lt_tmp_nm in $lt_nm_to_check; do 2511 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 2512 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 2513 IFS="$lt_save_ifs" 2514 test -z "$ac_dir" && ac_dir=. 2515 tmp_nm="$ac_dir/$lt_tmp_nm" 2516 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 2517 # Check to see if the nm accepts a BSD-compat flag. 2518 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 2519 # nm: unknown option "B" ignored 2520 # Tru64's nm complains that /dev/null is an invalid object file 2521 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 2522 */dev/null* | *'Invalid file or object type'*) 2523 lt_cv_path_NM="$tmp_nm -B" 2391 2524 break 2392 2525 ;; 2393 2526 *) 2394 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2395 continue # so that we can try to find one that supports BSD flags 2527 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 2528 */dev/null*) 2529 lt_cv_path_NM="$tmp_nm -p" 2530 break 2531 ;; 2532 *) 2533 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 2534 continue # so that we can try to find one that supports BSD flags 2535 ;; 2536 esac 2396 2537 ;; 2397 2538 esac 2398 esac 2399 fi 2539 fi 2540 done 2541 IFS="$lt_save_ifs" 2400 2542 done 2401 IFS="$lt_save_ifs"2402 2543 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 2403 2544 fi]) … … 2431 2572 # sets LIBLTDL to the link flags for the libltdl convenience library and 2432 2573 # LTDLINCL to the include flags for the libltdl header and adds 2433 # --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL2434 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2435 # DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will2436 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with2437 # '${top_srcdir}/' (note the single quotes!). If your package isnot2438 # flat and you're not using automake, define top_builddir and2439 # t op_srcdir appropriately in the Makefiles.2574 # --enable-ltdl-convenience to the configure arguments. Note that 2575 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2576 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with 2577 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 2578 # (note the single quotes!). If your package is not flat and you're not 2579 # using automake, define top_builddir and top_srcdir appropriately in 2580 # the Makefiles. 2440 2581 AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 2441 2582 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl … … 2456 2597 # sets LIBLTDL to the link flags for the libltdl installable library and 2457 2598 # LTDLINCL to the include flags for the libltdl header and adds 2458 # --enable-ltdl-install to the configure arguments. Note that LIBLTDL2459 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If2460 # DIRECTORY is not provided and an installed libltdl is not found, it is2461 # assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'2462 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single2463 # quotes!). If your package is not flat and you're not using automake,2464 # define top_builddir and top_srcdirappropriately in the Makefiles.2599 # --enable-ltdl-install to the configure arguments. Note that 2600 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 2601 # and an installed libltdl is not found, it is assumed to be `libltdl'. 2602 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 2603 # '${top_srcdir}/' (note the single quotes!). If your package is not 2604 # flat and you're not using automake, define top_builddir and top_srcdir 2605 # appropriately in the Makefiles. 2465 2606 # In the future, this macro may have to be called after AC_PROG_LIBTOOL. 2466 2607 AC_DEFUN([AC_LIBLTDL_INSTALLABLE], … … 2505 2646 2506 2647 # _LT_AC_PROG_CXXCPP 2507 # --------------- 2648 # ------------------ 2508 2649 AC_DEFUN([_LT_AC_PROG_CXXCPP], 2509 2650 [ … … 2554 2695 2555 2696 # AC_LIBTOOL_RC 2556 # ------------- -2697 # ------------- 2557 2698 # enable support for Windows resource files 2558 2699 AC_DEFUN([AC_LIBTOOL_RC], … … 2580 2721 2581 2722 # Code to be used in simple compile tests 2582 lt_simple_compile_test_code="int some_variable = 0; \n"2723 lt_simple_compile_test_code="int some_variable = 0;" 2583 2724 2584 2725 # Code to be used in simple link tests 2585 lt_simple_link_test_code='int main(){return(0);} \n'2726 lt_simple_link_test_code='int main(){return(0);}' 2586 2727 2587 2728 _LT_AC_SYS_COMPILER … … 2590 2731 _LT_COMPILER_BOILERPLATE 2591 2732 _LT_LINKER_BOILERPLATE 2592 2593 #2594 # Check for any special shared library compilation flags.2595 #2596 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=2597 if test "$GCC" = no; then2598 case $host_os in2599 sco3.2v5*)2600 _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'2601 ;;2602 esac2603 fi2604 if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then2605 AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])2606 if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :2607 else2608 AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])2609 _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no2610 fi2611 fi2612 2613 2614 #2615 # Check to make sure the static flag actually works.2616 #2617 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],2618 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),2619 $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),2620 [],2621 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])2622 2623 2733 2624 2734 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) … … 2630 2740 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 2631 2741 AC_LIBTOOL_SYS_LIB_STRIP 2632 AC_LIBTOOL_DLOPEN_SELF ($1)2633 2634 # Report which librar ie types wil actually be built2742 AC_LIBTOOL_DLOPEN_SELF 2743 2744 # Report which library types will actually be built 2635 2745 AC_MSG_CHECKING([if libtool supports shared libraries]) 2636 2746 AC_MSG_RESULT([$can_build_shared]) … … 2641 2751 # On AIX, shared libraries and static libraries use the same namespace, and 2642 2752 # are all built from PIC. 2643 case "$host_os"in2753 case $host_os in 2644 2754 aix3*) 2645 2755 test "$enable_shared" = yes && enable_static=no … … 2691 2801 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 2692 2802 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 2803 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 2693 2804 _LT_AC_TAGVAR(hardcode_automatic, $1)=no 2694 2805 _LT_AC_TAGVAR(module_cmds, $1)= … … 2708 2819 2709 2820 # Source file extension for C++ test sources.
