~ubuntu-branches/ubuntu/hardy/libusb/hardy

« back to all changes in this revision

Viewing changes to aclocal.m4

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2004-11-26 19:32:55 UTC
  • Revision ID: james.westby@ubuntu.com-20041126193255-c2980pqtx2pn5pk7
Tags: 1:0.1.8-17ubuntu2
Move libusb-0.1-udeb's copy of libusb-0.1.so.* to /lib; it seems to
confuse mklibs less that way.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# generated automatically by aclocal 1.7.8 -*- Autoconf -*-
 
1
# generated automatically by aclocal 1.7.9 -*- Autoconf -*-
2
2
 
3
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002
4
4
# Free Software Foundation, Inc.
163
163
# Call AM_AUTOMAKE_VERSION so it can be traced.
164
164
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
165
165
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
166
 
         [AM_AUTOMAKE_VERSION([1.7.8])])
 
166
         [AM_AUTOMAKE_VERSION([1.7.9])])
167
167
 
168
168
# Helper functions for option handling.                    -*- Autoconf -*-
169
169
 
862
862
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
863
863
 
864
864
# serial 47 AC_PROG_LIBTOOL
 
865
# Debian $Rev: 203 $
865
866
 
866
867
 
867
868
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1339
1340
        x86_64-*linux*)
1340
1341
          LD="${LD-ld} -m elf_i386"
1341
1342
          ;;
1342
 
        ppc64-*linux*)
 
1343
        ppc64-*linux*|powerpc64-*linux*)
1343
1344
          LD="${LD-ld} -m elf32ppclinux"
1344
1345
          ;;
1345
1346
        s390x-*linux*)
1403
1404
# ----------------------------------------------------------------
1404
1405
# Check whether the given compiler option works
1405
1406
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1406
 
[AC_CACHE_CHECK([$1], [$2],
 
1407
[AC_REQUIRE([LT_AC_PROG_SED])
 
1408
AC_CACHE_CHECK([$1], [$2],
1407
1409
  [$2=no
1408
1410
  ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1409
1411
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1479
1481
AC_MSG_CHECKING([the maximum length of command line arguments])
1480
1482
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1481
1483
  i=0
1482
 
  testring="ABCD"
 
1484
  teststring="ABCD"
1483
1485
 
1484
1486
  case $build_os in
1485
1487
  msdosdjgpp*)
1508
1510
    lt_cv_sys_max_cmd_len=8192;
1509
1511
    ;;
1510
1512
 
 
1513
  amigaos*)
 
1514
    # On AmigaOS with pdksh, this test takes hours, literally.
 
1515
    # So we just punt and use a minimum line length of 8192.
 
1516
    lt_cv_sys_max_cmd_len=8192;
 
1517
    ;;
 
1518
 
1511
1519
 *)
1512
1520
    # If test is not a shell built-in, we'll probably end up computing a
1513
1521
    # maximum length that is only half of the actual maximum length, but
1514
1522
    # we can't tell.
1515
 
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$testring" 2>/dev/null` \
1516
 
               = "XX$testring") >/dev/null 2>&1 &&
1517
 
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
1523
    while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
 
1524
               = "XX$teststring") >/dev/null 2>&1 &&
 
1525
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
1518
1526
            lt_cv_sys_max_cmd_len=$new_result &&
1519
1527
            test $i != 17 # 1/2 MB should be enough
1520
1528
    do
1521
1529
      i=`expr $i + 1`
1522
 
      testring=$testring$testring
 
1530
      teststring=$teststring$teststring
1523
1531
    done
1524
 
    testring=
 
1532
    teststring=
1525
1533
    # Add a significant safety factor because C++ compilers can tack on massive
1526
1534
    # amounts of additional arguments before passing them to the linker.
1527
1535
    # It appears as though 1/2 is a usable value.
1671
1679
    lt_cv_dlopen_self=yes
1672
1680
    ])
1673
1681
   ;;
1674
 
    
 
1682
 
1675
1683
  *)
1676
1684
    AC_CHECK_FUNC([shl_load],
1677
1685
          [lt_cv_dlopen="shl_load"],
1760
1768
   mkdir out
1761
1769
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1762
1770
 
1763
 
   # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
1764
 
   # that will create temporary files in the current directory regardless of
1765
 
   # the output directory.  Thus, making CWD read-only will cause this test
1766
 
   # to fail, enabling locking or at least warning the user not to do parallel
1767
 
   # builds.
1768
 
   chmod -w .
1769
 
 
1770
1771
   lt_compiler_flag="-o out/conftest2.$ac_objext"
1771
1772
   # Insert the option either (1) after the last *FLAGS variable, or
1772
1773
   # (2) before a word containing "conftest.", or (3) at the end.
1790
1791
     fi
1791
1792
   fi
1792
1793
   chmod u+w .
1793
 
   $rm conftest* out/*
1794
 
   rmdir out
 
1794
   $rm conftest*
 
1795
   # SGI C++ compiler will create directory out/ii_files/ for
 
1796
   # template instantiation
 
1797
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
1798
   $rm out/* && rmdir out
1795
1799
   cd ..
1796
1800
   rmdir conftest
1797
1801
   $rm conftest*
1908
1912
   *)
1909
1913
  AC_MSG_RESULT([no])
1910
1914
    ;;
1911
 
  esac  
 
1915
  esac
1912
1916
fi
1913
1917
])# AC_LIBTOOL_SYS_LIB_STRIP
1914
1918
 
1921
1925
library_names_spec=
1922
1926
libname_spec='lib$name'
1923
1927
soname_spec=
1924
 
shrext=".so"
 
1928
shrext_cmds=".so"
1925
1929
postinstall_cmds=
1926
1930
postuninstall_cmds=
1927
1931
finish_cmds=
2009
2013
amigaos*)
2010
2014
  library_names_spec='$libname.ixlibrary $libname.a'
2011
2015
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
2012
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 
2016
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2013
2017
  ;;
2014
2018
 
2015
2019
beos*)
2034
2038
 
2035
2039
cygwin* | mingw* | pw32*)
2036
2040
  version_type=windows
2037
 
  shrext=".dll"
 
2041
  shrext_cmds=".dll"
2038
2042
  need_version=no
2039
2043
  need_lib_prefix=no
2040
2044
 
2056
2060
    cygwin*)
2057
2061
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2058
2062
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2059
 
      sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
 
2063
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2060
2064
      ;;
2061
2065
    mingw*)
2062
2066
      # MinGW DLLs use traditional 'lib' prefix
2095
2099
  version_type=darwin
2096
2100
  need_lib_prefix=no
2097
2101
  need_version=no
2098
 
  # FIXME: Relying on posixy $() will cause problems for
2099
 
  #        cross-compilation, but unfortunately the echo tests do not
2100
 
  #        yet detect zsh echo's removal of \ escapes.
2101
2102
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2102
2103
  soname_spec='${libname}${release}${major}$shared_ext'
2103
2104
  shlibpath_overrides_runpath=yes
2104
2105
  shlibpath_var=DYLD_LIBRARY_PATH
2105
 
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
2106
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
2106
2107
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2107
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
2108
 
  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"`
 
2108
  if test "$GCC" = yes; then
 
2109
    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"`
 
2110
  else
 
2111
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2109
2112
  fi
2110
2113
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2111
2114
  ;;
2123
2126
  dynamic_linker=no
2124
2127
  ;;
2125
2128
 
 
2129
kfreebsd*-gnu)
 
2130
  version_type=linux
 
2131
  need_lib_prefix=no
 
2132
  need_version=no
 
2133
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2134
  soname_spec='${libname}${release}${shared_ext}$major'
 
2135
  shlibpath_var=LD_LIBRARY_PATH
 
2136
  shlibpath_overrides_runpath=no
 
2137
  hardcode_into_libs=yes
 
2138
  dynamic_linker='GNU ld.so'
 
2139
  ;;
 
2140
 
2126
2141
freebsd*)
2127
2142
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
2128
2143
  version_type=freebsd-$objformat
2171
2186
  need_version=no
2172
2187
  case "$host_cpu" in
2173
2188
  ia64*)
2174
 
    shrext='.so'
 
2189
    shrext_cmds='.so'
2175
2190
    hardcode_into_libs=yes
2176
2191
    dynamic_linker="$host_os dld.so"
2177
2192
    shlibpath_var=LD_LIBRARY_PATH
2186
2201
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2187
2202
    ;;
2188
2203
   hppa*64*)
2189
 
     shrext='.sl'
 
2204
     shrext_cmds='.sl'
2190
2205
     hardcode_into_libs=yes
2191
2206
     dynamic_linker="$host_os dld.sl"
2192
2207
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2197
2212
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2198
2213
     ;;
2199
2214
   *)
2200
 
    shrext='.sl'
 
2215
    shrext_cmds='.sl'
2201
2216
    dynamic_linker="$host_os dld.sl"
2202
2217
    shlibpath_var=SHLIB_PATH
2203
2218
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2266
2281
  # before this can be enabled.
2267
2282
  hardcode_into_libs=yes
2268
2283
 
 
2284
  # Append ld.so.conf contents to the search path
 
2285
  if test -f /etc/ld.so.conf; then
 
2286
    lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
 
2287
    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 
2288
  fi
 
2289
 
2269
2290
  # We used to test for /lib/ld.so.1 and disable shared libraries on
2270
2291
  # powerpc, because MkLinux only supported shared libraries with the
2271
2292
  # GNU dynamic linker.  Since this was broken with cross compilers,
2273
2294
  # people can always --disable-shared, the test was removed, and we
2274
2295
  # assume the GNU/Linux dynamic linker is in use.
2275
2296
  dynamic_linker='GNU/Linux ld.so'
 
2297
  ;;
2276
2298
 
2277
 
  # Find out which ABI we are using (multilib Linux x86_64 hack).
2278
 
  libsuff=
2279
 
  case "$host_cpu" in
2280
 
  x86_64*|s390x*|powerpc64*)
2281
 
    echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2282
 
    if AC_TRY_EVAL(ac_compile); then
2283
 
      case `/usr/bin/file conftest.$ac_objext` in
2284
 
      *64-bit*)
2285
 
        libsuff=64
2286
 
        ;;
2287
 
      esac
2288
 
    fi
2289
 
    rm -rf conftest*
2290
 
    ;;
2291
 
  *)
2292
 
    ;;
2293
 
  esac
2294
 
  sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
2295
 
  sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
2299
knetbsd*-gnu)
 
2300
  version_type=linux
 
2301
  need_lib_prefix=no
 
2302
  need_version=no
 
2303
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
2304
  soname_spec='${libname}${release}${shared_ext}$major'
 
2305
  shlibpath_var=LD_LIBRARY_PATH
 
2306
  shlibpath_overrides_runpath=no
 
2307
  hardcode_into_libs=yes
 
2308
  dynamic_linker='GNU ld.so'
2296
2309
  ;;
2297
2310
 
2298
2311
netbsd*)
2304
2317
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2305
2318
    dynamic_linker='NetBSD (a.out) ld.so'
2306
2319
  else
2307
 
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
 
2320
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2308
2321
    soname_spec='${libname}${release}${shared_ext}$major'
2309
2322
    dynamic_linker='NetBSD ld.elf_so'
2310
2323
  fi
2320
2333
  shlibpath_overrides_runpath=yes
2321
2334
  ;;
2322
2335
 
2323
 
nto-qnx)
 
2336
nto-qnx*)
2324
2337
  version_type=linux
2325
2338
  need_lib_prefix=no
2326
2339
  need_version=no
2333
2346
openbsd*)
2334
2347
  version_type=sunos
2335
2348
  need_lib_prefix=no
2336
 
  need_version=no
 
2349
  need_version=yes
2337
2350
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2338
2351
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2339
2352
  shlibpath_var=LD_LIBRARY_PATH
2353
2366
 
2354
2367
os2*)
2355
2368
  libname_spec='$name'
2356
 
  shrext=".dll"
 
2369
  shrext_cmds=".dll"
2357
2370
  need_lib_prefix=no
2358
2371
  library_names_spec='$libname${shared_ext} $libname.a'
2359
2372
  dynamic_linker='OS/2 ld.exe'
2789
2802
 
2790
2803
# AC_PROG_LD
2791
2804
# ----------
2792
 
# find the path to the GNU or non-GNU linker
 
2805
# find the pathname to the GNU or non-GNU linker
2793
2806
AC_DEFUN([AC_PROG_LD],
2794
2807
[AC_ARG_WITH([gnu-ld],
2795
2808
    [AC_HELP_STRING([--with-gnu-ld],
2815
2828
    # Accept absolute paths.
2816
2829
    [[\\/]]* | ?:[[\\/]]*)
2817
2830
      re_direlt='/[[^/]][[^/]]*/\.\./'
2818
 
      # Canonicalize the path of ld
 
2831
      # Canonicalize the pathname of ld
2819
2832
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2820
2833
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2821
2834
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2943
2956
  lt_cv_file_magic_test_file=/shlib/libc.so
2944
2957
  ;;
2945
2958
 
2946
 
cygwin* | mingw* | pw32*)
2947
 
  # win32_libid is a shell function defined in ltmain.sh
 
2959
cygwin*)
 
2960
  # func_win32_libid is a shell function defined in ltmain.sh
2948
2961
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2949
 
  lt_cv_file_magic_cmd='win32_libid'
 
2962
  lt_cv_file_magic_cmd='func_win32_libid'
 
2963
  ;;
 
2964
 
 
2965
mingw* | pw32*)
 
2966
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
2967
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 
2968
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
2969
  lt_cv_file_magic_cmd='$OBJDUMP -f'
2950
2970
  ;;
2951
2971
 
2952
2972
darwin* | rhapsody*)
2953
 
  # this will be overwritten by pass_all, but leave it in just in case
2954
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2955
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
2956
 
  case "$host_os" in
2957
 
  rhapsody* | darwin1.[[012]])
2958
 
    lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
2959
 
    ;;
2960
 
  *) # Darwin 1.3 on
2961
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2962
 
    ;;
2963
 
  esac
2964
2973
  lt_cv_deplibs_check_method=pass_all
2965
2974
  ;;
2966
2975
 
2967
 
freebsd*)
 
2976
freebsd* | kfreebsd*-gnu)
2968
2977
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2969
2978
    case $host_cpu in
2970
2979
    i*86 )
3003
3012
  ;;
3004
3013
 
3005
3014
irix5* | irix6* | nonstopux*)
3006
 
  case $host_os in
3007
 
  irix5* | nonstopux*)
3008
 
    # this will be overridden with pass_all, but let us keep it just in case
3009
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3010
 
    ;;
3011
 
  *)
3012
 
    case $LD in
3013
 
    *-32|*"-32 ") libmagic=32-bit;;
3014
 
    *-n32|*"-n32 ") libmagic=N32;;
3015
 
    *-64|*"-64 ") libmagic=64-bit;;
3016
 
    *) libmagic=never-match;;
3017
 
    esac
3018
 
    # this will be overridden with pass_all, but let us keep it just in case
3019
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
3020
 
    ;;
 
3015
  case $LD in
 
3016
  *-32|*"-32 ") libmagic=32-bit;;
 
3017
  *-n32|*"-n32 ") libmagic=N32;;
 
3018
  *-64|*"-64 ") libmagic=64-bit;;
 
3019
  *) libmagic=never-match;;
3021
3020
  esac
3022
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3023
3021
  lt_cv_deplibs_check_method=pass_all
3024
3022
  ;;
3025
3023
 
3026
3024
# This must be Linux ELF.
3027
3025
linux*)
3028
 
  case $host_cpu in
3029
 
  alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
3030
 
    lt_cv_deplibs_check_method=pass_all ;;
3031
 
  *)
3032
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3033
 
    lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
3034
 
  esac
3035
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
3026
  lt_cv_deplibs_check_method=pass_all
3036
3027
  ;;
3037
3028
 
3038
 
netbsd*)
 
3029
netbsd* | knetbsd*-gnu)
3039
3030
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3040
3031
    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3041
3032
  else
3049
3040
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3050
3041
  ;;
3051
3042
 
3052
 
nto-qnx)
 
3043
nto-qnx*)
3053
3044
  lt_cv_deplibs_check_method=unknown
3054
3045
  ;;
3055
3046
 
3064
3055
  ;;
3065
3056
 
3066
3057
osf3* | osf4* | osf5*)
3067
 
  # this will be overridden with pass_all, but let us keep it just in case
3068
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3069
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3070
3058
  lt_cv_deplibs_check_method=pass_all
3071
3059
  ;;
3072
3060
 
3076
3064
 
3077
3065
solaris*)
3078
3066
  lt_cv_deplibs_check_method=pass_all
3079
 
  lt_cv_file_magic_test_file=/lib/libc.so
3080
3067
  ;;
3081
3068
 
3082
3069
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3116
3103
 
3117
3104
# AC_PROG_NM
3118
3105
# ----------
3119
 
# find the path to a BSD-compatible name lister
 
3106
# find the pathname to a BSD-compatible name lister
3120
3107
AC_DEFUN([AC_PROG_NM],
3121
3108
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3122
3109
[if test -n "$NM"; then
3254
3241
AC_DEFUN([_LT_AC_LANG_CXX],
3255
3242
[AC_REQUIRE([AC_PROG_CXX])
3256
3243
AC_REQUIRE([AC_PROG_CXXCPP])
3257
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`])
 
3244
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3258
3245
])# _LT_AC_LANG_CXX
3259
3246
 
3260
3247
 
3270
3257
# ---------------
3271
3258
AC_DEFUN([_LT_AC_LANG_F77],
3272
3259
[AC_REQUIRE([AC_PROG_F77])
3273
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,F77" | sed 's/^,//'`])
 
3260
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3274
3261
])# _LT_AC_LANG_F77
3275
3262
 
3276
3263
 
3291
3278
      [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3292
3279
         [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3293
3280
           [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3294
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,GCJ" | sed 's/^,//'`])
 
3281
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3295
3282
])# _LT_AC_LANG_GCJ
3296
3283
 
3297
3284
 
3300
3287
# enable support for Windows resource files
3301
3288
AC_DEFUN([AC_LIBTOOL_RC],
3302
3289
[AC_REQUIRE([LT_AC_PROG_RC])
3303
 
_LT_AC_SHELL_INIT([tagnames=`echo "$tagnames,RC" | sed 's/^,//'`])
 
3290
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3304
3291
])# AC_LIBTOOL_RC
3305
3292
 
3306
3293
 
3342
3329
fi
3343
3330
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
3344
3331
  AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
3345
 
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$]_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[[      ]]" >/dev/null; then :
 
3332
  if echo "$old_CC $old_CFLAGS " | grep "[[     ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[        ]]" >/dev/null; then :
3346
3333
  else
3347
3334
    AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
3348
3335
    _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
3365
3352
AC_LIBTOOL_PROG_CC_C_O($1)
3366
3353
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3367
3354
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
3355
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3368
3356
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3369
3357
AC_LIBTOOL_SYS_LIB_STRIP
3370
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3371
3358
AC_LIBTOOL_DLOPEN_SELF($1)
3372
3359
 
3373
3360
# Report which librarie types wil actually be built
3388
3375
  fi
3389
3376
  ;;
3390
3377
 
3391
 
aix4*)
 
3378
aix4* | aix5*)
3392
3379
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3393
3380
    test "$enable_shared" = yes && enable_static=no
3394
3381
  fi
3395
3382
  ;;
3396
3383
  darwin* | rhapsody*)
3397
 
  if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
3384
  if test "$GCC" = yes; then
3398
3385
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3399
3386
    case "$host_os" in
3400
3387
    rhapsody* | darwin1.[[012]])
3401
3388
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3402
3389
      ;;
3403
3390
    *) # Darwin 1.3 on
3404
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3391
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3392
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3393
      else
 
3394
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
3395
          10.[[012]])
 
3396
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3397
            ;;
 
3398
          10.*)
 
3399
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
3400
            ;;
 
3401
        esac
 
3402
      fi
3405
3403
      ;;
3406
3404
    esac
3407
 
    # FIXME: Relying on posixy $() will cause problems for
3408
 
    #        cross-compilation, but unfortunately the echo tests do not
3409
 
    #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
3410
 
    #          `"' quotes if we put them in here... so don't!
3411
 
                output_verbose_link_cmd='echo'
 
3405
    output_verbose_link_cmd='echo'
3412
3406
    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
3413
 
    _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
3407
    _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3414
3408
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3415
 
                  _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3416
 
                  _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3409
    _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3410
    _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}'
3417
3411
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3418
3412
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3419
3413
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3420
3414
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3421
3415
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3422
 
    fi
3423
 
    ;;  
 
3416
  else
 
3417
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3418
  fi
 
3419
    ;;
3424
3420
esac
3425
3421
AC_MSG_RESULT([$enable_shared])
3426
3422
 
3722
3718
  ;;
3723
3719
 
3724
3720
  darwin* | rhapsody*)
3725
 
   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
3721
  if test "$GXX" = yes; then
3726
3722
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3727
3723
    case "$host_os" in
3728
3724
    rhapsody* | darwin1.[[012]])
3729
3725
      _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
3730
3726
      ;;
3731
3727
    *) # Darwin 1.3 on
3732
 
      test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3728
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
3729
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3730
      else
 
3731
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
3732
          10.[[012]])
 
3733
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
3734
            ;;
 
3735
          10.*)
 
3736
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
3737
            ;;
 
3738
        esac
 
3739
      fi
3733
3740
      ;;
3734
3741
    esac
3735
 
        lt_int_apple_cc_single_mod=no
3736
 
        output_verbose_link_cmd='echo'
3737
 
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
3738
 
          lt_int_apple_cc_single_mod=yes
3739
 
        fi
3740
 
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3741
 
          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3742
 
        else
3743
 
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3744
 
      fi
3745
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
3742
    lt_int_apple_cc_single_mod=no
 
3743
    output_verbose_link_cmd='echo'
 
3744
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
3745
      lt_int_apple_cc_single_mod=yes
 
3746
    fi
 
3747
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3748
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3749
    else
 
3750
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
3751
    fi
 
3752
    _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3746
3753
 
3747
3754
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
3748
 
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3749
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3750
 
      else
3751
 
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3752
 
      fi
3753
 
        _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3755
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
3756
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3757
    else
 
3758
      _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
3759
    fi
 
3760
    _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}'
3754
3761
    _LT_AC_TAGVAR(hardcode_direct, $1)=no
3755
3762
    _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3756
3763
    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3757
3764
    _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
3758
3765
    _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3759
 
   fi 
 
3766
  else
 
3767
    _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
3768
  fi
3760
3769
    ;;
3761
3770
 
3762
3771
  dgux*)
3783
3792
  freebsd-elf*)
3784
3793
    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3785
3794
    ;;
3786
 
  freebsd*)
 
3795
  freebsd* | kfreebsd*-gnu)
3787
3796
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3788
3797
    # conventions
3789
3798
    _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3814
3823
      # explicitly linking system object files so we need to strip them
3815
3824
      # from the output so that they don't get included in the library
3816
3825
      # dependencies.
3817
 
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
3826
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3818
3827
      ;;
3819
3828
    *)
3820
3829
      if test "$GXX" = yes; then
4011
4020
        ;;
4012
4021
    esac
4013
4022
    ;;
4014
 
  netbsd*)
 
4023
  netbsd* | knetbsd*-gnu)
4015
4024
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4016
4025
      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4017
4026
      wlarc=
4293
4302
AC_LIBTOOL_PROG_CC_C_O($1)
4294
4303
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4295
4304
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4305
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4296
4306
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4297
4307
AC_LIBTOOL_SYS_LIB_STRIP
4298
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4299
4308
AC_LIBTOOL_DLOPEN_SELF($1)
4300
4309
 
4301
4310
AC_LIBTOOL_CONFIG($1)
4517
4526
    postinstall_cmds='$RANLIB $lib'
4518
4527
  fi
4519
4528
  ;;
4520
 
aix4*)
 
4529
aix4* | aix5*)
4521
4530
  test "$enable_shared" = yes && enable_static=no
4522
4531
  ;;
4523
4532
esac
4537
4546
AC_LIBTOOL_PROG_CC_C_O($1)
4538
4547
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4539
4548
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4549
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4540
4550
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4541
4551
AC_LIBTOOL_SYS_LIB_STRIP
4542
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
 
4552
 
4543
4553
 
4544
4554
AC_LIBTOOL_CONFIG($1)
4545
4555
 
4587
4597
AC_LIBTOOL_PROG_CC_C_O($1)
4588
4598
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4589
4599
AC_LIBTOOL_PROG_LD_SHLIBS($1)
 
4600
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4590
4601
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4591
4602
AC_LIBTOOL_SYS_LIB_STRIP
4592
 
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4593
4603
AC_LIBTOOL_DLOPEN_SELF($1)
4594
4604
 
4595
4605
AC_LIBTOOL_CONFIG($1)
4654
4664
  # without removal of \ escapes.
4655
4665
  if test -n "${ZSH_VERSION+set}" ; then
4656
4666
    setopt NO_GLOB_SUBST
4657
 
  fi  
 
4667
  fi
4658
4668
  # Now quote all the things that may contain metacharacters while being
4659
4669
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
4660
4670
  # variables and quote the copies for generation of the libtool script.
4661
 
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
 
4671
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
4672
    SED SHELL STRIP \
4662
4673
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4663
4674
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4664
4675
    deplibs_check_method reload_flag reload_cmds need_locks \
4708
4719
    _LT_AC_TAGVAR(archive_cmds, $1) | \
4709
4720
    _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4710
4721
    _LT_AC_TAGVAR(module_cmds, $1) | \
4711
 
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \   
 
4722
    _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4712
4723
    _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4713
4724
    _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4714
4725
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
4839
4850
NM=$lt_NM
4840
4851
 
4841
4852
# A symbol stripping program
4842
 
STRIP=$STRIP
 
4853
STRIP=$lt_STRIP
4843
4854
 
4844
4855
# Used to examine libraries when file_magic_cmd begins "file"
4845
4856
MAGIC_CMD=$MAGIC_CMD
4870
4881
libext="$libext"
4871
4882
 
4872
4883
# Shared library suffix (normally ".so").
4873
 
shrext='$shrext'
 
4884
shrext_cmds='$shrext_cmds'
4874
4885
 
4875
4886
# Executable file suffix (normally "").
4876
4887
exeext="$exeext"
5114
5125
  # If there is no Makefile yet, we rely on a make rule to execute
5115
5126
  # `config.status --recheck' to rerun these tests and create the
5116
5127
  # libtool script then.
5117
 
  test -f Makefile && make "$ltmain"
 
5128
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
5129
  if test -f "$ltmain_in"; then
 
5130
    test -f Makefile && make "$ltmain"
 
5131
  fi
5118
5132
fi
5119
5133
])# AC_LIBTOOL_CONFIG
5120
5134
 
5420
5434
            ;;
5421
5435
        esac
5422
5436
        ;;
5423
 
      freebsd*)
 
5437
      freebsd* | kfreebsd*-gnu)
5424
5438
        # FreeBSD uses GNU C++
5425
5439
        ;;
5426
5440
      hpux9* | hpux10* | hpux11*)
5471
5485
            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5472
5486
            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5473
5487
            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5474
 
            ;; 
 
5488
            ;;
5475
5489
          cxx)
5476
5490
            # Compaq C++
5477
5491
            # Make sure the PIC flag is empty.  It appears that all Alpha
5496
5510
            ;;
5497
5511
        esac
5498
5512
        ;;
5499
 
      netbsd*)
 
5513
      netbsd* | knetbsd*-gnu)
5500
5514
        ;;
5501
5515
      osf3* | osf4* | osf5*)
5502
5516
        case $cc_basename in
5696
5710
 
5697
5711
    linux*)
5698
5712
      case $CC in
5699
 
      icc|ecc)
 
5713
      icc* | ecc*)
5700
5714
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5701
5715
        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5702
5716
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5703
5717
        ;;
5704
 
      ccc)
 
5718
      ccc*)
5705
5719
        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5706
5720
        # All Alpha code is PIC.
5707
5721
        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5807
5821
  cygwin* | mingw*)
5808
5822
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5809
5823
  ;;
 
5824
  linux*)
 
5825
    _LT_AC_TAGVAR(link_all_deplibs, $1)=no
 
5826
  ;;
5810
5827
  *)
5811
5828
    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5812
5829
  ;;
5831
5848
  _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5832
5849
  _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5833
5850
  _LT_AC_TAGVAR(module_cmds, $1)=
5834
 
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=  
 
5851
  _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5835
5852
  _LT_AC_TAGVAR(always_export_symbols, $1)=no
5836
5853
  _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5837
5854
  # include_expsyms should be a list of space-separated symbols to be *always*
5936
5953
      fi
5937
5954
      ;;
5938
5955
 
5939
 
    netbsd*)
 
5956
    netbsd* | knetbsd*-gnu)
5940
5957
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5941
5958
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5942
5959
        wlarc=
5975
5992
      ;;
5976
5993
 
5977
5994
  linux*)
5978
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
5995
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5979
5996
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5980
5997
        _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
5981
5998
      supports_anon_versioning=no
5994
6011
      else
5995
6012
        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
5996
6013
      fi
 
6014
      _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5997
6015
    else
5998
6016
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
5999
6017
    fi
6175
6193
      # Tell ltmain to make .lib files, not .a files.
6176
6194
      libext=lib
6177
6195
      # Tell ltmain to make .dll files, not .so files.
6178
 
      shrext=".dll"
 
6196
      shrext_cmds=".dll"
6179
6197
      # FIXME: Setting linknames here is a bad hack.
6180
6198
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6181
6199
      # The linker will automatically build a .lib file if we build a DLL.
6187
6205
      ;;
6188
6206
 
6189
6207
    darwin* | rhapsody*)
6190
 
    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then 
 
6208
    if test "$GXX" = yes ; then
6191
6209
      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6192
6210
      case "$host_os" in
6193
6211
      rhapsody* | darwin1.[[012]])
6194
6212
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
6195
6213
        ;;
6196
6214
      *) # Darwin 1.3 on
6197
 
        test -z ${LD_TWOLEVEL_NAMESPACE} && _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6215
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
6216
        _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6217
      else
 
6218
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
6219
          10.[[012]])
 
6220
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
 
6221
            ;;
 
6222
          10.*)
 
6223
            _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
 
6224
            ;;
 
6225
        esac
 
6226
      fi
6198
6227
        ;;
6199
6228
      esac
6200
 
      # FIXME: Relying on posixy $() will cause problems for
6201
 
      #        cross-compilation, but unfortunately the echo tests do not
6202
 
      #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6203
 
      #        `"' quotes if we put them in here... so don't!
6204
6229
        lt_int_apple_cc_single_mod=no
6205
6230
        output_verbose_link_cmd='echo'
6206
6231
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6211
6236
        else
6212
6237
        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6213
6238
      fi
6214
 
      _LT_AC_TAGVAR(module_cmds, $1)='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
 
6239
      _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6215
6240
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6216
6241
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6217
6242
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6218
6243
        else
6219
6244
          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6220
6245
        fi
6221
 
          _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
6246
          _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}'
6222
6247
      _LT_AC_TAGVAR(hardcode_direct, $1)=no
6223
6248
      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6224
6249
      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6225
6250
      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
6226
6251
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6227
 
    fi  
 
6252
    else
 
6253
      _LT_AC_TAGVAR(ld_shlibs, $1)=no
 
6254
    fi
6228
6255
      ;;
6229
6256
 
6230
6257
    dgux*)
6257
6284
      ;;
6258
6285
 
6259
6286
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6260
 
    freebsd*)
 
6287
    freebsd* | kfreebsd*-gnu)
6261
6288
      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6262
6289
      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6263
6290
      _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6344
6371
      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6345
6372
      ;;
6346
6373
 
6347
 
    netbsd*)
 
6374
    netbsd* | knetbsd*-gnu)
6348
6375
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6349
6376
        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6350
6377
      else
6574
6601
      AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6575
6602
      $rm conftest*
6576
6603
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6577
 
  
 
6604
 
6578
6605
      if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6579
6606
        soname=conftest
6580
6607
        lib=conftest