aclocal.m4 revision b15a006b
1d075918cSmrg# generated automatically by aclocal 1.10.1 -*- Autoconf -*- 29bd41f2cSmrg 39bd41f2cSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 4d075918cSmrg# 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 59bd41f2cSmrg# This file is free software; the Free Software Foundation 69bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 89bd41f2cSmrg 99bd41f2cSmrg# This program is distributed in the hope that it will be useful, 109bd41f2cSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 119bd41f2cSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 129bd41f2cSmrg# PARTICULAR PURPOSE. 139bd41f2cSmrg 14d075918cSmrgm4_ifndef([AC_AUTOCONF_VERSION], 15d075918cSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 16d075918cSmrgm4_if(AC_AUTOCONF_VERSION, [2.63],, 17d075918cSmrg[m4_warning([this file was generated for autoconf 2.63. 18d075918cSmrgYou have another version of autoconf. It may work, but is not guaranteed to. 19d075918cSmrgIf you have problems, you may need to regenerate the build system entirely. 20d075918cSmrgTo do so, use the procedure documented by the package, typically `autoreconf'.])]) 219bd41f2cSmrg 229bd41f2cSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 239bd41f2cSmrg 24d075918cSmrg# serial 52 AC_PROG_LIBTOOL 259bd41f2cSmrg 269bd41f2cSmrg 279bd41f2cSmrg# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 289bd41f2cSmrg# ----------------------------------------------------------- 299bd41f2cSmrg# If this macro is not defined by Autoconf, define it here. 309bd41f2cSmrgm4_ifdef([AC_PROVIDE_IFELSE], 319bd41f2cSmrg [], 329bd41f2cSmrg [m4_define([AC_PROVIDE_IFELSE], 339bd41f2cSmrg [m4_ifdef([AC_PROVIDE_$1], 349bd41f2cSmrg [$2], [$3])])]) 359bd41f2cSmrg 369bd41f2cSmrg 379bd41f2cSmrg# AC_PROG_LIBTOOL 389bd41f2cSmrg# --------------- 399bd41f2cSmrgAC_DEFUN([AC_PROG_LIBTOOL], 409bd41f2cSmrg[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 419bd41f2cSmrgdnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 429bd41f2cSmrgdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 439bd41f2cSmrg AC_PROVIDE_IFELSE([AC_PROG_CXX], 449bd41f2cSmrg [AC_LIBTOOL_CXX], 459bd41f2cSmrg [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 469bd41f2cSmrg ])]) 479bd41f2cSmrgdnl And a similar setup for Fortran 77 support 489bd41f2cSmrg AC_PROVIDE_IFELSE([AC_PROG_F77], 499bd41f2cSmrg [AC_LIBTOOL_F77], 509bd41f2cSmrg [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 519bd41f2cSmrg])]) 529bd41f2cSmrg 539bd41f2cSmrgdnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 549bd41f2cSmrgdnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 559bd41f2cSmrgdnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 569bd41f2cSmrg AC_PROVIDE_IFELSE([AC_PROG_GCJ], 579bd41f2cSmrg [AC_LIBTOOL_GCJ], 589bd41f2cSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 599bd41f2cSmrg [AC_LIBTOOL_GCJ], 609bd41f2cSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 619bd41f2cSmrg [AC_LIBTOOL_GCJ], 629bd41f2cSmrg [ifdef([AC_PROG_GCJ], 639bd41f2cSmrg [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 649bd41f2cSmrg ifdef([A][M_PROG_GCJ], 659bd41f2cSmrg [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 669bd41f2cSmrg ifdef([LT_AC_PROG_GCJ], 679bd41f2cSmrg [define([LT_AC_PROG_GCJ], 689bd41f2cSmrg defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 699bd41f2cSmrg])])# AC_PROG_LIBTOOL 709bd41f2cSmrg 719bd41f2cSmrg 729bd41f2cSmrg# _AC_PROG_LIBTOOL 739bd41f2cSmrg# ---------------- 749bd41f2cSmrgAC_DEFUN([_AC_PROG_LIBTOOL], 759bd41f2cSmrg[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 769bd41f2cSmrgAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 779bd41f2cSmrgAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 789bd41f2cSmrgAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 799bd41f2cSmrg 809bd41f2cSmrg# This can be used to rebuild libtool when needed 819bd41f2cSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 829bd41f2cSmrg 839bd41f2cSmrg# Always use our own libtool. 849bd41f2cSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 859bd41f2cSmrgAC_SUBST(LIBTOOL)dnl 869bd41f2cSmrg 879bd41f2cSmrg# Prevent multiple expansion 889bd41f2cSmrgdefine([AC_PROG_LIBTOOL], []) 899bd41f2cSmrg])# _AC_PROG_LIBTOOL 909bd41f2cSmrg 919bd41f2cSmrg 929bd41f2cSmrg# AC_LIBTOOL_SETUP 939bd41f2cSmrg# ---------------- 949bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SETUP], 959bd41f2cSmrg[AC_PREREQ(2.50)dnl 969bd41f2cSmrgAC_REQUIRE([AC_ENABLE_SHARED])dnl 979bd41f2cSmrgAC_REQUIRE([AC_ENABLE_STATIC])dnl 989bd41f2cSmrgAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 999bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 1009bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 1019bd41f2cSmrgAC_REQUIRE([AC_PROG_CC])dnl 1029bd41f2cSmrgAC_REQUIRE([AC_PROG_LD])dnl 1039bd41f2cSmrgAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 1049bd41f2cSmrgAC_REQUIRE([AC_PROG_NM])dnl 1059bd41f2cSmrg 1069bd41f2cSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 1079bd41f2cSmrgAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 1089bd41f2cSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1099bd41f2cSmrgAC_REQUIRE([AC_OBJEXT])dnl 1109bd41f2cSmrgAC_REQUIRE([AC_EXEEXT])dnl 1119bd41f2cSmrgdnl 1129bd41f2cSmrgAC_LIBTOOL_SYS_MAX_CMD_LEN 1139bd41f2cSmrgAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1149bd41f2cSmrgAC_LIBTOOL_OBJDIR 1159bd41f2cSmrg 1169bd41f2cSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1179bd41f2cSmrg_LT_AC_PROG_ECHO_BACKSLASH 1189bd41f2cSmrg 1199bd41f2cSmrgcase $host_os in 1209bd41f2cSmrgaix3*) 1219bd41f2cSmrg # AIX sometimes has problems with the GCC collect2 program. For some 1229bd41f2cSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 1239bd41f2cSmrg # vanish in a puff of smoke. 1249bd41f2cSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 1259bd41f2cSmrg COLLECT_NAMES= 1269bd41f2cSmrg export COLLECT_NAMES 1279bd41f2cSmrg fi 1289bd41f2cSmrg ;; 1299bd41f2cSmrgesac 1309bd41f2cSmrg 1319bd41f2cSmrg# Sed substitution that helps us do robust quoting. It backslashifies 1329bd41f2cSmrg# metacharacters that are still active within double-quoted strings. 1339bd41f2cSmrgXsed='sed -e 1s/^X//' 1349bd41f2cSmrg[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1359bd41f2cSmrg 1369bd41f2cSmrg# Same as above, but do not quote variable references. 1379bd41f2cSmrg[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 1389bd41f2cSmrg 1399bd41f2cSmrg# Sed substitution to delay expansion of an escaped shell variable in a 1409bd41f2cSmrg# double_quote_subst'ed string. 1419bd41f2cSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1429bd41f2cSmrg 1439bd41f2cSmrg# Sed substitution to avoid accidental globbing in evaled expressions 1449bd41f2cSmrgno_glob_subst='s/\*/\\\*/g' 1459bd41f2cSmrg 1469bd41f2cSmrg# Constants: 1479bd41f2cSmrgrm="rm -f" 1489bd41f2cSmrg 1499bd41f2cSmrg# Global variables: 1509bd41f2cSmrgdefault_ofile=libtool 1519bd41f2cSmrgcan_build_shared=yes 1529bd41f2cSmrg 1539bd41f2cSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 1549bd41f2cSmrg# which needs '.lib'). 1559bd41f2cSmrglibext=a 1569bd41f2cSmrgltmain="$ac_aux_dir/ltmain.sh" 1579bd41f2cSmrgofile="$default_ofile" 1589bd41f2cSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 1599bd41f2cSmrg 1609bd41f2cSmrgAC_CHECK_TOOL(AR, ar, false) 1619bd41f2cSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 1629bd41f2cSmrgAC_CHECK_TOOL(STRIP, strip, :) 1639bd41f2cSmrg 1649bd41f2cSmrgold_CC="$CC" 1659bd41f2cSmrgold_CFLAGS="$CFLAGS" 1669bd41f2cSmrg 1679bd41f2cSmrg# Set sane defaults for various variables 1689bd41f2cSmrgtest -z "$AR" && AR=ar 1699bd41f2cSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 1709bd41f2cSmrgtest -z "$AS" && AS=as 1719bd41f2cSmrgtest -z "$CC" && CC=cc 1729bd41f2cSmrgtest -z "$LTCC" && LTCC=$CC 1739bd41f2cSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1749bd41f2cSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 1759bd41f2cSmrgtest -z "$LD" && LD=ld 1769bd41f2cSmrgtest -z "$LN_S" && LN_S="ln -s" 1779bd41f2cSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 1789bd41f2cSmrgtest -z "$NM" && NM=nm 1799bd41f2cSmrgtest -z "$SED" && SED=sed 1809bd41f2cSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 1819bd41f2cSmrgtest -z "$RANLIB" && RANLIB=: 1829bd41f2cSmrgtest -z "$STRIP" && STRIP=: 1839bd41f2cSmrgtest -z "$ac_objext" && ac_objext=o 1849bd41f2cSmrg 1859bd41f2cSmrg# Determine commands to create old-style static archives. 1869bd41f2cSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 1879bd41f2cSmrgold_postinstall_cmds='chmod 644 $oldlib' 1889bd41f2cSmrgold_postuninstall_cmds= 1899bd41f2cSmrg 1909bd41f2cSmrgif test -n "$RANLIB"; then 1919bd41f2cSmrg case $host_os in 1929bd41f2cSmrg openbsd*) 1939bd41f2cSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1949bd41f2cSmrg ;; 1959bd41f2cSmrg *) 1969bd41f2cSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1979bd41f2cSmrg ;; 1989bd41f2cSmrg esac 1999bd41f2cSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 2009bd41f2cSmrgfi 2019bd41f2cSmrg 2029bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 2039bd41f2cSmrg 2049bd41f2cSmrg# Only perform the check for file, if the check method requires it 2059bd41f2cSmrgcase $deplibs_check_method in 2069bd41f2cSmrgfile_magic*) 2079bd41f2cSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2089bd41f2cSmrg AC_PATH_MAGIC 2099bd41f2cSmrg fi 2109bd41f2cSmrg ;; 2119bd41f2cSmrgesac 2129bd41f2cSmrg 213d075918cSmrg_LT_REQUIRED_DARWIN_CHECKS 214d075918cSmrg 2159bd41f2cSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 2169bd41f2cSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 2179bd41f2cSmrgenable_win32_dll=yes, enable_win32_dll=no) 2189bd41f2cSmrg 2199bd41f2cSmrgAC_ARG_ENABLE([libtool-lock], 2209bd41f2cSmrg [AC_HELP_STRING([--disable-libtool-lock], 2219bd41f2cSmrg [avoid locking (might break parallel builds)])]) 2229bd41f2cSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2239bd41f2cSmrg 2249bd41f2cSmrgAC_ARG_WITH([pic], 2259bd41f2cSmrg [AC_HELP_STRING([--with-pic], 2269bd41f2cSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 2279bd41f2cSmrg [pic_mode="$withval"], 2289bd41f2cSmrg [pic_mode=default]) 2299bd41f2cSmrgtest -z "$pic_mode" && pic_mode=default 2309bd41f2cSmrg 2319bd41f2cSmrg# Use C for the default configuration in the libtool script 2329bd41f2cSmrgtagname= 2339bd41f2cSmrgAC_LIBTOOL_LANG_C_CONFIG 2349bd41f2cSmrg_LT_AC_TAGCONFIG 2359bd41f2cSmrg])# AC_LIBTOOL_SETUP 2369bd41f2cSmrg 2379bd41f2cSmrg 2389bd41f2cSmrg# _LT_AC_SYS_COMPILER 2399bd41f2cSmrg# ------------------- 2409bd41f2cSmrgAC_DEFUN([_LT_AC_SYS_COMPILER], 2419bd41f2cSmrg[AC_REQUIRE([AC_PROG_CC])dnl 2429bd41f2cSmrg 2439bd41f2cSmrg# If no C compiler was specified, use CC. 2449bd41f2cSmrgLTCC=${LTCC-"$CC"} 2459bd41f2cSmrg 2469bd41f2cSmrg# If no C compiler flags were specified, use CFLAGS. 2479bd41f2cSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2489bd41f2cSmrg 2499bd41f2cSmrg# Allow CC to be a program name with arguments. 2509bd41f2cSmrgcompiler=$CC 2519bd41f2cSmrg])# _LT_AC_SYS_COMPILER 2529bd41f2cSmrg 2539bd41f2cSmrg 2549bd41f2cSmrg# _LT_CC_BASENAME(CC) 2559bd41f2cSmrg# ------------------- 2569bd41f2cSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2579bd41f2cSmrgAC_DEFUN([_LT_CC_BASENAME], 2589bd41f2cSmrg[for cc_temp in $1""; do 2599bd41f2cSmrg case $cc_temp in 2609bd41f2cSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2619bd41f2cSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2629bd41f2cSmrg \-*) ;; 2639bd41f2cSmrg *) break;; 2649bd41f2cSmrg esac 2659bd41f2cSmrgdone 2669bd41f2cSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 2679bd41f2cSmrg]) 2689bd41f2cSmrg 2699bd41f2cSmrg 2709bd41f2cSmrg# _LT_COMPILER_BOILERPLATE 2719bd41f2cSmrg# ------------------------ 2729bd41f2cSmrg# Check for compiler boilerplate output or warnings with 2739bd41f2cSmrg# the simple compiler test code. 2749bd41f2cSmrgAC_DEFUN([_LT_COMPILER_BOILERPLATE], 2759bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 2769bd41f2cSmrgac_outfile=conftest.$ac_objext 2779bd41f2cSmrgecho "$lt_simple_compile_test_code" >conftest.$ac_ext 2789bd41f2cSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2799bd41f2cSmrg_lt_compiler_boilerplate=`cat conftest.err` 2809bd41f2cSmrg$rm conftest* 2819bd41f2cSmrg])# _LT_COMPILER_BOILERPLATE 2829bd41f2cSmrg 2839bd41f2cSmrg 2849bd41f2cSmrg# _LT_LINKER_BOILERPLATE 2859bd41f2cSmrg# ---------------------- 2869bd41f2cSmrg# Check for linker boilerplate output or warnings with 2879bd41f2cSmrg# the simple link test code. 2889bd41f2cSmrgAC_DEFUN([_LT_LINKER_BOILERPLATE], 2899bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 2909bd41f2cSmrgac_outfile=conftest.$ac_objext 2919bd41f2cSmrgecho "$lt_simple_link_test_code" >conftest.$ac_ext 2929bd41f2cSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2939bd41f2cSmrg_lt_linker_boilerplate=`cat conftest.err` 294d075918cSmrg$rm -r conftest* 2959bd41f2cSmrg])# _LT_LINKER_BOILERPLATE 2969bd41f2cSmrg 297d075918cSmrg# _LT_REQUIRED_DARWIN_CHECKS 298d075918cSmrg# -------------------------- 299d075918cSmrg# Check for some things on darwin 300d075918cSmrgAC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ 301d075918cSmrg case $host_os in 302d075918cSmrg rhapsody* | darwin*) 303d075918cSmrg AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) 304d075918cSmrg AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) 305d075918cSmrg 306d075918cSmrg AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], 307d075918cSmrg [lt_cv_apple_cc_single_mod=no 308d075918cSmrg if test -z "${LT_MULTI_MODULE}"; then 309d075918cSmrg # By default we will add the -single_module flag. You can override 310d075918cSmrg # by either setting the environment variable LT_MULTI_MODULE 311d075918cSmrg # non-empty at configure time, or by adding -multi_module to the 312d075918cSmrg # link flags. 313d075918cSmrg echo "int foo(void){return 1;}" > conftest.c 314d075918cSmrg $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 315d075918cSmrg -dynamiclib ${wl}-single_module conftest.c 316d075918cSmrg if test -f libconftest.dylib; then 317d075918cSmrg lt_cv_apple_cc_single_mod=yes 318d075918cSmrg rm -rf libconftest.dylib* 319d075918cSmrg fi 320d075918cSmrg rm conftest.c 321d075918cSmrg fi]) 322d075918cSmrg AC_CACHE_CHECK([for -exported_symbols_list linker flag], 323d075918cSmrg [lt_cv_ld_exported_symbols_list], 324d075918cSmrg [lt_cv_ld_exported_symbols_list=no 325d075918cSmrg save_LDFLAGS=$LDFLAGS 326d075918cSmrg echo "_main" > conftest.sym 327d075918cSmrg LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 328d075918cSmrg AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], 329d075918cSmrg [lt_cv_ld_exported_symbols_list=yes], 330d075918cSmrg [lt_cv_ld_exported_symbols_list=no]) 331d075918cSmrg LDFLAGS="$save_LDFLAGS" 332d075918cSmrg ]) 333d075918cSmrg case $host_os in 334d075918cSmrg rhapsody* | darwin1.[[0123]]) 335d075918cSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 336d075918cSmrg darwin1.*) 337d075918cSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 338d075918cSmrg darwin*) 339d075918cSmrg # if running on 10.5 or later, the deployment target defaults 340d075918cSmrg # to the OS version, if on x86, and 10.4, the deployment 341d075918cSmrg # target defaults to 10.4. Don't you love it? 342d075918cSmrg case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 343d075918cSmrg 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) 344d075918cSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 345d075918cSmrg 10.[[012]]*) 346d075918cSmrg _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 347d075918cSmrg 10.*) 348d075918cSmrg _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 349d075918cSmrg esac 350d075918cSmrg ;; 351d075918cSmrg esac 352d075918cSmrg if test "$lt_cv_apple_cc_single_mod" = "yes"; then 353d075918cSmrg _lt_dar_single_mod='$single_module' 354d075918cSmrg fi 355d075918cSmrg if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 356d075918cSmrg _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 357d075918cSmrg else 358d075918cSmrg _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" 359d075918cSmrg fi 360d075918cSmrg if test "$DSYMUTIL" != ":"; then 361d075918cSmrg _lt_dsymutil="~$DSYMUTIL \$lib || :" 362d075918cSmrg else 363d075918cSmrg _lt_dsymutil= 364d075918cSmrg fi 365d075918cSmrg ;; 366d075918cSmrg esac 367d075918cSmrg]) 3689bd41f2cSmrg 3699bd41f2cSmrg# _LT_AC_SYS_LIBPATH_AIX 3709bd41f2cSmrg# ---------------------- 3719bd41f2cSmrg# Links a minimal program and checks the executable 3729bd41f2cSmrg# for the system default hardcoded library path. In most cases, 3739bd41f2cSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 3749bd41f2cSmrg# the location of the communication and MPI libs are included too. 3759bd41f2cSmrg# If we don't find anything, use the default library path according 3769bd41f2cSmrg# to the aix ld manual. 3779bd41f2cSmrgAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 3789bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 3799bd41f2cSmrgAC_LINK_IFELSE(AC_LANG_PROGRAM,[ 3809bd41f2cSmrglt_aix_libpath_sed=' 3819bd41f2cSmrg /Import File Strings/,/^$/ { 3829bd41f2cSmrg /^0/ { 3839bd41f2cSmrg s/^0 *\(.*\)$/\1/ 3849bd41f2cSmrg p 3859bd41f2cSmrg } 3869bd41f2cSmrg }' 3879bd41f2cSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3889bd41f2cSmrg# Check for a 64-bit object if we didn't find anything. 3899bd41f2cSmrgif test -z "$aix_libpath"; then 3909bd41f2cSmrg aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 3919bd41f2cSmrgfi],[]) 3929bd41f2cSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3939bd41f2cSmrg])# _LT_AC_SYS_LIBPATH_AIX 3949bd41f2cSmrg 3959bd41f2cSmrg 3969bd41f2cSmrg# _LT_AC_SHELL_INIT(ARG) 3979bd41f2cSmrg# ---------------------- 3989bd41f2cSmrgAC_DEFUN([_LT_AC_SHELL_INIT], 3999bd41f2cSmrg[ifdef([AC_DIVERSION_NOTICE], 4009bd41f2cSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 4019bd41f2cSmrg [AC_DIVERT_PUSH(NOTICE)]) 4029bd41f2cSmrg$1 4039bd41f2cSmrgAC_DIVERT_POP 4049bd41f2cSmrg])# _LT_AC_SHELL_INIT 4059bd41f2cSmrg 4069bd41f2cSmrg 4079bd41f2cSmrg# _LT_AC_PROG_ECHO_BACKSLASH 4089bd41f2cSmrg# -------------------------- 4099bd41f2cSmrg# Add some code to the start of the generated configure script which 4109bd41f2cSmrg# will find an echo command which doesn't interpret backslashes. 4119bd41f2cSmrgAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 4129bd41f2cSmrg[_LT_AC_SHELL_INIT([ 4139bd41f2cSmrg# Check that we are running under the correct shell. 4149bd41f2cSmrgSHELL=${CONFIG_SHELL-/bin/sh} 4159bd41f2cSmrg 4169bd41f2cSmrgcase X$ECHO in 4179bd41f2cSmrgX*--fallback-echo) 4189bd41f2cSmrg # Remove one level of quotation (which was required for Make). 4199bd41f2cSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 4209bd41f2cSmrg ;; 4219bd41f2cSmrgesac 4229bd41f2cSmrg 4239bd41f2cSmrgecho=${ECHO-echo} 4249bd41f2cSmrgif test "X[$]1" = X--no-reexec; then 4259bd41f2cSmrg # Discard the --no-reexec flag, and continue. 4269bd41f2cSmrg shift 4279bd41f2cSmrgelif test "X[$]1" = X--fallback-echo; then 4289bd41f2cSmrg # Avoid inline document here, it may be left over 4299bd41f2cSmrg : 4309bd41f2cSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 4319bd41f2cSmrg # Yippee, $echo works! 4329bd41f2cSmrg : 4339bd41f2cSmrgelse 4349bd41f2cSmrg # Restart under the correct shell. 4359bd41f2cSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 4369bd41f2cSmrgfi 4379bd41f2cSmrg 4389bd41f2cSmrgif test "X[$]1" = X--fallback-echo; then 4399bd41f2cSmrg # used as fallback echo 4409bd41f2cSmrg shift 4419bd41f2cSmrg cat <<EOF 4429bd41f2cSmrg[$]* 4439bd41f2cSmrgEOF 4449bd41f2cSmrg exit 0 4459bd41f2cSmrgfi 4469bd41f2cSmrg 4479bd41f2cSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 4489bd41f2cSmrg# if CDPATH is set. 4499bd41f2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 4509bd41f2cSmrg 4519bd41f2cSmrgif test -z "$ECHO"; then 4529bd41f2cSmrgif test "X${echo_test_string+set}" != Xset; then 4539bd41f2cSmrg# find a string as large as possible, as long as the shell can cope with it 4549bd41f2cSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 4559bd41f2cSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 4569bd41f2cSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 4579bd41f2cSmrg echo_test_string=`eval $cmd` && 4589bd41f2cSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 4599bd41f2cSmrg then 4609bd41f2cSmrg break 4619bd41f2cSmrg fi 4629bd41f2cSmrg done 4639bd41f2cSmrgfi 4649bd41f2cSmrg 4659bd41f2cSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 4669bd41f2cSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 4679bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4689bd41f2cSmrg : 4699bd41f2cSmrgelse 4709bd41f2cSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 4719bd41f2cSmrg # backslashes. This makes it impossible to quote backslashes using 4729bd41f2cSmrg # echo "$something" | sed 's/\\/\\\\/g' 4739bd41f2cSmrg # 4749bd41f2cSmrg # So, first we look for a working echo in the user's PATH. 4759bd41f2cSmrg 4769bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4779bd41f2cSmrg for dir in $PATH /usr/ucb; do 4789bd41f2cSmrg IFS="$lt_save_ifs" 4799bd41f2cSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 4809bd41f2cSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 4819bd41f2cSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 4829bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4839bd41f2cSmrg echo="$dir/echo" 4849bd41f2cSmrg break 4859bd41f2cSmrg fi 4869bd41f2cSmrg done 4879bd41f2cSmrg IFS="$lt_save_ifs" 4889bd41f2cSmrg 4899bd41f2cSmrg if test "X$echo" = Xecho; then 4909bd41f2cSmrg # We didn't find a better echo, so look for alternatives. 4919bd41f2cSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 4929bd41f2cSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 4939bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4949bd41f2cSmrg # This shell has a builtin print -r that does the trick. 4959bd41f2cSmrg echo='print -r' 4969bd41f2cSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 4979bd41f2cSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 4989bd41f2cSmrg # If we have ksh, try running configure again with it. 4999bd41f2cSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 5009bd41f2cSmrg export ORIGINAL_CONFIG_SHELL 5019bd41f2cSmrg CONFIG_SHELL=/bin/ksh 5029bd41f2cSmrg export CONFIG_SHELL 5039bd41f2cSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 5049bd41f2cSmrg else 5059bd41f2cSmrg # Try using printf. 5069bd41f2cSmrg echo='printf %s\n' 5079bd41f2cSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 5089bd41f2cSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 5099bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 5109bd41f2cSmrg # Cool, printf works 5119bd41f2cSmrg : 5129bd41f2cSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 5139bd41f2cSmrg test "X$echo_testing_string" = 'X\t' && 5149bd41f2cSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 5159bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 5169bd41f2cSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 5179bd41f2cSmrg export CONFIG_SHELL 5189bd41f2cSmrg SHELL="$CONFIG_SHELL" 5199bd41f2cSmrg export SHELL 5209bd41f2cSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 5219bd41f2cSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 5229bd41f2cSmrg test "X$echo_testing_string" = 'X\t' && 5239bd41f2cSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 5249bd41f2cSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 5259bd41f2cSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 5269bd41f2cSmrg else 5279bd41f2cSmrg # maybe with a smaller string... 5289bd41f2cSmrg prev=: 5299bd41f2cSmrg 5309bd41f2cSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 5319bd41f2cSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 5329bd41f2cSmrg then 5339bd41f2cSmrg break 5349bd41f2cSmrg fi 5359bd41f2cSmrg prev="$cmd" 5369bd41f2cSmrg done 5379bd41f2cSmrg 5389bd41f2cSmrg if test "$prev" != 'sed 50q "[$]0"'; then 5399bd41f2cSmrg echo_test_string=`eval $prev` 5409bd41f2cSmrg export echo_test_string 5419bd41f2cSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 5429bd41f2cSmrg else 5439bd41f2cSmrg # Oops. We lost completely, so just stick with echo. 5449bd41f2cSmrg echo=echo 5459bd41f2cSmrg fi 5469bd41f2cSmrg fi 5479bd41f2cSmrg fi 5489bd41f2cSmrg fi 5499bd41f2cSmrgfi 5509bd41f2cSmrgfi 5519bd41f2cSmrg 5529bd41f2cSmrg# Copy echo and quote the copy suitably for passing to libtool from 5539bd41f2cSmrg# the Makefile, instead of quoting the original, which is used later. 5549bd41f2cSmrgECHO=$echo 5559bd41f2cSmrgif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 5569bd41f2cSmrg ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 5579bd41f2cSmrgfi 5589bd41f2cSmrg 5599bd41f2cSmrgAC_SUBST(ECHO) 5609bd41f2cSmrg])])# _LT_AC_PROG_ECHO_BACKSLASH 5619bd41f2cSmrg 5629bd41f2cSmrg 5639bd41f2cSmrg# _LT_AC_LOCK 5649bd41f2cSmrg# ----------- 5659bd41f2cSmrgAC_DEFUN([_LT_AC_LOCK], 5669bd41f2cSmrg[AC_ARG_ENABLE([libtool-lock], 5679bd41f2cSmrg [AC_HELP_STRING([--disable-libtool-lock], 5689bd41f2cSmrg [avoid locking (might break parallel builds)])]) 5699bd41f2cSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5709bd41f2cSmrg 5719bd41f2cSmrg# Some flags need to be propagated to the compiler or linker for good 5729bd41f2cSmrg# libtool support. 5739bd41f2cSmrgcase $host in 5749bd41f2cSmrgia64-*-hpux*) 5759bd41f2cSmrg # Find out which ABI we are using. 5769bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 5779bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 5789bd41f2cSmrg case `/usr/bin/file conftest.$ac_objext` in 5799bd41f2cSmrg *ELF-32*) 5809bd41f2cSmrg HPUX_IA64_MODE="32" 5819bd41f2cSmrg ;; 5829bd41f2cSmrg *ELF-64*) 5839bd41f2cSmrg HPUX_IA64_MODE="64" 5849bd41f2cSmrg ;; 5859bd41f2cSmrg esac 5869bd41f2cSmrg fi 5879bd41f2cSmrg rm -rf conftest* 5889bd41f2cSmrg ;; 5899bd41f2cSmrg*-*-irix6*) 5909bd41f2cSmrg # Find out which ABI we are using. 5919bd41f2cSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 5929bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 5939bd41f2cSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 5949bd41f2cSmrg case `/usr/bin/file conftest.$ac_objext` in 5959bd41f2cSmrg *32-bit*) 5969bd41f2cSmrg LD="${LD-ld} -melf32bsmip" 5979bd41f2cSmrg ;; 5989bd41f2cSmrg *N32*) 5999bd41f2cSmrg LD="${LD-ld} -melf32bmipn32" 6009bd41f2cSmrg ;; 6019bd41f2cSmrg *64-bit*) 6029bd41f2cSmrg LD="${LD-ld} -melf64bmip" 6039bd41f2cSmrg ;; 6049bd41f2cSmrg esac 6059bd41f2cSmrg else 6069bd41f2cSmrg case `/usr/bin/file conftest.$ac_objext` in 6079bd41f2cSmrg *32-bit*) 6089bd41f2cSmrg LD="${LD-ld} -32" 6099bd41f2cSmrg ;; 6109bd41f2cSmrg *N32*) 6119bd41f2cSmrg LD="${LD-ld} -n32" 6129bd41f2cSmrg ;; 6139bd41f2cSmrg *64-bit*) 6149bd41f2cSmrg LD="${LD-ld} -64" 6159bd41f2cSmrg ;; 6169bd41f2cSmrg esac 6179bd41f2cSmrg fi 6189bd41f2cSmrg fi 6199bd41f2cSmrg rm -rf conftest* 6209bd41f2cSmrg ;; 6219bd41f2cSmrg 6229bd41f2cSmrgx86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6239bd41f2cSmrgs390*-*linux*|sparc*-*linux*) 6249bd41f2cSmrg # Find out which ABI we are using. 6259bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 6269bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 6279bd41f2cSmrg case `/usr/bin/file conftest.o` in 6289bd41f2cSmrg *32-bit*) 6299bd41f2cSmrg case $host in 6309bd41f2cSmrg x86_64-*kfreebsd*-gnu) 6319bd41f2cSmrg LD="${LD-ld} -m elf_i386_fbsd" 6329bd41f2cSmrg ;; 6339bd41f2cSmrg x86_64-*linux*) 6349bd41f2cSmrg LD="${LD-ld} -m elf_i386" 6359bd41f2cSmrg ;; 6369bd41f2cSmrg ppc64-*linux*|powerpc64-*linux*) 6379bd41f2cSmrg LD="${LD-ld} -m elf32ppclinux" 6389bd41f2cSmrg ;; 6399bd41f2cSmrg s390x-*linux*) 6409bd41f2cSmrg LD="${LD-ld} -m elf_s390" 6419bd41f2cSmrg ;; 6429bd41f2cSmrg sparc64-*linux*) 6439bd41f2cSmrg LD="${LD-ld} -m elf32_sparc" 6449bd41f2cSmrg ;; 6459bd41f2cSmrg esac 6469bd41f2cSmrg ;; 6479bd41f2cSmrg *64-bit*) 6489bd41f2cSmrg case $host in 6499bd41f2cSmrg x86_64-*kfreebsd*-gnu) 6509bd41f2cSmrg LD="${LD-ld} -m elf_x86_64_fbsd" 6519bd41f2cSmrg ;; 6529bd41f2cSmrg x86_64-*linux*) 6539bd41f2cSmrg LD="${LD-ld} -m elf_x86_64" 6549bd41f2cSmrg ;; 6559bd41f2cSmrg ppc*-*linux*|powerpc*-*linux*) 6569bd41f2cSmrg LD="${LD-ld} -m elf64ppc" 6579bd41f2cSmrg ;; 6589bd41f2cSmrg s390*-*linux*) 6599bd41f2cSmrg LD="${LD-ld} -m elf64_s390" 6609bd41f2cSmrg ;; 6619bd41f2cSmrg sparc*-*linux*) 6629bd41f2cSmrg LD="${LD-ld} -m elf64_sparc" 6639bd41f2cSmrg ;; 6649bd41f2cSmrg esac 6659bd41f2cSmrg ;; 6669bd41f2cSmrg esac 6679bd41f2cSmrg fi 6689bd41f2cSmrg rm -rf conftest* 6699bd41f2cSmrg ;; 6709bd41f2cSmrg 6719bd41f2cSmrg*-*-sco3.2v5*) 6729bd41f2cSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6739bd41f2cSmrg SAVE_CFLAGS="$CFLAGS" 6749bd41f2cSmrg CFLAGS="$CFLAGS -belf" 6759bd41f2cSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 6769bd41f2cSmrg [AC_LANG_PUSH(C) 6779bd41f2cSmrg AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 6789bd41f2cSmrg AC_LANG_POP]) 6799bd41f2cSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6809bd41f2cSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6819bd41f2cSmrg CFLAGS="$SAVE_CFLAGS" 6829bd41f2cSmrg fi 6839bd41f2cSmrg ;; 6849bd41f2cSmrgsparc*-*solaris*) 6859bd41f2cSmrg # Find out which ABI we are using. 6869bd41f2cSmrg echo 'int i;' > conftest.$ac_ext 6879bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 6889bd41f2cSmrg case `/usr/bin/file conftest.o` in 6899bd41f2cSmrg *64-bit*) 6909bd41f2cSmrg case $lt_cv_prog_gnu_ld in 6919bd41f2cSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 692d075918cSmrg *) 693d075918cSmrg if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 694d075918cSmrg LD="${LD-ld} -64" 695d075918cSmrg fi 696d075918cSmrg ;; 6979bd41f2cSmrg esac 6989bd41f2cSmrg ;; 6999bd41f2cSmrg esac 7009bd41f2cSmrg fi 7019bd41f2cSmrg rm -rf conftest* 7029bd41f2cSmrg ;; 7039bd41f2cSmrg 7049bd41f2cSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 7059bd41f2cSmrg[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 7069bd41f2cSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 7079bd41f2cSmrg AC_CHECK_TOOL(AS, as, false) 7089bd41f2cSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 7099bd41f2cSmrg ;; 7109bd41f2cSmrg ]) 7119bd41f2cSmrgesac 7129bd41f2cSmrg 7139bd41f2cSmrgneed_locks="$enable_libtool_lock" 7149bd41f2cSmrg 7159bd41f2cSmrg])# _LT_AC_LOCK 7169bd41f2cSmrg 7179bd41f2cSmrg 7189bd41f2cSmrg# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 7199bd41f2cSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 7209bd41f2cSmrg# ---------------------------------------------------------------- 7219bd41f2cSmrg# Check whether the given compiler option works 7229bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 7239bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED]) 7249bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 7259bd41f2cSmrg [$2=no 7269bd41f2cSmrg ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 7279bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7289bd41f2cSmrg lt_compiler_flag="$3" 7299bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 7309bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 7319bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 7329bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 7339bd41f2cSmrg # The option is referenced via a variable to avoid confusing sed. 7349bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 7359bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7369bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 7379bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 7389bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 7399bd41f2cSmrg (eval "$lt_compile" 2>conftest.err) 7409bd41f2cSmrg ac_status=$? 7419bd41f2cSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 7429bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 7439bd41f2cSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 7449bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 7459bd41f2cSmrg # So say no if there are warnings other than the usual output. 7469bd41f2cSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 7479bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7489bd41f2cSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7499bd41f2cSmrg $2=yes 7509bd41f2cSmrg fi 7519bd41f2cSmrg fi 7529bd41f2cSmrg $rm conftest* 7539bd41f2cSmrg]) 7549bd41f2cSmrg 7559bd41f2cSmrgif test x"[$]$2" = xyes; then 7569bd41f2cSmrg ifelse([$5], , :, [$5]) 7579bd41f2cSmrgelse 7589bd41f2cSmrg ifelse([$6], , :, [$6]) 7599bd41f2cSmrgfi 7609bd41f2cSmrg])# AC_LIBTOOL_COMPILER_OPTION 7619bd41f2cSmrg 7629bd41f2cSmrg 7639bd41f2cSmrg# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 7649bd41f2cSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 7659bd41f2cSmrg# ------------------------------------------------------------ 7669bd41f2cSmrg# Check whether the given compiler option works 7679bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 7689bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 7699bd41f2cSmrgAC_CACHE_CHECK([$1], [$2], 7709bd41f2cSmrg [$2=no 7719bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 7729bd41f2cSmrg LDFLAGS="$LDFLAGS $3" 7739bd41f2cSmrg echo "$lt_simple_link_test_code" > conftest.$ac_ext 7749bd41f2cSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 7759bd41f2cSmrg # The linker can only warn and ignore the option if not recognized 7769bd41f2cSmrg # So say no if there are warnings 7779bd41f2cSmrg if test -s conftest.err; then 7789bd41f2cSmrg # Append any errors to the config.log. 7799bd41f2cSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 7809bd41f2cSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 7819bd41f2cSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7829bd41f2cSmrg if diff conftest.exp conftest.er2 >/dev/null; then 7839bd41f2cSmrg $2=yes 7849bd41f2cSmrg fi 7859bd41f2cSmrg else 7869bd41f2cSmrg $2=yes 7879bd41f2cSmrg fi 7889bd41f2cSmrg fi 789d075918cSmrg $rm -r conftest* 7909bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 7919bd41f2cSmrg]) 7929bd41f2cSmrg 7939bd41f2cSmrgif test x"[$]$2" = xyes; then 7949bd41f2cSmrg ifelse([$4], , :, [$4]) 7959bd41f2cSmrgelse 7969bd41f2cSmrg ifelse([$5], , :, [$5]) 7979bd41f2cSmrgfi 7989bd41f2cSmrg])# AC_LIBTOOL_LINKER_OPTION 7999bd41f2cSmrg 8009bd41f2cSmrg 8019bd41f2cSmrg# AC_LIBTOOL_SYS_MAX_CMD_LEN 8029bd41f2cSmrg# -------------------------- 8039bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 8049bd41f2cSmrg[# find the maximum length of command line arguments 8059bd41f2cSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 8069bd41f2cSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 8079bd41f2cSmrg i=0 8089bd41f2cSmrg teststring="ABCD" 8099bd41f2cSmrg 8109bd41f2cSmrg case $build_os in 8119bd41f2cSmrg msdosdjgpp*) 8129bd41f2cSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 8139bd41f2cSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 8149bd41f2cSmrg # during glob expansion). Even if it were fixed, the result of this 8159bd41f2cSmrg # check would be larger than it should be. 8169bd41f2cSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 8179bd41f2cSmrg ;; 8189bd41f2cSmrg 8199bd41f2cSmrg gnu*) 8209bd41f2cSmrg # Under GNU Hurd, this test is not required because there is 8219bd41f2cSmrg # no limit to the length of command line arguments. 8229bd41f2cSmrg # Libtool will interpret -1 as no limit whatsoever 8239bd41f2cSmrg lt_cv_sys_max_cmd_len=-1; 8249bd41f2cSmrg ;; 8259bd41f2cSmrg 8269bd41f2cSmrg cygwin* | mingw*) 8279bd41f2cSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 8289bd41f2cSmrg # about 5 minutes as the teststring grows exponentially. 8299bd41f2cSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 8309bd41f2cSmrg # you end up with a "frozen" computer, even though with patience 8319bd41f2cSmrg # the test eventually succeeds (with a max line length of 256k). 8329bd41f2cSmrg # Instead, let's just punt: use the minimum linelength reported by 8339bd41f2cSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 8349bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 8359bd41f2cSmrg ;; 8369bd41f2cSmrg 8379bd41f2cSmrg amigaos*) 8389bd41f2cSmrg # On AmigaOS with pdksh, this test takes hours, literally. 8399bd41f2cSmrg # So we just punt and use a minimum line length of 8192. 8409bd41f2cSmrg lt_cv_sys_max_cmd_len=8192; 8419bd41f2cSmrg ;; 8429bd41f2cSmrg 8439bd41f2cSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 8449bd41f2cSmrg # This has been around since 386BSD, at least. Likely further. 8459bd41f2cSmrg if test -x /sbin/sysctl; then 8469bd41f2cSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 8479bd41f2cSmrg elif test -x /usr/sbin/sysctl; then 8489bd41f2cSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 8499bd41f2cSmrg else 8509bd41f2cSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 8519bd41f2cSmrg fi 8529bd41f2cSmrg # And add a safety zone 8539bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8549bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8559bd41f2cSmrg ;; 8569bd41f2cSmrg 8579bd41f2cSmrg interix*) 8589bd41f2cSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 8599bd41f2cSmrg lt_cv_sys_max_cmd_len=196608 8609bd41f2cSmrg ;; 8619bd41f2cSmrg 8629bd41f2cSmrg osf*) 8639bd41f2cSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 8649bd41f2cSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 8659bd41f2cSmrg # nice to cause kernel panics so lets avoid the loop below. 8669bd41f2cSmrg # First set a reasonable default. 8679bd41f2cSmrg lt_cv_sys_max_cmd_len=16384 8689bd41f2cSmrg # 8699bd41f2cSmrg if test -x /sbin/sysconfig; then 8709bd41f2cSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 8719bd41f2cSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 8729bd41f2cSmrg esac 8739bd41f2cSmrg fi 8749bd41f2cSmrg ;; 8759bd41f2cSmrg sco3.2v5*) 8769bd41f2cSmrg lt_cv_sys_max_cmd_len=102400 8779bd41f2cSmrg ;; 8789bd41f2cSmrg sysv5* | sco5v6* | sysv4.2uw2*) 8799bd41f2cSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 8809bd41f2cSmrg if test -n "$kargmax"; then 8819bd41f2cSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 8829bd41f2cSmrg else 8839bd41f2cSmrg lt_cv_sys_max_cmd_len=32768 8849bd41f2cSmrg fi 8859bd41f2cSmrg ;; 8869bd41f2cSmrg *) 8879bd41f2cSmrg lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 8889bd41f2cSmrg if test -n "$lt_cv_sys_max_cmd_len"; then 8899bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 8909bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 8919bd41f2cSmrg else 8929bd41f2cSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 8939bd41f2cSmrg while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 8949bd41f2cSmrg = "XX$teststring") >/dev/null 2>&1 && 8959bd41f2cSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 8969bd41f2cSmrg lt_cv_sys_max_cmd_len=$new_result && 8979bd41f2cSmrg test $i != 17 # 1/2 MB should be enough 8989bd41f2cSmrg do 8999bd41f2cSmrg i=`expr $i + 1` 9009bd41f2cSmrg teststring=$teststring$teststring 9019bd41f2cSmrg done 9029bd41f2cSmrg teststring= 9039bd41f2cSmrg # Add a significant safety factor because C++ compilers can tack on massive 9049bd41f2cSmrg # amounts of additional arguments before passing them to the linker. 9059bd41f2cSmrg # It appears as though 1/2 is a usable value. 9069bd41f2cSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 9079bd41f2cSmrg fi 9089bd41f2cSmrg ;; 9099bd41f2cSmrg esac 9109bd41f2cSmrg]) 9119bd41f2cSmrgif test -n $lt_cv_sys_max_cmd_len ; then 9129bd41f2cSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 9139bd41f2cSmrgelse 9149bd41f2cSmrg AC_MSG_RESULT(none) 9159bd41f2cSmrgfi 9169bd41f2cSmrg])# AC_LIBTOOL_SYS_MAX_CMD_LEN 9179bd41f2cSmrg 9189bd41f2cSmrg 9199bd41f2cSmrg# _LT_AC_CHECK_DLFCN 9209bd41f2cSmrg# ------------------ 9219bd41f2cSmrgAC_DEFUN([_LT_AC_CHECK_DLFCN], 9229bd41f2cSmrg[AC_CHECK_HEADERS(dlfcn.h)dnl 9239bd41f2cSmrg])# _LT_AC_CHECK_DLFCN 9249bd41f2cSmrg 9259bd41f2cSmrg 9269bd41f2cSmrg# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 9279bd41f2cSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 9289bd41f2cSmrg# --------------------------------------------------------------------- 9299bd41f2cSmrgAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 9309bd41f2cSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 9319bd41f2cSmrgif test "$cross_compiling" = yes; then : 9329bd41f2cSmrg [$4] 9339bd41f2cSmrgelse 9349bd41f2cSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9359bd41f2cSmrg lt_status=$lt_dlunknown 9369bd41f2cSmrg cat > conftest.$ac_ext <<EOF 9379bd41f2cSmrg[#line __oline__ "configure" 9389bd41f2cSmrg#include "confdefs.h" 9399bd41f2cSmrg 9409bd41f2cSmrg#if HAVE_DLFCN_H 9419bd41f2cSmrg#include <dlfcn.h> 9429bd41f2cSmrg#endif 9439bd41f2cSmrg 9449bd41f2cSmrg#include <stdio.h> 9459bd41f2cSmrg 9469bd41f2cSmrg#ifdef RTLD_GLOBAL 9479bd41f2cSmrg# define LT_DLGLOBAL RTLD_GLOBAL 9489bd41f2cSmrg#else 9499bd41f2cSmrg# ifdef DL_GLOBAL 9509bd41f2cSmrg# define LT_DLGLOBAL DL_GLOBAL 9519bd41f2cSmrg# else 9529bd41f2cSmrg# define LT_DLGLOBAL 0 9539bd41f2cSmrg# endif 9549bd41f2cSmrg#endif 9559bd41f2cSmrg 9569bd41f2cSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9579bd41f2cSmrg find out it does not work in some platform. */ 9589bd41f2cSmrg#ifndef LT_DLLAZY_OR_NOW 9599bd41f2cSmrg# ifdef RTLD_LAZY 9609bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 9619bd41f2cSmrg# else 9629bd41f2cSmrg# ifdef DL_LAZY 9639bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 9649bd41f2cSmrg# else 9659bd41f2cSmrg# ifdef RTLD_NOW 9669bd41f2cSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 9679bd41f2cSmrg# else 9689bd41f2cSmrg# ifdef DL_NOW 9699bd41f2cSmrg# define LT_DLLAZY_OR_NOW DL_NOW 9709bd41f2cSmrg# else 9719bd41f2cSmrg# define LT_DLLAZY_OR_NOW 0 9729bd41f2cSmrg# endif 9739bd41f2cSmrg# endif 9749bd41f2cSmrg# endif 9759bd41f2cSmrg# endif 9769bd41f2cSmrg#endif 9779bd41f2cSmrg 9789bd41f2cSmrg#ifdef __cplusplus 9799bd41f2cSmrgextern "C" void exit (int); 9809bd41f2cSmrg#endif 9819bd41f2cSmrg 9829bd41f2cSmrgvoid fnord() { int i=42;} 9839bd41f2cSmrgint main () 9849bd41f2cSmrg{ 9859bd41f2cSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9869bd41f2cSmrg int status = $lt_dlunknown; 9879bd41f2cSmrg 9889bd41f2cSmrg if (self) 9899bd41f2cSmrg { 9909bd41f2cSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9919bd41f2cSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9929bd41f2cSmrg /* dlclose (self); */ 9939bd41f2cSmrg } 9949bd41f2cSmrg else 9959bd41f2cSmrg puts (dlerror ()); 9969bd41f2cSmrg 9979bd41f2cSmrg exit (status); 9989bd41f2cSmrg}] 9999bd41f2cSmrgEOF 10009bd41f2cSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 10019bd41f2cSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 10029bd41f2cSmrg lt_status=$? 10039bd41f2cSmrg case x$lt_status in 10049bd41f2cSmrg x$lt_dlno_uscore) $1 ;; 10059bd41f2cSmrg x$lt_dlneed_uscore) $2 ;; 10069bd41f2cSmrg x$lt_dlunknown|x*) $3 ;; 10079bd41f2cSmrg esac 10089bd41f2cSmrg else : 10099bd41f2cSmrg # compilation failed 10109bd41f2cSmrg $3 10119bd41f2cSmrg fi 10129bd41f2cSmrgfi 10139bd41f2cSmrgrm -fr conftest* 10149bd41f2cSmrg])# _LT_AC_TRY_DLOPEN_SELF 10159bd41f2cSmrg 10169bd41f2cSmrg 10179bd41f2cSmrg# AC_LIBTOOL_DLOPEN_SELF 10189bd41f2cSmrg# ---------------------- 10199bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 10209bd41f2cSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 10219bd41f2cSmrgif test "x$enable_dlopen" != xyes; then 10229bd41f2cSmrg enable_dlopen=unknown 10239bd41f2cSmrg enable_dlopen_self=unknown 10249bd41f2cSmrg enable_dlopen_self_static=unknown 10259bd41f2cSmrgelse 10269bd41f2cSmrg lt_cv_dlopen=no 10279bd41f2cSmrg lt_cv_dlopen_libs= 10289bd41f2cSmrg 10299bd41f2cSmrg case $host_os in 10309bd41f2cSmrg beos*) 10319bd41f2cSmrg lt_cv_dlopen="load_add_on" 10329bd41f2cSmrg lt_cv_dlopen_libs= 10339bd41f2cSmrg lt_cv_dlopen_self=yes 10349bd41f2cSmrg ;; 10359bd41f2cSmrg 10369bd41f2cSmrg mingw* | pw32*) 10379bd41f2cSmrg lt_cv_dlopen="LoadLibrary" 10389bd41f2cSmrg lt_cv_dlopen_libs= 10399bd41f2cSmrg ;; 10409bd41f2cSmrg 10419bd41f2cSmrg cygwin*) 10429bd41f2cSmrg lt_cv_dlopen="dlopen" 10439bd41f2cSmrg lt_cv_dlopen_libs= 10449bd41f2cSmrg ;; 10459bd41f2cSmrg 10469bd41f2cSmrg darwin*) 10479bd41f2cSmrg # if libdl is installed we need to link against it 10489bd41f2cSmrg AC_CHECK_LIB([dl], [dlopen], 10499bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 10509bd41f2cSmrg lt_cv_dlopen="dyld" 10519bd41f2cSmrg lt_cv_dlopen_libs= 10529bd41f2cSmrg lt_cv_dlopen_self=yes 10539bd41f2cSmrg ]) 10549bd41f2cSmrg ;; 10559bd41f2cSmrg 10569bd41f2cSmrg *) 10579bd41f2cSmrg AC_CHECK_FUNC([shl_load], 10589bd41f2cSmrg [lt_cv_dlopen="shl_load"], 10599bd41f2cSmrg [AC_CHECK_LIB([dld], [shl_load], 1060d075918cSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], 10619bd41f2cSmrg [AC_CHECK_FUNC([dlopen], 10629bd41f2cSmrg [lt_cv_dlopen="dlopen"], 10639bd41f2cSmrg [AC_CHECK_LIB([dl], [dlopen], 10649bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 10659bd41f2cSmrg [AC_CHECK_LIB([svld], [dlopen], 10669bd41f2cSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 10679bd41f2cSmrg [AC_CHECK_LIB([dld], [dld_link], 1068d075918cSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) 10699bd41f2cSmrg ]) 10709bd41f2cSmrg ]) 10719bd41f2cSmrg ]) 10729bd41f2cSmrg ]) 10739bd41f2cSmrg ]) 10749bd41f2cSmrg ;; 10759bd41f2cSmrg esac 10769bd41f2cSmrg 10779bd41f2cSmrg if test "x$lt_cv_dlopen" != xno; then 10789bd41f2cSmrg enable_dlopen=yes 10799bd41f2cSmrg else 10809bd41f2cSmrg enable_dlopen=no 10819bd41f2cSmrg fi 10829bd41f2cSmrg 10839bd41f2cSmrg case $lt_cv_dlopen in 10849bd41f2cSmrg dlopen) 10859bd41f2cSmrg save_CPPFLAGS="$CPPFLAGS" 10869bd41f2cSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10879bd41f2cSmrg 10889bd41f2cSmrg save_LDFLAGS="$LDFLAGS" 10899bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10909bd41f2cSmrg 10919bd41f2cSmrg save_LIBS="$LIBS" 10929bd41f2cSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 10939bd41f2cSmrg 10949bd41f2cSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 10959bd41f2cSmrg lt_cv_dlopen_self, [dnl 10969bd41f2cSmrg _LT_AC_TRY_DLOPEN_SELF( 10979bd41f2cSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 10989bd41f2cSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 10999bd41f2cSmrg ]) 11009bd41f2cSmrg 11019bd41f2cSmrg if test "x$lt_cv_dlopen_self" = xyes; then 11029bd41f2cSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11039bd41f2cSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 11049bd41f2cSmrg lt_cv_dlopen_self_static, [dnl 11059bd41f2cSmrg _LT_AC_TRY_DLOPEN_SELF( 11069bd41f2cSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 11079bd41f2cSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 11089bd41f2cSmrg ]) 11099bd41f2cSmrg fi 11109bd41f2cSmrg 11119bd41f2cSmrg CPPFLAGS="$save_CPPFLAGS" 11129bd41f2cSmrg LDFLAGS="$save_LDFLAGS" 11139bd41f2cSmrg LIBS="$save_LIBS" 11149bd41f2cSmrg ;; 11159bd41f2cSmrg esac 11169bd41f2cSmrg 11179bd41f2cSmrg case $lt_cv_dlopen_self in 11189bd41f2cSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11199bd41f2cSmrg *) enable_dlopen_self=unknown ;; 11209bd41f2cSmrg esac 11219bd41f2cSmrg 11229bd41f2cSmrg case $lt_cv_dlopen_self_static in 11239bd41f2cSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11249bd41f2cSmrg *) enable_dlopen_self_static=unknown ;; 11259bd41f2cSmrg esac 11269bd41f2cSmrgfi 11279bd41f2cSmrg])# AC_LIBTOOL_DLOPEN_SELF 11289bd41f2cSmrg 11299bd41f2cSmrg 11309bd41f2cSmrg# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 11319bd41f2cSmrg# --------------------------------- 11329bd41f2cSmrg# Check to see if options -c and -o are simultaneously supported by compiler 11339bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 11349bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 11359bd41f2cSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 11369bd41f2cSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 11379bd41f2cSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 11389bd41f2cSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 11399bd41f2cSmrg $rm -r conftest 2>/dev/null 11409bd41f2cSmrg mkdir conftest 11419bd41f2cSmrg cd conftest 11429bd41f2cSmrg mkdir out 11439bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11449bd41f2cSmrg 11459bd41f2cSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 11469bd41f2cSmrg # Insert the option either (1) after the last *FLAGS variable, or 11479bd41f2cSmrg # (2) before a word containing "conftest.", or (3) at the end. 11489bd41f2cSmrg # Note that $ac_compile itself does not contain backslashes and begins 11499bd41f2cSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 11509bd41f2cSmrg lt_compile=`echo "$ac_compile" | $SED \ 11519bd41f2cSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11529bd41f2cSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 11539bd41f2cSmrg -e 's:$: $lt_compiler_flag:'` 11549bd41f2cSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 11559bd41f2cSmrg (eval "$lt_compile" 2>out/conftest.err) 11569bd41f2cSmrg ac_status=$? 11579bd41f2cSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 11589bd41f2cSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 11599bd41f2cSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 11609bd41f2cSmrg then 11619bd41f2cSmrg # The compiler can only warn and ignore the option if not recognized 11629bd41f2cSmrg # So say no if there are warnings 11639bd41f2cSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11649bd41f2cSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11659bd41f2cSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11669bd41f2cSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 11679bd41f2cSmrg fi 11689bd41f2cSmrg fi 11699bd41f2cSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 11709bd41f2cSmrg $rm conftest* 11719bd41f2cSmrg # SGI C++ compiler will create directory out/ii_files/ for 11729bd41f2cSmrg # template instantiation 11739bd41f2cSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 11749bd41f2cSmrg $rm out/* && rmdir out 11759bd41f2cSmrg cd .. 11769bd41f2cSmrg rmdir conftest 11779bd41f2cSmrg $rm conftest* 11789bd41f2cSmrg]) 11799bd41f2cSmrg])# AC_LIBTOOL_PROG_CC_C_O 11809bd41f2cSmrg 11819bd41f2cSmrg 11829bd41f2cSmrg# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 11839bd41f2cSmrg# ----------------------------------------- 11849bd41f2cSmrg# Check to see if we can do hard links to lock some files if needed 11859bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 11869bd41f2cSmrg[AC_REQUIRE([_LT_AC_LOCK])dnl 11879bd41f2cSmrg 11889bd41f2cSmrghard_links="nottested" 11899bd41f2cSmrgif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 11909bd41f2cSmrg # do not overwrite the value of need_locks provided by the user 11919bd41f2cSmrg AC_MSG_CHECKING([if we can lock with hard links]) 11929bd41f2cSmrg hard_links=yes 11939bd41f2cSmrg $rm conftest* 11949bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 11959bd41f2cSmrg touch conftest.a 11969bd41f2cSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 11979bd41f2cSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 11989bd41f2cSmrg AC_MSG_RESULT([$hard_links]) 11999bd41f2cSmrg if test "$hard_links" = no; then 12009bd41f2cSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 12019bd41f2cSmrg need_locks=warn 12029bd41f2cSmrg fi 12039bd41f2cSmrgelse 12049bd41f2cSmrg need_locks=no 12059bd41f2cSmrgfi 12069bd41f2cSmrg])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 12079bd41f2cSmrg 12089bd41f2cSmrg 12099bd41f2cSmrg# AC_LIBTOOL_OBJDIR 12109bd41f2cSmrg# ----------------- 12119bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_OBJDIR], 12129bd41f2cSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 12139bd41f2cSmrg[rm -f .libs 2>/dev/null 12149bd41f2cSmrgmkdir .libs 2>/dev/null 12159bd41f2cSmrgif test -d .libs; then 12169bd41f2cSmrg lt_cv_objdir=.libs 12179bd41f2cSmrgelse 12189bd41f2cSmrg # MS-DOS does not allow filenames that begin with a dot. 12199bd41f2cSmrg lt_cv_objdir=_libs 12209bd41f2cSmrgfi 12219bd41f2cSmrgrmdir .libs 2>/dev/null]) 12229bd41f2cSmrgobjdir=$lt_cv_objdir 12239bd41f2cSmrg])# AC_LIBTOOL_OBJDIR 12249bd41f2cSmrg 12259bd41f2cSmrg 12269bd41f2cSmrg# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 12279bd41f2cSmrg# ---------------------------------------------- 12289bd41f2cSmrg# Check hardcoding attributes. 12299bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 12309bd41f2cSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 12319bd41f2cSmrg_LT_AC_TAGVAR(hardcode_action, $1)= 12329bd41f2cSmrgif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 12339bd41f2cSmrg test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 12349bd41f2cSmrg test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 12359bd41f2cSmrg 12369bd41f2cSmrg # We can hardcode non-existant directories. 12379bd41f2cSmrg if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 12389bd41f2cSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 12399bd41f2cSmrg # have to relink, otherwise we might link with an installed library 12409bd41f2cSmrg # when we should be linking with a yet-to-be-installed one 12419bd41f2cSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 12429bd41f2cSmrg test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 12439bd41f2cSmrg # Linking always hardcodes the temporary library directory. 12449bd41f2cSmrg _LT_AC_TAGVAR(hardcode_action, $1)=relink 12459bd41f2cSmrg else 12469bd41f2cSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 12479bd41f2cSmrg _LT_AC_TAGVAR(hardcode_action, $1)=immediate 12489bd41f2cSmrg fi 12499bd41f2cSmrgelse 12509bd41f2cSmrg # We cannot hardcode anything, or else we can only hardcode existing 12519bd41f2cSmrg # directories. 12529bd41f2cSmrg _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 12539bd41f2cSmrgfi 12549bd41f2cSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 12559bd41f2cSmrg 12569bd41f2cSmrgif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 12579bd41f2cSmrg # Fast installation is not supported 12589bd41f2cSmrg enable_fast_install=no 12599bd41f2cSmrgelif test "$shlibpath_overrides_runpath" = yes || 12609bd41f2cSmrg test "$enable_shared" = no; then 12619bd41f2cSmrg # Fast installation is not necessary 12629bd41f2cSmrg enable_fast_install=needless 12639bd41f2cSmrgfi 12649bd41f2cSmrg])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 12659bd41f2cSmrg 12669bd41f2cSmrg 12679bd41f2cSmrg# AC_LIBTOOL_SYS_LIB_STRIP 12689bd41f2cSmrg# ------------------------ 12699bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 12709bd41f2cSmrg[striplib= 12719bd41f2cSmrgold_striplib= 12729bd41f2cSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 12739bd41f2cSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 12749bd41f2cSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12759bd41f2cSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12769bd41f2cSmrg AC_MSG_RESULT([yes]) 12779bd41f2cSmrgelse 12789bd41f2cSmrg# FIXME - insert some real tests, host_os isn't really good enough 12799bd41f2cSmrg case $host_os in 12809bd41f2cSmrg darwin*) 12819bd41f2cSmrg if test -n "$STRIP" ; then 12829bd41f2cSmrg striplib="$STRIP -x" 12839bd41f2cSmrg old_striplib="$STRIP -S" 12849bd41f2cSmrg AC_MSG_RESULT([yes]) 12859bd41f2cSmrg else 12869bd41f2cSmrg AC_MSG_RESULT([no]) 12879bd41f2cSmrgfi 12889bd41f2cSmrg ;; 12899bd41f2cSmrg *) 12909bd41f2cSmrg AC_MSG_RESULT([no]) 12919bd41f2cSmrg ;; 12929bd41f2cSmrg esac 12939bd41f2cSmrgfi 12949bd41f2cSmrg])# AC_LIBTOOL_SYS_LIB_STRIP 12959bd41f2cSmrg 12969bd41f2cSmrg 12979bd41f2cSmrg# AC_LIBTOOL_SYS_DYNAMIC_LINKER 12989bd41f2cSmrg# ----------------------------- 12999bd41f2cSmrg# PORTME Fill in your ld.so characteristics 13009bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 13019bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 13029bd41f2cSmrgAC_MSG_CHECKING([dynamic linker characteristics]) 13039bd41f2cSmrglibrary_names_spec= 13049bd41f2cSmrglibname_spec='lib$name' 13059bd41f2cSmrgsoname_spec= 13069bd41f2cSmrgshrext_cmds=".so" 13079bd41f2cSmrgpostinstall_cmds= 13089bd41f2cSmrgpostuninstall_cmds= 13099bd41f2cSmrgfinish_cmds= 13109bd41f2cSmrgfinish_eval= 13119bd41f2cSmrgshlibpath_var= 13129bd41f2cSmrgshlibpath_overrides_runpath=unknown 13139bd41f2cSmrgversion_type=none 13149bd41f2cSmrgdynamic_linker="$host_os ld.so" 13159bd41f2cSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 13169bd41f2cSmrgm4_if($1,[],[ 13179bd41f2cSmrgif test "$GCC" = yes; then 13189bd41f2cSmrg case $host_os in 13199bd41f2cSmrg darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 13209bd41f2cSmrg *) lt_awk_arg="/^libraries:/" ;; 13219bd41f2cSmrg esac 13229bd41f2cSmrg lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13239bd41f2cSmrg if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then 13249bd41f2cSmrg # if the path contains ";" then we assume it to be the separator 13259bd41f2cSmrg # otherwise default to the standard path separator (i.e. ":") - it is 13269bd41f2cSmrg # assumed that no part of a normal pathname contains ";" but that should 13279bd41f2cSmrg # okay in the real world where ";" in dirpaths is itself problematic. 13289bd41f2cSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` 13299bd41f2cSmrg else 13309bd41f2cSmrg lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13319bd41f2cSmrg fi 13329bd41f2cSmrg # Ok, now we have the path, separated by spaces, we can step through it 13339bd41f2cSmrg # and add multilib dir if necessary. 13349bd41f2cSmrg lt_tmp_lt_search_path_spec= 13359bd41f2cSmrg lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 13369bd41f2cSmrg for lt_sys_path in $lt_search_path_spec; do 13379bd41f2cSmrg if test -d "$lt_sys_path/$lt_multi_os_dir"; then 13389bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 13399bd41f2cSmrg else 13409bd41f2cSmrg test -d "$lt_sys_path" && \ 13419bd41f2cSmrg lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 13429bd41f2cSmrg fi 13439bd41f2cSmrg done 13449bd41f2cSmrg lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' 13459bd41f2cSmrgBEGIN {RS=" "; FS="/|\n";} { 13469bd41f2cSmrg lt_foo=""; 13479bd41f2cSmrg lt_count=0; 13489bd41f2cSmrg for (lt_i = NF; lt_i > 0; lt_i--) { 13499bd41f2cSmrg if ($lt_i != "" && $lt_i != ".") { 13509bd41f2cSmrg if ($lt_i == "..") { 13519bd41f2cSmrg lt_count++; 13529bd41f2cSmrg } else { 13539bd41f2cSmrg if (lt_count == 0) { 13549bd41f2cSmrg lt_foo="/" $lt_i lt_foo; 13559bd41f2cSmrg } else { 13569bd41f2cSmrg lt_count--; 13579bd41f2cSmrg } 13589bd41f2cSmrg } 13599bd41f2cSmrg } 13609bd41f2cSmrg } 13619bd41f2cSmrg if (lt_foo != "") { lt_freq[[lt_foo]]++; } 13629bd41f2cSmrg if (lt_freq[[lt_foo]] == 1) { print lt_foo; } 13639bd41f2cSmrg}'` 13649bd41f2cSmrg sys_lib_search_path_spec=`echo $lt_search_path_spec` 13659bd41f2cSmrgelse 13669bd41f2cSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13679bd41f2cSmrgfi]) 13689bd41f2cSmrgneed_lib_prefix=unknown 13699bd41f2cSmrghardcode_into_libs=no 13709bd41f2cSmrg 13719bd41f2cSmrg# when you set need_version to no, make sure it does not cause -set_version 13729bd41f2cSmrg# flags to be left without arguments 13739bd41f2cSmrgneed_version=unknown 13749bd41f2cSmrg 13759bd41f2cSmrgcase $host_os in 13769bd41f2cSmrgaix3*) 13779bd41f2cSmrg version_type=linux 13789bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13799bd41f2cSmrg shlibpath_var=LIBPATH 13809bd41f2cSmrg 13819bd41f2cSmrg # AIX 3 has no versioning support, so we append a major version to the name. 13829bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 13839bd41f2cSmrg ;; 13849bd41f2cSmrg 1385d075918cSmrgaix[[4-9]]*) 13869bd41f2cSmrg version_type=linux 13879bd41f2cSmrg need_lib_prefix=no 13889bd41f2cSmrg need_version=no 13899bd41f2cSmrg hardcode_into_libs=yes 13909bd41f2cSmrg if test "$host_cpu" = ia64; then 13919bd41f2cSmrg # AIX 5 supports IA64 13929bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13939bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 13949bd41f2cSmrg else 13959bd41f2cSmrg # With GCC up to 2.95.x, collect2 would create an import file 13969bd41f2cSmrg # for dependence libraries. The import file would start with 13979bd41f2cSmrg # the line `#! .'. This would cause the generated library to 13989bd41f2cSmrg # depend on `.', always an invalid library. This was fixed in 13999bd41f2cSmrg # development snapshots of GCC prior to 3.0. 14009bd41f2cSmrg case $host_os in 14019bd41f2cSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 14029bd41f2cSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 14039bd41f2cSmrg echo ' yes ' 14049bd41f2cSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 14059bd41f2cSmrg : 14069bd41f2cSmrg else 14079bd41f2cSmrg can_build_shared=no 14089bd41f2cSmrg fi 14099bd41f2cSmrg ;; 14109bd41f2cSmrg esac 14119bd41f2cSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 14129bd41f2cSmrg # soname into executable. Probably we can add versioning support to 14139bd41f2cSmrg # collect2, so additional links can be useful in future. 14149bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 14159bd41f2cSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 14169bd41f2cSmrg # instead of lib<name>.a to let people know that these are not 14179bd41f2cSmrg # typical AIX shared libraries. 14189bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14199bd41f2cSmrg else 14209bd41f2cSmrg # We preserve .a as extension for shared libraries through AIX4.2 14219bd41f2cSmrg # and later when we are not doing run time linking. 14229bd41f2cSmrg library_names_spec='${libname}${release}.a $libname.a' 14239bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 14249bd41f2cSmrg fi 14259bd41f2cSmrg shlibpath_var=LIBPATH 14269bd41f2cSmrg fi 14279bd41f2cSmrg ;; 14289bd41f2cSmrg 14299bd41f2cSmrgamigaos*) 14309bd41f2cSmrg library_names_spec='$libname.ixlibrary $libname.a' 14319bd41f2cSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 14329bd41f2cSmrg finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 14339bd41f2cSmrg ;; 14349bd41f2cSmrg 14359bd41f2cSmrgbeos*) 14369bd41f2cSmrg library_names_spec='${libname}${shared_ext}' 14379bd41f2cSmrg dynamic_linker="$host_os ld.so" 14389bd41f2cSmrg shlibpath_var=LIBRARY_PATH 14399bd41f2cSmrg ;; 14409bd41f2cSmrg 14419bd41f2cSmrgbsdi[[45]]*) 14429bd41f2cSmrg version_type=linux 14439bd41f2cSmrg need_version=no 14449bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14459bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 14469bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14479bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 14489bd41f2cSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14499bd41f2cSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14509bd41f2cSmrg # the default ld.so.conf also contains /usr/contrib/lib and 14519bd41f2cSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14529bd41f2cSmrg # libtool to hard-code these into programs 14539bd41f2cSmrg ;; 14549bd41f2cSmrg 14559bd41f2cSmrgcygwin* | mingw* | pw32*) 14569bd41f2cSmrg version_type=windows 14579bd41f2cSmrg shrext_cmds=".dll" 14589bd41f2cSmrg need_version=no 14599bd41f2cSmrg need_lib_prefix=no 14609bd41f2cSmrg 14619bd41f2cSmrg case $GCC,$host_os in 14629bd41f2cSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 14639bd41f2cSmrg library_names_spec='$libname.dll.a' 14649bd41f2cSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 14659bd41f2cSmrg postinstall_cmds='base_file=`basename \${file}`~ 14669bd41f2cSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14679bd41f2cSmrg dldir=$destdir/`dirname \$dlpath`~ 14689bd41f2cSmrg test -d \$dldir || mkdir -p \$dldir~ 14699bd41f2cSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 14709bd41f2cSmrg chmod a+x \$dldir/$dlname' 14719bd41f2cSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14729bd41f2cSmrg dlpath=$dir/\$dldll~ 14739bd41f2cSmrg $rm \$dlpath' 14749bd41f2cSmrg shlibpath_overrides_runpath=yes 14759bd41f2cSmrg 14769bd41f2cSmrg case $host_os in 14779bd41f2cSmrg cygwin*) 14789bd41f2cSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14799bd41f2cSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14809bd41f2cSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14819bd41f2cSmrg ;; 14829bd41f2cSmrg mingw*) 14839bd41f2cSmrg # MinGW DLLs use traditional 'lib' prefix 14849bd41f2cSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 14859bd41f2cSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14869bd41f2cSmrg if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 14879bd41f2cSmrg # It is most probably a Windows format PATH printed by 14889bd41f2cSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 14899bd41f2cSmrg # path with ; separators, and with drive letters. We can handle the 14909bd41f2cSmrg # drive letters (cygwin fileutils understands them), so leave them, 14919bd41f2cSmrg # especially as we might pass files found there to a mingw objdump, 14929bd41f2cSmrg # which wouldn't understand a cygwinified path. Ahh. 14939bd41f2cSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14949bd41f2cSmrg else 14959bd41f2cSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14969bd41f2cSmrg fi 14979bd41f2cSmrg ;; 14989bd41f2cSmrg pw32*) 14999bd41f2cSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 15009bd41f2cSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 15019bd41f2cSmrg ;; 15029bd41f2cSmrg esac 15039bd41f2cSmrg ;; 15049bd41f2cSmrg 15059bd41f2cSmrg *) 15069bd41f2cSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 15079bd41f2cSmrg ;; 15089bd41f2cSmrg esac 15099bd41f2cSmrg dynamic_linker='Win32 ld.exe' 15109bd41f2cSmrg # FIXME: first we should search . and the directory the executable is in 15119bd41f2cSmrg shlibpath_var=PATH 15129bd41f2cSmrg ;; 15139bd41f2cSmrg 15149bd41f2cSmrgdarwin* | rhapsody*) 15159bd41f2cSmrg dynamic_linker="$host_os dyld" 15169bd41f2cSmrg version_type=darwin 15179bd41f2cSmrg need_lib_prefix=no 15189bd41f2cSmrg need_version=no 15199bd41f2cSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 15209bd41f2cSmrg soname_spec='${libname}${release}${major}$shared_ext' 15219bd41f2cSmrg shlibpath_overrides_runpath=yes 15229bd41f2cSmrg shlibpath_var=DYLD_LIBRARY_PATH 15239bd41f2cSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 15249bd41f2cSmrg m4_if([$1], [],[ 15259bd41f2cSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) 15269bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 15279bd41f2cSmrg ;; 15289bd41f2cSmrg 15299bd41f2cSmrgdgux*) 15309bd41f2cSmrg version_type=linux 15319bd41f2cSmrg need_lib_prefix=no 15329bd41f2cSmrg need_version=no 15339bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 15349bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 15359bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 15369bd41f2cSmrg ;; 15379bd41f2cSmrg 15389bd41f2cSmrgfreebsd1*) 15399bd41f2cSmrg dynamic_linker=no 15409bd41f2cSmrg ;; 15419bd41f2cSmrg 15429bd41f2cSmrgfreebsd* | dragonfly*) 15439bd41f2cSmrg # DragonFly does not have aout. When/if they implement a new 15449bd41f2cSmrg # versioning mechanism, adjust this. 15459bd41f2cSmrg if test -x /usr/bin/objformat; then 15469bd41f2cSmrg objformat=`/usr/bin/objformat` 15479bd41f2cSmrg else 15489bd41f2cSmrg case $host_os in 15499bd41f2cSmrg freebsd[[123]]*) objformat=aout ;; 15509bd41f2cSmrg *) objformat=elf ;; 15519bd41f2cSmrg esac 15529bd41f2cSmrg fi 15539bd41f2cSmrg version_type=freebsd-$objformat 15549bd41f2cSmrg case $version_type in 15559bd41f2cSmrg freebsd-elf*) 15569bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 15579bd41f2cSmrg need_version=no 15589bd41f2cSmrg need_lib_prefix=no 15599bd41f2cSmrg ;; 15609bd41f2cSmrg freebsd-*) 15619bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 15629bd41f2cSmrg need_version=yes 15639bd41f2cSmrg ;; 15649bd41f2cSmrg esac 15659bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 15669bd41f2cSmrg case $host_os in 15679bd41f2cSmrg freebsd2*) 15689bd41f2cSmrg shlibpath_overrides_runpath=yes 15699bd41f2cSmrg ;; 15709bd41f2cSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 15719bd41f2cSmrg shlibpath_overrides_runpath=yes 15729bd41f2cSmrg hardcode_into_libs=yes 15739bd41f2cSmrg ;; 15749bd41f2cSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 15759bd41f2cSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 15769bd41f2cSmrg shlibpath_overrides_runpath=no 15779bd41f2cSmrg hardcode_into_libs=yes 15789bd41f2cSmrg ;; 15799bd41f2cSmrg *) # from 4.6 on, and DragonFly 15809bd41f2cSmrg shlibpath_overrides_runpath=yes 15819bd41f2cSmrg hardcode_into_libs=yes 15829bd41f2cSmrg ;; 15839bd41f2cSmrg esac 15849bd41f2cSmrg ;; 15859bd41f2cSmrg 15869bd41f2cSmrggnu*) 15879bd41f2cSmrg version_type=linux 15889bd41f2cSmrg need_lib_prefix=no 15899bd41f2cSmrg need_version=no 15909bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 15919bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 15929bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 15939bd41f2cSmrg hardcode_into_libs=yes 15949bd41f2cSmrg ;; 15959bd41f2cSmrg 15969bd41f2cSmrghpux9* | hpux10* | hpux11*) 15979bd41f2cSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 15989bd41f2cSmrg # link against other versions. 15999bd41f2cSmrg version_type=sunos 16009bd41f2cSmrg need_lib_prefix=no 16019bd41f2cSmrg need_version=no 16029bd41f2cSmrg case $host_cpu in 16039bd41f2cSmrg ia64*) 16049bd41f2cSmrg shrext_cmds='.so' 16059bd41f2cSmrg hardcode_into_libs=yes 16069bd41f2cSmrg dynamic_linker="$host_os dld.so" 16079bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 16089bd41f2cSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16099bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16109bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 16119bd41f2cSmrg if test "X$HPUX_IA64_MODE" = X32; then 16129bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16139bd41f2cSmrg else 16149bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16159bd41f2cSmrg fi 16169bd41f2cSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16179bd41f2cSmrg ;; 16189bd41f2cSmrg hppa*64*) 16199bd41f2cSmrg shrext_cmds='.sl' 16209bd41f2cSmrg hardcode_into_libs=yes 16219bd41f2cSmrg dynamic_linker="$host_os dld.sl" 16229bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16239bd41f2cSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16249bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16259bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 16269bd41f2cSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16279bd41f2cSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16289bd41f2cSmrg ;; 16299bd41f2cSmrg *) 16309bd41f2cSmrg shrext_cmds='.sl' 16319bd41f2cSmrg dynamic_linker="$host_os dld.sl" 16329bd41f2cSmrg shlibpath_var=SHLIB_PATH 16339bd41f2cSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16349bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16359bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 16369bd41f2cSmrg ;; 16379bd41f2cSmrg esac 16389bd41f2cSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 16399bd41f2cSmrg postinstall_cmds='chmod 555 $lib' 16409bd41f2cSmrg ;; 16419bd41f2cSmrg 16429bd41f2cSmrginterix[[3-9]]*) 16439bd41f2cSmrg version_type=linux 16449bd41f2cSmrg need_lib_prefix=no 16459bd41f2cSmrg need_version=no 16469bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16479bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 16489bd41f2cSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16499bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 16509bd41f2cSmrg shlibpath_overrides_runpath=no 16519bd41f2cSmrg hardcode_into_libs=yes 16529bd41f2cSmrg ;; 16539bd41f2cSmrg 16549bd41f2cSmrgirix5* | irix6* | nonstopux*) 16559bd41f2cSmrg case $host_os in 16569bd41f2cSmrg nonstopux*) version_type=nonstopux ;; 16579bd41f2cSmrg *) 16589bd41f2cSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 16599bd41f2cSmrg version_type=linux 16609bd41f2cSmrg else 16619bd41f2cSmrg version_type=irix 16629bd41f2cSmrg fi ;; 16639bd41f2cSmrg esac 16649bd41f2cSmrg need_lib_prefix=no 16659bd41f2cSmrg need_version=no 16669bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 16679bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16689bd41f2cSmrg case $host_os in 16699bd41f2cSmrg irix5* | nonstopux*) 16709bd41f2cSmrg libsuff= shlibsuff= 16719bd41f2cSmrg ;; 16729bd41f2cSmrg *) 16739bd41f2cSmrg case $LD in # libtool.m4 will add one of these switches to LD 16749bd41f2cSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16759bd41f2cSmrg libsuff= shlibsuff= libmagic=32-bit;; 16769bd41f2cSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16779bd41f2cSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 16789bd41f2cSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16799bd41f2cSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 16809bd41f2cSmrg *) libsuff= shlibsuff= libmagic=never-match;; 16819bd41f2cSmrg esac 16829bd41f2cSmrg ;; 16839bd41f2cSmrg esac 16849bd41f2cSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16859bd41f2cSmrg shlibpath_overrides_runpath=no 16869bd41f2cSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16879bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16889bd41f2cSmrg hardcode_into_libs=yes 16899bd41f2cSmrg ;; 16909bd41f2cSmrg 16919bd41f2cSmrg# No shared lib support for Linux oldld, aout, or coff. 16929bd41f2cSmrglinux*oldld* | linux*aout* | linux*coff*) 16939bd41f2cSmrg dynamic_linker=no 16949bd41f2cSmrg ;; 16959bd41f2cSmrg 16969bd41f2cSmrg# This must be Linux ELF. 16979bd41f2cSmrglinux* | k*bsd*-gnu) 16989bd41f2cSmrg version_type=linux 16999bd41f2cSmrg need_lib_prefix=no 17009bd41f2cSmrg need_version=no 17019bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17029bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 17039bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17049bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 17059bd41f2cSmrg shlibpath_overrides_runpath=no 17069bd41f2cSmrg # This implies no fast_install, which is unacceptable. 17079bd41f2cSmrg # Some rework will be needed to allow for fast_install 17089bd41f2cSmrg # before this can be enabled. 17099bd41f2cSmrg hardcode_into_libs=yes 17109bd41f2cSmrg 17119bd41f2cSmrg # Append ld.so.conf contents to the search path 17129bd41f2cSmrg if test -f /etc/ld.so.conf; then 17139bd41f2cSmrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 1714d075918cSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17159bd41f2cSmrg fi 17169bd41f2cSmrg 17179bd41f2cSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 17189bd41f2cSmrg # powerpc, because MkLinux only supported shared libraries with the 17199bd41f2cSmrg # GNU dynamic linker. Since this was broken with cross compilers, 17209bd41f2cSmrg # most powerpc-linux boxes support dynamic linking these days and 17219bd41f2cSmrg # people can always --disable-shared, the test was removed, and we 17229bd41f2cSmrg # assume the GNU/Linux dynamic linker is in use. 17239bd41f2cSmrg dynamic_linker='GNU/Linux ld.so' 17249bd41f2cSmrg ;; 17259bd41f2cSmrg 17269bd41f2cSmrgnetbsd*) 17279bd41f2cSmrg version_type=sunos 17289bd41f2cSmrg need_lib_prefix=no 17299bd41f2cSmrg need_version=no 17309bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 17319bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17329bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17339bd41f2cSmrg dynamic_linker='NetBSD (a.out) ld.so' 17349bd41f2cSmrg else 17359bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17369bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 17379bd41f2cSmrg dynamic_linker='NetBSD ld.elf_so' 17389bd41f2cSmrg fi 17399bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 17409bd41f2cSmrg shlibpath_overrides_runpath=yes 17419bd41f2cSmrg hardcode_into_libs=yes 17429bd41f2cSmrg ;; 17439bd41f2cSmrg 17449bd41f2cSmrgnewsos6) 17459bd41f2cSmrg version_type=linux 17469bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17479bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 17489bd41f2cSmrg shlibpath_overrides_runpath=yes 17499bd41f2cSmrg ;; 17509bd41f2cSmrg 17519bd41f2cSmrgnto-qnx*) 17529bd41f2cSmrg version_type=linux 17539bd41f2cSmrg need_lib_prefix=no 17549bd41f2cSmrg need_version=no 17559bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17569bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 17579bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 17589bd41f2cSmrg shlibpath_overrides_runpath=yes 17599bd41f2cSmrg ;; 17609bd41f2cSmrg 17619bd41f2cSmrgopenbsd*) 17629bd41f2cSmrg version_type=sunos 17639bd41f2cSmrg sys_lib_dlsearch_path_spec="/usr/lib" 17649bd41f2cSmrg need_lib_prefix=no 17659bd41f2cSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17669bd41f2cSmrg case $host_os in 17679bd41f2cSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17689bd41f2cSmrg *) need_version=no ;; 17699bd41f2cSmrg esac 17709bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17719bd41f2cSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17729bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 17739bd41f2cSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17749bd41f2cSmrg case $host_os in 17759bd41f2cSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 17769bd41f2cSmrg shlibpath_overrides_runpath=no 17779bd41f2cSmrg ;; 17789bd41f2cSmrg *) 17799bd41f2cSmrg shlibpath_overrides_runpath=yes 17809bd41f2cSmrg ;; 17819bd41f2cSmrg esac 17829bd41f2cSmrg else 17839bd41f2cSmrg shlibpath_overrides_runpath=yes 17849bd41f2cSmrg fi 17859bd41f2cSmrg ;; 17869bd41f2cSmrg 17879bd41f2cSmrgos2*) 17889bd41f2cSmrg libname_spec='$name' 17899bd41f2cSmrg shrext_cmds=".dll" 17909bd41f2cSmrg need_lib_prefix=no 17919bd41f2cSmrg library_names_spec='$libname${shared_ext} $libname.a' 17929bd41f2cSmrg dynamic_linker='OS/2 ld.exe' 17939bd41f2cSmrg shlibpath_var=LIBPATH 17949bd41f2cSmrg ;; 17959bd41f2cSmrg 17969bd41f2cSmrgosf3* | osf4* | osf5*) 17979bd41f2cSmrg version_type=osf 17989bd41f2cSmrg need_lib_prefix=no 17999bd41f2cSmrg need_version=no 18009bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 18019bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18029bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18039bd41f2cSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18049bd41f2cSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 18059bd41f2cSmrg ;; 18069bd41f2cSmrg 18079bd41f2cSmrgrdos*) 18089bd41f2cSmrg dynamic_linker=no 18099bd41f2cSmrg ;; 18109bd41f2cSmrg 18119bd41f2cSmrgsolaris*) 18129bd41f2cSmrg version_type=linux 18139bd41f2cSmrg need_lib_prefix=no 18149bd41f2cSmrg need_version=no 18159bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18169bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 18179bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18189bd41f2cSmrg shlibpath_overrides_runpath=yes 18199bd41f2cSmrg hardcode_into_libs=yes 18209bd41f2cSmrg # ldd complains unless libraries are executable 18219bd41f2cSmrg postinstall_cmds='chmod +x $lib' 18229bd41f2cSmrg ;; 18239bd41f2cSmrg 18249bd41f2cSmrgsunos4*) 18259bd41f2cSmrg version_type=sunos 18269bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 18279bd41f2cSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18289bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18299bd41f2cSmrg shlibpath_overrides_runpath=yes 18309bd41f2cSmrg if test "$with_gnu_ld" = yes; then 18319bd41f2cSmrg need_lib_prefix=no 18329bd41f2cSmrg fi 18339bd41f2cSmrg need_version=yes 18349bd41f2cSmrg ;; 18359bd41f2cSmrg 18369bd41f2cSmrgsysv4 | sysv4.3*) 18379bd41f2cSmrg version_type=linux 18389bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18399bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 18409bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18419bd41f2cSmrg case $host_vendor in 18429bd41f2cSmrg sni) 18439bd41f2cSmrg shlibpath_overrides_runpath=no 18449bd41f2cSmrg need_lib_prefix=no 18459bd41f2cSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 18469bd41f2cSmrg runpath_var=LD_RUN_PATH 18479bd41f2cSmrg ;; 18489bd41f2cSmrg siemens) 18499bd41f2cSmrg need_lib_prefix=no 18509bd41f2cSmrg ;; 18519bd41f2cSmrg motorola) 18529bd41f2cSmrg need_lib_prefix=no 18539bd41f2cSmrg need_version=no 18549bd41f2cSmrg shlibpath_overrides_runpath=no 18559bd41f2cSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18569bd41f2cSmrg ;; 18579bd41f2cSmrg esac 18589bd41f2cSmrg ;; 18599bd41f2cSmrg 18609bd41f2cSmrgsysv4*MP*) 18619bd41f2cSmrg if test -d /usr/nec ;then 18629bd41f2cSmrg version_type=linux 18639bd41f2cSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 18649bd41f2cSmrg soname_spec='$libname${shared_ext}.$major' 18659bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18669bd41f2cSmrg fi 18679bd41f2cSmrg ;; 18689bd41f2cSmrg 18699bd41f2cSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18709bd41f2cSmrg version_type=freebsd-elf 18719bd41f2cSmrg need_lib_prefix=no 18729bd41f2cSmrg need_version=no 18739bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 18749bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 18759bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18769bd41f2cSmrg hardcode_into_libs=yes 18779bd41f2cSmrg if test "$with_gnu_ld" = yes; then 18789bd41f2cSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18799bd41f2cSmrg shlibpath_overrides_runpath=no 18809bd41f2cSmrg else 18819bd41f2cSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18829bd41f2cSmrg shlibpath_overrides_runpath=yes 18839bd41f2cSmrg case $host_os in 18849bd41f2cSmrg sco3.2v5*) 18859bd41f2cSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18869bd41f2cSmrg ;; 18879bd41f2cSmrg esac 18889bd41f2cSmrg fi 18899bd41f2cSmrg sys_lib_dlsearch_path_spec='/usr/lib' 18909bd41f2cSmrg ;; 18919bd41f2cSmrg 18929bd41f2cSmrguts4*) 18939bd41f2cSmrg version_type=linux 18949bd41f2cSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 18959bd41f2cSmrg soname_spec='${libname}${release}${shared_ext}$major' 18969bd41f2cSmrg shlibpath_var=LD_LIBRARY_PATH 18979bd41f2cSmrg ;; 18989bd41f2cSmrg 18999bd41f2cSmrg*) 19009bd41f2cSmrg dynamic_linker=no 19019bd41f2cSmrg ;; 19029bd41f2cSmrgesac 19039bd41f2cSmrgAC_MSG_RESULT([$dynamic_linker]) 19049bd41f2cSmrgtest "$dynamic_linker" = no && can_build_shared=no 19059bd41f2cSmrg 1906d075918cSmrgAC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], 1907d075918cSmrg[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) 1908d075918cSmrgsys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 1909d075918cSmrgAC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], 1910d075918cSmrg[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) 1911d075918cSmrgsys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 1912d075918cSmrg 19139bd41f2cSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 19149bd41f2cSmrgif test "$GCC" = yes; then 19159bd41f2cSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 19169bd41f2cSmrgfi 19179bd41f2cSmrg])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 19189bd41f2cSmrg 19199bd41f2cSmrg 19209bd41f2cSmrg# _LT_AC_TAGCONFIG 19219bd41f2cSmrg# ---------------- 19229bd41f2cSmrgAC_DEFUN([_LT_AC_TAGCONFIG], 19239bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 19249bd41f2cSmrgAC_ARG_WITH([tags], 19259bd41f2cSmrg [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 19269bd41f2cSmrg [include additional configurations @<:@automatic@:>@])], 19279bd41f2cSmrg [tagnames="$withval"]) 19289bd41f2cSmrg 19299bd41f2cSmrgif test -f "$ltmain" && test -n "$tagnames"; then 19309bd41f2cSmrg if test ! -f "${ofile}"; then 19319bd41f2cSmrg AC_MSG_WARN([output file `$ofile' does not exist]) 19329bd41f2cSmrg fi 19339bd41f2cSmrg 19349bd41f2cSmrg if test -z "$LTCC"; then 19359bd41f2cSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 19369bd41f2cSmrg if test -z "$LTCC"; then 19379bd41f2cSmrg AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 19389bd41f2cSmrg else 19399bd41f2cSmrg AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 19409bd41f2cSmrg fi 19419bd41f2cSmrg fi 19429bd41f2cSmrg if test -z "$LTCFLAGS"; then 19439bd41f2cSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 19449bd41f2cSmrg fi 19459bd41f2cSmrg 19469bd41f2cSmrg # Extract list of available tagged configurations in $ofile. 19479bd41f2cSmrg # Note that this assumes the entire list is on one line. 19489bd41f2cSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 19499bd41f2cSmrg 19509bd41f2cSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 19519bd41f2cSmrg for tagname in $tagnames; do 19529bd41f2cSmrg IFS="$lt_save_ifs" 19539bd41f2cSmrg # Check whether tagname contains only valid characters 19549bd41f2cSmrg case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 19559bd41f2cSmrg "") ;; 19569bd41f2cSmrg *) AC_MSG_ERROR([invalid tag name: $tagname]) 19579bd41f2cSmrg ;; 19589bd41f2cSmrg esac 19599bd41f2cSmrg 19609bd41f2cSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 19619bd41f2cSmrg then 19629bd41f2cSmrg AC_MSG_ERROR([tag name \"$tagname\" already exists]) 19639bd41f2cSmrg fi 19649bd41f2cSmrg 19659bd41f2cSmrg # Update the list of available tags. 19669bd41f2cSmrg if test -n "$tagname"; then 19679bd41f2cSmrg echo appending configuration tag \"$tagname\" to $ofile 19689bd41f2cSmrg 19699bd41f2cSmrg case $tagname in 19709bd41f2cSmrg CXX) 19719bd41f2cSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 19729bd41f2cSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 19739bd41f2cSmrg (test "X$CXX" != "Xg++"))) ; then 19749bd41f2cSmrg AC_LIBTOOL_LANG_CXX_CONFIG 19759bd41f2cSmrg else 19769bd41f2cSmrg tagname="" 19779bd41f2cSmrg fi 19789bd41f2cSmrg ;; 19799bd41f2cSmrg 19809bd41f2cSmrg F77) 19819bd41f2cSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 19829bd41f2cSmrg AC_LIBTOOL_LANG_F77_CONFIG 19839bd41f2cSmrg else 19849bd41f2cSmrg tagname="" 19859bd41f2cSmrg fi 19869bd41f2cSmrg ;; 19879bd41f2cSmrg 19889bd41f2cSmrg GCJ) 19899bd41f2cSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 19909bd41f2cSmrg AC_LIBTOOL_LANG_GCJ_CONFIG 19919bd41f2cSmrg else 19929bd41f2cSmrg tagname="" 19939bd41f2cSmrg fi 19949bd41f2cSmrg ;; 19959bd41f2cSmrg 19969bd41f2cSmrg RC) 19979bd41f2cSmrg AC_LIBTOOL_LANG_RC_CONFIG 19989bd41f2cSmrg ;; 19999bd41f2cSmrg 20009bd41f2cSmrg *) 20019bd41f2cSmrg AC_MSG_ERROR([Unsupported tag name: $tagname]) 20029bd41f2cSmrg ;; 20039bd41f2cSmrg esac 20049bd41f2cSmrg 20059bd41f2cSmrg # Append the new tag name to the list of available tags. 20069bd41f2cSmrg if test -n "$tagname" ; then 20079bd41f2cSmrg available_tags="$available_tags $tagname" 20089bd41f2cSmrg fi 20099bd41f2cSmrg fi 20109bd41f2cSmrg done 20119bd41f2cSmrg IFS="$lt_save_ifs" 20129bd41f2cSmrg 20139bd41f2cSmrg # Now substitute the updated list of available tags. 20149bd41f2cSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 20159bd41f2cSmrg mv "${ofile}T" "$ofile" 20169bd41f2cSmrg chmod +x "$ofile" 20179bd41f2cSmrg else 20189bd41f2cSmrg rm -f "${ofile}T" 20199bd41f2cSmrg AC_MSG_ERROR([unable to update list of available tagged configurations.]) 20209bd41f2cSmrg fi 20219bd41f2cSmrgfi 20229bd41f2cSmrg])# _LT_AC_TAGCONFIG 20239bd41f2cSmrg 20249bd41f2cSmrg 20259bd41f2cSmrg# AC_LIBTOOL_DLOPEN 20269bd41f2cSmrg# ----------------- 20279bd41f2cSmrg# enable checks for dlopen support 20289bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN], 20299bd41f2cSmrg [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 20309bd41f2cSmrg])# AC_LIBTOOL_DLOPEN 20319bd41f2cSmrg 20329bd41f2cSmrg 20339bd41f2cSmrg# AC_LIBTOOL_WIN32_DLL 20349bd41f2cSmrg# -------------------- 20359bd41f2cSmrg# declare package support for building win32 DLLs 20369bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_WIN32_DLL], 20379bd41f2cSmrg[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 20389bd41f2cSmrg])# AC_LIBTOOL_WIN32_DLL 20399bd41f2cSmrg 20409bd41f2cSmrg 20419bd41f2cSmrg# AC_ENABLE_SHARED([DEFAULT]) 20429bd41f2cSmrg# --------------------------- 20439bd41f2cSmrg# implement the --enable-shared flag 20449bd41f2cSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 20459bd41f2cSmrgAC_DEFUN([AC_ENABLE_SHARED], 20469bd41f2cSmrg[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 20479bd41f2cSmrgAC_ARG_ENABLE([shared], 20489bd41f2cSmrg [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 20499bd41f2cSmrg [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 20509bd41f2cSmrg [p=${PACKAGE-default} 20519bd41f2cSmrg case $enableval in 20529bd41f2cSmrg yes) enable_shared=yes ;; 20539bd41f2cSmrg no) enable_shared=no ;; 20549bd41f2cSmrg *) 20559bd41f2cSmrg enable_shared=no 20569bd41f2cSmrg # Look at the argument we got. We use all the common list separators. 20579bd41f2cSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 20589bd41f2cSmrg for pkg in $enableval; do 20599bd41f2cSmrg IFS="$lt_save_ifs" 20609bd41f2cSmrg if test "X$pkg" = "X$p"; then 20619bd41f2cSmrg enable_shared=yes 20629bd41f2cSmrg fi 20639bd41f2cSmrg done 20649bd41f2cSmrg IFS="$lt_save_ifs" 20659bd41f2cSmrg ;; 20669bd41f2cSmrg esac], 20679bd41f2cSmrg [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 20689bd41f2cSmrg])# AC_ENABLE_SHARED 20699bd41f2cSmrg 20709bd41f2cSmrg 20719bd41f2cSmrg# AC_DISABLE_SHARED 20729bd41f2cSmrg# ----------------- 20739bd41f2cSmrg# set the default shared flag to --disable-shared 20749bd41f2cSmrgAC_DEFUN([AC_DISABLE_SHARED], 20759bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 20769bd41f2cSmrgAC_ENABLE_SHARED(no) 20779bd41f2cSmrg])# AC_DISABLE_SHARED 20789bd41f2cSmrg 20799bd41f2cSmrg 20809bd41f2cSmrg# AC_ENABLE_STATIC([DEFAULT]) 20819bd41f2cSmrg# --------------------------- 20829bd41f2cSmrg# implement the --enable-static flag 20839bd41f2cSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 20849bd41f2cSmrgAC_DEFUN([AC_ENABLE_STATIC], 20859bd41f2cSmrg[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 20869bd41f2cSmrgAC_ARG_ENABLE([static], 20879bd41f2cSmrg [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 20889bd41f2cSmrg [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 20899bd41f2cSmrg [p=${PACKAGE-default} 20909bd41f2cSmrg case $enableval in 20919bd41f2cSmrg yes) enable_static=yes ;; 20929bd41f2cSmrg no) enable_static=no ;; 20939bd41f2cSmrg *) 20949bd41f2cSmrg enable_static=no 20959bd41f2cSmrg # Look at the argument we got. We use all the common list separators. 20969bd41f2cSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 20979bd41f2cSmrg for pkg in $enableval; do 20989bd41f2cSmrg IFS="$lt_save_ifs" 20999bd41f2cSmrg if test "X$pkg" = "X$p"; then 21009bd41f2cSmrg enable_static=yes 21019bd41f2cSmrg fi 21029bd41f2cSmrg done 21039bd41f2cSmrg IFS="$lt_save_ifs" 21049bd41f2cSmrg ;; 21059bd41f2cSmrg esac], 21069bd41f2cSmrg [enable_static=]AC_ENABLE_STATIC_DEFAULT) 21079bd41f2cSmrg])# AC_ENABLE_STATIC 21089bd41f2cSmrg 21099bd41f2cSmrg 21109bd41f2cSmrg# AC_DISABLE_STATIC 21119bd41f2cSmrg# ----------------- 21129bd41f2cSmrg# set the default static flag to --disable-static 21139bd41f2cSmrgAC_DEFUN([AC_DISABLE_STATIC], 21149bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 21159bd41f2cSmrgAC_ENABLE_STATIC(no) 21169bd41f2cSmrg])# AC_DISABLE_STATIC 21179bd41f2cSmrg 21189bd41f2cSmrg 21199bd41f2cSmrg# AC_ENABLE_FAST_INSTALL([DEFAULT]) 21209bd41f2cSmrg# --------------------------------- 21219bd41f2cSmrg# implement the --enable-fast-install flag 21229bd41f2cSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 21239bd41f2cSmrgAC_DEFUN([AC_ENABLE_FAST_INSTALL], 21249bd41f2cSmrg[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 21259bd41f2cSmrgAC_ARG_ENABLE([fast-install], 21269bd41f2cSmrg [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 21279bd41f2cSmrg [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 21289bd41f2cSmrg [p=${PACKAGE-default} 21299bd41f2cSmrg case $enableval in 21309bd41f2cSmrg yes) enable_fast_install=yes ;; 21319bd41f2cSmrg no) enable_fast_install=no ;; 21329bd41f2cSmrg *) 21339bd41f2cSmrg enable_fast_install=no 21349bd41f2cSmrg # Look at the argument we got. We use all the common list separators. 21359bd41f2cSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 21369bd41f2cSmrg for pkg in $enableval; do 21379bd41f2cSmrg IFS="$lt_save_ifs" 21389bd41f2cSmrg if test "X$pkg" = "X$p"; then 21399bd41f2cSmrg enable_fast_install=yes 21409bd41f2cSmrg fi 21419bd41f2cSmrg done 21429bd41f2cSmrg IFS="$lt_save_ifs" 21439bd41f2cSmrg ;; 21449bd41f2cSmrg esac], 21459bd41f2cSmrg [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 21469bd41f2cSmrg])# AC_ENABLE_FAST_INSTALL 21479bd41f2cSmrg 21489bd41f2cSmrg 21499bd41f2cSmrg# AC_DISABLE_FAST_INSTALL 21509bd41f2cSmrg# ----------------------- 21519bd41f2cSmrg# set the default to --disable-fast-install 21529bd41f2cSmrgAC_DEFUN([AC_DISABLE_FAST_INSTALL], 21539bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 21549bd41f2cSmrgAC_ENABLE_FAST_INSTALL(no) 21559bd41f2cSmrg])# AC_DISABLE_FAST_INSTALL 21569bd41f2cSmrg 21579bd41f2cSmrg 21589bd41f2cSmrg# AC_LIBTOOL_PICMODE([MODE]) 21599bd41f2cSmrg# -------------------------- 21609bd41f2cSmrg# implement the --with-pic flag 21619bd41f2cSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 21629bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PICMODE], 21639bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 21649bd41f2cSmrgpic_mode=ifelse($#,1,$1,default) 21659bd41f2cSmrg])# AC_LIBTOOL_PICMODE 21669bd41f2cSmrg 21679bd41f2cSmrg 21689bd41f2cSmrg# AC_PROG_EGREP 21699bd41f2cSmrg# ------------- 21709bd41f2cSmrg# This is predefined starting with Autoconf 2.54, so this conditional 21719bd41f2cSmrg# definition can be removed once we require Autoconf 2.54 or later. 21729bd41f2cSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 21739bd41f2cSmrg[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 21749bd41f2cSmrg [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 21759bd41f2cSmrg then ac_cv_prog_egrep='grep -E' 21769bd41f2cSmrg else ac_cv_prog_egrep='egrep' 21779bd41f2cSmrg fi]) 21789bd41f2cSmrg EGREP=$ac_cv_prog_egrep 21799bd41f2cSmrg AC_SUBST([EGREP]) 21809bd41f2cSmrg])]) 21819bd41f2cSmrg 21829bd41f2cSmrg 21839bd41f2cSmrg# AC_PATH_TOOL_PREFIX 21849bd41f2cSmrg# ------------------- 21859bd41f2cSmrg# find a file program which can recognize shared library 21869bd41f2cSmrgAC_DEFUN([AC_PATH_TOOL_PREFIX], 21879bd41f2cSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 21889bd41f2cSmrgAC_MSG_CHECKING([for $1]) 21899bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 21909bd41f2cSmrg[case $MAGIC_CMD in 21919bd41f2cSmrg[[\\/*] | ?:[\\/]*]) 21929bd41f2cSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 21939bd41f2cSmrg ;; 21949bd41f2cSmrg*) 21959bd41f2cSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 21969bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 21979bd41f2cSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 21989bd41f2cSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 21999bd41f2cSmrgdnl not every word. This closes a longstanding sh security hole. 22009bd41f2cSmrg ac_dummy="ifelse([$2], , $PATH, [$2])" 22019bd41f2cSmrg for ac_dir in $ac_dummy; do 22029bd41f2cSmrg IFS="$lt_save_ifs" 22039bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 22049bd41f2cSmrg if test -f $ac_dir/$1; then 22059bd41f2cSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 22069bd41f2cSmrg if test -n "$file_magic_test_file"; then 22079bd41f2cSmrg case $deplibs_check_method in 22089bd41f2cSmrg "file_magic "*) 22099bd41f2cSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 22109bd41f2cSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 22119bd41f2cSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 22129bd41f2cSmrg $EGREP "$file_magic_regex" > /dev/null; then 22139bd41f2cSmrg : 22149bd41f2cSmrg else 22159bd41f2cSmrg cat <<EOF 1>&2 22169bd41f2cSmrg 22179bd41f2cSmrg*** Warning: the command libtool uses to detect shared libraries, 22189bd41f2cSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 22199bd41f2cSmrg*** The result is that libtool may fail to recognize shared libraries 22209bd41f2cSmrg*** as such. This will affect the creation of libtool libraries that 22219bd41f2cSmrg*** depend on shared libraries, but programs linked with such libtool 22229bd41f2cSmrg*** libraries will work regardless of this problem. Nevertheless, you 22239bd41f2cSmrg*** may want to report the problem to your system manager and/or to 22249bd41f2cSmrg*** bug-libtool@gnu.org 22259bd41f2cSmrg 22269bd41f2cSmrgEOF 22279bd41f2cSmrg fi ;; 22289bd41f2cSmrg esac 22299bd41f2cSmrg fi 22309bd41f2cSmrg break 22319bd41f2cSmrg fi 22329bd41f2cSmrg done 22339bd41f2cSmrg IFS="$lt_save_ifs" 22349bd41f2cSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 22359bd41f2cSmrg ;; 22369bd41f2cSmrgesac]) 22379bd41f2cSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 22389bd41f2cSmrgif test -n "$MAGIC_CMD"; then 22399bd41f2cSmrg AC_MSG_RESULT($MAGIC_CMD) 22409bd41f2cSmrgelse 22419bd41f2cSmrg AC_MSG_RESULT(no) 22429bd41f2cSmrgfi 22439bd41f2cSmrg])# AC_PATH_TOOL_PREFIX 22449bd41f2cSmrg 22459bd41f2cSmrg 22469bd41f2cSmrg# AC_PATH_MAGIC 22479bd41f2cSmrg# ------------- 22489bd41f2cSmrg# find a file program which can recognize a shared library 22499bd41f2cSmrgAC_DEFUN([AC_PATH_MAGIC], 22509bd41f2cSmrg[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 22519bd41f2cSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 22529bd41f2cSmrg if test -n "$ac_tool_prefix"; then 22539bd41f2cSmrg AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 22549bd41f2cSmrg else 22559bd41f2cSmrg MAGIC_CMD=: 22569bd41f2cSmrg fi 22579bd41f2cSmrgfi 22589bd41f2cSmrg])# AC_PATH_MAGIC 22599bd41f2cSmrg 22609bd41f2cSmrg 22619bd41f2cSmrg# AC_PROG_LD 22629bd41f2cSmrg# ---------- 22639bd41f2cSmrg# find the pathname to the GNU or non-GNU linker 22649bd41f2cSmrgAC_DEFUN([AC_PROG_LD], 22659bd41f2cSmrg[AC_ARG_WITH([gnu-ld], 22669bd41f2cSmrg [AC_HELP_STRING([--with-gnu-ld], 22679bd41f2cSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 22689bd41f2cSmrg [test "$withval" = no || with_gnu_ld=yes], 22699bd41f2cSmrg [with_gnu_ld=no]) 22709bd41f2cSmrgAC_REQUIRE([LT_AC_PROG_SED])dnl 22719bd41f2cSmrgAC_REQUIRE([AC_PROG_CC])dnl 22729bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 22739bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 22749bd41f2cSmrgac_prog=ld 22759bd41f2cSmrgif test "$GCC" = yes; then 22769bd41f2cSmrg # Check if gcc -print-prog-name=ld gives a path. 22779bd41f2cSmrg AC_MSG_CHECKING([for ld used by $CC]) 22789bd41f2cSmrg case $host in 22799bd41f2cSmrg *-*-mingw*) 22809bd41f2cSmrg # gcc leaves a trailing carriage return which upsets mingw 22819bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 22829bd41f2cSmrg *) 22839bd41f2cSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 22849bd41f2cSmrg esac 22859bd41f2cSmrg case $ac_prog in 22869bd41f2cSmrg # Accept absolute paths. 22879bd41f2cSmrg [[\\/]]* | ?:[[\\/]]*) 22889bd41f2cSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 22899bd41f2cSmrg # Canonicalize the pathname of ld 22909bd41f2cSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 22919bd41f2cSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 22929bd41f2cSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 22939bd41f2cSmrg done 22949bd41f2cSmrg test -z "$LD" && LD="$ac_prog" 22959bd41f2cSmrg ;; 22969bd41f2cSmrg "") 22979bd41f2cSmrg # If it fails, then pretend we aren't using GCC. 22989bd41f2cSmrg ac_prog=ld 22999bd41f2cSmrg ;; 23009bd41f2cSmrg *) 23019bd41f2cSmrg # If it is relative, then search for the first ld in PATH. 23029bd41f2cSmrg with_gnu_ld=unknown 23039bd41f2cSmrg ;; 23049bd41f2cSmrg esac 23059bd41f2cSmrgelif test "$with_gnu_ld" = yes; then 23069bd41f2cSmrg AC_MSG_CHECKING([for GNU ld]) 23079bd41f2cSmrgelse 23089bd41f2cSmrg AC_MSG_CHECKING([for non-GNU ld]) 23099bd41f2cSmrgfi 23109bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_LD, 23119bd41f2cSmrg[if test -z "$LD"; then 23129bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 23139bd41f2cSmrg for ac_dir in $PATH; do 23149bd41f2cSmrg IFS="$lt_save_ifs" 23159bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 23169bd41f2cSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 23179bd41f2cSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 23189bd41f2cSmrg # Check to see if the program is GNU ld. I'd rather use --version, 23199bd41f2cSmrg # but apparently some variants of GNU ld only accept -v. 23209bd41f2cSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 23219bd41f2cSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 23229bd41f2cSmrg *GNU* | *'with BFD'*) 23239bd41f2cSmrg test "$with_gnu_ld" != no && break 23249bd41f2cSmrg ;; 23259bd41f2cSmrg *) 23269bd41f2cSmrg test "$with_gnu_ld" != yes && break 23279bd41f2cSmrg ;; 23289bd41f2cSmrg esac 23299bd41f2cSmrg fi 23309bd41f2cSmrg done 23319bd41f2cSmrg IFS="$lt_save_ifs" 23329bd41f2cSmrgelse 23339bd41f2cSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 23349bd41f2cSmrgfi]) 23359bd41f2cSmrgLD="$lt_cv_path_LD" 23369bd41f2cSmrgif test -n "$LD"; then 23379bd41f2cSmrg AC_MSG_RESULT($LD) 23389bd41f2cSmrgelse 23399bd41f2cSmrg AC_MSG_RESULT(no) 23409bd41f2cSmrgfi 23419bd41f2cSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 23429bd41f2cSmrgAC_PROG_LD_GNU 23439bd41f2cSmrg])# AC_PROG_LD 23449bd41f2cSmrg 23459bd41f2cSmrg 23469bd41f2cSmrg# AC_PROG_LD_GNU 23479bd41f2cSmrg# -------------- 23489bd41f2cSmrgAC_DEFUN([AC_PROG_LD_GNU], 23499bd41f2cSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 23509bd41f2cSmrgAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 23519bd41f2cSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 23529bd41f2cSmrgcase `$LD -v 2>&1 </dev/null` in 23539bd41f2cSmrg*GNU* | *'with BFD'*) 23549bd41f2cSmrg lt_cv_prog_gnu_ld=yes 23559bd41f2cSmrg ;; 23569bd41f2cSmrg*) 23579bd41f2cSmrg lt_cv_prog_gnu_ld=no 23589bd41f2cSmrg ;; 23599bd41f2cSmrgesac]) 23609bd41f2cSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 23619bd41f2cSmrg])# AC_PROG_LD_GNU 23629bd41f2cSmrg 23639bd41f2cSmrg 23649bd41f2cSmrg# AC_PROG_LD_RELOAD_FLAG 23659bd41f2cSmrg# ---------------------- 23669bd41f2cSmrg# find reload flag for linker 23679bd41f2cSmrg# -- PORTME Some linkers may need a different reload flag. 23689bd41f2cSmrgAC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 23699bd41f2cSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 23709bd41f2cSmrg lt_cv_ld_reload_flag, 23719bd41f2cSmrg [lt_cv_ld_reload_flag='-r']) 23729bd41f2cSmrgreload_flag=$lt_cv_ld_reload_flag 23739bd41f2cSmrgcase $reload_flag in 23749bd41f2cSmrg"" | " "*) ;; 23759bd41f2cSmrg*) reload_flag=" $reload_flag" ;; 23769bd41f2cSmrgesac 23779bd41f2cSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 23789bd41f2cSmrgcase $host_os in 23799bd41f2cSmrg darwin*) 23809bd41f2cSmrg if test "$GCC" = yes; then 23819bd41f2cSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 23829bd41f2cSmrg else 23839bd41f2cSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 23849bd41f2cSmrg fi 23859bd41f2cSmrg ;; 23869bd41f2cSmrgesac 23879bd41f2cSmrg])# AC_PROG_LD_RELOAD_FLAG 23889bd41f2cSmrg 23899bd41f2cSmrg 23909bd41f2cSmrg# AC_DEPLIBS_CHECK_METHOD 23919bd41f2cSmrg# ----------------------- 23929bd41f2cSmrg# how to check for library dependencies 23939bd41f2cSmrg# -- PORTME fill in with the dynamic library characteristics 23949bd41f2cSmrgAC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 23959bd41f2cSmrg[AC_CACHE_CHECK([how to recognize dependent libraries], 23969bd41f2cSmrglt_cv_deplibs_check_method, 23979bd41f2cSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 23989bd41f2cSmrglt_cv_file_magic_test_file= 23999bd41f2cSmrglt_cv_deplibs_check_method='unknown' 24009bd41f2cSmrg# Need to set the preceding variable on all platforms that support 24019bd41f2cSmrg# interlibrary dependencies. 24029bd41f2cSmrg# 'none' -- dependencies not supported. 24039bd41f2cSmrg# `unknown' -- same as none, but documents that we really don't know. 24049bd41f2cSmrg# 'pass_all' -- all dependencies passed with no checks. 24059bd41f2cSmrg# 'test_compile' -- check by making test program. 24069bd41f2cSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 24079bd41f2cSmrg# which responds to the $file_magic_cmd with a given extended regex. 24089bd41f2cSmrg# If you have `file' or equivalent on your system and you're not sure 24099bd41f2cSmrg# whether `pass_all' will *always* work, you probably want this one. 24109bd41f2cSmrg 24119bd41f2cSmrgcase $host_os in 2412d075918cSmrgaix[[4-9]]*) 24139bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 24149bd41f2cSmrg ;; 24159bd41f2cSmrg 24169bd41f2cSmrgbeos*) 24179bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 24189bd41f2cSmrg ;; 24199bd41f2cSmrg 24209bd41f2cSmrgbsdi[[45]]*) 24219bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 24229bd41f2cSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 24239bd41f2cSmrg lt_cv_file_magic_test_file=/shlib/libc.so 24249bd41f2cSmrg ;; 24259bd41f2cSmrg 24269bd41f2cSmrgcygwin*) 24279bd41f2cSmrg # func_win32_libid is a shell function defined in ltmain.sh 24289bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 24299bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 24309bd41f2cSmrg ;; 24319bd41f2cSmrg 24329bd41f2cSmrgmingw* | pw32*) 24339bd41f2cSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 24349bd41f2cSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump', 24359bd41f2cSmrg # unless we find 'file', for example because we are cross-compiling. 24369bd41f2cSmrg if ( file / ) >/dev/null 2>&1; then 24379bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 24389bd41f2cSmrg lt_cv_file_magic_cmd='func_win32_libid' 24399bd41f2cSmrg else 24409bd41f2cSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 24419bd41f2cSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 24429bd41f2cSmrg fi 24439bd41f2cSmrg ;; 24449bd41f2cSmrg 24459bd41f2cSmrgdarwin* | rhapsody*) 24469bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 24479bd41f2cSmrg ;; 24489bd41f2cSmrg 24499bd41f2cSmrgfreebsd* | dragonfly*) 24509bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 24519bd41f2cSmrg case $host_cpu in 24529bd41f2cSmrg i*86 ) 24539bd41f2cSmrg # Not sure whether the presence of OpenBSD here was a mistake. 24549bd41f2cSmrg # Let's accept both of them until this is cleared up. 24559bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 24569bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 24579bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 24589bd41f2cSmrg ;; 24599bd41f2cSmrg esac 24609bd41f2cSmrg else 24619bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 24629bd41f2cSmrg fi 24639bd41f2cSmrg ;; 24649bd41f2cSmrg 24659bd41f2cSmrggnu*) 24669bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 24679bd41f2cSmrg ;; 24689bd41f2cSmrg 24699bd41f2cSmrghpux10.20* | hpux11*) 24709bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 24719bd41f2cSmrg case $host_cpu in 24729bd41f2cSmrg ia64*) 24739bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 24749bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 24759bd41f2cSmrg ;; 24769bd41f2cSmrg hppa*64*) 24779bd41f2cSmrg [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] 24789bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 24799bd41f2cSmrg ;; 24809bd41f2cSmrg *) 24819bd41f2cSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 24829bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 24839bd41f2cSmrg ;; 24849bd41f2cSmrg esac 24859bd41f2cSmrg ;; 24869bd41f2cSmrg 24879bd41f2cSmrginterix[[3-9]]*) 24889bd41f2cSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 24899bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 24909bd41f2cSmrg ;; 24919bd41f2cSmrg 24929bd41f2cSmrgirix5* | irix6* | nonstopux*) 24939bd41f2cSmrg case $LD in 24949bd41f2cSmrg *-32|*"-32 ") libmagic=32-bit;; 24959bd41f2cSmrg *-n32|*"-n32 ") libmagic=N32;; 24969bd41f2cSmrg *-64|*"-64 ") libmagic=64-bit;; 24979bd41f2cSmrg *) libmagic=never-match;; 24989bd41f2cSmrg esac 24999bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25009bd41f2cSmrg ;; 25019bd41f2cSmrg 25029bd41f2cSmrg# This must be Linux ELF. 25039bd41f2cSmrglinux* | k*bsd*-gnu) 25049bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25059bd41f2cSmrg ;; 25069bd41f2cSmrg 25079bd41f2cSmrgnetbsd*) 25089bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 25099bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 25109bd41f2cSmrg else 25119bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 25129bd41f2cSmrg fi 25139bd41f2cSmrg ;; 25149bd41f2cSmrg 25159bd41f2cSmrgnewos6*) 25169bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 25179bd41f2cSmrg lt_cv_file_magic_cmd=/usr/bin/file 25189bd41f2cSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 25199bd41f2cSmrg ;; 25209bd41f2cSmrg 25219bd41f2cSmrgnto-qnx*) 25229bd41f2cSmrg lt_cv_deplibs_check_method=unknown 25239bd41f2cSmrg ;; 25249bd41f2cSmrg 25259bd41f2cSmrgopenbsd*) 25269bd41f2cSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 25279bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 25289bd41f2cSmrg else 25299bd41f2cSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 25309bd41f2cSmrg fi 25319bd41f2cSmrg ;; 25329bd41f2cSmrg 25339bd41f2cSmrgosf3* | osf4* | osf5*) 25349bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25359bd41f2cSmrg ;; 25369bd41f2cSmrg 25379bd41f2cSmrgrdos*) 25389bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25399bd41f2cSmrg ;; 25409bd41f2cSmrg 25419bd41f2cSmrgsolaris*) 25429bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25439bd41f2cSmrg ;; 25449bd41f2cSmrg 25459bd41f2cSmrgsysv4 | sysv4.3*) 25469bd41f2cSmrg case $host_vendor in 25479bd41f2cSmrg motorola) 25489bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 25499bd41f2cSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 25509bd41f2cSmrg ;; 25519bd41f2cSmrg ncr) 25529bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25539bd41f2cSmrg ;; 25549bd41f2cSmrg sequent) 25559bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 25569bd41f2cSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 25579bd41f2cSmrg ;; 25589bd41f2cSmrg sni) 25599bd41f2cSmrg lt_cv_file_magic_cmd='/bin/file' 25609bd41f2cSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 25619bd41f2cSmrg lt_cv_file_magic_test_file=/lib/libc.so 25629bd41f2cSmrg ;; 25639bd41f2cSmrg siemens) 25649bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25659bd41f2cSmrg ;; 25669bd41f2cSmrg pc) 25679bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25689bd41f2cSmrg ;; 25699bd41f2cSmrg esac 25709bd41f2cSmrg ;; 25719bd41f2cSmrg 25729bd41f2cSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 25739bd41f2cSmrg lt_cv_deplibs_check_method=pass_all 25749bd41f2cSmrg ;; 25759bd41f2cSmrgesac 25769bd41f2cSmrg]) 25779bd41f2cSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 25789bd41f2cSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 25799bd41f2cSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 25809bd41f2cSmrg])# AC_DEPLIBS_CHECK_METHOD 25819bd41f2cSmrg 25829bd41f2cSmrg 25839bd41f2cSmrg# AC_PROG_NM 25849bd41f2cSmrg# ---------- 25859bd41f2cSmrg# find the pathname to a BSD-compatible name lister 25869bd41f2cSmrgAC_DEFUN([AC_PROG_NM], 25879bd41f2cSmrg[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 25889bd41f2cSmrg[if test -n "$NM"; then 25899bd41f2cSmrg # Let the user override the test. 25909bd41f2cSmrg lt_cv_path_NM="$NM" 25919bd41f2cSmrgelse 25929bd41f2cSmrg lt_nm_to_check="${ac_tool_prefix}nm" 25939bd41f2cSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 25949bd41f2cSmrg lt_nm_to_check="$lt_nm_to_check nm" 25959bd41f2cSmrg fi 25969bd41f2cSmrg for lt_tmp_nm in $lt_nm_to_check; do 25979bd41f2cSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 25989bd41f2cSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 25999bd41f2cSmrg IFS="$lt_save_ifs" 26009bd41f2cSmrg test -z "$ac_dir" && ac_dir=. 26019bd41f2cSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 26029bd41f2cSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 26039bd41f2cSmrg # Check to see if the nm accepts a BSD-compat flag. 26049bd41f2cSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 26059bd41f2cSmrg # nm: unknown option "B" ignored 26069bd41f2cSmrg # Tru64's nm complains that /dev/null is an invalid object file 26079bd41f2cSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 26089bd41f2cSmrg */dev/null* | *'Invalid file or object type'*) 26099bd41f2cSmrg lt_cv_path_NM="$tmp_nm -B" 26109bd41f2cSmrg break 26119bd41f2cSmrg ;; 26129bd41f2cSmrg *) 26139bd41f2cSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 26149bd41f2cSmrg */dev/null*) 26159bd41f2cSmrg lt_cv_path_NM="$tmp_nm -p" 26169bd41f2cSmrg break 26179bd41f2cSmrg ;; 26189bd41f2cSmrg *) 26199bd41f2cSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 26209bd41f2cSmrg continue # so that we can try to find one that supports BSD flags 26219bd41f2cSmrg ;; 26229bd41f2cSmrg esac 26239bd41f2cSmrg ;; 26249bd41f2cSmrg esac 26259bd41f2cSmrg fi 26269bd41f2cSmrg done 26279bd41f2cSmrg IFS="$lt_save_ifs" 26289bd41f2cSmrg done 26299bd41f2cSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 26309bd41f2cSmrgfi]) 26319bd41f2cSmrgNM="$lt_cv_path_NM" 26329bd41f2cSmrg])# AC_PROG_NM 26339bd41f2cSmrg 26349bd41f2cSmrg 26359bd41f2cSmrg# AC_CHECK_LIBM 26369bd41f2cSmrg# ------------- 26379bd41f2cSmrg# check for math library 26389bd41f2cSmrgAC_DEFUN([AC_CHECK_LIBM], 26399bd41f2cSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 26409bd41f2cSmrgLIBM= 26419bd41f2cSmrgcase $host in 26429bd41f2cSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 26439bd41f2cSmrg # These system don't have libm, or don't need it 26449bd41f2cSmrg ;; 26459bd41f2cSmrg*-ncr-sysv4.3*) 26469bd41f2cSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 26479bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 26489bd41f2cSmrg ;; 26499bd41f2cSmrg*) 26509bd41f2cSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 26519bd41f2cSmrg ;; 26529bd41f2cSmrgesac 26539bd41f2cSmrg])# AC_CHECK_LIBM 26549bd41f2cSmrg 26559bd41f2cSmrg 26569bd41f2cSmrg# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 26579bd41f2cSmrg# ----------------------------------- 26589bd41f2cSmrg# sets LIBLTDL to the link flags for the libltdl convenience library and 26599bd41f2cSmrg# LTDLINCL to the include flags for the libltdl header and adds 26609bd41f2cSmrg# --enable-ltdl-convenience to the configure arguments. Note that 26619bd41f2cSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 26629bd41f2cSmrg# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 26639bd41f2cSmrg# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 26649bd41f2cSmrg# (note the single quotes!). If your package is not flat and you're not 26659bd41f2cSmrg# using automake, define top_builddir and top_srcdir appropriately in 26669bd41f2cSmrg# the Makefiles. 26679bd41f2cSmrgAC_DEFUN([AC_LIBLTDL_CONVENIENCE], 26689bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 26699bd41f2cSmrg case $enable_ltdl_convenience in 26709bd41f2cSmrg no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 26719bd41f2cSmrg "") enable_ltdl_convenience=yes 26729bd41f2cSmrg ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 26739bd41f2cSmrg esac 26749bd41f2cSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 26759bd41f2cSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 26769bd41f2cSmrg # For backwards non-gettext consistent compatibility... 26779bd41f2cSmrg INCLTDL="$LTDLINCL" 26789bd41f2cSmrg])# AC_LIBLTDL_CONVENIENCE 26799bd41f2cSmrg 26809bd41f2cSmrg 26819bd41f2cSmrg# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 26829bd41f2cSmrg# ----------------------------------- 26839bd41f2cSmrg# sets LIBLTDL to the link flags for the libltdl installable library and 26849bd41f2cSmrg# LTDLINCL to the include flags for the libltdl header and adds 26859bd41f2cSmrg# --enable-ltdl-install to the configure arguments. Note that 26869bd41f2cSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 26879bd41f2cSmrg# and an installed libltdl is not found, it is assumed to be `libltdl'. 26889bd41f2cSmrg# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 26899bd41f2cSmrg# '${top_srcdir}/' (note the single quotes!). If your package is not 26909bd41f2cSmrg# flat and you're not using automake, define top_builddir and top_srcdir 26919bd41f2cSmrg# appropriately in the Makefiles. 26929bd41f2cSmrg# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 26939bd41f2cSmrgAC_DEFUN([AC_LIBLTDL_INSTALLABLE], 26949bd41f2cSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 26959bd41f2cSmrg AC_CHECK_LIB(ltdl, lt_dlinit, 26969bd41f2cSmrg [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 26979bd41f2cSmrg [if test x"$enable_ltdl_install" = xno; then 26989bd41f2cSmrg AC_MSG_WARN([libltdl not installed, but installation disabled]) 26999bd41f2cSmrg else 27009bd41f2cSmrg enable_ltdl_install=yes 27019bd41f2cSmrg fi 27029bd41f2cSmrg ]) 27039bd41f2cSmrg if test x"$enable_ltdl_install" = x"yes"; then 27049bd41f2cSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install" 27059bd41f2cSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 27069bd41f2cSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 27079bd41f2cSmrg else 27089bd41f2cSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 27099bd41f2cSmrg LIBLTDL="-lltdl" 27109bd41f2cSmrg LTDLINCL= 27119bd41f2cSmrg fi 27129bd41f2cSmrg # For backwards non-gettext consistent compatibility... 27139bd41f2cSmrg INCLTDL="$LTDLINCL" 27149bd41f2cSmrg])# AC_LIBLTDL_INSTALLABLE 27159bd41f2cSmrg 27169bd41f2cSmrg 27179bd41f2cSmrg# AC_LIBTOOL_CXX 27189bd41f2cSmrg# -------------- 27199bd41f2cSmrg# enable support for C++ libraries 27209bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_CXX], 27219bd41f2cSmrg[AC_REQUIRE([_LT_AC_LANG_CXX]) 27229bd41f2cSmrg])# AC_LIBTOOL_CXX 27239bd41f2cSmrg 27249bd41f2cSmrg 27259bd41f2cSmrg# _LT_AC_LANG_CXX 27269bd41f2cSmrg# --------------- 27279bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_CXX], 27289bd41f2cSmrg[AC_REQUIRE([AC_PROG_CXX]) 27299bd41f2cSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 27309bd41f2cSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 27319bd41f2cSmrg])# _LT_AC_LANG_CXX 27329bd41f2cSmrg 27339bd41f2cSmrg# _LT_AC_PROG_CXXCPP 27349bd41f2cSmrg# ------------------ 27359bd41f2cSmrgAC_DEFUN([_LT_AC_PROG_CXXCPP], 27369bd41f2cSmrg[ 27379bd41f2cSmrgAC_REQUIRE([AC_PROG_CXX]) 27389bd41f2cSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 27399bd41f2cSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 27409bd41f2cSmrg (test "X$CXX" != "Xg++"))) ; then 27419bd41f2cSmrg AC_PROG_CXXCPP 27429bd41f2cSmrgfi 27439bd41f2cSmrg])# _LT_AC_PROG_CXXCPP 27449bd41f2cSmrg 27459bd41f2cSmrg# AC_LIBTOOL_F77 27469bd41f2cSmrg# -------------- 27479bd41f2cSmrg# enable support for Fortran 77 libraries 27489bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_F77], 27499bd41f2cSmrg[AC_REQUIRE([_LT_AC_LANG_F77]) 27509bd41f2cSmrg])# AC_LIBTOOL_F77 27519bd41f2cSmrg 27529bd41f2cSmrg 27539bd41f2cSmrg# _LT_AC_LANG_F77 27549bd41f2cSmrg# --------------- 27559bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_F77], 27569bd41f2cSmrg[AC_REQUIRE([AC_PROG_F77]) 27579bd41f2cSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 27589bd41f2cSmrg])# _LT_AC_LANG_F77 27599bd41f2cSmrg 27609bd41f2cSmrg 27619bd41f2cSmrg# AC_LIBTOOL_GCJ 27629bd41f2cSmrg# -------------- 27639bd41f2cSmrg# enable support for GCJ libraries 27649bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_GCJ], 27659bd41f2cSmrg[AC_REQUIRE([_LT_AC_LANG_GCJ]) 27669bd41f2cSmrg])# AC_LIBTOOL_GCJ 27679bd41f2cSmrg 27689bd41f2cSmrg 27699bd41f2cSmrg# _LT_AC_LANG_GCJ 27709bd41f2cSmrg# --------------- 27719bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_GCJ], 27729bd41f2cSmrg[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 27739bd41f2cSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 27749bd41f2cSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 27759bd41f2cSmrg [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 27769bd41f2cSmrg [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 27779bd41f2cSmrg [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 27789bd41f2cSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 27799bd41f2cSmrg])# _LT_AC_LANG_GCJ 27809bd41f2cSmrg 27819bd41f2cSmrg 27829bd41f2cSmrg# AC_LIBTOOL_RC 27839bd41f2cSmrg# ------------- 27849bd41f2cSmrg# enable support for Windows resource files 27859bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_RC], 27869bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_RC]) 27879bd41f2cSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 27889bd41f2cSmrg])# AC_LIBTOOL_RC 27899bd41f2cSmrg 27909bd41f2cSmrg 27919bd41f2cSmrg# AC_LIBTOOL_LANG_C_CONFIG 27929bd41f2cSmrg# ------------------------ 27939bd41f2cSmrg# Ensure that the configuration vars for the C compiler are 27949bd41f2cSmrg# suitably defined. Those variables are subsequently used by 27959bd41f2cSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 27969bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 27979bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_C_CONFIG], 27989bd41f2cSmrg[lt_save_CC="$CC" 27999bd41f2cSmrgAC_LANG_PUSH(C) 28009bd41f2cSmrg 28019bd41f2cSmrg# Source file extension for C test sources. 28029bd41f2cSmrgac_ext=c 28039bd41f2cSmrg 28049bd41f2cSmrg# Object file extension for compiled C test sources. 28059bd41f2cSmrgobjext=o 28069bd41f2cSmrg_LT_AC_TAGVAR(objext, $1)=$objext 28079bd41f2cSmrg 28089bd41f2cSmrg# Code to be used in simple compile tests 28099bd41f2cSmrglt_simple_compile_test_code="int some_variable = 0;" 28109bd41f2cSmrg 28119bd41f2cSmrg# Code to be used in simple link tests 28129bd41f2cSmrglt_simple_link_test_code='int main(){return(0);}' 28139bd41f2cSmrg 28149bd41f2cSmrg_LT_AC_SYS_COMPILER 28159bd41f2cSmrg 28169bd41f2cSmrg# save warnings/boilerplate of simple test code 28179bd41f2cSmrg_LT_COMPILER_BOILERPLATE 28189bd41f2cSmrg_LT_LINKER_BOILERPLATE 28199bd41f2cSmrg 28209bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 28219bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 28229bd41f2cSmrgAC_LIBTOOL_PROG_CC_C_O($1) 28239bd41f2cSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 28249bd41f2cSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 28259bd41f2cSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 28269bd41f2cSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 28279bd41f2cSmrgAC_LIBTOOL_SYS_LIB_STRIP 28289bd41f2cSmrgAC_LIBTOOL_DLOPEN_SELF 28299bd41f2cSmrg 28309bd41f2cSmrg# Report which library types will actually be built 28319bd41f2cSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 28329bd41f2cSmrgAC_MSG_RESULT([$can_build_shared]) 28339bd41f2cSmrg 28349bd41f2cSmrgAC_MSG_CHECKING([whether to build shared libraries]) 28359bd41f2cSmrgtest "$can_build_shared" = "no" && enable_shared=no 28369bd41f2cSmrg 28379bd41f2cSmrg# On AIX, shared libraries and static libraries use the same namespace, and 28389bd41f2cSmrg# are all built from PIC. 28399bd41f2cSmrgcase $host_os in 28409bd41f2cSmrgaix3*) 28419bd41f2cSmrg test "$enable_shared" = yes && enable_static=no 28429bd41f2cSmrg if test -n "$RANLIB"; then 28439bd41f2cSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 28449bd41f2cSmrg postinstall_cmds='$RANLIB $lib' 28459bd41f2cSmrg fi 28469bd41f2cSmrg ;; 28479bd41f2cSmrg 2848d075918cSmrgaix[[4-9]]*) 28499bd41f2cSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 28509bd41f2cSmrg test "$enable_shared" = yes && enable_static=no 28519bd41f2cSmrg fi 28529bd41f2cSmrg ;; 28539bd41f2cSmrgesac 28549bd41f2cSmrgAC_MSG_RESULT([$enable_shared]) 28559bd41f2cSmrg 28569bd41f2cSmrgAC_MSG_CHECKING([whether to build static libraries]) 28579bd41f2cSmrg# Make sure either enable_shared or enable_static is yes. 28589bd41f2cSmrgtest "$enable_shared" = yes || enable_static=yes 28599bd41f2cSmrgAC_MSG_RESULT([$enable_static]) 28609bd41f2cSmrg 28619bd41f2cSmrgAC_LIBTOOL_CONFIG($1) 28629bd41f2cSmrg 28639bd41f2cSmrgAC_LANG_POP 28649bd41f2cSmrgCC="$lt_save_CC" 28659bd41f2cSmrg])# AC_LIBTOOL_LANG_C_CONFIG 28669bd41f2cSmrg 28679bd41f2cSmrg 28689bd41f2cSmrg# AC_LIBTOOL_LANG_CXX_CONFIG 28699bd41f2cSmrg# -------------------------- 28709bd41f2cSmrg# Ensure that the configuration vars for the C compiler are 28719bd41f2cSmrg# suitably defined. Those variables are subsequently used by 28729bd41f2cSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 28739bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 28749bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 28759bd41f2cSmrg[AC_LANG_PUSH(C++) 28769bd41f2cSmrgAC_REQUIRE([AC_PROG_CXX]) 28779bd41f2cSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 28789bd41f2cSmrg 28799bd41f2cSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 28809bd41f2cSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 28819bd41f2cSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 28829bd41f2cSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 28839bd41f2cSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 28849bd41f2cSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 28859bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 28869bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 28879bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 28889bd41f2cSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 28899bd41f2cSmrg_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 28909bd41f2cSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 28919bd41f2cSmrg_LT_AC_TAGVAR(module_cmds, $1)= 28929bd41f2cSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 28939bd41f2cSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 28949bd41f2cSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 28959bd41f2cSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 28969bd41f2cSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 28979bd41f2cSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 28989bd41f2cSmrg 28999bd41f2cSmrg# Dependencies to place before and after the object being linked: 29009bd41f2cSmrg_LT_AC_TAGVAR(predep_objects, $1)= 29019bd41f2cSmrg_LT_AC_TAGVAR(postdep_objects, $1)= 29029bd41f2cSmrg_LT_AC_TAGVAR(predeps, $1)= 29039bd41f2cSmrg_LT_AC_TAGVAR(postdeps, $1)= 29049bd41f2cSmrg_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 2905d075918cSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 29069bd41f2cSmrg 29079bd41f2cSmrg# Source file extension for C++ test sources. 29089bd41f2cSmrgac_ext=cpp 29099bd41f2cSmrg 29109bd41f2cSmrg# Object file extension for compiled C++ test sources. 29119bd41f2cSmrgobjext=o 29129bd41f2cSmrg_LT_AC_TAGVAR(objext, $1)=$objext 29139bd41f2cSmrg 29149bd41f2cSmrg# Code to be used in simple compile tests 29159bd41f2cSmrglt_simple_compile_test_code="int some_variable = 0;" 29169bd41f2cSmrg 29179bd41f2cSmrg# Code to be used in simple link tests 29189bd41f2cSmrglt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' 29199bd41f2cSmrg 29209bd41f2cSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 29219bd41f2cSmrg_LT_AC_SYS_COMPILER 29229bd41f2cSmrg 29239bd41f2cSmrg# save warnings/boilerplate of simple test code 29249bd41f2cSmrg_LT_COMPILER_BOILERPLATE 29259bd41f2cSmrg_LT_LINKER_BOILERPLATE 29269bd41f2cSmrg 29279bd41f2cSmrg# Allow CC to be a program name with arguments. 29289bd41f2cSmrglt_save_CC=$CC 29299bd41f2cSmrglt_save_LD=$LD 29309bd41f2cSmrglt_save_GCC=$GCC 29319bd41f2cSmrgGCC=$GXX 29329bd41f2cSmrglt_save_with_gnu_ld=$with_gnu_ld 29339bd41f2cSmrglt_save_path_LD=$lt_cv_path_LD 29349bd41f2cSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 29359bd41f2cSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 29369bd41f2cSmrgelse 29379bd41f2cSmrg $as_unset lt_cv_prog_gnu_ld 29389bd41f2cSmrgfi 29399bd41f2cSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 29409bd41f2cSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 29419bd41f2cSmrgelse 29429bd41f2cSmrg $as_unset lt_cv_path_LD 29439bd41f2cSmrgfi 29449bd41f2cSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 29459bd41f2cSmrgCC=${CXX-"c++"} 29469bd41f2cSmrgcompiler=$CC 29479bd41f2cSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 29489bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 29499bd41f2cSmrg 29509bd41f2cSmrg# We don't want -fno-exception wen compiling C++ code, so set the 29519bd41f2cSmrg# no_builtin_flag separately 29529bd41f2cSmrgif test "$GXX" = yes; then 29539bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 29549bd41f2cSmrgelse 29559bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 29569bd41f2cSmrgfi 29579bd41f2cSmrg 29589bd41f2cSmrgif test "$GXX" = yes; then 29599bd41f2cSmrg # Set up default GNU C++ configuration 29609bd41f2cSmrg 29619bd41f2cSmrg AC_PROG_LD 29629bd41f2cSmrg 29639bd41f2cSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 29649bd41f2cSmrg # archiving commands below assume that GNU ld is being used. 29659bd41f2cSmrg if test "$with_gnu_ld" = yes; then 29669bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 29679bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 29689bd41f2cSmrg 29699bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 29709bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 29719bd41f2cSmrg 29729bd41f2cSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 29739bd41f2cSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 29749bd41f2cSmrg # investigate it a little bit more. (MM) 29759bd41f2cSmrg wlarc='${wl}' 29769bd41f2cSmrg 29779bd41f2cSmrg # ancient GNU ld didn't support --whole-archive et. al. 29789bd41f2cSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 29799bd41f2cSmrg grep 'no-whole-archive' > /dev/null; then 29809bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 29819bd41f2cSmrg else 29829bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 29839bd41f2cSmrg fi 29849bd41f2cSmrg else 29859bd41f2cSmrg with_gnu_ld=no 29869bd41f2cSmrg wlarc= 29879bd41f2cSmrg 29889bd41f2cSmrg # A generic and very simple default shared library creation 29899bd41f2cSmrg # command for GNU C++ for the case where it uses the native 29909bd41f2cSmrg # linker, instead of GNU ld. If possible, this setting should 29919bd41f2cSmrg # overridden to take advantage of the native linker features on 29929bd41f2cSmrg # the platform it is being used on. 29939bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 29949bd41f2cSmrg fi 29959bd41f2cSmrg 29969bd41f2cSmrg # Commands to make compiler produce verbose output that lists 29979bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 29989bd41f2cSmrg # linking a shared library. 29999bd41f2cSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 30009bd41f2cSmrg 30019bd41f2cSmrgelse 30029bd41f2cSmrg GXX=no 30039bd41f2cSmrg with_gnu_ld=no 30049bd41f2cSmrg wlarc= 30059bd41f2cSmrgfi 30069bd41f2cSmrg 30079bd41f2cSmrg# PORTME: fill in a description of your system's C++ link characteristics 30089bd41f2cSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 30099bd41f2cSmrg_LT_AC_TAGVAR(ld_shlibs, $1)=yes 30109bd41f2cSmrgcase $host_os in 30119bd41f2cSmrg aix3*) 30129bd41f2cSmrg # FIXME: insert proper C++ library support 30139bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30149bd41f2cSmrg ;; 3015d075918cSmrg aix[[4-9]]*) 30169bd41f2cSmrg if test "$host_cpu" = ia64; then 30179bd41f2cSmrg # On IA64, the linker does run time linking by default, so we don't 30189bd41f2cSmrg # have to do anything special. 30199bd41f2cSmrg aix_use_runtimelinking=no 30209bd41f2cSmrg exp_sym_flag='-Bexport' 30219bd41f2cSmrg no_entry_flag="" 30229bd41f2cSmrg else 30239bd41f2cSmrg aix_use_runtimelinking=no 30249bd41f2cSmrg 30259bd41f2cSmrg # Test if we are trying to use run time linking or normal 30269bd41f2cSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 30279bd41f2cSmrg # need to do runtime linking. 3028d075918cSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 30299bd41f2cSmrg for ld_flag in $LDFLAGS; do 30309bd41f2cSmrg case $ld_flag in 30319bd41f2cSmrg *-brtl*) 30329bd41f2cSmrg aix_use_runtimelinking=yes 30339bd41f2cSmrg break 30349bd41f2cSmrg ;; 30359bd41f2cSmrg esac 30369bd41f2cSmrg done 30379bd41f2cSmrg ;; 30389bd41f2cSmrg esac 30399bd41f2cSmrg 30409bd41f2cSmrg exp_sym_flag='-bexport' 30419bd41f2cSmrg no_entry_flag='-bnoentry' 30429bd41f2cSmrg fi 30439bd41f2cSmrg 30449bd41f2cSmrg # When large executables or shared objects are built, AIX ld can 30459bd41f2cSmrg # have problems creating the table of contents. If linking a library 30469bd41f2cSmrg # or program results in "error TOC overflow" add -mminimal-toc to 30479bd41f2cSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 30489bd41f2cSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 30499bd41f2cSmrg 30509bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 30519bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 30529bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 30539bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 30549bd41f2cSmrg 30559bd41f2cSmrg if test "$GXX" = yes; then 30569bd41f2cSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 30579bd41f2cSmrg # We only want to do this on AIX 4.2 and lower, the check 30589bd41f2cSmrg # below for broken collect2 doesn't work under 4.3+ 30599bd41f2cSmrg collect2name=`${CC} -print-prog-name=collect2` 30609bd41f2cSmrg if test -f "$collect2name" && \ 30619bd41f2cSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 30629bd41f2cSmrg then 30639bd41f2cSmrg # We have reworked collect2 30649bd41f2cSmrg : 30659bd41f2cSmrg else 30669bd41f2cSmrg # We have old collect2 30679bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 30689bd41f2cSmrg # It fails to find uninstalled libraries when the uninstalled 30699bd41f2cSmrg # path is not listed in the libpath. Setting hardcode_minus_L 30709bd41f2cSmrg # to unsupported forces relinking 30719bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 30729bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 30739bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 30749bd41f2cSmrg fi 30759bd41f2cSmrg ;; 30769bd41f2cSmrg esac 30779bd41f2cSmrg shared_flag='-shared' 30789bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 30799bd41f2cSmrg shared_flag="$shared_flag "'${wl}-G' 30809bd41f2cSmrg fi 30819bd41f2cSmrg else 30829bd41f2cSmrg # not using gcc 30839bd41f2cSmrg if test "$host_cpu" = ia64; then 30849bd41f2cSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 30859bd41f2cSmrg # chokes on -Wl,-G. The following line is correct: 30869bd41f2cSmrg shared_flag='-G' 30879bd41f2cSmrg else 30889bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 30899bd41f2cSmrg shared_flag='${wl}-G' 30909bd41f2cSmrg else 30919bd41f2cSmrg shared_flag='${wl}-bM:SRE' 30929bd41f2cSmrg fi 30939bd41f2cSmrg fi 30949bd41f2cSmrg fi 30959bd41f2cSmrg 30969bd41f2cSmrg # It seems that -bexpall does not export symbols beginning with 30979bd41f2cSmrg # underscore (_), so it is better to generate a list of symbols to export. 30989bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 30999bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 31009bd41f2cSmrg # Warning - without using the other runtime loading flags (-brtl), 31019bd41f2cSmrg # -berok will link without error, but may produce a broken library. 31029bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 31039bd41f2cSmrg # Determine the default libpath from the value encoded in an empty executable. 31049bd41f2cSmrg _LT_AC_SYS_LIBPATH_AIX 31059bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 31069bd41f2cSmrg 31079bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 31089bd41f2cSmrg else 31099bd41f2cSmrg if test "$host_cpu" = ia64; then 31109bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 31119bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 31129bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 31139bd41f2cSmrg else 31149bd41f2cSmrg # Determine the default libpath from the value encoded in an empty executable. 31159bd41f2cSmrg _LT_AC_SYS_LIBPATH_AIX 31169bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 31179bd41f2cSmrg # Warning - without using the other run time loading flags, 31189bd41f2cSmrg # -berok will link without error, but may produce a broken library. 31199bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 31209bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 31219bd41f2cSmrg # Exported symbols can be pulled into shared objects from archives 31229bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 31239bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 31249bd41f2cSmrg # This is similar to how AIX traditionally builds its shared libraries. 31259bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 31269bd41f2cSmrg fi 31279bd41f2cSmrg fi 31289bd41f2cSmrg ;; 31299bd41f2cSmrg 31309bd41f2cSmrg beos*) 31319bd41f2cSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 31329bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 31339bd41f2cSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 31349bd41f2cSmrg # support --undefined. This deserves some investigation. FIXME 31359bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 31369bd41f2cSmrg else 31379bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31389bd41f2cSmrg fi 31399bd41f2cSmrg ;; 31409bd41f2cSmrg 31419bd41f2cSmrg chorus*) 31429bd41f2cSmrg case $cc_basename in 31439bd41f2cSmrg *) 31449bd41f2cSmrg # FIXME: insert proper C++ library support 31459bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31469bd41f2cSmrg ;; 31479bd41f2cSmrg esac 31489bd41f2cSmrg ;; 31499bd41f2cSmrg 31509bd41f2cSmrg cygwin* | mingw* | pw32*) 31519bd41f2cSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 31529bd41f2cSmrg # as there is no search path for DLLs. 31539bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 31549bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 31559bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 31569bd41f2cSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 31579bd41f2cSmrg 31589bd41f2cSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 31599bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 31609bd41f2cSmrg # If the export-symbols file already is a .def file (1st line 31619bd41f2cSmrg # is EXPORTS), use it as is; otherwise, prepend... 31629bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 31639bd41f2cSmrg cp $export_symbols $output_objdir/$soname.def; 31649bd41f2cSmrg else 31659bd41f2cSmrg echo EXPORTS > $output_objdir/$soname.def; 31669bd41f2cSmrg cat $export_symbols >> $output_objdir/$soname.def; 31679bd41f2cSmrg fi~ 31689bd41f2cSmrg $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 31699bd41f2cSmrg else 31709bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31719bd41f2cSmrg fi 31729bd41f2cSmrg ;; 31739bd41f2cSmrg darwin* | rhapsody*) 31749bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 31759bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 31769bd41f2cSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 31779bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 31789bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 31799bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 3180d075918cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" 3181d075918cSmrg if test "$GXX" = yes ; then 31829bd41f2cSmrg output_verbose_link_cmd='echo' 3183d075918cSmrg _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 3184d075918cSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 3185d075918cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 3186d075918cSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 3187d075918cSmrg if test "$lt_cv_apple_cc_single_mod" != "yes"; then 3188d075918cSmrg _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${_lt_dsymutil}" 3189d075918cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" 31909bd41f2cSmrg fi 31919bd41f2cSmrg else 31929bd41f2cSmrg case $cc_basename in 31939bd41f2cSmrg xlc*) 31949bd41f2cSmrg output_verbose_link_cmd='echo' 31959bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 31969bd41f2cSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 31979bd41f2cSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 31989bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 31999bd41f2cSmrg _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}' 32009bd41f2cSmrg ;; 32019bd41f2cSmrg *) 32029bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32039bd41f2cSmrg ;; 32049bd41f2cSmrg esac 32059bd41f2cSmrg fi 32069bd41f2cSmrg ;; 32079bd41f2cSmrg 32089bd41f2cSmrg dgux*) 32099bd41f2cSmrg case $cc_basename in 32109bd41f2cSmrg ec++*) 32119bd41f2cSmrg # FIXME: insert proper C++ library support 32129bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32139bd41f2cSmrg ;; 32149bd41f2cSmrg ghcx*) 32159bd41f2cSmrg # Green Hills C++ Compiler 32169bd41f2cSmrg # FIXME: insert proper C++ library support 32179bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32189bd41f2cSmrg ;; 32199bd41f2cSmrg *) 32209bd41f2cSmrg # FIXME: insert proper C++ library support 32219bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32229bd41f2cSmrg ;; 32239bd41f2cSmrg esac 32249bd41f2cSmrg ;; 32259bd41f2cSmrg freebsd[[12]]*) 32269bd41f2cSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 32279bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32289bd41f2cSmrg ;; 32299bd41f2cSmrg freebsd-elf*) 32309bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 32319bd41f2cSmrg ;; 32329bd41f2cSmrg freebsd* | dragonfly*) 32339bd41f2cSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 32349bd41f2cSmrg # conventions 32359bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 32369bd41f2cSmrg ;; 32379bd41f2cSmrg gnu*) 32389bd41f2cSmrg ;; 32399bd41f2cSmrg hpux9*) 32409bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 32419bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 32429bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 32439bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 32449bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 32459bd41f2cSmrg # but as the default 32469bd41f2cSmrg # location of the library. 32479bd41f2cSmrg 32489bd41f2cSmrg case $cc_basename in 32499bd41f2cSmrg CC*) 32509bd41f2cSmrg # FIXME: insert proper C++ library support 32519bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32529bd41f2cSmrg ;; 32539bd41f2cSmrg aCC*) 32549bd41f2cSmrg _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' 32559bd41f2cSmrg # Commands to make compiler produce verbose output that lists 32569bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 32579bd41f2cSmrg # linking a shared library. 32589bd41f2cSmrg # 32599bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 32609bd41f2cSmrg # explicitly linking system object files so we need to strip them 32619bd41f2cSmrg # from the output so that they don't get included in the library 32629bd41f2cSmrg # dependencies. 32639bd41f2cSmrg 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' 32649bd41f2cSmrg ;; 32659bd41f2cSmrg *) 32669bd41f2cSmrg if test "$GXX" = yes; then 32679bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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' 32689bd41f2cSmrg else 32699bd41f2cSmrg # FIXME: insert proper C++ library support 32709bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32719bd41f2cSmrg fi 32729bd41f2cSmrg ;; 32739bd41f2cSmrg esac 32749bd41f2cSmrg ;; 32759bd41f2cSmrg hpux10*|hpux11*) 32769bd41f2cSmrg if test $with_gnu_ld = no; then 32779bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 32789bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 32799bd41f2cSmrg 32809bd41f2cSmrg case $host_cpu in 32819bd41f2cSmrg hppa*64*|ia64*) ;; 32829bd41f2cSmrg *) 32839bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 32849bd41f2cSmrg ;; 32859bd41f2cSmrg esac 32869bd41f2cSmrg fi 32879bd41f2cSmrg case $host_cpu in 32889bd41f2cSmrg hppa*64*|ia64*) 32899bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 32909bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 32919bd41f2cSmrg ;; 32929bd41f2cSmrg *) 32939bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 32949bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 32959bd41f2cSmrg # but as the default 32969bd41f2cSmrg # location of the library. 32979bd41f2cSmrg ;; 32989bd41f2cSmrg esac 32999bd41f2cSmrg 33009bd41f2cSmrg case $cc_basename in 33019bd41f2cSmrg CC*) 33029bd41f2cSmrg # FIXME: insert proper C++ library support 33039bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33049bd41f2cSmrg ;; 33059bd41f2cSmrg aCC*) 33069bd41f2cSmrg case $host_cpu in 33079bd41f2cSmrg hppa*64*) 33089bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33099bd41f2cSmrg ;; 33109bd41f2cSmrg ia64*) 33119bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33129bd41f2cSmrg ;; 33139bd41f2cSmrg *) 33149bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33159bd41f2cSmrg ;; 33169bd41f2cSmrg esac 33179bd41f2cSmrg # Commands to make compiler produce verbose output that lists 33189bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 33199bd41f2cSmrg # linking a shared library. 33209bd41f2cSmrg # 33219bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 33229bd41f2cSmrg # explicitly linking system object files so we need to strip them 33239bd41f2cSmrg # from the output so that they don't get included in the library 33249bd41f2cSmrg # dependencies. 33259bd41f2cSmrg 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' 33269bd41f2cSmrg ;; 33279bd41f2cSmrg *) 33289bd41f2cSmrg if test "$GXX" = yes; then 33299bd41f2cSmrg if test $with_gnu_ld = no; then 33309bd41f2cSmrg case $host_cpu in 33319bd41f2cSmrg hppa*64*) 33329bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33339bd41f2cSmrg ;; 33349bd41f2cSmrg ia64*) 33359bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33369bd41f2cSmrg ;; 33379bd41f2cSmrg *) 33389bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 33399bd41f2cSmrg ;; 33409bd41f2cSmrg esac 33419bd41f2cSmrg fi 33429bd41f2cSmrg else 33439bd41f2cSmrg # FIXME: insert proper C++ library support 33449bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33459bd41f2cSmrg fi 33469bd41f2cSmrg ;; 33479bd41f2cSmrg esac 33489bd41f2cSmrg ;; 33499bd41f2cSmrg interix[[3-9]]*) 33509bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 33519bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 33529bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 33539bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 33549bd41f2cSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 33559bd41f2cSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 33569bd41f2cSmrg # default) and relocated if they conflict, which is a slow very memory 33579bd41f2cSmrg # consuming and fragmenting process. To avoid this, we pick a random, 33589bd41f2cSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 33599bd41f2cSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 33609bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 33619bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 33629bd41f2cSmrg ;; 33639bd41f2cSmrg irix5* | irix6*) 33649bd41f2cSmrg case $cc_basename in 33659bd41f2cSmrg CC*) 33669bd41f2cSmrg # SGI C++ 33679bd41f2cSmrg _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' 33689bd41f2cSmrg 33699bd41f2cSmrg # Archives containing C++ object files must be created using 33709bd41f2cSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 33719bd41f2cSmrg # necessary to make sure instantiated templates are included 33729bd41f2cSmrg # in the archive. 33739bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 33749bd41f2cSmrg ;; 33759bd41f2cSmrg *) 33769bd41f2cSmrg if test "$GXX" = yes; then 33779bd41f2cSmrg if test "$with_gnu_ld" = no; then 33789bd41f2cSmrg _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' 33799bd41f2cSmrg else 33809bd41f2cSmrg _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' 33819bd41f2cSmrg fi 33829bd41f2cSmrg fi 33839bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 33849bd41f2cSmrg ;; 33859bd41f2cSmrg esac 33869bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 33879bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 33889bd41f2cSmrg ;; 33899bd41f2cSmrg linux* | k*bsd*-gnu) 33909bd41f2cSmrg case $cc_basename in 33919bd41f2cSmrg KCC*) 33929bd41f2cSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 33939bd41f2cSmrg 33949bd41f2cSmrg # KCC will only create a shared library if the output file 33959bd41f2cSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 33969bd41f2cSmrg # to its proper name (with version) after linking. 33979bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 33989bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 33999bd41f2cSmrg # Commands to make compiler produce verbose output that lists 34009bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 34019bd41f2cSmrg # linking a shared library. 34029bd41f2cSmrg # 34039bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 34049bd41f2cSmrg # explicitly linking system object files so we need to strip them 34059bd41f2cSmrg # from the output so that they don't get included in the library 34069bd41f2cSmrg # dependencies. 34079bd41f2cSmrg output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 34089bd41f2cSmrg 34099bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 34109bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 34119bd41f2cSmrg 34129bd41f2cSmrg # Archives containing C++ object files must be created using 34139bd41f2cSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 34149bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 34159bd41f2cSmrg ;; 34169bd41f2cSmrg icpc*) 34179bd41f2cSmrg # Intel C++ 34189bd41f2cSmrg with_gnu_ld=yes 34199bd41f2cSmrg # version 8.0 and above of icpc choke on multiply defined symbols 34209bd41f2cSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 34219bd41f2cSmrg # earlier do not add the objects themselves. 34229bd41f2cSmrg case `$CC -V 2>&1` in 34239bd41f2cSmrg *"Version 7."*) 34249bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 34259bd41f2cSmrg _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' 34269bd41f2cSmrg ;; 34279bd41f2cSmrg *) # Version 8.0 or newer 34289bd41f2cSmrg tmp_idyn= 34299bd41f2cSmrg case $host_cpu in 34309bd41f2cSmrg ia64*) tmp_idyn=' -i_dynamic';; 34319bd41f2cSmrg esac 34329bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 34339bd41f2cSmrg _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' 34349bd41f2cSmrg ;; 34359bd41f2cSmrg esac 34369bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 34379bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 34389bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 34399bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 34409bd41f2cSmrg ;; 3441d075918cSmrg pgCC* | pgcpp*) 34429bd41f2cSmrg # Portland Group C++ compiler 34439bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 34449bd41f2cSmrg _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' 34459bd41f2cSmrg 34469bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 34479bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 34489bd41f2cSmrg _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' 34499bd41f2cSmrg ;; 34509bd41f2cSmrg cxx*) 34519bd41f2cSmrg # Compaq C++ 34529bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 34539bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 34549bd41f2cSmrg 34559bd41f2cSmrg runpath_var=LD_RUN_PATH 34569bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 34579bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34589bd41f2cSmrg 34599bd41f2cSmrg # Commands to make compiler produce verbose output that lists 34609bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 34619bd41f2cSmrg # linking a shared library. 34629bd41f2cSmrg # 34639bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 34649bd41f2cSmrg # explicitly linking system object files so we need to strip them 34659bd41f2cSmrg # from the output so that they don't get included in the library 34669bd41f2cSmrg # dependencies. 34679bd41f2cSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 34689bd41f2cSmrg ;; 34699bd41f2cSmrg *) 34709bd41f2cSmrg case `$CC -V 2>&1 | sed 5q` in 34719bd41f2cSmrg *Sun\ C*) 34729bd41f2cSmrg # Sun C++ 5.9 34739bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 34749bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 34759bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 34769bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 34779bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 34789bd41f2cSmrg 34799bd41f2cSmrg # Not sure whether something based on 34809bd41f2cSmrg # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 34819bd41f2cSmrg # would be better. 34829bd41f2cSmrg output_verbose_link_cmd='echo' 34839bd41f2cSmrg 34849bd41f2cSmrg # Archives containing C++ object files must be created using 34859bd41f2cSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 34869bd41f2cSmrg # necessary to make sure instantiated templates are included 34879bd41f2cSmrg # in the archive. 34889bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 34899bd41f2cSmrg ;; 34909bd41f2cSmrg esac 34919bd41f2cSmrg ;; 34929bd41f2cSmrg esac 34939bd41f2cSmrg ;; 34949bd41f2cSmrg lynxos*) 34959bd41f2cSmrg # FIXME: insert proper C++ library support 34969bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 34979bd41f2cSmrg ;; 34989bd41f2cSmrg m88k*) 34999bd41f2cSmrg # FIXME: insert proper C++ library support 35009bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35019bd41f2cSmrg ;; 35029bd41f2cSmrg mvs*) 35039bd41f2cSmrg case $cc_basename in 35049bd41f2cSmrg cxx*) 35059bd41f2cSmrg # FIXME: insert proper C++ library support 35069bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35079bd41f2cSmrg ;; 35089bd41f2cSmrg *) 35099bd41f2cSmrg # FIXME: insert proper C++ library support 35109bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35119bd41f2cSmrg ;; 35129bd41f2cSmrg esac 35139bd41f2cSmrg ;; 35149bd41f2cSmrg netbsd*) 35159bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 35169bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 35179bd41f2cSmrg wlarc= 35189bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 35199bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 35209bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 35219bd41f2cSmrg fi 35229bd41f2cSmrg # Workaround some broken pre-1.5 toolchains 35239bd41f2cSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 35249bd41f2cSmrg ;; 35259bd41f2cSmrg openbsd2*) 35269bd41f2cSmrg # C++ shared libraries are fairly broken 35279bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35289bd41f2cSmrg ;; 35299bd41f2cSmrg openbsd*) 35309bd41f2cSmrg if test -f /usr/libexec/ld.so; then 35319bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 35329bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 35339bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 35349bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 35359bd41f2cSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 35369bd41f2cSmrg _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' 35379bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 35389bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 35399bd41f2cSmrg fi 35409bd41f2cSmrg output_verbose_link_cmd='echo' 35419bd41f2cSmrg else 35429bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35439bd41f2cSmrg fi 35449bd41f2cSmrg ;; 35459bd41f2cSmrg osf3*) 35469bd41f2cSmrg case $cc_basename in 35479bd41f2cSmrg KCC*) 35489bd41f2cSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 35499bd41f2cSmrg 35509bd41f2cSmrg # KCC will only create a shared library if the output file 35519bd41f2cSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 35529bd41f2cSmrg # to its proper name (with version) after linking. 35539bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 35549bd41f2cSmrg 35559bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 35569bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 35579bd41f2cSmrg 35589bd41f2cSmrg # Archives containing C++ object files must be created using 35599bd41f2cSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 35609bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 35619bd41f2cSmrg 35629bd41f2cSmrg ;; 35639bd41f2cSmrg RCC*) 35649bd41f2cSmrg # Rational C++ 2.4.1 35659bd41f2cSmrg # FIXME: insert proper C++ library support 35669bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35679bd41f2cSmrg ;; 35689bd41f2cSmrg cxx*) 35699bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 35709bd41f2cSmrg _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' 35719bd41f2cSmrg 35729bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 35739bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 35749bd41f2cSmrg 35759bd41f2cSmrg # Commands to make compiler produce verbose output that lists 35769bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 35779bd41f2cSmrg # linking a shared library. 35789bd41f2cSmrg # 35799bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 35809bd41f2cSmrg # explicitly linking system object files so we need to strip them 35819bd41f2cSmrg # from the output so that they don't get included in the library 35829bd41f2cSmrg # dependencies. 35839bd41f2cSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 35849bd41f2cSmrg ;; 35859bd41f2cSmrg *) 35869bd41f2cSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 35879bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 35889bd41f2cSmrg _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' 35899bd41f2cSmrg 35909bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 35919bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 35929bd41f2cSmrg 35939bd41f2cSmrg # Commands to make compiler produce verbose output that lists 35949bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 35959bd41f2cSmrg # linking a shared library. 35969bd41f2cSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 35979bd41f2cSmrg 35989bd41f2cSmrg else 35999bd41f2cSmrg # FIXME: insert proper C++ library support 36009bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36019bd41f2cSmrg fi 36029bd41f2cSmrg ;; 36039bd41f2cSmrg esac 36049bd41f2cSmrg ;; 36059bd41f2cSmrg osf4* | osf5*) 36069bd41f2cSmrg case $cc_basename in 36079bd41f2cSmrg KCC*) 36089bd41f2cSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 36099bd41f2cSmrg 36109bd41f2cSmrg # KCC will only create a shared library if the output file 36119bd41f2cSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 36129bd41f2cSmrg # to its proper name (with version) after linking. 36139bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 36149bd41f2cSmrg 36159bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 36169bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 36179bd41f2cSmrg 36189bd41f2cSmrg # Archives containing C++ object files must be created using 36199bd41f2cSmrg # the KAI C++ compiler. 36209bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 36219bd41f2cSmrg ;; 36229bd41f2cSmrg RCC*) 36239bd41f2cSmrg # Rational C++ 2.4.1 36249bd41f2cSmrg # FIXME: insert proper C++ library support 36259bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36269bd41f2cSmrg ;; 36279bd41f2cSmrg cxx*) 36289bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 36299bd41f2cSmrg _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' 36309bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 36319bd41f2cSmrg echo "-hidden">> $lib.exp~ 36329bd41f2cSmrg $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~ 36339bd41f2cSmrg $rm $lib.exp' 36349bd41f2cSmrg 36359bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 36369bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 36379bd41f2cSmrg 36389bd41f2cSmrg # Commands to make compiler produce verbose output that lists 36399bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 36409bd41f2cSmrg # linking a shared library. 36419bd41f2cSmrg # 36429bd41f2cSmrg # There doesn't appear to be a way to prevent this compiler from 36439bd41f2cSmrg # explicitly linking system object files so we need to strip them 36449bd41f2cSmrg # from the output so that they don't get included in the library 36459bd41f2cSmrg # dependencies. 36469bd41f2cSmrg output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 36479bd41f2cSmrg ;; 36489bd41f2cSmrg *) 36499bd41f2cSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 36509bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 36519bd41f2cSmrg _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' 36529bd41f2cSmrg 36539bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 36549bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 36559bd41f2cSmrg 36569bd41f2cSmrg # Commands to make compiler produce verbose output that lists 36579bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 36589bd41f2cSmrg # linking a shared library. 36599bd41f2cSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 36609bd41f2cSmrg 36619bd41f2cSmrg else 36629bd41f2cSmrg # FIXME: insert proper C++ library support 36639bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36649bd41f2cSmrg fi 36659bd41f2cSmrg ;; 36669bd41f2cSmrg esac 36679bd41f2cSmrg ;; 36689bd41f2cSmrg psos*) 36699bd41f2cSmrg # FIXME: insert proper C++ library support 36709bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36719bd41f2cSmrg ;; 36729bd41f2cSmrg sunos4*) 36739bd41f2cSmrg case $cc_basename in 36749bd41f2cSmrg CC*) 36759bd41f2cSmrg # Sun C++ 4.x 36769bd41f2cSmrg # FIXME: insert proper C++ library support 36779bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36789bd41f2cSmrg ;; 36799bd41f2cSmrg lcc*) 36809bd41f2cSmrg # Lucid 36819bd41f2cSmrg # FIXME: insert proper C++ library support 36829bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36839bd41f2cSmrg ;; 36849bd41f2cSmrg *) 36859bd41f2cSmrg # FIXME: insert proper C++ library support 36869bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36879bd41f2cSmrg ;; 36889bd41f2cSmrg esac 36899bd41f2cSmrg ;; 36909bd41f2cSmrg solaris*) 36919bd41f2cSmrg case $cc_basename in 36929bd41f2cSmrg CC*) 36939bd41f2cSmrg # Sun C++ 4.2, 5.x and Centerline C++ 36949bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 36959bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 36969bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 36979bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 36989bd41f2cSmrg $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' 36999bd41f2cSmrg 37009bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 37019bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 37029bd41f2cSmrg case $host_os in 37039bd41f2cSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 37049bd41f2cSmrg *) 37059bd41f2cSmrg # The compiler driver will combine and reorder linker options, 37069bd41f2cSmrg # but understands `-z linker_flag'. 37079bd41f2cSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 37089bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 37099bd41f2cSmrg ;; 37109bd41f2cSmrg esac 37119bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 37129bd41f2cSmrg 37139bd41f2cSmrg output_verbose_link_cmd='echo' 37149bd41f2cSmrg 37159bd41f2cSmrg # Archives containing C++ object files must be created using 37169bd41f2cSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 37179bd41f2cSmrg # necessary to make sure instantiated templates are included 37189bd41f2cSmrg # in the archive. 37199bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 37209bd41f2cSmrg ;; 37219bd41f2cSmrg gcx*) 37229bd41f2cSmrg # Green Hills C++ Compiler 37239bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 37249bd41f2cSmrg 37259bd41f2cSmrg # The C++ compiler must be used to create the archive. 37269bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 37279bd41f2cSmrg ;; 37289bd41f2cSmrg *) 37299bd41f2cSmrg # GNU C++ compiler with Solaris linker 37309bd41f2cSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 37319bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 37329bd41f2cSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 37339bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 37349bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 37359bd41f2cSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 37369bd41f2cSmrg 37379bd41f2cSmrg # Commands to make compiler produce verbose output that lists 37389bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 37399bd41f2cSmrg # linking a shared library. 37409bd41f2cSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 37419bd41f2cSmrg else 37429bd41f2cSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 37439bd41f2cSmrg # platform. 37449bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 37459bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 37469bd41f2cSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 37479bd41f2cSmrg 37489bd41f2cSmrg # Commands to make compiler produce verbose output that lists 37499bd41f2cSmrg # what "hidden" libraries, object files and flags are used when 37509bd41f2cSmrg # linking a shared library. 37519bd41f2cSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 37529bd41f2cSmrg fi 37539bd41f2cSmrg 37549bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 37559bd41f2cSmrg case $host_os in 37569bd41f2cSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 37579bd41f2cSmrg *) 37589bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 37599bd41f2cSmrg ;; 37609bd41f2cSmrg esac 37619bd41f2cSmrg fi 37629bd41f2cSmrg ;; 37639bd41f2cSmrg esac 37649bd41f2cSmrg ;; 37659bd41f2cSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 37669bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 37679bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 37689bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 37699bd41f2cSmrg runpath_var='LD_RUN_PATH' 37709bd41f2cSmrg 37719bd41f2cSmrg case $cc_basename in 37729bd41f2cSmrg CC*) 37739bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 37749bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 37759bd41f2cSmrg ;; 37769bd41f2cSmrg *) 37779bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 37789bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 37799bd41f2cSmrg ;; 37809bd41f2cSmrg esac 37819bd41f2cSmrg ;; 37829bd41f2cSmrg sysv5* | sco3.2v5* | sco5v6*) 37839bd41f2cSmrg # Note: We can NOT use -z defs as we might desire, because we do not 37849bd41f2cSmrg # link with -lc, and that would cause any symbols used from libc to 37859bd41f2cSmrg # always be unresolved, which means just about no library would 37869bd41f2cSmrg # ever link correctly. If we're not using GNU ld we use -z text 37879bd41f2cSmrg # though, which does catch some bad symbols but isn't as heavy-handed 37889bd41f2cSmrg # as -z defs. 37899bd41f2cSmrg # For security reasons, it is highly recommended that you always 37909bd41f2cSmrg # use absolute paths for naming shared libraries, and exclude the 37919bd41f2cSmrg # DT_RUNPATH tag from executables and libraries. But doing so 37929bd41f2cSmrg # requires that you compile everything twice, which is a pain. 37939bd41f2cSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 37949bd41f2cSmrg # non-empty value in the environment. Most likely only useful for 37959bd41f2cSmrg # creating official distributions of packages. 37969bd41f2cSmrg # This is a hack until libtool officially supports absolute path 37979bd41f2cSmrg # names for shared libraries. 37989bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 37999bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 38009bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 38019bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 38029bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 38039bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 38049bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 38059bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 38069bd41f2cSmrg runpath_var='LD_RUN_PATH' 38079bd41f2cSmrg 38089bd41f2cSmrg case $cc_basename in 38099bd41f2cSmrg CC*) 38109bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 38119bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 38129bd41f2cSmrg ;; 38139bd41f2cSmrg *) 38149bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 38159bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 38169bd41f2cSmrg ;; 38179bd41f2cSmrg esac 38189bd41f2cSmrg ;; 38199bd41f2cSmrg tandem*) 38209bd41f2cSmrg case $cc_basename in 38219bd41f2cSmrg NCC*) 38229bd41f2cSmrg # NonStop-UX NCC 3.20 38239bd41f2cSmrg # FIXME: insert proper C++ library support 38249bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 38259bd41f2cSmrg ;; 38269bd41f2cSmrg *) 38279bd41f2cSmrg # FIXME: insert proper C++ library support 38289bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 38299bd41f2cSmrg ;; 38309bd41f2cSmrg esac 38319bd41f2cSmrg ;; 38329bd41f2cSmrg vxworks*) 38339bd41f2cSmrg # FIXME: insert proper C++ library support 38349bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 38359bd41f2cSmrg ;; 38369bd41f2cSmrg *) 38379bd41f2cSmrg # FIXME: insert proper C++ library support 38389bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 38399bd41f2cSmrg ;; 38409bd41f2cSmrgesac 38419bd41f2cSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 38429bd41f2cSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 38439bd41f2cSmrg 38449bd41f2cSmrg_LT_AC_TAGVAR(GCC, $1)="$GXX" 38459bd41f2cSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 38469bd41f2cSmrg 38479bd41f2cSmrgAC_LIBTOOL_POSTDEP_PREDEP($1) 38489bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 38499bd41f2cSmrgAC_LIBTOOL_PROG_CC_C_O($1) 38509bd41f2cSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 38519bd41f2cSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 38529bd41f2cSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 38539bd41f2cSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 38549bd41f2cSmrg 38559bd41f2cSmrgAC_LIBTOOL_CONFIG($1) 38569bd41f2cSmrg 38579bd41f2cSmrgAC_LANG_POP 38589bd41f2cSmrgCC=$lt_save_CC 38599bd41f2cSmrgLDCXX=$LD 38609bd41f2cSmrgLD=$lt_save_LD 38619bd41f2cSmrgGCC=$lt_save_GCC 38629bd41f2cSmrgwith_gnu_ldcxx=$with_gnu_ld 38639bd41f2cSmrgwith_gnu_ld=$lt_save_with_gnu_ld 38649bd41f2cSmrglt_cv_path_LDCXX=$lt_cv_path_LD 38659bd41f2cSmrglt_cv_path_LD=$lt_save_path_LD 38669bd41f2cSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 38679bd41f2cSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 38689bd41f2cSmrg])# AC_LIBTOOL_LANG_CXX_CONFIG 38699bd41f2cSmrg 38709bd41f2cSmrg# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 38719bd41f2cSmrg# ------------------------------------ 38729bd41f2cSmrg# Figure out "hidden" library dependencies from verbose 38739bd41f2cSmrg# compiler output when linking a shared library. 38749bd41f2cSmrg# Parse the compiler output and extract the necessary 38759bd41f2cSmrg# objects, libraries and library flags. 3876d075918cSmrgAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP], 3877d075918cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 38789bd41f2cSmrgdnl we can't use the lt_simple_compile_test_code here, 38799bd41f2cSmrgdnl because it contains code intended for an executable, 38809bd41f2cSmrgdnl not a library. It's possible we should let each 38819bd41f2cSmrgdnl tag define a new lt_????_link_test_code variable, 38829bd41f2cSmrgdnl but it's only used here... 38839bd41f2cSmrgifelse([$1],[],[cat > conftest.$ac_ext <<EOF 38849bd41f2cSmrgint a; 38859bd41f2cSmrgvoid foo (void) { a = 0; } 38869bd41f2cSmrgEOF 38879bd41f2cSmrg],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 38889bd41f2cSmrgclass Foo 38899bd41f2cSmrg{ 38909bd41f2cSmrgpublic: 38919bd41f2cSmrg Foo (void) { a = 0; } 38929bd41f2cSmrgprivate: 38939bd41f2cSmrg int a; 38949bd41f2cSmrg}; 38959bd41f2cSmrgEOF 38969bd41f2cSmrg],[$1],[F77],[cat > conftest.$ac_ext <<EOF 38979bd41f2cSmrg subroutine foo 38989bd41f2cSmrg implicit none 38999bd41f2cSmrg integer*4 a 39009bd41f2cSmrg a=0 39019bd41f2cSmrg return 39029bd41f2cSmrg end 39039bd41f2cSmrgEOF 39049bd41f2cSmrg],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 39059bd41f2cSmrgpublic class foo { 39069bd41f2cSmrg private int a; 39079bd41f2cSmrg public void bar (void) { 39089bd41f2cSmrg a = 0; 39099bd41f2cSmrg } 39109bd41f2cSmrg}; 39119bd41f2cSmrgEOF 39129bd41f2cSmrg]) 39139bd41f2cSmrgdnl Parse the compiler output and extract the necessary 39149bd41f2cSmrgdnl objects, libraries and library flags. 39159bd41f2cSmrgif AC_TRY_EVAL(ac_compile); then 39169bd41f2cSmrg # Parse the compiler output and extract the necessary 39179bd41f2cSmrg # objects, libraries and library flags. 39189bd41f2cSmrg 39199bd41f2cSmrg # Sentinel used to keep track of whether or not we are before 39209bd41f2cSmrg # the conftest object file. 39219bd41f2cSmrg pre_test_object_deps_done=no 39229bd41f2cSmrg 39239bd41f2cSmrg # The `*' in the case matches for architectures that use `case' in 39249bd41f2cSmrg # $output_verbose_cmd can trigger glob expansion during the loop 39259bd41f2cSmrg # eval without this substitution. 39269bd41f2cSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 39279bd41f2cSmrg 39289bd41f2cSmrg for p in `eval $output_verbose_link_cmd`; do 39299bd41f2cSmrg case $p in 39309bd41f2cSmrg 39319bd41f2cSmrg -L* | -R* | -l*) 39329bd41f2cSmrg # Some compilers place space between "-{L,R}" and the path. 39339bd41f2cSmrg # Remove the space. 39349bd41f2cSmrg if test $p = "-L" \ 39359bd41f2cSmrg || test $p = "-R"; then 39369bd41f2cSmrg prev=$p 39379bd41f2cSmrg continue 39389bd41f2cSmrg else 39399bd41f2cSmrg prev= 39409bd41f2cSmrg fi 39419bd41f2cSmrg 39429bd41f2cSmrg if test "$pre_test_object_deps_done" = no; then 39439bd41f2cSmrg case $p in 39449bd41f2cSmrg -L* | -R*) 39459bd41f2cSmrg # Internal compiler library paths should come after those 39469bd41f2cSmrg # provided the user. The postdeps already come after the 39479bd41f2cSmrg # user supplied libs so there is no need to process them. 39489bd41f2cSmrg if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 39499bd41f2cSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 39509bd41f2cSmrg else 39519bd41f2cSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 39529bd41f2cSmrg fi 39539bd41f2cSmrg ;; 39549bd41f2cSmrg # The "-l" case would never come before the object being 39559bd41f2cSmrg # linked, so don't bother handling this case. 39569bd41f2cSmrg esac 39579bd41f2cSmrg else 39589bd41f2cSmrg if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 39599bd41f2cSmrg _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 39609bd41f2cSmrg else 39619bd41f2cSmrg _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 39629bd41f2cSmrg fi 39639bd41f2cSmrg fi 39649bd41f2cSmrg ;; 39659bd41f2cSmrg 39669bd41f2cSmrg *.$objext) 39679bd41f2cSmrg # This assumes that the test object file only shows up 39689bd41f2cSmrg # once in the compiler output. 39699bd41f2cSmrg if test "$p" = "conftest.$objext"; then 39709bd41f2cSmrg pre_test_object_deps_done=yes 39719bd41f2cSmrg continue 39729bd41f2cSmrg fi 39739bd41f2cSmrg 39749bd41f2cSmrg if test "$pre_test_object_deps_done" = no; then 39759bd41f2cSmrg if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 39769bd41f2cSmrg _LT_AC_TAGVAR(predep_objects, $1)="$p" 39779bd41f2cSmrg else 39789bd41f2cSmrg _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 39799bd41f2cSmrg fi 39809bd41f2cSmrg else 39819bd41f2cSmrg if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 39829bd41f2cSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$p" 39839bd41f2cSmrg else 39849bd41f2cSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 39859bd41f2cSmrg fi 39869bd41f2cSmrg fi 39879bd41f2cSmrg ;; 39889bd41f2cSmrg 39899bd41f2cSmrg *) ;; # Ignore the rest. 39909bd41f2cSmrg 39919bd41f2cSmrg esac 39929bd41f2cSmrg done 39939bd41f2cSmrg 39949bd41f2cSmrg # Clean up. 39959bd41f2cSmrg rm -f a.out a.exe 39969bd41f2cSmrgelse 39979bd41f2cSmrg echo "libtool.m4: error: problem compiling $1 test program" 39989bd41f2cSmrgfi 39999bd41f2cSmrg 40009bd41f2cSmrg$rm -f confest.$objext 40019bd41f2cSmrg 4002d075918cSmrg_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)= 4003d075918cSmrgif test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 4004d075918cSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 4005d075918cSmrgfi 4006d075918cSmrg 40079bd41f2cSmrg# PORTME: override above test on systems where it is broken 40089bd41f2cSmrgifelse([$1],[CXX], 40099bd41f2cSmrg[case $host_os in 40109bd41f2cSmrginterix[[3-9]]*) 40119bd41f2cSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 40129bd41f2cSmrg # hack all around it, let's just trust "g++" to DTRT. 40139bd41f2cSmrg _LT_AC_TAGVAR(predep_objects,$1)= 40149bd41f2cSmrg _LT_AC_TAGVAR(postdep_objects,$1)= 40159bd41f2cSmrg _LT_AC_TAGVAR(postdeps,$1)= 40169bd41f2cSmrg ;; 40179bd41f2cSmrg 40189bd41f2cSmrglinux*) 40199bd41f2cSmrg case `$CC -V 2>&1 | sed 5q` in 40209bd41f2cSmrg *Sun\ C*) 40219bd41f2cSmrg # Sun C++ 5.9 40229bd41f2cSmrg # 40239bd41f2cSmrg # The more standards-conforming stlport4 library is 40249bd41f2cSmrg # incompatible with the Cstd library. Avoid specifying 40259bd41f2cSmrg # it if it's in CXXFLAGS. Ignore libCrun as 40269bd41f2cSmrg # -library=stlport4 depends on it. 40279bd41f2cSmrg case " $CXX $CXXFLAGS " in 40289bd41f2cSmrg *" -library=stlport4 "*) 40299bd41f2cSmrg solaris_use_stlport4=yes 40309bd41f2cSmrg ;; 40319bd41f2cSmrg esac 40329bd41f2cSmrg if test "$solaris_use_stlport4" != yes; then 40339bd41f2cSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 40349bd41f2cSmrg fi 40359bd41f2cSmrg ;; 40369bd41f2cSmrg esac 40379bd41f2cSmrg ;; 40389bd41f2cSmrg 40399bd41f2cSmrgsolaris*) 40409bd41f2cSmrg case $cc_basename in 40419bd41f2cSmrg CC*) 40429bd41f2cSmrg # The more standards-conforming stlport4 library is 40439bd41f2cSmrg # incompatible with the Cstd library. Avoid specifying 40449bd41f2cSmrg # it if it's in CXXFLAGS. Ignore libCrun as 40459bd41f2cSmrg # -library=stlport4 depends on it. 40469bd41f2cSmrg case " $CXX $CXXFLAGS " in 40479bd41f2cSmrg *" -library=stlport4 "*) 40489bd41f2cSmrg solaris_use_stlport4=yes 40499bd41f2cSmrg ;; 40509bd41f2cSmrg esac 40519bd41f2cSmrg 40529bd41f2cSmrg # Adding this requires a known-good setup of shared libraries for 40539bd41f2cSmrg # Sun compiler versions before 5.6, else PIC objects from an old 40549bd41f2cSmrg # archive will be linked into the output, leading to subtle bugs. 40559bd41f2cSmrg if test "$solaris_use_stlport4" != yes; then 40569bd41f2cSmrg _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' 40579bd41f2cSmrg fi 40589bd41f2cSmrg ;; 40599bd41f2cSmrg esac 40609bd41f2cSmrg ;; 40619bd41f2cSmrgesac 40629bd41f2cSmrg]) 40639bd41f2cSmrgcase " $_LT_AC_TAGVAR(postdeps, $1) " in 40649bd41f2cSmrg*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 40659bd41f2cSmrgesac 40669bd41f2cSmrg])# AC_LIBTOOL_POSTDEP_PREDEP 40679bd41f2cSmrg 40689bd41f2cSmrg# AC_LIBTOOL_LANG_F77_CONFIG 40699bd41f2cSmrg# -------------------------- 40709bd41f2cSmrg# Ensure that the configuration vars for the C compiler are 40719bd41f2cSmrg# suitably defined. Those variables are subsequently used by 40729bd41f2cSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 40739bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 40749bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_F77_CONFIG], 40759bd41f2cSmrg[AC_REQUIRE([AC_PROG_F77]) 40769bd41f2cSmrgAC_LANG_PUSH(Fortran 77) 40779bd41f2cSmrg 40789bd41f2cSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 40799bd41f2cSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 40809bd41f2cSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 40819bd41f2cSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 40829bd41f2cSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 40839bd41f2cSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 40849bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 40859bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 40869bd41f2cSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 40879bd41f2cSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 40889bd41f2cSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 40899bd41f2cSmrg_LT_AC_TAGVAR(module_cmds, $1)= 40909bd41f2cSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 40919bd41f2cSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 40929bd41f2cSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 40939bd41f2cSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 40949bd41f2cSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 40959bd41f2cSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 40969bd41f2cSmrg 40979bd41f2cSmrg# Source file extension for f77 test sources. 40989bd41f2cSmrgac_ext=f 40999bd41f2cSmrg 41009bd41f2cSmrg# Object file extension for compiled f77 test sources. 41019bd41f2cSmrgobjext=o 41029bd41f2cSmrg_LT_AC_TAGVAR(objext, $1)=$objext 41039bd41f2cSmrg 41049bd41f2cSmrg# Code to be used in simple compile tests 41059bd41f2cSmrglt_simple_compile_test_code="\ 41069bd41f2cSmrg subroutine t 41079bd41f2cSmrg return 41089bd41f2cSmrg end 41099bd41f2cSmrg" 41109bd41f2cSmrg 41119bd41f2cSmrg# Code to be used in simple link tests 41129bd41f2cSmrglt_simple_link_test_code="\ 41139bd41f2cSmrg program t 41149bd41f2cSmrg end 41159bd41f2cSmrg" 41169bd41f2cSmrg 41179bd41f2cSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 41189bd41f2cSmrg_LT_AC_SYS_COMPILER 41199bd41f2cSmrg 41209bd41f2cSmrg# save warnings/boilerplate of simple test code 41219bd41f2cSmrg_LT_COMPILER_BOILERPLATE 41229bd41f2cSmrg_LT_LINKER_BOILERPLATE 41239bd41f2cSmrg 41249bd41f2cSmrg# Allow CC to be a program name with arguments. 41259bd41f2cSmrglt_save_CC="$CC" 41269bd41f2cSmrgCC=${F77-"f77"} 41279bd41f2cSmrgcompiler=$CC 41289bd41f2cSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 41299bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 41309bd41f2cSmrg 41319bd41f2cSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 41329bd41f2cSmrgAC_MSG_RESULT([$can_build_shared]) 41339bd41f2cSmrg 41349bd41f2cSmrgAC_MSG_CHECKING([whether to build shared libraries]) 41359bd41f2cSmrgtest "$can_build_shared" = "no" && enable_shared=no 41369bd41f2cSmrg 41379bd41f2cSmrg# On AIX, shared libraries and static libraries use the same namespace, and 41389bd41f2cSmrg# are all built from PIC. 41399bd41f2cSmrgcase $host_os in 41409bd41f2cSmrgaix3*) 41419bd41f2cSmrg test "$enable_shared" = yes && enable_static=no 41429bd41f2cSmrg if test -n "$RANLIB"; then 41439bd41f2cSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 41449bd41f2cSmrg postinstall_cmds='$RANLIB $lib' 41459bd41f2cSmrg fi 41469bd41f2cSmrg ;; 4147d075918cSmrgaix[[4-9]]*) 41489bd41f2cSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 41499bd41f2cSmrg test "$enable_shared" = yes && enable_static=no 41509bd41f2cSmrg fi 41519bd41f2cSmrg ;; 41529bd41f2cSmrgesac 41539bd41f2cSmrgAC_MSG_RESULT([$enable_shared]) 41549bd41f2cSmrg 41559bd41f2cSmrgAC_MSG_CHECKING([whether to build static libraries]) 41569bd41f2cSmrg# Make sure either enable_shared or enable_static is yes. 41579bd41f2cSmrgtest "$enable_shared" = yes || enable_static=yes 41589bd41f2cSmrgAC_MSG_RESULT([$enable_static]) 41599bd41f2cSmrg 41609bd41f2cSmrg_LT_AC_TAGVAR(GCC, $1)="$G77" 41619bd41f2cSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 41629bd41f2cSmrg 41639bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 41649bd41f2cSmrgAC_LIBTOOL_PROG_CC_C_O($1) 41659bd41f2cSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 41669bd41f2cSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 41679bd41f2cSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 41689bd41f2cSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 41699bd41f2cSmrg 41709bd41f2cSmrgAC_LIBTOOL_CONFIG($1) 41719bd41f2cSmrg 41729bd41f2cSmrgAC_LANG_POP 41739bd41f2cSmrgCC="$lt_save_CC" 41749bd41f2cSmrg])# AC_LIBTOOL_LANG_F77_CONFIG 41759bd41f2cSmrg 41769bd41f2cSmrg 41779bd41f2cSmrg# AC_LIBTOOL_LANG_GCJ_CONFIG 41789bd41f2cSmrg# -------------------------- 41799bd41f2cSmrg# Ensure that the configuration vars for the C compiler are 41809bd41f2cSmrg# suitably defined. Those variables are subsequently used by 41819bd41f2cSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 41829bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 41839bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 41849bd41f2cSmrg[AC_LANG_SAVE 41859bd41f2cSmrg 41869bd41f2cSmrg# Source file extension for Java test sources. 41879bd41f2cSmrgac_ext=java 41889bd41f2cSmrg 41899bd41f2cSmrg# Object file extension for compiled Java test sources. 41909bd41f2cSmrgobjext=o 41919bd41f2cSmrg_LT_AC_TAGVAR(objext, $1)=$objext 41929bd41f2cSmrg 41939bd41f2cSmrg# Code to be used in simple compile tests 41949bd41f2cSmrglt_simple_compile_test_code="class foo {}" 41959bd41f2cSmrg 41969bd41f2cSmrg# Code to be used in simple link tests 41979bd41f2cSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' 41989bd41f2cSmrg 41999bd41f2cSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 42009bd41f2cSmrg_LT_AC_SYS_COMPILER 42019bd41f2cSmrg 42029bd41f2cSmrg# save warnings/boilerplate of simple test code 42039bd41f2cSmrg_LT_COMPILER_BOILERPLATE 42049bd41f2cSmrg_LT_LINKER_BOILERPLATE 42059bd41f2cSmrg 42069bd41f2cSmrg# Allow CC to be a program name with arguments. 42079bd41f2cSmrglt_save_CC="$CC" 42089bd41f2cSmrgCC=${GCJ-"gcj"} 42099bd41f2cSmrgcompiler=$CC 42109bd41f2cSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 42119bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 42129bd41f2cSmrg 42139bd41f2cSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 42149bd41f2cSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 42159bd41f2cSmrg 42169bd41f2cSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 42179bd41f2cSmrg 42189bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 42199bd41f2cSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 42209bd41f2cSmrgAC_LIBTOOL_PROG_CC_C_O($1) 42219bd41f2cSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 42229bd41f2cSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 42239bd41f2cSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 42249bd41f2cSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 42259bd41f2cSmrg 42269bd41f2cSmrgAC_LIBTOOL_CONFIG($1) 42279bd41f2cSmrg 42289bd41f2cSmrgAC_LANG_RESTORE 42299bd41f2cSmrgCC="$lt_save_CC" 42309bd41f2cSmrg])# AC_LIBTOOL_LANG_GCJ_CONFIG 42319bd41f2cSmrg 42329bd41f2cSmrg 42339bd41f2cSmrg# AC_LIBTOOL_LANG_RC_CONFIG 42349bd41f2cSmrg# ------------------------- 42359bd41f2cSmrg# Ensure that the configuration vars for the Windows resource compiler are 42369bd41f2cSmrg# suitably defined. Those variables are subsequently used by 42379bd41f2cSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 42389bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 42399bd41f2cSmrgAC_DEFUN([_LT_AC_LANG_RC_CONFIG], 42409bd41f2cSmrg[AC_LANG_SAVE 42419bd41f2cSmrg 42429bd41f2cSmrg# Source file extension for RC test sources. 42439bd41f2cSmrgac_ext=rc 42449bd41f2cSmrg 42459bd41f2cSmrg# Object file extension for compiled RC test sources. 42469bd41f2cSmrgobjext=o 42479bd41f2cSmrg_LT_AC_TAGVAR(objext, $1)=$objext 42489bd41f2cSmrg 42499bd41f2cSmrg# Code to be used in simple compile tests 42509bd41f2cSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' 42519bd41f2cSmrg 42529bd41f2cSmrg# Code to be used in simple link tests 42539bd41f2cSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 42549bd41f2cSmrg 42559bd41f2cSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 42569bd41f2cSmrg_LT_AC_SYS_COMPILER 42579bd41f2cSmrg 42589bd41f2cSmrg# save warnings/boilerplate of simple test code 42599bd41f2cSmrg_LT_COMPILER_BOILERPLATE 42609bd41f2cSmrg_LT_LINKER_BOILERPLATE 42619bd41f2cSmrg 42629bd41f2cSmrg# Allow CC to be a program name with arguments. 42639bd41f2cSmrglt_save_CC="$CC" 42649bd41f2cSmrgCC=${RC-"windres"} 42659bd41f2cSmrgcompiler=$CC 42669bd41f2cSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 42679bd41f2cSmrg_LT_CC_BASENAME([$compiler]) 42689bd41f2cSmrg_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 42699bd41f2cSmrg 42709bd41f2cSmrgAC_LIBTOOL_CONFIG($1) 42719bd41f2cSmrg 42729bd41f2cSmrgAC_LANG_RESTORE 42739bd41f2cSmrgCC="$lt_save_CC" 42749bd41f2cSmrg])# AC_LIBTOOL_LANG_RC_CONFIG 42759bd41f2cSmrg 42769bd41f2cSmrg 42779bd41f2cSmrg# AC_LIBTOOL_CONFIG([TAGNAME]) 42789bd41f2cSmrg# ---------------------------- 42799bd41f2cSmrg# If TAGNAME is not passed, then create an initial libtool script 42809bd41f2cSmrg# with a default configuration from the untagged config vars. Otherwise 42819bd41f2cSmrg# add code to config.status for appending the configuration named by 42829bd41f2cSmrg# TAGNAME from the matching tagged config vars. 42839bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_CONFIG], 42849bd41f2cSmrg[# The else clause should only fire when bootstrapping the 42859bd41f2cSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 42869bd41f2cSmrg# with your package, and you will get complaints that there are 42879bd41f2cSmrg# no rules to generate ltmain.sh. 42889bd41f2cSmrgif test -f "$ltmain"; then 42899bd41f2cSmrg # See if we are running on zsh, and set the options which allow our commands through 42909bd41f2cSmrg # without removal of \ escapes. 42919bd41f2cSmrg if test -n "${ZSH_VERSION+set}" ; then 42929bd41f2cSmrg setopt NO_GLOB_SUBST 42939bd41f2cSmrg fi 42949bd41f2cSmrg # Now quote all the things that may contain metacharacters while being 42959bd41f2cSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 42969bd41f2cSmrg # variables and quote the copies for generation of the libtool script. 42979bd41f2cSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 42989bd41f2cSmrg SED SHELL STRIP \ 42999bd41f2cSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 43009bd41f2cSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 43019bd41f2cSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 43029bd41f2cSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 43039bd41f2cSmrg lt_cv_sys_global_symbol_to_c_name_address \ 43049bd41f2cSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 43059bd41f2cSmrg old_postinstall_cmds old_postuninstall_cmds \ 43069bd41f2cSmrg _LT_AC_TAGVAR(compiler, $1) \ 43079bd41f2cSmrg _LT_AC_TAGVAR(CC, $1) \ 43089bd41f2cSmrg _LT_AC_TAGVAR(LD, $1) \ 43099bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 43109bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 43119bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 43129bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 43139bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 43149bd41f2cSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 43159bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 43169bd41f2cSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 43179bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) \ 43189bd41f2cSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 43199bd41f2cSmrg _LT_AC_TAGVAR(predep_objects, $1) \ 43209bd41f2cSmrg _LT_AC_TAGVAR(postdep_objects, $1) \ 43219bd41f2cSmrg _LT_AC_TAGVAR(predeps, $1) \ 43229bd41f2cSmrg _LT_AC_TAGVAR(postdeps, $1) \ 43239bd41f2cSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 4324d075918cSmrg _LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \ 43259bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1) \ 43269bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 43279bd41f2cSmrg _LT_AC_TAGVAR(postinstall_cmds, $1) \ 43289bd41f2cSmrg _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 43299bd41f2cSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 43309bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 43319bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1) \ 43329bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 43339bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 43349bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 43359bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 43369bd41f2cSmrg _LT_AC_TAGVAR(hardcode_automatic, $1) \ 43379bd41f2cSmrg _LT_AC_TAGVAR(module_cmds, $1) \ 43389bd41f2cSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 43399bd41f2cSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 43409bd41f2cSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1) \ 43419bd41f2cSmrg _LT_AC_TAGVAR(exclude_expsyms, $1) \ 43429bd41f2cSmrg _LT_AC_TAGVAR(include_expsyms, $1); do 43439bd41f2cSmrg 43449bd41f2cSmrg case $var in 43459bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 43469bd41f2cSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 43479bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1) | \ 43489bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 43499bd41f2cSmrg _LT_AC_TAGVAR(module_cmds, $1) | \ 43509bd41f2cSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 43519bd41f2cSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 43529bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 43539bd41f2cSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 43549bd41f2cSmrg postinstall_cmds | postuninstall_cmds | \ 43559bd41f2cSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 43569bd41f2cSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 43579bd41f2cSmrg # Double-quote double-evaled strings. 43589bd41f2cSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 43599bd41f2cSmrg ;; 43609bd41f2cSmrg *) 43619bd41f2cSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 43629bd41f2cSmrg ;; 43639bd41f2cSmrg esac 43649bd41f2cSmrg done 43659bd41f2cSmrg 43669bd41f2cSmrg case $lt_echo in 43679bd41f2cSmrg *'\[$]0 --fallback-echo"') 43689bd41f2cSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 43699bd41f2cSmrg ;; 43709bd41f2cSmrg esac 43719bd41f2cSmrg 43729bd41f2cSmrgifelse([$1], [], 43739bd41f2cSmrg [cfgfile="${ofile}T" 43749bd41f2cSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 43759bd41f2cSmrg $rm -f "$cfgfile" 43769bd41f2cSmrg AC_MSG_NOTICE([creating $ofile])], 43779bd41f2cSmrg [cfgfile="$ofile"]) 43789bd41f2cSmrg 43799bd41f2cSmrg cat <<__EOF__ >> "$cfgfile" 43809bd41f2cSmrgifelse([$1], [], 43819bd41f2cSmrg[#! $SHELL 43829bd41f2cSmrg 43839bd41f2cSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 43849bd41f2cSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 43859bd41f2cSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 43869bd41f2cSmrg# 4387d075918cSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 43889bd41f2cSmrg# Free Software Foundation, Inc. 43899bd41f2cSmrg# 43909bd41f2cSmrg# This file is part of GNU Libtool: 43919bd41f2cSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 43929bd41f2cSmrg# 43939bd41f2cSmrg# This program is free software; you can redistribute it and/or modify 43949bd41f2cSmrg# it under the terms of the GNU General Public License as published by 43959bd41f2cSmrg# the Free Software Foundation; either version 2 of the License, or 43969bd41f2cSmrg# (at your option) any later version. 43979bd41f2cSmrg# 43989bd41f2cSmrg# This program is distributed in the hope that it will be useful, but 43999bd41f2cSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 44009bd41f2cSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 44019bd41f2cSmrg# General Public License for more details. 44029bd41f2cSmrg# 44039bd41f2cSmrg# You should have received a copy of the GNU General Public License 44049bd41f2cSmrg# along with this program; if not, write to the Free Software 44059bd41f2cSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 44069bd41f2cSmrg# 44079bd41f2cSmrg# As a special exception to the GNU General Public License, if you 44089bd41f2cSmrg# distribute this file as part of a program that contains a 44099bd41f2cSmrg# configuration script generated by Autoconf, you may include it under 44109bd41f2cSmrg# the same distribution terms that you use for the rest of that program. 44119bd41f2cSmrg 44129bd41f2cSmrg# A sed program that does not truncate output. 44139bd41f2cSmrgSED=$lt_SED 44149bd41f2cSmrg 44159bd41f2cSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 44169bd41f2cSmrgXsed="$SED -e 1s/^X//" 44179bd41f2cSmrg 44189bd41f2cSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 44199bd41f2cSmrg# if CDPATH is set. 44209bd41f2cSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 44219bd41f2cSmrg 44229bd41f2cSmrg# The names of the tagged configurations supported by this script. 44239bd41f2cSmrgavailable_tags= 44249bd41f2cSmrg 44259bd41f2cSmrg# ### BEGIN LIBTOOL CONFIG], 44269bd41f2cSmrg[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 44279bd41f2cSmrg 44289bd41f2cSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 44299bd41f2cSmrg 44309bd41f2cSmrg# Shell to use when invoking shell scripts. 44319bd41f2cSmrgSHELL=$lt_SHELL 44329bd41f2cSmrg 44339bd41f2cSmrg# Whether or not to build shared libraries. 44349bd41f2cSmrgbuild_libtool_libs=$enable_shared 44359bd41f2cSmrg 44369bd41f2cSmrg# Whether or not to build static libraries. 44379bd41f2cSmrgbuild_old_libs=$enable_static 44389bd41f2cSmrg 44399bd41f2cSmrg# Whether or not to add -lc for building shared libraries. 44409bd41f2cSmrgbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 44419bd41f2cSmrg 44429bd41f2cSmrg# Whether or not to disallow shared libs when runtime libs are static 44439bd41f2cSmrgallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 44449bd41f2cSmrg 44459bd41f2cSmrg# Whether or not to optimize for fast installation. 44469bd41f2cSmrgfast_install=$enable_fast_install 44479bd41f2cSmrg 44489bd41f2cSmrg# The host system. 44499bd41f2cSmrghost_alias=$host_alias 44509bd41f2cSmrghost=$host 44519bd41f2cSmrghost_os=$host_os 44529bd41f2cSmrg 44539bd41f2cSmrg# The build system. 44549bd41f2cSmrgbuild_alias=$build_alias 44559bd41f2cSmrgbuild=$build 44569bd41f2cSmrgbuild_os=$build_os 44579bd41f2cSmrg 44589bd41f2cSmrg# An echo program that does not interpret backslashes. 44599bd41f2cSmrgecho=$lt_echo 44609bd41f2cSmrg 44619bd41f2cSmrg# The archiver. 44629bd41f2cSmrgAR=$lt_AR 44639bd41f2cSmrgAR_FLAGS=$lt_AR_FLAGS 44649bd41f2cSmrg 44659bd41f2cSmrg# A C compiler. 44669bd41f2cSmrgLTCC=$lt_LTCC 44679bd41f2cSmrg 44689bd41f2cSmrg# LTCC compiler flags. 44699bd41f2cSmrgLTCFLAGS=$lt_LTCFLAGS 44709bd41f2cSmrg 44719bd41f2cSmrg# A language-specific compiler. 44729bd41f2cSmrgCC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 44739bd41f2cSmrg 44749bd41f2cSmrg# Is the compiler the GNU C compiler? 44759bd41f2cSmrgwith_gcc=$_LT_AC_TAGVAR(GCC, $1) 44769bd41f2cSmrg 44779bd41f2cSmrg# An ERE matcher. 44789bd41f2cSmrgEGREP=$lt_EGREP 44799bd41f2cSmrg 44809bd41f2cSmrg# The linker used to build libraries. 44819bd41f2cSmrgLD=$lt_[]_LT_AC_TAGVAR(LD, $1) 44829bd41f2cSmrg 44839bd41f2cSmrg# Whether we need hard or soft links. 44849bd41f2cSmrgLN_S=$lt_LN_S 44859bd41f2cSmrg 44869bd41f2cSmrg# A BSD-compatible nm program. 44879bd41f2cSmrgNM=$lt_NM 44889bd41f2cSmrg 44899bd41f2cSmrg# A symbol stripping program 44909bd41f2cSmrgSTRIP=$lt_STRIP 44919bd41f2cSmrg 44929bd41f2cSmrg# Used to examine libraries when file_magic_cmd begins "file" 44939bd41f2cSmrgMAGIC_CMD=$MAGIC_CMD 44949bd41f2cSmrg 44959bd41f2cSmrg# Used on cygwin: DLL creation program. 44969bd41f2cSmrgDLLTOOL="$DLLTOOL" 44979bd41f2cSmrg 44989bd41f2cSmrg# Used on cygwin: object dumper. 44999bd41f2cSmrgOBJDUMP="$OBJDUMP" 45009bd41f2cSmrg 45019bd41f2cSmrg# Used on cygwin: assembler. 45029bd41f2cSmrgAS="$AS" 45039bd41f2cSmrg 45049bd41f2cSmrg# The name of the directory that contains temporary libtool files. 45059bd41f2cSmrgobjdir=$objdir 45069bd41f2cSmrg 45079bd41f2cSmrg# How to create reloadable object files. 45089bd41f2cSmrgreload_flag=$lt_reload_flag 45099bd41f2cSmrgreload_cmds=$lt_reload_cmds 45109bd41f2cSmrg 45119bd41f2cSmrg# How to pass a linker flag through the compiler. 45129bd41f2cSmrgwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 45139bd41f2cSmrg 45149bd41f2cSmrg# Object file suffix (normally "o"). 45159bd41f2cSmrgobjext="$ac_objext" 45169bd41f2cSmrg 45179bd41f2cSmrg# Old archive suffix (normally "a"). 45189bd41f2cSmrglibext="$libext" 45199bd41f2cSmrg 45209bd41f2cSmrg# Shared library suffix (normally ".so"). 45219bd41f2cSmrgshrext_cmds='$shrext_cmds' 45229bd41f2cSmrg 45239bd41f2cSmrg# Executable file suffix (normally ""). 45249bd41f2cSmrgexeext="$exeext" 45259bd41f2cSmrg 45269bd41f2cSmrg# Additional compiler flags for building library objects. 45279bd41f2cSmrgpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 45289bd41f2cSmrgpic_mode=$pic_mode 45299bd41f2cSmrg 45309bd41f2cSmrg# What is the maximum length of a command? 45319bd41f2cSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 45329bd41f2cSmrg 45339bd41f2cSmrg# Does compiler simultaneously support -c and -o options? 45349bd41f2cSmrgcompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 45359bd41f2cSmrg 45369bd41f2cSmrg# Must we lock files when doing compilation? 45379bd41f2cSmrgneed_locks=$lt_need_locks 45389bd41f2cSmrg 45399bd41f2cSmrg# Do we need the lib prefix for modules? 45409bd41f2cSmrgneed_lib_prefix=$need_lib_prefix 45419bd41f2cSmrg 45429bd41f2cSmrg# Do we need a version for libraries? 45439bd41f2cSmrgneed_version=$need_version 45449bd41f2cSmrg 45459bd41f2cSmrg# Whether dlopen is supported. 45469bd41f2cSmrgdlopen_support=$enable_dlopen 45479bd41f2cSmrg 45489bd41f2cSmrg# Whether dlopen of programs is supported. 45499bd41f2cSmrgdlopen_self=$enable_dlopen_self 45509bd41f2cSmrg 45519bd41f2cSmrg# Whether dlopen of statically linked programs is supported. 45529bd41f2cSmrgdlopen_self_static=$enable_dlopen_self_static 45539bd41f2cSmrg 45549bd41f2cSmrg# Compiler flag to prevent dynamic linking. 45559bd41f2cSmrglink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 45569bd41f2cSmrg 45579bd41f2cSmrg# Compiler flag to turn off builtin functions. 45589bd41f2cSmrgno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 45599bd41f2cSmrg 45609bd41f2cSmrg# Compiler flag to allow reflexive dlopens. 45619bd41f2cSmrgexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 45629bd41f2cSmrg 45639bd41f2cSmrg# Compiler flag to generate shared objects directly from archives. 45649bd41f2cSmrgwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 45659bd41f2cSmrg 45669bd41f2cSmrg# Compiler flag to generate thread-safe objects. 45679bd41f2cSmrgthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 45689bd41f2cSmrg 45699bd41f2cSmrg# Library versioning type. 45709bd41f2cSmrgversion_type=$version_type 45719bd41f2cSmrg 45729bd41f2cSmrg# Format of library name prefix. 45739bd41f2cSmrglibname_spec=$lt_libname_spec 45749bd41f2cSmrg 45759bd41f2cSmrg# List of archive names. First name is the real one, the rest are links. 45769bd41f2cSmrg# The last name is the one that the linker finds with -lNAME. 45779bd41f2cSmrglibrary_names_spec=$lt_library_names_spec 45789bd41f2cSmrg 45799bd41f2cSmrg# The coded name of the library, if different from the real name. 45809bd41f2cSmrgsoname_spec=$lt_soname_spec 45819bd41f2cSmrg 45829bd41f2cSmrg# Commands used to build and install an old-style archive. 45839bd41f2cSmrgRANLIB=$lt_RANLIB 45849bd41f2cSmrgold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 45859bd41f2cSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 45869bd41f2cSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 45879bd41f2cSmrg 45889bd41f2cSmrg# Create an old-style archive from a shared archive. 45899bd41f2cSmrgold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 45909bd41f2cSmrg 45919bd41f2cSmrg# Create a temporary old-style archive to link instead of a shared archive. 45929bd41f2cSmrgold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 45939bd41f2cSmrg 45949bd41f2cSmrg# Commands used to build and install a shared archive. 45959bd41f2cSmrgarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 45969bd41f2cSmrgarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 45979bd41f2cSmrgpostinstall_cmds=$lt_postinstall_cmds 45989bd41f2cSmrgpostuninstall_cmds=$lt_postuninstall_cmds 45999bd41f2cSmrg 46009bd41f2cSmrg# Commands used to build a loadable module (assumed same as above if empty) 46019bd41f2cSmrgmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 46029bd41f2cSmrgmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 46039bd41f2cSmrg 46049bd41f2cSmrg# Commands to strip libraries. 46059bd41f2cSmrgold_striplib=$lt_old_striplib 46069bd41f2cSmrgstriplib=$lt_striplib 46079bd41f2cSmrg 46089bd41f2cSmrg# Dependencies to place before the objects being linked to create a 46099bd41f2cSmrg# shared library. 46109bd41f2cSmrgpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 46119bd41f2cSmrg 46129bd41f2cSmrg# Dependencies to place after the objects being linked to create a 46139bd41f2cSmrg# shared library. 46149bd41f2cSmrgpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 46159bd41f2cSmrg 46169bd41f2cSmrg# Dependencies to place before the objects being linked to create a 46179bd41f2cSmrg# shared library. 46189bd41f2cSmrgpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 46199bd41f2cSmrg 46209bd41f2cSmrg# Dependencies to place after the objects being linked to create a 46219bd41f2cSmrg# shared library. 46229bd41f2cSmrgpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 46239bd41f2cSmrg 4624d075918cSmrg# The directories searched by this compiler when creating a shared 4625d075918cSmrg# library 4626d075918cSmrgcompiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) 4627d075918cSmrg 46289bd41f2cSmrg# The library search path used internally by the compiler when linking 46299bd41f2cSmrg# a shared library. 46309bd41f2cSmrgcompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 46319bd41f2cSmrg 46329bd41f2cSmrg# Method to check whether dependent libraries are shared objects. 46339bd41f2cSmrgdeplibs_check_method=$lt_deplibs_check_method 46349bd41f2cSmrg 46359bd41f2cSmrg# Command to use when deplibs_check_method == file_magic. 46369bd41f2cSmrgfile_magic_cmd=$lt_file_magic_cmd 46379bd41f2cSmrg 46389bd41f2cSmrg# Flag that allows shared libraries with undefined symbols to be built. 46399bd41f2cSmrgallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 46409bd41f2cSmrg 46419bd41f2cSmrg# Flag that forces no undefined symbols. 46429bd41f2cSmrgno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 46439bd41f2cSmrg 46449bd41f2cSmrg# Commands used to finish a libtool library installation in a directory. 46459bd41f2cSmrgfinish_cmds=$lt_finish_cmds 46469bd41f2cSmrg 46479bd41f2cSmrg# Same as above, but a single script fragment to be evaled but not shown. 46489bd41f2cSmrgfinish_eval=$lt_finish_eval 46499bd41f2cSmrg 46509bd41f2cSmrg# Take the output of nm and produce a listing of raw symbols and C names. 46519bd41f2cSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 46529bd41f2cSmrg 46539bd41f2cSmrg# Transform the output of nm in a proper C declaration 46549bd41f2cSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 46559bd41f2cSmrg 46569bd41f2cSmrg# Transform the output of nm in a C name address pair 46579bd41f2cSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 46589bd41f2cSmrg 46599bd41f2cSmrg# This is the shared library runtime path variable. 46609bd41f2cSmrgrunpath_var=$runpath_var 46619bd41f2cSmrg 46629bd41f2cSmrg# This is the shared library path variable. 46639bd41f2cSmrgshlibpath_var=$shlibpath_var 46649bd41f2cSmrg 46659bd41f2cSmrg# Is shlibpath searched before the hard-coded library search path? 46669bd41f2cSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 46679bd41f2cSmrg 46689bd41f2cSmrg# How to hardcode a shared library path into an executable. 46699bd41f2cSmrghardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 46709bd41f2cSmrg 46719bd41f2cSmrg# Whether we should hardcode library paths into libraries. 46729bd41f2cSmrghardcode_into_libs=$hardcode_into_libs 46739bd41f2cSmrg 46749bd41f2cSmrg# Flag to hardcode \$libdir into a binary during linking. 46759bd41f2cSmrg# This must work even if \$libdir does not exist. 46769bd41f2cSmrghardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 46779bd41f2cSmrg 46789bd41f2cSmrg# If ld is used when linking, flag to hardcode \$libdir into 46799bd41f2cSmrg# a binary during linking. This must work even if \$libdir does 46809bd41f2cSmrg# not exist. 46819bd41f2cSmrghardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 46829bd41f2cSmrg 46839bd41f2cSmrg# Whether we need a single -rpath flag with a separated argument. 46849bd41f2cSmrghardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 46859bd41f2cSmrg 46869bd41f2cSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 46879bd41f2cSmrg# resulting binary. 46889bd41f2cSmrghardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 46899bd41f2cSmrg 46909bd41f2cSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 46919bd41f2cSmrg# resulting binary. 46929bd41f2cSmrghardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 46939bd41f2cSmrg 46949bd41f2cSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 46959bd41f2cSmrg# the resulting binary. 46969bd41f2cSmrghardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 46979bd41f2cSmrg 46989bd41f2cSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 46999bd41f2cSmrg# and all subsequent libraries and executables linked against it. 47009bd41f2cSmrghardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 47019bd41f2cSmrg 47029bd41f2cSmrg# Variables whose values should be saved in libtool wrapper scripts and 47039bd41f2cSmrg# restored at relink time. 47049bd41f2cSmrgvariables_saved_for_relink="$variables_saved_for_relink" 47059bd41f2cSmrg 47069bd41f2cSmrg# Whether libtool must link a program against all its dependency libraries. 47079bd41f2cSmrglink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 47089bd41f2cSmrg 47099bd41f2cSmrg# Compile-time system search path for libraries 47109bd41f2cSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 47119bd41f2cSmrg 47129bd41f2cSmrg# Run-time system search path for libraries 47139bd41f2cSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 47149bd41f2cSmrg 47159bd41f2cSmrg# Fix the shell variable \$srcfile for the compiler. 47169bd41f2cSmrgfix_srcfile_path=$lt_fix_srcfile_path 47179bd41f2cSmrg 47189bd41f2cSmrg# Set to yes if exported symbols are required. 47199bd41f2cSmrgalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 47209bd41f2cSmrg 47219bd41f2cSmrg# The commands to list exported symbols. 47229bd41f2cSmrgexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 47239bd41f2cSmrg 47249bd41f2cSmrg# The commands to extract the exported symbol list from a shared archive. 47259bd41f2cSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 47269bd41f2cSmrg 47279bd41f2cSmrg# Symbols that should not be listed in the preloaded symbols. 47289bd41f2cSmrgexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 47299bd41f2cSmrg 47309bd41f2cSmrg# Symbols that must always be exported. 47319bd41f2cSmrginclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 47329bd41f2cSmrg 47339bd41f2cSmrgifelse([$1],[], 47349bd41f2cSmrg[# ### END LIBTOOL CONFIG], 47359bd41f2cSmrg[# ### END LIBTOOL TAG CONFIG: $tagname]) 47369bd41f2cSmrg 47379bd41f2cSmrg__EOF__ 47389bd41f2cSmrg 47399bd41f2cSmrgifelse([$1],[], [ 47409bd41f2cSmrg case $host_os in 47419bd41f2cSmrg aix3*) 47429bd41f2cSmrg cat <<\EOF >> "$cfgfile" 47439bd41f2cSmrg 47449bd41f2cSmrg# AIX sometimes has problems with the GCC collect2 program. For some 47459bd41f2cSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 47469bd41f2cSmrg# vanish in a puff of smoke. 47479bd41f2cSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 47489bd41f2cSmrg COLLECT_NAMES= 47499bd41f2cSmrg export COLLECT_NAMES 47509bd41f2cSmrgfi 47519bd41f2cSmrgEOF 47529bd41f2cSmrg ;; 47539bd41f2cSmrg esac 47549bd41f2cSmrg 47559bd41f2cSmrg # We use sed instead of cat because bash on DJGPP gets confused if 47569bd41f2cSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 47579bd41f2cSmrg # text mode, it properly converts lines to CR/LF. This bash problem 47589bd41f2cSmrg # is reportedly fixed, but why not run on old versions too? 47599bd41f2cSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 47609bd41f2cSmrg 47619bd41f2cSmrg mv -f "$cfgfile" "$ofile" || \ 47629bd41f2cSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 47639bd41f2cSmrg chmod +x "$ofile" 47649bd41f2cSmrg]) 47659bd41f2cSmrgelse 47669bd41f2cSmrg # If there is no Makefile yet, we rely on a make rule to execute 47679bd41f2cSmrg # `config.status --recheck' to rerun these tests and create the 47689bd41f2cSmrg # libtool script then. 47699bd41f2cSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 47709bd41f2cSmrg if test -f "$ltmain_in"; then 47719bd41f2cSmrg test -f Makefile && make "$ltmain" 47729bd41f2cSmrg fi 47739bd41f2cSmrgfi 47749bd41f2cSmrg])# AC_LIBTOOL_CONFIG 47759bd41f2cSmrg 47769bd41f2cSmrg 47779bd41f2cSmrg# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 47789bd41f2cSmrg# ------------------------------------------- 47799bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 47809bd41f2cSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 47819bd41f2cSmrg 47829bd41f2cSmrg_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 47839bd41f2cSmrg 47849bd41f2cSmrgif test "$GCC" = yes; then 47859bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 47869bd41f2cSmrg 47879bd41f2cSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 47889bd41f2cSmrg lt_cv_prog_compiler_rtti_exceptions, 47899bd41f2cSmrg [-fno-rtti -fno-exceptions], [], 47909bd41f2cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 47919bd41f2cSmrgfi 47929bd41f2cSmrg])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 47939bd41f2cSmrg 47949bd41f2cSmrg 47959bd41f2cSmrg# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 47969bd41f2cSmrg# --------------------------------- 47979bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 47989bd41f2cSmrg[AC_REQUIRE([AC_CANONICAL_HOST]) 47999bd41f2cSmrgAC_REQUIRE([LT_AC_PROG_SED]) 48009bd41f2cSmrgAC_REQUIRE([AC_PROG_NM]) 48019bd41f2cSmrgAC_REQUIRE([AC_OBJEXT]) 48029bd41f2cSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 48039bd41f2cSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 48049bd41f2cSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 48059bd41f2cSmrg[ 48069bd41f2cSmrg# These are sane defaults that work on at least a few old systems. 48079bd41f2cSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 48089bd41f2cSmrg 48099bd41f2cSmrg# Character class describing NM global symbol codes. 48109bd41f2cSmrgsymcode='[[BCDEGRST]]' 48119bd41f2cSmrg 48129bd41f2cSmrg# Regexp to match symbols that can be accessed directly from C. 48139bd41f2cSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 48149bd41f2cSmrg 48159bd41f2cSmrg# Transform an extracted symbol line into a proper C declaration 48169bd41f2cSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 48179bd41f2cSmrg 48189bd41f2cSmrg# Transform an extracted symbol line into symbol name and symbol address 48199bd41f2cSmrglt_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'" 48209bd41f2cSmrg 48219bd41f2cSmrg# Define system-specific variables. 48229bd41f2cSmrgcase $host_os in 48239bd41f2cSmrgaix*) 48249bd41f2cSmrg symcode='[[BCDT]]' 48259bd41f2cSmrg ;; 48269bd41f2cSmrgcygwin* | mingw* | pw32*) 48279bd41f2cSmrg symcode='[[ABCDGISTW]]' 48289bd41f2cSmrg ;; 48299bd41f2cSmrghpux*) # Its linker distinguishes data from code symbols 48309bd41f2cSmrg if test "$host_cpu" = ia64; then 48319bd41f2cSmrg symcode='[[ABCDEGRST]]' 48329bd41f2cSmrg fi 48339bd41f2cSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 48349bd41f2cSmrg 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'" 48359bd41f2cSmrg ;; 48369bd41f2cSmrglinux* | k*bsd*-gnu) 48379bd41f2cSmrg if test "$host_cpu" = ia64; then 48389bd41f2cSmrg symcode='[[ABCDGIRSTW]]' 48399bd41f2cSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 48409bd41f2cSmrg 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'" 48419bd41f2cSmrg fi 48429bd41f2cSmrg ;; 48439bd41f2cSmrgirix* | nonstopux*) 48449bd41f2cSmrg symcode='[[BCDEGRST]]' 48459bd41f2cSmrg ;; 48469bd41f2cSmrgosf*) 48479bd41f2cSmrg symcode='[[BCDEGQRST]]' 48489bd41f2cSmrg ;; 48499bd41f2cSmrgsolaris*) 48509bd41f2cSmrg symcode='[[BDRT]]' 48519bd41f2cSmrg ;; 48529bd41f2cSmrgsco3.2v5*) 48539bd41f2cSmrg symcode='[[DT]]' 48549bd41f2cSmrg ;; 48559bd41f2cSmrgsysv4.2uw2*) 48569bd41f2cSmrg symcode='[[DT]]' 48579bd41f2cSmrg ;; 48589bd41f2cSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 48599bd41f2cSmrg symcode='[[ABDT]]' 48609bd41f2cSmrg ;; 48619bd41f2cSmrgsysv4) 48629bd41f2cSmrg symcode='[[DFNSTU]]' 48639bd41f2cSmrg ;; 48649bd41f2cSmrgesac 48659bd41f2cSmrg 48669bd41f2cSmrg# Handle CRLF in mingw tool chain 48679bd41f2cSmrgopt_cr= 48689bd41f2cSmrgcase $build_os in 48699bd41f2cSmrgmingw*) 48709bd41f2cSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 48719bd41f2cSmrg ;; 48729bd41f2cSmrgesac 48739bd41f2cSmrg 48749bd41f2cSmrg# If we're using GNU nm, then use its standard symbol codes. 48759bd41f2cSmrgcase `$NM -V 2>&1` in 48769bd41f2cSmrg*GNU* | *'with BFD'*) 48779bd41f2cSmrg symcode='[[ABCDGIRSTW]]' ;; 48789bd41f2cSmrgesac 48799bd41f2cSmrg 48809bd41f2cSmrg# Try without a prefix undercore, then with it. 48819bd41f2cSmrgfor ac_symprfx in "" "_"; do 48829bd41f2cSmrg 48839bd41f2cSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 48849bd41f2cSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 48859bd41f2cSmrg 48869bd41f2cSmrg # Write the raw and C identifiers. 48879bd41f2cSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 48889bd41f2cSmrg 48899bd41f2cSmrg # Check to see that the pipe works correctly. 48909bd41f2cSmrg pipe_works=no 48919bd41f2cSmrg 48929bd41f2cSmrg rm -f conftest* 48939bd41f2cSmrg cat > conftest.$ac_ext <<EOF 48949bd41f2cSmrg#ifdef __cplusplus 48959bd41f2cSmrgextern "C" { 48969bd41f2cSmrg#endif 48979bd41f2cSmrgchar nm_test_var; 48989bd41f2cSmrgvoid nm_test_func(){} 48999bd41f2cSmrg#ifdef __cplusplus 49009bd41f2cSmrg} 49019bd41f2cSmrg#endif 49029bd41f2cSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 49039bd41f2cSmrgEOF 49049bd41f2cSmrg 49059bd41f2cSmrg if AC_TRY_EVAL(ac_compile); then 49069bd41f2cSmrg # Now try to grab the symbols. 49079bd41f2cSmrg nlist=conftest.nm 49089bd41f2cSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 49099bd41f2cSmrg # Try sorting and uniquifying the output. 49109bd41f2cSmrg if sort "$nlist" | uniq > "$nlist"T; then 49119bd41f2cSmrg mv -f "$nlist"T "$nlist" 49129bd41f2cSmrg else 49139bd41f2cSmrg rm -f "$nlist"T 49149bd41f2cSmrg fi 49159bd41f2cSmrg 49169bd41f2cSmrg # Make sure that we snagged all the symbols we need. 49179bd41f2cSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 49189bd41f2cSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 49199bd41f2cSmrg cat <<EOF > conftest.$ac_ext 49209bd41f2cSmrg#ifdef __cplusplus 49219bd41f2cSmrgextern "C" { 49229bd41f2cSmrg#endif 49239bd41f2cSmrg 49249bd41f2cSmrgEOF 49259bd41f2cSmrg # Now generate the symbol file. 49269bd41f2cSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 49279bd41f2cSmrg 49289bd41f2cSmrg cat <<EOF >> conftest.$ac_ext 49299bd41f2cSmrg#if defined (__STDC__) && __STDC__ 49309bd41f2cSmrg# define lt_ptr_t void * 49319bd41f2cSmrg#else 49329bd41f2cSmrg# define lt_ptr_t char * 49339bd41f2cSmrg# define const 49349bd41f2cSmrg#endif 49359bd41f2cSmrg 49369bd41f2cSmrg/* The mapping between symbol names and symbols. */ 49379bd41f2cSmrgconst struct { 49389bd41f2cSmrg const char *name; 49399bd41f2cSmrg lt_ptr_t address; 49409bd41f2cSmrg} 49419bd41f2cSmrglt_preloaded_symbols[[]] = 49429bd41f2cSmrg{ 49439bd41f2cSmrgEOF 49449bd41f2cSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 49459bd41f2cSmrg cat <<\EOF >> conftest.$ac_ext 49469bd41f2cSmrg {0, (lt_ptr_t) 0} 49479bd41f2cSmrg}; 49489bd41f2cSmrg 49499bd41f2cSmrg#ifdef __cplusplus 49509bd41f2cSmrg} 49519bd41f2cSmrg#endif 49529bd41f2cSmrgEOF 49539bd41f2cSmrg # Now try linking the two files. 49549bd41f2cSmrg mv conftest.$ac_objext conftstm.$ac_objext 49559bd41f2cSmrg lt_save_LIBS="$LIBS" 49569bd41f2cSmrg lt_save_CFLAGS="$CFLAGS" 49579bd41f2cSmrg LIBS="conftstm.$ac_objext" 49589bd41f2cSmrg CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 49599bd41f2cSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 49609bd41f2cSmrg pipe_works=yes 49619bd41f2cSmrg fi 49629bd41f2cSmrg LIBS="$lt_save_LIBS" 49639bd41f2cSmrg CFLAGS="$lt_save_CFLAGS" 49649bd41f2cSmrg else 49659bd41f2cSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 49669bd41f2cSmrg fi 49679bd41f2cSmrg else 49689bd41f2cSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 49699bd41f2cSmrg fi 49709bd41f2cSmrg else 49719bd41f2cSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 49729bd41f2cSmrg fi 49739bd41f2cSmrg else 49749bd41f2cSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 49759bd41f2cSmrg cat conftest.$ac_ext >&5 49769bd41f2cSmrg fi 4977d075918cSmrg rm -rf conftest* conftst* 49789bd41f2cSmrg 49799bd41f2cSmrg # Do not use the global_symbol_pipe unless it works. 49809bd41f2cSmrg if test "$pipe_works" = yes; then 49819bd41f2cSmrg break 49829bd41f2cSmrg else 49839bd41f2cSmrg lt_cv_sys_global_symbol_pipe= 49849bd41f2cSmrg fi 49859bd41f2cSmrgdone 49869bd41f2cSmrg]) 49879bd41f2cSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 49889bd41f2cSmrg lt_cv_sys_global_symbol_to_cdecl= 49899bd41f2cSmrgfi 49909bd41f2cSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 49919bd41f2cSmrg AC_MSG_RESULT(failed) 49929bd41f2cSmrgelse 49939bd41f2cSmrg AC_MSG_RESULT(ok) 49949bd41f2cSmrgfi 49959bd41f2cSmrg]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 49969bd41f2cSmrg 49979bd41f2cSmrg 49989bd41f2cSmrg# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 49999bd41f2cSmrg# --------------------------------------- 50009bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 50019bd41f2cSmrg[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 50029bd41f2cSmrg_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 50039bd41f2cSmrg_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 50049bd41f2cSmrg 50059bd41f2cSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 50069bd41f2cSmrg ifelse([$1],[CXX],[ 50079bd41f2cSmrg # C++ specific cases for pic, static, wl, etc. 50089bd41f2cSmrg if test "$GXX" = yes; then 50099bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 50109bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 50119bd41f2cSmrg 50129bd41f2cSmrg case $host_os in 50139bd41f2cSmrg aix*) 50149bd41f2cSmrg # All AIX code is PIC. 50159bd41f2cSmrg if test "$host_cpu" = ia64; then 50169bd41f2cSmrg # AIX 5 now supports IA64 processor 50179bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50189bd41f2cSmrg fi 50199bd41f2cSmrg ;; 50209bd41f2cSmrg amigaos*) 50219bd41f2cSmrg # FIXME: we need at least 68020 code to build shared libraries, but 50229bd41f2cSmrg # adding the `-m68020' flag to GCC prevents building anything better, 50239bd41f2cSmrg # like `-m68040'. 50249bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 50259bd41f2cSmrg ;; 50269bd41f2cSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 50279bd41f2cSmrg # PIC is the default for these OSes. 50289bd41f2cSmrg ;; 50299bd41f2cSmrg mingw* | cygwin* | os2* | pw32*) 50309bd41f2cSmrg # This hack is so that the source file can tell whether it is being 50319bd41f2cSmrg # built for inclusion in a dll (and should export symbols for example). 50329bd41f2cSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 50339bd41f2cSmrg # (--disable-auto-import) libraries 5034d075918cSmrg m4_if([$1], [GCJ], [], 5035d075918cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 50369bd41f2cSmrg ;; 50379bd41f2cSmrg darwin* | rhapsody*) 50389bd41f2cSmrg # PIC is the default on this platform 50399bd41f2cSmrg # Common symbols not allowed in MH_DYLIB files 50409bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 50419bd41f2cSmrg ;; 50429bd41f2cSmrg *djgpp*) 50439bd41f2cSmrg # DJGPP does not support shared libraries at all 50449bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 50459bd41f2cSmrg ;; 50469bd41f2cSmrg interix[[3-9]]*) 50479bd41f2cSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 50489bd41f2cSmrg # Instead, we relocate shared libraries at runtime. 50499bd41f2cSmrg ;; 50509bd41f2cSmrg sysv4*MP*) 50519bd41f2cSmrg if test -d /usr/nec; then 50529bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 50539bd41f2cSmrg fi 50549bd41f2cSmrg ;; 50559bd41f2cSmrg hpux*) 50569bd41f2cSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 50579bd41f2cSmrg # not for PA HP-UX. 50589bd41f2cSmrg case $host_cpu in 50599bd41f2cSmrg hppa*64*|ia64*) 50609bd41f2cSmrg ;; 50619bd41f2cSmrg *) 50629bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 50639bd41f2cSmrg ;; 50649bd41f2cSmrg esac 50659bd41f2cSmrg ;; 50669bd41f2cSmrg *) 50679bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 50689bd41f2cSmrg ;; 50699bd41f2cSmrg esac 50709bd41f2cSmrg else 50719bd41f2cSmrg case $host_os in 5072d075918cSmrg aix[[4-9]]*) 50739bd41f2cSmrg # All AIX code is PIC. 50749bd41f2cSmrg if test "$host_cpu" = ia64; then 50759bd41f2cSmrg # AIX 5 now supports IA64 processor 50769bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50779bd41f2cSmrg else 50789bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 50799bd41f2cSmrg fi 50809bd41f2cSmrg ;; 50819bd41f2cSmrg chorus*) 50829bd41f2cSmrg case $cc_basename in 50839bd41f2cSmrg cxch68*) 50849bd41f2cSmrg # Green Hills C++ Compiler 50859bd41f2cSmrg # _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" 50869bd41f2cSmrg ;; 50879bd41f2cSmrg esac 50889bd41f2cSmrg ;; 50899bd41f2cSmrg darwin*) 50909bd41f2cSmrg # PIC is the default on this platform 50919bd41f2cSmrg # Common symbols not allowed in MH_DYLIB files 50929bd41f2cSmrg case $cc_basename in 50939bd41f2cSmrg xlc*) 50949bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 50959bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 50969bd41f2cSmrg ;; 50979bd41f2cSmrg esac 50989bd41f2cSmrg ;; 50999bd41f2cSmrg dgux*) 51009bd41f2cSmrg case $cc_basename in 51019bd41f2cSmrg ec++*) 51029bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 51039bd41f2cSmrg ;; 51049bd41f2cSmrg ghcx*) 51059bd41f2cSmrg # Green Hills C++ Compiler 51069bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 51079bd41f2cSmrg ;; 51089bd41f2cSmrg *) 51099bd41f2cSmrg ;; 51109bd41f2cSmrg esac 51119bd41f2cSmrg ;; 51129bd41f2cSmrg freebsd* | dragonfly*) 51139bd41f2cSmrg # FreeBSD uses GNU C++ 51149bd41f2cSmrg ;; 51159bd41f2cSmrg hpux9* | hpux10* | hpux11*) 51169bd41f2cSmrg case $cc_basename in 51179bd41f2cSmrg CC*) 51189bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51199bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 51209bd41f2cSmrg if test "$host_cpu" != ia64; then 51219bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 51229bd41f2cSmrg fi 51239bd41f2cSmrg ;; 51249bd41f2cSmrg aCC*) 51259bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51269bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 51279bd41f2cSmrg case $host_cpu in 51289bd41f2cSmrg hppa*64*|ia64*) 51299bd41f2cSmrg # +Z the default 51309bd41f2cSmrg ;; 51319bd41f2cSmrg *) 51329bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 51339bd41f2cSmrg ;; 51349bd41f2cSmrg esac 51359bd41f2cSmrg ;; 51369bd41f2cSmrg *) 51379bd41f2cSmrg ;; 51389bd41f2cSmrg esac 51399bd41f2cSmrg ;; 51409bd41f2cSmrg interix*) 51419bd41f2cSmrg # This is c89, which is MS Visual C++ (no shared libs) 51429bd41f2cSmrg # Anyone wants to do a port? 51439bd41f2cSmrg ;; 51449bd41f2cSmrg irix5* | irix6* | nonstopux*) 51459bd41f2cSmrg case $cc_basename in 51469bd41f2cSmrg CC*) 51479bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51489bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 51499bd41f2cSmrg # CC pic flag -KPIC is the default. 51509bd41f2cSmrg ;; 51519bd41f2cSmrg *) 51529bd41f2cSmrg ;; 51539bd41f2cSmrg esac 51549bd41f2cSmrg ;; 51559bd41f2cSmrg linux* | k*bsd*-gnu) 51569bd41f2cSmrg case $cc_basename in 51579bd41f2cSmrg KCC*) 51589bd41f2cSmrg # KAI C++ Compiler 51599bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 51609bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 51619bd41f2cSmrg ;; 51629bd41f2cSmrg icpc* | ecpc*) 51639bd41f2cSmrg # Intel C++ 51649bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51659bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 51669bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 51679bd41f2cSmrg ;; 5168d075918cSmrg pgCC* | pgcpp*) 51699bd41f2cSmrg # Portland Group C++ compiler. 51709bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51719bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 51729bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 51739bd41f2cSmrg ;; 51749bd41f2cSmrg cxx*) 51759bd41f2cSmrg # Compaq C++ 51769bd41f2cSmrg # Make sure the PIC flag is empty. It appears that all Alpha 51779bd41f2cSmrg # Linux and Compaq Tru64 Unix objects are PIC. 51789bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 51799bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 51809bd41f2cSmrg ;; 51819bd41f2cSmrg *) 51829bd41f2cSmrg case `$CC -V 2>&1 | sed 5q` in 51839bd41f2cSmrg *Sun\ C*) 51849bd41f2cSmrg # Sun C++ 5.9 51859bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 51869bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 51879bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 51889bd41f2cSmrg ;; 51899bd41f2cSmrg esac 51909bd41f2cSmrg ;; 51919bd41f2cSmrg esac 51929bd41f2cSmrg ;; 51939bd41f2cSmrg lynxos*) 51949bd41f2cSmrg ;; 51959bd41f2cSmrg m88k*) 51969bd41f2cSmrg ;; 51979bd41f2cSmrg mvs*) 51989bd41f2cSmrg case $cc_basename in 51999bd41f2cSmrg cxx*) 52009bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 52019bd41f2cSmrg ;; 52029bd41f2cSmrg *) 52039bd41f2cSmrg ;; 52049bd41f2cSmrg esac 52059bd41f2cSmrg ;; 52069bd41f2cSmrg netbsd*) 52079bd41f2cSmrg ;; 52089bd41f2cSmrg osf3* | osf4* | osf5*) 52099bd41f2cSmrg case $cc_basename in 52109bd41f2cSmrg KCC*) 52119bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 52129bd41f2cSmrg ;; 52139bd41f2cSmrg RCC*) 52149bd41f2cSmrg # Rational C++ 2.4.1 52159bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 52169bd41f2cSmrg ;; 52179bd41f2cSmrg cxx*) 52189bd41f2cSmrg # Digital/Compaq C++ 52199bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52209bd41f2cSmrg # Make sure the PIC flag is empty. It appears that all Alpha 52219bd41f2cSmrg # Linux and Compaq Tru64 Unix objects are PIC. 52229bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 52239bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 52249bd41f2cSmrg ;; 52259bd41f2cSmrg *) 52269bd41f2cSmrg ;; 52279bd41f2cSmrg esac 52289bd41f2cSmrg ;; 52299bd41f2cSmrg psos*) 52309bd41f2cSmrg ;; 52319bd41f2cSmrg solaris*) 52329bd41f2cSmrg case $cc_basename in 52339bd41f2cSmrg CC*) 52349bd41f2cSmrg # Sun C++ 4.2, 5.x and Centerline C++ 52359bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52369bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52379bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 52389bd41f2cSmrg ;; 52399bd41f2cSmrg gcx*) 52409bd41f2cSmrg # Green Hills C++ Compiler 52419bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 52429bd41f2cSmrg ;; 52439bd41f2cSmrg *) 52449bd41f2cSmrg ;; 52459bd41f2cSmrg esac 52469bd41f2cSmrg ;; 52479bd41f2cSmrg sunos4*) 52489bd41f2cSmrg case $cc_basename in 52499bd41f2cSmrg CC*) 52509bd41f2cSmrg # Sun C++ 4.x 52519bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 52529bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52539bd41f2cSmrg ;; 52549bd41f2cSmrg lcc*) 52559bd41f2cSmrg # Lucid 52569bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 52579bd41f2cSmrg ;; 52589bd41f2cSmrg *) 52599bd41f2cSmrg ;; 52609bd41f2cSmrg esac 52619bd41f2cSmrg ;; 52629bd41f2cSmrg tandem*) 52639bd41f2cSmrg case $cc_basename in 52649bd41f2cSmrg NCC*) 52659bd41f2cSmrg # NonStop-UX NCC 3.20 52669bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52679bd41f2cSmrg ;; 52689bd41f2cSmrg *) 52699bd41f2cSmrg ;; 52709bd41f2cSmrg esac 52719bd41f2cSmrg ;; 52729bd41f2cSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 52739bd41f2cSmrg case $cc_basename in 52749bd41f2cSmrg CC*) 52759bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52769bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52779bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52789bd41f2cSmrg ;; 52799bd41f2cSmrg esac 52809bd41f2cSmrg ;; 52819bd41f2cSmrg vxworks*) 52829bd41f2cSmrg ;; 52839bd41f2cSmrg *) 52849bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 52859bd41f2cSmrg ;; 52869bd41f2cSmrg esac 52879bd41f2cSmrg fi 52889bd41f2cSmrg], 52899bd41f2cSmrg[ 52909bd41f2cSmrg if test "$GCC" = yes; then 52919bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52929bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 52939bd41f2cSmrg 52949bd41f2cSmrg case $host_os in 52959bd41f2cSmrg aix*) 52969bd41f2cSmrg # All AIX code is PIC. 52979bd41f2cSmrg if test "$host_cpu" = ia64; then 52989bd41f2cSmrg # AIX 5 now supports IA64 processor 52999bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 53009bd41f2cSmrg fi 53019bd41f2cSmrg ;; 53029bd41f2cSmrg 53039bd41f2cSmrg amigaos*) 53049bd41f2cSmrg # FIXME: we need at least 68020 code to build shared libraries, but 53059bd41f2cSmrg # adding the `-m68020' flag to GCC prevents building anything better, 53069bd41f2cSmrg # like `-m68040'. 53079bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 53089bd41f2cSmrg ;; 53099bd41f2cSmrg 53109bd41f2cSmrg beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 53119bd41f2cSmrg # PIC is the default for these OSes. 53129bd41f2cSmrg ;; 53139bd41f2cSmrg 53149bd41f2cSmrg mingw* | cygwin* | pw32* | os2*) 53159bd41f2cSmrg # This hack is so that the source file can tell whether it is being 53169bd41f2cSmrg # built for inclusion in a dll (and should export symbols for example). 53179bd41f2cSmrg # Although the cygwin gcc ignores -fPIC, still need this for old-style 53189bd41f2cSmrg # (--disable-auto-import) libraries 5319d075918cSmrg m4_if([$1], [GCJ], [], 5320d075918cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 53219bd41f2cSmrg ;; 53229bd41f2cSmrg 53239bd41f2cSmrg darwin* | rhapsody*) 53249bd41f2cSmrg # PIC is the default on this platform 53259bd41f2cSmrg # Common symbols not allowed in MH_DYLIB files 53269bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 53279bd41f2cSmrg ;; 53289bd41f2cSmrg 53299bd41f2cSmrg interix[[3-9]]*) 53309bd41f2cSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 53319bd41f2cSmrg # Instead, we relocate shared libraries at runtime. 53329bd41f2cSmrg ;; 53339bd41f2cSmrg 53349bd41f2cSmrg msdosdjgpp*) 53359bd41f2cSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 53369bd41f2cSmrg # on systems that don't support them. 53379bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 53389bd41f2cSmrg enable_shared=no 53399bd41f2cSmrg ;; 53409bd41f2cSmrg 53419bd41f2cSmrg sysv4*MP*) 53429bd41f2cSmrg if test -d /usr/nec; then 53439bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 53449bd41f2cSmrg fi 53459bd41f2cSmrg ;; 53469bd41f2cSmrg 53479bd41f2cSmrg hpux*) 53489bd41f2cSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 53499bd41f2cSmrg # not for PA HP-UX. 53509bd41f2cSmrg case $host_cpu in 53519bd41f2cSmrg hppa*64*|ia64*) 53529bd41f2cSmrg # +Z the default 53539bd41f2cSmrg ;; 53549bd41f2cSmrg *) 53559bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 53569bd41f2cSmrg ;; 53579bd41f2cSmrg esac 53589bd41f2cSmrg ;; 53599bd41f2cSmrg 53609bd41f2cSmrg *) 53619bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 53629bd41f2cSmrg ;; 53639bd41f2cSmrg esac 53649bd41f2cSmrg else 53659bd41f2cSmrg # PORTME Check for flag to pass linker flags through the system compiler. 53669bd41f2cSmrg case $host_os in 53679bd41f2cSmrg aix*) 53689bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 53699bd41f2cSmrg if test "$host_cpu" = ia64; then 53709bd41f2cSmrg # AIX 5 now supports IA64 processor 53719bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 53729bd41f2cSmrg else 53739bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 53749bd41f2cSmrg fi 53759bd41f2cSmrg ;; 53769bd41f2cSmrg darwin*) 53779bd41f2cSmrg # PIC is the default on this platform 53789bd41f2cSmrg # Common symbols not allowed in MH_DYLIB files 53799bd41f2cSmrg case $cc_basename in 53809bd41f2cSmrg xlc*) 53819bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 53829bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 53839bd41f2cSmrg ;; 53849bd41f2cSmrg esac 53859bd41f2cSmrg ;; 53869bd41f2cSmrg 53879bd41f2cSmrg mingw* | cygwin* | pw32* | os2*) 53889bd41f2cSmrg # This hack is so that the source file can tell whether it is being 53899bd41f2cSmrg # built for inclusion in a dll (and should export symbols for example). 5390d075918cSmrg m4_if([$1], [GCJ], [], 5391d075918cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) 53929bd41f2cSmrg ;; 53939bd41f2cSmrg 53949bd41f2cSmrg hpux9* | hpux10* | hpux11*) 53959bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 53969bd41f2cSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 53979bd41f2cSmrg # not for PA HP-UX. 53989bd41f2cSmrg case $host_cpu in 53999bd41f2cSmrg hppa*64*|ia64*) 54009bd41f2cSmrg # +Z the default 54019bd41f2cSmrg ;; 54029bd41f2cSmrg *) 54039bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 54049bd41f2cSmrg ;; 54059bd41f2cSmrg esac 54069bd41f2cSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 54079bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 54089bd41f2cSmrg ;; 54099bd41f2cSmrg 54109bd41f2cSmrg irix5* | irix6* | nonstopux*) 54119bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54129bd41f2cSmrg # PIC (with -KPIC) is the default. 54139bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 54149bd41f2cSmrg ;; 54159bd41f2cSmrg 54169bd41f2cSmrg newsos6) 54179bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54189bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54199bd41f2cSmrg ;; 54209bd41f2cSmrg 54219bd41f2cSmrg linux* | k*bsd*-gnu) 54229bd41f2cSmrg case $cc_basename in 54239bd41f2cSmrg icc* | ecc*) 54249bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54259bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54269bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 54279bd41f2cSmrg ;; 54289bd41f2cSmrg pgcc* | pgf77* | pgf90* | pgf95*) 54299bd41f2cSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 54309bd41f2cSmrg # which looks to be a dead project) 54319bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54329bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 54339bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54349bd41f2cSmrg ;; 54359bd41f2cSmrg ccc*) 54369bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54379bd41f2cSmrg # All Alpha code is PIC. 54389bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 54399bd41f2cSmrg ;; 54409bd41f2cSmrg *) 54419bd41f2cSmrg case `$CC -V 2>&1 | sed 5q` in 54429bd41f2cSmrg *Sun\ C*) 54439bd41f2cSmrg # Sun C 5.9 54449bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54459bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54469bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54479bd41f2cSmrg ;; 54489bd41f2cSmrg *Sun\ F*) 54499bd41f2cSmrg # Sun Fortran 8.3 passes all unrecognized flags to the linker 54509bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54519bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54529bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='' 54539bd41f2cSmrg ;; 54549bd41f2cSmrg esac 54559bd41f2cSmrg ;; 54569bd41f2cSmrg esac 54579bd41f2cSmrg ;; 54589bd41f2cSmrg 54599bd41f2cSmrg osf3* | osf4* | osf5*) 54609bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54619bd41f2cSmrg # All OSF/1 code is PIC. 54629bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 54639bd41f2cSmrg ;; 54649bd41f2cSmrg 54659bd41f2cSmrg rdos*) 54669bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 54679bd41f2cSmrg ;; 54689bd41f2cSmrg 54699bd41f2cSmrg solaris*) 54709bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54719bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54729bd41f2cSmrg case $cc_basename in 54739bd41f2cSmrg f77* | f90* | f95*) 54749bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 54759bd41f2cSmrg *) 54769bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 54779bd41f2cSmrg esac 54789bd41f2cSmrg ;; 54799bd41f2cSmrg 54809bd41f2cSmrg sunos4*) 54819bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 54829bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 54839bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54849bd41f2cSmrg ;; 54859bd41f2cSmrg 54869bd41f2cSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 54879bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 54889bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 54899bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54909bd41f2cSmrg ;; 54919bd41f2cSmrg 54929bd41f2cSmrg sysv4*MP*) 54939bd41f2cSmrg if test -d /usr/nec ;then 54949bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 54959bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 54969bd41f2cSmrg fi 54979bd41f2cSmrg ;; 54989bd41f2cSmrg 54999bd41f2cSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 55009bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 55019bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 55029bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 55039bd41f2cSmrg ;; 55049bd41f2cSmrg 55059bd41f2cSmrg unicos*) 55069bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 55079bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 55089bd41f2cSmrg ;; 55099bd41f2cSmrg 55109bd41f2cSmrg uts4*) 55119bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 55129bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 55139bd41f2cSmrg ;; 55149bd41f2cSmrg 55159bd41f2cSmrg *) 55169bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 55179bd41f2cSmrg ;; 55189bd41f2cSmrg esac 55199bd41f2cSmrg fi 55209bd41f2cSmrg]) 55219bd41f2cSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 55229bd41f2cSmrg 55239bd41f2cSmrg# 55249bd41f2cSmrg# Check to make sure the PIC flag actually works. 55259bd41f2cSmrg# 55269bd41f2cSmrgif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 55279bd41f2cSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 5528d075918cSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1), 55299bd41f2cSmrg [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 55309bd41f2cSmrg [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 55319bd41f2cSmrg "" | " "*) ;; 55329bd41f2cSmrg *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 55339bd41f2cSmrg esac], 55349bd41f2cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 55359bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 55369bd41f2cSmrgfi 55379bd41f2cSmrgcase $host_os in 55389bd41f2cSmrg # For platforms which do not support PIC, -DPIC is meaningless: 55399bd41f2cSmrg *djgpp*) 55409bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 55419bd41f2cSmrg ;; 55429bd41f2cSmrg *) 55439bd41f2cSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 55449bd41f2cSmrg ;; 55459bd41f2cSmrgesac 55469bd41f2cSmrg 55479bd41f2cSmrg# 55489bd41f2cSmrg# Check to make sure the static flag actually works. 55499bd41f2cSmrg# 55509bd41f2cSmrgwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 55519bd41f2cSmrgAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 5552d075918cSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1), 55539bd41f2cSmrg $lt_tmp_static_flag, 55549bd41f2cSmrg [], 55559bd41f2cSmrg [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 55569bd41f2cSmrg]) 55579bd41f2cSmrg 55589bd41f2cSmrg 55599bd41f2cSmrg# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 55609bd41f2cSmrg# ------------------------------------ 55619bd41f2cSmrg# See if the linker supports building shared libraries. 55629bd41f2cSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 55639bd41f2cSmrg[AC_REQUIRE([LT_AC_PROG_SED])dnl 55649bd41f2cSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 55659bd41f2cSmrgifelse([$1],[CXX],[ 55669bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 55679bd41f2cSmrg case $host_os in 5568d075918cSmrg aix[[4-9]]*) 55699bd41f2cSmrg # If we're using GNU nm, then we don't want the "-C" option. 55709bd41f2cSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 55719bd41f2cSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 55729bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 55739bd41f2cSmrg else 55749bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 55759bd41f2cSmrg fi 55769bd41f2cSmrg ;; 55779bd41f2cSmrg pw32*) 55789bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 55799bd41f2cSmrg ;; 55809bd41f2cSmrg cygwin* | mingw*) 55819bd41f2cSmrg _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' 55829bd41f2cSmrg ;; 55839bd41f2cSmrg *) 55849bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 55859bd41f2cSmrg ;; 55869bd41f2cSmrg esac 5587d075918cSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 55889bd41f2cSmrg],[ 55899bd41f2cSmrg runpath_var= 55909bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 55919bd41f2cSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 55929bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)= 55939bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 55949bd41f2cSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 55959bd41f2cSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 55969bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 55979bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 55989bd41f2cSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 55999bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 56009bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 56019bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 56029bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 56039bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 56049bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 56059bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 56069bd41f2cSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=no 56079bd41f2cSmrg _LT_AC_TAGVAR(module_cmds, $1)= 56089bd41f2cSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)= 56099bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 56109bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 56119bd41f2cSmrg # include_expsyms should be a list of space-separated symbols to be *always* 56129bd41f2cSmrg # included in the symbol list 56139bd41f2cSmrg _LT_AC_TAGVAR(include_expsyms, $1)= 56149bd41f2cSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 56159bd41f2cSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 56169bd41f2cSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 56179bd41f2cSmrg # as well as any symbol that contains `d'. 5618d075918cSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] 56199bd41f2cSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 56209bd41f2cSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 56219bd41f2cSmrg # the symbol is explicitly referenced. Since portable code cannot 56229bd41f2cSmrg # rely on this symbol name, it's probably fine to never include it in 56239bd41f2cSmrg # preloaded symbol tables. 5624d075918cSmrg # Exclude shared library initialization/finalization symbols. 5625d075918cSmrgdnl Note also adjust exclude_expsyms for C++ above. 56269bd41f2cSmrg extract_expsyms_cmds= 56279bd41f2cSmrg # Just being paranoid about ensuring that cc_basename is set. 56289bd41f2cSmrg _LT_CC_BASENAME([$compiler]) 56299bd41f2cSmrg case $host_os in 56309bd41f2cSmrg cygwin* | mingw* | pw32*) 56319bd41f2cSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 56329bd41f2cSmrg # When not using gcc, we currently assume that we are using 56339bd41f2cSmrg # Microsoft Visual C++. 56349bd41f2cSmrg if test "$GCC" != yes; then 56359bd41f2cSmrg with_gnu_ld=no 56369bd41f2cSmrg fi 56379bd41f2cSmrg ;; 56389bd41f2cSmrg interix*) 56399bd41f2cSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 56409bd41f2cSmrg with_gnu_ld=yes 56419bd41f2cSmrg ;; 56429bd41f2cSmrg openbsd*) 56439bd41f2cSmrg with_gnu_ld=no 56449bd41f2cSmrg ;; 56459bd41f2cSmrg esac 56469bd41f2cSmrg 56479bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 56489bd41f2cSmrg if test "$with_gnu_ld" = yes; then 56499bd41f2cSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 56509bd41f2cSmrg wlarc='${wl}' 56519bd41f2cSmrg 56529bd41f2cSmrg # Set some defaults for GNU ld with shared library support. These 56539bd41f2cSmrg # are reset later if shared libraries are not supported. Putting them 56549bd41f2cSmrg # here allows them to be overridden if necessary. 56559bd41f2cSmrg runpath_var=LD_RUN_PATH 56569bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 56579bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 56589bd41f2cSmrg # ancient GNU ld didn't support --whole-archive et. al. 56599bd41f2cSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 56609bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 56619bd41f2cSmrg else 56629bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 56639bd41f2cSmrg fi 56649bd41f2cSmrg supports_anon_versioning=no 56659bd41f2cSmrg case `$LD -v 2>/dev/null` in 56669bd41f2cSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 56679bd41f2cSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 56689bd41f2cSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 56699bd41f2cSmrg *\ 2.11.*) ;; # other 2.11 versions 56709bd41f2cSmrg *) supports_anon_versioning=yes ;; 56719bd41f2cSmrg esac 56729bd41f2cSmrg 56739bd41f2cSmrg # See if GNU ld supports shared libraries. 56749bd41f2cSmrg case $host_os in 5675d075918cSmrg aix[[3-9]]*) 56769bd41f2cSmrg # On AIX/PPC, the GNU linker is very broken 56779bd41f2cSmrg if test "$host_cpu" != ia64; then 56789bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 56799bd41f2cSmrg cat <<EOF 1>&2 56809bd41f2cSmrg 56819bd41f2cSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 56829bd41f2cSmrg*** to be unable to reliably create shared libraries on AIX. 56839bd41f2cSmrg*** Therefore, libtool is disabling shared libraries support. If you 56849bd41f2cSmrg*** really care for shared libraries, you may want to modify your PATH 56859bd41f2cSmrg*** so that a non-GNU linker is found, and then restart. 56869bd41f2cSmrg 56879bd41f2cSmrgEOF 56889bd41f2cSmrg fi 56899bd41f2cSmrg ;; 56909bd41f2cSmrg 56919bd41f2cSmrg amigaos*) 56929bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 56939bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 56949bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 56959bd41f2cSmrg 56969bd41f2cSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 56979bd41f2cSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 56989bd41f2cSmrg # to version 4, is to share data among multiple programs linked 56999bd41f2cSmrg # with the same dynamic library. Since this doesn't match the 57009bd41f2cSmrg # behavior of shared libraries on other platforms, we can't use 57019bd41f2cSmrg # them. 57029bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 57039bd41f2cSmrg ;; 57049bd41f2cSmrg 57059bd41f2cSmrg beos*) 57069bd41f2cSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 57079bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 57089bd41f2cSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 57099bd41f2cSmrg # support --undefined. This deserves some investigation. FIXME 57109bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 57119bd41f2cSmrg else 57129bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 57139bd41f2cSmrg fi 57149bd41f2cSmrg ;; 57159bd41f2cSmrg 57169bd41f2cSmrg cygwin* | mingw* | pw32*) 57179bd41f2cSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 57189bd41f2cSmrg # as there is no search path for DLLs. 57199bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 57209bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 57219bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 57229bd41f2cSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 57239bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' 57249bd41f2cSmrg 57259bd41f2cSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 57269bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 57279bd41f2cSmrg # If the export-symbols file already is a .def file (1st line 57289bd41f2cSmrg # is EXPORTS), use it as is; otherwise, prepend... 57299bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 57309bd41f2cSmrg cp $export_symbols $output_objdir/$soname.def; 57319bd41f2cSmrg else 57329bd41f2cSmrg echo EXPORTS > $output_objdir/$soname.def; 57339bd41f2cSmrg cat $export_symbols >> $output_objdir/$soname.def; 57349bd41f2cSmrg fi~ 57359bd41f2cSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 57369bd41f2cSmrg else 57379bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 57389bd41f2cSmrg fi 57399bd41f2cSmrg ;; 57409bd41f2cSmrg 57419bd41f2cSmrg interix[[3-9]]*) 57429bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 57439bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 57449bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 57459bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 57469bd41f2cSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 57479bd41f2cSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 57489bd41f2cSmrg # default) and relocated if they conflict, which is a slow very memory 57499bd41f2cSmrg # consuming and fragmenting process. To avoid this, we pick a random, 57509bd41f2cSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 57519bd41f2cSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 57529bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 57539bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 57549bd41f2cSmrg ;; 57559bd41f2cSmrg 57569bd41f2cSmrg gnu* | linux* | k*bsd*-gnu) 57579bd41f2cSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 57589bd41f2cSmrg tmp_addflag= 57599bd41f2cSmrg case $cc_basename,$host_cpu in 57609bd41f2cSmrg pgcc*) # Portland Group C compiler 57619bd41f2cSmrg _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' 57629bd41f2cSmrg tmp_addflag=' $pic_flag' 57639bd41f2cSmrg ;; 57649bd41f2cSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 57659bd41f2cSmrg _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' 57669bd41f2cSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 57679bd41f2cSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 57689bd41f2cSmrg tmp_addflag=' -i_dynamic' ;; 57699bd41f2cSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 57709bd41f2cSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 57719bd41f2cSmrg ifc* | ifort*) # Intel Fortran compiler 57729bd41f2cSmrg tmp_addflag=' -nofor_main' ;; 57739bd41f2cSmrg esac 57749bd41f2cSmrg case `$CC -V 2>&1 | sed 5q` in 57759bd41f2cSmrg *Sun\ C*) # Sun C 5.9 57769bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' 57779bd41f2cSmrg tmp_sharedflag='-G' ;; 57789bd41f2cSmrg *Sun\ F*) # Sun Fortran 8.3 57799bd41f2cSmrg tmp_sharedflag='-G' ;; 57809bd41f2cSmrg *) 57819bd41f2cSmrg tmp_sharedflag='-shared' ;; 57829bd41f2cSmrg esac 57839bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 57849bd41f2cSmrg 57859bd41f2cSmrg if test $supports_anon_versioning = yes; then 57869bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 57879bd41f2cSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 57889bd41f2cSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 57899bd41f2cSmrg $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 57909bd41f2cSmrg fi 57919bd41f2cSmrg else 57929bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 57939bd41f2cSmrg fi 57949bd41f2cSmrg ;; 57959bd41f2cSmrg 57969bd41f2cSmrg netbsd*) 57979bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 57989bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 57999bd41f2cSmrg wlarc= 58009bd41f2cSmrg else 58019bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 58029bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 58039bd41f2cSmrg fi 58049bd41f2cSmrg ;; 58059bd41f2cSmrg 58069bd41f2cSmrg solaris*) 58079bd41f2cSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 58089bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58099bd41f2cSmrg cat <<EOF 1>&2 58109bd41f2cSmrg 58119bd41f2cSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 58129bd41f2cSmrg*** create shared libraries on Solaris systems. Therefore, libtool 58139bd41f2cSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 58149bd41f2cSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 58159bd41f2cSmrg*** your PATH or compiler configuration so that the native linker is 58169bd41f2cSmrg*** used, and then restart. 58179bd41f2cSmrg 58189bd41f2cSmrgEOF 58199bd41f2cSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 58209bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 58219bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 58229bd41f2cSmrg else 58239bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58249bd41f2cSmrg fi 58259bd41f2cSmrg ;; 58269bd41f2cSmrg 58279bd41f2cSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 58289bd41f2cSmrg case `$LD -v 2>&1` in 58299bd41f2cSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 58309bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58319bd41f2cSmrg cat <<_LT_EOF 1>&2 58329bd41f2cSmrg 58339bd41f2cSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 58349bd41f2cSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 58359bd41f2cSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 58369bd41f2cSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 58379bd41f2cSmrg*** your PATH or compiler configuration so that the native linker is 58389bd41f2cSmrg*** used, and then restart. 58399bd41f2cSmrg 58409bd41f2cSmrg_LT_EOF 58419bd41f2cSmrg ;; 58429bd41f2cSmrg *) 58439bd41f2cSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 58449bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 58459bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 58469bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' 58479bd41f2cSmrg else 58489bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58499bd41f2cSmrg fi 58509bd41f2cSmrg ;; 58519bd41f2cSmrg esac 58529bd41f2cSmrg ;; 58539bd41f2cSmrg 58549bd41f2cSmrg sunos4*) 58559bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 58569bd41f2cSmrg wlarc= 58579bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 58589bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 58599bd41f2cSmrg ;; 58609bd41f2cSmrg 58619bd41f2cSmrg *) 58629bd41f2cSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 58639bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 58649bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 58659bd41f2cSmrg else 58669bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58679bd41f2cSmrg fi 58689bd41f2cSmrg ;; 58699bd41f2cSmrg esac 58709bd41f2cSmrg 58719bd41f2cSmrg if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 58729bd41f2cSmrg runpath_var= 58739bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 58749bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 58759bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 58769bd41f2cSmrg fi 58779bd41f2cSmrg else 58789bd41f2cSmrg # PORTME fill in a description of your system's linker (not GNU ld) 58799bd41f2cSmrg case $host_os in 58809bd41f2cSmrg aix3*) 58819bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 58829bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 58839bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 58849bd41f2cSmrg # Note: this linker hardcodes the directories in LIBPATH if there 58859bd41f2cSmrg # are no directories specified by -L. 58869bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 58879bd41f2cSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 58889bd41f2cSmrg # Neither direct hardcoding nor static linking is supported with a 58899bd41f2cSmrg # broken collect2. 58909bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 58919bd41f2cSmrg fi 58929bd41f2cSmrg ;; 58939bd41f2cSmrg 5894d075918cSmrg aix[[4-9]]*) 58959bd41f2cSmrg if test "$host_cpu" = ia64; then 58969bd41f2cSmrg # On IA64, the linker does run time linking by default, so we don't 58979bd41f2cSmrg # have to do anything special. 58989bd41f2cSmrg aix_use_runtimelinking=no 58999bd41f2cSmrg exp_sym_flag='-Bexport' 59009bd41f2cSmrg no_entry_flag="" 59019bd41f2cSmrg else 59029bd41f2cSmrg # If we're using GNU nm, then we don't want the "-C" option. 59039bd41f2cSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 59049bd41f2cSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 59059bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 59069bd41f2cSmrg else 59079bd41f2cSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' 59089bd41f2cSmrg fi 59099bd41f2cSmrg aix_use_runtimelinking=no 59109bd41f2cSmrg 59119bd41f2cSmrg # Test if we are trying to use run time linking or normal 59129bd41f2cSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 59139bd41f2cSmrg # need to do runtime linking. 5914d075918cSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) 59159bd41f2cSmrg for ld_flag in $LDFLAGS; do 59169bd41f2cSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 59179bd41f2cSmrg aix_use_runtimelinking=yes 59189bd41f2cSmrg break 59199bd41f2cSmrg fi 59209bd41f2cSmrg done 59219bd41f2cSmrg ;; 59229bd41f2cSmrg esac 59239bd41f2cSmrg 59249bd41f2cSmrg exp_sym_flag='-bexport' 59259bd41f2cSmrg no_entry_flag='-bnoentry' 59269bd41f2cSmrg fi 59279bd41f2cSmrg 59289bd41f2cSmrg # When large executables or shared objects are built, AIX ld can 59299bd41f2cSmrg # have problems creating the table of contents. If linking a library 59309bd41f2cSmrg # or program results in "error TOC overflow" add -mminimal-toc to 59319bd41f2cSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 59329bd41f2cSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 59339bd41f2cSmrg 59349bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 59359bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 59369bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 59379bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 59389bd41f2cSmrg 59399bd41f2cSmrg if test "$GCC" = yes; then 59409bd41f2cSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 59419bd41f2cSmrg # We only want to do this on AIX 4.2 and lower, the check 59429bd41f2cSmrg # below for broken collect2 doesn't work under 4.3+ 59439bd41f2cSmrg collect2name=`${CC} -print-prog-name=collect2` 59449bd41f2cSmrg if test -f "$collect2name" && \ 59459bd41f2cSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 59469bd41f2cSmrg then 59479bd41f2cSmrg # We have reworked collect2 59489bd41f2cSmrg : 59499bd41f2cSmrg else 59509bd41f2cSmrg # We have old collect2 59519bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 59529bd41f2cSmrg # It fails to find uninstalled libraries when the uninstalled 59539bd41f2cSmrg # path is not listed in the libpath. Setting hardcode_minus_L 59549bd41f2cSmrg # to unsupported forces relinking 59559bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 59569bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 59579bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 59589bd41f2cSmrg fi 59599bd41f2cSmrg ;; 59609bd41f2cSmrg esac 59619bd41f2cSmrg shared_flag='-shared' 59629bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 59639bd41f2cSmrg shared_flag="$shared_flag "'${wl}-G' 59649bd41f2cSmrg fi 59659bd41f2cSmrg else 59669bd41f2cSmrg # not using gcc 59679bd41f2cSmrg if test "$host_cpu" = ia64; then 59689bd41f2cSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 59699bd41f2cSmrg # chokes on -Wl,-G. The following line is correct: 59709bd41f2cSmrg shared_flag='-G' 59719bd41f2cSmrg else 59729bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 59739bd41f2cSmrg shared_flag='${wl}-G' 59749bd41f2cSmrg else 59759bd41f2cSmrg shared_flag='${wl}-bM:SRE' 59769bd41f2cSmrg fi 59779bd41f2cSmrg fi 59789bd41f2cSmrg fi 59799bd41f2cSmrg 59809bd41f2cSmrg # It seems that -bexpall does not export symbols beginning with 59819bd41f2cSmrg # underscore (_), so it is better to generate a list of symbols to export. 59829bd41f2cSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 59839bd41f2cSmrg if test "$aix_use_runtimelinking" = yes; then 59849bd41f2cSmrg # Warning - without using the other runtime loading flags (-brtl), 59859bd41f2cSmrg # -berok will link without error, but may produce a broken library. 59869bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 59879bd41f2cSmrg # Determine the default libpath from the value encoded in an empty executable. 59889bd41f2cSmrg _LT_AC_SYS_LIBPATH_AIX 59899bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 59909bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 59919bd41f2cSmrg else 59929bd41f2cSmrg if test "$host_cpu" = ia64; then 59939bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 59949bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 59959bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 59969bd41f2cSmrg else 59979bd41f2cSmrg # Determine the default libpath from the value encoded in an empty executable. 59989bd41f2cSmrg _LT_AC_SYS_LIBPATH_AIX 59999bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 60009bd41f2cSmrg # Warning - without using the other run time loading flags, 60019bd41f2cSmrg # -berok will link without error, but may produce a broken library. 60029bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 60039bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 60049bd41f2cSmrg # Exported symbols can be pulled into shared objects from archives 60059bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 60069bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 60079bd41f2cSmrg # This is similar to how AIX traditionally builds its shared libraries. 60089bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 60099bd41f2cSmrg fi 60109bd41f2cSmrg fi 60119bd41f2cSmrg ;; 60129bd41f2cSmrg 60139bd41f2cSmrg amigaos*) 60149bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 60159bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 60169bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 60179bd41f2cSmrg # see comment about different semantics on the GNU ld section 60189bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 60199bd41f2cSmrg ;; 60209bd41f2cSmrg 60219bd41f2cSmrg bsdi[[45]]*) 60229bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 60239bd41f2cSmrg ;; 60249bd41f2cSmrg 60259bd41f2cSmrg cygwin* | mingw* | pw32*) 60269bd41f2cSmrg # When not using gcc, we currently assume that we are using 60279bd41f2cSmrg # Microsoft Visual C++. 60289bd41f2cSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 60299bd41f2cSmrg # no search path for DLLs. 60309bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 60319bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 60329bd41f2cSmrg # Tell ltmain to make .lib files, not .a files. 60339bd41f2cSmrg libext=lib 60349bd41f2cSmrg # Tell ltmain to make .dll files, not .so files. 60359bd41f2cSmrg shrext_cmds=".dll" 60369bd41f2cSmrg # FIXME: Setting linknames here is a bad hack. 60379bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 60389bd41f2cSmrg # The linker will automatically build a .lib file if we build a DLL. 60399bd41f2cSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 60409bd41f2cSmrg # FIXME: Should let the user specify the lib program. 60419bd41f2cSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' 60429bd41f2cSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 60439bd41f2cSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 60449bd41f2cSmrg ;; 60459bd41f2cSmrg 60469bd41f2cSmrg darwin* | rhapsody*) 60479bd41f2cSmrg case $host_os in 60489bd41f2cSmrg rhapsody* | darwin1.[[012]]) 60499bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 60509bd41f2cSmrg ;; 60519bd41f2cSmrg *) # Darwin 1.3 on 60529bd41f2cSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 60539bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 60549bd41f2cSmrg else 60559bd41f2cSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 60569bd41f2cSmrg 10.[[012]]) 60579bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 60589bd41f2cSmrg ;; 60599bd41f2cSmrg 10.*) 60609bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 60619bd41f2cSmrg ;; 60629bd41f2cSmrg esac 60639bd41f2cSmrg fi 60649bd41f2cSmrg ;; 60659bd41f2cSmrg esac 60669bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 60679bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 60689bd41f2cSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 60699bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 60709bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 60719bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 60729bd41f2cSmrg if test "$GCC" = yes ; then 60739bd41f2cSmrg output_verbose_link_cmd='echo' 6074d075918cSmrg _LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 6075d075918cSmrg _LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 6076d075918cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 6077d075918cSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 60789bd41f2cSmrg else 60799bd41f2cSmrg case $cc_basename in 60809bd41f2cSmrg xlc*) 60819bd41f2cSmrg output_verbose_link_cmd='echo' 60829bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' 60839bd41f2cSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 60849bd41f2cSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 60859bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 60869bd41f2cSmrg _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}' 60879bd41f2cSmrg ;; 60889bd41f2cSmrg *) 60899bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 60909bd41f2cSmrg ;; 60919bd41f2cSmrg esac 60929bd41f2cSmrg fi 60939bd41f2cSmrg ;; 60949bd41f2cSmrg 60959bd41f2cSmrg dgux*) 60969bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 60979bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 60989bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 60999bd41f2cSmrg ;; 61009bd41f2cSmrg 61019bd41f2cSmrg freebsd1*) 61029bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 61039bd41f2cSmrg ;; 61049bd41f2cSmrg 61059bd41f2cSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 61069bd41f2cSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 61079bd41f2cSmrg # does not break anything, and helps significantly (at the cost of a little 61089bd41f2cSmrg # extra space). 61099bd41f2cSmrg freebsd2.2*) 61109bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 61119bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 61129bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61139bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61149bd41f2cSmrg ;; 61159bd41f2cSmrg 61169bd41f2cSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 61179bd41f2cSmrg freebsd2*) 61189bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 61199bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61209bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 61219bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61229bd41f2cSmrg ;; 61239bd41f2cSmrg 61249bd41f2cSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 61259bd41f2cSmrg freebsd* | dragonfly*) 61269bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 61279bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 61289bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61299bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61309bd41f2cSmrg ;; 61319bd41f2cSmrg 61329bd41f2cSmrg hpux9*) 61339bd41f2cSmrg if test "$GCC" = yes; then 61349bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 61359bd41f2cSmrg else 61369bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 61379bd41f2cSmrg fi 61389bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 61399bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 61409bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61419bd41f2cSmrg 61429bd41f2cSmrg # hardcode_minus_L: Not really in the search PATH, 61439bd41f2cSmrg # but as the default location of the library. 61449bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 61459bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 61469bd41f2cSmrg ;; 61479bd41f2cSmrg 61489bd41f2cSmrg hpux10*) 61499bd41f2cSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 61509bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 61519bd41f2cSmrg else 61529bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 61539bd41f2cSmrg fi 61549bd41f2cSmrg if test "$with_gnu_ld" = no; then 61559bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 61569bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 61579bd41f2cSmrg 61589bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61599bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 61609bd41f2cSmrg 61619bd41f2cSmrg # hardcode_minus_L: Not really in the search PATH, 61629bd41f2cSmrg # but as the default location of the library. 61639bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 61649bd41f2cSmrg fi 61659bd41f2cSmrg ;; 61669bd41f2cSmrg 61679bd41f2cSmrg hpux11*) 61689bd41f2cSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 61699bd41f2cSmrg case $host_cpu in 61709bd41f2cSmrg hppa*64*) 61719bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 61729bd41f2cSmrg ;; 61739bd41f2cSmrg ia64*) 61749bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 61759bd41f2cSmrg ;; 61769bd41f2cSmrg *) 61779bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 61789bd41f2cSmrg ;; 61799bd41f2cSmrg esac 61809bd41f2cSmrg else 61819bd41f2cSmrg case $host_cpu in 61829bd41f2cSmrg hppa*64*) 61839bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 61849bd41f2cSmrg ;; 61859bd41f2cSmrg ia64*) 61869bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 61879bd41f2cSmrg ;; 61889bd41f2cSmrg *) 61899bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 61909bd41f2cSmrg ;; 61919bd41f2cSmrg esac 61929bd41f2cSmrg fi 61939bd41f2cSmrg if test "$with_gnu_ld" = no; then 61949bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 61959bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 61969bd41f2cSmrg 61979bd41f2cSmrg case $host_cpu in 61989bd41f2cSmrg hppa*64*|ia64*) 61999bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 62009bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 62019bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 62029bd41f2cSmrg ;; 62039bd41f2cSmrg *) 62049bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 62059bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 62069bd41f2cSmrg 62079bd41f2cSmrg # hardcode_minus_L: Not really in the search PATH, 62089bd41f2cSmrg # but as the default location of the library. 62099bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 62109bd41f2cSmrg ;; 62119bd41f2cSmrg esac 62129bd41f2cSmrg fi 62139bd41f2cSmrg ;; 62149bd41f2cSmrg 62159bd41f2cSmrg irix5* | irix6* | nonstopux*) 62169bd41f2cSmrg if test "$GCC" = yes; then 62179bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $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' 62189bd41f2cSmrg else 62199bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 62209bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 62219bd41f2cSmrg fi 62229bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 62239bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 62249bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 62259bd41f2cSmrg ;; 62269bd41f2cSmrg 62279bd41f2cSmrg netbsd*) 62289bd41f2cSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 62299bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 62309bd41f2cSmrg else 62319bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 62329bd41f2cSmrg fi 62339bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 62349bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 62359bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 62369bd41f2cSmrg ;; 62379bd41f2cSmrg 62389bd41f2cSmrg newsos6) 62399bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 62409bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 62419bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 62429bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 62439bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 62449bd41f2cSmrg ;; 62459bd41f2cSmrg 62469bd41f2cSmrg openbsd*) 62479bd41f2cSmrg if test -f /usr/libexec/ld.so; then 62489bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 62499bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 62509bd41f2cSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 62519bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 62529bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 62539bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 62549bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 62559bd41f2cSmrg else 62569bd41f2cSmrg case $host_os in 62579bd41f2cSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 62589bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 62599bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 62609bd41f2cSmrg ;; 62619bd41f2cSmrg *) 62629bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 62639bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 62649bd41f2cSmrg ;; 62659bd41f2cSmrg esac 62669bd41f2cSmrg fi 62679bd41f2cSmrg else 62689bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 62699bd41f2cSmrg fi 62709bd41f2cSmrg ;; 62719bd41f2cSmrg 62729bd41f2cSmrg os2*) 62739bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 62749bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 62759bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 62769bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 62779bd41f2cSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 62789bd41f2cSmrg ;; 62799bd41f2cSmrg 62809bd41f2cSmrg osf3*) 62819bd41f2cSmrg if test "$GCC" = yes; then 62829bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 62839bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 62849bd41f2cSmrg else 62859bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 62869bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 62879bd41f2cSmrg fi 62889bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 62899bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 62909bd41f2cSmrg ;; 62919bd41f2cSmrg 62929bd41f2cSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 62939bd41f2cSmrg if test "$GCC" = yes; then 62949bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 62959bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $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' 62969bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 62979bd41f2cSmrg else 62989bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 62999bd41f2cSmrg _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' 63009bd41f2cSmrg _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~ 63019bd41f2cSmrg $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' 63029bd41f2cSmrg 63039bd41f2cSmrg # Both c and cxx compiler support -rpath directly 63049bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 63059bd41f2cSmrg fi 63069bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 63079bd41f2cSmrg ;; 63089bd41f2cSmrg 63099bd41f2cSmrg solaris*) 63109bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 63119bd41f2cSmrg if test "$GCC" = yes; then 63129bd41f2cSmrg wlarc='${wl}' 63139bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 63149bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 63159bd41f2cSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 63169bd41f2cSmrg else 63179bd41f2cSmrg wlarc='' 63189bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 63199bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 63209bd41f2cSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 63219bd41f2cSmrg fi 63229bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 63239bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63249bd41f2cSmrg case $host_os in 63259bd41f2cSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 63269bd41f2cSmrg *) 63279bd41f2cSmrg # The compiler driver will combine and reorder linker options, 63289bd41f2cSmrg # but understands `-z linker_flag'. GCC discards it without `$wl', 63299bd41f2cSmrg # but is careful enough not to reorder. 63309bd41f2cSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 63319bd41f2cSmrg if test "$GCC" = yes; then 63329bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 63339bd41f2cSmrg else 63349bd41f2cSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' 63359bd41f2cSmrg fi 63369bd41f2cSmrg ;; 63379bd41f2cSmrg esac 63389bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 63399bd41f2cSmrg ;; 63409bd41f2cSmrg 63419bd41f2cSmrg sunos4*) 63429bd41f2cSmrg if test "x$host_vendor" = xsequent; then 63439bd41f2cSmrg # Use $CC to link under sequent, because it throws in some extra .o 63449bd41f2cSmrg # files that make .init and .fini sections work. 63459bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 63469bd41f2cSmrg else 63479bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 63489bd41f2cSmrg fi 63499bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 63509bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 63519bd41f2cSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 63529bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63539bd41f2cSmrg ;; 63549bd41f2cSmrg 63559bd41f2cSmrg sysv4) 63569bd41f2cSmrg case $host_vendor in 63579bd41f2cSmrg sni) 63589bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 63599bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 63609bd41f2cSmrg ;; 63619bd41f2cSmrg siemens) 63629bd41f2cSmrg ## LD is ld it makes a PLAMLIB 63639bd41f2cSmrg ## CC just makes a GrossModule. 63649bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 63659bd41f2cSmrg _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 63669bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 63679bd41f2cSmrg ;; 63689bd41f2cSmrg motorola) 63699bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 63709bd41f2cSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 63719bd41f2cSmrg ;; 63729bd41f2cSmrg esac 63739bd41f2cSmrg runpath_var='LD_RUN_PATH' 63749bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63759bd41f2cSmrg ;; 63769bd41f2cSmrg 63779bd41f2cSmrg sysv4.3*) 63789bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 63799bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63809bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 63819bd41f2cSmrg ;; 63829bd41f2cSmrg 63839bd41f2cSmrg sysv4*MP*) 63849bd41f2cSmrg if test -d /usr/nec; then 63859bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 63869bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63879bd41f2cSmrg runpath_var=LD_RUN_PATH 63889bd41f2cSmrg hardcode_runpath_var=yes 63899bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 63909bd41f2cSmrg fi 63919bd41f2cSmrg ;; 63929bd41f2cSmrg 63939bd41f2cSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 63949bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 63959bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 63969bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 63979bd41f2cSmrg runpath_var='LD_RUN_PATH' 63989bd41f2cSmrg 63999bd41f2cSmrg if test "$GCC" = yes; then 64009bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 64019bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 64029bd41f2cSmrg else 64039bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 64049bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 64059bd41f2cSmrg fi 64069bd41f2cSmrg ;; 64079bd41f2cSmrg 64089bd41f2cSmrg sysv5* | sco3.2v5* | sco5v6*) 64099bd41f2cSmrg # Note: We can NOT use -z defs as we might desire, because we do not 64109bd41f2cSmrg # link with -lc, and that would cause any symbols used from libc to 64119bd41f2cSmrg # always be unresolved, which means just about no library would 64129bd41f2cSmrg # ever link correctly. If we're not using GNU ld we use -z text 64139bd41f2cSmrg # though, which does catch some bad symbols but isn't as heavy-handed 64149bd41f2cSmrg # as -z defs. 64159bd41f2cSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 64169bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 64179bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 64189bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 64199bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 64209bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 64219bd41f2cSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 64229bd41f2cSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 64239bd41f2cSmrg runpath_var='LD_RUN_PATH' 64249bd41f2cSmrg 64259bd41f2cSmrg if test "$GCC" = yes; then 64269bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 64279bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 64289bd41f2cSmrg else 64299bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 64309bd41f2cSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 64319bd41f2cSmrg fi 64329bd41f2cSmrg ;; 64339bd41f2cSmrg 64349bd41f2cSmrg uts4*) 64359bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 64369bd41f2cSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 64379bd41f2cSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 64389bd41f2cSmrg ;; 64399bd41f2cSmrg 64409bd41f2cSmrg *) 64419bd41f2cSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 64429bd41f2cSmrg ;; 64439bd41f2cSmrg esac 64449bd41f2cSmrg fi 64459bd41f2cSmrg]) 64469bd41f2cSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 64479bd41f2cSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 64489bd41f2cSmrg 64499bd41f2cSmrg# 64509bd41f2cSmrg# Do we need to explicitly link libc? 64519bd41f2cSmrg# 64529bd41f2cSmrgcase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 64539bd41f2cSmrgx|xyes) 64549bd41f2cSmrg # Assume -lc should be added 64559bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 64569bd41f2cSmrg 64579bd41f2cSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 64589bd41f2cSmrg case $_LT_AC_TAGVAR(archive_cmds, $1) in 64599bd41f2cSmrg *'~'*) 64609bd41f2cSmrg # FIXME: we may have to deal with multi-command sequences. 64619bd41f2cSmrg ;; 64629bd41f2cSmrg '$CC '*) 64639bd41f2cSmrg # Test whether the compiler implicitly links with -lc since on some 64649bd41f2cSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 64659bd41f2cSmrg # to ld, don't add -lc before -lgcc. 64669bd41f2cSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 64679bd41f2cSmrg $rm conftest* 64689bd41f2cSmrg echo "$lt_simple_compile_test_code" > conftest.$ac_ext 64699bd41f2cSmrg 64709bd41f2cSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 64719bd41f2cSmrg soname=conftest 64729bd41f2cSmrg lib=conftest 64739bd41f2cSmrg libobjs=conftest.$ac_objext 64749bd41f2cSmrg deplibs= 64759bd41f2cSmrg wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 64769bd41f2cSmrg pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 64779bd41f2cSmrg compiler_flags=-v 64789bd41f2cSmrg linker_flags=-v 64799bd41f2cSmrg verstring= 64809bd41f2cSmrg output_objdir=. 64819bd41f2cSmrg libname=conftest 64829bd41f2cSmrg lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 64839bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 64849bd41f2cSmrg if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 64859bd41f2cSmrg then 64869bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 64879bd41f2cSmrg else 64889bd41f2cSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 64899bd41f2cSmrg fi 64909bd41f2cSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 64919bd41f2cSmrg else 64929bd41f2cSmrg cat conftest.err 1>&5 64939bd41f2cSmrg fi 64949bd41f2cSmrg $rm conftest* 64959bd41f2cSmrg AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 64969bd41f2cSmrg ;; 64979bd41f2cSmrg esac 64989bd41f2cSmrg fi 64999bd41f2cSmrg ;; 65009bd41f2cSmrgesac 65019bd41f2cSmrg])# AC_LIBTOOL_PROG_LD_SHLIBS 65029bd41f2cSmrg 65039bd41f2cSmrg 65049bd41f2cSmrg# _LT_AC_FILE_LTDLL_C 65059bd41f2cSmrg# ------------------- 65069bd41f2cSmrg# Be careful that the start marker always follows a newline. 65079bd41f2cSmrgAC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 65089bd41f2cSmrg# /* ltdll.c starts here */ 65099bd41f2cSmrg# #define WIN32_LEAN_AND_MEAN 65109bd41f2cSmrg# #include <windows.h> 65119bd41f2cSmrg# #undef WIN32_LEAN_AND_MEAN 65129bd41f2cSmrg# #include <stdio.h> 65139bd41f2cSmrg# 65149bd41f2cSmrg# #ifndef __CYGWIN__ 65159bd41f2cSmrg# # ifdef __CYGWIN32__ 65169bd41f2cSmrg# # define __CYGWIN__ __CYGWIN32__ 65179bd41f2cSmrg# # endif 65189bd41f2cSmrg# #endif 65199bd41f2cSmrg# 65209bd41f2cSmrg# #ifdef __cplusplus 65219bd41f2cSmrg# extern "C" { 65229bd41f2cSmrg# #endif 65239bd41f2cSmrg# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 65249bd41f2cSmrg# #ifdef __cplusplus 65259bd41f2cSmrg# } 65269bd41f2cSmrg# #endif 65279bd41f2cSmrg# 65289bd41f2cSmrg# #ifdef __CYGWIN__ 65299bd41f2cSmrg# #include <cygwin/cygwin_dll.h> 65309bd41f2cSmrg# DECLARE_CYGWIN_DLL( DllMain ); 65319bd41f2cSmrg# #endif 65329bd41f2cSmrg# HINSTANCE __hDllInstance_base; 65339bd41f2cSmrg# 65349bd41f2cSmrg# BOOL APIENTRY 65359bd41f2cSmrg# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 65369bd41f2cSmrg# { 65379bd41f2cSmrg# __hDllInstance_base = hInst; 65389bd41f2cSmrg# return TRUE; 65399bd41f2cSmrg# } 65409bd41f2cSmrg# /* ltdll.c ends here */ 65419bd41f2cSmrg])# _LT_AC_FILE_LTDLL_C 65429bd41f2cSmrg 65439bd41f2cSmrg 65449bd41f2cSmrg# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 65459bd41f2cSmrg# --------------------------------- 65469bd41f2cSmrgAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 65479bd41f2cSmrg 65489bd41f2cSmrg 65499bd41f2cSmrg# old names 65509bd41f2cSmrgAC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 65519bd41f2cSmrgAC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 65529bd41f2cSmrgAC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 65539bd41f2cSmrgAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 65549bd41f2cSmrgAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 65559bd41f2cSmrgAC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 65569bd41f2cSmrgAC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 65579bd41f2cSmrg 65589bd41f2cSmrg# This is just to silence aclocal about the macro not being used 65599bd41f2cSmrgifelse([AC_DISABLE_FAST_INSTALL]) 65609bd41f2cSmrg 65619bd41f2cSmrgAC_DEFUN([LT_AC_PROG_GCJ], 65629bd41f2cSmrg[AC_CHECK_TOOL(GCJ, gcj, no) 65639bd41f2cSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 65649bd41f2cSmrg AC_SUBST(GCJFLAGS) 65659bd41f2cSmrg]) 65669bd41f2cSmrg 65679bd41f2cSmrgAC_DEFUN([LT_AC_PROG_RC], 65689bd41f2cSmrg[AC_CHECK_TOOL(RC, windres, no) 65699bd41f2cSmrg]) 65709bd41f2cSmrg 65719bd41f2cSmrg 65729bd41f2cSmrg# Cheap backport of AS_EXECUTABLE_P and required macros 65739bd41f2cSmrg# from Autoconf 2.59; we should not use $as_executable_p directly. 65749bd41f2cSmrg 65759bd41f2cSmrg# _AS_TEST_PREPARE 65769bd41f2cSmrg# ---------------- 65779bd41f2cSmrgm4_ifndef([_AS_TEST_PREPARE], 65789bd41f2cSmrg[m4_defun([_AS_TEST_PREPARE], 65799bd41f2cSmrg[if test -x / >/dev/null 2>&1; then 65809bd41f2cSmrg as_executable_p='test -x' 65819bd41f2cSmrgelse 65829bd41f2cSmrg as_executable_p='test -f' 65839bd41f2cSmrgfi 65849bd41f2cSmrg])])# _AS_TEST_PREPARE 65859bd41f2cSmrg 65869bd41f2cSmrg# AS_EXECUTABLE_P 65879bd41f2cSmrg# --------------- 65889bd41f2cSmrg# Check whether a file is executable. 65899bd41f2cSmrgm4_ifndef([AS_EXECUTABLE_P], 65909bd41f2cSmrg[m4_defun([AS_EXECUTABLE_P], 65919bd41f2cSmrg[AS_REQUIRE([_AS_TEST_PREPARE])dnl 65929bd41f2cSmrg$as_executable_p $1[]dnl 65939bd41f2cSmrg])])# AS_EXECUTABLE_P 65949bd41f2cSmrg 65959bd41f2cSmrg# NOTE: This macro has been submitted for inclusion into # 65969bd41f2cSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 65979bd41f2cSmrg# a released version of Autoconf we should remove this # 65989bd41f2cSmrg# macro and use it instead. # 65999bd41f2cSmrg# LT_AC_PROG_SED 66009bd41f2cSmrg# -------------- 66019bd41f2cSmrg# Check for a fully-functional sed program, that truncates 66029bd41f2cSmrg# as few characters as possible. Prefer GNU sed if found. 66039bd41f2cSmrgAC_DEFUN([LT_AC_PROG_SED], 66049bd41f2cSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 66059bd41f2cSmrgAC_CACHE_VAL(lt_cv_path_SED, 66069bd41f2cSmrg[# Loop through the user's path and test for sed and gsed. 66079bd41f2cSmrg# Then use that list of sed's as ones to test for truncation. 66089bd41f2cSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 66099bd41f2cSmrgfor as_dir in $PATH 66109bd41f2cSmrgdo 66119bd41f2cSmrg IFS=$as_save_IFS 66129bd41f2cSmrg test -z "$as_dir" && as_dir=. 66139bd41f2cSmrg for lt_ac_prog in sed gsed; do 66149bd41f2cSmrg for ac_exec_ext in '' $ac_executable_extensions; do 66159bd41f2cSmrg if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then 66169bd41f2cSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 66179bd41f2cSmrg fi 66189bd41f2cSmrg done 66199bd41f2cSmrg done 66209bd41f2cSmrgdone 66219bd41f2cSmrgIFS=$as_save_IFS 66229bd41f2cSmrglt_ac_max=0 66239bd41f2cSmrglt_ac_count=0 66249bd41f2cSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 66259bd41f2cSmrg# along with /bin/sed that truncates output. 66269bd41f2cSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 66279bd41f2cSmrg test ! -f $lt_ac_sed && continue 66289bd41f2cSmrg cat /dev/null > conftest.in 66299bd41f2cSmrg lt_ac_count=0 66309bd41f2cSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 66319bd41f2cSmrg # Check for GNU sed and select it if it is found. 66329bd41f2cSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 66339bd41f2cSmrg lt_cv_path_SED=$lt_ac_sed 66349bd41f2cSmrg break 66359bd41f2cSmrg fi 66369bd41f2cSmrg while true; do 66379bd41f2cSmrg cat conftest.in conftest.in >conftest.tmp 66389bd41f2cSmrg mv conftest.tmp conftest.in 66399bd41f2cSmrg cp conftest.in conftest.nl 66409bd41f2cSmrg echo >>conftest.nl 66419bd41f2cSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 66429bd41f2cSmrg cmp -s conftest.out conftest.nl || break 66439bd41f2cSmrg # 10000 chars as input seems more than enough 66449bd41f2cSmrg test $lt_ac_count -gt 10 && break 66459bd41f2cSmrg lt_ac_count=`expr $lt_ac_count + 1` 66469bd41f2cSmrg if test $lt_ac_count -gt $lt_ac_max; then 66479bd41f2cSmrg lt_ac_max=$lt_ac_count 66489bd41f2cSmrg lt_cv_path_SED=$lt_ac_sed 66499bd41f2cSmrg fi 66509bd41f2cSmrg done 66519bd41f2cSmrgdone 66529bd41f2cSmrg]) 66539bd41f2cSmrgSED=$lt_cv_path_SED 66549bd41f2cSmrgAC_SUBST([SED]) 66559bd41f2cSmrgAC_MSG_RESULT([$SED]) 66569bd41f2cSmrg]) 66579bd41f2cSmrg 66589bd41f2cSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 66599bd41f2cSmrg# 66609bd41f2cSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 66619bd41f2cSmrg# 66629bd41f2cSmrg# This program is free software; you can redistribute it and/or modify 66639bd41f2cSmrg# it under the terms of the GNU General Public License as published by 66649bd41f2cSmrg# the Free Software Foundation; either version 2 of the License, or 66659bd41f2cSmrg# (at your option) any later version. 66669bd41f2cSmrg# 66679bd41f2cSmrg# This program is distributed in the hope that it will be useful, but 66689bd41f2cSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 66699bd41f2cSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 66709bd41f2cSmrg# General Public License for more details. 66719bd41f2cSmrg# 66729bd41f2cSmrg# You should have received a copy of the GNU General Public License 66739bd41f2cSmrg# along with this program; if not, write to the Free Software 66749bd41f2cSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 66759bd41f2cSmrg# 66769bd41f2cSmrg# As a special exception to the GNU General Public License, if you 66779bd41f2cSmrg# distribute this file as part of a program that contains a 66789bd41f2cSmrg# configuration script generated by Autoconf, you may include it under 66799bd41f2cSmrg# the same distribution terms that you use for the rest of that program. 66809bd41f2cSmrg 66819bd41f2cSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 66829bd41f2cSmrg# ---------------------------------- 66839bd41f2cSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 66849bd41f2cSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 66859bd41f2cSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 66869bd41f2cSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 66879bd41f2cSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 66889bd41f2cSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 66899bd41f2cSmrgfi 66909bd41f2cSmrgif test -n "$PKG_CONFIG"; then 66919bd41f2cSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 66929bd41f2cSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 66939bd41f2cSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 66949bd41f2cSmrg AC_MSG_RESULT([yes]) 66959bd41f2cSmrg else 66969bd41f2cSmrg AC_MSG_RESULT([no]) 66979bd41f2cSmrg PKG_CONFIG="" 66989bd41f2cSmrg fi 66999bd41f2cSmrg 67009bd41f2cSmrgfi[]dnl 67019bd41f2cSmrg])# PKG_PROG_PKG_CONFIG 67029bd41f2cSmrg 67039bd41f2cSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 67049bd41f2cSmrg# 67059bd41f2cSmrg# Check to see whether a particular set of modules exists. Similar 67069bd41f2cSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 67079bd41f2cSmrg# 67089bd41f2cSmrg# 67099bd41f2cSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 67109bd41f2cSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 67119bd41f2cSmrg# PKG_CHECK_EXISTS manually 67129bd41f2cSmrg# -------------------------------------------------------------- 67139bd41f2cSmrgAC_DEFUN([PKG_CHECK_EXISTS], 67149bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 67159bd41f2cSmrgif test -n "$PKG_CONFIG" && \ 67169bd41f2cSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 67179bd41f2cSmrg m4_ifval([$2], [$2], [:]) 67189bd41f2cSmrgm4_ifvaln([$3], [else 67199bd41f2cSmrg $3])dnl 67209bd41f2cSmrgfi]) 67219bd41f2cSmrg 67229bd41f2cSmrg 67239bd41f2cSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 67249bd41f2cSmrg# --------------------------------------------- 67259bd41f2cSmrgm4_define([_PKG_CONFIG], 6726d075918cSmrg[if test -n "$$1"; then 6727d075918cSmrg pkg_cv_[]$1="$$1" 6728d075918cSmrg elif test -n "$PKG_CONFIG"; then 6729d075918cSmrg PKG_CHECK_EXISTS([$3], 6730d075918cSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 6731d075918cSmrg [pkg_failed=yes]) 6732d075918cSmrg else 6733d075918cSmrg pkg_failed=untried 67349bd41f2cSmrgfi[]dnl 67359bd41f2cSmrg])# _PKG_CONFIG 67369bd41f2cSmrg 67379bd41f2cSmrg# _PKG_SHORT_ERRORS_SUPPORTED 67389bd41f2cSmrg# ----------------------------- 67399bd41f2cSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 67409bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 67419bd41f2cSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 67429bd41f2cSmrg _pkg_short_errors_supported=yes 67439bd41f2cSmrgelse 67449bd41f2cSmrg _pkg_short_errors_supported=no 67459bd41f2cSmrgfi[]dnl 67469bd41f2cSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 67479bd41f2cSmrg 67489bd41f2cSmrg 67499bd41f2cSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 67509bd41f2cSmrg# [ACTION-IF-NOT-FOUND]) 67519bd41f2cSmrg# 67529bd41f2cSmrg# 67539bd41f2cSmrg# Note that if there is a possibility the first call to 67549bd41f2cSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 67559bd41f2cSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 67569bd41f2cSmrg# 67579bd41f2cSmrg# 67589bd41f2cSmrg# -------------------------------------------------------------- 67599bd41f2cSmrgAC_DEFUN([PKG_CHECK_MODULES], 67609bd41f2cSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 67619bd41f2cSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 67629bd41f2cSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 67639bd41f2cSmrg 67649bd41f2cSmrgpkg_failed=no 67659bd41f2cSmrgAC_MSG_CHECKING([for $1]) 67669bd41f2cSmrg 67679bd41f2cSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 67689bd41f2cSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 67699bd41f2cSmrg 67709bd41f2cSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 67719bd41f2cSmrgand $1[]_LIBS to avoid the need to call pkg-config. 67729bd41f2cSmrgSee the pkg-config man page for more details.]) 67739bd41f2cSmrg 67749bd41f2cSmrgif test $pkg_failed = yes; then 67759bd41f2cSmrg _PKG_SHORT_ERRORS_SUPPORTED 67769bd41f2cSmrg if test $_pkg_short_errors_supported = yes; then 6777d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` 67789bd41f2cSmrg else 6779d075918cSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` 67809bd41f2cSmrg fi 67819bd41f2cSmrg # Put the nasty error message in config.log where it belongs 67829bd41f2cSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 67839bd41f2cSmrg 67849bd41f2cSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 67859bd41f2cSmrg[Package requirements ($2) were not met: 67869bd41f2cSmrg 67879bd41f2cSmrg$$1_PKG_ERRORS 67889bd41f2cSmrg 67899bd41f2cSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 67909bd41f2cSmrginstalled software in a non-standard prefix. 67919bd41f2cSmrg 67929bd41f2cSmrg_PKG_TEXT 67939bd41f2cSmrg])], 67949bd41f2cSmrg [AC_MSG_RESULT([no]) 67959bd41f2cSmrg $4]) 67969bd41f2cSmrgelif test $pkg_failed = untried; then 67979bd41f2cSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 67989bd41f2cSmrg[The pkg-config script could not be found or is too old. Make sure it 67999bd41f2cSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 68009bd41f2cSmrgpath to pkg-config. 68019bd41f2cSmrg 68029bd41f2cSmrg_PKG_TEXT 68039bd41f2cSmrg 68049bd41f2cSmrgTo get pkg-config, see <http://pkg-config.freedesktop.org/>.])], 68059bd41f2cSmrg [$4]) 68069bd41f2cSmrgelse 68079bd41f2cSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 68089bd41f2cSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 68099bd41f2cSmrg AC_MSG_RESULT([yes]) 68109bd41f2cSmrg ifelse([$3], , :, [$3]) 68119bd41f2cSmrgfi[]dnl 68129bd41f2cSmrg])# PKG_CHECK_MODULES 68139bd41f2cSmrg 6814b15a006bSmrgdnl xorg-macros.m4. Generated from xorg-macros.m4.in xorgversion.m4 by configure. 68159bd41f2cSmrgdnl 68169bd41f2cSmrgdnl Copyright 2005-2006 Sun Microsystems, Inc. All rights reserved. 68179bd41f2cSmrgdnl 68189bd41f2cSmrgdnl Permission is hereby granted, free of charge, to any person obtaining a 68199bd41f2cSmrgdnl copy of this software and associated documentation files (the 68209bd41f2cSmrgdnl "Software"), to deal in the Software without restriction, including 68219bd41f2cSmrgdnl without limitation the rights to use, copy, modify, merge, publish, 68229bd41f2cSmrgdnl distribute, and/or sell copies of the Software, and to permit persons 68239bd41f2cSmrgdnl to whom the Software is furnished to do so, provided that the above 68249bd41f2cSmrgdnl copyright notice(s) and this permission notice appear in all copies of 68259bd41f2cSmrgdnl the Software and that both the above copyright notice(s) and this 68269bd41f2cSmrgdnl permission notice appear in supporting documentation. 68279bd41f2cSmrgdnl 68289bd41f2cSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 68299bd41f2cSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 68309bd41f2cSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT 68319bd41f2cSmrgdnl OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 68329bd41f2cSmrgdnl HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL 68339bd41f2cSmrgdnl INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING 68349bd41f2cSmrgdnl FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 68359bd41f2cSmrgdnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 68369bd41f2cSmrgdnl WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 68379bd41f2cSmrgdnl 68389bd41f2cSmrgdnl Except as contained in this notice, the name of a copyright holder 68399bd41f2cSmrgdnl shall not be used in advertising or otherwise to promote the sale, use 68409bd41f2cSmrgdnl or other dealings in this Software without prior written authorization 68419bd41f2cSmrgdnl of the copyright holder. 68429bd41f2cSmrg 68439bd41f2cSmrg# XORG_MACROS_VERSION(required-version) 68449bd41f2cSmrg# ------------------------------------- 68459bd41f2cSmrg# Minimum version: 1.1.0 68469bd41f2cSmrg# 68479bd41f2cSmrg# If you're using a macro added in Version 1.1 or newer, include this in 68489bd41f2cSmrg# your configure.ac with the minimum required version, such as: 68499bd41f2cSmrg# XORG_MACROS_VERSION(1.1) 68509bd41f2cSmrg# 6851b15a006bSmrg# To ensure that this macro is defined, also add: 6852b15a006bSmrg# m4_ifndef([XORG_MACROS_VERSION], 6853b15a006bSmrg# [m4_fatal([must install xorg-macros 1.1 or later before running autoconf/autogen])]) 68549bd41f2cSmrg# 68559bd41f2cSmrg# 68569bd41f2cSmrg# See the "minimum version" comment for each macro you use to see what 68579bd41f2cSmrg# version you require. 6858b15a006bSmrgm4_defun([XORG_MACROS_VERSION],[ 6859b15a006bSmrgm4_define([vers_have], [1.2.2]) 6860b15a006bSmrgm4_define([maj_have], m4_substr(vers_have, 0, m4_index(vers_have, [.]))) 6861b15a006bSmrgm4_define([maj_needed], m4_substr([$1], 0, m4_index([$1], [.]))) 6862b15a006bSmrgm4_if(m4_cmp(maj_have, maj_needed), 0,, 6863b15a006bSmrg [m4_fatal([xorg-macros major version ]maj_needed[ is required but ]vers_have[ found])]) 6864b15a006bSmrgm4_if(m4_version_compare(vers_have, [$1]), -1, 6865b15a006bSmrg [m4_fatal([xorg-macros version $1 or higher is required but ]vers_have[ found])]) 6866b15a006bSmrgm4_undefine([vers_have]) 6867b15a006bSmrgm4_undefine([maj_have]) 6868b15a006bSmrgm4_undefine([maj_needed]) 68699bd41f2cSmrg]) # XORG_MACROS_VERSION 68709bd41f2cSmrg 68719bd41f2cSmrg# XORG_PROG_RAWCPP() 68729bd41f2cSmrg# ------------------ 68739bd41f2cSmrg# Minimum version: 1.0.0 68749bd41f2cSmrg# 68759bd41f2cSmrg# Find cpp program and necessary flags for use in pre-processing text files 68769bd41f2cSmrg# such as man pages and config files 68779bd41f2cSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 68789bd41f2cSmrgAC_REQUIRE([AC_PROG_CPP]) 68799bd41f2cSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 68809bd41f2cSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 68819bd41f2cSmrg 68829bd41f2cSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 68839bd41f2cSmrg# which is not the best choice for supporting other OS'es, but covers most 68849bd41f2cSmrg# of the ones we need for now. 68859bd41f2cSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 68869bd41f2cSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 68879bd41f2cSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 68889bd41f2cSmrg AC_MSG_RESULT([no]) 68899bd41f2cSmrgelse 68909bd41f2cSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 68919bd41f2cSmrg RAWCPPFLAGS=-undef 68929bd41f2cSmrg AC_MSG_RESULT([yes]) 6893b15a006bSmrg # under Cygwin unix is still defined even with -undef 6894b15a006bSmrg elif test `${RAWCPP} -undef -ansi < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 6895b15a006bSmrg RAWCPPFLAGS="-undef -ansi" 6896b15a006bSmrg AC_MSG_RESULT([yes, with -ansi]) 68979bd41f2cSmrg else 68989bd41f2cSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 68999bd41f2cSmrg fi 69009bd41f2cSmrgfi 69019bd41f2cSmrgrm -f conftest.$ac_ext 69029bd41f2cSmrg 69039bd41f2cSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 69049bd41f2cSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 69059bd41f2cSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 69069bd41f2cSmrg AC_MSG_RESULT([no]) 69079bd41f2cSmrgelse 69089bd41f2cSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 69099bd41f2cSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 69109bd41f2cSmrg AC_MSG_RESULT([yes]) 69119bd41f2cSmrg else 69129bd41f2cSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 69139bd41f2cSmrg fi 69149bd41f2cSmrgfi 69159bd41f2cSmrgrm -f conftest.$ac_ext 69169bd41f2cSmrgAC_SUBST(RAWCPPFLAGS) 69179bd41f2cSmrg]) # XORG_PROG_RAWCPP 69189bd41f2cSmrg 69199bd41f2cSmrg# XORG_MANPAGE_SECTIONS() 69209bd41f2cSmrg# ----------------------- 69219bd41f2cSmrg# Minimum version: 1.0.0 69229bd41f2cSmrg# 69239bd41f2cSmrg# Determine which sections man pages go in for the different man page types 69249bd41f2cSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 69259bd41f2cSmrg# Not sure if there's any better way than just hardcoding by OS name. 69269bd41f2cSmrg# Override default settings by setting environment variables 69279bd41f2cSmrg 69289bd41f2cSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 69299bd41f2cSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 69309bd41f2cSmrg 69319bd41f2cSmrgif test x$APP_MAN_SUFFIX = x ; then 69329bd41f2cSmrg APP_MAN_SUFFIX=1 69339bd41f2cSmrgfi 69349bd41f2cSmrgif test x$APP_MAN_DIR = x ; then 69359bd41f2cSmrg APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 69369bd41f2cSmrgfi 69379bd41f2cSmrg 69389bd41f2cSmrgif test x$LIB_MAN_SUFFIX = x ; then 69399bd41f2cSmrg LIB_MAN_SUFFIX=3 69409bd41f2cSmrgfi 69419bd41f2cSmrgif test x$LIB_MAN_DIR = x ; then 69429bd41f2cSmrg LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 69439bd41f2cSmrgfi 69449bd41f2cSmrg 69459bd41f2cSmrgif test x$FILE_MAN_SUFFIX = x ; then 69469bd41f2cSmrg case $host_os in 69479bd41f2cSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 69489bd41f2cSmrg *) FILE_MAN_SUFFIX=5 ;; 69499bd41f2cSmrg esac 69509bd41f2cSmrgfi 69519bd41f2cSmrgif test x$FILE_MAN_DIR = x ; then 69529bd41f2cSmrg FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 69539bd41f2cSmrgfi 69549bd41f2cSmrg 69559bd41f2cSmrgif test x$MISC_MAN_SUFFIX = x ; then 69569bd41f2cSmrg case $host_os in 69579bd41f2cSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 69589bd41f2cSmrg *) MISC_MAN_SUFFIX=7 ;; 69599bd41f2cSmrg esac 69609bd41f2cSmrgfi 69619bd41f2cSmrgif test x$MISC_MAN_DIR = x ; then 69629bd41f2cSmrg MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 69639bd41f2cSmrgfi 69649bd41f2cSmrg 69659bd41f2cSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 69669bd41f2cSmrg case $host_os in 69679bd41f2cSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 69689bd41f2cSmrg *) DRIVER_MAN_SUFFIX=4 ;; 69699bd41f2cSmrg esac 69709bd41f2cSmrgfi 69719bd41f2cSmrgif test x$DRIVER_MAN_DIR = x ; then 69729bd41f2cSmrg DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 69739bd41f2cSmrgfi 69749bd41f2cSmrg 69759bd41f2cSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 69769bd41f2cSmrg case $host_os in 69779bd41f2cSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 69789bd41f2cSmrg *) ADMIN_MAN_SUFFIX=8 ;; 69799bd41f2cSmrg esac 69809bd41f2cSmrgfi 69819bd41f2cSmrgif test x$ADMIN_MAN_DIR = x ; then 69829bd41f2cSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 69839bd41f2cSmrgfi 69849bd41f2cSmrg 69859bd41f2cSmrg 69869bd41f2cSmrgAC_SUBST([APP_MAN_SUFFIX]) 69879bd41f2cSmrgAC_SUBST([LIB_MAN_SUFFIX]) 69889bd41f2cSmrgAC_SUBST([FILE_MAN_SUFFIX]) 69899bd41f2cSmrgAC_SUBST([MISC_MAN_SUFFIX]) 69909bd41f2cSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 69919bd41f2cSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 69929bd41f2cSmrgAC_SUBST([APP_MAN_DIR]) 69939bd41f2cSmrgAC_SUBST([LIB_MAN_DIR]) 69949bd41f2cSmrgAC_SUBST([FILE_MAN_DIR]) 69959bd41f2cSmrgAC_SUBST([MISC_MAN_DIR]) 69969bd41f2cSmrgAC_SUBST([DRIVER_MAN_DIR]) 69979bd41f2cSmrgAC_SUBST([ADMIN_MAN_DIR]) 69989bd41f2cSmrg]) # XORG_MANPAGE_SECTIONS 69999bd41f2cSmrg 70009bd41f2cSmrg# XORG_CHECK_LINUXDOC 70019bd41f2cSmrg# ------------------- 70029bd41f2cSmrg# Minimum version: 1.0.0 70039bd41f2cSmrg# 70049bd41f2cSmrg# Defines the variable MAKE_TEXT if the necessary tools and 70059bd41f2cSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 70069bd41f2cSmrg# Whether or not the necessary tools and files are found can be checked 70079bd41f2cSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 70089bd41f2cSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 7009b15a006bSmrgif test x$XORG_SGML_PATH = x ; then 7010b15a006bSmrg XORG_SGML_PATH=$prefix/share/sgml 7011b15a006bSmrgfi 70129bd41f2cSmrgHAVE_DEFS_ENT= 70139bd41f2cSmrg 70149bd41f2cSmrgif test x"$cross_compiling" = x"yes" ; then 70159bd41f2cSmrg HAVE_DEFS_ENT=no 70169bd41f2cSmrgelse 70179bd41f2cSmrg AC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 70189bd41f2cSmrgfi 70199bd41f2cSmrg 70209bd41f2cSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 70219bd41f2cSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 70229bd41f2cSmrg 70239bd41f2cSmrgAC_MSG_CHECKING([Whether to build documentation]) 70249bd41f2cSmrg 70259bd41f2cSmrgif test x$HAVE_DEFS_ENT != x && test x$LINUXDOC != x ; then 70269bd41f2cSmrg BUILDDOC=yes 70279bd41f2cSmrgelse 70289bd41f2cSmrg BUILDDOC=no 70299bd41f2cSmrgfi 70309bd41f2cSmrg 70319bd41f2cSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 70329bd41f2cSmrg 70339bd41f2cSmrgAC_MSG_RESULT([$BUILDDOC]) 70349bd41f2cSmrg 70359bd41f2cSmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 70369bd41f2cSmrg 70379bd41f2cSmrgif test x$PS2PDF != x && test x$BUILD_PDFDOC != xno; then 70389bd41f2cSmrg BUILDPDFDOC=yes 70399bd41f2cSmrgelse 70409bd41f2cSmrg BUILDPDFDOC=no 70419bd41f2cSmrgfi 70429bd41f2cSmrg 70439bd41f2cSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 70449bd41f2cSmrg 70459bd41f2cSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 70469bd41f2cSmrg 70479bd41f2cSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 70489bd41f2cSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 70499bd41f2cSmrgMAKE_PDF="$PS2PDF" 70509bd41f2cSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $LINUXDOC -B html --split=0" 70519bd41f2cSmrg 70529bd41f2cSmrgAC_SUBST(MAKE_TEXT) 70539bd41f2cSmrgAC_SUBST(MAKE_PS) 70549bd41f2cSmrgAC_SUBST(MAKE_PDF) 70559bd41f2cSmrgAC_SUBST(MAKE_HTML) 70569bd41f2cSmrg]) # XORG_CHECK_LINUXDOC 70579bd41f2cSmrg 70589bd41f2cSmrg# XORG_CHECK_DOCBOOK 70599bd41f2cSmrg# ------------------- 70609bd41f2cSmrg# Minimum version: 1.0.0 70619bd41f2cSmrg# 70629bd41f2cSmrg# Checks for the ability to build output formats from SGML DocBook source. 70639bd41f2cSmrg# For XXX in {TXT, PDF, PS, HTML}, the AM_CONDITIONAL "BUILD_XXXDOC" 70649bd41f2cSmrg# indicates whether the necessary tools and files are found and, if set, 70659bd41f2cSmrg# $(MAKE_XXX) blah.sgml will produce blah.xxx. 70669bd41f2cSmrgAC_DEFUN([XORG_CHECK_DOCBOOK],[ 7067b15a006bSmrgif test x$XORG_SGML_PATH = x ; then 7068b15a006bSmrg XORG_SGML_PATH=$prefix/share/sgml 7069b15a006bSmrgfi 70709bd41f2cSmrgHAVE_DEFS_ENT= 70719bd41f2cSmrgBUILDTXTDOC=no 70729bd41f2cSmrgBUILDPDFDOC=no 70739bd41f2cSmrgBUILDPSDOC=no 70749bd41f2cSmrgBUILDHTMLDOC=no 70759bd41f2cSmrg 70769bd41f2cSmrgAC_CHECK_FILE([$XORG_SGML_PATH/X11/defs.ent], [HAVE_DEFS_ENT=yes]) 70779bd41f2cSmrg 70789bd41f2cSmrgAC_PATH_PROG(DOCBOOKPS, docbook2ps) 70799bd41f2cSmrgAC_PATH_PROG(DOCBOOKPDF, docbook2pdf) 70809bd41f2cSmrgAC_PATH_PROG(DOCBOOKHTML, docbook2html) 70819bd41f2cSmrgAC_PATH_PROG(DOCBOOKTXT, docbook2txt) 70829bd41f2cSmrg 70839bd41f2cSmrgAC_MSG_CHECKING([Whether to build text documentation]) 70849bd41f2cSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKTXT != x && 70859bd41f2cSmrg test x$BUILD_TXTDOC != xno; then 70869bd41f2cSmrg BUILDTXTDOC=yes 70879bd41f2cSmrgfi 70889bd41f2cSmrgAM_CONDITIONAL(BUILD_TXTDOC, [test x$BUILDTXTDOC = xyes]) 70899bd41f2cSmrgAC_MSG_RESULT([$BUILDTXTDOC]) 70909bd41f2cSmrg 70919bd41f2cSmrgAC_MSG_CHECKING([Whether to build PDF documentation]) 70929bd41f2cSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPDF != x && 70939bd41f2cSmrg test x$BUILD_PDFDOC != xno; then 70949bd41f2cSmrg BUILDPDFDOC=yes 70959bd41f2cSmrgfi 70969bd41f2cSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 70979bd41f2cSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 70989bd41f2cSmrg 70999bd41f2cSmrgAC_MSG_CHECKING([Whether to build PostScript documentation]) 71009bd41f2cSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKPS != x && 71019bd41f2cSmrg test x$BUILD_PSDOC != xno; then 71029bd41f2cSmrg BUILDPSDOC=yes 71039bd41f2cSmrgfi 71049bd41f2cSmrgAM_CONDITIONAL(BUILD_PSDOC, [test x$BUILDPSDOC = xyes]) 71059bd41f2cSmrgAC_MSG_RESULT([$BUILDPSDOC]) 71069bd41f2cSmrg 71079bd41f2cSmrgAC_MSG_CHECKING([Whether to build HTML documentation]) 71089bd41f2cSmrgif test x$HAVE_DEFS_ENT != x && test x$DOCBOOKHTML != x && 71099bd41f2cSmrg test x$BUILD_HTMLDOC != xno; then 71109bd41f2cSmrg BUILDHTMLDOC=yes 71119bd41f2cSmrgfi 71129bd41f2cSmrgAM_CONDITIONAL(BUILD_HTMLDOC, [test x$BUILDHTMLDOC = xyes]) 71139bd41f2cSmrgAC_MSG_RESULT([$BUILDHTMLDOC]) 71149bd41f2cSmrg 71159bd41f2cSmrgMAKE_TEXT="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKTXT" 71169bd41f2cSmrgMAKE_PS="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPS" 71179bd41f2cSmrgMAKE_PDF="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKPDF" 71189bd41f2cSmrgMAKE_HTML="SGML_SEARCH_PATH=$XORG_SGML_PATH $DOCBOOKHTML" 71199bd41f2cSmrg 71209bd41f2cSmrgAC_SUBST(MAKE_TEXT) 71219bd41f2cSmrgAC_SUBST(MAKE_PS) 71229bd41f2cSmrgAC_SUBST(MAKE_PDF) 71239bd41f2cSmrgAC_SUBST(MAKE_HTML) 71249bd41f2cSmrg]) # XORG_CHECK_DOCBOOK 71259bd41f2cSmrg 71269bd41f2cSmrg# XORG_CHECK_MALLOC_ZERO 71279bd41f2cSmrg# ---------------------- 71289bd41f2cSmrg# Minimum version: 1.0.0 71299bd41f2cSmrg# 71309bd41f2cSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 71319bd41f2cSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 71329bd41f2cSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 71339bd41f2cSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 71349bd41f2cSmrgAC_ARG_ENABLE(malloc0returnsnull, 71359bd41f2cSmrg AC_HELP_STRING([--enable-malloc0returnsnull], 71369bd41f2cSmrg [malloc(0) returns NULL (default: auto)]), 71379bd41f2cSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 71389bd41f2cSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 71399bd41f2cSmrg 71409bd41f2cSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 71419bd41f2cSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 71429bd41f2cSmrg AC_RUN_IFELSE([ 71439bd41f2cSmrgchar *malloc(); 71449bd41f2cSmrgchar *realloc(); 71459bd41f2cSmrgchar *calloc(); 71469bd41f2cSmrgmain() { 71479bd41f2cSmrg char *m0, *r0, *c0, *p; 71489bd41f2cSmrg m0 = malloc(0); 71499bd41f2cSmrg p = malloc(10); 71509bd41f2cSmrg r0 = realloc(p,0); 71519bd41f2cSmrg c0 = calloc(0); 71529bd41f2cSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 71539bd41f2cSmrg}], 71549bd41f2cSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 71559bd41f2cSmrg [MALLOC_ZERO_RETURNS_NULL=no]) 71569bd41f2cSmrgfi 71579bd41f2cSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 71589bd41f2cSmrg 71599bd41f2cSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 71609bd41f2cSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 71619bd41f2cSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 71629bd41f2cSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 71639bd41f2cSmrgelse 71649bd41f2cSmrg MALLOC_ZERO_CFLAGS="" 71659bd41f2cSmrg XMALLOC_ZERO_CFLAGS="" 71669bd41f2cSmrg XTMALLOC_ZERO_CFLAGS="" 71679bd41f2cSmrgfi 71689bd41f2cSmrg 71699bd41f2cSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 71709bd41f2cSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 71719bd41f2cSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 71729bd41f2cSmrg]) # XORG_CHECK_MALLOC_ZERO 71739bd41f2cSmrg 71749bd41f2cSmrg# XORG_WITH_LINT() 71759bd41f2cSmrg# ---------------- 71769bd41f2cSmrg# Minimum version: 1.1.0 71779bd41f2cSmrg# 71789bd41f2cSmrg# Sets up flags for source checkers such as lint and sparse if --with-lint 71799bd41f2cSmrg# is specified. (Use --with-lint=sparse for sparse.) 71809bd41f2cSmrg# Sets $LINT to name of source checker passed with --with-lint (default: lint) 71819bd41f2cSmrg# Sets $LINT_FLAGS to flags to pass to source checker 71829bd41f2cSmrg# Sets LINT automake conditional if enabled (default: disabled) 71839bd41f2cSmrg# 71849bd41f2cSmrgAC_DEFUN([XORG_WITH_LINT],[ 71859bd41f2cSmrg 71869bd41f2cSmrg# Allow checking code with lint, sparse, etc. 71879bd41f2cSmrgAC_ARG_WITH(lint, [AC_HELP_STRING([--with-lint], 71889bd41f2cSmrg [Use a lint-style source code checker (default: disabled)])], 71899bd41f2cSmrg [use_lint=$withval], [use_lint=no]) 71909bd41f2cSmrgif test "x$use_lint" = "xyes" ; then 71919bd41f2cSmrg LINT="lint" 71929bd41f2cSmrgelse 71939bd41f2cSmrg LINT="$use_lint" 71949bd41f2cSmrgfi 71959bd41f2cSmrgif test "x$LINT_FLAGS" = "x" -a "x$LINT" != "xno" ; then 71969bd41f2cSmrg case $LINT in 71979bd41f2cSmrg lint|*/lint) 71989bd41f2cSmrg case $host_os in 71999bd41f2cSmrg solaris*) 72009bd41f2cSmrg LINT_FLAGS="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 72019bd41f2cSmrg ;; 72029bd41f2cSmrg esac 72039bd41f2cSmrg ;; 72049bd41f2cSmrg esac 72059bd41f2cSmrgfi 72069bd41f2cSmrg 72079bd41f2cSmrgAC_SUBST(LINT) 72089bd41f2cSmrgAC_SUBST(LINT_FLAGS) 72099bd41f2cSmrgAM_CONDITIONAL(LINT, [test x$LINT != xno]) 72109bd41f2cSmrg 72119bd41f2cSmrg]) # XORG_WITH_LINT 72129bd41f2cSmrg 72139bd41f2cSmrg# XORG_LINT_LIBRARY(LIBNAME) 72149bd41f2cSmrg# -------------------------- 72159bd41f2cSmrg# Minimum version: 1.1.0 72169bd41f2cSmrg# 72179bd41f2cSmrg# Sets up flags for building lint libraries for checking programs that call 72189bd41f2cSmrg# functions in the library. 72199bd41f2cSmrg# Disabled by default, enable with --enable-lint-library 72209bd41f2cSmrg# Sets: 72219bd41f2cSmrg# @LINTLIB@ - name of lint library file to make 72229bd41f2cSmrg# MAKE_LINT_LIB - automake conditional 72239bd41f2cSmrg# 72249bd41f2cSmrg 72259bd41f2cSmrgAC_DEFUN([XORG_LINT_LIBRARY],[ 72269bd41f2cSmrgAC_REQUIRE([XORG_WITH_LINT]) 72279bd41f2cSmrg# Build lint "library" for more indepth checks of programs calling this library 72289bd41f2cSmrgAC_ARG_ENABLE(lint-library, [AC_HELP_STRING([--enable-lint-library], 72299bd41f2cSmrg [Create lint library (default: disabled)])], 72309bd41f2cSmrg [make_lint_lib=$enableval], [make_lint_lib=no]) 72319bd41f2cSmrgif test "x$make_lint_lib" != "xno" ; then 72329bd41f2cSmrg if test "x$LINT" = "xno" ; then 72339bd41f2cSmrg AC_MSG_ERROR([Cannot make lint library without --with-lint]) 72349bd41f2cSmrg fi 72359bd41f2cSmrg if test "x$make_lint_lib" = "xyes" ; then 72369bd41f2cSmrg LINTLIB=llib-l$1.ln 72379bd41f2cSmrg else 72389bd41f2cSmrg LINTLIB=$make_lint_lib 72399bd41f2cSmrg fi 72409bd41f2cSmrgfi 72419bd41f2cSmrgAC_SUBST(LINTLIB) 72429bd41f2cSmrgAM_CONDITIONAL(MAKE_LINT_LIB, [test x$make_lint_lib != xno]) 72439bd41f2cSmrg 72449bd41f2cSmrg]) # XORG_LINT_LIBRARY 72459bd41f2cSmrg 7246b15a006bSmrg# XORG_CWARNFLAGS 7247b15a006bSmrg# --------------- 7248b15a006bSmrg# Minimum version: 1.2.0 7249b15a006bSmrg# 7250b15a006bSmrg# Defines CWARNFLAGS to enable C compiler warnings. 7251b15a006bSmrg# 7252b15a006bSmrgAC_DEFUN([XORG_CWARNFLAGS], [ 7253b15a006bSmrgAC_REQUIRE([AC_PROG_CC]) 7254b15a006bSmrgif test "x$GCC" = xyes ; then 7255b15a006bSmrg CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 7256b15a006bSmrg-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 7257b15a006bSmrg-Wbad-function-cast" 7258b15a006bSmrg case `$CC -dumpversion` in 7259b15a006bSmrg 3.4.* | 4.*) 7260b15a006bSmrg CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 7261b15a006bSmrg ;; 7262b15a006bSmrg esac 7263b15a006bSmrgelse 7264b15a006bSmrg AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"]) 7265b15a006bSmrg if test "x$SUNCC" = "xyes"; then 7266b15a006bSmrg CWARNFLAGS="-v" 7267b15a006bSmrg fi 7268b15a006bSmrgfi 7269b15a006bSmrgAC_SUBST(CWARNFLAGS) 7270b15a006bSmrg]) # XORG_CWARNFLAGS 72719bd41f2cSmrgdnl Copyright 2005 Red Hat, Inc 72729bd41f2cSmrgdnl 72739bd41f2cSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 72749bd41f2cSmrgdnl documentation for any purpose is hereby granted without fee, provided that 72759bd41f2cSmrgdnl the above copyright notice appear in all copies and that both that 72769bd41f2cSmrgdnl copyright notice and this permission notice appear in supporting 72779bd41f2cSmrgdnl documentation. 72789bd41f2cSmrgdnl 72799bd41f2cSmrgdnl The above copyright notice and this permission notice shall be included 72809bd41f2cSmrgdnl in all copies or substantial portions of the Software. 72819bd41f2cSmrgdnl 72829bd41f2cSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 72839bd41f2cSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 72849bd41f2cSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 72859bd41f2cSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 72869bd41f2cSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 72879bd41f2cSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 72889bd41f2cSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 72899bd41f2cSmrgdnl 72909bd41f2cSmrgdnl Except as contained in this notice, the name of the copyright holders shall 72919bd41f2cSmrgdnl not be used in advertising or otherwise to promote the sale, use or 72929bd41f2cSmrgdnl other dealings in this Software without prior written authorization 72939bd41f2cSmrgdnl from the copyright holders. 72949bd41f2cSmrgdnl 72959bd41f2cSmrg 72969bd41f2cSmrg# XORG_RELEASE_VERSION 72979bd41f2cSmrg# -------------------- 72989bd41f2cSmrg# Adds --with/without-release-string and changes the PACKAGE and 72999bd41f2cSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 73009bd41f2cSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. Also 73019bd41f2cSmrg# defines PACKAGE_VERSION_{MAJOR,MINOR,PATCHLEVEL} for modules to use. 73029bd41f2cSmrg 73039bd41f2cSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 73049bd41f2cSmrg AC_ARG_WITH(release-version, 73059bd41f2cSmrg AC_HELP_STRING([--with-release-version=STRING], 73069bd41f2cSmrg [Use release version string in package name]), 73079bd41f2cSmrg [RELEASE_VERSION="$withval"], 73089bd41f2cSmrg [RELEASE_VERSION=""]) 73099bd41f2cSmrg if test "x$RELEASE_VERSION" != "x"; then 73109bd41f2cSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 73119bd41f2cSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 73129bd41f2cSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 73139bd41f2cSmrg fi 73149bd41f2cSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MAJOR], 73159bd41f2cSmrg [`echo $PACKAGE_VERSION | cut -d . -f 1`], 73169bd41f2cSmrg [Major version of this package]) 73179bd41f2cSmrg PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 73189bd41f2cSmrg if test "x$PVM" = "x"; then 73199bd41f2cSmrg PVM="0" 73209bd41f2cSmrg fi 73219bd41f2cSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_MINOR], 73229bd41f2cSmrg [$PVM], 73239bd41f2cSmrg [Minor version of this package]) 73249bd41f2cSmrg PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 73259bd41f2cSmrg if test "x$PVP" = "x"; then 73269bd41f2cSmrg PVP="0" 73279bd41f2cSmrg fi 73289bd41f2cSmrg AC_DEFINE_UNQUOTED([PACKAGE_VERSION_PATCHLEVEL], 73299bd41f2cSmrg [$PVP], 73309bd41f2cSmrg [Patch version of this package]) 73319bd41f2cSmrg]) 73329bd41f2cSmrg 7333b15a006bSmrg# XORG_CHANGELOG() 7334b15a006bSmrg# ---------------- 7335b15a006bSmrg# Minimum version: 1.2.0 7336b15a006bSmrg# 7337b15a006bSmrg# Defines the variable CHANGELOG_CMD as the command to generate 7338b15a006bSmrg# ChangeLog from git. 7339b15a006bSmrg# 7340b15a006bSmrg# Arrange that distcleancheck ignores ChangeLog left over by distclean. 7341b15a006bSmrg# 7342b15a006bSmrgAC_DEFUN([XORG_CHANGELOG], [ 7343b15a006bSmrgCHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > .changelog.tmp && \ 7344b15a006bSmrgmv .changelog.tmp ChangeLog) || (rm -f .changelog.tmp; touch ChangeLog; \ 7345b15a006bSmrgecho 'git directory not found: installing possibly empty changelog.' >&2)" 7346b15a006bSmrgAC_SUBST([CHANGELOG_CMD]) 7347b15a006bSmrgAC_SUBST([distcleancheck_listfiles], ['find . -type f ! -name ChangeLog -print']) 7348b15a006bSmrg]) # XORG_CHANGELOG 7349b15a006bSmrg 7350b15a006bSmrgdnl Copyright 2005 Red Hat, Inc 7351b15a006bSmrgdnl 7352b15a006bSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 7353b15a006bSmrgdnl documentation for any purpose is hereby granted without fee, provided that 7354b15a006bSmrgdnl the above copyright notice appear in all copies and that both that 7355b15a006bSmrgdnl copyright notice and this permission notice appear in supporting 7356b15a006bSmrgdnl documentation. 7357b15a006bSmrgdnl 7358b15a006bSmrgdnl The above copyright notice and this permission notice shall be included 7359b15a006bSmrgdnl in all copies or substantial portions of the Software. 7360b15a006bSmrgdnl 7361b15a006bSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 7362b15a006bSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 7363b15a006bSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 7364b15a006bSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 7365b15a006bSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 7366b15a006bSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 7367b15a006bSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 7368b15a006bSmrgdnl 7369b15a006bSmrgdnl Except as contained in this notice, the name of the copyright holders shall 7370b15a006bSmrgdnl not be used in advertising or otherwise to promote the sale, use or 7371b15a006bSmrgdnl other dealings in this Software without prior written authorization 7372b15a006bSmrgdnl from the copyright holders. 7373b15a006bSmrgdnl 7374b15a006bSmrg 7375b15a006bSmrg# XORG_DRIVER_CHECK_EXT() 7376b15a006bSmrg# -------------------------- 7377b15a006bSmrg# Checks for the $1 define in xorg-server.h (from the sdk). If it 7378b15a006bSmrg# is defined, then add $1 to $REQUIRED_MODULES. 7379b15a006bSmrg 7380b15a006bSmrgAC_DEFUN([XORG_DRIVER_CHECK_EXT],[ 7381b15a006bSmrg SAVE_CFLAGS="$CFLAGS" 7382b15a006bSmrg CFLAGS="$CFLAGS -I`pkg-config --variable=sdkdir xorg-server`" 7383b15a006bSmrg AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ 7384b15a006bSmrg#include "xorg-server.h" 7385b15a006bSmrg#if !defined $1 7386b15a006bSmrg#error $1 not defined 7387b15a006bSmrg#endif 7388b15a006bSmrg ]])], 7389b15a006bSmrg [_EXT_CHECK=yes], 7390b15a006bSmrg [_EXT_CHECK=no]) 7391b15a006bSmrg CFLAGS="$SAVE_CFLAGS" 7392b15a006bSmrg AC_MSG_CHECKING([if $1 is defined]) 7393b15a006bSmrg AC_MSG_RESULT([$_EXT_CHECK]) 7394b15a006bSmrg if test "$_EXT_CHECK" != no; then 7395b15a006bSmrg REQUIRED_MODULES="$REQUIRED_MODULES $2" 7396b15a006bSmrg fi 7397b15a006bSmrg]) 7398b15a006bSmrg 7399d075918cSmrg# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. 74009bd41f2cSmrg# 74019bd41f2cSmrg# This file is free software; the Free Software Foundation 74029bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 74039bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 74049bd41f2cSmrg 74059bd41f2cSmrg# AM_AUTOMAKE_VERSION(VERSION) 74069bd41f2cSmrg# ---------------------------- 74079bd41f2cSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 74089bd41f2cSmrg# generated from the m4 files accompanying Automake X.Y. 74099bd41f2cSmrg# (This private macro should not be called outside this file.) 74109bd41f2cSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], 74119bd41f2cSmrg[am__api_version='1.10' 74129bd41f2cSmrgdnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to 74139bd41f2cSmrgdnl require some minimum version. Point them to the right macro. 7414d075918cSmrgm4_if([$1], [1.10.1], [], 74159bd41f2cSmrg [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl 74169bd41f2cSmrg]) 74179bd41f2cSmrg 74189bd41f2cSmrg# _AM_AUTOCONF_VERSION(VERSION) 74199bd41f2cSmrg# ----------------------------- 74209bd41f2cSmrg# aclocal traces this macro to find the Autoconf version. 74219bd41f2cSmrg# This is a private macro too. Using m4_define simplifies 74229bd41f2cSmrg# the logic in aclocal, which can simply ignore this definition. 74239bd41f2cSmrgm4_define([_AM_AUTOCONF_VERSION], []) 74249bd41f2cSmrg 74259bd41f2cSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 74269bd41f2cSmrg# ------------------------------- 74279bd41f2cSmrg# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. 74289bd41f2cSmrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 74299bd41f2cSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 7430d075918cSmrg[AM_AUTOMAKE_VERSION([1.10.1])dnl 7431d075918cSmrgm4_ifndef([AC_AUTOCONF_VERSION], 7432d075918cSmrg [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl 7433d075918cSmrg_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) 74349bd41f2cSmrg 74359bd41f2cSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 74369bd41f2cSmrg 74379bd41f2cSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 74389bd41f2cSmrg# 74399bd41f2cSmrg# This file is free software; the Free Software Foundation 74409bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 74419bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 74429bd41f2cSmrg 74439bd41f2cSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 74449bd41f2cSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 74459bd41f2cSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 74469bd41f2cSmrg# 74479bd41f2cSmrg# Of course, Automake must honor this variable whenever it calls a 74489bd41f2cSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 74499bd41f2cSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 74509bd41f2cSmrg# depending on how configure is run. This is pretty annoying, since 74519bd41f2cSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 74529bd41f2cSmrg# source directory, any form will work fine, but in subdirectories a 74539bd41f2cSmrg# relative path needs to be adjusted first. 74549bd41f2cSmrg# 74559bd41f2cSmrg# $ac_aux_dir/missing 74569bd41f2cSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 74579bd41f2cSmrg# $top_srcdir/$ac_aux_dir/missing 74589bd41f2cSmrg# fails if $ac_aux_dir is absolute, 74599bd41f2cSmrg# fails when called from a subdirectory in a VPATH build with 74609bd41f2cSmrg# a relative $ac_aux_dir 74619bd41f2cSmrg# 74629bd41f2cSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 74639bd41f2cSmrg# are both prefixed by $srcdir. In an in-source build this is usually 74649bd41f2cSmrg# harmless because $srcdir is `.', but things will broke when you 74659bd41f2cSmrg# start a VPATH build or use an absolute $srcdir. 74669bd41f2cSmrg# 74679bd41f2cSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 74689bd41f2cSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 74699bd41f2cSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 74709bd41f2cSmrg# and then we would define $MISSING as 74719bd41f2cSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 74729bd41f2cSmrg# This will work as long as MISSING is not called from configure, because 74739bd41f2cSmrg# unfortunately $(top_srcdir) has no meaning in configure. 74749bd41f2cSmrg# However there are other variables, like CC, which are often used in 74759bd41f2cSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 74769bd41f2cSmrg# 74779bd41f2cSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 74789bd41f2cSmrg# absolute PATH. The drawback is that using absolute paths prevent a 74799bd41f2cSmrg# configured tree to be moved without reconfiguration. 74809bd41f2cSmrg 74819bd41f2cSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 74829bd41f2cSmrg[dnl Rely on autoconf to set up CDPATH properly. 74839bd41f2cSmrgAC_PREREQ([2.50])dnl 74849bd41f2cSmrg# expand $ac_aux_dir to an absolute path 74859bd41f2cSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 74869bd41f2cSmrg]) 74879bd41f2cSmrg 74889bd41f2cSmrg# AM_CONDITIONAL -*- Autoconf -*- 74899bd41f2cSmrg 74909bd41f2cSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 74919bd41f2cSmrg# Free Software Foundation, Inc. 74929bd41f2cSmrg# 74939bd41f2cSmrg# This file is free software; the Free Software Foundation 74949bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 74959bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 74969bd41f2cSmrg 74979bd41f2cSmrg# serial 8 74989bd41f2cSmrg 74999bd41f2cSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 75009bd41f2cSmrg# ------------------------------------- 75019bd41f2cSmrg# Define a conditional. 75029bd41f2cSmrgAC_DEFUN([AM_CONDITIONAL], 75039bd41f2cSmrg[AC_PREREQ(2.52)dnl 75049bd41f2cSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 75059bd41f2cSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 75069bd41f2cSmrgAC_SUBST([$1_TRUE])dnl 75079bd41f2cSmrgAC_SUBST([$1_FALSE])dnl 75089bd41f2cSmrg_AM_SUBST_NOTMAKE([$1_TRUE])dnl 75099bd41f2cSmrg_AM_SUBST_NOTMAKE([$1_FALSE])dnl 75109bd41f2cSmrgif $2; then 75119bd41f2cSmrg $1_TRUE= 75129bd41f2cSmrg $1_FALSE='#' 75139bd41f2cSmrgelse 75149bd41f2cSmrg $1_TRUE='#' 75159bd41f2cSmrg $1_FALSE= 75169bd41f2cSmrgfi 75179bd41f2cSmrgAC_CONFIG_COMMANDS_PRE( 75189bd41f2cSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 75199bd41f2cSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 75209bd41f2cSmrgUsually this means the macro was only invoked conditionally.]]) 75219bd41f2cSmrgfi])]) 75229bd41f2cSmrg 75239bd41f2cSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 75249bd41f2cSmrg# Free Software Foundation, Inc. 75259bd41f2cSmrg# 75269bd41f2cSmrg# This file is free software; the Free Software Foundation 75279bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 75289bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 75299bd41f2cSmrg 75309bd41f2cSmrg# serial 9 75319bd41f2cSmrg 75329bd41f2cSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 75339bd41f2cSmrg# written in clear, in which case automake, when reading aclocal.m4, 75349bd41f2cSmrg# will think it sees a *use*, and therefore will trigger all it's 75359bd41f2cSmrg# C support machinery. Also note that it means that autoscan, seeing 75369bd41f2cSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 75379bd41f2cSmrg 75389bd41f2cSmrg 75399bd41f2cSmrg# _AM_DEPENDENCIES(NAME) 75409bd41f2cSmrg# ---------------------- 75419bd41f2cSmrg# See how the compiler implements dependency checking. 75429bd41f2cSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 75439bd41f2cSmrg# We try a few techniques and use that to set a single cache variable. 75449bd41f2cSmrg# 75459bd41f2cSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 75469bd41f2cSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 75479bd41f2cSmrg# dependency, and given that the user is not expected to run this macro, 75489bd41f2cSmrg# just rely on AC_PROG_CC. 75499bd41f2cSmrgAC_DEFUN([_AM_DEPENDENCIES], 75509bd41f2cSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 75519bd41f2cSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 75529bd41f2cSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 75539bd41f2cSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 75549bd41f2cSmrg 75559bd41f2cSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 75569bd41f2cSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 75579bd41f2cSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 75589bd41f2cSmrg [$1], UPC, [depcc="$UPC" am_compiler_list=], 75599bd41f2cSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 75609bd41f2cSmrg [depcc="$$1" am_compiler_list=]) 75619bd41f2cSmrg 75629bd41f2cSmrgAC_CACHE_CHECK([dependency style of $depcc], 75639bd41f2cSmrg [am_cv_$1_dependencies_compiler_type], 75649bd41f2cSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 75659bd41f2cSmrg # We make a subdir and do the tests there. Otherwise we can end up 75669bd41f2cSmrg # making bogus files that we don't know about and never remove. For 75679bd41f2cSmrg # instance it was reported that on HP-UX the gcc test will end up 75689bd41f2cSmrg # making a dummy file named `D' -- because `-MD' means `put the output 75699bd41f2cSmrg # in D'. 75709bd41f2cSmrg mkdir conftest.dir 75719bd41f2cSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 75729bd41f2cSmrg # using a relative directory. 75739bd41f2cSmrg cp "$am_depcomp" conftest.dir 75749bd41f2cSmrg cd conftest.dir 75759bd41f2cSmrg # We will build objects and dependencies in a subdirectory because 75769bd41f2cSmrg # it helps to detect inapplicable dependency modes. For instance 75779bd41f2cSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 75789bd41f2cSmrg # side effect of compilation, but ICC will put the dependencies in 75799bd41f2cSmrg # the current directory while Tru64 will put them in the object 75809bd41f2cSmrg # directory. 75819bd41f2cSmrg mkdir sub 75829bd41f2cSmrg 75839bd41f2cSmrg am_cv_$1_dependencies_compiler_type=none 75849bd41f2cSmrg if test "$am_compiler_list" = ""; then 75859bd41f2cSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 75869bd41f2cSmrg fi 75879bd41f2cSmrg for depmode in $am_compiler_list; do 75889bd41f2cSmrg # Setup a source with many dependencies, because some compilers 75899bd41f2cSmrg # like to wrap large dependency lists on column 80 (with \), and 75909bd41f2cSmrg # we should not choose a depcomp mode which is confused by this. 75919bd41f2cSmrg # 75929bd41f2cSmrg # We need to recreate these files for each test, as the compiler may 75939bd41f2cSmrg # overwrite some of them when testing with obscure command lines. 75949bd41f2cSmrg # This happens at least with the AIX C compiler. 75959bd41f2cSmrg : > sub/conftest.c 75969bd41f2cSmrg for i in 1 2 3 4 5 6; do 75979bd41f2cSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 75989bd41f2cSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 75999bd41f2cSmrg # Solaris 8's {/usr,}/bin/sh. 76009bd41f2cSmrg touch sub/conftst$i.h 76019bd41f2cSmrg done 76029bd41f2cSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 76039bd41f2cSmrg 76049bd41f2cSmrg case $depmode in 76059bd41f2cSmrg nosideeffect) 76069bd41f2cSmrg # after this tag, mechanisms are not by side-effect, so they'll 76079bd41f2cSmrg # only be used when explicitly requested 76089bd41f2cSmrg if test "x$enable_dependency_tracking" = xyes; then 76099bd41f2cSmrg continue 76109bd41f2cSmrg else 76119bd41f2cSmrg break 76129bd41f2cSmrg fi 76139bd41f2cSmrg ;; 76149bd41f2cSmrg none) break ;; 76159bd41f2cSmrg esac 76169bd41f2cSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 76179bd41f2cSmrg # mode. It turns out that the SunPro C++ compiler does not properly 76189bd41f2cSmrg # handle `-M -o', and we need to detect this. 76199bd41f2cSmrg if depmode=$depmode \ 76209bd41f2cSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 76219bd41f2cSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 76229bd41f2cSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 76239bd41f2cSmrg >/dev/null 2>conftest.err && 76249bd41f2cSmrg grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 76259bd41f2cSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 76269bd41f2cSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 76279bd41f2cSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 76289bd41f2cSmrg # icc doesn't choke on unknown options, it will just issue warnings 76299bd41f2cSmrg # or remarks (even with -Werror). So we grep stderr for any message 76309bd41f2cSmrg # that says an option was ignored or not supported. 76319bd41f2cSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 76329bd41f2cSmrg # icc: Command line warning: ignoring option '-M'; no argument required 76339bd41f2cSmrg # The diagnosis changed in icc 8.0: 76349bd41f2cSmrg # icc: Command line remark: option '-MP' not supported 76359bd41f2cSmrg if (grep 'ignoring option' conftest.err || 76369bd41f2cSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 76379bd41f2cSmrg am_cv_$1_dependencies_compiler_type=$depmode 76389bd41f2cSmrg break 76399bd41f2cSmrg fi 76409bd41f2cSmrg fi 76419bd41f2cSmrg done 76429bd41f2cSmrg 76439bd41f2cSmrg cd .. 76449bd41f2cSmrg rm -rf conftest.dir 76459bd41f2cSmrgelse 76469bd41f2cSmrg am_cv_$1_dependencies_compiler_type=none 76479bd41f2cSmrgfi 76489bd41f2cSmrg]) 76499bd41f2cSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 76509bd41f2cSmrgAM_CONDITIONAL([am__fastdep$1], [ 76519bd41f2cSmrg test "x$enable_dependency_tracking" != xno \ 76529bd41f2cSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 76539bd41f2cSmrg]) 76549bd41f2cSmrg 76559bd41f2cSmrg 76569bd41f2cSmrg# AM_SET_DEPDIR 76579bd41f2cSmrg# ------------- 76589bd41f2cSmrg# Choose a directory name for dependency files. 76599bd41f2cSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 76609bd41f2cSmrgAC_DEFUN([AM_SET_DEPDIR], 76619bd41f2cSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 76629bd41f2cSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 76639bd41f2cSmrg]) 76649bd41f2cSmrg 76659bd41f2cSmrg 76669bd41f2cSmrg# AM_DEP_TRACK 76679bd41f2cSmrg# ------------ 76689bd41f2cSmrgAC_DEFUN([AM_DEP_TRACK], 76699bd41f2cSmrg[AC_ARG_ENABLE(dependency-tracking, 76709bd41f2cSmrg[ --disable-dependency-tracking speeds up one-time build 76719bd41f2cSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 76729bd41f2cSmrgif test "x$enable_dependency_tracking" != xno; then 76739bd41f2cSmrg am_depcomp="$ac_aux_dir/depcomp" 76749bd41f2cSmrg AMDEPBACKSLASH='\' 76759bd41f2cSmrgfi 76769bd41f2cSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 76779bd41f2cSmrgAC_SUBST([AMDEPBACKSLASH])dnl 76789bd41f2cSmrg_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl 76799bd41f2cSmrg]) 76809bd41f2cSmrg 76819bd41f2cSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 76829bd41f2cSmrg 76839bd41f2cSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 76849bd41f2cSmrg# Free Software Foundation, Inc. 76859bd41f2cSmrg# 76869bd41f2cSmrg# This file is free software; the Free Software Foundation 76879bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 76889bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 76899bd41f2cSmrg 76909bd41f2cSmrg#serial 3 76919bd41f2cSmrg 76929bd41f2cSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 76939bd41f2cSmrg# ------------------------------ 76949bd41f2cSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 76959bd41f2cSmrg[for mf in $CONFIG_FILES; do 76969bd41f2cSmrg # Strip MF so we end up with the name of the file. 76979bd41f2cSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 76989bd41f2cSmrg # Check whether this is an Automake generated Makefile or not. 76999bd41f2cSmrg # We used to match only the files named `Makefile.in', but 77009bd41f2cSmrg # some people rename them; so instead we look at the file content. 77019bd41f2cSmrg # Grep'ing the first line is not enough: some people post-process 77029bd41f2cSmrg # each Makefile.in and add a new line on top of each file to say so. 77039bd41f2cSmrg # Grep'ing the whole file is not good either: AIX grep has a line 77049bd41f2cSmrg # limit of 2048, but all sed's we know have understand at least 4000. 7705d075918cSmrg if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 77069bd41f2cSmrg dirpart=`AS_DIRNAME("$mf")` 77079bd41f2cSmrg else 77089bd41f2cSmrg continue 77099bd41f2cSmrg fi 77109bd41f2cSmrg # Extract the definition of DEPDIR, am__include, and am__quote 77119bd41f2cSmrg # from the Makefile without running `make'. 77129bd41f2cSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 77139bd41f2cSmrg test -z "$DEPDIR" && continue 77149bd41f2cSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 77159bd41f2cSmrg test -z "am__include" && continue 77169bd41f2cSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 77179bd41f2cSmrg # When using ansi2knr, U may be empty or an underscore; expand it 77189bd41f2cSmrg U=`sed -n 's/^U = //p' < "$mf"` 77199bd41f2cSmrg # Find all dependency output files, they are included files with 77209bd41f2cSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 77219bd41f2cSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 77229bd41f2cSmrg # expansion. 77239bd41f2cSmrg for file in `sed -n " 77249bd41f2cSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 77259bd41f2cSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 77269bd41f2cSmrg # Make sure the directory exists. 77279bd41f2cSmrg test -f "$dirpart/$file" && continue 77289bd41f2cSmrg fdir=`AS_DIRNAME(["$file"])` 77299bd41f2cSmrg AS_MKDIR_P([$dirpart/$fdir]) 77309bd41f2cSmrg # echo "creating $dirpart/$file" 77319bd41f2cSmrg echo '# dummy' > "$dirpart/$file" 77329bd41f2cSmrg done 77339bd41f2cSmrgdone 77349bd41f2cSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 77359bd41f2cSmrg 77369bd41f2cSmrg 77379bd41f2cSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 77389bd41f2cSmrg# ----------------------------- 77399bd41f2cSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 77409bd41f2cSmrg# 77419bd41f2cSmrg# This code is only required when automatic dependency tracking 77429bd41f2cSmrg# is enabled. FIXME. This creates each `.P' file that we will 77439bd41f2cSmrg# need in order to bootstrap the dependency handling code. 77449bd41f2cSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 77459bd41f2cSmrg[AC_CONFIG_COMMANDS([depfiles], 77469bd41f2cSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 77479bd41f2cSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 77489bd41f2cSmrg]) 77499bd41f2cSmrg 77509bd41f2cSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 77519bd41f2cSmrg# Free Software Foundation, Inc. 77529bd41f2cSmrg# 77539bd41f2cSmrg# This file is free software; the Free Software Foundation 77549bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 77559bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 77569bd41f2cSmrg 77579bd41f2cSmrg# serial 8 77589bd41f2cSmrg 77599bd41f2cSmrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 77609bd41f2cSmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 77619bd41f2cSmrg 77629bd41f2cSmrg# Do all the work for Automake. -*- Autoconf -*- 77639bd41f2cSmrg 77649bd41f2cSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 7765d075918cSmrg# 2005, 2006, 2008 Free Software Foundation, Inc. 77669bd41f2cSmrg# 77679bd41f2cSmrg# This file is free software; the Free Software Foundation 77689bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 77699bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 77709bd41f2cSmrg 7771d075918cSmrg# serial 13 77729bd41f2cSmrg 77739bd41f2cSmrg# This macro actually does too much. Some checks are only needed if 77749bd41f2cSmrg# your package does certain things. But this isn't really a big deal. 77759bd41f2cSmrg 77769bd41f2cSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 77779bd41f2cSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 77789bd41f2cSmrg# ----------------------------------------------- 77799bd41f2cSmrg# The call with PACKAGE and VERSION arguments is the old style 77809bd41f2cSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 77819bd41f2cSmrg# and VERSION should now be passed to AC_INIT and removed from 77829bd41f2cSmrg# the call to AM_INIT_AUTOMAKE. 77839bd41f2cSmrg# We support both call styles for the transition. After 77849bd41f2cSmrg# the next Automake release, Autoconf can make the AC_INIT 77859bd41f2cSmrg# arguments mandatory, and then we can depend on a new Autoconf 77869bd41f2cSmrg# release and drop the old call support. 77879bd41f2cSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 77889bd41f2cSmrg[AC_PREREQ([2.60])dnl 77899bd41f2cSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 77909bd41f2cSmrgdnl the ones we care about. 77919bd41f2cSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 77929bd41f2cSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 77939bd41f2cSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 77949bd41f2cSmrgif test "`cd $srcdir && pwd`" != "`pwd`"; then 77959bd41f2cSmrg # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 77969bd41f2cSmrg # is not polluted with repeated "-I." 77979bd41f2cSmrg AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl 77989bd41f2cSmrg # test to see if srcdir already configured 77999bd41f2cSmrg if test -f $srcdir/config.status; then 78009bd41f2cSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 78019bd41f2cSmrg fi 78029bd41f2cSmrgfi 78039bd41f2cSmrg 78049bd41f2cSmrg# test whether we have cygpath 78059bd41f2cSmrgif test -z "$CYGPATH_W"; then 78069bd41f2cSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 78079bd41f2cSmrg CYGPATH_W='cygpath -w' 78089bd41f2cSmrg else 78099bd41f2cSmrg CYGPATH_W=echo 78109bd41f2cSmrg fi 78119bd41f2cSmrgfi 78129bd41f2cSmrgAC_SUBST([CYGPATH_W]) 78139bd41f2cSmrg 78149bd41f2cSmrg# Define the identity of the package. 78159bd41f2cSmrgdnl Distinguish between old-style and new-style calls. 78169bd41f2cSmrgm4_ifval([$2], 78179bd41f2cSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 78189bd41f2cSmrg AC_SUBST([PACKAGE], [$1])dnl 78199bd41f2cSmrg AC_SUBST([VERSION], [$2])], 78209bd41f2cSmrg[_AM_SET_OPTIONS([$1])dnl 78219bd41f2cSmrgdnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. 78229bd41f2cSmrgm4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, 78239bd41f2cSmrg [m4_fatal([AC_INIT should be called with package and version arguments])])dnl 78249bd41f2cSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 78259bd41f2cSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 78269bd41f2cSmrg 78279bd41f2cSmrg_AM_IF_OPTION([no-define],, 78289bd41f2cSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 78299bd41f2cSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 78309bd41f2cSmrg 78319bd41f2cSmrg# Some tools Automake needs. 78329bd41f2cSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 78339bd41f2cSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 78349bd41f2cSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 78359bd41f2cSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 78369bd41f2cSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 78379bd41f2cSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 78389bd41f2cSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 78399bd41f2cSmrgAM_PROG_INSTALL_SH 78409bd41f2cSmrgAM_PROG_INSTALL_STRIP 78419bd41f2cSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 78429bd41f2cSmrg# We need awk for the "check" target. The system "awk" is bad on 78439bd41f2cSmrg# some platforms. 78449bd41f2cSmrgAC_REQUIRE([AC_PROG_AWK])dnl 78459bd41f2cSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 78469bd41f2cSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 78479bd41f2cSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 78489bd41f2cSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 78499bd41f2cSmrg [_AM_PROG_TAR([v7])])]) 78509bd41f2cSmrg_AM_IF_OPTION([no-dependencies],, 78519bd41f2cSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 78529bd41f2cSmrg [_AM_DEPENDENCIES(CC)], 78539bd41f2cSmrg [define([AC_PROG_CC], 78549bd41f2cSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 78559bd41f2cSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 78569bd41f2cSmrg [_AM_DEPENDENCIES(CXX)], 78579bd41f2cSmrg [define([AC_PROG_CXX], 78589bd41f2cSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 78599bd41f2cSmrgAC_PROVIDE_IFELSE([AC_PROG_OBJC], 78609bd41f2cSmrg [_AM_DEPENDENCIES(OBJC)], 78619bd41f2cSmrg [define([AC_PROG_OBJC], 78629bd41f2cSmrg defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl 78639bd41f2cSmrg]) 78649bd41f2cSmrg]) 78659bd41f2cSmrg 78669bd41f2cSmrg 78679bd41f2cSmrg# When config.status generates a header, we must update the stamp-h file. 78689bd41f2cSmrg# This file resides in the same directory as the config header 78699bd41f2cSmrg# that is generated. The stamp files are numbered to have different names. 78709bd41f2cSmrg 78719bd41f2cSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 78729bd41f2cSmrg# loop where config.status creates the headers, so we can generate 78739bd41f2cSmrg# our stamp files there. 78749bd41f2cSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 78759bd41f2cSmrg[# Compute $1's index in $config_headers. 7876d075918cSmrg_am_arg=$1 78779bd41f2cSmrg_am_stamp_count=1 78789bd41f2cSmrgfor _am_header in $config_headers :; do 78799bd41f2cSmrg case $_am_header in 7880d075918cSmrg $_am_arg | $_am_arg:* ) 78819bd41f2cSmrg break ;; 78829bd41f2cSmrg * ) 78839bd41f2cSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 78849bd41f2cSmrg esac 78859bd41f2cSmrgdone 7886d075918cSmrgecho "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) 78879bd41f2cSmrg 78889bd41f2cSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 78899bd41f2cSmrg# 78909bd41f2cSmrg# This file is free software; the Free Software Foundation 78919bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 78929bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 78939bd41f2cSmrg 78949bd41f2cSmrg# AM_PROG_INSTALL_SH 78959bd41f2cSmrg# ------------------ 78969bd41f2cSmrg# Define $install_sh. 78979bd41f2cSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 78989bd41f2cSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 78999bd41f2cSmrginstall_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} 79009bd41f2cSmrgAC_SUBST(install_sh)]) 79019bd41f2cSmrg 79029bd41f2cSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 79039bd41f2cSmrg# 79049bd41f2cSmrg# This file is free software; the Free Software Foundation 79059bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79069bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 79079bd41f2cSmrg 79089bd41f2cSmrg# serial 2 79099bd41f2cSmrg 79109bd41f2cSmrg# Check whether the underlying file-system supports filenames 79119bd41f2cSmrg# with a leading dot. For instance MS-DOS doesn't. 79129bd41f2cSmrgAC_DEFUN([AM_SET_LEADING_DOT], 79139bd41f2cSmrg[rm -rf .tst 2>/dev/null 79149bd41f2cSmrgmkdir .tst 2>/dev/null 79159bd41f2cSmrgif test -d .tst; then 79169bd41f2cSmrg am__leading_dot=. 79179bd41f2cSmrgelse 79189bd41f2cSmrg am__leading_dot=_ 79199bd41f2cSmrgfi 79209bd41f2cSmrgrmdir .tst 2>/dev/null 79219bd41f2cSmrgAC_SUBST([am__leading_dot])]) 79229bd41f2cSmrg 79239bd41f2cSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 79249bd41f2cSmrg# From Jim Meyering 79259bd41f2cSmrg 79269bd41f2cSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 79279bd41f2cSmrg# Free Software Foundation, Inc. 79289bd41f2cSmrg# 79299bd41f2cSmrg# This file is free software; the Free Software Foundation 79309bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79319bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 79329bd41f2cSmrg 79339bd41f2cSmrg# serial 4 79349bd41f2cSmrg 79359bd41f2cSmrgAC_DEFUN([AM_MAINTAINER_MODE], 79369bd41f2cSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 79379bd41f2cSmrg dnl maintainer-mode is disabled by default 79389bd41f2cSmrg AC_ARG_ENABLE(maintainer-mode, 79399bd41f2cSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 79409bd41f2cSmrg (and sometimes confusing) to the casual installer], 79419bd41f2cSmrg USE_MAINTAINER_MODE=$enableval, 79429bd41f2cSmrg USE_MAINTAINER_MODE=no) 79439bd41f2cSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 79449bd41f2cSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 79459bd41f2cSmrg MAINT=$MAINTAINER_MODE_TRUE 79469bd41f2cSmrg AC_SUBST(MAINT)dnl 79479bd41f2cSmrg] 79489bd41f2cSmrg) 79499bd41f2cSmrg 79509bd41f2cSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 79519bd41f2cSmrg 79529bd41f2cSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 79539bd41f2cSmrg 79549bd41f2cSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 79559bd41f2cSmrg# 79569bd41f2cSmrg# This file is free software; the Free Software Foundation 79579bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 79589bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 79599bd41f2cSmrg 79609bd41f2cSmrg# serial 3 79619bd41f2cSmrg 79629bd41f2cSmrg# AM_MAKE_INCLUDE() 79639bd41f2cSmrg# ----------------- 79649bd41f2cSmrg# Check to see how make treats includes. 79659bd41f2cSmrgAC_DEFUN([AM_MAKE_INCLUDE], 79669bd41f2cSmrg[am_make=${MAKE-make} 79679bd41f2cSmrgcat > confinc << 'END' 79689bd41f2cSmrgam__doit: 79699bd41f2cSmrg @echo done 79709bd41f2cSmrg.PHONY: am__doit 79719bd41f2cSmrgEND 79729bd41f2cSmrg# If we don't find an include directive, just comment out the code. 79739bd41f2cSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 79749bd41f2cSmrgam__include="#" 79759bd41f2cSmrgam__quote= 79769bd41f2cSmrg_am_result=none 79779bd41f2cSmrg# First try GNU make style include. 79789bd41f2cSmrgecho "include confinc" > confmf 79799bd41f2cSmrg# We grep out `Entering directory' and `Leaving directory' 79809bd41f2cSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 79819bd41f2cSmrg# In particular we don't look at `^make:' because GNU make might 79829bd41f2cSmrg# be invoked under some other name (usually "gmake"), in which 79839bd41f2cSmrg# case it prints its new name instead of `make'. 79849bd41f2cSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 79859bd41f2cSmrg am__include=include 79869bd41f2cSmrg am__quote= 79879bd41f2cSmrg _am_result=GNU 79889bd41f2cSmrgfi 79899bd41f2cSmrg# Now try BSD make style include. 79909bd41f2cSmrgif test "$am__include" = "#"; then 79919bd41f2cSmrg echo '.include "confinc"' > confmf 79929bd41f2cSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 79939bd41f2cSmrg am__include=.include 79949bd41f2cSmrg am__quote="\"" 79959bd41f2cSmrg _am_result=BSD 79969bd41f2cSmrg fi 79979bd41f2cSmrgfi 79989bd41f2cSmrgAC_SUBST([am__include]) 79999bd41f2cSmrgAC_SUBST([am__quote]) 80009bd41f2cSmrgAC_MSG_RESULT([$_am_result]) 80019bd41f2cSmrgrm -f confinc confmf 80029bd41f2cSmrg]) 80039bd41f2cSmrg 80049bd41f2cSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 80059bd41f2cSmrg 80069bd41f2cSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 80079bd41f2cSmrg# Free Software Foundation, Inc. 80089bd41f2cSmrg# 80099bd41f2cSmrg# This file is free software; the Free Software Foundation 80109bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 80119bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 80129bd41f2cSmrg 80139bd41f2cSmrg# serial 5 80149bd41f2cSmrg 80159bd41f2cSmrg# AM_MISSING_PROG(NAME, PROGRAM) 80169bd41f2cSmrg# ------------------------------ 80179bd41f2cSmrgAC_DEFUN([AM_MISSING_PROG], 80189bd41f2cSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 80199bd41f2cSmrg$1=${$1-"${am_missing_run}$2"} 80209bd41f2cSmrgAC_SUBST($1)]) 80219bd41f2cSmrg 80229bd41f2cSmrg 80239bd41f2cSmrg# AM_MISSING_HAS_RUN 80249bd41f2cSmrg# ------------------ 80259bd41f2cSmrg# Define MISSING if not defined so far and test if it supports --run. 80269bd41f2cSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 80279bd41f2cSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 80289bd41f2cSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 80299bd41f2cSmrgAC_REQUIRE_AUX_FILE([missing])dnl 80309bd41f2cSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 80319bd41f2cSmrg# Use eval to expand $SHELL 80329bd41f2cSmrgif eval "$MISSING --run true"; then 80339bd41f2cSmrg am_missing_run="$MISSING --run " 80349bd41f2cSmrgelse 80359bd41f2cSmrg am_missing_run= 80369bd41f2cSmrg AC_MSG_WARN([`missing' script is too old or missing]) 80379bd41f2cSmrgfi 80389bd41f2cSmrg]) 80399bd41f2cSmrg 80409bd41f2cSmrg# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 80419bd41f2cSmrg# 80429bd41f2cSmrg# This file is free software; the Free Software Foundation 80439bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 80449bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 80459bd41f2cSmrg 80469bd41f2cSmrg# AM_PROG_MKDIR_P 80479bd41f2cSmrg# --------------- 80489bd41f2cSmrg# Check for `mkdir -p'. 80499bd41f2cSmrgAC_DEFUN([AM_PROG_MKDIR_P], 80509bd41f2cSmrg[AC_PREREQ([2.60])dnl 80519bd41f2cSmrgAC_REQUIRE([AC_PROG_MKDIR_P])dnl 80529bd41f2cSmrgdnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, 80539bd41f2cSmrgdnl while keeping a definition of mkdir_p for backward compatibility. 80549bd41f2cSmrgdnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. 80559bd41f2cSmrgdnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of 80569bd41f2cSmrgdnl Makefile.ins that do not define MKDIR_P, so we do our own 80579bd41f2cSmrgdnl adjustment using top_builddir (which is defined more often than 80589bd41f2cSmrgdnl MKDIR_P). 80599bd41f2cSmrgAC_SUBST([mkdir_p], ["$MKDIR_P"])dnl 80609bd41f2cSmrgcase $mkdir_p in 80619bd41f2cSmrg [[\\/$]]* | ?:[[\\/]]*) ;; 80629bd41f2cSmrg */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 80639bd41f2cSmrgesac 80649bd41f2cSmrg]) 80659bd41f2cSmrg 80669bd41f2cSmrg# Helper functions for option handling. -*- Autoconf -*- 80679bd41f2cSmrg 80689bd41f2cSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 80699bd41f2cSmrg# 80709bd41f2cSmrg# This file is free software; the Free Software Foundation 80719bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 80729bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 80739bd41f2cSmrg 80749bd41f2cSmrg# serial 3 80759bd41f2cSmrg 80769bd41f2cSmrg# _AM_MANGLE_OPTION(NAME) 80779bd41f2cSmrg# ----------------------- 80789bd41f2cSmrgAC_DEFUN([_AM_MANGLE_OPTION], 80799bd41f2cSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 80809bd41f2cSmrg 80819bd41f2cSmrg# _AM_SET_OPTION(NAME) 80829bd41f2cSmrg# ------------------------------ 80839bd41f2cSmrg# Set option NAME. Presently that only means defining a flag for this option. 80849bd41f2cSmrgAC_DEFUN([_AM_SET_OPTION], 80859bd41f2cSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 80869bd41f2cSmrg 80879bd41f2cSmrg# _AM_SET_OPTIONS(OPTIONS) 80889bd41f2cSmrg# ---------------------------------- 80899bd41f2cSmrg# OPTIONS is a space-separated list of Automake options. 80909bd41f2cSmrgAC_DEFUN([_AM_SET_OPTIONS], 80919bd41f2cSmrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 80929bd41f2cSmrg 80939bd41f2cSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 80949bd41f2cSmrg# ------------------------------------------- 80959bd41f2cSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 80969bd41f2cSmrgAC_DEFUN([_AM_IF_OPTION], 80979bd41f2cSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 80989bd41f2cSmrg 80999bd41f2cSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 81009bd41f2cSmrg 81019bd41f2cSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 81029bd41f2cSmrg# Free Software Foundation, Inc. 81039bd41f2cSmrg# 81049bd41f2cSmrg# This file is free software; the Free Software Foundation 81059bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 81069bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 81079bd41f2cSmrg 81089bd41f2cSmrg# serial 4 81099bd41f2cSmrg 81109bd41f2cSmrg# AM_SANITY_CHECK 81119bd41f2cSmrg# --------------- 81129bd41f2cSmrgAC_DEFUN([AM_SANITY_CHECK], 81139bd41f2cSmrg[AC_MSG_CHECKING([whether build environment is sane]) 81149bd41f2cSmrg# Just in case 81159bd41f2cSmrgsleep 1 81169bd41f2cSmrgecho timestamp > conftest.file 81179bd41f2cSmrg# Do `set' in a subshell so we don't clobber the current shell's 81189bd41f2cSmrg# arguments. Must try -L first in case configure is actually a 81199bd41f2cSmrg# symlink; some systems play weird games with the mod time of symlinks 81209bd41f2cSmrg# (eg FreeBSD returns the mod time of the symlink's containing 81219bd41f2cSmrg# directory). 81229bd41f2cSmrgif ( 81239bd41f2cSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 81249bd41f2cSmrg if test "$[*]" = "X"; then 81259bd41f2cSmrg # -L didn't work. 81269bd41f2cSmrg set X `ls -t $srcdir/configure conftest.file` 81279bd41f2cSmrg fi 81289bd41f2cSmrg rm -f conftest.file 81299bd41f2cSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 81309bd41f2cSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 81319bd41f2cSmrg 81329bd41f2cSmrg # If neither matched, then we have a broken ls. This can happen 81339bd41f2cSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 81349bd41f2cSmrg # broken ls alias from the environment. This has actually 81359bd41f2cSmrg # happened. Such a system could not be considered "sane". 81369bd41f2cSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 81379bd41f2cSmrgalias in your environment]) 81389bd41f2cSmrg fi 81399bd41f2cSmrg 81409bd41f2cSmrg test "$[2]" = conftest.file 81419bd41f2cSmrg ) 81429bd41f2cSmrgthen 81439bd41f2cSmrg # Ok. 81449bd41f2cSmrg : 81459bd41f2cSmrgelse 81469bd41f2cSmrg AC_MSG_ERROR([newly created file is older than distributed files! 81479bd41f2cSmrgCheck your system clock]) 81489bd41f2cSmrgfi 81499bd41f2cSmrgAC_MSG_RESULT(yes)]) 81509bd41f2cSmrg 81519bd41f2cSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 81529bd41f2cSmrg# 81539bd41f2cSmrg# This file is free software; the Free Software Foundation 81549bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 81559bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 81569bd41f2cSmrg 81579bd41f2cSmrg# AM_PROG_INSTALL_STRIP 81589bd41f2cSmrg# --------------------- 81599bd41f2cSmrg# One issue with vendor `install' (even GNU) is that you can't 81609bd41f2cSmrg# specify the program used to strip binaries. This is especially 81619bd41f2cSmrg# annoying in cross-compiling environments, where the build's strip 81629bd41f2cSmrg# is unlikely to handle the host's binaries. 81639bd41f2cSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 81649bd41f2cSmrg# always use install-sh in `make install-strip', and initialize 81659bd41f2cSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 81669bd41f2cSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 81679bd41f2cSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 81689bd41f2cSmrg# Installed binaries are usually stripped using `strip' when the user 81699bd41f2cSmrg# run `make install-strip'. However `strip' might not be the right 81709bd41f2cSmrg# tool to use in cross-compilation environments, therefore Automake 81719bd41f2cSmrg# will honor the `STRIP' environment variable to overrule this program. 81729bd41f2cSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 81739bd41f2cSmrgif test "$cross_compiling" != no; then 81749bd41f2cSmrg AC_CHECK_TOOL([STRIP], [strip], :) 81759bd41f2cSmrgfi 81769bd41f2cSmrgINSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 81779bd41f2cSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 81789bd41f2cSmrg 81799bd41f2cSmrg# Copyright (C) 2006 Free Software Foundation, Inc. 81809bd41f2cSmrg# 81819bd41f2cSmrg# This file is free software; the Free Software Foundation 81829bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 81839bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 81849bd41f2cSmrg 81859bd41f2cSmrg# _AM_SUBST_NOTMAKE(VARIABLE) 81869bd41f2cSmrg# --------------------------- 8187d075918cSmrg# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. 81889bd41f2cSmrg# This macro is traced by Automake. 81899bd41f2cSmrgAC_DEFUN([_AM_SUBST_NOTMAKE]) 81909bd41f2cSmrg 81919bd41f2cSmrg# Check how to create a tarball. -*- Autoconf -*- 81929bd41f2cSmrg 81939bd41f2cSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 81949bd41f2cSmrg# 81959bd41f2cSmrg# This file is free software; the Free Software Foundation 81969bd41f2cSmrg# gives unlimited permission to copy and/or distribute it, 81979bd41f2cSmrg# with or without modifications, as long as this notice is preserved. 81989bd41f2cSmrg 81999bd41f2cSmrg# serial 2 82009bd41f2cSmrg 82019bd41f2cSmrg# _AM_PROG_TAR(FORMAT) 82029bd41f2cSmrg# -------------------- 82039bd41f2cSmrg# Check how to create a tarball in format FORMAT. 82049bd41f2cSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 82059bd41f2cSmrg# 82069bd41f2cSmrg# Substitute a variable $(am__tar) that is a command 82079bd41f2cSmrg# writing to stdout a FORMAT-tarball containing the directory 82089bd41f2cSmrg# $tardir. 82099bd41f2cSmrg# tardir=directory && $(am__tar) > result.tar 82109bd41f2cSmrg# 82119bd41f2cSmrg# Substitute a variable $(am__untar) that extract such 82129bd41f2cSmrg# a tarball read from stdin. 82139bd41f2cSmrg# $(am__untar) < result.tar 82149bd41f2cSmrgAC_DEFUN([_AM_PROG_TAR], 82159bd41f2cSmrg[# Always define AMTAR for backward compatibility. 82169bd41f2cSmrgAM_MISSING_PROG([AMTAR], [tar]) 82179bd41f2cSmrgm4_if([$1], [v7], 82189bd41f2cSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 82199bd41f2cSmrg [m4_case([$1], [ustar],, [pax],, 82209bd41f2cSmrg [m4_fatal([Unknown tar format])]) 82219bd41f2cSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 82229bd41f2cSmrg# Loop over all known methods to create a tar archive until one works. 82239bd41f2cSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 82249bd41f2cSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 82259bd41f2cSmrg# Do not fold the above two line into one, because Tru64 sh and 82269bd41f2cSmrg# Solaris sh will not grok spaces in the rhs of `-'. 82279bd41f2cSmrgfor _am_tool in $_am_tools 82289bd41f2cSmrgdo 82299bd41f2cSmrg case $_am_tool in 82309bd41f2cSmrg gnutar) 82319bd41f2cSmrg for _am_tar in tar gnutar gtar; 82329bd41f2cSmrg do 82339bd41f2cSmrg AM_RUN_LOG([$_am_tar --version]) && break 82349bd41f2cSmrg done 82359bd41f2cSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 82369bd41f2cSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 82379bd41f2cSmrg am__untar="$_am_tar -xf -" 82389bd41f2cSmrg ;; 82399bd41f2cSmrg plaintar) 82409bd41f2cSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 82419bd41f2cSmrg # ustar tarball either. 82429bd41f2cSmrg (tar --version) >/dev/null 2>&1 && continue 82439bd41f2cSmrg am__tar='tar chf - "$$tardir"' 82449bd41f2cSmrg am__tar_='tar chf - "$tardir"' 82459bd41f2cSmrg am__untar='tar xf -' 82469bd41f2cSmrg ;; 82479bd41f2cSmrg pax) 82489bd41f2cSmrg am__tar='pax -L -x $1 -w "$$tardir"' 82499bd41f2cSmrg am__tar_='pax -L -x $1 -w "$tardir"' 82509bd41f2cSmrg am__untar='pax -r' 82519bd41f2cSmrg ;; 82529bd41f2cSmrg cpio) 82539bd41f2cSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 82549bd41f2cSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 82559bd41f2cSmrg am__untar='cpio -i -H $1 -d' 82569bd41f2cSmrg ;; 82579bd41f2cSmrg none) 82589bd41f2cSmrg am__tar=false 82599bd41f2cSmrg am__tar_=false 82609bd41f2cSmrg am__untar=false 82619bd41f2cSmrg ;; 82629bd41f2cSmrg esac 82639bd41f2cSmrg 82649bd41f2cSmrg # If the value was cached, stop now. We just wanted to have am__tar 82659bd41f2cSmrg # and am__untar set. 82669bd41f2cSmrg test -n "${am_cv_prog_tar_$1}" && break 82679bd41f2cSmrg 82689bd41f2cSmrg # tar/untar a dummy directory, and stop if the command works 82699bd41f2cSmrg rm -rf conftest.dir 82709bd41f2cSmrg mkdir conftest.dir 82719bd41f2cSmrg echo GrepMe > conftest.dir/file 82729bd41f2cSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 82739bd41f2cSmrg rm -rf conftest.dir 82749bd41f2cSmrg if test -s conftest.tar; then 82759bd41f2cSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 82769bd41f2cSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 82779bd41f2cSmrg fi 82789bd41f2cSmrgdone 82799bd41f2cSmrgrm -rf conftest.dir 82809bd41f2cSmrg 82819bd41f2cSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 82829bd41f2cSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 82839bd41f2cSmrgAC_SUBST([am__tar]) 82849bd41f2cSmrgAC_SUBST([am__untar]) 82859bd41f2cSmrg]) # _AM_PROG_TAR 82869bd41f2cSmrg 8287