Changeset 1881

Show
Ignore:
Timestamp:
07/18/07 21:08:43 (18 months ago)
Author:
aturner
Message:

updated autotools refs #188

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/aclocal.m4

    r1738 r1881  
    1919# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 
    2020 
    21 # serial 48 AC_PROG_LIBTOOL 
     21# serial 51 AC_PROG_LIBTOOL 
    2222 
    2323 
     
    182182 
    183183# Determine commands to create old-style static archives. 
    184 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 
     184old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 
    185185old_postinstall_cmds='chmod 644 $oldlib' 
    186186old_postuninstall_cmds= 
     
    269269# the simple compiler test code. 
    270270AC_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 
     272ac_outfile=conftest.$ac_objext 
     273echo "$lt_simple_compile_test_code" >conftest.$ac_ext 
    273274eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 
    274275_lt_compiler_boilerplate=`cat conftest.err` 
     
    282283# the simple link test code. 
    283284AC_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 
     286ac_outfile=conftest.$ac_objext 
     287echo "$lt_simple_link_test_code" >conftest.$ac_ext 
    286288eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 
    287289_lt_linker_boilerplate=`cat conftest.err` 
     
    299301# to the aix ld manual. 
    300302AC_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 }'` 
     303[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     304AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 
     305lt_aix_libpath_sed=' 
     306    /Import File Strings/,/^$/ { 
     307        /^0/ { 
     308            s/^0  *\(.*\)$/\1/ 
     309            p 
     310        } 
     311    }' 
     312aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 
    304313# 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; } 
    306 }'`; fi],[]) 
     314if test -z "$aix_libpath"; then 
     315  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 
     316fi],[]) 
    307317if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 
    308318])# _LT_AC_SYS_LIBPATH_AIX 
     
    535545  ;; 
    536546 
    537 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 
     547x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 
     548s390*-*linux*|sparc*-*linux*) 
    538549  # Find out which ABI we are using. 
    539550  echo 'int i;' > conftest.$ac_ext 
     
    542553    *32-bit*) 
    543554      case $host in 
     555        x86_64-*kfreebsd*-gnu) 
     556          LD="${LD-ld} -m elf_i386_fbsd" 
     557          ;; 
    544558        x86_64-*linux*) 
    545559          LD="${LD-ld} -m elf_i386" 
     
    558572    *64-bit*) 
    559573      case $host in 
     574        x86_64-*kfreebsd*-gnu) 
     575          LD="${LD-ld} -m elf_x86_64_fbsd" 
     576          ;; 
    560577        x86_64-*linux*) 
    561578          LD="${LD-ld} -m elf_x86_64" 
     
    629646  [$2=no 
    630647  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 
    631    printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
     648   echo "$lt_simple_compile_test_code" > conftest.$ac_ext 
    632649   lt_compiler_flag="$3" 
    633650   # Insert the option either (1) after the last *FLAGS variable, or 
     
    670687# Check whether the given compiler option works 
    671688AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 
    672 [AC_CACHE_CHECK([$1], [$2], 
     689[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     690AC_CACHE_CHECK([$1], [$2], 
    673691  [$2=no 
    674692   save_LDFLAGS="$LDFLAGS" 
    675693   LDFLAGS="$LDFLAGS $3" 
    676    printf "$lt_simple_link_test_code" > conftest.$ac_ext 
     694   echo "$lt_simple_link_test_code" > conftest.$ac_ext 
    677695   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 
    678696     # The linker can only warn and ignore the option if not recognized 
     
    788806    ;; 
    789807  *) 
    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 
    792     # we can't tell. 
    793     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 
    794     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` \ 
    795815               = "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 
    799     do 
    800       i=`expr $i + 1` 
    801       teststring=$teststring$teststring 
    802     done 
    803     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` 
     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 
    808829    ;; 
    809830  esac 
     
    10321053# Check to see if options -c and -o are simultaneously supported by compiler 
    10331054AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 
    1034 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 
     1055[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1056AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 
    10351057AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 
    10361058  [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 
     
    10401062   cd conftest 
    10411063   mkdir out 
    1042    printf "$lt_simple_compile_test_code" > conftest.$ac_ext 
     1064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext 
    10431065 
    10441066   lt_compiler_flag="-o out/conftest2.$ac_objext" 
     
    11801202       if test -n "$STRIP" ; then 
    11811203         striplib="$STRIP -x" 
     1204         old_striplib="$STRIP -S" 
    11821205         AC_MSG_RESULT([yes]) 
    11831206       else 
     
    11971220# PORTME Fill in your ld.so characteristics 
    11981221AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 
    1199 [AC_MSG_CHECKING([dynamic linker characteristics]) 
     1222[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1223AC_MSG_CHECKING([dynamic linker characteristics]) 
    12001224library_names_spec= 
    12011225libname_spec='lib$name' 
     
    12111235dynamic_linker="$host_os ld.so" 
    12121236sys_lib_dlsearch_path_spec="/lib /usr/lib" 
     1237m4_if($1,[],[ 
    12131238if 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 
     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 
    12161245    # if the path contains ";" then we assume it to be the separator 
    12171246    # otherwise default to the standard path separator (i.e. ":") - it is 
    12181247    # assumed that no part of a normal pathname contains ";" but that should 
    12191248    # 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'` 
     1249    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 
    12211250  else 
    1222     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"` 
    12231252  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 ' 
     1266BEGIN {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` 
    12241286else 
    12251287  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 
    1226 fi 
     1288fi]) 
    12271289need_lib_prefix=unknown 
    12281290hardcode_into_libs=no 
     
    13811443  shlibpath_var=DYLD_LIBRARY_PATH 
    13821444  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"` 
    1386   else 
    1387     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 
    1388   fi 
     1445  m4_if([$1], [],[ 
     1446  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])  
    13891447  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 
    13901448  ;; 
     
    14011459freebsd1*) 
    14021460  dynamic_linker=no 
    1403   ;; 
    1404  
    1405 kfreebsd*-gnu) 
    1406   version_type=linux 
    1407   need_lib_prefix=no 
    1408   need_version=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' 
    14151461  ;; 
    14161462 
     
    14521498    hardcode_into_libs=yes 
    14531499    ;; 
    1454   freebsd*) # from 4.6 on 
     1500  *) # from 4.6 on, and DragonFly 
    14551501    shlibpath_overrides_runpath=yes 
    14561502    hardcode_into_libs=yes 
     
    15151561  ;; 
    15161562 
    1517 interix3*) 
     1563interix[[3-9]]*) 
    15181564  version_type=linux 
    15191565  need_lib_prefix=no 
     
    15701616 
    15711617# This must be Linux ELF. 
    1572 linux*) 
     1618linux* | k*bsd*-gnu) 
    15731619  version_type=linux 
    15741620  need_lib_prefix=no 
     
    15861632  # Append ld.so.conf contents to the search path 
    15871633  if test -f /etc/ld.so.conf; then 
    1588     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/[:,    ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 
     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' ' '` 
    15891635    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 
    15901636  fi 
     
    15971643  # assume the GNU/Linux dynamic linker is in use. 
    15981644  dynamic_linker='GNU/Linux ld.so' 
    1599   ;; 
    1600  
    1601 knetbsd*-gnu) 
    1602   version_type=linux 
    1603   need_lib_prefix=no 
    1604   need_version=no 
    1605   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 
    1606   soname_spec='${libname}${release}${shared_ext}$major' 
    1607   shlibpath_var=LD_LIBRARY_PATH 
    1608   shlibpath_overrides_runpath=no 
    1609   hardcode_into_libs=yes 
    1610   dynamic_linker='GNU ld.so' 
    16111645  ;; 
    16121646 
     
    16921726  ;; 
    16931727 
     1728rdos*) 
     1729  dynamic_linker=no 
     1730  ;; 
     1731 
    16941732solaris*) 
    16951733  version_type=linux 
     
    17971835# ---------------- 
    17981836AC_DEFUN([_LT_AC_TAGCONFIG], 
    1799 [AC_ARG_WITH([tags], 
     1837[AC_REQUIRE([LT_AC_PROG_SED])dnl 
     1838AC_ARG_WITH([tags], 
    18001839    [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 
    18011840        [include additional configurations @<:@automatic@:>@])], 
     
    20582097# AC_PATH_TOOL_PREFIX 
    20592098# ------------------- 
    2060 # find a file program which can recognise shared library 
     2099# find a file program which can recognize shared library 
    20612100AC_DEFUN([AC_PATH_TOOL_PREFIX], 
    20622101[AC_REQUIRE([AC_PROG_EGREP])dnl 
     
    21212160# AC_PATH_MAGIC 
    21222161# ------------- 
    2123 # find a file program which can recognise a shared library 
     2162# find a file program which can recognize a shared library 
    21242163AC_DEFUN([AC_PATH_MAGIC], 
    21252164[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 
     
    22682307#  -- PORTME fill in with the dynamic library characteristics 
    22692308AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 
    2270 [AC_CACHE_CHECK([how to recognise dependent libraries], 
     2309[AC_CACHE_CHECK([how to recognize dependent libraries], 
    22712310lt_cv_deplibs_check_method, 
    22722311[lt_cv_file_magic_cmd='$MAGIC_CMD' 
     
    23072346mingw* | pw32*) 
    23082347  # Base MSYS/MinGW do not provide the 'file' command needed by 
    2309   # func_win32_libid shell function, so use a weaker test based on 'objdump'. 
    2310   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 
    2311   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 
    23122357  ;; 
    23132358 
     
    23162361  ;; 
    23172362 
    2318 freebsd* | kfreebsd*-gnu | dragonfly*) 
     2363freebsd* | dragonfly*) 
    23192364  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 
    23202365    case $host_cpu in 
     
    23542399  ;; 
    23552400 
    2356 interix3*) 
     2401interix[[3-9]]*) 
    23572402  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 
    23582403  lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 
     
    23702415 
    23712416# This must be Linux ELF. 
    2372 linux*) 
     2417linux* | k*bsd*-gnu) 
    23732418  lt_cv_deplibs_check_method=pass_all 
    23742419  ;; 
     
    24012446 
    24022447osf3* | osf4* | osf5*) 
     2448  lt_cv_deplibs_check_method=pass_all 
     2449  ;; 
     2450 
     2451rdos*) 
    24032452  lt_cv_deplibs_check_method=pass_all 
    24042453  ;; 
     
    24562505else 
    24572506  lt_nm_to_check="${ac_tool_prefix}nm" 
    2458   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then  
     2507  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 
    24592508    lt_nm_to_check="$lt_nm_to_check nm" 
    24602509  fi 
     
    26722721 
    26732722# Code to be used in simple compile tests 
    2674 lt_simple_compile_test_code="int some_variable = 0;\n" 
     2723lt_simple_compile_test_code="int some_variable = 0;" 
    26752724 
    26762725# Code to be used in simple link tests 
    2677 lt_simple_link_test_code='int main(){return(0);}\n' 
     2726lt_simple_link_test_code='int main(){return(0);}' 
    26782727 
    26792728_LT_AC_SYS_COMPILER 
     
    27772826 
    27782827# Code to be used in simple compile tests 
    2779 lt_simple_compile_test_code="int some_variable = 0;\n" 
     2828lt_simple_compile_test_code="int some_variable = 0;" 
    27802829 
    27812830# Code to be used in simple link tests 
    2782 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 
     2831lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 
    27832832 
    27842833# ltmain only uses $CC for tagged configurations so make sure $CC is set. 
     
    29262975        then 
    29272976          # We have reworked collect2 
    2928           _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
     2977          : 
    29292978        else 
    29302979          # We have old collect2 
     
    30853134        xlc*) 
    30863135         output_verbose_link_cmd='echo' 
    3087           _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' 
     3136          _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' 
    30883137          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 
    30893138          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 
    3090           _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}' 
     3139          _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}' 
    30913140          _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}' 
    30923141          ;; 
     
    31223171    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 
    31233172    ;; 
    3124   freebsd* | kfreebsd*-gnu | dragonfly*) 
     3173  freebsd* | dragonfly*) 
    31253174    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 
    31263175    # conventions 
     
    31713220 
    31723221      case $host_cpu in 
    3173       hppa*64*|ia64*) 
    3174         _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 
    3175         ;; 
     3222      hppa*64*|ia64*) ;; 
    31763223      *) 
    31773224        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
     
    32413288    esac 
    32423289    ;; 
    3243   interix3*) 
     3290  interix[[3-9]]*) 
    32443291    _LT_AC_TAGVAR(hardcode_direct, $1)=no 
    32453292    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
     
    32813328    _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 
    32823329    ;; 
    3283   linux*) 
     3330  linux* | k*bsd*-gnu) 
    32843331    case $cc_basename in 
    32853332      KCC*) 
     
    33613408        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' 
    33623409        ;; 
     3410      *) 
     3411        case `$CC -V 2>&1 | sed 5q` in 
     3412        *Sun\ C*) 
     3413          # Sun C++ 5.9 
     3414          _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 
     3415          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 
     3416          _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' 
     3417          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 
     3418          _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' 
     3419 
     3420          # Not sure whether something based on 
     3421          # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 
     3422          # would be better. 
     3423          output_verbose_link_cmd='echo' 
     3424 
     3425          # Archives containing C++ object files must be created using 
     3426          # "CC -xar", where "CC" is the Sun C++ compiler.  This is 
     3427          # necessary to make sure instantiated templates are included 
     3428          # in the archive. 
     3429          _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 
     3430          ;; 
     3431        esac 
     3432        ;; 
    33633433    esac 
    33643434    ;; 
     
    33993469    ;; 
    34003470  openbsd*) 
    3401     _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
    3402     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
    3403     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 
    3404     _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 
    3405     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
    3406       _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' 
    3407       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
    3408       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 
     3471    if test -f /usr/libexec/ld.so; then 
     3472      _LT_AC_TAGVAR(hardcode_direct, $1)=yes 
     3473      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 
     3474      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 
     3475      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 
     3476      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 
     3477        _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' 
     3478        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 
     3479        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 
     3480      fi 
     3481      output_verbose_link_cmd='echo' 
     3482    else 
     3483      _LT_AC_TAGVAR(ld_shlibs, $1)=no 
    34093484    fi 
    3410     output_verbose_link_cmd='echo' 
    34113485    ;; 
    34123486  osf3*) 
     
    35703644          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 
    35713645          *) 
    3572             # The C++ compiler is used as linker so we must use $wl 
    3573             # flag to pass the commands to the underlying system 
    3574             # linker. We must also pass each convience library through 
    3575             # to the system linker between allextract/defaultextract. 
    3576             # The C++ compiler will combine linker options so we 
    3577             # cannot just pass the convience library names through 
    3578             # without $wl. 
     3646            # The compiler driver will combine and reorder linker options, 
     3647            # but understands `-z linker_flag'. 
    35793648            # Supported since Solaris 2.6 (maybe 2.5.1?) 
    3580             _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' 
     3649            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 
    35813650            ;; 
    35823651        esac 
     
    36253694 
    36263695          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 
     3696          case $host_os in 
     3697          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 
     3698          *) 
     3699            _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 
     3700            ;; 
     3701          esac 
    36273702        fi 
    36283703        ;; 
     
    38683943ifelse([$1],[CXX], 
    38693944[case $host_os in 
    3870 interix3*) 
     3945interix[[3-9]]*) 
    38713946  # Interix 3.5 installs completely hosed .la files for C++, so rather than 
    38723947  # hack all around it, let's just trust "g++" to DTRT. 
     
    38763951  ;; 
    38773952 
     3953linux*) 
     3954  case `$CC -V 2>&1 | sed 5q` in 
     3955  *Sun\ C*) 
     3956    # Sun C++ 5.9 
     3957    # 
     3958    # The more standards-conforming stlport4 library is 
     3959    # incompatible with the Cstd library. Avoid specifying 
     3960    # it if it's in CXXFLAGS. Ignore libCrun as 
     3961    # -library=stlport4 depends on it. 
     3962    case " $CXX $CXXFLAGS " in 
     3963    *" -library=stlport4 "*) 
     3964      solaris_use_stlport4=yes 
     3965      ;; 
     3966    esac 
     3967    if test "$solaris_use_stlport4" != yes; then 
     3968      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 
     3969    fi 
     3970    ;; 
     3971  esac 
     3972  ;; 
     3973 
    38783974solaris*) 
    38793975  case $cc_basename in 
    38803976  CC*) 
     3977    # The more standards-conforming stlport4 library is 
     3978    # incompatible with the Cstd library. Avoid specifying 
     3979    # it if it's in CXXFLAGS. Ignore libCrun as 
     3980    # -library=stlport4 depends on it. 
     3981    case " $CXX $CXXFLAGS " in 
     3982    *" -library=stlport4 "*) 
     3983      solaris_use_stlport4=yes 
     3984      ;; 
     3985    esac 
     3986 
    38813987    # Adding this requires a known-good setup of shared libraries for 
    38823988    # Sun compiler versions before 5.6, else PIC objects from an old 
    38833989    # archive will be linked into the output, leading to subtle bugs. 
    3884     _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 
     3990    if test "$solaris_use_stlport4" != yes; then 
     3991      _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 
     3992    fi 
    38853993    ;; 
    38863994  esac 
     
    39314039 
    39324040# Code to be used in simple compile tests 
    3933 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n" 
     4041lt_simple_compile_test_code="\ 
     4042