Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3 in downloads for aclocal.m4


Ignore:
Timestamp:
Oct 9, 2007, 6:41:19 PM (17 years ago)
Author:
anonymous
Message:

=update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • aclocal.m4

    r1 r3  
    1 # generated automatically by aclocal 1.9.5 -*- Autoconf -*-
     1# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
    22
    33# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
     
    1515
    1616# serial 47 AC_PROG_LIBTOOL
    17 # Debian $Rev: 214 $
    1817
    1918
     
    125124# Sed substitution that helps us do robust quoting.  It backslashifies
    126125# metacharacters that are still active within double-quoted strings.
    127 Xsed='sed -e s/^X//'
     126Xsed='sed -e 1s/^X//'
    128127[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
    129128
     
    145144can_build_shared=yes
    146145
    147 # All known linkers require a `.a' archive for static linking (except M$VC,
     146# All known linkers require a `.a' archive for static linking (except MSVC,
    148147# which needs '.lib').
    149148libext=a
     
    193192fi
    194193
     194_LT_CC_BASENAME([$compiler])
     195
    195196# Only perform the check for file, if the check method requires it
    196197case $deplibs_check_method in
     
    236237compiler=$CC
    237238])# _LT_AC_SYS_COMPILER
     239
     240
     241# _LT_CC_BASENAME(CC)
     242# -------------------
     243# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
     244AC_DEFUN([_LT_CC_BASENAME],
     245[for cc_temp in $1""; do
     246  case $cc_temp in
     247    compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
     248    distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
     249    \-*) ;;
     250    *) break;;
     251  esac
     252done
     253cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
     254])
     255
     256
     257# _LT_COMPILER_BOILERPLATE
     258# ------------------------
     259# Check for compiler boilerplate output or warnings with
     260# the simple compiler test code.
     261AC_DEFUN([_LT_COMPILER_BOILERPLATE],
     262[ac_outfile=conftest.$ac_objext
     263printf "$lt_simple_compile_test_code" >conftest.$ac_ext
     264eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     265_lt_compiler_boilerplate=`cat conftest.err`
     266$rm conftest*
     267])# _LT_COMPILER_BOILERPLATE
     268
     269
     270# _LT_LINKER_BOILERPLATE
     271# ----------------------
     272# Check for linker boilerplate output or warnings with
     273# the simple link test code.
     274AC_DEFUN([_LT_LINKER_BOILERPLATE],
     275[ac_outfile=conftest.$ac_objext
     276printf "$lt_simple_link_test_code" >conftest.$ac_ext
     277eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
     278_lt_linker_boilerplate=`cat conftest.err`
     279$rm conftest*
     280])# _LT_LINKER_BOILERPLATE
    238281
    239282
     
    310353# The HP-UX ksh and POSIX shell print the target directory to stdout
    311354# if CDPATH is set.
    312 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     355(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    313356
    314357if test -z "$ECHO"; then
     
    317360  for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
    318361    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
    319     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
    320        echo_test_string="`eval $cmd`" &&
     362    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
     363       echo_test_string=`eval $cmd` &&
    321364       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
    322365    then
     
    487530  echo 'int i;' > conftest.$ac_ext
    488531  if AC_TRY_EVAL(ac_compile); then
    489     case "`/usr/bin/file conftest.o`" in
     532    case `/usr/bin/file conftest.o` in
    490533    *32-bit*)
    491534      case $host in
     
    569612   # The option is referenced via a variable to avoid confusing sed.
    570613   lt_compile=`echo "$ac_compile" | $SED \
    571    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    572615   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    573616   -e 's:$: $lt_compiler_flag:'`
     
    579622   if (exit $ac_status) && test -s "$ac_outfile"; then
    580623     # The compiler can only warn and ignore the option if not recognized
    581      # So say no if there are warnings
    582      if test ! -s conftest.err; then
     624     # So say no if there are warnings other than the usual output.
     625     $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
     626     $SED '/^$/d' conftest.err >conftest.er2
     627     if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
    583628       $2=yes
    584629     fi
     
    606651   printf "$lt_simple_link_test_code" > conftest.$ac_ext
    607652   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
    608      # The compiler can only warn and ignore the option if not recognized
     653     # The linker can only warn and ignore the option if not recognized
    609654     # So say no if there are warnings
    610655     if test -s conftest.err; then
    611656       # Append any errors to the config.log.
    612657       cat conftest.err 1>&AS_MESSAGE_LOG_FD
     658       $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
     659       $SED '/^$/d' conftest.err >conftest.er2
     660       if diff conftest.exp conftest.er2 >/dev/null; then
     661         $2=yes
     662       fi
    613663     else
    614664       $2=yes
     
    669719    ;;
    670720
    671  *)
     721  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
     722    # This has been around since 386BSD, at least.  Likely further.
     723    if test -x /sbin/sysctl; then
     724      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
     725    elif test -x /usr/sbin/sysctl; then
     726      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
     727    else
     728      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
     729    fi
     730    # And add a safety zone
     731    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
     732    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
     733    ;;
     734  osf*)
     735    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
     736    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
     737    # nice to cause kernel panics so lets avoid the loop below.
     738    # First set a reasonable default.
     739    lt_cv_sys_max_cmd_len=16384
     740    #
     741    if test -x /sbin/sysconfig; then
     742      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
     743        *1*) lt_cv_sys_max_cmd_len=-1 ;;
     744      esac
     745    fi
     746    ;;
     747  *)
    672748    # If test is not a shell built-in, we'll probably end up computing a
    673749    # maximum length that is only half of the actual maximum length, but
    674750    # we can't tell.
    675     while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
     751    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
     752    while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
    676753               = "XX$teststring") >/dev/null 2>&1 &&
    677754            new_result=`expr "X$teststring" : ".*" 2>&1` &&
     
    778855EOF
    779856  if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
    780     (./conftest; exit; ) 2>/dev/null
     857    (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
    781858    lt_status=$?
    782859    case x$lt_status in
     
    9271004   # with a dollar sign (not a hyphen), so the echo should work correctly.
    9281005   lt_compile=`echo "$ac_compile" | $SED \
    929    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
     1006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
    9301007   -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
    9311008   -e 's:$: $lt_compiler_flag:'`
     
    9391016     # The compiler can only warn and ignore the option if not recognized
    9401017     # So say no if there are warnings
    941      if test ! -s out/conftest.err; then
     1018     $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
     1019     $SED '/^$/d' out/conftest.err >out/conftest.er2
     1020     if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
    9421021       _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    9431022     fi
    9441023   fi
    945    chmod u+w .
     1024   chmod u+w . 2>&AS_MESSAGE_LOG_FD
    9461025   $rm conftest*
    9471026   # SGI C++ compiler will create directory out/ii_files/ for
     
    10071086_LT_AC_TAGVAR(hardcode_action, $1)=
    10081087if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
    1009    test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
    1010    test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
     1088   test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
     1089   test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
    10111090
    10121091  # We can hardcode non-existant directories.
     
    11751254  ;;
    11761255
    1177 bsdi4*)
     1256bsdi[[45]]*)
    11781257  version_type=linux
    11791258  need_version=no
     
    12031282      dldir=$destdir/`dirname \$dlpath`~
    12041283      test -d \$dldir || mkdir -p \$dldir~
    1205       $install_prog $dir/$dlname \$dldir/$dlname'
     1284      $install_prog $dir/$dlname \$dldir/$dlname~
     1285      chmod a+x \$dldir/$dlname'
    12061286    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
    12071287      dlpath=$dir/\$dldll~
     
    12331313    pw32*)
    12341314      # pw32 DLLs use 'pw' prefix rather than 'lib'
    1235       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
     1315      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
    12361316      ;;
    12371317    esac
     
    12561336  shlibpath_overrides_runpath=yes
    12571337  shlibpath_var=DYLD_LIBRARY_PATH
    1258   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
     1338  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
    12591339  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
    12601340  if test "$GCC" = yes; then
     
    12911371  ;;
    12921372
    1293 freebsd*)
    1294   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
     1373freebsd* | dragonfly*)
     1374  # DragonFly does not have aout.  When/if they implement a new
     1375  # versioning mechanism, adjust this.
     1376  if test -x /usr/bin/objformat; then
     1377    objformat=`/usr/bin/objformat`
     1378  else
     1379    case $host_os in
     1380    freebsd[[123]]*) objformat=aout ;;
     1381    *) objformat=elf ;;
     1382    esac
     1383  fi
    12951384  version_type=freebsd-$objformat
    12961385  case $version_type in
     
    13101399    shlibpath_overrides_runpath=yes
    13111400    ;;
    1312   freebsd3.[01]* | freebsdelf3.[01]*)
     1401  freebsd3.[[01]]* | freebsdelf3.[[01]]*)
    13131402    shlibpath_overrides_runpath=yes
    13141403    hardcode_into_libs=yes
     
    13371426  need_lib_prefix=no
    13381427  need_version=no
    1339   case "$host_cpu" in
     1428  case $host_cpu in
    13401429  ia64*)
    13411430    shrext_cmds='.so'
     
    14361525  # Append ld.so.conf contents to the search path
    14371526  if test -f /etc/ld.so.conf; then
    1438     lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
     1527    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' ' '`
    14391528    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    14401529  fi
     
    14471536  # assume the GNU/Linux dynamic linker is in use.
    14481537  dynamic_linker='GNU/Linux ld.so'
    1449   ;;
    1450 
    1451 netbsdelf*-gnu)
    1452   version_type=linux
    1453   need_lib_prefix=no
    1454   need_version=no
    1455   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
    1456   soname_spec='${libname}${release}${shared_ext}$major'
    1457   shlibpath_var=LD_LIBRARY_PATH
    1458   shlibpath_overrides_runpath=no
    1459   hardcode_into_libs=yes
    1460   dynamic_linker='NetBSD ld.elf_so'
    14611538  ;;
    14621539
     
    15111588  version_type=sunos
    15121589  need_lib_prefix=no
    1513   need_version=yes
     1590  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
     1591  case $host_os in
     1592    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
     1593    *)                         need_version=no  ;;
     1594  esac
    15141595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
    15151596  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
     
    16771758      case $tagname in
    16781759      CXX)
    1679         if test -n "$CXX" && test "X$CXX" != "Xno"; then
     1760        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     1761            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     1762            (test "X$CXX" != "Xg++"))) ; then
    16801763          AC_LIBTOOL_LANG_CXX_CONFIG
    16811764        else
     
    17391822# AC_LIBTOOL_WIN32_DLL
    17401823# --------------------
    1741 # declare package support for building win32 dll's
     1824# declare package support for building win32 DLLs
    17421825AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
    17431826[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
     
    19131996        case $deplibs_check_method in
    19141997        "file_magic "*)
    1915           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
     1998          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
    19161999          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
    19172000          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
     
    20232106      lt_cv_path_LD="$ac_dir/$ac_prog"
    20242107      # Check to see if the program is GNU ld.  I'd rather use --version,
    2025       # but apparently some GNU ld's only accept -v.
     2108      # but apparently some variants of GNU ld only accept -v.
    20262109      # Break only if it was the GNU/non-GNU ld that we prefer.
    20272110      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
     
    20552138[AC_REQUIRE([AC_PROG_EGREP])dnl
    20562139AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
    2057 [# I'd rather use --version here, but apparently some GNU ld's only accept -v.
     2140[# I'd rather use --version here, but apparently some GNU lds only accept -v.
    20582141case `$LD -v 2>&1 </dev/null` in
    20592142*GNU* | *'with BFD'*)
     
    20822165esac
    20832166reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2167case $host_os in
     2168  darwin*)
     2169    if test "$GCC" = yes; then
     2170      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
     2171    else
     2172      reload_cmds='$LD$reload_flag -o $output$reload_objs'
     2173    fi
     2174    ;;
     2175esac
    20842176])# AC_PROG_LD_RELOAD_FLAG
    20852177
     
    21152207  ;;
    21162208
    2117 bsdi4*)
     2209bsdi[[45]]*)
    21182210  lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
    21192211  lt_cv_file_magic_cmd='/usr/bin/file -L'
     
    21382230  ;;
    21392231
    2140 freebsd* | kfreebsd*-gnu)
     2232freebsd* | kfreebsd*-gnu | dragonfly*)
    21412233  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21422234    case $host_cpu in
     
    21442236      # Not sure whether the presence of OpenBSD here was a mistake.
    21452237      # Let's accept both of them until this is cleared up.
    2146       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
     2238      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
    21472239      lt_cv_file_magic_cmd=/usr/bin/file
    21482240      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
     
    21602252hpux10.20* | hpux11*)
    21612253  lt_cv_file_magic_cmd=/usr/bin/file
    2162   case "$host_cpu" in
     2254  case $host_cpu in
    21632255  ia64*)
    21642256    lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
     
    21912283  ;;
    21922284
    2193 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     2285netbsd*)
    21942286  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
    21952287    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
     
    22102302
    22112303openbsd*)
    2212   lt_cv_file_magic_cmd=/usr/bin/file
    2213   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
    22142304  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    2215     lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
     2305    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
    22162306  else
    2217     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
     2307    lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
    22182308  fi
    22192309  ;;
     
    23362426# sets LIBLTDL to the link flags for the libltdl convenience library and
    23372427# LTDLINCL to the include flags for the libltdl header and adds
    2338 # --enable-ltdl-convenience to the configure arguments.  Note that LIBLTDL
    2339 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2340 # DIRECTORY is not provided, it is assumed to be `libltdl'.  LIBLTDL will
    2341 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
    2342 # '${top_srcdir}/' (note the single quotes!).  If your package is not
    2343 # flat and you're not using automake, define top_builddir and
    2344 # top_srcdir appropriately in the Makefiles.
     2428# --enable-ltdl-convenience to the configure arguments.  Note that
     2429# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
     2430# it is assumed to be `libltdl'.  LIBLTDL will be prefixed with
     2431# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
     2432# (note the single quotes!).  If your package is not flat and you're not
     2433# using automake, define top_builddir and top_srcdir appropriately in
     2434# the Makefiles.
    23452435AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
    23462436[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
     
    23612451# sets LIBLTDL to the link flags for the libltdl installable library and
    23622452# LTDLINCL to the include flags for the libltdl header and adds
    2363 # --enable-ltdl-install to the configure arguments.  Note that LIBLTDL
    2364 # and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If
    2365 # DIRECTORY is not provided and an installed libltdl is not found, it is
    2366 # assumed to be `libltdl'.  LIBLTDL will be prefixed with '${top_builddir}/'
    2367 # and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
    2368 # quotes!).  If your package is not flat and you're not using automake,
    2369 # define top_builddir and top_srcdir appropriately in the Makefiles.
     2453# --enable-ltdl-install to the configure arguments.  Note that
     2454# AC_CONFIG_SUBDIRS is not called here.  If DIRECTORY is not provided,
     2455# and an installed libltdl is not found, it is assumed to be `libltdl'.
     2456# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
     2457# '${top_srcdir}/' (note the single quotes!).  If your package is not
     2458# flat and you're not using automake, define top_builddir and top_srcdir
     2459# appropriately in the Makefiles.
    23702460# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
    23712461AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
     
    24052495AC_DEFUN([_LT_AC_LANG_CXX],
    24062496[AC_REQUIRE([AC_PROG_CXX])
    2407 AC_REQUIRE([AC_PROG_CXXCPP])
     2497AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    24082498_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
    24092499])# _LT_AC_LANG_CXX
    24102500
     2501# _LT_AC_PROG_CXXCPP
     2502# ---------------
     2503AC_DEFUN([_LT_AC_PROG_CXXCPP],
     2504[
     2505AC_REQUIRE([AC_PROG_CXX])
     2506if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
     2507    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
     2508    (test "X$CXX" != "Xg++"))) ; then
     2509  AC_PROG_CXXCPP
     2510fi
     2511])# _LT_AC_PROG_CXXCPP
    24112512
    24122513# AC_LIBTOOL_F77
     
    24812582_LT_AC_SYS_COMPILER
    24822583
     2584# save warnings/boilerplate of simple test code
     2585_LT_COMPILER_BOILERPLATE
     2586_LT_LINKER_BOILERPLATE
     2587
    24832588#
    24842589# Check for any special shared library compilation flags.
     
    25312636# On AIX, shared libraries and static libraries use the same namespace, and
    25322637# are all built from PIC.
    2533 case "$host_os" in
     2638case $host_os in
    25342639aix3*)
    25352640  test "$enable_shared" = yes && enable_static=no
     
    25432648  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
    25442649    test "$enable_shared" = yes && enable_static=no
    2545   fi
    2546   ;;
    2547   darwin* | rhapsody*)
    2548   if test "$GCC" = yes; then
    2549     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2550     case "$host_os" in
    2551     rhapsody* | darwin1.[[012]])
    2552       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2553       ;;
    2554     *) # Darwin 1.3 on
    2555       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2556         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2557       else
    2558         case ${MACOSX_DEPLOYMENT_TARGET} in
    2559           10.[[012]])
    2560             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2561             ;;
    2562           10.*)
    2563             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2564             ;;
    2565         esac
    2566       fi
    2567       ;;
    2568     esac
    2569     output_verbose_link_cmd='echo'
    2570     _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
    2571     _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2572     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2573     _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}'
    2574     _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}'
    2575     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2576     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2577     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2578     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2579     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2580   else
    2581     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    25822650  fi
    25832651    ;;
     
    26062674[AC_LANG_PUSH(C++)
    26072675AC_REQUIRE([AC_PROG_CXX])
    2608 AC_REQUIRE([AC_PROG_CXXCPP])
     2676AC_REQUIRE([_LT_AC_PROG_CXXCPP])
    26092677
    26102678_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     
    26352703
    26362704# Source file extension for C++ test sources.
    2637 ac_ext=cc
     2705ac_ext=cpp
    26382706
    26392707# Object file extension for compiled C++ test sources.
     
    26492717# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    26502718_LT_AC_SYS_COMPILER
     2719
     2720# save warnings/boilerplate of simple test code
     2721_LT_COMPILER_BOILERPLATE
     2722_LT_LINKER_BOILERPLATE
    26512723
    26522724# Allow CC to be a program name with arguments.
     
    26712743compiler=$CC
    26722744_LT_AC_TAGVAR(compiler, $1)=$CC
    2673 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     2745_LT_CC_BASENAME([$compiler])
    26742746
    26752747# We don't want -fno-exception wen compiling C++ code, so set the
     
    27782850
    27792851    if test "$GXX" = yes; then
    2780       case $host_os in aix4.[012]|aix4.[012].*)
     2852      case $host_os in aix4.[[012]]|aix4.[[012]].*)
    27812853      # We only want to do this on AIX 4.2 and lower, the check
    27822854      # below for broken collect2 doesn't work under 4.3+
     
    27992871      esac
    28002872      shared_flag='-shared'
     2873      if test "$aix_use_runtimelinking" = yes; then
     2874        shared_flag="$shared_flag "'${wl}-G'
     2875      fi
    28012876    else
    28022877      # not using gcc
     
    28442919        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
    28452920        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    2846         # This is similar to how AIX traditionally builds it's shared libraries.
     2921        # This is similar to how AIX traditionally builds its shared libraries.
    28472922        _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    28482923      fi
     
    28572932    esac
    28582933    ;;
     2934
    28592935
    28602936  cygwin* | mingw* | pw32*)
     
    28812957    fi
    28822958  ;;
    2883 
    2884   darwin* | rhapsody*)
    2885   if test "$GXX" = yes; then
    2886     _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    2887     case "$host_os" in
    2888     rhapsody* | darwin1.[[012]])
    2889       _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    2890       ;;
    2891     *) # Darwin 1.3 on
    2892       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    2893         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
     2959      darwin* | rhapsody*)
     2960        case $host_os in
     2961        rhapsody* | darwin1.[[012]])
     2962         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     2963         ;;
     2964       *) # Darwin 1.3 on
     2965         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     2966           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     2967         else
     2968           case ${MACOSX_DEPLOYMENT_TARGET} in
     2969             10.[[012]])
     2970               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     2971               ;;
     2972             10.*)
     2973               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     2974               ;;
     2975           esac
     2976         fi
     2977         ;;
     2978        esac
     2979      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     2980      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     2981      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
     2982      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
     2983      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
     2984      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     2985
     2986    if test "$GXX" = yes ; then
     2987      lt_int_apple_cc_single_mod=no
     2988      output_verbose_link_cmd='echo'
     2989      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
     2990       lt_int_apple_cc_single_mod=yes
     2991      fi
     2992      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     2993       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    28942994      else
    2895         case ${MACOSX_DEPLOYMENT_TARGET} in
    2896           10.[[012]])
    2897             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    2898             ;;
    2899           10.*)
    2900             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    2901             ;;
    2902         esac
     2995          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -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'
     2996        fi
     2997        _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     2998        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     2999          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
     3000            _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}'
     3001          else
     3002            _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -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}'
     3003          fi
     3004            _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}'
     3005      else
     3006      case $cc_basename in
     3007        xlc*)
     3008         output_verbose_link_cmd='echo'
     3009          _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'
     3010          _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     3011          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     3012          _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}'
     3013          _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}'
     3014          ;;
     3015       *)
     3016         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3017          ;;
     3018      esac
    29033019      fi
    2904       ;;
    2905     esac
    2906     lt_int_apple_cc_single_mod=no
    2907     output_verbose_link_cmd='echo'
    2908     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    2909       lt_int_apple_cc_single_mod=yes
    2910     fi
    2911     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2912       _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    2913     else
    2914       _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'
    2915     fi
    2916     _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    2917 
    2918     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    2919     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    2920       _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}'
    2921     else
    2922       _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}'
    2923     fi
    2924     _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}'
    2925     _LT_AC_TAGVAR(hardcode_direct, $1)=no
    2926     _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    2927     _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    2928     _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
    2929     _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    2930   else
    2931     _LT_AC_TAGVAR(ld_shlibs, $1)=no
    2932   fi
    2933     ;;
     3020        ;;
    29343021
    29353022  dgux*)
    29363023    case $cc_basename in
    2937       ec++)
     3024      ec++*)
    29383025        # FIXME: insert proper C++ library support
    29393026        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29403027        ;;
    2941       ghcx)
     3028      ghcx*)
    29423029        # Green Hills C++ Compiler
    29433030        # FIXME: insert proper C++ library support
     
    29503037    esac
    29513038    ;;
    2952   freebsd[12]*)
     3039  freebsd[[12]]*)
    29533040    # C++ shared libraries reported to be fairly broken before switch to ELF
    29543041    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    29573044    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    29583045    ;;
    2959   freebsd* | kfreebsd*-gnu)
     3046  freebsd* | kfreebsd*-gnu | dragonfly*)
    29603047    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
    29613048    # conventions
     
    29743061
    29753062    case $cc_basename in
    2976     CC)
     3063    CC*)
    29773064      # FIXME: insert proper C++ library support
    29783065      _LT_AC_TAGVAR(ld_shlibs, $1)=no
    29793066      ;;
    2980     aCC)
     3067    aCC*)
    29813068      _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
    29823069      # Commands to make compiler produce verbose output that lists
     
    29883075      # from the output so that they don't get included in the library
    29893076      # dependencies.
    2990       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'
     3077      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'
    29913078      ;;
    29923079    *)
     
    30023089  hpux10*|hpux11*)
    30033090    if test $with_gnu_ld = no; then
    3004       case "$host_cpu" in
     3091      case $host_cpu in
    30053092      hppa*64*)
    30063093        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     
    30183105      esac
    30193106    fi
    3020     case "$host_cpu" in
     3107    case $host_cpu in
    30213108    hppa*64*)
    30223109      _LT_AC_TAGVAR(hardcode_direct, $1)=no
     
    30393126
    30403127    case $cc_basename in
    3041       CC)
     3128      CC*)
    30423129        # FIXME: insert proper C++ library support
    30433130        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    30443131        ;;
    3045       aCC)
    3046         case "$host_cpu" in
     3132      aCC*)
     3133        case $host_cpu in
    30473134        hppa*64*|ia64*)
    30483135          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     
    30653152        if test "$GXX" = yes; then
    30663153          if test $with_gnu_ld = no; then
    3067             case "$host_cpu" in
     3154            case $host_cpu in
    30683155            ia64*|hppa*64*)
    30693156              _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
     
    30833170  irix5* | irix6*)
    30843171    case $cc_basename in
    3085       CC)
     3172      CC*)
    30863173        # SGI C++
    3087         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     3174        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    30883175
    30893176        # Archives containing C++ object files must be created using
     
    30963183        if test "$GXX" = yes; then
    30973184          if test "$with_gnu_ld" = no; then
    3098             _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     3185            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    30993186          else
    31003187            _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
     
    31093196  linux*)
    31103197    case $cc_basename in
    3111       KCC)
     3198      KCC*)
    31123199        # Kuck and Associates, Inc. (KAI) C++ Compiler
    31133200
     
    31343221        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
    31353222        ;;
    3136       icpc)
     3223      icpc*)
    31373224        # Intel C++
    31383225        with_gnu_ld=yes
     3226        # version 8.0 and above of icpc choke on multiply defined symbols
     3227        # if we add $predep_objects and $postdep_objects, however 7.1 and
     3228        # earlier do not add the objects themselves.
     3229        case `$CC -V 2>&1` in
     3230        *"Version 7."*)
     3231          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3232          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     3233          ;;
     3234        *)  # Version 8.0 or newer
     3235          tmp_idyn=
     3236          case $host_cpu in
     3237            ia64*) tmp_idyn=' -i_dynamic';;
     3238          esac
     3239          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     3240          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
     3241          ;;
     3242        esac
    31393243        _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    3140         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
    3141         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
    31423244        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    31433245        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    31443246        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
    31453247        ;;
    3146       cxx)
     3248      pgCC*)
     3249        # Portland Group C++ compiler
     3250        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
     3251        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
     3252
     3253        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     3254        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     3255        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     3256        ;;
     3257      cxx*)
    31473258        # Compaq C++
    31483259        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
     
    31753286  mvs*)
    31763287    case $cc_basename in
    3177       cxx)
     3288      cxx*)
    31783289        # FIXME: insert proper C++ library support
    31793290        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    31853296    esac
    31863297    ;;
    3187   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     3298  netbsd*)
    31883299    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    31893300      _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
     
    31963307    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
    31973308    ;;
     3309  openbsd2*)
     3310    # C++ shared libraries are fairly broken
     3311    _LT_AC_TAGVAR(ld_shlibs, $1)=no
     3312    ;;
     3313  openbsd*)
     3314    _LT_AC_TAGVAR(hardcode_direct, $1)=yes
     3315    _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
     3316    _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
     3317    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
     3318    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
     3319      _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'
     3320      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     3321      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     3322    fi
     3323    output_verbose_link_cmd='echo'
     3324    ;;
    31983325  osf3*)
    31993326    case $cc_basename in
    3200       KCC)
     3327      KCC*)
    32013328        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32023329
     
    32143341
    32153342        ;;
    3216       RCC)
     3343      RCC*)
    32173344        # Rational C++ 2.4.1
    32183345        # FIXME: insert proper C++ library support
    32193346        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32203347        ;;
    3221       cxx)
     3348      cxx*)
    32223349        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3223         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     3350        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32243351
    32253352        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32393366        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    32403367          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3241           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     3368          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    32423369
    32433370          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    32583385  osf4* | osf5*)
    32593386    case $cc_basename in
    3260       KCC)
     3387      KCC*)
    32613388        # Kuck and Associates, Inc. (KAI) C++ Compiler
    32623389
     
    32733400        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
    32743401        ;;
    3275       RCC)
     3402      RCC*)
    32763403        # Rational C++ 2.4.1
    32773404        # FIXME: insert proper C++ library support
    32783405        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    32793406        ;;
    3280       cxx)
     3407      cxx*)
    32813408        _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
    3282         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
     3409        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    32833410        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
    32843411          echo "-hidden">> $lib.exp~
    3285           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
     3412          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
    32863413          $rm $lib.exp'
    32873414
     
    33023429        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
    33033430          _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
    3304          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
     3431         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
    33053432
    33063433          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
     
    33263453    _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    33273454    case $cc_basename in
    3328       CC)
     3455      CC*)
    33293456        # FIXME: insert proper C++ library support
    33303457        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     
    33383465  sunos4*)
    33393466    case $cc_basename in
    3340       CC)
     3467      CC*)
    33413468        # Sun C++ 4.x
    33423469        # FIXME: insert proper C++ library support
    33433470        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    33443471        ;;
    3345       lcc)
     3472      lcc*)
    33463473        # Lucid
    33473474        # FIXME: insert proper C++ library support
     
    33563483  solaris*)
    33573484    case $cc_basename in
    3358       CC)
     3485      CC*)
    33593486        # Sun C++ 4.2, 5.x and Centerline C++
     3487        _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
    33603488        _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
    3361         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
     3489        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
    33623490        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    3363         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
     3491        $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
    33643492
    33653493        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
    33663494        _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
    33673495        case $host_os in
    3368           solaris2.[0-5] | solaris2.[0-5].*) ;;
     3496          solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    33693497          *)
    33703498            # The C++ compiler is used as linker so we must use $wl
    33713499            # flag to pass the commands to the underlying system
    3372             # linker.
     3500            # linker. We must also pass each convience library through
     3501            # to the system linker between allextract/defaultextract.
     3502            # The C++ compiler will combine linker options so we
     3503            # cannot just pass the convience library names through
     3504            # without $wl.
    33733505            # Supported since Solaris 2.6 (maybe 2.5.1?)
    3374             _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
     3506            _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'
    33753507            ;;
    33763508        esac
    33773509        _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
    33783510
    3379         # Commands to make compiler produce verbose output that lists
    3380         # what "hidden" libraries, object files and flags are used when
    3381         # linking a shared library.
    3382         #
    3383         # There doesn't appear to be a way to prevent this compiler from
    3384         # explicitly linking system object files so we need to strip them
    3385         # from the output so that they don't get included in the library
    3386         # dependencies.
    3387         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
     3511        output_verbose_link_cmd='echo'
    33883512
    33893513        # Archives containing C++ object files must be created using
     
    33933517        _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
    33943518        ;;
    3395       gcx)
     3519      gcx*)
    33963520        # Green Hills C++ Compiler
    33973521        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
     
    34363560  tandem*)
    34373561    case $cc_basename in
    3438       NCC)
     3562      NCC*)
    34393563        # NonStop-UX NCC 3.20
    34403564        # FIXME: insert proper C++ library support
     
    35423666  # $output_verbose_cmd can trigger glob expansion during the loop
    35433667  # eval without this substitution.
    3544   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
     3668  output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
    35453669
    35463670  for p in `eval $output_verbose_link_cmd`; do
     
    36183742$rm -f confest.$objext
    36193743
     3744# PORTME: override above test on systems where it is broken
     3745ifelse([$1],[CXX],
     3746[case $host_os in
     3747solaris*)
     3748  case $cc_basename in
     3749  CC*)
     3750    # Adding this requires a known-good setup of shared libraries for
     3751    # Sun compiler versions before 5.6, else PIC objects from an old
     3752    # archive will be linked into the output, leading to subtle bugs.
     3753    _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
     3754    ;;
     3755  esac
     3756esac
     3757])
     3758
    36203759case " $_LT_AC_TAGVAR(postdeps, $1) " in
    36213760*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
     
    36683807_LT_AC_SYS_COMPILER
    36693808
     3809# save warnings/boilerplate of simple test code
     3810_LT_COMPILER_BOILERPLATE
     3811_LT_LINKER_BOILERPLATE
     3812
    36703813# Allow CC to be a program name with arguments.
    36713814lt_save_CC="$CC"
     
    36733816compiler=$CC
    36743817_LT_AC_TAGVAR(compiler, $1)=$CC
    3675 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
     3818_LT_CC_BASENAME([$compiler])
    36763819
    36773820AC_MSG_CHECKING([if libtool supports shared libraries])
     
    36833826# On AIX, shared libraries and static libraries use the same namespace, and
    36843827# are all built from PIC.
    3685 case "$host_os" in
     3828case $host_os in
    36863829aix3*)
    36873830  test "$enable_shared" = yes && enable_static=no
     
    36923835  ;;
    36933836aix4* | aix5*)
    3694   test "$enable_shared" = yes && enable_static=no
     3837  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
     3838    test "$enable_shared" = yes && enable_static=no
     3839  fi
    36953840  ;;
    36963841esac
     
    37433888
    37443889# Code to be used in simple link tests
    3745 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
     3890lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
    37463891
    37473892# ltmain only uses $CC for tagged configurations so make sure $CC is set.
    37483893_LT_AC_SYS_COMPILER
     3894
     3895# save warnings/boilerplate of simple test code
     3896_LT_COMPILER_BOILERPLATE
     3897_LT_LINKER_BOILERPLATE
    37493898
    37503899# Allow CC to be a program name with arguments.
     
    37533902compiler=$CC
    37543903_LT_AC_TAGVAR(compiler, $1)=$CC
     3904_LT_CC_BASENAME([$compiler])
    37553905
    37563906# GCJ did not exist at the time GCC didn't implicitly link libc in.
    37573907_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
     3908
     3909_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
    37583910
    37593911AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
     
    37993951_LT_AC_SYS_COMPILER
    38003952
     3953# save warnings/boilerplate of simple test code
     3954_LT_COMPILER_BOILERPLATE
     3955_LT_LINKER_BOILERPLATE
     3956
    38013957# Allow CC to be a program name with arguments.
    38023958lt_save_CC="$CC"
     
    38043960compiler=$CC
    38053961_LT_AC_TAGVAR(compiler, $1)=$CC
     3962_LT_CC_BASENAME([$compiler])
    38063963_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
    38073964
     
    39394096# You should have received a copy of the GNU General Public License
    39404097# along with this program; if not, write to the Free Software
    3941 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     4098# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
    39424099#
    39434100# As a special exception to the GNU General Public License, if you
     
    39504107
    39514108# Sed that helps us avoid accidentally triggering echo(1) options like -n.
    3952 Xsed="$SED -e s/^X//"
     4109Xsed="$SED -e 1s/^X//"
    39534110
    39544111# The HP-UX ksh and POSIX shell print the target directory to stdout
    39554112# if CDPATH is set.
    3956 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
     4113(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
    39574114
    39584115# The names of the tagged configurations supported by this script.
     
    39854142host_alias=$host_alias
    39864143host=$host
     4144host_os=$host_os
     4145
     4146# The build system.
     4147build_alias=$build_alias
     4148build=$build
     4149build_os=$build_os
    39874150
    39884151# An echo program that does not interpret backslashes.
     
    40614224compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
    40624225
    4063 # Must we lock files when doing compilation ?
     4226# Must we lock files when doing compilation?
    40644227need_locks=$lt_need_locks
    40654228
     
    43354498sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
    43364499
    4337 # Transform the above into a raw symbol and a C symbol.
    4338 symxfrm='\1 \2\3 \3'
    4339 
    43404500# Transform an extracted symbol line into a proper C declaration
    43414501lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
     
    43594519  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
    43604520  ;;
     4521linux*)
     4522  if test "$host_cpu" = ia64; then
     4523    symcode='[[ABCDGIRSTW]]'
     4524    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
     4525    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
     4526  fi
     4527  ;;
    43614528irix* | nonstopux*)
    43624529  symcode='[[BCDEGRST]]'
     
    43904557for ac_symprfx in "" "_"; do
    43914558
     4559  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
     4560  symxfrm="\\1 $ac_symprfx\\2 \\2"
     4561
    43924562  # Write the raw and C identifiers.
    4393   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
     4563  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[      ]]\($symcode$symcode*\)[[       ]][[    ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
    43944564
    43954565  # Check to see that the pipe works correctly.
     
    45554725      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    45564726      # not for PA HP-UX.
    4557       case "$host_cpu" in
     4727      case $host_cpu in
    45584728      hppa*64*|ia64*)
    45594729        ;;
     
    45804750      chorus*)
    45814751        case $cc_basename in
    4582         cxch68)
     4752        cxch68*)
    45834753          # Green Hills C++ Compiler
    45844754          # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
     
    45864756        esac
    45874757        ;;
     4758       darwin*)
     4759         # PIC is the default on this platform
     4760         # Common symbols not allowed in MH_DYLIB files
     4761         case $cc_basename in
     4762           xlc*)
     4763           _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     4764           _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4765           ;;
     4766         esac
     4767       ;;
    45884768      dgux*)
    45894769        case $cc_basename in
    4590           ec++)
     4770          ec++*)
    45914771            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    45924772            ;;
    4593           ghcx)
     4773          ghcx*)
    45944774            # Green Hills C++ Compiler
    45954775            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    45994779        esac
    46004780        ;;
    4601       freebsd* | kfreebsd*-gnu)
     4781      freebsd* | kfreebsd*-gnu | dragonfly*)
    46024782        # FreeBSD uses GNU C++
    46034783        ;;
    46044784      hpux9* | hpux10* | hpux11*)
    46054785        case $cc_basename in
    4606           CC)
     4786          CC*)
    46074787            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46084788            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
     
    46114791            fi
    46124792            ;;
    4613           aCC)
     4793          aCC*)
    46144794            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46154795            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
    4616             case "$host_cpu" in
     4796            case $host_cpu in
    46174797            hppa*64*|ia64*)
    46184798              # +Z the default
     
    46294809      irix5* | irix6* | nonstopux*)
    46304810        case $cc_basename in
    4631           CC)
     4811          CC*)
    46324812            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    46334813            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
     
    46404820      linux*)
    46414821        case $cc_basename in
    4642           KCC)
     4822          KCC*)
    46434823            # KAI C++ Compiler
    46444824            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46454825            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    46464826            ;;
    4647           icpc)
     4827          icpc* | ecpc*)
    46484828            # Intel C++
    46494829            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    46514831            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
    46524832            ;;
    4653           cxx)
     4833          pgCC*)
     4834            # Portland Group C++ compiler.
     4835            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     4836            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     4837            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     4838            ;;
     4839          cxx*)
    46544840            # Compaq C++
    46554841            # Make sure the PIC flag is empty.  It appears that all Alpha
     
    46684854      mvs*)
    46694855        case $cc_basename in
    4670           cxx)
     4856          cxx*)
    46714857            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
    46724858            ;;
     
    46754861        esac
    46764862        ;;
    4677       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     4863      netbsd*)
    46784864        ;;
    46794865      osf3* | osf4* | osf5*)
    46804866        case $cc_basename in
    4681           KCC)
     4867          KCC*)
    46824868            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
    46834869            ;;
    4684           RCC)
     4870          RCC*)
    46854871            # Rational C++ 2.4.1
    46864872            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    46874873            ;;
    4688           cxx)
     4874          cxx*)
    46894875            # Digital/Compaq C++
    46904876            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     
    47024888      sco*)
    47034889        case $cc_basename in
    4704           CC)
     4890          CC*)
    47054891            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
    47064892            ;;
     
    47114897      solaris*)
    47124898        case $cc_basename in
    4713           CC)
     4899          CC*)
    47144900            # Sun C++ 4.2, 5.x and Centerline C++
    47154901            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    47174903            _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
    47184904            ;;
    4719           gcx)
     4905          gcx*)
    47204906            # Green Hills C++ Compiler
    47214907            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
     
    47274913      sunos4*)
    47284914        case $cc_basename in
    4729           CC)
     4915          CC*)
    47304916            # Sun C++ 4.x
    47314917            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
    47324918            _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    47334919            ;;
    4734           lcc)
     4920          lcc*)
    47354921            # Lucid
    47364922            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
     
    47424928      tandem*)
    47434929        case $cc_basename in
    4744           NCC)
     4930          NCC*)
    47454931            # NonStop-UX NCC 3.20
    47464932            _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
     
    48134999      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    48145000      # not for PA HP-UX.
    4815       case "$host_cpu" in
     5001      case $host_cpu in
    48165002      hppa*64*|ia64*)
    48175003        # +Z the default
     
    48395025      fi
    48405026      ;;
     5027      darwin*)
     5028        # PIC is the default on this platform
     5029        # Common symbols not allowed in MH_DYLIB files
     5030       case $cc_basename in
     5031         xlc*)
     5032         _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
     5033         _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5034         ;;
     5035       esac
     5036       ;;
    48415037
    48425038    mingw* | pw32* | os2*)
     
    48505046      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
    48515047      # not for PA HP-UX.
    4852       case "$host_cpu" in
     5048      case $host_cpu in
    48535049      hppa*64*|ia64*)
    48545050        # +Z the default
     
    48745070
    48755071    linux*)
    4876       case $CC in
     5072      case $cc_basename in
    48775073      icc* | ecc*)
    48785074        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    48795075        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    48805076        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
     5077        ;;
     5078      pgcc* | pgf77* | pgf90* | pgf95*)
     5079        # Portland Group compilers (*not* the Pentium gcc compiler,
     5080        # which looks to be a dead project)
     5081        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5082        _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
     5083        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    48815084        ;;
    48825085      ccc*)
     
    49005103
    49015104    solaris*)
    4902       _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
    49035105      _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
    49045106      _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
     5107      case $cc_basename in
     5108      f77* | f90* | f95*)
     5109        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
     5110      *)
     5111        _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
     5112      esac
    49055113      ;;
    49065114
     
    49225130        _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
    49235131      fi
     5132      ;;
     5133
     5134    unicos*)
     5135      _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
     5136      _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
    49245137      ;;
    49255138
     
    49515164     _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
    49525165fi
    4953 case "$host_os" in
     5166case $host_os in
    49545167  # For platforms which do not support PIC, -DPIC is meaningless:
    49555168  *djgpp*)
     
    49845197  ;;
    49855198  cygwin* | mingw*)
    4986     _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'
    4987   ;;
    4988   linux*)
    4989     _LT_AC_TAGVAR(link_all_deplibs, $1)=no
     5199    _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
    49905200  ;;
    49915201  *)
     
    50305240  # preloaded symbol tables.
    50315241  extract_expsyms_cmds=
    5032 
     5242  # Just being paranoid about ensuring that cc_basename is set.
     5243  _LT_CC_BASENAME([$compiler])
    50335244  case $host_os in
    50345245  cygwin* | mingw* | pw32*)
     
    50495260    # If archive_cmds runs LD, not CC, wlarc should be empty
    50505261    wlarc='${wl}'
     5262
     5263    # Set some defaults for GNU ld with shared library support. These
     5264    # are reset later if shared libraries are not supported. Putting them
     5265    # here allows them to be overridden if necessary.
     5266    runpath_var=LD_RUN_PATH
     5267    _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
     5268    _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
     5269    # ancient GNU ld didn't support --whole-archive et. al.
     5270    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
     5271        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
     5272      else
     5273        _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
     5274    fi
     5275    supports_anon_versioning=no
     5276    case `$LD -v 2>/dev/null` in
     5277      *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
     5278      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
     5279      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
     5280      *\ 2.11.*) ;; # other 2.11 versions
     5281      *) supports_anon_versioning=yes ;;
     5282    esac
    50515283
    50525284    # See if GNU ld supports shared libraries.
     
    51005332      _LT_AC_TAGVAR(always_export_symbols, $1)=no
    51015333      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    5102       _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'
     5334      _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
    51035335
    51045336      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
     
    51145346        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
    51155347      else
    5116         ld_shlibs=no
     5348        _LT_AC_TAGVAR(ld_shlibs, $1)=no
    51175349      fi
    51185350      ;;
    51195351
    5120     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     5352    linux*)
     5353      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     5354        tmp_addflag=
     5355        case $cc_basename,$host_cpu in
     5356        pgcc*)                          # Portland Group C compiler
     5357          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5358          tmp_addflag=' $pic_flag'
     5359          ;;
     5360        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
     5361          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
     5362          tmp_addflag=' $pic_flag -Mnomain' ;;
     5363        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
     5364          tmp_addflag=' -i_dynamic' ;;
     5365        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
     5366          tmp_addflag=' -i_dynamic -nofor_main' ;;
     5367        ifc* | ifort*)                  # Intel Fortran compiler
     5368          tmp_addflag=' -nofor_main' ;;
     5369        esac
     5370        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
     5371
     5372        if test $supports_anon_versioning = yes; then
     5373          _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
     5374  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
     5375  $echo "local: *; };" >> $output_objdir/$libname.ver~
     5376          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
     5377        fi
     5378      else
     5379        _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5380      fi
     5381      ;;
     5382
     5383    netbsd*)
    51215384      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    51225385        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
     
    51565419      ;;
    51575420
    5158   linux*)
    5159     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
    5160         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
    5161         _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
    5162       supports_anon_versioning=no
    5163       case `$LD -v 2>/dev/null` in
    5164         *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
    5165         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
    5166         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
    5167         *\ 2.11.*) ;; # other 2.11 versions
    5168         *) supports_anon_versioning=yes ;;
    5169       esac
    5170       if test $supports_anon_versioning = yes; then
    5171         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
    5172 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
    5173 $echo "local: *; };" >> $output_objdir/$libname.ver~
    5174         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
    5175       else
    5176         _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
    5177       fi
    5178       _LT_AC_TAGVAR(link_all_deplibs, $1)=no
    5179     else
    5180       _LT_AC_TAGVAR(ld_shlibs, $1)=no
    5181     fi
    5182     ;;
    5183 
    51845421    *)
    51855422      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
     
    51925429    esac
    51935430
    5194     if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
    5195       runpath_var=LD_RUN_PATH
    5196       _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
    5197       _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
    5198       # ancient GNU ld didn't support --whole-archive et. al.
    5199       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
    5200         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
    5201       else
    5202         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    5203       fi
     5431    if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
     5432      runpath_var=
     5433      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
     5434      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
     5435      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
    52045436    fi
    52055437  else
     
    52655497
    52665498      if test "$GCC" = yes; then
    5267         case $host_os in aix4.[012]|aix4.[012].*)
     5499        case $host_os in aix4.[[012]]|aix4.[[012]].*)
    52685500        # We only want to do this on AIX 4.2 and lower, the check
    52695501        # below for broken collect2 doesn't work under 4.3+
     
    52865518        esac
    52875519        shared_flag='-shared'
     5520        if test "$aix_use_runtimelinking" = yes; then
     5521          shared_flag="$shared_flag "'${wl}-G'
     5522        fi
    52885523      else
    52895524        # not using gcc
     
    53305565          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
    53315566          _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
    5332           # This is similar to how AIX traditionally builds it's shared libraries.
     5567          # This is similar to how AIX traditionally builds its shared libraries.
    53335568          _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
    53345569        fi
     
    53445579      ;;
    53455580
    5346     bsdi4*)
     5581    bsdi[[45]]*)
    53475582      _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
    53485583      ;;
     
    53655600      # FIXME: Should let the user specify the lib program.
    53665601      _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
    5367       fix_srcfile_path='`cygpath -w "$srcfile"`'
     5602      _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
    53685603      _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
    53695604      ;;
    53705605
    53715606    darwin* | rhapsody*)
    5372     if test "$GXX" = yes ; then
     5607      case $host_os in
     5608        rhapsody* | darwin1.[[012]])
     5609         _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
     5610         ;;
     5611       *) # Darwin 1.3 on
     5612         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
     5613           _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     5614         else
     5615           case ${MACOSX_DEPLOYMENT_TARGET} in
     5616             10.[[012]])
     5617               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
     5618               ;;
     5619             10.*)
     5620               _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
     5621               ;;
     5622           esac
     5623         fi
     5624         ;;
     5625      esac
    53735626      _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
    5374       case "$host_os" in
    5375       rhapsody* | darwin1.[[012]])
    5376         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
    5377         ;;
    5378       *) # Darwin 1.3 on
    5379       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
    5380         _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5381       else
    5382         case ${MACOSX_DEPLOYMENT_TARGET} in
    5383           10.[[012]])
    5384             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
    5385             ;;
    5386           10.*)
    5387             _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
    5388             ;;
    5389         esac
    5390       fi
    5391         ;;
    5392       esac
    5393         lt_int_apple_cc_single_mod=no
    5394         output_verbose_link_cmd='echo'
    5395         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
    5396           lt_int_apple_cc_single_mod=yes
    5397         fi
    5398         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5399           _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
    5400         else
    5401         _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'
    5402       fi
    5403       _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
    5404       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
    5405         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
    5406           _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}'
    5407         else
    5408           _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}'
    5409         fi
    5410           _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}'
    54115627      _LT_AC_TAGVAR(hardcode_direct, $1)=no
    54125628      _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
    54135629      _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
    5414       _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
     5630      _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
    54155631      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     5632    if test "$GCC" = yes ; then
     5633        output_verbose_link_cmd='echo'
     5634        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
     5635      _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     5636      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     5637      _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}'
     5638      _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}'
    54165639    else
    5417       _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5640      case $cc_basename in
     5641        xlc*)
     5642         output_verbose_link_cmd='echo'
     5643         _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
     5644         _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
     5645          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
     5646         _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
     5647          _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}'
     5648          ;;
     5649       *)
     5650         _LT_AC_TAGVAR(ld_shlibs, $1)=no
     5651          ;;
     5652      esac
    54185653    fi
    54195654      ;;
     
    54495684
    54505685    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
    5451     freebsd* | kfreebsd*-gnu)
     5686    freebsd* | kfreebsd*-gnu | dragonfly*)
    54525687      _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
    54535688      _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
     
    54745709    hpux10* | hpux11*)
    54755710      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
    5476         case "$host_cpu" in
     5711        case $host_cpu in
    54775712        hppa*64*|ia64*)
    54785713          _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
     
    54835718        esac
    54845719      else
    5485         case "$host_cpu" in
     5720        case $host_cpu in
    54865721        hppa*64*|ia64*)
    54875722          _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
     
    54935728      fi
    54945729      if test "$with_gnu_ld" = no; then
    5495         case "$host_cpu" in
     5730        case $host_cpu in
    54965731        hppa*64*)
    54975732          _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
     
    55365771      ;;
    55375772
    5538     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
     5773    netbsd*)
    55395774      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
    55405775        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
     
    55605795      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
    55615796        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
     5797        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
    55625798        _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
    55635799        _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
     
    56055841        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
    56065842        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
    5607         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
     5843        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
    56085844
    56095845        # Both c and cxx compiler support -rpath directly
     
    56245860      _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
    56255861      if test "$GCC" = yes; then
     5862        wlarc='${wl}'
    56265863        _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
    56275864        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
    56285865          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
    56295866      else
     5867        wlarc=''
    56305868        _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
    56315869        _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
     
    56365874      case $host_os in
    56375875      solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
    5638       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
    5639         _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
     5876      *)
     5877        # The compiler driver will combine linker options so we
     5878        # cannot just pass the convience library names through
     5879        # without $wl, iff we do not link with $LD.
     5880        # Luckily, gcc supports the same syntax we need for Sun Studio.
     5881        # Supported since Solaris 2.6 (maybe 2.5.1?)
     5882        case $wlarc in
     5883        '')
     5884          _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
     5885        *)
     5886          _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' ;;
     5887        esac ;;
    56405888      esac
    56415889      _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
     
    58986146# along with /bin/sed that truncates output.
    58996147for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
    5900   test ! -f $lt_ac_sed && break
     6148  test ! -f $lt_ac_sed && continue
    59016149  cat /dev/null > conftest.in
    59026150  lt_ac_count=0
     
    59236171  done
    59246172done
     6173])
    59256174SED=$lt_cv_path_SED
    5926 ])
    59276175AC_MSG_RESULT([$SED])
    59286176])
     
    59616209fi
    59626210if test -n "$PKG_CONFIG"; then
    5963         _pkg_min_version=m4_ifval([$1], [$1], [0.9.0])
     6211        _pkg_min_version=m4_default([$1], [0.9.0])
    59646212        AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
    59656213        if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
     
    59736221])# PKG_PROG_PKG_CONFIG
    59746222
     6223# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
     6224#
     6225# Check to see whether a particular set of modules exists.  Similar
     6226# to PKG_CHECK_MODULES(), but does not set variables or print errors.
     6227#
     6228#
     6229# Similar to PKG_CHECK_MODULES, make sure that the first instance of
     6230# this or PKG_CHECK_MODULES is called, or make sure to call
     6231# PKG_CHECK_EXISTS manually
     6232# --------------------------------------------------------------
     6233AC_DEFUN([PKG_CHECK_EXISTS],
     6234[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
     6235if test -n "$PKG_CONFIG" && \
     6236    AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
     6237  m4_ifval([$2], [$2], [:])
     6238m4_ifvaln([$3], [else
     6239  $3])dnl
     6240fi])
     6241
     6242
    59756243# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
    59766244# ---------------------------------------------
    59776245m4_define([_PKG_CONFIG],
    5978 [if test "x$ac_cv_env_[]$1[]_set" = "xset"; then
    5979         pkg_cv_[]$1=$ac_cv_env_[]$1[]_value
    5980 elif test -n "$PKG_CONFIG"; then
    5981         if AC_RUN_LOG([$PKG_CONFIG --exists "$3" >/dev/null 2>&1]); then
    5982                 pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
    5983         else
    5984                 pkg_failed=yes
    5985         fi
     6246[if test -n "$PKG_CONFIG"; then
     6247    if test -n "$$1"; then
     6248        pkg_cv_[]$1="$$1"
     6249    else
     6250        PKG_CHECK_EXISTS([$3],
     6251                         [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
     6252                         [pkg_failed=yes])
     6253    fi
    59866254else
    59876255        pkg_failed=untried
    59886256fi[]dnl
    59896257])# _PKG_CONFIG
     6258
     6259# _PKG_SHORT_ERRORS_SUPPORTED
     6260# -----------------------------
     6261AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
     6262[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
     6263if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
     6264        _pkg_short_errors_supported=yes
     6265else
     6266        _pkg_short_errors_supported=no
     6267fi[]dnl
     6268])# _PKG_SHORT_ERRORS_SUPPORTED
     6269
    59906270
    59916271# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
     
    59956275# Note that if there is a possibility the first call to
    59966276# PKG_CHECK_MODULES might not happen, you should be sure to include an
    5997 # explicit call to PKG_PROG_PKG_CONFIG in your configure.in
     6277# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
    59986278#
    59996279#
     
    60056285
    60066286pkg_failed=no
    6007 AC_CACHE_CHECK([for $1][_CFLAGS], [pkg_cv_][$1][_CFLAGS],
    6008         [_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])])
    6009 AC_CACHE_CHECK([for $1][_LIBS], [pkg_cv_][$1][_LIBS],
    6010         [_PKG_CONFIG([$1][_LIBS], [libs], [$2])])
     6287AC_MSG_CHECKING([for $1])
     6288
     6289_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
     6290_PKG_CONFIG([$1][_LIBS], [libs], [$2])
     6291
     6292m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
     6293and $1[]_LIBS to avoid the need to call pkg-config.
     6294See the pkg-config man page for more details.])
    60116295
    60126296if test $pkg_failed = yes; then
    6013         $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
     6297        _PKG_SHORT_ERRORS_SUPPORTED
     6298        if test $_pkg_short_errors_supported = yes; then
     6299                $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
     6300        else
     6301                $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
     6302        fi
    60146303        # Put the nasty error message in config.log where it belongs
    6015         echo "$$1[]_PKG_ERRORS" 1>&AS_MESSAGE_LOG_FD
     6304        echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
    60166305
    60176306        ifelse([$4], , [AC_MSG_ERROR(dnl
    6018 [Package requirements ($2) were not met.
     6307[Package requirements ($2) were not met:
     6308
     6309$$1_PKG_ERRORS
     6310
    60196311Consider adjusting the PKG_CONFIG_PATH environment variable if you
    60206312installed software in a non-standard prefix.
    60216313
    6022 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
    6023 to avoid the need to call pkg-config.  See the pkg-config man page for
    6024 more details.])],
     6314_PKG_TEXT
     6315])],
    60256316                [$4])
    60266317elif test $pkg_failed = untried; then
     
    60306321path to pkg-config.
    60316322
    6032 Alternatively you may set the $1_CFLAGS and $1_LIBS environment variables
    6033 to avoid the need to call pkg-config.  See the pkg-config man page for
    6034 more details.
     6323_PKG_TEXT
    60356324
    60366325To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
     
    60396328        $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
    60406329        $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
     6330        AC_MSG_RESULT([yes])
    60416331        ifelse([$3], , :, [$3])
    60426332fi[]dnl
     
    60606350# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
    60616351AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
    6062          [AM_AUTOMAKE_VERSION([1.9.5])])
     6352         [AM_AUTOMAKE_VERSION([1.9.6])])
    60636353
    60646354# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
Note: See TracChangeset for help on using the changeset viewer.