aclocal.m4 revision 4456fccd
14456fccdSmrg# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 24456fccdSmrg 34456fccdSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 44456fccdSmrg# 2005 Free Software Foundation, Inc. 54456fccdSmrg# This file is free software; the Free Software Foundation 64456fccdSmrg# gives unlimited permission to copy and/or distribute it, 74456fccdSmrg# with or without modifications, as long as this notice is preserved. 84456fccdSmrg 94456fccdSmrg# This program is distributed in the hope that it will be useful, 104456fccdSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 114456fccdSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 124456fccdSmrg# PARTICULAR PURPOSE. 134456fccdSmrg 144456fccdSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 154456fccdSmrg 164456fccdSmrg# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL 174456fccdSmrg 184456fccdSmrg 194456fccdSmrg# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 204456fccdSmrg# ----------------------------------------------------------- 214456fccdSmrg# If this macro is not defined by Autoconf, define it here. 224456fccdSmrgm4_ifdef([AC_PROVIDE_IFELSE], 234456fccdSmrg [], 244456fccdSmrg [m4_define([AC_PROVIDE_IFELSE], 254456fccdSmrg [m4_ifdef([AC_PROVIDE_$1], 264456fccdSmrg [$2], [$3])])]) 274456fccdSmrg 284456fccdSmrg 294456fccdSmrg# AC_PROG_LIBTOOL 304456fccdSmrg# --------------- 314456fccdSmrgAC_DEFUN([AC_PROG_LIBTOOL], 324456fccdSmrg[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 334456fccdSmrgdnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 344456fccdSmrgdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 354456fccdSmrg AC_PROVIDE_IFELSE([AC_PROG_CXX], 364456fccdSmrg [AC_LIBTOOL_CXX], 374456fccdSmrg [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 384456fccdSmrg ])]) 394456fccdSmrgdnl And a similar setup for Fortran 77 support 404456fccdSmrg AC_PROVIDE_IFELSE([AC_PROG_F77], 414456fccdSmrg [AC_LIBTOOL_F77], 424456fccdSmrg [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 434456fccdSmrg])]) 444456fccdSmrg 454456fccdSmrgdnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 464456fccdSmrgdnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 474456fccdSmrgdnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 484456fccdSmrg AC_PROVIDE_IFELSE([AC_PROG_GCJ], 494456fccdSmrg [AC_LIBTOOL_GCJ], 504456fccdSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 514456fccdSmrg [AC_LIBTOOL_GCJ], 524456fccdSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 534456fccdSmrg [AC_LIBTOOL_GCJ], 544456fccdSmrg [ifdef([AC_PROG_GCJ], 554456fccdSmrg [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 564456fccdSmrg ifdef([A][M_PROG_GCJ], 574456fccdSmrg [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 584456fccdSmrg ifdef([LT_AC_PROG_GCJ], 594456fccdSmrg [define([LT_AC_PROG_GCJ], 604456fccdSmrg defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 614456fccdSmrg])])# AC_PROG_LIBTOOL 624456fccdSmrg 634456fccdSmrg 644456fccdSmrg# _AC_PROG_LIBTOOL 654456fccdSmrg# ---------------- 664456fccdSmrgAC_DEFUN([_AC_PROG_LIBTOOL], 674456fccdSmrg[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 684456fccdSmrgAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 694456fccdSmrgAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 704456fccdSmrgAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 714456fccdSmrg 724456fccdSmrg# This can be used to rebuild libtool when needed 734456fccdSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 744456fccdSmrg 754456fccdSmrg# Always use our own libtool. 764456fccdSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 774456fccdSmrgAC_SUBST(LIBTOOL)dnl 784456fccdSmrg 794456fccdSmrg# Prevent multiple expansion 804456fccdSmrgdefine([AC_PROG_LIBTOOL], []) 814456fccdSmrg])# _AC_PROG_LIBTOOL 824456fccdSmrg 834456fccdSmrg 844456fccdSmrg# AC_LIBTOOL_SETUP 854456fccdSmrg# ---------------- 864456fccdSmrgAC_DEFUN([AC_LIBTOOL_SETUP], 874456fccdSmrg[AC_PREREQ(2.50)dnl 884456fccdSmrgAC_REQUIRE([AC_ENABLE_SHARED])dnl 894456fccdSmrgAC_REQUIRE([AC_ENABLE_STATIC])dnl 904456fccdSmrgAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 914456fccdSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 924456fccdSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 934456fccdSmrgAC_REQUIRE([AC_PROG_CC])dnl 944456fccdSmrgAC_REQUIRE([AC_PROG_LD])dnl 954456fccdSmrgAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 964456fccdSmrgAC_REQUIRE([AC_PROG_NM])dnl 974456fccdSmrg 984456fccdSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 994456fccdSmrgAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 1004456fccdSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 1014456fccdSmrgAC_REQUIRE([AC_OBJEXT])dnl 1024456fccdSmrgAC_REQUIRE([AC_EXEEXT])dnl 1034456fccdSmrgdnl 1044456fccdSmrg 1054456fccdSmrgAC_LIBTOOL_SYS_MAX_CMD_LEN 1064456fccdSmrgAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 1074456fccdSmrgAC_LIBTOOL_OBJDIR 1084456fccdSmrg 1094456fccdSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 1104456fccdSmrg_LT_AC_PROG_ECHO_BACKSLASH 1114456fccdSmrg 1124456fccdSmrgcase $host_os in 1134456fccdSmrgaix3*) 1144456fccdSmrg # AIX sometimes has problems with the GCC collect2 program. For some 1154456fccdSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 1164456fccdSmrg # vanish in a puff of smoke. 1174456fccdSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 1184456fccdSmrg COLLECT_NAMES= 1194456fccdSmrg export COLLECT_NAMES 1204456fccdSmrg fi 1214456fccdSmrg ;; 1224456fccdSmrgesac 1234456fccdSmrg 1244456fccdSmrg# Sed substitution that helps us do robust quoting. It backslashifies 1254456fccdSmrg# metacharacters that are still active within double-quoted strings. 1264456fccdSmrgXsed='sed -e 1s/^X//' 1274456fccdSmrg[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 1284456fccdSmrg 1294456fccdSmrg# Same as above, but do not quote variable references. 1304456fccdSmrg[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 1314456fccdSmrg 1324456fccdSmrg# Sed substitution to delay expansion of an escaped shell variable in a 1334456fccdSmrg# double_quote_subst'ed string. 1344456fccdSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 1354456fccdSmrg 1364456fccdSmrg# Sed substitution to avoid accidental globbing in evaled expressions 1374456fccdSmrgno_glob_subst='s/\*/\\\*/g' 1384456fccdSmrg 1394456fccdSmrg# Constants: 1404456fccdSmrgrm="rm -f" 1414456fccdSmrg 1424456fccdSmrg# Global variables: 1434456fccdSmrgdefault_ofile=libtool 1444456fccdSmrgcan_build_shared=yes 1454456fccdSmrg 1464456fccdSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 1474456fccdSmrg# which needs '.lib'). 1484456fccdSmrglibext=a 1494456fccdSmrgltmain="$ac_aux_dir/ltmain.sh" 1504456fccdSmrgofile="$default_ofile" 1514456fccdSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 1524456fccdSmrg 1534456fccdSmrgAC_CHECK_TOOL(AR, ar, false) 1544456fccdSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 1554456fccdSmrgAC_CHECK_TOOL(STRIP, strip, :) 1564456fccdSmrg 1574456fccdSmrgold_CC="$CC" 1584456fccdSmrgold_CFLAGS="$CFLAGS" 1594456fccdSmrg 1604456fccdSmrg# Set sane defaults for various variables 1614456fccdSmrgtest -z "$AR" && AR=ar 1624456fccdSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 1634456fccdSmrgtest -z "$AS" && AS=as 1644456fccdSmrgtest -z "$CC" && CC=cc 1654456fccdSmrgtest -z "$LTCC" && LTCC=$CC 1664456fccdSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 1674456fccdSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 1684456fccdSmrgtest -z "$LD" && LD=ld 1694456fccdSmrgtest -z "$LN_S" && LN_S="ln -s" 1704456fccdSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 1714456fccdSmrgtest -z "$NM" && NM=nm 1724456fccdSmrgtest -z "$SED" && SED=sed 1734456fccdSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 1744456fccdSmrgtest -z "$RANLIB" && RANLIB=: 1754456fccdSmrgtest -z "$STRIP" && STRIP=: 1764456fccdSmrgtest -z "$ac_objext" && ac_objext=o 1774456fccdSmrg 1784456fccdSmrg# Determine commands to create old-style static archives. 1794456fccdSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 1804456fccdSmrgold_postinstall_cmds='chmod 644 $oldlib' 1814456fccdSmrgold_postuninstall_cmds= 1824456fccdSmrg 1834456fccdSmrgif test -n "$RANLIB"; then 1844456fccdSmrg case $host_os in 1854456fccdSmrg openbsd*) 1864456fccdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 1874456fccdSmrg ;; 1884456fccdSmrg *) 1894456fccdSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 1904456fccdSmrg ;; 1914456fccdSmrg esac 1924456fccdSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 1934456fccdSmrgfi 1944456fccdSmrg 1954456fccdSmrg_LT_CC_BASENAME([$compiler]) 1964456fccdSmrg 1974456fccdSmrg# Only perform the check for file, if the check method requires it 1984456fccdSmrgcase $deplibs_check_method in 1994456fccdSmrgfile_magic*) 2004456fccdSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 2014456fccdSmrg AC_PATH_MAGIC 2024456fccdSmrg fi 2034456fccdSmrg ;; 2044456fccdSmrgesac 2054456fccdSmrg 2064456fccdSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 2074456fccdSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 2084456fccdSmrgenable_win32_dll=yes, enable_win32_dll=no) 2094456fccdSmrg 2104456fccdSmrgAC_ARG_ENABLE([libtool-lock], 2114456fccdSmrg [AC_HELP_STRING([--disable-libtool-lock], 2124456fccdSmrg [avoid locking (might break parallel builds)])]) 2134456fccdSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 2144456fccdSmrg 2154456fccdSmrgAC_ARG_WITH([pic], 2164456fccdSmrg [AC_HELP_STRING([--with-pic], 2174456fccdSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 2184456fccdSmrg [pic_mode="$withval"], 2194456fccdSmrg [pic_mode=default]) 2204456fccdSmrgtest -z "$pic_mode" && pic_mode=default 2214456fccdSmrg 2224456fccdSmrg# Use C for the default configuration in the libtool script 2234456fccdSmrgtagname= 2244456fccdSmrgAC_LIBTOOL_LANG_C_CONFIG 2254456fccdSmrg_LT_AC_TAGCONFIG 2264456fccdSmrg])# AC_LIBTOOL_SETUP 2274456fccdSmrg 2284456fccdSmrg 2294456fccdSmrg# _LT_AC_SYS_COMPILER 2304456fccdSmrg# ------------------- 2314456fccdSmrgAC_DEFUN([_LT_AC_SYS_COMPILER], 2324456fccdSmrg[AC_REQUIRE([AC_PROG_CC])dnl 2334456fccdSmrg 2344456fccdSmrg# If no C compiler was specified, use CC. 2354456fccdSmrgLTCC=${LTCC-"$CC"} 2364456fccdSmrg 2374456fccdSmrg# If no C compiler flags were specified, use CFLAGS. 2384456fccdSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 2394456fccdSmrg 2404456fccdSmrg# Allow CC to be a program name with arguments. 2414456fccdSmrgcompiler=$CC 2424456fccdSmrg])# _LT_AC_SYS_COMPILER 2434456fccdSmrg 2444456fccdSmrg 2454456fccdSmrg# _LT_CC_BASENAME(CC) 2464456fccdSmrg# ------------------- 2474456fccdSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 2484456fccdSmrgAC_DEFUN([_LT_CC_BASENAME], 2494456fccdSmrg[for cc_temp in $1""; do 2504456fccdSmrg case $cc_temp in 2514456fccdSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 2524456fccdSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 2534456fccdSmrg \-*) ;; 2544456fccdSmrg *) break;; 2554456fccdSmrg esac 2564456fccdSmrgdone 2574456fccdSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 2584456fccdSmrg]) 2594456fccdSmrg 2604456fccdSmrg 2614456fccdSmrg# _LT_COMPILER_BOILERPLATE 2624456fccdSmrg# ------------------------ 2634456fccdSmrg# Check for compiler boilerplate output or warnings with 2644456fccdSmrg# the simple compiler test code. 2654456fccdSmrgAC_DEFUN([_LT_COMPILER_BOILERPLATE], 2664456fccdSmrg[ac_outfile=conftest.$ac_objext 2674456fccdSmrgprintf "$lt_simple_compile_test_code" >conftest.$ac_ext 2684456fccdSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2694456fccdSmrg_lt_compiler_boilerplate=`cat conftest.err` 2704456fccdSmrg$rm conftest* 2714456fccdSmrg])# _LT_COMPILER_BOILERPLATE 2724456fccdSmrg 2734456fccdSmrg 2744456fccdSmrg# _LT_LINKER_BOILERPLATE 2754456fccdSmrg# ---------------------- 2764456fccdSmrg# Check for linker boilerplate output or warnings with 2774456fccdSmrg# the simple link test code. 2784456fccdSmrgAC_DEFUN([_LT_LINKER_BOILERPLATE], 2794456fccdSmrg[ac_outfile=conftest.$ac_objext 2804456fccdSmrgprintf "$lt_simple_link_test_code" >conftest.$ac_ext 2814456fccdSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 2824456fccdSmrg_lt_linker_boilerplate=`cat conftest.err` 2834456fccdSmrg$rm conftest* 2844456fccdSmrg])# _LT_LINKER_BOILERPLATE 2854456fccdSmrg 2864456fccdSmrg 2874456fccdSmrg# _LT_AC_SYS_LIBPATH_AIX 2884456fccdSmrg# ---------------------- 2894456fccdSmrg# Links a minimal program and checks the executable 2904456fccdSmrg# for the system default hardcoded library path. In most cases, 2914456fccdSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 2924456fccdSmrg# the location of the communication and MPI libs are included too. 2934456fccdSmrg# If we don't find anything, use the default library path according 2944456fccdSmrg# to the aix ld manual. 2954456fccdSmrgAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 2964456fccdSmrg[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 2974456fccdSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 2984456fccdSmrg}'` 2994456fccdSmrg# Check for a 64-bit object if we didn't find anything. 3004456fccdSmrgif test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 3014456fccdSmrg}'`; fi],[]) 3024456fccdSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 3034456fccdSmrg])# _LT_AC_SYS_LIBPATH_AIX 3044456fccdSmrg 3054456fccdSmrg 3064456fccdSmrg# _LT_AC_SHELL_INIT(ARG) 3074456fccdSmrg# ---------------------- 3084456fccdSmrgAC_DEFUN([_LT_AC_SHELL_INIT], 3094456fccdSmrg[ifdef([AC_DIVERSION_NOTICE], 3104456fccdSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 3114456fccdSmrg [AC_DIVERT_PUSH(NOTICE)]) 3124456fccdSmrg$1 3134456fccdSmrgAC_DIVERT_POP 3144456fccdSmrg])# _LT_AC_SHELL_INIT 3154456fccdSmrg 3164456fccdSmrg 3174456fccdSmrg# _LT_AC_PROG_ECHO_BACKSLASH 3184456fccdSmrg# -------------------------- 3194456fccdSmrg# Add some code to the start of the generated configure script which 3204456fccdSmrg# will find an echo command which doesn't interpret backslashes. 3214456fccdSmrgAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 3224456fccdSmrg[_LT_AC_SHELL_INIT([ 3234456fccdSmrg# Check that we are running under the correct shell. 3244456fccdSmrgSHELL=${CONFIG_SHELL-/bin/sh} 3254456fccdSmrg 3264456fccdSmrgcase X$ECHO in 3274456fccdSmrgX*--fallback-echo) 3284456fccdSmrg # Remove one level of quotation (which was required for Make). 3294456fccdSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 3304456fccdSmrg ;; 3314456fccdSmrgesac 3324456fccdSmrg 3334456fccdSmrgecho=${ECHO-echo} 3344456fccdSmrgif test "X[$]1" = X--no-reexec; then 3354456fccdSmrg # Discard the --no-reexec flag, and continue. 3364456fccdSmrg shift 3374456fccdSmrgelif test "X[$]1" = X--fallback-echo; then 3384456fccdSmrg # Avoid inline document here, it may be left over 3394456fccdSmrg : 3404456fccdSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 3414456fccdSmrg # Yippee, $echo works! 3424456fccdSmrg : 3434456fccdSmrgelse 3444456fccdSmrg # Restart under the correct shell. 3454456fccdSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 3464456fccdSmrgfi 3474456fccdSmrg 3484456fccdSmrgif test "X[$]1" = X--fallback-echo; then 3494456fccdSmrg # used as fallback echo 3504456fccdSmrg shift 3514456fccdSmrg cat <<EOF 3524456fccdSmrg[$]* 3534456fccdSmrgEOF 3544456fccdSmrg exit 0 3554456fccdSmrgfi 3564456fccdSmrg 3574456fccdSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 3584456fccdSmrg# if CDPATH is set. 3594456fccdSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3604456fccdSmrg 3614456fccdSmrgif test -z "$ECHO"; then 3624456fccdSmrgif test "X${echo_test_string+set}" != Xset; then 3634456fccdSmrg# find a string as large as possible, as long as the shell can cope with it 3644456fccdSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 3654456fccdSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 3664456fccdSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 3674456fccdSmrg echo_test_string=`eval $cmd` && 3684456fccdSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 3694456fccdSmrg then 3704456fccdSmrg break 3714456fccdSmrg fi 3724456fccdSmrg done 3734456fccdSmrgfi 3744456fccdSmrg 3754456fccdSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 3764456fccdSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 3774456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 3784456fccdSmrg : 3794456fccdSmrgelse 3804456fccdSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 3814456fccdSmrg # backslashes. This makes it impossible to quote backslashes using 3824456fccdSmrg # echo "$something" | sed 's/\\/\\\\/g' 3834456fccdSmrg # 3844456fccdSmrg # So, first we look for a working echo in the user's PATH. 3854456fccdSmrg 3864456fccdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3874456fccdSmrg for dir in $PATH /usr/ucb; do 3884456fccdSmrg IFS="$lt_save_ifs" 3894456fccdSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 3904456fccdSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 3914456fccdSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 3924456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 3934456fccdSmrg echo="$dir/echo" 3944456fccdSmrg break 3954456fccdSmrg fi 3964456fccdSmrg done 3974456fccdSmrg IFS="$lt_save_ifs" 3984456fccdSmrg 3994456fccdSmrg if test "X$echo" = Xecho; then 4004456fccdSmrg # We didn't find a better echo, so look for alternatives. 4014456fccdSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 4024456fccdSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 4034456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4044456fccdSmrg # This shell has a builtin print -r that does the trick. 4054456fccdSmrg echo='print -r' 4064456fccdSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 4074456fccdSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 4084456fccdSmrg # If we have ksh, try running configure again with it. 4094456fccdSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 4104456fccdSmrg export ORIGINAL_CONFIG_SHELL 4114456fccdSmrg CONFIG_SHELL=/bin/ksh 4124456fccdSmrg export CONFIG_SHELL 4134456fccdSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 4144456fccdSmrg else 4154456fccdSmrg # Try using printf. 4164456fccdSmrg echo='printf %s\n' 4174456fccdSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 4184456fccdSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 4194456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4204456fccdSmrg # Cool, printf works 4214456fccdSmrg : 4224456fccdSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 4234456fccdSmrg test "X$echo_testing_string" = 'X\t' && 4244456fccdSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 4254456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4264456fccdSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 4274456fccdSmrg export CONFIG_SHELL 4284456fccdSmrg SHELL="$CONFIG_SHELL" 4294456fccdSmrg export SHELL 4304456fccdSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 4314456fccdSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 4324456fccdSmrg test "X$echo_testing_string" = 'X\t' && 4334456fccdSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 4344456fccdSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 4354456fccdSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 4364456fccdSmrg else 4374456fccdSmrg # maybe with a smaller string... 4384456fccdSmrg prev=: 4394456fccdSmrg 4404456fccdSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 4414456fccdSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 4424456fccdSmrg then 4434456fccdSmrg break 4444456fccdSmrg fi 4454456fccdSmrg prev="$cmd" 4464456fccdSmrg done 4474456fccdSmrg 4484456fccdSmrg if test "$prev" != 'sed 50q "[$]0"'; then 4494456fccdSmrg echo_test_string=`eval $prev` 4504456fccdSmrg export echo_test_string 4514456fccdSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 4524456fccdSmrg else 4534456fccdSmrg # Oops. We lost completely, so just stick with echo. 4544456fccdSmrg echo=echo 4554456fccdSmrg fi 4564456fccdSmrg fi 4574456fccdSmrg fi 4584456fccdSmrg fi 4594456fccdSmrgfi 4604456fccdSmrgfi 4614456fccdSmrg 4624456fccdSmrg# Copy echo and quote the copy suitably for passing to libtool from 4634456fccdSmrg# the Makefile, instead of quoting the original, which is used later. 4644456fccdSmrgECHO=$echo 4654456fccdSmrgif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 4664456fccdSmrg ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 4674456fccdSmrgfi 4684456fccdSmrg 4694456fccdSmrgAC_SUBST(ECHO) 4704456fccdSmrg])])# _LT_AC_PROG_ECHO_BACKSLASH 4714456fccdSmrg 4724456fccdSmrg 4734456fccdSmrg# _LT_AC_LOCK 4744456fccdSmrg# ----------- 4754456fccdSmrgAC_DEFUN([_LT_AC_LOCK], 4764456fccdSmrg[AC_ARG_ENABLE([libtool-lock], 4774456fccdSmrg [AC_HELP_STRING([--disable-libtool-lock], 4784456fccdSmrg [avoid locking (might break parallel builds)])]) 4794456fccdSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 4804456fccdSmrg 4814456fccdSmrg# Some flags need to be propagated to the compiler or linker for good 4824456fccdSmrg# libtool support. 4834456fccdSmrgcase $host in 4844456fccdSmrgia64-*-hpux*) 4854456fccdSmrg # Find out which ABI we are using. 4864456fccdSmrg echo 'int i;' > conftest.$ac_ext 4874456fccdSmrg if AC_TRY_EVAL(ac_compile); then 4884456fccdSmrg case `/usr/bin/file conftest.$ac_objext` in 4894456fccdSmrg *ELF-32*) 4904456fccdSmrg HPUX_IA64_MODE="32" 4914456fccdSmrg ;; 4924456fccdSmrg *ELF-64*) 4934456fccdSmrg HPUX_IA64_MODE="64" 4944456fccdSmrg ;; 4954456fccdSmrg esac 4964456fccdSmrg fi 4974456fccdSmrg rm -rf conftest* 4984456fccdSmrg ;; 4994456fccdSmrg*-*-irix6*) 5004456fccdSmrg # Find out which ABI we are using. 5014456fccdSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 5024456fccdSmrg if AC_TRY_EVAL(ac_compile); then 5034456fccdSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 5044456fccdSmrg case `/usr/bin/file conftest.$ac_objext` in 5054456fccdSmrg *32-bit*) 5064456fccdSmrg LD="${LD-ld} -melf32bsmip" 5074456fccdSmrg ;; 5084456fccdSmrg *N32*) 5094456fccdSmrg LD="${LD-ld} -melf32bmipn32" 5104456fccdSmrg ;; 5114456fccdSmrg *64-bit*) 5124456fccdSmrg LD="${LD-ld} -melf64bmip" 5134456fccdSmrg ;; 5144456fccdSmrg esac 5154456fccdSmrg else 5164456fccdSmrg case `/usr/bin/file conftest.$ac_objext` in 5174456fccdSmrg *32-bit*) 5184456fccdSmrg LD="${LD-ld} -32" 5194456fccdSmrg ;; 5204456fccdSmrg *N32*) 5214456fccdSmrg LD="${LD-ld} -n32" 5224456fccdSmrg ;; 5234456fccdSmrg *64-bit*) 5244456fccdSmrg LD="${LD-ld} -64" 5254456fccdSmrg ;; 5264456fccdSmrg esac 5274456fccdSmrg fi 5284456fccdSmrg fi 5294456fccdSmrg rm -rf conftest* 5304456fccdSmrg ;; 5314456fccdSmrg 5324456fccdSmrgx86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 5334456fccdSmrg # Find out which ABI we are using. 5344456fccdSmrg echo 'int i;' > conftest.$ac_ext 5354456fccdSmrg if AC_TRY_EVAL(ac_compile); then 5364456fccdSmrg case `/usr/bin/file conftest.o` in 5374456fccdSmrg *32-bit*) 5384456fccdSmrg case $host in 5394456fccdSmrg x86_64-*linux*) 5404456fccdSmrg LD="${LD-ld} -m elf_i386" 5414456fccdSmrg ;; 5424456fccdSmrg ppc64-*linux*|powerpc64-*linux*) 5434456fccdSmrg LD="${LD-ld} -m elf32ppclinux" 5444456fccdSmrg ;; 5454456fccdSmrg s390x-*linux*) 5464456fccdSmrg LD="${LD-ld} -m elf_s390" 5474456fccdSmrg ;; 5484456fccdSmrg sparc64-*linux*) 5494456fccdSmrg LD="${LD-ld} -m elf32_sparc" 5504456fccdSmrg ;; 5514456fccdSmrg esac 5524456fccdSmrg ;; 5534456fccdSmrg *64-bit*) 5544456fccdSmrg case $host in 5554456fccdSmrg x86_64-*linux*) 5564456fccdSmrg LD="${LD-ld} -m elf_x86_64" 5574456fccdSmrg ;; 5584456fccdSmrg ppc*-*linux*|powerpc*-*linux*) 5594456fccdSmrg LD="${LD-ld} -m elf64ppc" 5604456fccdSmrg ;; 5614456fccdSmrg s390*-*linux*) 5624456fccdSmrg LD="${LD-ld} -m elf64_s390" 5634456fccdSmrg ;; 5644456fccdSmrg sparc*-*linux*) 5654456fccdSmrg LD="${LD-ld} -m elf64_sparc" 5664456fccdSmrg ;; 5674456fccdSmrg esac 5684456fccdSmrg ;; 5694456fccdSmrg esac 5704456fccdSmrg fi 5714456fccdSmrg rm -rf conftest* 5724456fccdSmrg ;; 5734456fccdSmrg 5744456fccdSmrg*-*-sco3.2v5*) 5754456fccdSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5764456fccdSmrg SAVE_CFLAGS="$CFLAGS" 5774456fccdSmrg CFLAGS="$CFLAGS -belf" 5784456fccdSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 5794456fccdSmrg [AC_LANG_PUSH(C) 5804456fccdSmrg AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 5814456fccdSmrg AC_LANG_POP]) 5824456fccdSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5834456fccdSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5844456fccdSmrg CFLAGS="$SAVE_CFLAGS" 5854456fccdSmrg fi 5864456fccdSmrg ;; 5874456fccdSmrgsparc*-*solaris*) 5884456fccdSmrg # Find out which ABI we are using. 5894456fccdSmrg echo 'int i;' > conftest.$ac_ext 5904456fccdSmrg if AC_TRY_EVAL(ac_compile); then 5914456fccdSmrg case `/usr/bin/file conftest.o` in 5924456fccdSmrg *64-bit*) 5934456fccdSmrg case $lt_cv_prog_gnu_ld in 5944456fccdSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 5954456fccdSmrg *) LD="${LD-ld} -64" ;; 5964456fccdSmrg esac 5974456fccdSmrg ;; 5984456fccdSmrg esac 5994456fccdSmrg fi 6004456fccdSmrg rm -rf conftest* 6014456fccdSmrg ;; 6024456fccdSmrg 6034456fccdSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 6044456fccdSmrg[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 6054456fccdSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 6064456fccdSmrg AC_CHECK_TOOL(AS, as, false) 6074456fccdSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 6084456fccdSmrg ;; 6094456fccdSmrg ]) 6104456fccdSmrgesac 6114456fccdSmrg 6124456fccdSmrgneed_locks="$enable_libtool_lock" 6134456fccdSmrg 6144456fccdSmrg])# _LT_AC_LOCK 6154456fccdSmrg 6164456fccdSmrg 6174456fccdSmrg# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 6184456fccdSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 6194456fccdSmrg# ---------------------------------------------------------------- 6204456fccdSmrg# Check whether the given compiler option works 6214456fccdSmrgAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 6224456fccdSmrg[AC_REQUIRE([LT_AC_PROG_SED]) 6234456fccdSmrgAC_CACHE_CHECK([$1], [$2], 6244456fccdSmrg [$2=no 6254456fccdSmrg ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 6264456fccdSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6274456fccdSmrg lt_compiler_flag="$3" 6284456fccdSmrg # Insert the option either (1) after the last *FLAGS variable, or 6294456fccdSmrg # (2) before a word containing "conftest.", or (3) at the end. 6304456fccdSmrg # Note that $ac_compile itself does not contain backslashes and begins 6314456fccdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 6324456fccdSmrg # The option is referenced via a variable to avoid confusing sed. 6334456fccdSmrg lt_compile=`echo "$ac_compile" | $SED \ 6344456fccdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6354456fccdSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 6364456fccdSmrg -e 's:$: $lt_compiler_flag:'` 6374456fccdSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 6384456fccdSmrg (eval "$lt_compile" 2>conftest.err) 6394456fccdSmrg ac_status=$? 6404456fccdSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 6414456fccdSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 6424456fccdSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 6434456fccdSmrg # The compiler can only warn and ignore the option if not recognized 6444456fccdSmrg # So say no if there are warnings other than the usual output. 6454456fccdSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6464456fccdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6474456fccdSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6484456fccdSmrg $2=yes 6494456fccdSmrg fi 6504456fccdSmrg fi 6514456fccdSmrg $rm conftest* 6524456fccdSmrg]) 6534456fccdSmrg 6544456fccdSmrgif test x"[$]$2" = xyes; then 6554456fccdSmrg ifelse([$5], , :, [$5]) 6564456fccdSmrgelse 6574456fccdSmrg ifelse([$6], , :, [$6]) 6584456fccdSmrgfi 6594456fccdSmrg])# AC_LIBTOOL_COMPILER_OPTION 6604456fccdSmrg 6614456fccdSmrg 6624456fccdSmrg# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 6634456fccdSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 6644456fccdSmrg# ------------------------------------------------------------ 6654456fccdSmrg# Check whether the given compiler option works 6664456fccdSmrgAC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 6674456fccdSmrg[AC_CACHE_CHECK([$1], [$2], 6684456fccdSmrg [$2=no 6694456fccdSmrg save_LDFLAGS="$LDFLAGS" 6704456fccdSmrg LDFLAGS="$LDFLAGS $3" 6714456fccdSmrg printf "$lt_simple_link_test_code" > conftest.$ac_ext 6724456fccdSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6734456fccdSmrg # The linker can only warn and ignore the option if not recognized 6744456fccdSmrg # So say no if there are warnings 6754456fccdSmrg if test -s conftest.err; then 6764456fccdSmrg # Append any errors to the config.log. 6774456fccdSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 6784456fccdSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6794456fccdSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6804456fccdSmrg if diff conftest.exp conftest.er2 >/dev/null; then 6814456fccdSmrg $2=yes 6824456fccdSmrg fi 6834456fccdSmrg else 6844456fccdSmrg $2=yes 6854456fccdSmrg fi 6864456fccdSmrg fi 6874456fccdSmrg $rm conftest* 6884456fccdSmrg LDFLAGS="$save_LDFLAGS" 6894456fccdSmrg]) 6904456fccdSmrg 6914456fccdSmrgif test x"[$]$2" = xyes; then 6924456fccdSmrg ifelse([$4], , :, [$4]) 6934456fccdSmrgelse 6944456fccdSmrg ifelse([$5], , :, [$5]) 6954456fccdSmrgfi 6964456fccdSmrg])# AC_LIBTOOL_LINKER_OPTION 6974456fccdSmrg 6984456fccdSmrg 6994456fccdSmrg# AC_LIBTOOL_SYS_MAX_CMD_LEN 7004456fccdSmrg# -------------------------- 7014456fccdSmrgAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 7024456fccdSmrg[# find the maximum length of command line arguments 7034456fccdSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 7044456fccdSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 7054456fccdSmrg i=0 7064456fccdSmrg teststring="ABCD" 7074456fccdSmrg 7084456fccdSmrg case $build_os in 7094456fccdSmrg msdosdjgpp*) 7104456fccdSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 7114456fccdSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 7124456fccdSmrg # during glob expansion). Even if it were fixed, the result of this 7134456fccdSmrg # check would be larger than it should be. 7144456fccdSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 7154456fccdSmrg ;; 7164456fccdSmrg 7174456fccdSmrg gnu*) 7184456fccdSmrg # Under GNU Hurd, this test is not required because there is 7194456fccdSmrg # no limit to the length of command line arguments. 7204456fccdSmrg # Libtool will interpret -1 as no limit whatsoever 7214456fccdSmrg lt_cv_sys_max_cmd_len=-1; 7224456fccdSmrg ;; 7234456fccdSmrg 7244456fccdSmrg cygwin* | mingw*) 7254456fccdSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 7264456fccdSmrg # about 5 minutes as the teststring grows exponentially. 7274456fccdSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 7284456fccdSmrg # you end up with a "frozen" computer, even though with patience 7294456fccdSmrg # the test eventually succeeds (with a max line length of 256k). 7304456fccdSmrg # Instead, let's just punt: use the minimum linelength reported by 7314456fccdSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 7324456fccdSmrg lt_cv_sys_max_cmd_len=8192; 7334456fccdSmrg ;; 7344456fccdSmrg 7354456fccdSmrg amigaos*) 7364456fccdSmrg # On AmigaOS with pdksh, this test takes hours, literally. 7374456fccdSmrg # So we just punt and use a minimum line length of 8192. 7384456fccdSmrg lt_cv_sys_max_cmd_len=8192; 7394456fccdSmrg ;; 7404456fccdSmrg 7414456fccdSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 7424456fccdSmrg # This has been around since 386BSD, at least. Likely further. 7434456fccdSmrg if test -x /sbin/sysctl; then 7444456fccdSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 7454456fccdSmrg elif test -x /usr/sbin/sysctl; then 7464456fccdSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 7474456fccdSmrg else 7484456fccdSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 7494456fccdSmrg fi 7504456fccdSmrg # And add a safety zone 7514456fccdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 7524456fccdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 7534456fccdSmrg ;; 7544456fccdSmrg 7554456fccdSmrg interix*) 7564456fccdSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 7574456fccdSmrg lt_cv_sys_max_cmd_len=196608 7584456fccdSmrg ;; 7594456fccdSmrg 7604456fccdSmrg osf*) 7614456fccdSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 7624456fccdSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 7634456fccdSmrg # nice to cause kernel panics so lets avoid the loop below. 7644456fccdSmrg # First set a reasonable default. 7654456fccdSmrg lt_cv_sys_max_cmd_len=16384 7664456fccdSmrg # 7674456fccdSmrg if test -x /sbin/sysconfig; then 7684456fccdSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 7694456fccdSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 7704456fccdSmrg esac 7714456fccdSmrg fi 7724456fccdSmrg ;; 7734456fccdSmrg sco3.2v5*) 7744456fccdSmrg lt_cv_sys_max_cmd_len=102400 7754456fccdSmrg ;; 7764456fccdSmrg sysv5* | sco5v6* | sysv4.2uw2*) 7774456fccdSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 7784456fccdSmrg if test -n "$kargmax"; then 7794456fccdSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 7804456fccdSmrg else 7814456fccdSmrg lt_cv_sys_max_cmd_len=32768 7824456fccdSmrg fi 7834456fccdSmrg ;; 7844456fccdSmrg *) 7854456fccdSmrg # If test is not a shell built-in, we'll probably end up computing a 7864456fccdSmrg # maximum length that is only half of the actual maximum length, but 7874456fccdSmrg # we can't tell. 7884456fccdSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 7894456fccdSmrg while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 7904456fccdSmrg = "XX$teststring") >/dev/null 2>&1 && 7914456fccdSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 7924456fccdSmrg lt_cv_sys_max_cmd_len=$new_result && 7934456fccdSmrg test $i != 17 # 1/2 MB should be enough 7944456fccdSmrg do 7954456fccdSmrg i=`expr $i + 1` 7964456fccdSmrg teststring=$teststring$teststring 7974456fccdSmrg done 7984456fccdSmrg teststring= 7994456fccdSmrg # Add a significant safety factor because C++ compilers can tack on massive 8004456fccdSmrg # amounts of additional arguments before passing them to the linker. 8014456fccdSmrg # It appears as though 1/2 is a usable value. 8024456fccdSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 8034456fccdSmrg ;; 8044456fccdSmrg esac 8054456fccdSmrg]) 8064456fccdSmrgif test -n $lt_cv_sys_max_cmd_len ; then 8074456fccdSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 8084456fccdSmrgelse 8094456fccdSmrg AC_MSG_RESULT(none) 8104456fccdSmrgfi 8114456fccdSmrg])# AC_LIBTOOL_SYS_MAX_CMD_LEN 8124456fccdSmrg 8134456fccdSmrg 8144456fccdSmrg# _LT_AC_CHECK_DLFCN 8154456fccdSmrg# ------------------ 8164456fccdSmrgAC_DEFUN([_LT_AC_CHECK_DLFCN], 8174456fccdSmrg[AC_CHECK_HEADERS(dlfcn.h)dnl 8184456fccdSmrg])# _LT_AC_CHECK_DLFCN 8194456fccdSmrg 8204456fccdSmrg 8214456fccdSmrg# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 8224456fccdSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 8234456fccdSmrg# --------------------------------------------------------------------- 8244456fccdSmrgAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 8254456fccdSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 8264456fccdSmrgif test "$cross_compiling" = yes; then : 8274456fccdSmrg [$4] 8284456fccdSmrgelse 8294456fccdSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8304456fccdSmrg lt_status=$lt_dlunknown 8314456fccdSmrg cat > conftest.$ac_ext <<EOF 8324456fccdSmrg[#line __oline__ "configure" 8334456fccdSmrg#include "confdefs.h" 8344456fccdSmrg 8354456fccdSmrg#if HAVE_DLFCN_H 8364456fccdSmrg#include <dlfcn.h> 8374456fccdSmrg#endif 8384456fccdSmrg 8394456fccdSmrg#include <stdio.h> 8404456fccdSmrg 8414456fccdSmrg#ifdef RTLD_GLOBAL 8424456fccdSmrg# define LT_DLGLOBAL RTLD_GLOBAL 8434456fccdSmrg#else 8444456fccdSmrg# ifdef DL_GLOBAL 8454456fccdSmrg# define LT_DLGLOBAL DL_GLOBAL 8464456fccdSmrg# else 8474456fccdSmrg# define LT_DLGLOBAL 0 8484456fccdSmrg# endif 8494456fccdSmrg#endif 8504456fccdSmrg 8514456fccdSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8524456fccdSmrg find out it does not work in some platform. */ 8534456fccdSmrg#ifndef LT_DLLAZY_OR_NOW 8544456fccdSmrg# ifdef RTLD_LAZY 8554456fccdSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 8564456fccdSmrg# else 8574456fccdSmrg# ifdef DL_LAZY 8584456fccdSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 8594456fccdSmrg# else 8604456fccdSmrg# ifdef RTLD_NOW 8614456fccdSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 8624456fccdSmrg# else 8634456fccdSmrg# ifdef DL_NOW 8644456fccdSmrg# define LT_DLLAZY_OR_NOW DL_NOW 8654456fccdSmrg# else 8664456fccdSmrg# define LT_DLLAZY_OR_NOW 0 8674456fccdSmrg# endif 8684456fccdSmrg# endif 8694456fccdSmrg# endif 8704456fccdSmrg# endif 8714456fccdSmrg#endif 8724456fccdSmrg 8734456fccdSmrg#ifdef __cplusplus 8744456fccdSmrgextern "C" void exit (int); 8754456fccdSmrg#endif 8764456fccdSmrg 8774456fccdSmrgvoid fnord() { int i=42;} 8784456fccdSmrgint main () 8794456fccdSmrg{ 8804456fccdSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8814456fccdSmrg int status = $lt_dlunknown; 8824456fccdSmrg 8834456fccdSmrg if (self) 8844456fccdSmrg { 8854456fccdSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8864456fccdSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8874456fccdSmrg /* dlclose (self); */ 8884456fccdSmrg } 8894456fccdSmrg else 8904456fccdSmrg puts (dlerror ()); 8914456fccdSmrg 8924456fccdSmrg exit (status); 8934456fccdSmrg}] 8944456fccdSmrgEOF 8954456fccdSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 8964456fccdSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 8974456fccdSmrg lt_status=$? 8984456fccdSmrg case x$lt_status in 8994456fccdSmrg x$lt_dlno_uscore) $1 ;; 9004456fccdSmrg x$lt_dlneed_uscore) $2 ;; 9014456fccdSmrg x$lt_dlunknown|x*) $3 ;; 9024456fccdSmrg esac 9034456fccdSmrg else : 9044456fccdSmrg # compilation failed 9054456fccdSmrg $3 9064456fccdSmrg fi 9074456fccdSmrgfi 9084456fccdSmrgrm -fr conftest* 9094456fccdSmrg])# _LT_AC_TRY_DLOPEN_SELF 9104456fccdSmrg 9114456fccdSmrg 9124456fccdSmrg# AC_LIBTOOL_DLOPEN_SELF 9134456fccdSmrg# ---------------------- 9144456fccdSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 9154456fccdSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 9164456fccdSmrgif test "x$enable_dlopen" != xyes; then 9174456fccdSmrg enable_dlopen=unknown 9184456fccdSmrg enable_dlopen_self=unknown 9194456fccdSmrg enable_dlopen_self_static=unknown 9204456fccdSmrgelse 9214456fccdSmrg lt_cv_dlopen=no 9224456fccdSmrg lt_cv_dlopen_libs= 9234456fccdSmrg 9244456fccdSmrg case $host_os in 9254456fccdSmrg beos*) 9264456fccdSmrg lt_cv_dlopen="load_add_on" 9274456fccdSmrg lt_cv_dlopen_libs= 9284456fccdSmrg lt_cv_dlopen_self=yes 9294456fccdSmrg ;; 9304456fccdSmrg 9314456fccdSmrg mingw* | pw32*) 9324456fccdSmrg lt_cv_dlopen="LoadLibrary" 9334456fccdSmrg lt_cv_dlopen_libs= 9344456fccdSmrg ;; 9354456fccdSmrg 9364456fccdSmrg cygwin*) 9374456fccdSmrg lt_cv_dlopen="dlopen" 9384456fccdSmrg lt_cv_dlopen_libs= 9394456fccdSmrg ;; 9404456fccdSmrg 9414456fccdSmrg darwin*) 9424456fccdSmrg # if libdl is installed we need to link against it 9434456fccdSmrg AC_CHECK_LIB([dl], [dlopen], 9444456fccdSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 9454456fccdSmrg lt_cv_dlopen="dyld" 9464456fccdSmrg lt_cv_dlopen_libs= 9474456fccdSmrg lt_cv_dlopen_self=yes 9484456fccdSmrg ]) 9494456fccdSmrg ;; 9504456fccdSmrg 9514456fccdSmrg *) 9524456fccdSmrg AC_CHECK_FUNC([shl_load], 9534456fccdSmrg [lt_cv_dlopen="shl_load"], 9544456fccdSmrg [AC_CHECK_LIB([dld], [shl_load], 9554456fccdSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 9564456fccdSmrg [AC_CHECK_FUNC([dlopen], 9574456fccdSmrg [lt_cv_dlopen="dlopen"], 9584456fccdSmrg [AC_CHECK_LIB([dl], [dlopen], 9594456fccdSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 9604456fccdSmrg [AC_CHECK_LIB([svld], [dlopen], 9614456fccdSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 9624456fccdSmrg [AC_CHECK_LIB([dld], [dld_link], 9634456fccdSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 9644456fccdSmrg ]) 9654456fccdSmrg ]) 9664456fccdSmrg ]) 9674456fccdSmrg ]) 9684456fccdSmrg ]) 9694456fccdSmrg ;; 9704456fccdSmrg esac 9714456fccdSmrg 9724456fccdSmrg if test "x$lt_cv_dlopen" != xno; then 9734456fccdSmrg enable_dlopen=yes 9744456fccdSmrg else 9754456fccdSmrg enable_dlopen=no 9764456fccdSmrg fi 9774456fccdSmrg 9784456fccdSmrg case $lt_cv_dlopen in 9794456fccdSmrg dlopen) 9804456fccdSmrg save_CPPFLAGS="$CPPFLAGS" 9814456fccdSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9824456fccdSmrg 9834456fccdSmrg save_LDFLAGS="$LDFLAGS" 9844456fccdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9854456fccdSmrg 9864456fccdSmrg save_LIBS="$LIBS" 9874456fccdSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 9884456fccdSmrg 9894456fccdSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 9904456fccdSmrg lt_cv_dlopen_self, [dnl 9914456fccdSmrg _LT_AC_TRY_DLOPEN_SELF( 9924456fccdSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 9934456fccdSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 9944456fccdSmrg ]) 9954456fccdSmrg 9964456fccdSmrg if test "x$lt_cv_dlopen_self" = xyes; then 9974456fccdSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9984456fccdSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 9994456fccdSmrg lt_cv_dlopen_self_static, [dnl 10004456fccdSmrg _LT_AC_TRY_DLOPEN_SELF( 10014456fccdSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 10024456fccdSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 10034456fccdSmrg ]) 10044456fccdSmrg fi 10054456fccdSmrg 10064456fccdSmrg CPPFLAGS="$save_CPPFLAGS" 10074456fccdSmrg LDFLAGS="$save_LDFLAGS" 10084456fccdSmrg LIBS="$save_LIBS" 10094456fccdSmrg ;; 10104456fccdSmrg esac 10114456fccdSmrg 10124456fccdSmrg case $lt_cv_dlopen_self in 10134456fccdSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10144456fccdSmrg *) enable_dlopen_self=unknown ;; 10154456fccdSmrg esac 10164456fccdSmrg 10174456fccdSmrg case $lt_cv_dlopen_self_static in 10184456fccdSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10194456fccdSmrg *) enable_dlopen_self_static=unknown ;; 10204456fccdSmrg esac 10214456fccdSmrgfi 10224456fccdSmrg])# AC_LIBTOOL_DLOPEN_SELF 10234456fccdSmrg 10244456fccdSmrg 10254456fccdSmrg# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 10264456fccdSmrg# --------------------------------- 10274456fccdSmrg# Check to see if options -c and -o are simultaneously supported by compiler 10284456fccdSmrgAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 10294456fccdSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 10304456fccdSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 10314456fccdSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 10324456fccdSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 10334456fccdSmrg $rm -r conftest 2>/dev/null 10344456fccdSmrg mkdir conftest 10354456fccdSmrg cd conftest 10364456fccdSmrg mkdir out 10374456fccdSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10384456fccdSmrg 10394456fccdSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 10404456fccdSmrg # Insert the option either (1) after the last *FLAGS variable, or 10414456fccdSmrg # (2) before a word containing "conftest.", or (3) at the end. 10424456fccdSmrg # Note that $ac_compile itself does not contain backslashes and begins 10434456fccdSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 10444456fccdSmrg lt_compile=`echo "$ac_compile" | $SED \ 10454456fccdSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10464456fccdSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 10474456fccdSmrg -e 's:$: $lt_compiler_flag:'` 10484456fccdSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 10494456fccdSmrg (eval "$lt_compile" 2>out/conftest.err) 10504456fccdSmrg ac_status=$? 10514456fccdSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 10524456fccdSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 10534456fccdSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 10544456fccdSmrg then 10554456fccdSmrg # The compiler can only warn and ignore the option if not recognized 10564456fccdSmrg # So say no if there are warnings 10574456fccdSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 10584456fccdSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10594456fccdSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10604456fccdSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 10614456fccdSmrg fi 10624456fccdSmrg fi 10634456fccdSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 10644456fccdSmrg $rm conftest* 10654456fccdSmrg # SGI C++ compiler will create directory out/ii_files/ for 10664456fccdSmrg # template instantiation 10674456fccdSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10684456fccdSmrg $rm out/* && rmdir out 10694456fccdSmrg cd .. 10704456fccdSmrg rmdir conftest 10714456fccdSmrg $rm conftest* 10724456fccdSmrg]) 10734456fccdSmrg])# AC_LIBTOOL_PROG_CC_C_O 10744456fccdSmrg 10754456fccdSmrg 10764456fccdSmrg# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 10774456fccdSmrg# ----------------------------------------- 10784456fccdSmrg# Check to see if we can do hard links to lock some files if needed 10794456fccdSmrgAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 10804456fccdSmrg[AC_REQUIRE([_LT_AC_LOCK])dnl 10814456fccdSmrg 10824456fccdSmrghard_links="nottested" 10834456fccdSmrgif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 10844456fccdSmrg # do not overwrite the value of need_locks provided by the user 10854456fccdSmrg AC_MSG_CHECKING([if we can lock with hard links]) 10864456fccdSmrg hard_links=yes 10874456fccdSmrg $rm conftest* 10884456fccdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 10894456fccdSmrg touch conftest.a 10904456fccdSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 10914456fccdSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 10924456fccdSmrg AC_MSG_RESULT([$hard_links]) 10934456fccdSmrg if test "$hard_links" = no; then 10944456fccdSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 10954456fccdSmrg need_locks=warn 10964456fccdSmrg fi 10974456fccdSmrgelse 10984456fccdSmrg need_locks=no 10994456fccdSmrgfi 11004456fccdSmrg])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 11014456fccdSmrg 11024456fccdSmrg 11034456fccdSmrg# AC_LIBTOOL_OBJDIR 11044456fccdSmrg# ----------------- 11054456fccdSmrgAC_DEFUN([AC_LIBTOOL_OBJDIR], 11064456fccdSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 11074456fccdSmrg[rm -f .libs 2>/dev/null 11084456fccdSmrgmkdir .libs 2>/dev/null 11094456fccdSmrgif test -d .libs; then 11104456fccdSmrg lt_cv_objdir=.libs 11114456fccdSmrgelse 11124456fccdSmrg # MS-DOS does not allow filenames that begin with a dot. 11134456fccdSmrg lt_cv_objdir=_libs 11144456fccdSmrgfi 11154456fccdSmrgrmdir .libs 2>/dev/null]) 11164456fccdSmrgobjdir=$lt_cv_objdir 11174456fccdSmrg])# AC_LIBTOOL_OBJDIR 11184456fccdSmrg 11194456fccdSmrg 11204456fccdSmrg# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 11214456fccdSmrg# ---------------------------------------------- 11224456fccdSmrg# Check hardcoding attributes. 11234456fccdSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 11244456fccdSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 11254456fccdSmrg_LT_AC_TAGVAR(hardcode_action, $1)= 11264456fccdSmrgif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 11274456fccdSmrg test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 11284456fccdSmrg test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 11294456fccdSmrg 11304456fccdSmrg # We can hardcode non-existant directories. 11314456fccdSmrg if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 11324456fccdSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 11334456fccdSmrg # have to relink, otherwise we might link with an installed library 11344456fccdSmrg # when we should be linking with a yet-to-be-installed one 11354456fccdSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 11364456fccdSmrg test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 11374456fccdSmrg # Linking always hardcodes the temporary library directory. 11384456fccdSmrg _LT_AC_TAGVAR(hardcode_action, $1)=relink 11394456fccdSmrg else 11404456fccdSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 11414456fccdSmrg _LT_AC_TAGVAR(hardcode_action, $1)=immediate 11424456fccdSmrg fi 11434456fccdSmrgelse 11444456fccdSmrg # We cannot hardcode anything, or else we can only hardcode existing 11454456fccdSmrg # directories. 11464456fccdSmrg _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 11474456fccdSmrgfi 11484456fccdSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 11494456fccdSmrg 11504456fccdSmrgif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 11514456fccdSmrg # Fast installation is not supported 11524456fccdSmrg enable_fast_install=no 11534456fccdSmrgelif test "$shlibpath_overrides_runpath" = yes || 11544456fccdSmrg test "$enable_shared" = no; then 11554456fccdSmrg # Fast installation is not necessary 11564456fccdSmrg enable_fast_install=needless 11574456fccdSmrgfi 11584456fccdSmrg])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 11594456fccdSmrg 11604456fccdSmrg 11614456fccdSmrg# AC_LIBTOOL_SYS_LIB_STRIP 11624456fccdSmrg# ------------------------ 11634456fccdSmrgAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 11644456fccdSmrg[striplib= 11654456fccdSmrgold_striplib= 11664456fccdSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 11674456fccdSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11684456fccdSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11694456fccdSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11704456fccdSmrg AC_MSG_RESULT([yes]) 11714456fccdSmrgelse 11724456fccdSmrg# FIXME - insert some real tests, host_os isn't really good enough 11734456fccdSmrg case $host_os in 11744456fccdSmrg darwin*) 11754456fccdSmrg if test -n "$STRIP" ; then 11764456fccdSmrg striplib="$STRIP -x" 11774456fccdSmrg AC_MSG_RESULT([yes]) 11784456fccdSmrg else 11794456fccdSmrg AC_MSG_RESULT([no]) 11804456fccdSmrgfi 11814456fccdSmrg ;; 11824456fccdSmrg *) 11834456fccdSmrg AC_MSG_RESULT([no]) 11844456fccdSmrg ;; 11854456fccdSmrg esac 11864456fccdSmrgfi 11874456fccdSmrg])# AC_LIBTOOL_SYS_LIB_STRIP 11884456fccdSmrg 11894456fccdSmrg 11904456fccdSmrg# AC_LIBTOOL_SYS_DYNAMIC_LINKER 11914456fccdSmrg# ----------------------------- 11924456fccdSmrg# PORTME Fill in your ld.so characteristics 11934456fccdSmrgAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 11944456fccdSmrg[AC_MSG_CHECKING([dynamic linker characteristics]) 11954456fccdSmrglibrary_names_spec= 11964456fccdSmrglibname_spec='lib$name' 11974456fccdSmrgsoname_spec= 11984456fccdSmrgshrext_cmds=".so" 11994456fccdSmrgpostinstall_cmds= 12004456fccdSmrgpostuninstall_cmds= 12014456fccdSmrgfinish_cmds= 12024456fccdSmrgfinish_eval= 12034456fccdSmrgshlibpath_var= 12044456fccdSmrgshlibpath_overrides_runpath=unknown 12054456fccdSmrgversion_type=none 12064456fccdSmrgdynamic_linker="$host_os ld.so" 12074456fccdSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 12084456fccdSmrgif test "$GCC" = yes; then 12094456fccdSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12104456fccdSmrg if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 12114456fccdSmrg # if the path contains ";" then we assume it to be the separator 12124456fccdSmrg # otherwise default to the standard path separator (i.e. ":") - it is 12134456fccdSmrg # assumed that no part of a normal pathname contains ";" but that should 12144456fccdSmrg # okay in the real world where ";" in dirpaths is itself problematic. 12154456fccdSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12164456fccdSmrg else 12174456fccdSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12184456fccdSmrg fi 12194456fccdSmrgelse 12204456fccdSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12214456fccdSmrgfi 12224456fccdSmrgneed_lib_prefix=unknown 12234456fccdSmrghardcode_into_libs=no 12244456fccdSmrg 12254456fccdSmrg# when you set need_version to no, make sure it does not cause -set_version 12264456fccdSmrg# flags to be left without arguments 12274456fccdSmrgneed_version=unknown 12284456fccdSmrg 12294456fccdSmrgcase $host_os in 12304456fccdSmrgaix3*) 12314456fccdSmrg version_type=linux 12324456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12334456fccdSmrg shlibpath_var=LIBPATH 12344456fccdSmrg 12354456fccdSmrg # AIX 3 has no versioning support, so we append a major version to the name. 12364456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 12374456fccdSmrg ;; 12384456fccdSmrg 12394456fccdSmrgaix4* | aix5*) 12404456fccdSmrg version_type=linux 12414456fccdSmrg need_lib_prefix=no 12424456fccdSmrg need_version=no 12434456fccdSmrg hardcode_into_libs=yes 12444456fccdSmrg if test "$host_cpu" = ia64; then 12454456fccdSmrg # AIX 5 supports IA64 12464456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12474456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 12484456fccdSmrg else 12494456fccdSmrg # With GCC up to 2.95.x, collect2 would create an import file 12504456fccdSmrg # for dependence libraries. The import file would start with 12514456fccdSmrg # the line `#! .'. This would cause the generated library to 12524456fccdSmrg # depend on `.', always an invalid library. This was fixed in 12534456fccdSmrg # development snapshots of GCC prior to 3.0. 12544456fccdSmrg case $host_os in 12554456fccdSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 12564456fccdSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12574456fccdSmrg echo ' yes ' 12584456fccdSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 12594456fccdSmrg : 12604456fccdSmrg else 12614456fccdSmrg can_build_shared=no 12624456fccdSmrg fi 12634456fccdSmrg ;; 12644456fccdSmrg esac 12654456fccdSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12664456fccdSmrg # soname into executable. Probably we can add versioning support to 12674456fccdSmrg # collect2, so additional links can be useful in future. 12684456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 12694456fccdSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12704456fccdSmrg # instead of lib<name>.a to let people know that these are not 12714456fccdSmrg # typical AIX shared libraries. 12724456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12734456fccdSmrg else 12744456fccdSmrg # We preserve .a as extension for shared libraries through AIX4.2 12754456fccdSmrg # and later when we are not doing run time linking. 12764456fccdSmrg library_names_spec='${libname}${release}.a $libname.a' 12774456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 12784456fccdSmrg fi 12794456fccdSmrg shlibpath_var=LIBPATH 12804456fccdSmrg fi 12814456fccdSmrg ;; 12824456fccdSmrg 12834456fccdSmrgamigaos*) 12844456fccdSmrg library_names_spec='$libname.ixlibrary $libname.a' 12854456fccdSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 12864456fccdSmrg 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' 12874456fccdSmrg ;; 12884456fccdSmrg 12894456fccdSmrgbeos*) 12904456fccdSmrg library_names_spec='${libname}${shared_ext}' 12914456fccdSmrg dynamic_linker="$host_os ld.so" 12924456fccdSmrg shlibpath_var=LIBRARY_PATH 12934456fccdSmrg ;; 12944456fccdSmrg 12954456fccdSmrgbsdi[[45]]*) 12964456fccdSmrg version_type=linux 12974456fccdSmrg need_version=no 12984456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12994456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 13004456fccdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 13014456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 13024456fccdSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 13034456fccdSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 13044456fccdSmrg # the default ld.so.conf also contains /usr/contrib/lib and 13054456fccdSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 13064456fccdSmrg # libtool to hard-code these into programs 13074456fccdSmrg ;; 13084456fccdSmrg 13094456fccdSmrgcygwin* | mingw* | pw32*) 13104456fccdSmrg version_type=windows 13114456fccdSmrg shrext_cmds=".dll" 13124456fccdSmrg need_version=no 13134456fccdSmrg need_lib_prefix=no 13144456fccdSmrg 13154456fccdSmrg case $GCC,$host_os in 13164456fccdSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 13174456fccdSmrg library_names_spec='$libname.dll.a' 13184456fccdSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 13194456fccdSmrg postinstall_cmds='base_file=`basename \${file}`~ 13204456fccdSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 13214456fccdSmrg dldir=$destdir/`dirname \$dlpath`~ 13224456fccdSmrg test -d \$dldir || mkdir -p \$dldir~ 13234456fccdSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 13244456fccdSmrg chmod a+x \$dldir/$dlname' 13254456fccdSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 13264456fccdSmrg dlpath=$dir/\$dldll~ 13274456fccdSmrg $rm \$dlpath' 13284456fccdSmrg shlibpath_overrides_runpath=yes 13294456fccdSmrg 13304456fccdSmrg case $host_os in 13314456fccdSmrg cygwin*) 13324456fccdSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 13334456fccdSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 13344456fccdSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 13354456fccdSmrg ;; 13364456fccdSmrg mingw*) 13374456fccdSmrg # MinGW DLLs use traditional 'lib' prefix 13384456fccdSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 13394456fccdSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13404456fccdSmrg if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 13414456fccdSmrg # It is most probably a Windows format PATH printed by 13424456fccdSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 13434456fccdSmrg # path with ; separators, and with drive letters. We can handle the 13444456fccdSmrg # drive letters (cygwin fileutils understands them), so leave them, 13454456fccdSmrg # especially as we might pass files found there to a mingw objdump, 13464456fccdSmrg # which wouldn't understand a cygwinified path. Ahh. 13474456fccdSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13484456fccdSmrg else 13494456fccdSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13504456fccdSmrg fi 13514456fccdSmrg ;; 13524456fccdSmrg pw32*) 13534456fccdSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 13544456fccdSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 13554456fccdSmrg ;; 13564456fccdSmrg esac 13574456fccdSmrg ;; 13584456fccdSmrg 13594456fccdSmrg *) 13604456fccdSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 13614456fccdSmrg ;; 13624456fccdSmrg esac 13634456fccdSmrg dynamic_linker='Win32 ld.exe' 13644456fccdSmrg # FIXME: first we should search . and the directory the executable is in 13654456fccdSmrg shlibpath_var=PATH 13664456fccdSmrg ;; 13674456fccdSmrg 13684456fccdSmrgdarwin* | rhapsody*) 13694456fccdSmrg dynamic_linker="$host_os dyld" 13704456fccdSmrg version_type=darwin 13714456fccdSmrg need_lib_prefix=no 13724456fccdSmrg need_version=no 13734456fccdSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 13744456fccdSmrg soname_spec='${libname}${release}${major}$shared_ext' 13754456fccdSmrg shlibpath_overrides_runpath=yes 13764456fccdSmrg shlibpath_var=DYLD_LIBRARY_PATH 13774456fccdSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 13784456fccdSmrg # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 13794456fccdSmrg if test "$GCC" = yes; then 13804456fccdSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 13814456fccdSmrg else 13824456fccdSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 13834456fccdSmrg fi 13844456fccdSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 13854456fccdSmrg ;; 13864456fccdSmrg 13874456fccdSmrgdgux*) 13884456fccdSmrg version_type=linux 13894456fccdSmrg need_lib_prefix=no 13904456fccdSmrg need_version=no 13914456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 13924456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 13934456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 13944456fccdSmrg ;; 13954456fccdSmrg 13964456fccdSmrgfreebsd1*) 13974456fccdSmrg dynamic_linker=no 13984456fccdSmrg ;; 13994456fccdSmrg 14004456fccdSmrgfreebsd* | dragonfly*) 14014456fccdSmrg # DragonFly does not have aout. When/if they implement a new 14024456fccdSmrg # versioning mechanism, adjust this. 14034456fccdSmrg if test -x /usr/bin/objformat; then 14044456fccdSmrg objformat=`/usr/bin/objformat` 14054456fccdSmrg else 14064456fccdSmrg case $host_os in 14074456fccdSmrg freebsd[[123]]*) objformat=aout ;; 14084456fccdSmrg *) objformat=elf ;; 14094456fccdSmrg esac 14104456fccdSmrg fi 14114456fccdSmrg version_type=freebsd-$objformat 14124456fccdSmrg case $version_type in 14134456fccdSmrg freebsd-elf*) 14144456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14154456fccdSmrg need_version=no 14164456fccdSmrg need_lib_prefix=no 14174456fccdSmrg ;; 14184456fccdSmrg freebsd-*) 14194456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14204456fccdSmrg need_version=yes 14214456fccdSmrg ;; 14224456fccdSmrg esac 14234456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 14244456fccdSmrg case $host_os in 14254456fccdSmrg freebsd2*) 14264456fccdSmrg shlibpath_overrides_runpath=yes 14274456fccdSmrg ;; 14284456fccdSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 14294456fccdSmrg shlibpath_overrides_runpath=yes 14304456fccdSmrg hardcode_into_libs=yes 14314456fccdSmrg ;; 14324456fccdSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 14334456fccdSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 14344456fccdSmrg shlibpath_overrides_runpath=no 14354456fccdSmrg hardcode_into_libs=yes 14364456fccdSmrg ;; 14374456fccdSmrg freebsd*) # from 4.6 on 14384456fccdSmrg shlibpath_overrides_runpath=yes 14394456fccdSmrg hardcode_into_libs=yes 14404456fccdSmrg ;; 14414456fccdSmrg esac 14424456fccdSmrg ;; 14434456fccdSmrg 14444456fccdSmrggnu*) 14454456fccdSmrg version_type=linux 14464456fccdSmrg need_lib_prefix=no 14474456fccdSmrg need_version=no 14484456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14494456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 14504456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 14514456fccdSmrg hardcode_into_libs=yes 14524456fccdSmrg ;; 14534456fccdSmrg 14544456fccdSmrghpux9* | hpux10* | hpux11*) 14554456fccdSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 14564456fccdSmrg # link against other versions. 14574456fccdSmrg version_type=sunos 14584456fccdSmrg need_lib_prefix=no 14594456fccdSmrg need_version=no 14604456fccdSmrg case $host_cpu in 14614456fccdSmrg ia64*) 14624456fccdSmrg shrext_cmds='.so' 14634456fccdSmrg hardcode_into_libs=yes 14644456fccdSmrg dynamic_linker="$host_os dld.so" 14654456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 14664456fccdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14674456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14684456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 14694456fccdSmrg if test "X$HPUX_IA64_MODE" = X32; then 14704456fccdSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14714456fccdSmrg else 14724456fccdSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14734456fccdSmrg fi 14744456fccdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14754456fccdSmrg ;; 14764456fccdSmrg hppa*64*) 14774456fccdSmrg shrext_cmds='.sl' 14784456fccdSmrg hardcode_into_libs=yes 14794456fccdSmrg dynamic_linker="$host_os dld.sl" 14804456fccdSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14814456fccdSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14824456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14834456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 14844456fccdSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14854456fccdSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14864456fccdSmrg ;; 14874456fccdSmrg *) 14884456fccdSmrg shrext_cmds='.sl' 14894456fccdSmrg dynamic_linker="$host_os dld.sl" 14904456fccdSmrg shlibpath_var=SHLIB_PATH 14914456fccdSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14924456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14934456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 14944456fccdSmrg ;; 14954456fccdSmrg esac 14964456fccdSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 14974456fccdSmrg postinstall_cmds='chmod 555 $lib' 14984456fccdSmrg ;; 14994456fccdSmrg 15004456fccdSmrginterix3*) 15014456fccdSmrg version_type=linux 15024456fccdSmrg need_lib_prefix=no 15034456fccdSmrg need_version=no 15044456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15054456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 15064456fccdSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 15074456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 15084456fccdSmrg shlibpath_overrides_runpath=no 15094456fccdSmrg hardcode_into_libs=yes 15104456fccdSmrg ;; 15114456fccdSmrg 15124456fccdSmrgirix5* | irix6* | nonstopux*) 15134456fccdSmrg case $host_os in 15144456fccdSmrg nonstopux*) version_type=nonstopux ;; 15154456fccdSmrg *) 15164456fccdSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 15174456fccdSmrg version_type=linux 15184456fccdSmrg else 15194456fccdSmrg version_type=irix 15204456fccdSmrg fi ;; 15214456fccdSmrg esac 15224456fccdSmrg need_lib_prefix=no 15234456fccdSmrg need_version=no 15244456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 15254456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 15264456fccdSmrg case $host_os in 15274456fccdSmrg irix5* | nonstopux*) 15284456fccdSmrg libsuff= shlibsuff= 15294456fccdSmrg ;; 15304456fccdSmrg *) 15314456fccdSmrg case $LD in # libtool.m4 will add one of these switches to LD 15324456fccdSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 15334456fccdSmrg libsuff= shlibsuff= libmagic=32-bit;; 15344456fccdSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 15354456fccdSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 15364456fccdSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 15374456fccdSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 15384456fccdSmrg *) libsuff= shlibsuff= libmagic=never-match;; 15394456fccdSmrg esac 15404456fccdSmrg ;; 15414456fccdSmrg esac 15424456fccdSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 15434456fccdSmrg shlibpath_overrides_runpath=no 15444456fccdSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 15454456fccdSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 15464456fccdSmrg hardcode_into_libs=yes 15474456fccdSmrg ;; 15484456fccdSmrg 15494456fccdSmrg# No shared lib support for Linux oldld, aout, or coff. 15504456fccdSmrglinux*oldld* | linux*aout* | linux*coff*) 15514456fccdSmrg dynamic_linker=no 15524456fccdSmrg ;; 15534456fccdSmrg 15544456fccdSmrg# This must be Linux ELF. 15554456fccdSmrglinux* | k*bsd*-gnu) 15564456fccdSmrg version_type=linux 15574456fccdSmrg need_lib_prefix=no 15584456fccdSmrg need_version=no 15594456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 15604456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 15614456fccdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 15624456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 15634456fccdSmrg shlibpath_overrides_runpath=no 15644456fccdSmrg # This implies no fast_install, which is unacceptable. 15654456fccdSmrg # Some rework will be needed to allow for fast_install 15664456fccdSmrg # before this can be enabled. 15674456fccdSmrg hardcode_into_libs=yes 15684456fccdSmrg 15694456fccdSmrg # Append ld.so.conf contents to the search path 15704456fccdSmrg if test -f /etc/ld.so.conf; then 15714456fccdSmrg lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 15724456fccdSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 15734456fccdSmrg fi 15744456fccdSmrg 15754456fccdSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 15764456fccdSmrg # powerpc, because MkLinux only supported shared libraries with the 15774456fccdSmrg # GNU dynamic linker. Since this was broken with cross compilers, 15784456fccdSmrg # most powerpc-linux boxes support dynamic linking these days and 15794456fccdSmrg # people can always --disable-shared, the test was removed, and we 15804456fccdSmrg # assume the GNU/Linux dynamic linker is in use. 15814456fccdSmrg dynamic_linker='GNU/Linux ld.so' 15824456fccdSmrg ;; 15834456fccdSmrg 15844456fccdSmrgnetbsdelf*-gnu) 15854456fccdSmrg version_type=linux 15864456fccdSmrg need_lib_prefix=no 15874456fccdSmrg need_version=no 15884456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 15894456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 15904456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 15914456fccdSmrg shlibpath_overrides_runpath=no 15924456fccdSmrg hardcode_into_libs=yes 15934456fccdSmrg dynamic_linker='NetBSD ld.elf_so' 15944456fccdSmrg ;; 15954456fccdSmrg 15964456fccdSmrgnetbsd*) 15974456fccdSmrg version_type=sunos 15984456fccdSmrg need_lib_prefix=no 15994456fccdSmrg need_version=no 16004456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16014456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16024456fccdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16034456fccdSmrg dynamic_linker='NetBSD (a.out) ld.so' 16044456fccdSmrg else 16054456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16064456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 16074456fccdSmrg dynamic_linker='NetBSD ld.elf_so' 16084456fccdSmrg fi 16094456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16104456fccdSmrg shlibpath_overrides_runpath=yes 16114456fccdSmrg hardcode_into_libs=yes 16124456fccdSmrg ;; 16134456fccdSmrg 16144456fccdSmrgnewsos6) 16154456fccdSmrg version_type=linux 16164456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16174456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16184456fccdSmrg shlibpath_overrides_runpath=yes 16194456fccdSmrg ;; 16204456fccdSmrg 16214456fccdSmrgnto-qnx*) 16224456fccdSmrg version_type=linux 16234456fccdSmrg need_lib_prefix=no 16244456fccdSmrg need_version=no 16254456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16264456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 16274456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16284456fccdSmrg shlibpath_overrides_runpath=yes 16294456fccdSmrg ;; 16304456fccdSmrg 16314456fccdSmrgopenbsd*) 16324456fccdSmrg version_type=sunos 16334456fccdSmrg sys_lib_dlsearch_path_spec="/usr/lib" 16344456fccdSmrg need_lib_prefix=no 16354456fccdSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 16364456fccdSmrg case $host_os in 16374456fccdSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 16384456fccdSmrg *) need_version=no ;; 16394456fccdSmrg esac 16404456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16414456fccdSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16424456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16434456fccdSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16444456fccdSmrg case $host_os in 16454456fccdSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 16464456fccdSmrg shlibpath_overrides_runpath=no 16474456fccdSmrg ;; 16484456fccdSmrg *) 16494456fccdSmrg shlibpath_overrides_runpath=yes 16504456fccdSmrg ;; 16514456fccdSmrg esac 16524456fccdSmrg else 16534456fccdSmrg shlibpath_overrides_runpath=yes 16544456fccdSmrg fi 16554456fccdSmrg ;; 16564456fccdSmrg 16574456fccdSmrgos2*) 16584456fccdSmrg libname_spec='$name' 16594456fccdSmrg shrext_cmds=".dll" 16604456fccdSmrg need_lib_prefix=no 16614456fccdSmrg library_names_spec='$libname${shared_ext} $libname.a' 16624456fccdSmrg dynamic_linker='OS/2 ld.exe' 16634456fccdSmrg shlibpath_var=LIBPATH 16644456fccdSmrg ;; 16654456fccdSmrg 16664456fccdSmrgosf3* | osf4* | osf5*) 16674456fccdSmrg version_type=osf 16684456fccdSmrg need_lib_prefix=no 16694456fccdSmrg need_version=no 16704456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 16714456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16724456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16734456fccdSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16744456fccdSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16754456fccdSmrg ;; 16764456fccdSmrg 16774456fccdSmrgsolaris*) 16784456fccdSmrg version_type=linux 16794456fccdSmrg need_lib_prefix=no 16804456fccdSmrg need_version=no 16814456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16824456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 16834456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16844456fccdSmrg shlibpath_overrides_runpath=yes 16854456fccdSmrg hardcode_into_libs=yes 16864456fccdSmrg # ldd complains unless libraries are executable 16874456fccdSmrg postinstall_cmds='chmod +x $lib' 16884456fccdSmrg ;; 16894456fccdSmrg 16904456fccdSmrgsunos4*) 16914456fccdSmrg version_type=sunos 16924456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16934456fccdSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16944456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 16954456fccdSmrg shlibpath_overrides_runpath=yes 16964456fccdSmrg if test "$with_gnu_ld" = yes; then 16974456fccdSmrg need_lib_prefix=no 16984456fccdSmrg fi 16994456fccdSmrg need_version=yes 17004456fccdSmrg ;; 17014456fccdSmrg 17024456fccdSmrgsysv4 | sysv4.3*) 17034456fccdSmrg version_type=linux 17044456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17054456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 17064456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 17074456fccdSmrg case $host_vendor in 17084456fccdSmrg sni) 17094456fccdSmrg shlibpath_overrides_runpath=no 17104456fccdSmrg need_lib_prefix=no 17114456fccdSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 17124456fccdSmrg runpath_var=LD_RUN_PATH 17134456fccdSmrg ;; 17144456fccdSmrg siemens) 17154456fccdSmrg need_lib_prefix=no 17164456fccdSmrg ;; 17174456fccdSmrg motorola) 17184456fccdSmrg need_lib_prefix=no 17194456fccdSmrg need_version=no 17204456fccdSmrg shlibpath_overrides_runpath=no 17214456fccdSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17224456fccdSmrg ;; 17234456fccdSmrg esac 17244456fccdSmrg ;; 17254456fccdSmrg 17264456fccdSmrgsysv4*MP*) 17274456fccdSmrg if test -d /usr/nec ;then 17284456fccdSmrg version_type=linux 17294456fccdSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17304456fccdSmrg soname_spec='$libname${shared_ext}.$major' 17314456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 17324456fccdSmrg fi 17334456fccdSmrg ;; 17344456fccdSmrg 17354456fccdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17364456fccdSmrg version_type=freebsd-elf 17374456fccdSmrg need_lib_prefix=no 17384456fccdSmrg need_version=no 17394456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17404456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 17414456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 17424456fccdSmrg hardcode_into_libs=yes 17434456fccdSmrg if test "$with_gnu_ld" = yes; then 17444456fccdSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17454456fccdSmrg shlibpath_overrides_runpath=no 17464456fccdSmrg else 17474456fccdSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17484456fccdSmrg shlibpath_overrides_runpath=yes 17494456fccdSmrg case $host_os in 17504456fccdSmrg sco3.2v5*) 17514456fccdSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17524456fccdSmrg ;; 17534456fccdSmrg esac 17544456fccdSmrg fi 17554456fccdSmrg sys_lib_dlsearch_path_spec='/usr/lib' 17564456fccdSmrg ;; 17574456fccdSmrg 17584456fccdSmrguts4*) 17594456fccdSmrg version_type=linux 17604456fccdSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17614456fccdSmrg soname_spec='${libname}${release}${shared_ext}$major' 17624456fccdSmrg shlibpath_var=LD_LIBRARY_PATH 17634456fccdSmrg ;; 17644456fccdSmrg 17654456fccdSmrg*) 17664456fccdSmrg dynamic_linker=no 17674456fccdSmrg ;; 17684456fccdSmrgesac 17694456fccdSmrgAC_MSG_RESULT([$dynamic_linker]) 17704456fccdSmrgtest "$dynamic_linker" = no && can_build_shared=no 17714456fccdSmrg 17724456fccdSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17734456fccdSmrgif test "$GCC" = yes; then 17744456fccdSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17754456fccdSmrgfi 17764456fccdSmrg])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 17774456fccdSmrg 17784456fccdSmrg 17794456fccdSmrg# _LT_AC_TAGCONFIG 17804456fccdSmrg# ---------------- 17814456fccdSmrgAC_DEFUN([_LT_AC_TAGCONFIG], 17824456fccdSmrg[AC_ARG_WITH([tags], 17834456fccdSmrg [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 17844456fccdSmrg [include additional configurations @<:@automatic@:>@])], 17854456fccdSmrg [tagnames="$withval"]) 17864456fccdSmrg 17874456fccdSmrgif test -f "$ltmain" && test -n "$tagnames"; then 17884456fccdSmrg if test ! -f "${ofile}"; then 17894456fccdSmrg AC_MSG_WARN([output file `$ofile' does not exist]) 17904456fccdSmrg fi 17914456fccdSmrg 17924456fccdSmrg if test -z "$LTCC"; then 17934456fccdSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 17944456fccdSmrg if test -z "$LTCC"; then 17954456fccdSmrg AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 17964456fccdSmrg else 17974456fccdSmrg AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 17984456fccdSmrg fi 17994456fccdSmrg fi 18004456fccdSmrg if test -z "$LTCFLAGS"; then 18014456fccdSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 18024456fccdSmrg fi 18034456fccdSmrg 18044456fccdSmrg # Extract list of available tagged configurations in $ofile. 18054456fccdSmrg # Note that this assumes the entire list is on one line. 18064456fccdSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 18074456fccdSmrg 18084456fccdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 18094456fccdSmrg for tagname in $tagnames; do 18104456fccdSmrg IFS="$lt_save_ifs" 18114456fccdSmrg # Check whether tagname contains only valid characters 18124456fccdSmrg case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 18134456fccdSmrg "") ;; 18144456fccdSmrg *) AC_MSG_ERROR([invalid tag name: $tagname]) 18154456fccdSmrg ;; 18164456fccdSmrg esac 18174456fccdSmrg 18184456fccdSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 18194456fccdSmrg then 18204456fccdSmrg AC_MSG_ERROR([tag name \"$tagname\" already exists]) 18214456fccdSmrg fi 18224456fccdSmrg 18234456fccdSmrg # Update the list of available tags. 18244456fccdSmrg if test -n "$tagname"; then 18254456fccdSmrg echo appending configuration tag \"$tagname\" to $ofile 18264456fccdSmrg 18274456fccdSmrg case $tagname in 18284456fccdSmrg CXX) 18294456fccdSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 18304456fccdSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 18314456fccdSmrg (test "X$CXX" != "Xg++"))) ; then 18324456fccdSmrg AC_LIBTOOL_LANG_CXX_CONFIG 18334456fccdSmrg else 18344456fccdSmrg tagname="" 18354456fccdSmrg fi 18364456fccdSmrg ;; 18374456fccdSmrg 18384456fccdSmrg F77) 18394456fccdSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 18404456fccdSmrg AC_LIBTOOL_LANG_F77_CONFIG 18414456fccdSmrg else 18424456fccdSmrg tagname="" 18434456fccdSmrg fi 18444456fccdSmrg ;; 18454456fccdSmrg 18464456fccdSmrg GCJ) 18474456fccdSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 18484456fccdSmrg AC_LIBTOOL_LANG_GCJ_CONFIG 18494456fccdSmrg else 18504456fccdSmrg tagname="" 18514456fccdSmrg fi 18524456fccdSmrg ;; 18534456fccdSmrg 18544456fccdSmrg RC) 18554456fccdSmrg AC_LIBTOOL_LANG_RC_CONFIG 18564456fccdSmrg ;; 18574456fccdSmrg 18584456fccdSmrg *) 18594456fccdSmrg AC_MSG_ERROR([Unsupported tag name: $tagname]) 18604456fccdSmrg ;; 18614456fccdSmrg esac 18624456fccdSmrg 18634456fccdSmrg # Append the new tag name to the list of available tags. 18644456fccdSmrg if test -n "$tagname" ; then 18654456fccdSmrg available_tags="$available_tags $tagname" 18664456fccdSmrg fi 18674456fccdSmrg fi 18684456fccdSmrg done 18694456fccdSmrg IFS="$lt_save_ifs" 18704456fccdSmrg 18714456fccdSmrg # Now substitute the updated list of available tags. 18724456fccdSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18734456fccdSmrg mv "${ofile}T" "$ofile" 18744456fccdSmrg chmod +x "$ofile" 18754456fccdSmrg else 18764456fccdSmrg rm -f "${ofile}T" 18774456fccdSmrg AC_MSG_ERROR([unable to update list of available tagged configurations.]) 18784456fccdSmrg fi 18794456fccdSmrgfi 18804456fccdSmrg])# _LT_AC_TAGCONFIG 18814456fccdSmrg 18824456fccdSmrg 18834456fccdSmrg# AC_LIBTOOL_DLOPEN 18844456fccdSmrg# ----------------- 18854456fccdSmrg# enable checks for dlopen support 18864456fccdSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN], 18874456fccdSmrg [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 18884456fccdSmrg])# AC_LIBTOOL_DLOPEN 18894456fccdSmrg 18904456fccdSmrg 18914456fccdSmrg# AC_LIBTOOL_WIN32_DLL 18924456fccdSmrg# -------------------- 18934456fccdSmrg# declare package support for building win32 DLLs 18944456fccdSmrgAC_DEFUN([AC_LIBTOOL_WIN32_DLL], 18954456fccdSmrg[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 18964456fccdSmrg])# AC_LIBTOOL_WIN32_DLL 18974456fccdSmrg 18984456fccdSmrg 18994456fccdSmrg# AC_ENABLE_SHARED([DEFAULT]) 19004456fccdSmrg# --------------------------- 19014456fccdSmrg# implement the --enable-shared flag 19024456fccdSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19034456fccdSmrgAC_DEFUN([AC_ENABLE_SHARED], 19044456fccdSmrg[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 19054456fccdSmrgAC_ARG_ENABLE([shared], 19064456fccdSmrg [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 19074456fccdSmrg [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 19084456fccdSmrg [p=${PACKAGE-default} 19094456fccdSmrg case $enableval in 19104456fccdSmrg yes) enable_shared=yes ;; 19114456fccdSmrg no) enable_shared=no ;; 19124456fccdSmrg *) 19134456fccdSmrg enable_shared=no 19144456fccdSmrg # Look at the argument we got. We use all the common list separators. 19154456fccdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 19164456fccdSmrg for pkg in $enableval; do 19174456fccdSmrg IFS="$lt_save_ifs" 19184456fccdSmrg if test "X$pkg" = "X$p"; then 19194456fccdSmrg enable_shared=yes 19204456fccdSmrg fi 19214456fccdSmrg done 19224456fccdSmrg IFS="$lt_save_ifs" 19234456fccdSmrg ;; 19244456fccdSmrg esac], 19254456fccdSmrg [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 19264456fccdSmrg])# AC_ENABLE_SHARED 19274456fccdSmrg 19284456fccdSmrg 19294456fccdSmrg# AC_DISABLE_SHARED 19304456fccdSmrg# ----------------- 19314456fccdSmrg# set the default shared flag to --disable-shared 19324456fccdSmrgAC_DEFUN([AC_DISABLE_SHARED], 19334456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 19344456fccdSmrgAC_ENABLE_SHARED(no) 19354456fccdSmrg])# AC_DISABLE_SHARED 19364456fccdSmrg 19374456fccdSmrg 19384456fccdSmrg# AC_ENABLE_STATIC([DEFAULT]) 19394456fccdSmrg# --------------------------- 19404456fccdSmrg# implement the --enable-static flag 19414456fccdSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19424456fccdSmrgAC_DEFUN([AC_ENABLE_STATIC], 19434456fccdSmrg[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 19444456fccdSmrgAC_ARG_ENABLE([static], 19454456fccdSmrg [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 19464456fccdSmrg [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 19474456fccdSmrg [p=${PACKAGE-default} 19484456fccdSmrg case $enableval in 19494456fccdSmrg yes) enable_static=yes ;; 19504456fccdSmrg no) enable_static=no ;; 19514456fccdSmrg *) 19524456fccdSmrg enable_static=no 19534456fccdSmrg # Look at the argument we got. We use all the common list separators. 19544456fccdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 19554456fccdSmrg for pkg in $enableval; do 19564456fccdSmrg IFS="$lt_save_ifs" 19574456fccdSmrg if test "X$pkg" = "X$p"; then 19584456fccdSmrg enable_static=yes 19594456fccdSmrg fi 19604456fccdSmrg done 19614456fccdSmrg IFS="$lt_save_ifs" 19624456fccdSmrg ;; 19634456fccdSmrg esac], 19644456fccdSmrg [enable_static=]AC_ENABLE_STATIC_DEFAULT) 19654456fccdSmrg])# AC_ENABLE_STATIC 19664456fccdSmrg 19674456fccdSmrg 19684456fccdSmrg# AC_DISABLE_STATIC 19694456fccdSmrg# ----------------- 19704456fccdSmrg# set the default static flag to --disable-static 19714456fccdSmrgAC_DEFUN([AC_DISABLE_STATIC], 19724456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 19734456fccdSmrgAC_ENABLE_STATIC(no) 19744456fccdSmrg])# AC_DISABLE_STATIC 19754456fccdSmrg 19764456fccdSmrg 19774456fccdSmrg# AC_ENABLE_FAST_INSTALL([DEFAULT]) 19784456fccdSmrg# --------------------------------- 19794456fccdSmrg# implement the --enable-fast-install flag 19804456fccdSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 19814456fccdSmrgAC_DEFUN([AC_ENABLE_FAST_INSTALL], 19824456fccdSmrg[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 19834456fccdSmrgAC_ARG_ENABLE([fast-install], 19844456fccdSmrg [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 19854456fccdSmrg [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 19864456fccdSmrg [p=${PACKAGE-default} 19874456fccdSmrg case $enableval in 19884456fccdSmrg yes) enable_fast_install=yes ;; 19894456fccdSmrg no) enable_fast_install=no ;; 19904456fccdSmrg *) 19914456fccdSmrg enable_fast_install=no 19924456fccdSmrg # Look at the argument we got. We use all the common list separators. 19934456fccdSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 19944456fccdSmrg for pkg in $enableval; do 19954456fccdSmrg IFS="$lt_save_ifs" 19964456fccdSmrg if test "X$pkg" = "X$p"; then 19974456fccdSmrg enable_fast_install=yes 19984456fccdSmrg fi 19994456fccdSmrg done 20004456fccdSmrg IFS="$lt_save_ifs" 20014456fccdSmrg ;; 20024456fccdSmrg esac], 20034456fccdSmrg [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 20044456fccdSmrg])# AC_ENABLE_FAST_INSTALL 20054456fccdSmrg 20064456fccdSmrg 20074456fccdSmrg# AC_DISABLE_FAST_INSTALL 20084456fccdSmrg# ----------------------- 20094456fccdSmrg# set the default to --disable-fast-install 20104456fccdSmrgAC_DEFUN([AC_DISABLE_FAST_INSTALL], 20114456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 20124456fccdSmrgAC_ENABLE_FAST_INSTALL(no) 20134456fccdSmrg])# AC_DISABLE_FAST_INSTALL 20144456fccdSmrg 20154456fccdSmrg 20164456fccdSmrg# AC_LIBTOOL_PICMODE([MODE]) 20174456fccdSmrg# -------------------------- 20184456fccdSmrg# implement the --with-pic flag 20194456fccdSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 20204456fccdSmrgAC_DEFUN([AC_LIBTOOL_PICMODE], 20214456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 20224456fccdSmrgpic_mode=ifelse($#,1,$1,default) 20234456fccdSmrg])# AC_LIBTOOL_PICMODE 20244456fccdSmrg 20254456fccdSmrg 20264456fccdSmrg# AC_PROG_EGREP 20274456fccdSmrg# ------------- 20284456fccdSmrg# This is predefined starting with Autoconf 2.54, so this conditional 20294456fccdSmrg# definition can be removed once we require Autoconf 2.54 or later. 20304456fccdSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 20314456fccdSmrg[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 20324456fccdSmrg [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 20334456fccdSmrg then ac_cv_prog_egrep='grep -E' 20344456fccdSmrg else ac_cv_prog_egrep='egrep' 20354456fccdSmrg fi]) 20364456fccdSmrg EGREP=$ac_cv_prog_egrep 20374456fccdSmrg AC_SUBST([EGREP]) 20384456fccdSmrg])]) 20394456fccdSmrg 20404456fccdSmrg 20414456fccdSmrg# AC_PATH_TOOL_PREFIX 20424456fccdSmrg# ------------------- 20434456fccdSmrg# find a file program which can recognise shared library 20444456fccdSmrgAC_DEFUN([AC_PATH_TOOL_PREFIX], 20454456fccdSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 20464456fccdSmrgAC_MSG_CHECKING([for $1]) 20474456fccdSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 20484456fccdSmrg[case $MAGIC_CMD in 20494456fccdSmrg[[\\/*] | ?:[\\/]*]) 20504456fccdSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 20514456fccdSmrg ;; 20524456fccdSmrg*) 20534456fccdSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 20544456fccdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20554456fccdSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 20564456fccdSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 20574456fccdSmrgdnl not every word. This closes a longstanding sh security hole. 20584456fccdSmrg ac_dummy="ifelse([$2], , $PATH, [$2])" 20594456fccdSmrg for ac_dir in $ac_dummy; do 20604456fccdSmrg IFS="$lt_save_ifs" 20614456fccdSmrg test -z "$ac_dir" && ac_dir=. 20624456fccdSmrg if test -f $ac_dir/$1; then 20634456fccdSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 20644456fccdSmrg if test -n "$file_magic_test_file"; then 20654456fccdSmrg case $deplibs_check_method in 20664456fccdSmrg "file_magic "*) 20674456fccdSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 20684456fccdSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 20694456fccdSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 20704456fccdSmrg $EGREP "$file_magic_regex" > /dev/null; then 20714456fccdSmrg : 20724456fccdSmrg else 20734456fccdSmrg cat <<EOF 1>&2 20744456fccdSmrg 20754456fccdSmrg*** Warning: the command libtool uses to detect shared libraries, 20764456fccdSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 20774456fccdSmrg*** The result is that libtool may fail to recognize shared libraries 20784456fccdSmrg*** as such. This will affect the creation of libtool libraries that 20794456fccdSmrg*** depend on shared libraries, but programs linked with such libtool 20804456fccdSmrg*** libraries will work regardless of this problem. Nevertheless, you 20814456fccdSmrg*** may want to report the problem to your system manager and/or to 20824456fccdSmrg*** bug-libtool@gnu.org 20834456fccdSmrg 20844456fccdSmrgEOF 20854456fccdSmrg fi ;; 20864456fccdSmrg esac 20874456fccdSmrg fi 20884456fccdSmrg break 20894456fccdSmrg fi 20904456fccdSmrg done 20914456fccdSmrg IFS="$lt_save_ifs" 20924456fccdSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 20934456fccdSmrg ;; 20944456fccdSmrgesac]) 20954456fccdSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 20964456fccdSmrgif test -n "$MAGIC_CMD"; then 20974456fccdSmrg AC_MSG_RESULT($MAGIC_CMD) 20984456fccdSmrgelse 20994456fccdSmrg AC_MSG_RESULT(no) 21004456fccdSmrgfi 21014456fccdSmrg])# AC_PATH_TOOL_PREFIX 21024456fccdSmrg 21034456fccdSmrg 21044456fccdSmrg# AC_PATH_MAGIC 21054456fccdSmrg# ------------- 21064456fccdSmrg# find a file program which can recognise a shared library 21074456fccdSmrgAC_DEFUN([AC_PATH_MAGIC], 21084456fccdSmrg[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 21094456fccdSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 21104456fccdSmrg if test -n "$ac_tool_prefix"; then 21114456fccdSmrg AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 21124456fccdSmrg else 21134456fccdSmrg MAGIC_CMD=: 21144456fccdSmrg fi 21154456fccdSmrgfi 21164456fccdSmrg])# AC_PATH_MAGIC 21174456fccdSmrg 21184456fccdSmrg 21194456fccdSmrg# AC_PROG_LD 21204456fccdSmrg# ---------- 21214456fccdSmrg# find the pathname to the GNU or non-GNU linker 21224456fccdSmrgAC_DEFUN([AC_PROG_LD], 21234456fccdSmrg[AC_ARG_WITH([gnu-ld], 21244456fccdSmrg [AC_HELP_STRING([--with-gnu-ld], 21254456fccdSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 21264456fccdSmrg [test "$withval" = no || with_gnu_ld=yes], 21274456fccdSmrg [with_gnu_ld=no]) 21284456fccdSmrgAC_REQUIRE([LT_AC_PROG_SED])dnl 21294456fccdSmrgAC_REQUIRE([AC_PROG_CC])dnl 21304456fccdSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 21314456fccdSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 21324456fccdSmrgac_prog=ld 21334456fccdSmrgif test "$GCC" = yes; then 21344456fccdSmrg # Check if gcc -print-prog-name=ld gives a path. 21354456fccdSmrg AC_MSG_CHECKING([for ld used by $CC]) 21364456fccdSmrg case $host in 21374456fccdSmrg *-*-mingw*) 21384456fccdSmrg # gcc leaves a trailing carriage return which upsets mingw 21394456fccdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 21404456fccdSmrg *) 21414456fccdSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 21424456fccdSmrg esac 21434456fccdSmrg case $ac_prog in 21444456fccdSmrg # Accept absolute paths. 21454456fccdSmrg [[\\/]]* | ?:[[\\/]]*) 21464456fccdSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 21474456fccdSmrg # Canonicalize the pathname of ld 21484456fccdSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 21494456fccdSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 21504456fccdSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 21514456fccdSmrg done 21524456fccdSmrg test -z "$LD" && LD="$ac_prog" 21534456fccdSmrg ;; 21544456fccdSmrg "") 21554456fccdSmrg # If it fails, then pretend we aren't using GCC. 21564456fccdSmrg ac_prog=ld 21574456fccdSmrg ;; 21584456fccdSmrg *) 21594456fccdSmrg # If it is relative, then search for the first ld in PATH. 21604456fccdSmrg with_gnu_ld=unknown 21614456fccdSmrg ;; 21624456fccdSmrg esac 21634456fccdSmrgelif test "$with_gnu_ld" = yes; then 21644456fccdSmrg AC_MSG_CHECKING([for GNU ld]) 21654456fccdSmrgelse 21664456fccdSmrg AC_MSG_CHECKING([for non-GNU ld]) 21674456fccdSmrgfi 21684456fccdSmrgAC_CACHE_VAL(lt_cv_path_LD, 21694456fccdSmrg[if test -z "$LD"; then 21704456fccdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 21714456fccdSmrg for ac_dir in $PATH; do 21724456fccdSmrg IFS="$lt_save_ifs" 21734456fccdSmrg test -z "$ac_dir" && ac_dir=. 21744456fccdSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 21754456fccdSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 21764456fccdSmrg # Check to see if the program is GNU ld. I'd rather use --version, 21774456fccdSmrg # but apparently some variants of GNU ld only accept -v. 21784456fccdSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 21794456fccdSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 21804456fccdSmrg *GNU* | *'with BFD'*) 21814456fccdSmrg test "$with_gnu_ld" != no && break 21824456fccdSmrg ;; 21834456fccdSmrg *) 21844456fccdSmrg test "$with_gnu_ld" != yes && break 21854456fccdSmrg ;; 21864456fccdSmrg esac 21874456fccdSmrg fi 21884456fccdSmrg done 21894456fccdSmrg IFS="$lt_save_ifs" 21904456fccdSmrgelse 21914456fccdSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 21924456fccdSmrgfi]) 21934456fccdSmrgLD="$lt_cv_path_LD" 21944456fccdSmrgif test -n "$LD"; then 21954456fccdSmrg AC_MSG_RESULT($LD) 21964456fccdSmrgelse 21974456fccdSmrg AC_MSG_RESULT(no) 21984456fccdSmrgfi 21994456fccdSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 22004456fccdSmrgAC_PROG_LD_GNU 22014456fccdSmrg])# AC_PROG_LD 22024456fccdSmrg 22034456fccdSmrg 22044456fccdSmrg# AC_PROG_LD_GNU 22054456fccdSmrg# -------------- 22064456fccdSmrgAC_DEFUN([AC_PROG_LD_GNU], 22074456fccdSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 22084456fccdSmrgAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 22094456fccdSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 22104456fccdSmrgcase `$LD -v 2>&1 </dev/null` in 22114456fccdSmrg*GNU* | *'with BFD'*) 22124456fccdSmrg lt_cv_prog_gnu_ld=yes 22134456fccdSmrg ;; 22144456fccdSmrg*) 22154456fccdSmrg lt_cv_prog_gnu_ld=no 22164456fccdSmrg ;; 22174456fccdSmrgesac]) 22184456fccdSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 22194456fccdSmrg])# AC_PROG_LD_GNU 22204456fccdSmrg 22214456fccdSmrg 22224456fccdSmrg# AC_PROG_LD_RELOAD_FLAG 22234456fccdSmrg# ---------------------- 22244456fccdSmrg# find reload flag for linker 22254456fccdSmrg# -- PORTME Some linkers may need a different reload flag. 22264456fccdSmrgAC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 22274456fccdSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 22284456fccdSmrg lt_cv_ld_reload_flag, 22294456fccdSmrg [lt_cv_ld_reload_flag='-r']) 22304456fccdSmrgreload_flag=$lt_cv_ld_reload_flag 22314456fccdSmrgcase $reload_flag in 22324456fccdSmrg"" | " "*) ;; 22334456fccdSmrg*) reload_flag=" $reload_flag" ;; 22344456fccdSmrgesac 22354456fccdSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 22364456fccdSmrgcase $host_os in 22374456fccdSmrg darwin*) 22384456fccdSmrg if test "$GCC" = yes; then 22394456fccdSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 22404456fccdSmrg else 22414456fccdSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 22424456fccdSmrg fi 22434456fccdSmrg ;; 22444456fccdSmrgesac 22454456fccdSmrg])# AC_PROG_LD_RELOAD_FLAG 22464456fccdSmrg 22474456fccdSmrg 22484456fccdSmrg# AC_DEPLIBS_CHECK_METHOD 22494456fccdSmrg# ----------------------- 22504456fccdSmrg# how to check for library dependencies 22514456fccdSmrg# -- PORTME fill in with the dynamic library characteristics 22524456fccdSmrgAC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 22534456fccdSmrg[AC_CACHE_CHECK([how to recognise dependent libraries], 22544456fccdSmrglt_cv_deplibs_check_method, 22554456fccdSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 22564456fccdSmrglt_cv_file_magic_test_file= 22574456fccdSmrglt_cv_deplibs_check_method='unknown' 22584456fccdSmrg# Need to set the preceding variable on all platforms that support 22594456fccdSmrg# interlibrary dependencies. 22604456fccdSmrg# 'none' -- dependencies not supported. 22614456fccdSmrg# `unknown' -- same as none, but documents that we really don't know. 22624456fccdSmrg# 'pass_all' -- all dependencies passed with no checks. 22634456fccdSmrg# 'test_compile' -- check by making test program. 22644456fccdSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 22654456fccdSmrg# which responds to the $file_magic_cmd with a given extended regex. 22664456fccdSmrg# If you have `file' or equivalent on your system and you're not sure 22674456fccdSmrg# whether `pass_all' will *always* work, you probably want this one. 22684456fccdSmrg 22694456fccdSmrgcase $host_os in 22704456fccdSmrgaix4* | aix5*) 22714456fccdSmrg lt_cv_deplibs_check_method=pass_all 22724456fccdSmrg ;; 22734456fccdSmrg 22744456fccdSmrgbeos*) 22754456fccdSmrg lt_cv_deplibs_check_method=pass_all 22764456fccdSmrg ;; 22774456fccdSmrg 22784456fccdSmrgbsdi[[45]]*) 22794456fccdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 22804456fccdSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 22814456fccdSmrg lt_cv_file_magic_test_file=/shlib/libc.so 22824456fccdSmrg ;; 22834456fccdSmrg 22844456fccdSmrgcygwin*) 22854456fccdSmrg # func_win32_libid is a shell function defined in ltmain.sh 22864456fccdSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 22874456fccdSmrg lt_cv_file_magic_cmd='func_win32_libid' 22884456fccdSmrg ;; 22894456fccdSmrg 22904456fccdSmrgmingw* | pw32*) 22914456fccdSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 22924456fccdSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump'. 22934456fccdSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 22944456fccdSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 22954456fccdSmrg ;; 22964456fccdSmrg 22974456fccdSmrgdarwin* | rhapsody*) 22984456fccdSmrg lt_cv_deplibs_check_method=pass_all 22994456fccdSmrg ;; 23004456fccdSmrg 23014456fccdSmrgfreebsd* | dragonfly*) 23024456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 23034456fccdSmrg case $host_cpu in 23044456fccdSmrg i*86 ) 23054456fccdSmrg # Not sure whether the presence of OpenBSD here was a mistake. 23064456fccdSmrg # Let's accept both of them until this is cleared up. 23074456fccdSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 23084456fccdSmrg lt_cv_file_magic_cmd=/usr/bin/file 23094456fccdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 23104456fccdSmrg ;; 23114456fccdSmrg esac 23124456fccdSmrg else 23134456fccdSmrg lt_cv_deplibs_check_method=pass_all 23144456fccdSmrg fi 23154456fccdSmrg ;; 23164456fccdSmrg 23174456fccdSmrggnu*) 23184456fccdSmrg lt_cv_deplibs_check_method=pass_all 23194456fccdSmrg ;; 23204456fccdSmrg 23214456fccdSmrghpux10.20* | hpux11*) 23224456fccdSmrg lt_cv_file_magic_cmd=/usr/bin/file 23234456fccdSmrg case $host_cpu in 23244456fccdSmrg ia64*) 23254456fccdSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 23264456fccdSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 23274456fccdSmrg ;; 23284456fccdSmrg hppa*64*) 23294456fccdSmrg [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]'] 23304456fccdSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 23314456fccdSmrg ;; 23324456fccdSmrg *) 23334456fccdSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 23344456fccdSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 23354456fccdSmrg ;; 23364456fccdSmrg esac 23374456fccdSmrg ;; 23384456fccdSmrg 23394456fccdSmrginterix3*) 23404456fccdSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 23414456fccdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 23424456fccdSmrg ;; 23434456fccdSmrg 23444456fccdSmrgirix5* | irix6* | nonstopux*) 23454456fccdSmrg case $LD in 23464456fccdSmrg *-32|*"-32 ") libmagic=32-bit;; 23474456fccdSmrg *-n32|*"-n32 ") libmagic=N32;; 23484456fccdSmrg *-64|*"-64 ") libmagic=64-bit;; 23494456fccdSmrg *) libmagic=never-match;; 23504456fccdSmrg esac 23514456fccdSmrg lt_cv_deplibs_check_method=pass_all 23524456fccdSmrg ;; 23534456fccdSmrg 23544456fccdSmrg# This must be Linux ELF. 23554456fccdSmrglinux* | k*bsd*-gnu) 23564456fccdSmrg lt_cv_deplibs_check_method=pass_all 23574456fccdSmrg ;; 23584456fccdSmrg 23594456fccdSmrgnetbsd* | netbsdelf*-gnu) 23604456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 23614456fccdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 23624456fccdSmrg else 23634456fccdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 23644456fccdSmrg fi 23654456fccdSmrg ;; 23664456fccdSmrg 23674456fccdSmrgnewos6*) 23684456fccdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 23694456fccdSmrg lt_cv_file_magic_cmd=/usr/bin/file 23704456fccdSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 23714456fccdSmrg ;; 23724456fccdSmrg 23734456fccdSmrgnto-qnx*) 23744456fccdSmrg lt_cv_deplibs_check_method=unknown 23754456fccdSmrg ;; 23764456fccdSmrg 23774456fccdSmrgopenbsd*) 23784456fccdSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 23794456fccdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 23804456fccdSmrg else 23814456fccdSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 23824456fccdSmrg fi 23834456fccdSmrg ;; 23844456fccdSmrg 23854456fccdSmrgosf3* | osf4* | osf5*) 23864456fccdSmrg lt_cv_deplibs_check_method=pass_all 23874456fccdSmrg ;; 23884456fccdSmrg 23894456fccdSmrgsolaris*) 23904456fccdSmrg lt_cv_deplibs_check_method=pass_all 23914456fccdSmrg ;; 23924456fccdSmrg 23934456fccdSmrgsysv4 | sysv4.3*) 23944456fccdSmrg case $host_vendor in 23954456fccdSmrg motorola) 23964456fccdSmrg 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]]' 23974456fccdSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 23984456fccdSmrg ;; 23994456fccdSmrg ncr) 24004456fccdSmrg lt_cv_deplibs_check_method=pass_all 24014456fccdSmrg ;; 24024456fccdSmrg sequent) 24034456fccdSmrg lt_cv_file_magic_cmd='/bin/file' 24044456fccdSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 24054456fccdSmrg ;; 24064456fccdSmrg sni) 24074456fccdSmrg lt_cv_file_magic_cmd='/bin/file' 24084456fccdSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 24094456fccdSmrg lt_cv_file_magic_test_file=/lib/libc.so 24104456fccdSmrg ;; 24114456fccdSmrg siemens) 24124456fccdSmrg lt_cv_deplibs_check_method=pass_all 24134456fccdSmrg ;; 24144456fccdSmrg pc) 24154456fccdSmrg lt_cv_deplibs_check_method=pass_all 24164456fccdSmrg ;; 24174456fccdSmrg esac 24184456fccdSmrg ;; 24194456fccdSmrg 24204456fccdSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 24214456fccdSmrg lt_cv_deplibs_check_method=pass_all 24224456fccdSmrg ;; 24234456fccdSmrgesac 24244456fccdSmrg]) 24254456fccdSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 24264456fccdSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 24274456fccdSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 24284456fccdSmrg])# AC_DEPLIBS_CHECK_METHOD 24294456fccdSmrg 24304456fccdSmrg 24314456fccdSmrg# AC_PROG_NM 24324456fccdSmrg# ---------- 24334456fccdSmrg# find the pathname to a BSD-compatible name lister 24344456fccdSmrgAC_DEFUN([AC_PROG_NM], 24354456fccdSmrg[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 24364456fccdSmrg[if test -n "$NM"; then 24374456fccdSmrg # Let the user override the test. 24384456fccdSmrg lt_cv_path_NM="$NM" 24394456fccdSmrgelse 24404456fccdSmrg lt_nm_to_check="${ac_tool_prefix}nm" 24414456fccdSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 24424456fccdSmrg lt_nm_to_check="$lt_nm_to_check nm" 24434456fccdSmrg fi 24444456fccdSmrg for lt_tmp_nm in $lt_nm_to_check; do 24454456fccdSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 24464456fccdSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 24474456fccdSmrg IFS="$lt_save_ifs" 24484456fccdSmrg test -z "$ac_dir" && ac_dir=. 24494456fccdSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 24504456fccdSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 24514456fccdSmrg # Check to see if the nm accepts a BSD-compat flag. 24524456fccdSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 24534456fccdSmrg # nm: unknown option "B" ignored 24544456fccdSmrg # Tru64's nm complains that /dev/null is an invalid object file 24554456fccdSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 24564456fccdSmrg */dev/null* | *'Invalid file or object type'*) 24574456fccdSmrg lt_cv_path_NM="$tmp_nm -B" 24584456fccdSmrg break 24594456fccdSmrg ;; 24604456fccdSmrg *) 24614456fccdSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 24624456fccdSmrg */dev/null*) 24634456fccdSmrg lt_cv_path_NM="$tmp_nm -p" 24644456fccdSmrg break 24654456fccdSmrg ;; 24664456fccdSmrg *) 24674456fccdSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 24684456fccdSmrg continue # so that we can try to find one that supports BSD flags 24694456fccdSmrg ;; 24704456fccdSmrg esac 24714456fccdSmrg ;; 24724456fccdSmrg esac 24734456fccdSmrg fi 24744456fccdSmrg done 24754456fccdSmrg IFS="$lt_save_ifs" 24764456fccdSmrg done 24774456fccdSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 24784456fccdSmrgfi]) 24794456fccdSmrgNM="$lt_cv_path_NM" 24804456fccdSmrg])# AC_PROG_NM 24814456fccdSmrg 24824456fccdSmrg 24834456fccdSmrg# AC_CHECK_LIBM 24844456fccdSmrg# ------------- 24854456fccdSmrg# check for math library 24864456fccdSmrgAC_DEFUN([AC_CHECK_LIBM], 24874456fccdSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 24884456fccdSmrgLIBM= 24894456fccdSmrgcase $host in 24904456fccdSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 24914456fccdSmrg # These system don't have libm, or don't need it 24924456fccdSmrg ;; 24934456fccdSmrg*-ncr-sysv4.3*) 24944456fccdSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 24954456fccdSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 24964456fccdSmrg ;; 24974456fccdSmrg*) 24984456fccdSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 24994456fccdSmrg ;; 25004456fccdSmrgesac 25014456fccdSmrg])# AC_CHECK_LIBM 25024456fccdSmrg 25034456fccdSmrg 25044456fccdSmrg# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 25054456fccdSmrg# ----------------------------------- 25064456fccdSmrg# sets LIBLTDL to the link flags for the libltdl convenience library and 25074456fccdSmrg# LTDLINCL to the include flags for the libltdl header and adds 25084456fccdSmrg# --enable-ltdl-convenience to the configure arguments. Note that 25094456fccdSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 25104456fccdSmrg# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 25114456fccdSmrg# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 25124456fccdSmrg# (note the single quotes!). If your package is not flat and you're not 25134456fccdSmrg# using automake, define top_builddir and top_srcdir appropriately in 25144456fccdSmrg# the Makefiles. 25154456fccdSmrgAC_DEFUN([AC_LIBLTDL_CONVENIENCE], 25164456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 25174456fccdSmrg case $enable_ltdl_convenience in 25184456fccdSmrg no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 25194456fccdSmrg "") enable_ltdl_convenience=yes 25204456fccdSmrg ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 25214456fccdSmrg esac 25224456fccdSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 25234456fccdSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 25244456fccdSmrg # For backwards non-gettext consistent compatibility... 25254456fccdSmrg INCLTDL="$LTDLINCL" 25264456fccdSmrg])# AC_LIBLTDL_CONVENIENCE 25274456fccdSmrg 25284456fccdSmrg 25294456fccdSmrg# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 25304456fccdSmrg# ----------------------------------- 25314456fccdSmrg# sets LIBLTDL to the link flags for the libltdl installable library and 25324456fccdSmrg# LTDLINCL to the include flags for the libltdl header and adds 25334456fccdSmrg# --enable-ltdl-install to the configure arguments. Note that 25344456fccdSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 25354456fccdSmrg# and an installed libltdl is not found, it is assumed to be `libltdl'. 25364456fccdSmrg# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 25374456fccdSmrg# '${top_srcdir}/' (note the single quotes!). If your package is not 25384456fccdSmrg# flat and you're not using automake, define top_builddir and top_srcdir 25394456fccdSmrg# appropriately in the Makefiles. 25404456fccdSmrg# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 25414456fccdSmrgAC_DEFUN([AC_LIBLTDL_INSTALLABLE], 25424456fccdSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 25434456fccdSmrg AC_CHECK_LIB(ltdl, lt_dlinit, 25444456fccdSmrg [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 25454456fccdSmrg [if test x"$enable_ltdl_install" = xno; then 25464456fccdSmrg AC_MSG_WARN([libltdl not installed, but installation disabled]) 25474456fccdSmrg else 25484456fccdSmrg enable_ltdl_install=yes 25494456fccdSmrg fi 25504456fccdSmrg ]) 25514456fccdSmrg if test x"$enable_ltdl_install" = x"yes"; then 25524456fccdSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install" 25534456fccdSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 25544456fccdSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 25554456fccdSmrg else 25564456fccdSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 25574456fccdSmrg LIBLTDL="-lltdl" 25584456fccdSmrg LTDLINCL= 25594456fccdSmrg fi 25604456fccdSmrg # For backwards non-gettext consistent compatibility... 25614456fccdSmrg INCLTDL="$LTDLINCL" 25624456fccdSmrg])# AC_LIBLTDL_INSTALLABLE 25634456fccdSmrg 25644456fccdSmrg 25654456fccdSmrg# AC_LIBTOOL_CXX 25664456fccdSmrg# -------------- 25674456fccdSmrg# enable support for C++ libraries 25684456fccdSmrgAC_DEFUN([AC_LIBTOOL_CXX], 25694456fccdSmrg[AC_REQUIRE([_LT_AC_LANG_CXX]) 25704456fccdSmrg])# AC_LIBTOOL_CXX 25714456fccdSmrg 25724456fccdSmrg 25734456fccdSmrg# _LT_AC_LANG_CXX 25744456fccdSmrg# --------------- 25754456fccdSmrgAC_DEFUN([_LT_AC_LANG_CXX], 25764456fccdSmrg[AC_REQUIRE([AC_PROG_CXX]) 25774456fccdSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 25784456fccdSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 25794456fccdSmrg])# _LT_AC_LANG_CXX 25804456fccdSmrg 25814456fccdSmrg# _LT_AC_PROG_CXXCPP 25824456fccdSmrg# ------------------ 25834456fccdSmrgAC_DEFUN([_LT_AC_PROG_CXXCPP], 25844456fccdSmrg[ 25854456fccdSmrgAC_REQUIRE([AC_PROG_CXX]) 25864456fccdSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 25874456fccdSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 25884456fccdSmrg (test "X$CXX" != "Xg++"))) ; then 25894456fccdSmrg AC_PROG_CXXCPP 25904456fccdSmrgfi 25914456fccdSmrg])# _LT_AC_PROG_CXXCPP 25924456fccdSmrg 25934456fccdSmrg# AC_LIBTOOL_F77 25944456fccdSmrg# -------------- 25954456fccdSmrg# enable support for Fortran 77 libraries 25964456fccdSmrgAC_DEFUN([AC_LIBTOOL_F77], 25974456fccdSmrg[AC_REQUIRE([_LT_AC_LANG_F77]) 25984456fccdSmrg])# AC_LIBTOOL_F77 25994456fccdSmrg 26004456fccdSmrg 26014456fccdSmrg# _LT_AC_LANG_F77 26024456fccdSmrg# --------------- 26034456fccdSmrgAC_DEFUN([_LT_AC_LANG_F77], 26044456fccdSmrg[AC_REQUIRE([AC_PROG_F77]) 26054456fccdSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 26064456fccdSmrg])# _LT_AC_LANG_F77 26074456fccdSmrg 26084456fccdSmrg 26094456fccdSmrg# AC_LIBTOOL_GCJ 26104456fccdSmrg# -------------- 26114456fccdSmrg# enable support for GCJ libraries 26124456fccdSmrgAC_DEFUN([AC_LIBTOOL_GCJ], 26134456fccdSmrg[AC_REQUIRE([_LT_AC_LANG_GCJ]) 26144456fccdSmrg])# AC_LIBTOOL_GCJ 26154456fccdSmrg 26164456fccdSmrg 26174456fccdSmrg# _LT_AC_LANG_GCJ 26184456fccdSmrg# --------------- 26194456fccdSmrgAC_DEFUN([_LT_AC_LANG_GCJ], 26204456fccdSmrg[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 26214456fccdSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 26224456fccdSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 26234456fccdSmrg [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 26244456fccdSmrg [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 26254456fccdSmrg [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 26264456fccdSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 26274456fccdSmrg])# _LT_AC_LANG_GCJ 26284456fccdSmrg 26294456fccdSmrg 26304456fccdSmrg# AC_LIBTOOL_RC 26314456fccdSmrg# ------------- 26324456fccdSmrg# enable support for Windows resource files 26334456fccdSmrgAC_DEFUN([AC_LIBTOOL_RC], 26344456fccdSmrg[AC_REQUIRE([LT_AC_PROG_RC]) 26354456fccdSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 26364456fccdSmrg])# AC_LIBTOOL_RC 26374456fccdSmrg 26384456fccdSmrg 26394456fccdSmrg# AC_LIBTOOL_LANG_C_CONFIG 26404456fccdSmrg# ------------------------ 26414456fccdSmrg# Ensure that the configuration vars for the C compiler are 26424456fccdSmrg# suitably defined. Those variables are subsequently used by 26434456fccdSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 26444456fccdSmrgAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 26454456fccdSmrgAC_DEFUN([_LT_AC_LANG_C_CONFIG], 26464456fccdSmrg[lt_save_CC="$CC" 26474456fccdSmrgAC_LANG_PUSH(C) 26484456fccdSmrg 26494456fccdSmrg# Source file extension for C test sources. 26504456fccdSmrgac_ext=c 26514456fccdSmrg 26524456fccdSmrg# Object file extension for compiled C test sources. 26534456fccdSmrgobjext=o 26544456fccdSmrg_LT_AC_TAGVAR(objext, $1)=$objext 26554456fccdSmrg 26564456fccdSmrg# Code to be used in simple compile tests 26574456fccdSmrglt_simple_compile_test_code="int some_variable = 0;\n" 26584456fccdSmrg 26594456fccdSmrg# Code to be used in simple link tests 26604456fccdSmrglt_simple_link_test_code='int main(){return(0);}\n' 26614456fccdSmrg 26624456fccdSmrg_LT_AC_SYS_COMPILER 26634456fccdSmrg 26644456fccdSmrg# save warnings/boilerplate of simple test code 26654456fccdSmrg_LT_COMPILER_BOILERPLATE 26664456fccdSmrg_LT_LINKER_BOILERPLATE 26674456fccdSmrg 26684456fccdSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 26694456fccdSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 26704456fccdSmrgAC_LIBTOOL_PROG_CC_C_O($1) 26714456fccdSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 26724456fccdSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 26734456fccdSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 26744456fccdSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 26754456fccdSmrgAC_LIBTOOL_SYS_LIB_STRIP 26764456fccdSmrgAC_LIBTOOL_DLOPEN_SELF 26774456fccdSmrg 26784456fccdSmrg# Report which library types will actually be built 26794456fccdSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 26804456fccdSmrgAC_MSG_RESULT([$can_build_shared]) 26814456fccdSmrg 26824456fccdSmrgAC_MSG_CHECKING([whether to build shared libraries]) 26834456fccdSmrgtest "$can_build_shared" = "no" && enable_shared=no 26844456fccdSmrg 26854456fccdSmrg# On AIX, shared libraries and static libraries use the same namespace, and 26864456fccdSmrg# are all built from PIC. 26874456fccdSmrgcase $host_os in 26884456fccdSmrgaix3*) 26894456fccdSmrg test "$enable_shared" = yes && enable_static=no 26904456fccdSmrg if test -n "$RANLIB"; then 26914456fccdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 26924456fccdSmrg postinstall_cmds='$RANLIB $lib' 26934456fccdSmrg fi 26944456fccdSmrg ;; 26954456fccdSmrg 26964456fccdSmrgaix4* | aix5*) 26974456fccdSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 26984456fccdSmrg test "$enable_shared" = yes && enable_static=no 26994456fccdSmrg fi 27004456fccdSmrg ;; 27014456fccdSmrgesac 27024456fccdSmrgAC_MSG_RESULT([$enable_shared]) 27034456fccdSmrg 27044456fccdSmrgAC_MSG_CHECKING([whether to build static libraries]) 27054456fccdSmrg# Make sure either enable_shared or enable_static is yes. 27064456fccdSmrgtest "$enable_shared" = yes || enable_static=yes 27074456fccdSmrgAC_MSG_RESULT([$enable_static]) 27084456fccdSmrg 27094456fccdSmrgAC_LIBTOOL_CONFIG($1) 27104456fccdSmrg 27114456fccdSmrgAC_LANG_POP 27124456fccdSmrgCC="$lt_save_CC" 27134456fccdSmrg])# AC_LIBTOOL_LANG_C_CONFIG 27144456fccdSmrg 27154456fccdSmrg 27164456fccdSmrg# AC_LIBTOOL_LANG_CXX_CONFIG 27174456fccdSmrg# -------------------------- 27184456fccdSmrg# Ensure that the configuration vars for the C compiler are 27194456fccdSmrg# suitably defined. Those variables are subsequently used by 27204456fccdSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 27214456fccdSmrgAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 27224456fccdSmrgAC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 27234456fccdSmrg[AC_LANG_PUSH(C++) 27244456fccdSmrgAC_REQUIRE([AC_PROG_CXX]) 27254456fccdSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 27264456fccdSmrg 27274456fccdSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 27284456fccdSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 27294456fccdSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 27304456fccdSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 27314456fccdSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 27324456fccdSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 27334456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 27344456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 27354456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 27364456fccdSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 27374456fccdSmrg_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 27384456fccdSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 27394456fccdSmrg_LT_AC_TAGVAR(module_cmds, $1)= 27404456fccdSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 27414456fccdSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 27424456fccdSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 27434456fccdSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 27444456fccdSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 27454456fccdSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 27464456fccdSmrg 27474456fccdSmrg# Dependencies to place before and after the object being linked: 27484456fccdSmrg_LT_AC_TAGVAR(predep_objects, $1)= 27494456fccdSmrg_LT_AC_TAGVAR(postdep_objects, $1)= 27504456fccdSmrg_LT_AC_TAGVAR(predeps, $1)= 27514456fccdSmrg_LT_AC_TAGVAR(postdeps, $1)= 27524456fccdSmrg_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 27534456fccdSmrg 27544456fccdSmrg# Source file extension for C++ test sources. 27554456fccdSmrgac_ext=cpp 27564456fccdSmrg 27574456fccdSmrg# Object file extension for compiled C++ test sources. 27584456fccdSmrgobjext=o 27594456fccdSmrg_LT_AC_TAGVAR(objext, $1)=$objext 27604456fccdSmrg 27614456fccdSmrg# Code to be used in simple compile tests 27624456fccdSmrglt_simple_compile_test_code="int some_variable = 0;\n" 27634456fccdSmrg 27644456fccdSmrg# Code to be used in simple link tests 27654456fccdSmrglt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 27664456fccdSmrg 27674456fccdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 27684456fccdSmrg_LT_AC_SYS_COMPILER 27694456fccdSmrg 27704456fccdSmrg# save warnings/boilerplate of simple test code 27714456fccdSmrg_LT_COMPILER_BOILERPLATE 27724456fccdSmrg_LT_LINKER_BOILERPLATE 27734456fccdSmrg 27744456fccdSmrg# Allow CC to be a program name with arguments. 27754456fccdSmrglt_save_CC=$CC 27764456fccdSmrglt_save_LD=$LD 27774456fccdSmrglt_save_GCC=$GCC 27784456fccdSmrgGCC=$GXX 27794456fccdSmrglt_save_with_gnu_ld=$with_gnu_ld 27804456fccdSmrglt_save_path_LD=$lt_cv_path_LD 27814456fccdSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 27824456fccdSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 27834456fccdSmrgelse 27844456fccdSmrg $as_unset lt_cv_prog_gnu_ld 27854456fccdSmrgfi 27864456fccdSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 27874456fccdSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 27884456fccdSmrgelse 27894456fccdSmrg $as_unset lt_cv_path_LD 27904456fccdSmrgfi 27914456fccdSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 27924456fccdSmrgCC=${CXX-"c++"} 27934456fccdSmrgcompiler=$CC 27944456fccdSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 27954456fccdSmrg_LT_CC_BASENAME([$compiler]) 27964456fccdSmrg 27974456fccdSmrg# We don't want -fno-exception wen compiling C++ code, so set the 27984456fccdSmrg# no_builtin_flag separately 27994456fccdSmrgif test "$GXX" = yes; then 28004456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 28014456fccdSmrgelse 28024456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 28034456fccdSmrgfi 28044456fccdSmrg 28054456fccdSmrgif test "$GXX" = yes; then 28064456fccdSmrg # Set up default GNU C++ configuration 28074456fccdSmrg 28084456fccdSmrg AC_PROG_LD 28094456fccdSmrg 28104456fccdSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 28114456fccdSmrg # archiving commands below assume that GNU ld is being used. 28124456fccdSmrg if test "$with_gnu_ld" = yes; then 28134456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 28144456fccdSmrg _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' 28154456fccdSmrg 28164456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 28174456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 28184456fccdSmrg 28194456fccdSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 28204456fccdSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 28214456fccdSmrg # investigate it a little bit more. (MM) 28224456fccdSmrg wlarc='${wl}' 28234456fccdSmrg 28244456fccdSmrg # ancient GNU ld didn't support --whole-archive et. al. 28254456fccdSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 28264456fccdSmrg grep 'no-whole-archive' > /dev/null; then 28274456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 28284456fccdSmrg else 28294456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 28304456fccdSmrg fi 28314456fccdSmrg else 28324456fccdSmrg with_gnu_ld=no 28334456fccdSmrg wlarc= 28344456fccdSmrg 28354456fccdSmrg # A generic and very simple default shared library creation 28364456fccdSmrg # command for GNU C++ for the case where it uses the native 28374456fccdSmrg # linker, instead of GNU ld. If possible, this setting should 28384456fccdSmrg # overridden to take advantage of the native linker features on 28394456fccdSmrg # the platform it is being used on. 28404456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 28414456fccdSmrg fi 28424456fccdSmrg 28434456fccdSmrg # Commands to make compiler produce verbose output that lists 28444456fccdSmrg # what "hidden" libraries, object files and flags are used when 28454456fccdSmrg # linking a shared library. 28464456fccdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 28474456fccdSmrg 28484456fccdSmrgelse 28494456fccdSmrg GXX=no 28504456fccdSmrg with_gnu_ld=no 28514456fccdSmrg wlarc= 28524456fccdSmrgfi 28534456fccdSmrg 28544456fccdSmrg# PORTME: fill in a description of your system's C++ link characteristics 28554456fccdSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 28564456fccdSmrg_LT_AC_TAGVAR(ld_shlibs, $1)=yes 28574456fccdSmrgcase $host_os in 28584456fccdSmrg aix3*) 28594456fccdSmrg # FIXME: insert proper C++ library support 28604456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 28614456fccdSmrg ;; 28624456fccdSmrg aix4* | aix5*) 28634456fccdSmrg if test "$host_cpu" = ia64; then 28644456fccdSmrg # On IA64, the linker does run time linking by default, so we don't 28654456fccdSmrg # have to do anything special. 28664456fccdSmrg aix_use_runtimelinking=no 28674456fccdSmrg exp_sym_flag='-Bexport' 28684456fccdSmrg no_entry_flag="" 28694456fccdSmrg else 28704456fccdSmrg aix_use_runtimelinking=no 28714456fccdSmrg 28724456fccdSmrg # Test if we are trying to use run time linking or normal 28734456fccdSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 28744456fccdSmrg # need to do runtime linking. 28754456fccdSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 28764456fccdSmrg for ld_flag in $LDFLAGS; do 28774456fccdSmrg case $ld_flag in 28784456fccdSmrg *-brtl*) 28794456fccdSmrg aix_use_runtimelinking=yes 28804456fccdSmrg break 28814456fccdSmrg ;; 28824456fccdSmrg esac 28834456fccdSmrg done 28844456fccdSmrg ;; 28854456fccdSmrg esac 28864456fccdSmrg 28874456fccdSmrg exp_sym_flag='-bexport' 28884456fccdSmrg no_entry_flag='-bnoentry' 28894456fccdSmrg fi 28904456fccdSmrg 28914456fccdSmrg # When large executables or shared objects are built, AIX ld can 28924456fccdSmrg # have problems creating the table of contents. If linking a library 28934456fccdSmrg # or program results in "error TOC overflow" add -mminimal-toc to 28944456fccdSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 28954456fccdSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 28964456fccdSmrg 28974456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 28984456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 28994456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 29004456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 29014456fccdSmrg 29024456fccdSmrg if test "$GXX" = yes; then 29034456fccdSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 29044456fccdSmrg # We only want to do this on AIX 4.2 and lower, the check 29054456fccdSmrg # below for broken collect2 doesn't work under 4.3+ 29064456fccdSmrg collect2name=`${CC} -print-prog-name=collect2` 29074456fccdSmrg if test -f "$collect2name" && \ 29084456fccdSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 29094456fccdSmrg then 29104456fccdSmrg # We have reworked collect2 29114456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 29124456fccdSmrg else 29134456fccdSmrg # We have old collect2 29144456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 29154456fccdSmrg # It fails to find uninstalled libraries when the uninstalled 29164456fccdSmrg # path is not listed in the libpath. Setting hardcode_minus_L 29174456fccdSmrg # to unsupported forces relinking 29184456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 29194456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 29204456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 29214456fccdSmrg fi 29224456fccdSmrg ;; 29234456fccdSmrg esac 29244456fccdSmrg shared_flag='-shared' 29254456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 29264456fccdSmrg shared_flag="$shared_flag "'${wl}-G' 29274456fccdSmrg fi 29284456fccdSmrg else 29294456fccdSmrg # not using gcc 29304456fccdSmrg if test "$host_cpu" = ia64; then 29314456fccdSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 29324456fccdSmrg # chokes on -Wl,-G. The following line is correct: 29334456fccdSmrg shared_flag='-G' 29344456fccdSmrg else 29354456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 29364456fccdSmrg shared_flag='${wl}-G' 29374456fccdSmrg else 29384456fccdSmrg shared_flag='${wl}-bM:SRE' 29394456fccdSmrg fi 29404456fccdSmrg fi 29414456fccdSmrg fi 29424456fccdSmrg 29434456fccdSmrg # It seems that -bexpall does not export symbols beginning with 29444456fccdSmrg # underscore (_), so it is better to generate a list of symbols to export. 29454456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 29464456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 29474456fccdSmrg # Warning - without using the other runtime loading flags (-brtl), 29484456fccdSmrg # -berok will link without error, but may produce a broken library. 29494456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 29504456fccdSmrg # Determine the default libpath from the value encoded in an empty executable. 29514456fccdSmrg _LT_AC_SYS_LIBPATH_AIX 29524456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 29534456fccdSmrg 29544456fccdSmrg _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" 29554456fccdSmrg else 29564456fccdSmrg if test "$host_cpu" = ia64; then 29574456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 29584456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 29594456fccdSmrg _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" 29604456fccdSmrg else 29614456fccdSmrg # Determine the default libpath from the value encoded in an empty executable. 29624456fccdSmrg _LT_AC_SYS_LIBPATH_AIX 29634456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 29644456fccdSmrg # Warning - without using the other run time loading flags, 29654456fccdSmrg # -berok will link without error, but may produce a broken library. 29664456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 29674456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 29684456fccdSmrg # Exported symbols can be pulled into shared objects from archives 29694456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 29704456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 29714456fccdSmrg # This is similar to how AIX traditionally builds its shared libraries. 29724456fccdSmrg _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' 29734456fccdSmrg fi 29744456fccdSmrg fi 29754456fccdSmrg ;; 29764456fccdSmrg 29774456fccdSmrg beos*) 29784456fccdSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 29794456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 29804456fccdSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 29814456fccdSmrg # support --undefined. This deserves some investigation. FIXME 29824456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 29834456fccdSmrg else 29844456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 29854456fccdSmrg fi 29864456fccdSmrg ;; 29874456fccdSmrg 29884456fccdSmrg chorus*) 29894456fccdSmrg case $cc_basename in 29904456fccdSmrg *) 29914456fccdSmrg # FIXME: insert proper C++ library support 29924456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 29934456fccdSmrg ;; 29944456fccdSmrg esac 29954456fccdSmrg ;; 29964456fccdSmrg 29974456fccdSmrg cygwin* | mingw* | pw32*) 29984456fccdSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 29994456fccdSmrg # as there is no search path for DLLs. 30004456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 30014456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 30024456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 30034456fccdSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 30044456fccdSmrg 30054456fccdSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 30064456fccdSmrg _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' 30074456fccdSmrg # If the export-symbols file already is a .def file (1st line 30084456fccdSmrg # is EXPORTS), use it as is; otherwise, prepend... 30094456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 30104456fccdSmrg cp $export_symbols $output_objdir/$soname.def; 30114456fccdSmrg else 30124456fccdSmrg echo EXPORTS > $output_objdir/$soname.def; 30134456fccdSmrg cat $export_symbols >> $output_objdir/$soname.def; 30144456fccdSmrg fi~ 30154456fccdSmrg $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' 30164456fccdSmrg else 30174456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30184456fccdSmrg fi 30194456fccdSmrg ;; 30204456fccdSmrg darwin* | rhapsody*) 30214456fccdSmrg case $host_os in 30224456fccdSmrg rhapsody* | darwin1.[[012]]) 30234456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 30244456fccdSmrg ;; 30254456fccdSmrg *) # Darwin 1.3 on 30264456fccdSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 30274456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 30284456fccdSmrg else 30294456fccdSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 30304456fccdSmrg 10.[[012]]) 30314456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 30324456fccdSmrg ;; 30334456fccdSmrg 10.*) 30344456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 30354456fccdSmrg ;; 30364456fccdSmrg esac 30374456fccdSmrg fi 30384456fccdSmrg ;; 30394456fccdSmrg esac 30404456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 30414456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 30424456fccdSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 30434456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 30444456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 30454456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 30464456fccdSmrg 30474456fccdSmrg if test "$GXX" = yes ; then 30484456fccdSmrg lt_int_apple_cc_single_mod=no 30494456fccdSmrg output_verbose_link_cmd='echo' 30504456fccdSmrg if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 30514456fccdSmrg lt_int_apple_cc_single_mod=yes 30524456fccdSmrg fi 30534456fccdSmrg if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 30544456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 30554456fccdSmrg else 30564456fccdSmrg _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' 30574456fccdSmrg fi 30584456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 30594456fccdSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 30604456fccdSmrg if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 30614456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 30624456fccdSmrg else 30634456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 30644456fccdSmrg fi 30654456fccdSmrg _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}' 30664456fccdSmrg else 30674456fccdSmrg case $cc_basename in 30684456fccdSmrg xlc*) 30694456fccdSmrg output_verbose_link_cmd='echo' 30704456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 30714456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 30724456fccdSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 30734456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 30744456fccdSmrg _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}' 30754456fccdSmrg ;; 30764456fccdSmrg *) 30774456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30784456fccdSmrg ;; 30794456fccdSmrg esac 30804456fccdSmrg fi 30814456fccdSmrg ;; 30824456fccdSmrg 30834456fccdSmrg dgux*) 30844456fccdSmrg case $cc_basename in 30854456fccdSmrg ec++*) 30864456fccdSmrg # FIXME: insert proper C++ library support 30874456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30884456fccdSmrg ;; 30894456fccdSmrg ghcx*) 30904456fccdSmrg # Green Hills C++ Compiler 30914456fccdSmrg # FIXME: insert proper C++ library support 30924456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30934456fccdSmrg ;; 30944456fccdSmrg *) 30954456fccdSmrg # FIXME: insert proper C++ library support 30964456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 30974456fccdSmrg ;; 30984456fccdSmrg esac 30994456fccdSmrg ;; 31004456fccdSmrg freebsd[[12]]*) 31014456fccdSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 31024456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31034456fccdSmrg ;; 31044456fccdSmrg freebsd-elf*) 31054456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 31064456fccdSmrg ;; 31074456fccdSmrg freebsd* | dragonfly*) 31084456fccdSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 31094456fccdSmrg # conventions 31104456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 31114456fccdSmrg ;; 31124456fccdSmrg gnu*) 31134456fccdSmrg ;; 31144456fccdSmrg hpux9*) 31154456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 31164456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 31174456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 31184456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 31194456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 31204456fccdSmrg # but as the default 31214456fccdSmrg # location of the library. 31224456fccdSmrg 31234456fccdSmrg case $cc_basename in 31244456fccdSmrg CC*) 31254456fccdSmrg # FIXME: insert proper C++ library support 31264456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31274456fccdSmrg ;; 31284456fccdSmrg aCC*) 31294456fccdSmrg _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' 31304456fccdSmrg # Commands to make compiler produce verbose output that lists 31314456fccdSmrg # what "hidden" libraries, object files and flags are used when 31324456fccdSmrg # linking a shared library. 31334456fccdSmrg # 31344456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 31354456fccdSmrg # explicitly linking system object files so we need to strip them 31364456fccdSmrg # from the output so that they don't get included in the library 31374456fccdSmrg # dependencies. 31384456fccdSmrg 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' 31394456fccdSmrg ;; 31404456fccdSmrg *) 31414456fccdSmrg if test "$GXX" = yes; then 31424456fccdSmrg _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' 31434456fccdSmrg else 31444456fccdSmrg # FIXME: insert proper C++ library support 31454456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31464456fccdSmrg fi 31474456fccdSmrg ;; 31484456fccdSmrg esac 31494456fccdSmrg ;; 31504456fccdSmrg hpux10*|hpux11*) 31514456fccdSmrg if test $with_gnu_ld = no; then 31524456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 31534456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 31544456fccdSmrg 31554456fccdSmrg case $host_cpu in 31564456fccdSmrg hppa*64*|ia64*) 31574456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 31584456fccdSmrg ;; 31594456fccdSmrg *) 31604456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 31614456fccdSmrg ;; 31624456fccdSmrg esac 31634456fccdSmrg fi 31644456fccdSmrg case $host_cpu in 31654456fccdSmrg hppa*64*|ia64*) 31664456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 31674456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 31684456fccdSmrg ;; 31694456fccdSmrg *) 31704456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 31714456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 31724456fccdSmrg # but as the default 31734456fccdSmrg # location of the library. 31744456fccdSmrg ;; 31754456fccdSmrg esac 31764456fccdSmrg 31774456fccdSmrg case $cc_basename in 31784456fccdSmrg CC*) 31794456fccdSmrg # FIXME: insert proper C++ library support 31804456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 31814456fccdSmrg ;; 31824456fccdSmrg aCC*) 31834456fccdSmrg case $host_cpu in 31844456fccdSmrg hppa*64*) 31854456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 31864456fccdSmrg ;; 31874456fccdSmrg ia64*) 31884456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 31894456fccdSmrg ;; 31904456fccdSmrg *) 31914456fccdSmrg _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' 31924456fccdSmrg ;; 31934456fccdSmrg esac 31944456fccdSmrg # Commands to make compiler produce verbose output that lists 31954456fccdSmrg # what "hidden" libraries, object files and flags are used when 31964456fccdSmrg # linking a shared library. 31974456fccdSmrg # 31984456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 31994456fccdSmrg # explicitly linking system object files so we need to strip them 32004456fccdSmrg # from the output so that they don't get included in the library 32014456fccdSmrg # dependencies. 32024456fccdSmrg 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' 32034456fccdSmrg ;; 32044456fccdSmrg *) 32054456fccdSmrg if test "$GXX" = yes; then 32064456fccdSmrg if test $with_gnu_ld = no; then 32074456fccdSmrg case $host_cpu in 32084456fccdSmrg hppa*64*) 32094456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 32104456fccdSmrg ;; 32114456fccdSmrg ia64*) 32124456fccdSmrg _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' 32134456fccdSmrg ;; 32144456fccdSmrg *) 32154456fccdSmrg _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' 32164456fccdSmrg ;; 32174456fccdSmrg esac 32184456fccdSmrg fi 32194456fccdSmrg else 32204456fccdSmrg # FIXME: insert proper C++ library support 32214456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 32224456fccdSmrg fi 32234456fccdSmrg ;; 32244456fccdSmrg esac 32254456fccdSmrg ;; 32264456fccdSmrg interix3*) 32274456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 32284456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 32294456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 32304456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 32314456fccdSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 32324456fccdSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 32334456fccdSmrg # default) and relocated if they conflict, which is a slow very memory 32344456fccdSmrg # consuming and fragmenting process. To avoid this, we pick a random, 32354456fccdSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 32364456fccdSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 32374456fccdSmrg _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' 32384456fccdSmrg _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' 32394456fccdSmrg ;; 32404456fccdSmrg irix5* | irix6*) 32414456fccdSmrg case $cc_basename in 32424456fccdSmrg CC*) 32434456fccdSmrg # SGI C++ 32444456fccdSmrg _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' 32454456fccdSmrg 32464456fccdSmrg # Archives containing C++ object files must be created using 32474456fccdSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 32484456fccdSmrg # necessary to make sure instantiated templates are included 32494456fccdSmrg # in the archive. 32504456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 32514456fccdSmrg ;; 32524456fccdSmrg *) 32534456fccdSmrg if test "$GXX" = yes; then 32544456fccdSmrg if test "$with_gnu_ld" = no; then 32554456fccdSmrg _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' 32564456fccdSmrg else 32574456fccdSmrg _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' 32584456fccdSmrg fi 32594456fccdSmrg fi 32604456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 32614456fccdSmrg ;; 32624456fccdSmrg esac 32634456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 32644456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 32654456fccdSmrg ;; 32664456fccdSmrg linux* | k*bsd*-gnu) 32674456fccdSmrg case $cc_basename in 32684456fccdSmrg KCC*) 32694456fccdSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 32704456fccdSmrg 32714456fccdSmrg # KCC will only create a shared library if the output file 32724456fccdSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 32734456fccdSmrg # to its proper name (with version) after linking. 32744456fccdSmrg _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' 32754456fccdSmrg _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' 32764456fccdSmrg # Commands to make compiler produce verbose output that lists 32774456fccdSmrg # what "hidden" libraries, object files and flags are used when 32784456fccdSmrg # linking a shared library. 32794456fccdSmrg # 32804456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 32814456fccdSmrg # explicitly linking system object files so we need to strip them 32824456fccdSmrg # from the output so that they don't get included in the library 32834456fccdSmrg # dependencies. 32844456fccdSmrg 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' 32854456fccdSmrg 32864456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 32874456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 32884456fccdSmrg 32894456fccdSmrg # Archives containing C++ object files must be created using 32904456fccdSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 32914456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 32924456fccdSmrg ;; 32934456fccdSmrg icpc*) 32944456fccdSmrg # Intel C++ 32954456fccdSmrg with_gnu_ld=yes 32964456fccdSmrg # version 8.0 and above of icpc choke on multiply defined symbols 32974456fccdSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 32984456fccdSmrg # earlier do not add the objects themselves. 32994456fccdSmrg case `$CC -V 2>&1` in 33004456fccdSmrg *"Version 7."*) 33014456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 33024456fccdSmrg _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' 33034456fccdSmrg ;; 33044456fccdSmrg *) # Version 8.0 or newer 33054456fccdSmrg tmp_idyn= 33064456fccdSmrg case $host_cpu in 33074456fccdSmrg ia64*) tmp_idyn=' -i_dynamic';; 33084456fccdSmrg esac 33094456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 33104456fccdSmrg _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' 33114456fccdSmrg ;; 33124456fccdSmrg esac 33134456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 33144456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 33154456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 33164456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 33174456fccdSmrg ;; 33184456fccdSmrg pgCC*) 33194456fccdSmrg # Portland Group C++ compiler 33204456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 33214456fccdSmrg _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' 33224456fccdSmrg 33234456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 33244456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 33254456fccdSmrg _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' 33264456fccdSmrg ;; 33274456fccdSmrg cxx*) 33284456fccdSmrg # Compaq C++ 33294456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 33304456fccdSmrg _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' 33314456fccdSmrg 33324456fccdSmrg runpath_var=LD_RUN_PATH 33334456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 33344456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 33354456fccdSmrg 33364456fccdSmrg # Commands to make compiler produce verbose output that lists 33374456fccdSmrg # what "hidden" libraries, object files and flags are used when 33384456fccdSmrg # linking a shared library. 33394456fccdSmrg # 33404456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 33414456fccdSmrg # explicitly linking system object files so we need to strip them 33424456fccdSmrg # from the output so that they don't get included in the library 33434456fccdSmrg # dependencies. 33444456fccdSmrg 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' 33454456fccdSmrg ;; 33464456fccdSmrg esac 33474456fccdSmrg ;; 33484456fccdSmrg lynxos*) 33494456fccdSmrg # FIXME: insert proper C++ library support 33504456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33514456fccdSmrg ;; 33524456fccdSmrg m88k*) 33534456fccdSmrg # FIXME: insert proper C++ library support 33544456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33554456fccdSmrg ;; 33564456fccdSmrg mvs*) 33574456fccdSmrg case $cc_basename in 33584456fccdSmrg cxx*) 33594456fccdSmrg # FIXME: insert proper C++ library support 33604456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33614456fccdSmrg ;; 33624456fccdSmrg *) 33634456fccdSmrg # FIXME: insert proper C++ library support 33644456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33654456fccdSmrg ;; 33664456fccdSmrg esac 33674456fccdSmrg ;; 33684456fccdSmrg netbsd* | netbsdelf*-gnu) 33694456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 33704456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 33714456fccdSmrg wlarc= 33724456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 33734456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 33744456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 33754456fccdSmrg fi 33764456fccdSmrg # Workaround some broken pre-1.5 toolchains 33774456fccdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 33784456fccdSmrg ;; 33794456fccdSmrg openbsd2*) 33804456fccdSmrg # C++ shared libraries are fairly broken 33814456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 33824456fccdSmrg ;; 33834456fccdSmrg openbsd*) 33844456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 33854456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 33864456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 33874456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 33884456fccdSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 33894456fccdSmrg _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' 33904456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 33914456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 33924456fccdSmrg fi 33934456fccdSmrg output_verbose_link_cmd='echo' 33944456fccdSmrg ;; 33954456fccdSmrg osf3*) 33964456fccdSmrg case $cc_basename in 33974456fccdSmrg KCC*) 33984456fccdSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 33994456fccdSmrg 34004456fccdSmrg # KCC will only create a shared library if the output file 34014456fccdSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 34024456fccdSmrg # to its proper name (with version) after linking. 34034456fccdSmrg _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' 34044456fccdSmrg 34054456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 34064456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34074456fccdSmrg 34084456fccdSmrg # Archives containing C++ object files must be created using 34094456fccdSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 34104456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 34114456fccdSmrg 34124456fccdSmrg ;; 34134456fccdSmrg RCC*) 34144456fccdSmrg # Rational C++ 2.4.1 34154456fccdSmrg # FIXME: insert proper C++ library support 34164456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 34174456fccdSmrg ;; 34184456fccdSmrg cxx*) 34194456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 34204456fccdSmrg _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' 34214456fccdSmrg 34224456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 34234456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34244456fccdSmrg 34254456fccdSmrg # Commands to make compiler produce verbose output that lists 34264456fccdSmrg # what "hidden" libraries, object files and flags are used when 34274456fccdSmrg # linking a shared library. 34284456fccdSmrg # 34294456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 34304456fccdSmrg # explicitly linking system object files so we need to strip them 34314456fccdSmrg # from the output so that they don't get included in the library 34324456fccdSmrg # dependencies. 34334456fccdSmrg 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' 34344456fccdSmrg ;; 34354456fccdSmrg *) 34364456fccdSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 34374456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 34384456fccdSmrg _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' 34394456fccdSmrg 34404456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 34414456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34424456fccdSmrg 34434456fccdSmrg # Commands to make compiler produce verbose output that lists 34444456fccdSmrg # what "hidden" libraries, object files and flags are used when 34454456fccdSmrg # linking a shared library. 34464456fccdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 34474456fccdSmrg 34484456fccdSmrg else 34494456fccdSmrg # FIXME: insert proper C++ library support 34504456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 34514456fccdSmrg fi 34524456fccdSmrg ;; 34534456fccdSmrg esac 34544456fccdSmrg ;; 34554456fccdSmrg osf4* | osf5*) 34564456fccdSmrg case $cc_basename in 34574456fccdSmrg KCC*) 34584456fccdSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 34594456fccdSmrg 34604456fccdSmrg # KCC will only create a shared library if the output file 34614456fccdSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 34624456fccdSmrg # to its proper name (with version) after linking. 34634456fccdSmrg _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' 34644456fccdSmrg 34654456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 34664456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34674456fccdSmrg 34684456fccdSmrg # Archives containing C++ object files must be created using 34694456fccdSmrg # the KAI C++ compiler. 34704456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 34714456fccdSmrg ;; 34724456fccdSmrg RCC*) 34734456fccdSmrg # Rational C++ 2.4.1 34744456fccdSmrg # FIXME: insert proper C++ library support 34754456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 34764456fccdSmrg ;; 34774456fccdSmrg cxx*) 34784456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 34794456fccdSmrg _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' 34804456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 34814456fccdSmrg echo "-hidden">> $lib.exp~ 34824456fccdSmrg $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~ 34834456fccdSmrg $rm $lib.exp' 34844456fccdSmrg 34854456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 34864456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 34874456fccdSmrg 34884456fccdSmrg # Commands to make compiler produce verbose output that lists 34894456fccdSmrg # what "hidden" libraries, object files and flags are used when 34904456fccdSmrg # linking a shared library. 34914456fccdSmrg # 34924456fccdSmrg # There doesn't appear to be a way to prevent this compiler from 34934456fccdSmrg # explicitly linking system object files so we need to strip them 34944456fccdSmrg # from the output so that they don't get included in the library 34954456fccdSmrg # dependencies. 34964456fccdSmrg 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' 34974456fccdSmrg ;; 34984456fccdSmrg *) 34994456fccdSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 35004456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 35014456fccdSmrg _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' 35024456fccdSmrg 35034456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 35044456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 35054456fccdSmrg 35064456fccdSmrg # Commands to make compiler produce verbose output that lists 35074456fccdSmrg # what "hidden" libraries, object files and flags are used when 35084456fccdSmrg # linking a shared library. 35094456fccdSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 35104456fccdSmrg 35114456fccdSmrg else 35124456fccdSmrg # FIXME: insert proper C++ library support 35134456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35144456fccdSmrg fi 35154456fccdSmrg ;; 35164456fccdSmrg esac 35174456fccdSmrg ;; 35184456fccdSmrg psos*) 35194456fccdSmrg # FIXME: insert proper C++ library support 35204456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35214456fccdSmrg ;; 35224456fccdSmrg sunos4*) 35234456fccdSmrg case $cc_basename in 35244456fccdSmrg CC*) 35254456fccdSmrg # Sun C++ 4.x 35264456fccdSmrg # FIXME: insert proper C++ library support 35274456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35284456fccdSmrg ;; 35294456fccdSmrg lcc*) 35304456fccdSmrg # Lucid 35314456fccdSmrg # FIXME: insert proper C++ library support 35324456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35334456fccdSmrg ;; 35344456fccdSmrg *) 35354456fccdSmrg # FIXME: insert proper C++ library support 35364456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 35374456fccdSmrg ;; 35384456fccdSmrg esac 35394456fccdSmrg ;; 35404456fccdSmrg solaris*) 35414456fccdSmrg case $cc_basename in 35424456fccdSmrg CC*) 35434456fccdSmrg # Sun C++ 4.2, 5.x and Centerline C++ 35444456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 35454456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 35464456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 35474456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 35484456fccdSmrg $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' 35494456fccdSmrg 35504456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 35514456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 35524456fccdSmrg case $host_os in 35534456fccdSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 35544456fccdSmrg *) 35554456fccdSmrg # The C++ compiler is used as linker so we must use $wl 35564456fccdSmrg # flag to pass the commands to the underlying system 35574456fccdSmrg # linker. We must also pass each convience library through 35584456fccdSmrg # to the system linker between allextract/defaultextract. 35594456fccdSmrg # The C++ compiler will combine linker options so we 35604456fccdSmrg # cannot just pass the convience library names through 35614456fccdSmrg # without $wl. 35624456fccdSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 35634456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' 35644456fccdSmrg ;; 35654456fccdSmrg esac 35664456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 35674456fccdSmrg 35684456fccdSmrg output_verbose_link_cmd='echo' 35694456fccdSmrg 35704456fccdSmrg # Archives containing C++ object files must be created using 35714456fccdSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 35724456fccdSmrg # necessary to make sure instantiated templates are included 35734456fccdSmrg # in the archive. 35744456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 35754456fccdSmrg ;; 35764456fccdSmrg gcx*) 35774456fccdSmrg # Green Hills C++ Compiler 35784456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 35794456fccdSmrg 35804456fccdSmrg # The C++ compiler must be used to create the archive. 35814456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 35824456fccdSmrg ;; 35834456fccdSmrg *) 35844456fccdSmrg # GNU C++ compiler with Solaris linker 35854456fccdSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 35864456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 35874456fccdSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 35884456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 35894456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 35904456fccdSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 35914456fccdSmrg 35924456fccdSmrg # Commands to make compiler produce verbose output that lists 35934456fccdSmrg # what "hidden" libraries, object files and flags are used when 35944456fccdSmrg # linking a shared library. 35954456fccdSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 35964456fccdSmrg else 35974456fccdSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 35984456fccdSmrg # platform. 35994456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 36004456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 36014456fccdSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 36024456fccdSmrg 36034456fccdSmrg # Commands to make compiler produce verbose output that lists 36044456fccdSmrg # what "hidden" libraries, object files and flags are used when 36054456fccdSmrg # linking a shared library. 36064456fccdSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 36074456fccdSmrg fi 36084456fccdSmrg 36094456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 36104456fccdSmrg fi 36114456fccdSmrg ;; 36124456fccdSmrg esac 36134456fccdSmrg ;; 36144456fccdSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 36154456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 36164456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 36174456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 36184456fccdSmrg runpath_var='LD_RUN_PATH' 36194456fccdSmrg 36204456fccdSmrg case $cc_basename in 36214456fccdSmrg CC*) 36224456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 36234456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 36244456fccdSmrg ;; 36254456fccdSmrg *) 36264456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 36274456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 36284456fccdSmrg ;; 36294456fccdSmrg esac 36304456fccdSmrg ;; 36314456fccdSmrg sysv5* | sco3.2v5* | sco5v6*) 36324456fccdSmrg # Note: We can NOT use -z defs as we might desire, because we do not 36334456fccdSmrg # link with -lc, and that would cause any symbols used from libc to 36344456fccdSmrg # always be unresolved, which means just about no library would 36354456fccdSmrg # ever link correctly. If we're not using GNU ld we use -z text 36364456fccdSmrg # though, which does catch some bad symbols but isn't as heavy-handed 36374456fccdSmrg # as -z defs. 36384456fccdSmrg # For security reasons, it is highly recommended that you always 36394456fccdSmrg # use absolute paths for naming shared libraries, and exclude the 36404456fccdSmrg # DT_RUNPATH tag from executables and libraries. But doing so 36414456fccdSmrg # requires that you compile everything twice, which is a pain. 36424456fccdSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 36434456fccdSmrg # non-empty value in the environment. Most likely only useful for 36444456fccdSmrg # creating official distributions of packages. 36454456fccdSmrg # This is a hack until libtool officially supports absolute path 36464456fccdSmrg # names for shared libraries. 36474456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 36484456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 36494456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 36504456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 36514456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 36524456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 36534456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 36544456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 36554456fccdSmrg runpath_var='LD_RUN_PATH' 36564456fccdSmrg 36574456fccdSmrg case $cc_basename in 36584456fccdSmrg CC*) 36594456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 36604456fccdSmrg _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' 36614456fccdSmrg ;; 36624456fccdSmrg *) 36634456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 36644456fccdSmrg _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' 36654456fccdSmrg ;; 36664456fccdSmrg esac 36674456fccdSmrg ;; 36684456fccdSmrg tandem*) 36694456fccdSmrg case $cc_basename in 36704456fccdSmrg NCC*) 36714456fccdSmrg # NonStop-UX NCC 3.20 36724456fccdSmrg # FIXME: insert proper C++ library support 36734456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36744456fccdSmrg ;; 36754456fccdSmrg *) 36764456fccdSmrg # FIXME: insert proper C++ library support 36774456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36784456fccdSmrg ;; 36794456fccdSmrg esac 36804456fccdSmrg ;; 36814456fccdSmrg vxworks*) 36824456fccdSmrg # FIXME: insert proper C++ library support 36834456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36844456fccdSmrg ;; 36854456fccdSmrg *) 36864456fccdSmrg # FIXME: insert proper C++ library support 36874456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 36884456fccdSmrg ;; 36894456fccdSmrgesac 36904456fccdSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 36914456fccdSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 36924456fccdSmrg 36934456fccdSmrg_LT_AC_TAGVAR(GCC, $1)="$GXX" 36944456fccdSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 36954456fccdSmrg 36964456fccdSmrgAC_LIBTOOL_POSTDEP_PREDEP($1) 36974456fccdSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 36984456fccdSmrgAC_LIBTOOL_PROG_CC_C_O($1) 36994456fccdSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 37004456fccdSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 37014456fccdSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 37024456fccdSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 37034456fccdSmrg 37044456fccdSmrgAC_LIBTOOL_CONFIG($1) 37054456fccdSmrg 37064456fccdSmrgAC_LANG_POP 37074456fccdSmrgCC=$lt_save_CC 37084456fccdSmrgLDCXX=$LD 37094456fccdSmrgLD=$lt_save_LD 37104456fccdSmrgGCC=$lt_save_GCC 37114456fccdSmrgwith_gnu_ldcxx=$with_gnu_ld 37124456fccdSmrgwith_gnu_ld=$lt_save_with_gnu_ld 37134456fccdSmrglt_cv_path_LDCXX=$lt_cv_path_LD 37144456fccdSmrglt_cv_path_LD=$lt_save_path_LD 37154456fccdSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 37164456fccdSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 37174456fccdSmrg])# AC_LIBTOOL_LANG_CXX_CONFIG 37184456fccdSmrg 37194456fccdSmrg# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 37204456fccdSmrg# ------------------------------------ 37214456fccdSmrg# Figure out "hidden" library dependencies from verbose 37224456fccdSmrg# compiler output when linking a shared library. 37234456fccdSmrg# Parse the compiler output and extract the necessary 37244456fccdSmrg# objects, libraries and library flags. 37254456fccdSmrgAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 37264456fccdSmrgdnl we can't use the lt_simple_compile_test_code here, 37274456fccdSmrgdnl because it contains code intended for an executable, 37284456fccdSmrgdnl not a library. It's possible we should let each 37294456fccdSmrgdnl tag define a new lt_????_link_test_code variable, 37304456fccdSmrgdnl but it's only used here... 37314456fccdSmrgifelse([$1],[],[cat > conftest.$ac_ext <<EOF 37324456fccdSmrgint a; 37334456fccdSmrgvoid foo (void) { a = 0; } 37344456fccdSmrgEOF 37354456fccdSmrg],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 37364456fccdSmrgclass Foo 37374456fccdSmrg{ 37384456fccdSmrgpublic: 37394456fccdSmrg Foo (void) { a = 0; } 37404456fccdSmrgprivate: 37414456fccdSmrg int a; 37424456fccdSmrg}; 37434456fccdSmrgEOF 37444456fccdSmrg],[$1],[F77],[cat > conftest.$ac_ext <<EOF 37454456fccdSmrg subroutine foo 37464456fccdSmrg implicit none 37474456fccdSmrg integer*4 a 37484456fccdSmrg a=0 37494456fccdSmrg return 37504456fccdSmrg end 37514456fccdSmrgEOF 37524456fccdSmrg],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 37534456fccdSmrgpublic class foo { 37544456fccdSmrg private int a; 37554456fccdSmrg public void bar (void) { 37564456fccdSmrg a = 0; 37574456fccdSmrg } 37584456fccdSmrg}; 37594456fccdSmrgEOF 37604456fccdSmrg]) 37614456fccdSmrgdnl Parse the compiler output and extract the necessary 37624456fccdSmrgdnl objects, libraries and library flags. 37634456fccdSmrgif AC_TRY_EVAL(ac_compile); then 37644456fccdSmrg # Parse the compiler output and extract the necessary 37654456fccdSmrg # objects, libraries and library flags. 37664456fccdSmrg 37674456fccdSmrg # Sentinel used to keep track of whether or not we are before 37684456fccdSmrg # the conftest object file. 37694456fccdSmrg pre_test_object_deps_done=no 37704456fccdSmrg 37714456fccdSmrg # The `*' in the case matches for architectures that use `case' in 37724456fccdSmrg # $output_verbose_cmd can trigger glob expansion during the loop 37734456fccdSmrg # eval without this substitution. 37744456fccdSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 37754456fccdSmrg 37764456fccdSmrg for p in `eval $output_verbose_link_cmd`; do 37774456fccdSmrg case $p in 37784456fccdSmrg 37794456fccdSmrg -L* | -R* | -l*) 37804456fccdSmrg # Some compilers place space between "-{L,R}" and the path. 37814456fccdSmrg # Remove the space. 37824456fccdSmrg if test $p = "-L" \ 37834456fccdSmrg || test $p = "-R"; then 37844456fccdSmrg prev=$p 37854456fccdSmrg continue 37864456fccdSmrg else 37874456fccdSmrg prev= 37884456fccdSmrg fi 37894456fccdSmrg 37904456fccdSmrg if test "$pre_test_object_deps_done" = no; then 37914456fccdSmrg case $p in 37924456fccdSmrg -L* | -R*) 37934456fccdSmrg # Internal compiler library paths should come after those 37944456fccdSmrg # provided the user. The postdeps already come after the 37954456fccdSmrg # user supplied libs so there is no need to process them. 37964456fccdSmrg if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 37974456fccdSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 37984456fccdSmrg else 37994456fccdSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 38004456fccdSmrg fi 38014456fccdSmrg ;; 38024456fccdSmrg # The "-l" case would never come before the object being 38034456fccdSmrg # linked, so don't bother handling this case. 38044456fccdSmrg esac 38054456fccdSmrg else 38064456fccdSmrg if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 38074456fccdSmrg _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 38084456fccdSmrg else 38094456fccdSmrg _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 38104456fccdSmrg fi 38114456fccdSmrg fi 38124456fccdSmrg ;; 38134456fccdSmrg 38144456fccdSmrg *.$objext) 38154456fccdSmrg # This assumes that the test object file only shows up 38164456fccdSmrg # once in the compiler output. 38174456fccdSmrg if test "$p" = "conftest.$objext"; then 38184456fccdSmrg pre_test_object_deps_done=yes 38194456fccdSmrg continue 38204456fccdSmrg fi 38214456fccdSmrg 38224456fccdSmrg if test "$pre_test_object_deps_done" = no; then 38234456fccdSmrg if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 38244456fccdSmrg _LT_AC_TAGVAR(predep_objects, $1)="$p" 38254456fccdSmrg else 38264456fccdSmrg _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 38274456fccdSmrg fi 38284456fccdSmrg else 38294456fccdSmrg if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 38304456fccdSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$p" 38314456fccdSmrg else 38324456fccdSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 38334456fccdSmrg fi 38344456fccdSmrg fi 38354456fccdSmrg ;; 38364456fccdSmrg 38374456fccdSmrg *) ;; # Ignore the rest. 38384456fccdSmrg 38394456fccdSmrg esac 38404456fccdSmrg done 38414456fccdSmrg 38424456fccdSmrg # Clean up. 38434456fccdSmrg rm -f a.out a.exe 38444456fccdSmrgelse 38454456fccdSmrg echo "libtool.m4: error: problem compiling $1 test program" 38464456fccdSmrgfi 38474456fccdSmrg 38484456fccdSmrg$rm -f confest.$objext 38494456fccdSmrg 38504456fccdSmrg# PORTME: override above test on systems where it is broken 38514456fccdSmrgifelse([$1],[CXX], 38524456fccdSmrg[case $host_os in 38534456fccdSmrginterix3*) 38544456fccdSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 38554456fccdSmrg # hack all around it, let's just trust "g++" to DTRT. 38564456fccdSmrg _LT_AC_TAGVAR(predep_objects,$1)= 38574456fccdSmrg _LT_AC_TAGVAR(postdep_objects,$1)= 38584456fccdSmrg _LT_AC_TAGVAR(postdeps,$1)= 38594456fccdSmrg ;; 38604456fccdSmrg 38614456fccdSmrgsolaris*) 38624456fccdSmrg case $cc_basename in 38634456fccdSmrg CC*) 38644456fccdSmrg # Adding this requires a known-good setup of shared libraries for 38654456fccdSmrg # Sun compiler versions before 5.6, else PIC objects from an old 38664456fccdSmrg # archive will be linked into the output, leading to subtle bugs. 38674456fccdSmrg _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 38684456fccdSmrg ;; 38694456fccdSmrg esac 38704456fccdSmrg ;; 38714456fccdSmrgesac 38724456fccdSmrg]) 38734456fccdSmrg 38744456fccdSmrgcase " $_LT_AC_TAGVAR(postdeps, $1) " in 38754456fccdSmrg*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 38764456fccdSmrgesac 38774456fccdSmrg])# AC_LIBTOOL_POSTDEP_PREDEP 38784456fccdSmrg 38794456fccdSmrg# AC_LIBTOOL_LANG_F77_CONFIG 38804456fccdSmrg# -------------------------- 38814456fccdSmrg# Ensure that the configuration vars for the C compiler are 38824456fccdSmrg# suitably defined. Those variables are subsequently used by 38834456fccdSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 38844456fccdSmrgAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 38854456fccdSmrgAC_DEFUN([_LT_AC_LANG_F77_CONFIG], 38864456fccdSmrg[AC_REQUIRE([AC_PROG_F77]) 38874456fccdSmrgAC_LANG_PUSH(Fortran 77) 38884456fccdSmrg 38894456fccdSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 38904456fccdSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 38914456fccdSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 38924456fccdSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 38934456fccdSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 38944456fccdSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 38954456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 38964456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 38974456fccdSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 38984456fccdSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 38994456fccdSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 39004456fccdSmrg_LT_AC_TAGVAR(module_cmds, $1)= 39014456fccdSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 39024456fccdSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 39034456fccdSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 39044456fccdSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 39054456fccdSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 39064456fccdSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 39074456fccdSmrg 39084456fccdSmrg# Source file extension for f77 test sources. 39094456fccdSmrgac_ext=f 39104456fccdSmrg 39114456fccdSmrg# Object file extension for compiled f77 test sources. 39124456fccdSmrgobjext=o 39134456fccdSmrg_LT_AC_TAGVAR(objext, $1)=$objext 39144456fccdSmrg 39154456fccdSmrg# Code to be used in simple compile tests 39164456fccdSmrglt_simple_compile_test_code=" subroutine t\n return\n end\n" 39174456fccdSmrg 39184456fccdSmrg# Code to be used in simple link tests 39194456fccdSmrglt_simple_link_test_code=" program t\n end\n" 39204456fccdSmrg 39214456fccdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 39224456fccdSmrg_LT_AC_SYS_COMPILER 39234456fccdSmrg 39244456fccdSmrg# save warnings/boilerplate of simple test code 39254456fccdSmrg_LT_COMPILER_BOILERPLATE 39264456fccdSmrg_LT_LINKER_BOILERPLATE 39274456fccdSmrg 39284456fccdSmrg# Allow CC to be a program name with arguments. 39294456fccdSmrglt_save_CC="$CC" 39304456fccdSmrgCC=${F77-"f77"} 39314456fccdSmrgcompiler=$CC 39324456fccdSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 39334456fccdSmrg_LT_CC_BASENAME([$compiler]) 39344456fccdSmrg 39354456fccdSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 39364456fccdSmrgAC_MSG_RESULT([$can_build_shared]) 39374456fccdSmrg 39384456fccdSmrgAC_MSG_CHECKING([whether to build shared libraries]) 39394456fccdSmrgtest "$can_build_shared" = "no" && enable_shared=no 39404456fccdSmrg 39414456fccdSmrg# On AIX, shared libraries and static libraries use the same namespace, and 39424456fccdSmrg# are all built from PIC. 39434456fccdSmrgcase $host_os in 39444456fccdSmrgaix3*) 39454456fccdSmrg test "$enable_shared" = yes && enable_static=no 39464456fccdSmrg if test -n "$RANLIB"; then 39474456fccdSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 39484456fccdSmrg postinstall_cmds='$RANLIB $lib' 39494456fccdSmrg fi 39504456fccdSmrg ;; 39514456fccdSmrgaix4* | aix5*) 39524456fccdSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 39534456fccdSmrg test "$enable_shared" = yes && enable_static=no 39544456fccdSmrg fi 39554456fccdSmrg ;; 39564456fccdSmrgesac 39574456fccdSmrgAC_MSG_RESULT([$enable_shared]) 39584456fccdSmrg 39594456fccdSmrgAC_MSG_CHECKING([whether to build static libraries]) 39604456fccdSmrg# Make sure either enable_shared or enable_static is yes. 39614456fccdSmrgtest "$enable_shared" = yes || enable_static=yes 39624456fccdSmrgAC_MSG_RESULT([$enable_static]) 39634456fccdSmrg 39644456fccdSmrg_LT_AC_TAGVAR(GCC, $1)="$G77" 39654456fccdSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 39664456fccdSmrg 39674456fccdSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 39684456fccdSmrgAC_LIBTOOL_PROG_CC_C_O($1) 39694456fccdSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 39704456fccdSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 39714456fccdSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 39724456fccdSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 39734456fccdSmrg 39744456fccdSmrgAC_LIBTOOL_CONFIG($1) 39754456fccdSmrg 39764456fccdSmrgAC_LANG_POP 39774456fccdSmrgCC="$lt_save_CC" 39784456fccdSmrg])# AC_LIBTOOL_LANG_F77_CONFIG 39794456fccdSmrg 39804456fccdSmrg 39814456fccdSmrg# AC_LIBTOOL_LANG_GCJ_CONFIG 39824456fccdSmrg# -------------------------- 39834456fccdSmrg# Ensure that the configuration vars for the C compiler are 39844456fccdSmrg# suitably defined. Those variables are subsequently used by 39854456fccdSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 39864456fccdSmrgAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 39874456fccdSmrgAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 39884456fccdSmrg[AC_LANG_SAVE 39894456fccdSmrg 39904456fccdSmrg# Source file extension for Java test sources. 39914456fccdSmrgac_ext=java 39924456fccdSmrg 39934456fccdSmrg# Object file extension for compiled Java test sources. 39944456fccdSmrgobjext=o 39954456fccdSmrg_LT_AC_TAGVAR(objext, $1)=$objext 39964456fccdSmrg 39974456fccdSmrg# Code to be used in simple compile tests 39984456fccdSmrglt_simple_compile_test_code="class foo {}\n" 39994456fccdSmrg 40004456fccdSmrg# Code to be used in simple link tests 40014456fccdSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 40024456fccdSmrg 40034456fccdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 40044456fccdSmrg_LT_AC_SYS_COMPILER 40054456fccdSmrg 40064456fccdSmrg# save warnings/boilerplate of simple test code 40074456fccdSmrg_LT_COMPILER_BOILERPLATE 40084456fccdSmrg_LT_LINKER_BOILERPLATE 40094456fccdSmrg 40104456fccdSmrg# Allow CC to be a program name with arguments. 40114456fccdSmrglt_save_CC="$CC" 40124456fccdSmrgCC=${GCJ-"gcj"} 40134456fccdSmrgcompiler=$CC 40144456fccdSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 40154456fccdSmrg_LT_CC_BASENAME([$compiler]) 40164456fccdSmrg 40174456fccdSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 40184456fccdSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 40194456fccdSmrg 40204456fccdSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 40214456fccdSmrg 40224456fccdSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 40234456fccdSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 40244456fccdSmrgAC_LIBTOOL_PROG_CC_C_O($1) 40254456fccdSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 40264456fccdSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 40274456fccdSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 40284456fccdSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 40294456fccdSmrg 40304456fccdSmrgAC_LIBTOOL_CONFIG($1) 40314456fccdSmrg 40324456fccdSmrgAC_LANG_RESTORE 40334456fccdSmrgCC="$lt_save_CC" 40344456fccdSmrg])# AC_LIBTOOL_LANG_GCJ_CONFIG 40354456fccdSmrg 40364456fccdSmrg 40374456fccdSmrg# AC_LIBTOOL_LANG_RC_CONFIG 40384456fccdSmrg# ------------------------- 40394456fccdSmrg# Ensure that the configuration vars for the Windows resource compiler are 40404456fccdSmrg# suitably defined. Those variables are subsequently used by 40414456fccdSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 40424456fccdSmrgAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 40434456fccdSmrgAC_DEFUN([_LT_AC_LANG_RC_CONFIG], 40444456fccdSmrg[AC_LANG_SAVE 40454456fccdSmrg 40464456fccdSmrg# Source file extension for RC test sources. 40474456fccdSmrgac_ext=rc 40484456fccdSmrg 40494456fccdSmrg# Object file extension for compiled RC test sources. 40504456fccdSmrgobjext=o 40514456fccdSmrg_LT_AC_TAGVAR(objext, $1)=$objext 40524456fccdSmrg 40534456fccdSmrg# Code to be used in simple compile tests 40544456fccdSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 40554456fccdSmrg 40564456fccdSmrg# Code to be used in simple link tests 40574456fccdSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 40584456fccdSmrg 40594456fccdSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 40604456fccdSmrg_LT_AC_SYS_COMPILER 40614456fccdSmrg 40624456fccdSmrg# save warnings/boilerplate of simple test code 40634456fccdSmrg_LT_COMPILER_BOILERPLATE 40644456fccdSmrg_LT_LINKER_BOILERPLATE 40654456fccdSmrg 40664456fccdSmrg# Allow CC to be a program name with arguments. 40674456fccdSmrglt_save_CC="$CC" 40684456fccdSmrgCC=${RC-"windres"} 40694456fccdSmrgcompiler=$CC 40704456fccdSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 40714456fccdSmrg_LT_CC_BASENAME([$compiler]) 40724456fccdSmrg_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 40734456fccdSmrg 40744456fccdSmrgAC_LIBTOOL_CONFIG($1) 40754456fccdSmrg 40764456fccdSmrgAC_LANG_RESTORE 40774456fccdSmrgCC="$lt_save_CC" 40784456fccdSmrg])# AC_LIBTOOL_LANG_RC_CONFIG 40794456fccdSmrg 40804456fccdSmrg 40814456fccdSmrg# AC_LIBTOOL_CONFIG([TAGNAME]) 40824456fccdSmrg# ---------------------------- 40834456fccdSmrg# If TAGNAME is not passed, then create an initial libtool script 40844456fccdSmrg# with a default configuration from the untagged config vars. Otherwise 40854456fccdSmrg# add code to config.status for appending the configuration named by 40864456fccdSmrg# TAGNAME from the matching tagged config vars. 40874456fccdSmrgAC_DEFUN([AC_LIBTOOL_CONFIG], 40884456fccdSmrg[# The else clause should only fire when bootstrapping the 40894456fccdSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 40904456fccdSmrg# with your package, and you will get complaints that there are 40914456fccdSmrg# no rules to generate ltmain.sh. 40924456fccdSmrgif test -f "$ltmain"; then 40934456fccdSmrg # See if we are running on zsh, and set the options which allow our commands through 40944456fccdSmrg # without removal of \ escapes. 40954456fccdSmrg if test -n "${ZSH_VERSION+set}" ; then 40964456fccdSmrg setopt NO_GLOB_SUBST 40974456fccdSmrg fi 40984456fccdSmrg # Now quote all the things that may contain metacharacters while being 40994456fccdSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 41004456fccdSmrg # variables and quote the copies for generation of the libtool script. 41014456fccdSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 41024456fccdSmrg SED SHELL STRIP \ 41034456fccdSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 41044456fccdSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 41054456fccdSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 41064456fccdSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 41074456fccdSmrg lt_cv_sys_global_symbol_to_c_name_address \ 41084456fccdSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 41094456fccdSmrg old_postinstall_cmds old_postuninstall_cmds \ 41104456fccdSmrg _LT_AC_TAGVAR(compiler, $1) \ 41114456fccdSmrg _LT_AC_TAGVAR(CC, $1) \ 41124456fccdSmrg _LT_AC_TAGVAR(LD, $1) \ 41134456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 41144456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 41154456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 41164456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 41174456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 41184456fccdSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 41194456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 41204456fccdSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 41214456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) \ 41224456fccdSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 41234456fccdSmrg _LT_AC_TAGVAR(predep_objects, $1) \ 41244456fccdSmrg _LT_AC_TAGVAR(postdep_objects, $1) \ 41254456fccdSmrg _LT_AC_TAGVAR(predeps, $1) \ 41264456fccdSmrg _LT_AC_TAGVAR(postdeps, $1) \ 41274456fccdSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 41284456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1) \ 41294456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 41304456fccdSmrg _LT_AC_TAGVAR(postinstall_cmds, $1) \ 41314456fccdSmrg _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 41324456fccdSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 41334456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 41344456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1) \ 41354456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 41364456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 41374456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 41384456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 41394456fccdSmrg _LT_AC_TAGVAR(hardcode_automatic, $1) \ 41404456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1) \ 41414456fccdSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 41424456fccdSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 41434456fccdSmrg _LT_AC_TAGVAR(exclude_expsyms, $1) \ 41444456fccdSmrg _LT_AC_TAGVAR(include_expsyms, $1); do 41454456fccdSmrg 41464456fccdSmrg case $var in 41474456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 41484456fccdSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 41494456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1) | \ 41504456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 41514456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1) | \ 41524456fccdSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 41534456fccdSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 41544456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 41554456fccdSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 41564456fccdSmrg postinstall_cmds | postuninstall_cmds | \ 41574456fccdSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 41584456fccdSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 41594456fccdSmrg # Double-quote double-evaled strings. 41604456fccdSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 41614456fccdSmrg ;; 41624456fccdSmrg *) 41634456fccdSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 41644456fccdSmrg ;; 41654456fccdSmrg esac 41664456fccdSmrg done 41674456fccdSmrg 41684456fccdSmrg case $lt_echo in 41694456fccdSmrg *'\[$]0 --fallback-echo"') 41704456fccdSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 41714456fccdSmrg ;; 41724456fccdSmrg esac 41734456fccdSmrg 41744456fccdSmrgifelse([$1], [], 41754456fccdSmrg [cfgfile="${ofile}T" 41764456fccdSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 41774456fccdSmrg $rm -f "$cfgfile" 41784456fccdSmrg AC_MSG_NOTICE([creating $ofile])], 41794456fccdSmrg [cfgfile="$ofile"]) 41804456fccdSmrg 41814456fccdSmrg cat <<__EOF__ >> "$cfgfile" 41824456fccdSmrgifelse([$1], [], 41834456fccdSmrg[#! $SHELL 41844456fccdSmrg 41854456fccdSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 41864456fccdSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 41874456fccdSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 41884456fccdSmrg# 41894456fccdSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 41904456fccdSmrg# Free Software Foundation, Inc. 41914456fccdSmrg# 41924456fccdSmrg# This file is part of GNU Libtool: 41934456fccdSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 41944456fccdSmrg# 41954456fccdSmrg# This program is free software; you can redistribute it and/or modify 41964456fccdSmrg# it under the terms of the GNU General Public License as published by 41974456fccdSmrg# the Free Software Foundation; either version 2 of the License, or 41984456fccdSmrg# (at your option) any later version. 41994456fccdSmrg# 42004456fccdSmrg# This program is distributed in the hope that it will be useful, but 42014456fccdSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 42024456fccdSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 42034456fccdSmrg# General Public License for more details. 42044456fccdSmrg# 42054456fccdSmrg# You should have received a copy of the GNU General Public License 42064456fccdSmrg# along with this program; if not, write to the Free Software 42074456fccdSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 42084456fccdSmrg# 42094456fccdSmrg# As a special exception to the GNU General Public License, if you 42104456fccdSmrg# distribute this file as part of a program that contains a 42114456fccdSmrg# configuration script generated by Autoconf, you may include it under 42124456fccdSmrg# the same distribution terms that you use for the rest of that program. 42134456fccdSmrg 42144456fccdSmrg# A sed program that does not truncate output. 42154456fccdSmrgSED=$lt_SED 42164456fccdSmrg 42174456fccdSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 42184456fccdSmrgXsed="$SED -e 1s/^X//" 42194456fccdSmrg 42204456fccdSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 42214456fccdSmrg# if CDPATH is set. 42224456fccdSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 42234456fccdSmrg 42244456fccdSmrg# The names of the tagged configurations supported by this script. 42254456fccdSmrgavailable_tags= 42264456fccdSmrg 42274456fccdSmrg# ### BEGIN LIBTOOL CONFIG], 42284456fccdSmrg[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 42294456fccdSmrg 42304456fccdSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 42314456fccdSmrg 42324456fccdSmrg# Shell to use when invoking shell scripts. 42334456fccdSmrgSHELL=$lt_SHELL 42344456fccdSmrg 42354456fccdSmrg# Whether or not to build shared libraries. 42364456fccdSmrgbuild_libtool_libs=$enable_shared 42374456fccdSmrg 42384456fccdSmrg# Whether or not to build static libraries. 42394456fccdSmrgbuild_old_libs=$enable_static 42404456fccdSmrg 42414456fccdSmrg# Whether or not to add -lc for building shared libraries. 42424456fccdSmrgbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 42434456fccdSmrg 42444456fccdSmrg# Whether or not to disallow shared libs when runtime libs are static 42454456fccdSmrgallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 42464456fccdSmrg 42474456fccdSmrg# Whether or not to optimize for fast installation. 42484456fccdSmrgfast_install=$enable_fast_install 42494456fccdSmrg 42504456fccdSmrg# The host system. 42514456fccdSmrghost_alias=$host_alias 42524456fccdSmrghost=$host 42534456fccdSmrghost_os=$host_os 42544456fccdSmrg 42554456fccdSmrg# The build system. 42564456fccdSmrgbuild_alias=$build_alias 42574456fccdSmrgbuild=$build 42584456fccdSmrgbuild_os=$build_os 42594456fccdSmrg 42604456fccdSmrg# An echo program that does not interpret backslashes. 42614456fccdSmrgecho=$lt_echo 42624456fccdSmrg 42634456fccdSmrg# The archiver. 42644456fccdSmrgAR=$lt_AR 42654456fccdSmrgAR_FLAGS=$lt_AR_FLAGS 42664456fccdSmrg 42674456fccdSmrg# A C compiler. 42684456fccdSmrgLTCC=$lt_LTCC 42694456fccdSmrg 42704456fccdSmrg# LTCC compiler flags. 42714456fccdSmrgLTCFLAGS=$lt_LTCFLAGS 42724456fccdSmrg 42734456fccdSmrg# A language-specific compiler. 42744456fccdSmrgCC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 42754456fccdSmrg 42764456fccdSmrg# Is the compiler the GNU C compiler? 42774456fccdSmrgwith_gcc=$_LT_AC_TAGVAR(GCC, $1) 42784456fccdSmrg 42794456fccdSmrg# An ERE matcher. 42804456fccdSmrgEGREP=$lt_EGREP 42814456fccdSmrg 42824456fccdSmrg# The linker used to build libraries. 42834456fccdSmrgLD=$lt_[]_LT_AC_TAGVAR(LD, $1) 42844456fccdSmrg 42854456fccdSmrg# Whether we need hard or soft links. 42864456fccdSmrgLN_S=$lt_LN_S 42874456fccdSmrg 42884456fccdSmrg# A BSD-compatible nm program. 42894456fccdSmrgNM=$lt_NM 42904456fccdSmrg 42914456fccdSmrg# A symbol stripping program 42924456fccdSmrgSTRIP=$lt_STRIP 42934456fccdSmrg 42944456fccdSmrg# Used to examine libraries when file_magic_cmd begins "file" 42954456fccdSmrgMAGIC_CMD=$MAGIC_CMD 42964456fccdSmrg 42974456fccdSmrg# Used on cygwin: DLL creation program. 42984456fccdSmrgDLLTOOL="$DLLTOOL" 42994456fccdSmrg 43004456fccdSmrg# Used on cygwin: object dumper. 43014456fccdSmrgOBJDUMP="$OBJDUMP" 43024456fccdSmrg 43034456fccdSmrg# Used on cygwin: assembler. 43044456fccdSmrgAS="$AS" 43054456fccdSmrg 43064456fccdSmrg# The name of the directory that contains temporary libtool files. 43074456fccdSmrgobjdir=$objdir 43084456fccdSmrg 43094456fccdSmrg# How to create reloadable object files. 43104456fccdSmrgreload_flag=$lt_reload_flag 43114456fccdSmrgreload_cmds=$lt_reload_cmds 43124456fccdSmrg 43134456fccdSmrg# How to pass a linker flag through the compiler. 43144456fccdSmrgwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 43154456fccdSmrg 43164456fccdSmrg# Object file suffix (normally "o"). 43174456fccdSmrgobjext="$ac_objext" 43184456fccdSmrg 43194456fccdSmrg# Old archive suffix (normally "a"). 43204456fccdSmrglibext="$libext" 43214456fccdSmrg 43224456fccdSmrg# Shared library suffix (normally ".so"). 43234456fccdSmrgshrext_cmds='$shrext_cmds' 43244456fccdSmrg 43254456fccdSmrg# Executable file suffix (normally ""). 43264456fccdSmrgexeext="$exeext" 43274456fccdSmrg 43284456fccdSmrg# Additional compiler flags for building library objects. 43294456fccdSmrgpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 43304456fccdSmrgpic_mode=$pic_mode 43314456fccdSmrg 43324456fccdSmrg# What is the maximum length of a command? 43334456fccdSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 43344456fccdSmrg 43354456fccdSmrg# Does compiler simultaneously support -c and -o options? 43364456fccdSmrgcompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 43374456fccdSmrg 43384456fccdSmrg# Must we lock files when doing compilation? 43394456fccdSmrgneed_locks=$lt_need_locks 43404456fccdSmrg 43414456fccdSmrg# Do we need the lib prefix for modules? 43424456fccdSmrgneed_lib_prefix=$need_lib_prefix 43434456fccdSmrg 43444456fccdSmrg# Do we need a version for libraries? 43454456fccdSmrgneed_version=$need_version 43464456fccdSmrg 43474456fccdSmrg# Whether dlopen is supported. 43484456fccdSmrgdlopen_support=$enable_dlopen 43494456fccdSmrg 43504456fccdSmrg# Whether dlopen of programs is supported. 43514456fccdSmrgdlopen_self=$enable_dlopen_self 43524456fccdSmrg 43534456fccdSmrg# Whether dlopen of statically linked programs is supported. 43544456fccdSmrgdlopen_self_static=$enable_dlopen_self_static 43554456fccdSmrg 43564456fccdSmrg# Compiler flag to prevent dynamic linking. 43574456fccdSmrglink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 43584456fccdSmrg 43594456fccdSmrg# Compiler flag to turn off builtin functions. 43604456fccdSmrgno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 43614456fccdSmrg 43624456fccdSmrg# Compiler flag to allow reflexive dlopens. 43634456fccdSmrgexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 43644456fccdSmrg 43654456fccdSmrg# Compiler flag to generate shared objects directly from archives. 43664456fccdSmrgwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 43674456fccdSmrg 43684456fccdSmrg# Compiler flag to generate thread-safe objects. 43694456fccdSmrgthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 43704456fccdSmrg 43714456fccdSmrg# Library versioning type. 43724456fccdSmrgversion_type=$version_type 43734456fccdSmrg 43744456fccdSmrg# Format of library name prefix. 43754456fccdSmrglibname_spec=$lt_libname_spec 43764456fccdSmrg 43774456fccdSmrg# List of archive names. First name is the real one, the rest are links. 43784456fccdSmrg# The last name is the one that the linker finds with -lNAME. 43794456fccdSmrglibrary_names_spec=$lt_library_names_spec 43804456fccdSmrg 43814456fccdSmrg# The coded name of the library, if different from the real name. 43824456fccdSmrgsoname_spec=$lt_soname_spec 43834456fccdSmrg 43844456fccdSmrg# Commands used to build and install an old-style archive. 43854456fccdSmrgRANLIB=$lt_RANLIB 43864456fccdSmrgold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 43874456fccdSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 43884456fccdSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 43894456fccdSmrg 43904456fccdSmrg# Create an old-style archive from a shared archive. 43914456fccdSmrgold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 43924456fccdSmrg 43934456fccdSmrg# Create a temporary old-style archive to link instead of a shared archive. 43944456fccdSmrgold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 43954456fccdSmrg 43964456fccdSmrg# Commands used to build and install a shared archive. 43974456fccdSmrgarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 43984456fccdSmrgarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 43994456fccdSmrgpostinstall_cmds=$lt_postinstall_cmds 44004456fccdSmrgpostuninstall_cmds=$lt_postuninstall_cmds 44014456fccdSmrg 44024456fccdSmrg# Commands used to build a loadable module (assumed same as above if empty) 44034456fccdSmrgmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 44044456fccdSmrgmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 44054456fccdSmrg 44064456fccdSmrg# Commands to strip libraries. 44074456fccdSmrgold_striplib=$lt_old_striplib 44084456fccdSmrgstriplib=$lt_striplib 44094456fccdSmrg 44104456fccdSmrg# Dependencies to place before the objects being linked to create a 44114456fccdSmrg# shared library. 44124456fccdSmrgpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 44134456fccdSmrg 44144456fccdSmrg# Dependencies to place after the objects being linked to create a 44154456fccdSmrg# shared library. 44164456fccdSmrgpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 44174456fccdSmrg 44184456fccdSmrg# Dependencies to place before the objects being linked to create a 44194456fccdSmrg# shared library. 44204456fccdSmrgpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 44214456fccdSmrg 44224456fccdSmrg# Dependencies to place after the objects being linked to create a 44234456fccdSmrg# shared library. 44244456fccdSmrgpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 44254456fccdSmrg 44264456fccdSmrg# The library search path used internally by the compiler when linking 44274456fccdSmrg# a shared library. 44284456fccdSmrgcompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 44294456fccdSmrg 44304456fccdSmrg# Method to check whether dependent libraries are shared objects. 44314456fccdSmrgdeplibs_check_method=$lt_deplibs_check_method 44324456fccdSmrg 44334456fccdSmrg# Command to use when deplibs_check_method == file_magic. 44344456fccdSmrgfile_magic_cmd=$lt_file_magic_cmd 44354456fccdSmrg 44364456fccdSmrg# Flag that allows shared libraries with undefined symbols to be built. 44374456fccdSmrgallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 44384456fccdSmrg 44394456fccdSmrg# Flag that forces no undefined symbols. 44404456fccdSmrgno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 44414456fccdSmrg 44424456fccdSmrg# Commands used to finish a libtool library installation in a directory. 44434456fccdSmrgfinish_cmds=$lt_finish_cmds 44444456fccdSmrg 44454456fccdSmrg# Same as above, but a single script fragment to be evaled but not shown. 44464456fccdSmrgfinish_eval=$lt_finish_eval 44474456fccdSmrg 44484456fccdSmrg# Take the output of nm and produce a listing of raw symbols and C names. 44494456fccdSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 44504456fccdSmrg 44514456fccdSmrg# Transform the output of nm in a proper C declaration 44524456fccdSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 44534456fccdSmrg 44544456fccdSmrg# Transform the output of nm in a C name address pair 44554456fccdSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 44564456fccdSmrg 44574456fccdSmrg# This is the shared library runtime path variable. 44584456fccdSmrgrunpath_var=$runpath_var 44594456fccdSmrg 44604456fccdSmrg# This is the shared library path variable. 44614456fccdSmrgshlibpath_var=$shlibpath_var 44624456fccdSmrg 44634456fccdSmrg# Is shlibpath searched before the hard-coded library search path? 44644456fccdSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 44654456fccdSmrg 44664456fccdSmrg# How to hardcode a shared library path into an executable. 44674456fccdSmrghardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 44684456fccdSmrg 44694456fccdSmrg# Whether we should hardcode library paths into libraries. 44704456fccdSmrghardcode_into_libs=$hardcode_into_libs 44714456fccdSmrg 44724456fccdSmrg# Flag to hardcode \$libdir into a binary during linking. 44734456fccdSmrg# This must work even if \$libdir does not exist. 44744456fccdSmrghardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 44754456fccdSmrg 44764456fccdSmrg# If ld is used when linking, flag to hardcode \$libdir into 44774456fccdSmrg# a binary during linking. This must work even if \$libdir does 44784456fccdSmrg# not exist. 44794456fccdSmrghardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 44804456fccdSmrg 44814456fccdSmrg# Whether we need a single -rpath flag with a separated argument. 44824456fccdSmrghardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 44834456fccdSmrg 44844456fccdSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 44854456fccdSmrg# resulting binary. 44864456fccdSmrghardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 44874456fccdSmrg 44884456fccdSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 44894456fccdSmrg# resulting binary. 44904456fccdSmrghardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 44914456fccdSmrg 44924456fccdSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 44934456fccdSmrg# the resulting binary. 44944456fccdSmrghardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 44954456fccdSmrg 44964456fccdSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 44974456fccdSmrg# and all subsequent libraries and executables linked against it. 44984456fccdSmrghardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 44994456fccdSmrg 45004456fccdSmrg# Variables whose values should be saved in libtool wrapper scripts and 45014456fccdSmrg# restored at relink time. 45024456fccdSmrgvariables_saved_for_relink="$variables_saved_for_relink" 45034456fccdSmrg 45044456fccdSmrg# Whether libtool must link a program against all its dependency libraries. 45054456fccdSmrglink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 45064456fccdSmrg 45074456fccdSmrg# Compile-time system search path for libraries 45084456fccdSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 45094456fccdSmrg 45104456fccdSmrg# Run-time system search path for libraries 45114456fccdSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 45124456fccdSmrg 45134456fccdSmrg# Fix the shell variable \$srcfile for the compiler. 45144456fccdSmrgfix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 45154456fccdSmrg 45164456fccdSmrg# Set to yes if exported symbols are required. 45174456fccdSmrgalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 45184456fccdSmrg 45194456fccdSmrg# The commands to list exported symbols. 45204456fccdSmrgexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 45214456fccdSmrg 45224456fccdSmrg# The commands to extract the exported symbol list from a shared archive. 45234456fccdSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 45244456fccdSmrg 45254456fccdSmrg# Symbols that should not be listed in the preloaded symbols. 45264456fccdSmrgexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 45274456fccdSmrg 45284456fccdSmrg# Symbols that must always be exported. 45294456fccdSmrginclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 45304456fccdSmrg 45314456fccdSmrgifelse([$1],[], 45324456fccdSmrg[# ### END LIBTOOL CONFIG], 45334456fccdSmrg[# ### END LIBTOOL TAG CONFIG: $tagname]) 45344456fccdSmrg 45354456fccdSmrg__EOF__ 45364456fccdSmrg 45374456fccdSmrgifelse([$1],[], [ 45384456fccdSmrg case $host_os in 45394456fccdSmrg aix3*) 45404456fccdSmrg cat <<\EOF >> "$cfgfile" 45414456fccdSmrg 45424456fccdSmrg# AIX sometimes has problems with the GCC collect2 program. For some 45434456fccdSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 45444456fccdSmrg# vanish in a puff of smoke. 45454456fccdSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 45464456fccdSmrg COLLECT_NAMES= 45474456fccdSmrg export COLLECT_NAMES 45484456fccdSmrgfi 45494456fccdSmrgEOF 45504456fccdSmrg ;; 45514456fccdSmrg esac 45524456fccdSmrg 45534456fccdSmrg # We use sed instead of cat because bash on DJGPP gets confused if 45544456fccdSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 45554456fccdSmrg # text mode, it properly converts lines to CR/LF. This bash problem 45564456fccdSmrg # is reportedly fixed, but why not run on old versions too? 45574456fccdSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 45584456fccdSmrg 45594456fccdSmrg mv -f "$cfgfile" "$ofile" || \ 45604456fccdSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 45614456fccdSmrg chmod +x "$ofile" 45624456fccdSmrg]) 45634456fccdSmrgelse 45644456fccdSmrg # If there is no Makefile yet, we rely on a make rule to execute 45654456fccdSmrg # `config.status --recheck' to rerun these tests and create the 45664456fccdSmrg # libtool script then. 45674456fccdSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 45684456fccdSmrg if test -f "$ltmain_in"; then 45694456fccdSmrg test -f Makefile && make "$ltmain" 45704456fccdSmrg fi 45714456fccdSmrgfi 45724456fccdSmrg])# AC_LIBTOOL_CONFIG 45734456fccdSmrg 45744456fccdSmrg 45754456fccdSmrg# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 45764456fccdSmrg# ------------------------------------------- 45774456fccdSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 45784456fccdSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 45794456fccdSmrg 45804456fccdSmrg_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 45814456fccdSmrg 45824456fccdSmrgif test "$GCC" = yes; then 45834456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 45844456fccdSmrg 45854456fccdSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 45864456fccdSmrg lt_cv_prog_compiler_rtti_exceptions, 45874456fccdSmrg [-fno-rtti -fno-exceptions], [], 45884456fccdSmrg [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 45894456fccdSmrgfi 45904456fccdSmrg])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 45914456fccdSmrg 45924456fccdSmrg 45934456fccdSmrg# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 45944456fccdSmrg# --------------------------------- 45954456fccdSmrgAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 45964456fccdSmrg[AC_REQUIRE([AC_CANONICAL_HOST]) 45974456fccdSmrgAC_REQUIRE([AC_PROG_NM]) 45984456fccdSmrgAC_REQUIRE([AC_OBJEXT]) 45994456fccdSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 46004456fccdSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 46014456fccdSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 46024456fccdSmrg[ 46034456fccdSmrg# These are sane defaults that work on at least a few old systems. 46044456fccdSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 46054456fccdSmrg 46064456fccdSmrg# Character class describing NM global symbol codes. 46074456fccdSmrgsymcode='[[BCDEGRST]]' 46084456fccdSmrg 46094456fccdSmrg# Regexp to match symbols that can be accessed directly from C. 46104456fccdSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 46114456fccdSmrg 46124456fccdSmrg# Transform an extracted symbol line into a proper C declaration 46134456fccdSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 46144456fccdSmrg 46154456fccdSmrg# Transform an extracted symbol line into symbol name and symbol address 46164456fccdSmrglt_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'" 46174456fccdSmrg 46184456fccdSmrg# Define system-specific variables. 46194456fccdSmrgcase $host_os in 46204456fccdSmrgaix*) 46214456fccdSmrg symcode='[[BCDT]]' 46224456fccdSmrg ;; 46234456fccdSmrgcygwin* | mingw* | pw32*) 46244456fccdSmrg symcode='[[ABCDGISTW]]' 46254456fccdSmrg ;; 46264456fccdSmrghpux*) # Its linker distinguishes data from code symbols 46274456fccdSmrg if test "$host_cpu" = ia64; then 46284456fccdSmrg symcode='[[ABCDEGRST]]' 46294456fccdSmrg fi 46304456fccdSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 46314456fccdSmrg 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'" 46324456fccdSmrg ;; 46334456fccdSmrglinux* | k*bsd*-gnu) 46344456fccdSmrg if test "$host_cpu" = ia64; then 46354456fccdSmrg symcode='[[ABCDGIRSTW]]' 46364456fccdSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 46374456fccdSmrg 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'" 46384456fccdSmrg fi 46394456fccdSmrg ;; 46404456fccdSmrgirix* | nonstopux*) 46414456fccdSmrg symcode='[[BCDEGRST]]' 46424456fccdSmrg ;; 46434456fccdSmrgosf*) 46444456fccdSmrg symcode='[[BCDEGQRST]]' 46454456fccdSmrg ;; 46464456fccdSmrgsolaris*) 46474456fccdSmrg symcode='[[BDRT]]' 46484456fccdSmrg ;; 46494456fccdSmrgsco3.2v5*) 46504456fccdSmrg symcode='[[DT]]' 46514456fccdSmrg ;; 46524456fccdSmrgsysv4.2uw2*) 46534456fccdSmrg symcode='[[DT]]' 46544456fccdSmrg ;; 46554456fccdSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 46564456fccdSmrg symcode='[[ABDT]]' 46574456fccdSmrg ;; 46584456fccdSmrgsysv4) 46594456fccdSmrg symcode='[[DFNSTU]]' 46604456fccdSmrg ;; 46614456fccdSmrgesac 46624456fccdSmrg 46634456fccdSmrg# Handle CRLF in mingw tool chain 46644456fccdSmrgopt_cr= 46654456fccdSmrgcase $build_os in 46664456fccdSmrgmingw*) 46674456fccdSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 46684456fccdSmrg ;; 46694456fccdSmrgesac 46704456fccdSmrg 46714456fccdSmrg# If we're using GNU nm, then use its standard symbol codes. 46724456fccdSmrgcase `$NM -V 2>&1` in 46734456fccdSmrg*GNU* | *'with BFD'*) 46744456fccdSmrg symcode='[[ABCDGIRSTW]]' ;; 46754456fccdSmrgesac 46764456fccdSmrg 46774456fccdSmrg# Try without a prefix undercore, then with it. 46784456fccdSmrgfor ac_symprfx in "" "_"; do 46794456fccdSmrg 46804456fccdSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 46814456fccdSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 46824456fccdSmrg 46834456fccdSmrg # Write the raw and C identifiers. 46844456fccdSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 46854456fccdSmrg 46864456fccdSmrg # Check to see that the pipe works correctly. 46874456fccdSmrg pipe_works=no 46884456fccdSmrg 46894456fccdSmrg rm -f conftest* 46904456fccdSmrg cat > conftest.$ac_ext <<EOF 46914456fccdSmrg#ifdef __cplusplus 46924456fccdSmrgextern "C" { 46934456fccdSmrg#endif 46944456fccdSmrgchar nm_test_var; 46954456fccdSmrgvoid nm_test_func(){} 46964456fccdSmrg#ifdef __cplusplus 46974456fccdSmrg} 46984456fccdSmrg#endif 46994456fccdSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 47004456fccdSmrgEOF 47014456fccdSmrg 47024456fccdSmrg if AC_TRY_EVAL(ac_compile); then 47034456fccdSmrg # Now try to grab the symbols. 47044456fccdSmrg nlist=conftest.nm 47054456fccdSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 47064456fccdSmrg # Try sorting and uniquifying the output. 47074456fccdSmrg if sort "$nlist" | uniq > "$nlist"T; then 47084456fccdSmrg mv -f "$nlist"T "$nlist" 47094456fccdSmrg else 47104456fccdSmrg rm -f "$nlist"T 47114456fccdSmrg fi 47124456fccdSmrg 47134456fccdSmrg # Make sure that we snagged all the symbols we need. 47144456fccdSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 47154456fccdSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 47164456fccdSmrg cat <<EOF > conftest.$ac_ext 47174456fccdSmrg#ifdef __cplusplus 47184456fccdSmrgextern "C" { 47194456fccdSmrg#endif 47204456fccdSmrg 47214456fccdSmrgEOF 47224456fccdSmrg # Now generate the symbol file. 47234456fccdSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 47244456fccdSmrg 47254456fccdSmrg cat <<EOF >> conftest.$ac_ext 47264456fccdSmrg#if defined (__STDC__) && __STDC__ 47274456fccdSmrg# define lt_ptr_t void * 47284456fccdSmrg#else 47294456fccdSmrg# define lt_ptr_t char * 47304456fccdSmrg# define const 47314456fccdSmrg#endif 47324456fccdSmrg 47334456fccdSmrg/* The mapping between symbol names and symbols. */ 47344456fccdSmrgconst struct { 47354456fccdSmrg const char *name; 47364456fccdSmrg lt_ptr_t address; 47374456fccdSmrg} 47384456fccdSmrglt_preloaded_symbols[[]] = 47394456fccdSmrg{ 47404456fccdSmrgEOF 47414456fccdSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 47424456fccdSmrg cat <<\EOF >> conftest.$ac_ext 47434456fccdSmrg {0, (lt_ptr_t) 0} 47444456fccdSmrg}; 47454456fccdSmrg 47464456fccdSmrg#ifdef __cplusplus 47474456fccdSmrg} 47484456fccdSmrg#endif 47494456fccdSmrgEOF 47504456fccdSmrg # Now try linking the two files. 47514456fccdSmrg mv conftest.$ac_objext conftstm.$ac_objext 47524456fccdSmrg lt_save_LIBS="$LIBS" 47534456fccdSmrg lt_save_CFLAGS="$CFLAGS" 47544456fccdSmrg LIBS="conftstm.$ac_objext" 47554456fccdSmrg CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 47564456fccdSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 47574456fccdSmrg pipe_works=yes 47584456fccdSmrg fi 47594456fccdSmrg LIBS="$lt_save_LIBS" 47604456fccdSmrg CFLAGS="$lt_save_CFLAGS" 47614456fccdSmrg else 47624456fccdSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 47634456fccdSmrg fi 47644456fccdSmrg else 47654456fccdSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 47664456fccdSmrg fi 47674456fccdSmrg else 47684456fccdSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 47694456fccdSmrg fi 47704456fccdSmrg else 47714456fccdSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 47724456fccdSmrg cat conftest.$ac_ext >&5 47734456fccdSmrg fi 47744456fccdSmrg rm -f conftest* conftst* 47754456fccdSmrg 47764456fccdSmrg # Do not use the global_symbol_pipe unless it works. 47774456fccdSmrg if test "$pipe_works" = yes; then 47784456fccdSmrg break 47794456fccdSmrg else 47804456fccdSmrg lt_cv_sys_global_symbol_pipe= 47814456fccdSmrg fi 47824456fccdSmrgdone 47834456fccdSmrg]) 47844456fccdSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 47854456fccdSmrg lt_cv_sys_global_symbol_to_cdecl= 47864456fccdSmrgfi 47874456fccdSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 47884456fccdSmrg AC_MSG_RESULT(failed) 47894456fccdSmrgelse 47904456fccdSmrg AC_MSG_RESULT(ok) 47914456fccdSmrgfi 47924456fccdSmrg]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 47934456fccdSmrg 47944456fccdSmrg 47954456fccdSmrg# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 47964456fccdSmrg# --------------------------------------- 47974456fccdSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 47984456fccdSmrg[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 47994456fccdSmrg_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 48004456fccdSmrg_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 48014456fccdSmrg 48024456fccdSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 48034456fccdSmrg ifelse([$1],[CXX],[ 48044456fccdSmrg # C++ specific cases for pic, static, wl, etc. 48054456fccdSmrg if test "$GXX" = yes; then 48064456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48074456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 48084456fccdSmrg 48094456fccdSmrg case $host_os in 48104456fccdSmrg aix*) 48114456fccdSmrg # All AIX code is PIC. 48124456fccdSmrg if test "$host_cpu" = ia64; then 48134456fccdSmrg # AIX 5 now supports IA64 processor 48144456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48154456fccdSmrg fi 48164456fccdSmrg ;; 48174456fccdSmrg amigaos*) 48184456fccdSmrg # FIXME: we need at least 68020 code to build shared libraries, but 48194456fccdSmrg # adding the `-m68020' flag to GCC prevents building anything better, 48204456fccdSmrg # like `-m68040'. 48214456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 48224456fccdSmrg ;; 48234456fccdSmrg beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 48244456fccdSmrg # PIC is the default for these OSes. 48254456fccdSmrg ;; 48264456fccdSmrg mingw* | os2* | pw32*) 48274456fccdSmrg # This hack is so that the source file can tell whether it is being 48284456fccdSmrg # built for inclusion in a dll (and should export symbols for example). 48294456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 48304456fccdSmrg ;; 48314456fccdSmrg darwin* | rhapsody*) 48324456fccdSmrg # PIC is the default on this platform 48334456fccdSmrg # Common symbols not allowed in MH_DYLIB files 48344456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 48354456fccdSmrg ;; 48364456fccdSmrg *djgpp*) 48374456fccdSmrg # DJGPP does not support shared libraries at all 48384456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 48394456fccdSmrg ;; 48404456fccdSmrg interix3*) 48414456fccdSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 48424456fccdSmrg # Instead, we relocate shared libraries at runtime. 48434456fccdSmrg ;; 48444456fccdSmrg sysv4*MP*) 48454456fccdSmrg if test -d /usr/nec; then 48464456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 48474456fccdSmrg fi 48484456fccdSmrg ;; 48494456fccdSmrg hpux*) 48504456fccdSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 48514456fccdSmrg # not for PA HP-UX. 48524456fccdSmrg case $host_cpu in 48534456fccdSmrg hppa*64*|ia64*) 48544456fccdSmrg ;; 48554456fccdSmrg *) 48564456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 48574456fccdSmrg ;; 48584456fccdSmrg esac 48594456fccdSmrg ;; 48604456fccdSmrg *) 48614456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 48624456fccdSmrg ;; 48634456fccdSmrg esac 48644456fccdSmrg else 48654456fccdSmrg case $host_os in 48664456fccdSmrg aix4* | aix5*) 48674456fccdSmrg # All AIX code is PIC. 48684456fccdSmrg if test "$host_cpu" = ia64; then 48694456fccdSmrg # AIX 5 now supports IA64 processor 48704456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 48714456fccdSmrg else 48724456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 48734456fccdSmrg fi 48744456fccdSmrg ;; 48754456fccdSmrg chorus*) 48764456fccdSmrg case $cc_basename in 48774456fccdSmrg cxch68*) 48784456fccdSmrg # Green Hills C++ Compiler 48794456fccdSmrg # _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" 48804456fccdSmrg ;; 48814456fccdSmrg esac 48824456fccdSmrg ;; 48834456fccdSmrg darwin*) 48844456fccdSmrg # PIC is the default on this platform 48854456fccdSmrg # Common symbols not allowed in MH_DYLIB files 48864456fccdSmrg case $cc_basename in 48874456fccdSmrg xlc*) 48884456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 48894456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 48904456fccdSmrg ;; 48914456fccdSmrg esac 48924456fccdSmrg ;; 48934456fccdSmrg dgux*) 48944456fccdSmrg case $cc_basename in 48954456fccdSmrg ec++*) 48964456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 48974456fccdSmrg ;; 48984456fccdSmrg ghcx*) 48994456fccdSmrg # Green Hills C++ Compiler 49004456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 49014456fccdSmrg ;; 49024456fccdSmrg *) 49034456fccdSmrg ;; 49044456fccdSmrg esac 49054456fccdSmrg ;; 49064456fccdSmrg freebsd* | dragonfly*) 49074456fccdSmrg # FreeBSD uses GNU C++ 49084456fccdSmrg ;; 49094456fccdSmrg hpux9* | hpux10* | hpux11*) 49104456fccdSmrg case $cc_basename in 49114456fccdSmrg CC*) 49124456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 49134456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 49144456fccdSmrg if test "$host_cpu" != ia64; then 49154456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 49164456fccdSmrg fi 49174456fccdSmrg ;; 49184456fccdSmrg aCC*) 49194456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 49204456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 49214456fccdSmrg case $host_cpu in 49224456fccdSmrg hppa*64*|ia64*) 49234456fccdSmrg # +Z the default 49244456fccdSmrg ;; 49254456fccdSmrg *) 49264456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 49274456fccdSmrg ;; 49284456fccdSmrg esac 49294456fccdSmrg ;; 49304456fccdSmrg *) 49314456fccdSmrg ;; 49324456fccdSmrg esac 49334456fccdSmrg ;; 49344456fccdSmrg interix*) 49354456fccdSmrg # This is c89, which is MS Visual C++ (no shared libs) 49364456fccdSmrg # Anyone wants to do a port? 49374456fccdSmrg ;; 49384456fccdSmrg irix5* | irix6* | nonstopux*) 49394456fccdSmrg case $cc_basename in 49404456fccdSmrg CC*) 49414456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 49424456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 49434456fccdSmrg # CC pic flag -KPIC is the default. 49444456fccdSmrg ;; 49454456fccdSmrg *) 49464456fccdSmrg ;; 49474456fccdSmrg esac 49484456fccdSmrg ;; 49494456fccdSmrg linux* | k*bsd*-gnu) 49504456fccdSmrg case $cc_basename in 49514456fccdSmrg KCC*) 49524456fccdSmrg # KAI C++ Compiler 49534456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 49544456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 49554456fccdSmrg ;; 49564456fccdSmrg icpc* | ecpc*) 49574456fccdSmrg # Intel C++ 49584456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 49594456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 49604456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 49614456fccdSmrg ;; 49624456fccdSmrg pgCC*) 49634456fccdSmrg # Portland Group C++ compiler. 49644456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 49654456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 49664456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 49674456fccdSmrg ;; 49684456fccdSmrg cxx*) 49694456fccdSmrg # Compaq C++ 49704456fccdSmrg # Make sure the PIC flag is empty. It appears that all Alpha 49714456fccdSmrg # Linux and Compaq Tru64 Unix objects are PIC. 49724456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 49734456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 49744456fccdSmrg ;; 49754456fccdSmrg *) 49764456fccdSmrg ;; 49774456fccdSmrg esac 49784456fccdSmrg ;; 49794456fccdSmrg lynxos*) 49804456fccdSmrg ;; 49814456fccdSmrg m88k*) 49824456fccdSmrg ;; 49834456fccdSmrg mvs*) 49844456fccdSmrg case $cc_basename in 49854456fccdSmrg cxx*) 49864456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 49874456fccdSmrg ;; 49884456fccdSmrg *) 49894456fccdSmrg ;; 49904456fccdSmrg esac 49914456fccdSmrg ;; 49924456fccdSmrg netbsd* | netbsdelf*-gnu) 49934456fccdSmrg ;; 49944456fccdSmrg osf3* | osf4* | osf5*) 49954456fccdSmrg case $cc_basename in 49964456fccdSmrg KCC*) 49974456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 49984456fccdSmrg ;; 49994456fccdSmrg RCC*) 50004456fccdSmrg # Rational C++ 2.4.1 50014456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 50024456fccdSmrg ;; 50034456fccdSmrg cxx*) 50044456fccdSmrg # Digital/Compaq C++ 50054456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 50064456fccdSmrg # Make sure the PIC flag is empty. It appears that all Alpha 50074456fccdSmrg # Linux and Compaq Tru64 Unix objects are PIC. 50084456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 50094456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 50104456fccdSmrg ;; 50114456fccdSmrg *) 50124456fccdSmrg ;; 50134456fccdSmrg esac 50144456fccdSmrg ;; 50154456fccdSmrg psos*) 50164456fccdSmrg ;; 50174456fccdSmrg solaris*) 50184456fccdSmrg case $cc_basename in 50194456fccdSmrg CC*) 50204456fccdSmrg # Sun C++ 4.2, 5.x and Centerline C++ 50214456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 50224456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50234456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 50244456fccdSmrg ;; 50254456fccdSmrg gcx*) 50264456fccdSmrg # Green Hills C++ Compiler 50274456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 50284456fccdSmrg ;; 50294456fccdSmrg *) 50304456fccdSmrg ;; 50314456fccdSmrg esac 50324456fccdSmrg ;; 50334456fccdSmrg sunos4*) 50344456fccdSmrg case $cc_basename in 50354456fccdSmrg CC*) 50364456fccdSmrg # Sun C++ 4.x 50374456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 50384456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50394456fccdSmrg ;; 50404456fccdSmrg lcc*) 50414456fccdSmrg # Lucid 50424456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 50434456fccdSmrg ;; 50444456fccdSmrg *) 50454456fccdSmrg ;; 50464456fccdSmrg esac 50474456fccdSmrg ;; 50484456fccdSmrg tandem*) 50494456fccdSmrg case $cc_basename in 50504456fccdSmrg NCC*) 50514456fccdSmrg # NonStop-UX NCC 3.20 50524456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 50534456fccdSmrg ;; 50544456fccdSmrg *) 50554456fccdSmrg ;; 50564456fccdSmrg esac 50574456fccdSmrg ;; 50584456fccdSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 50594456fccdSmrg case $cc_basename in 50604456fccdSmrg CC*) 50614456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 50624456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 50634456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50644456fccdSmrg ;; 50654456fccdSmrg esac 50664456fccdSmrg ;; 50674456fccdSmrg vxworks*) 50684456fccdSmrg ;; 50694456fccdSmrg *) 50704456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 50714456fccdSmrg ;; 50724456fccdSmrg esac 50734456fccdSmrg fi 50744456fccdSmrg], 50754456fccdSmrg[ 50764456fccdSmrg if test "$GCC" = yes; then 50774456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 50784456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 50794456fccdSmrg 50804456fccdSmrg case $host_os in 50814456fccdSmrg aix*) 50824456fccdSmrg # All AIX code is PIC. 50834456fccdSmrg if test "$host_cpu" = ia64; then 50844456fccdSmrg # AIX 5 now supports IA64 processor 50854456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 50864456fccdSmrg fi 50874456fccdSmrg ;; 50884456fccdSmrg 50894456fccdSmrg amigaos*) 50904456fccdSmrg # FIXME: we need at least 68020 code to build shared libraries, but 50914456fccdSmrg # adding the `-m68020' flag to GCC prevents building anything better, 50924456fccdSmrg # like `-m68040'. 50934456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 50944456fccdSmrg ;; 50954456fccdSmrg 50964456fccdSmrg beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 50974456fccdSmrg # PIC is the default for these OSes. 50984456fccdSmrg ;; 50994456fccdSmrg 51004456fccdSmrg mingw* | pw32* | os2*) 51014456fccdSmrg # This hack is so that the source file can tell whether it is being 51024456fccdSmrg # built for inclusion in a dll (and should export symbols for example). 51034456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 51044456fccdSmrg ;; 51054456fccdSmrg 51064456fccdSmrg darwin* | rhapsody*) 51074456fccdSmrg # PIC is the default on this platform 51084456fccdSmrg # Common symbols not allowed in MH_DYLIB files 51094456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 51104456fccdSmrg ;; 51114456fccdSmrg 51124456fccdSmrg interix3*) 51134456fccdSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 51144456fccdSmrg # Instead, we relocate shared libraries at runtime. 51154456fccdSmrg ;; 51164456fccdSmrg 51174456fccdSmrg msdosdjgpp*) 51184456fccdSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 51194456fccdSmrg # on systems that don't support them. 51204456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 51214456fccdSmrg enable_shared=no 51224456fccdSmrg ;; 51234456fccdSmrg 51244456fccdSmrg sysv4*MP*) 51254456fccdSmrg if test -d /usr/nec; then 51264456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 51274456fccdSmrg fi 51284456fccdSmrg ;; 51294456fccdSmrg 51304456fccdSmrg hpux*) 51314456fccdSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 51324456fccdSmrg # not for PA HP-UX. 51334456fccdSmrg case $host_cpu in 51344456fccdSmrg hppa*64*|ia64*) 51354456fccdSmrg # +Z the default 51364456fccdSmrg ;; 51374456fccdSmrg *) 51384456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 51394456fccdSmrg ;; 51404456fccdSmrg esac 51414456fccdSmrg ;; 51424456fccdSmrg 51434456fccdSmrg *) 51444456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 51454456fccdSmrg ;; 51464456fccdSmrg esac 51474456fccdSmrg else 51484456fccdSmrg # PORTME Check for flag to pass linker flags through the system compiler. 51494456fccdSmrg case $host_os in 51504456fccdSmrg aix*) 51514456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51524456fccdSmrg if test "$host_cpu" = ia64; then 51534456fccdSmrg # AIX 5 now supports IA64 processor 51544456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 51554456fccdSmrg else 51564456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 51574456fccdSmrg fi 51584456fccdSmrg ;; 51594456fccdSmrg darwin*) 51604456fccdSmrg # PIC is the default on this platform 51614456fccdSmrg # Common symbols not allowed in MH_DYLIB files 51624456fccdSmrg case $cc_basename in 51634456fccdSmrg xlc*) 51644456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 51654456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51664456fccdSmrg ;; 51674456fccdSmrg esac 51684456fccdSmrg ;; 51694456fccdSmrg 51704456fccdSmrg mingw* | pw32* | os2*) 51714456fccdSmrg # This hack is so that the source file can tell whether it is being 51724456fccdSmrg # built for inclusion in a dll (and should export symbols for example). 51734456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 51744456fccdSmrg ;; 51754456fccdSmrg 51764456fccdSmrg hpux9* | hpux10* | hpux11*) 51774456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51784456fccdSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 51794456fccdSmrg # not for PA HP-UX. 51804456fccdSmrg case $host_cpu in 51814456fccdSmrg hppa*64*|ia64*) 51824456fccdSmrg # +Z the default 51834456fccdSmrg ;; 51844456fccdSmrg *) 51854456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 51864456fccdSmrg ;; 51874456fccdSmrg esac 51884456fccdSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 51894456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 51904456fccdSmrg ;; 51914456fccdSmrg 51924456fccdSmrg irix5* | irix6* | nonstopux*) 51934456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 51944456fccdSmrg # PIC (with -KPIC) is the default. 51954456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 51964456fccdSmrg ;; 51974456fccdSmrg 51984456fccdSmrg newsos6) 51994456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52004456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52014456fccdSmrg ;; 52024456fccdSmrg 52034456fccdSmrg linux* | k*bsd*-gnu) 52044456fccdSmrg case $cc_basename in 52054456fccdSmrg icc* | ecc*) 52064456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52074456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52084456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 52094456fccdSmrg ;; 52104456fccdSmrg pgcc* | pgf77* | pgf90* | pgf95*) 52114456fccdSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 52124456fccdSmrg # which looks to be a dead project) 52134456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52144456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 52154456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52164456fccdSmrg ;; 52174456fccdSmrg ccc*) 52184456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52194456fccdSmrg # All Alpha code is PIC. 52204456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 52214456fccdSmrg ;; 52224456fccdSmrg esac 52234456fccdSmrg ;; 52244456fccdSmrg 52254456fccdSmrg osf3* | osf4* | osf5*) 52264456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52274456fccdSmrg # All OSF/1 code is PIC. 52284456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 52294456fccdSmrg ;; 52304456fccdSmrg 52314456fccdSmrg solaris*) 52324456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52334456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52344456fccdSmrg case $cc_basename in 52354456fccdSmrg f77* | f90* | f95*) 52364456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 52374456fccdSmrg *) 52384456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 52394456fccdSmrg esac 52404456fccdSmrg ;; 52414456fccdSmrg 52424456fccdSmrg sunos4*) 52434456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 52444456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 52454456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52464456fccdSmrg ;; 52474456fccdSmrg 52484456fccdSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 52494456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52504456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52514456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52524456fccdSmrg ;; 52534456fccdSmrg 52544456fccdSmrg sysv4*MP*) 52554456fccdSmrg if test -d /usr/nec ;then 52564456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 52574456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52584456fccdSmrg fi 52594456fccdSmrg ;; 52604456fccdSmrg 52614456fccdSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 52624456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52634456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 52644456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52654456fccdSmrg ;; 52664456fccdSmrg 52674456fccdSmrg unicos*) 52684456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 52694456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 52704456fccdSmrg ;; 52714456fccdSmrg 52724456fccdSmrg uts4*) 52734456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 52744456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 52754456fccdSmrg ;; 52764456fccdSmrg 52774456fccdSmrg *) 52784456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 52794456fccdSmrg ;; 52804456fccdSmrg esac 52814456fccdSmrg fi 52824456fccdSmrg]) 52834456fccdSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 52844456fccdSmrg 52854456fccdSmrg# 52864456fccdSmrg# Check to make sure the PIC flag actually works. 52874456fccdSmrg# 52884456fccdSmrgif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 52894456fccdSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 52904456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 52914456fccdSmrg [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 52924456fccdSmrg [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 52934456fccdSmrg "" | " "*) ;; 52944456fccdSmrg *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 52954456fccdSmrg esac], 52964456fccdSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 52974456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 52984456fccdSmrgfi 52994456fccdSmrgcase $host_os in 53004456fccdSmrg # For platforms which do not support PIC, -DPIC is meaningless: 53014456fccdSmrg *djgpp*) 53024456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 53034456fccdSmrg ;; 53044456fccdSmrg *) 53054456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 53064456fccdSmrg ;; 53074456fccdSmrgesac 53084456fccdSmrg 53094456fccdSmrg# 53104456fccdSmrg# Check to make sure the static flag actually works. 53114456fccdSmrg# 53124456fccdSmrgwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 53134456fccdSmrgAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 53144456fccdSmrg _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 53154456fccdSmrg $lt_tmp_static_flag, 53164456fccdSmrg [], 53174456fccdSmrg [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 53184456fccdSmrg]) 53194456fccdSmrg 53204456fccdSmrg 53214456fccdSmrg# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 53224456fccdSmrg# ------------------------------------ 53234456fccdSmrg# See if the linker supports building shared libraries. 53244456fccdSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 53254456fccdSmrg[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 53264456fccdSmrgifelse([$1],[CXX],[ 53274456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 53284456fccdSmrg case $host_os in 53294456fccdSmrg aix4* | aix5*) 53304456fccdSmrg # If we're using GNU nm, then we don't want the "-C" option. 53314456fccdSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 53324456fccdSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 53334456fccdSmrg _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' 53344456fccdSmrg else 53354456fccdSmrg _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' 53364456fccdSmrg fi 53374456fccdSmrg ;; 53384456fccdSmrg pw32*) 53394456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 53404456fccdSmrg ;; 53414456fccdSmrg cygwin* | mingw*) 53424456fccdSmrg _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' 53434456fccdSmrg ;; 53444456fccdSmrg linux* | k*bsd*-gnu) 53454456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 53464456fccdSmrg ;; 53474456fccdSmrg *) 53484456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 53494456fccdSmrg ;; 53504456fccdSmrg esac 53514456fccdSmrg],[ 53524456fccdSmrg runpath_var= 53534456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 53544456fccdSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 53554456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)= 53564456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 53574456fccdSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 53584456fccdSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 53594456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 53604456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 53614456fccdSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 53624456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 53634456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 53644456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 53654456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 53664456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 53674456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 53684456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 53694456fccdSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=no 53704456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1)= 53714456fccdSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)= 53724456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 53734456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 53744456fccdSmrg # include_expsyms should be a list of space-separated symbols to be *always* 53754456fccdSmrg # included in the symbol list 53764456fccdSmrg _LT_AC_TAGVAR(include_expsyms, $1)= 53774456fccdSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 53784456fccdSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 53794456fccdSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 53804456fccdSmrg # as well as any symbol that contains `d'. 53814456fccdSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 53824456fccdSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 53834456fccdSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 53844456fccdSmrg # the symbol is explicitly referenced. Since portable code cannot 53854456fccdSmrg # rely on this symbol name, it's probably fine to never include it in 53864456fccdSmrg # preloaded symbol tables. 53874456fccdSmrg extract_expsyms_cmds= 53884456fccdSmrg # Just being paranoid about ensuring that cc_basename is set. 53894456fccdSmrg _LT_CC_BASENAME([$compiler]) 53904456fccdSmrg case $host_os in 53914456fccdSmrg cygwin* | mingw* | pw32*) 53924456fccdSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 53934456fccdSmrg # When not using gcc, we currently assume that we are using 53944456fccdSmrg # Microsoft Visual C++. 53954456fccdSmrg if test "$GCC" != yes; then 53964456fccdSmrg with_gnu_ld=no 53974456fccdSmrg fi 53984456fccdSmrg ;; 53994456fccdSmrg interix*) 54004456fccdSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 54014456fccdSmrg with_gnu_ld=yes 54024456fccdSmrg ;; 54034456fccdSmrg openbsd*) 54044456fccdSmrg with_gnu_ld=no 54054456fccdSmrg ;; 54064456fccdSmrg esac 54074456fccdSmrg 54084456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 54094456fccdSmrg if test "$with_gnu_ld" = yes; then 54104456fccdSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 54114456fccdSmrg wlarc='${wl}' 54124456fccdSmrg 54134456fccdSmrg # Set some defaults for GNU ld with shared library support. These 54144456fccdSmrg # are reset later if shared libraries are not supported. Putting them 54154456fccdSmrg # here allows them to be overridden if necessary. 54164456fccdSmrg runpath_var=LD_RUN_PATH 54174456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 54184456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 54194456fccdSmrg # ancient GNU ld didn't support --whole-archive et. al. 54204456fccdSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 54214456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 54224456fccdSmrg else 54234456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 54244456fccdSmrg fi 54254456fccdSmrg supports_anon_versioning=no 54264456fccdSmrg case `$LD -v 2>/dev/null` in 54274456fccdSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 54284456fccdSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 54294456fccdSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 54304456fccdSmrg *\ 2.11.*) ;; # other 2.11 versions 54314456fccdSmrg *) supports_anon_versioning=yes ;; 54324456fccdSmrg esac 54334456fccdSmrg 54344456fccdSmrg # See if GNU ld supports shared libraries. 54354456fccdSmrg case $host_os in 54364456fccdSmrg aix3* | aix4* | aix5*) 54374456fccdSmrg # On AIX/PPC, the GNU linker is very broken 54384456fccdSmrg if test "$host_cpu" != ia64; then 54394456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 54404456fccdSmrg cat <<EOF 1>&2 54414456fccdSmrg 54424456fccdSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 54434456fccdSmrg*** to be unable to reliably create shared libraries on AIX. 54444456fccdSmrg*** Therefore, libtool is disabling shared libraries support. If you 54454456fccdSmrg*** really care for shared libraries, you may want to modify your PATH 54464456fccdSmrg*** so that a non-GNU linker is found, and then restart. 54474456fccdSmrg 54484456fccdSmrgEOF 54494456fccdSmrg fi 54504456fccdSmrg ;; 54514456fccdSmrg 54524456fccdSmrg amigaos*) 54534456fccdSmrg _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)' 54544456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 54554456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 54564456fccdSmrg 54574456fccdSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 54584456fccdSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 54594456fccdSmrg # to version 4, is to share data among multiple programs linked 54604456fccdSmrg # with the same dynamic library. Since this doesn't match the 54614456fccdSmrg # behavior of shared libraries on other platforms, we can't use 54624456fccdSmrg # them. 54634456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 54644456fccdSmrg ;; 54654456fccdSmrg 54664456fccdSmrg beos*) 54674456fccdSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 54684456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 54694456fccdSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 54704456fccdSmrg # support --undefined. This deserves some investigation. FIXME 54714456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 54724456fccdSmrg else 54734456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 54744456fccdSmrg fi 54754456fccdSmrg ;; 54764456fccdSmrg 54774456fccdSmrg cygwin* | mingw* | pw32*) 54784456fccdSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 54794456fccdSmrg # as there is no search path for DLLs. 54804456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 54814456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 54824456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 54834456fccdSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 54844456fccdSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' 54854456fccdSmrg 54864456fccdSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 54874456fccdSmrg _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' 54884456fccdSmrg # If the export-symbols file already is a .def file (1st line 54894456fccdSmrg # is EXPORTS), use it as is; otherwise, prepend... 54904456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 54914456fccdSmrg cp $export_symbols $output_objdir/$soname.def; 54924456fccdSmrg else 54934456fccdSmrg echo EXPORTS > $output_objdir/$soname.def; 54944456fccdSmrg cat $export_symbols >> $output_objdir/$soname.def; 54954456fccdSmrg fi~ 54964456fccdSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 54974456fccdSmrg else 54984456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 54994456fccdSmrg fi 55004456fccdSmrg ;; 55014456fccdSmrg 55024456fccdSmrg interix3*) 55034456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 55044456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 55054456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 55064456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 55074456fccdSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 55084456fccdSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 55094456fccdSmrg # default) and relocated if they conflict, which is a slow very memory 55104456fccdSmrg # consuming and fragmenting process. To avoid this, we pick a random, 55114456fccdSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 55124456fccdSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 55134456fccdSmrg _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' 55144456fccdSmrg _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' 55154456fccdSmrg ;; 55164456fccdSmrg 55174456fccdSmrg linux* | k*bsd*-gnu) 55184456fccdSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 55194456fccdSmrg tmp_addflag= 55204456fccdSmrg case $cc_basename,$host_cpu in 55214456fccdSmrg pgcc*) # Portland Group C compiler 55224456fccdSmrg _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' 55234456fccdSmrg tmp_addflag=' $pic_flag' 55244456fccdSmrg ;; 55254456fccdSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 55264456fccdSmrg _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' 55274456fccdSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 55284456fccdSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 55294456fccdSmrg tmp_addflag=' -i_dynamic' ;; 55304456fccdSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 55314456fccdSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 55324456fccdSmrg ifc* | ifort*) # Intel Fortran compiler 55334456fccdSmrg tmp_addflag=' -nofor_main' ;; 55344456fccdSmrg esac 55354456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 55364456fccdSmrg 55374456fccdSmrg if test $supports_anon_versioning = yes; then 55384456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 55394456fccdSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 55404456fccdSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 55414456fccdSmrg $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 55424456fccdSmrg fi 55434456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 55444456fccdSmrg else 55454456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 55464456fccdSmrg fi 55474456fccdSmrg ;; 55484456fccdSmrg 55494456fccdSmrg netbsd* | netbsdelf*-gnu) 55504456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 55514456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 55524456fccdSmrg wlarc= 55534456fccdSmrg else 55544456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 55554456fccdSmrg _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' 55564456fccdSmrg fi 55574456fccdSmrg ;; 55584456fccdSmrg 55594456fccdSmrg solaris*) 55604456fccdSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 55614456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 55624456fccdSmrg cat <<EOF 1>&2 55634456fccdSmrg 55644456fccdSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 55654456fccdSmrg*** create shared libraries on Solaris systems. Therefore, libtool 55664456fccdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 55674456fccdSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 55684456fccdSmrg*** your PATH or compiler configuration so that the native linker is 55694456fccdSmrg*** used, and then restart. 55704456fccdSmrg 55714456fccdSmrgEOF 55724456fccdSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 55734456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 55744456fccdSmrg _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' 55754456fccdSmrg else 55764456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 55774456fccdSmrg fi 55784456fccdSmrg ;; 55794456fccdSmrg 55804456fccdSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 55814456fccdSmrg case `$LD -v 2>&1` in 55824456fccdSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 55834456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 55844456fccdSmrg cat <<_LT_EOF 1>&2 55854456fccdSmrg 55864456fccdSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 55874456fccdSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 55884456fccdSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 55894456fccdSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 55904456fccdSmrg*** your PATH or compiler configuration so that the native linker is 55914456fccdSmrg*** used, and then restart. 55924456fccdSmrg 55934456fccdSmrg_LT_EOF 55944456fccdSmrg ;; 55954456fccdSmrg *) 55964456fccdSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 55974456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 55984456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 55994456fccdSmrg _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' 56004456fccdSmrg else 56014456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 56024456fccdSmrg fi 56034456fccdSmrg ;; 56044456fccdSmrg esac 56054456fccdSmrg ;; 56064456fccdSmrg 56074456fccdSmrg sunos4*) 56084456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 56094456fccdSmrg wlarc= 56104456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 56114456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 56124456fccdSmrg ;; 56134456fccdSmrg 56144456fccdSmrg *) 56154456fccdSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 56164456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 56174456fccdSmrg _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' 56184456fccdSmrg else 56194456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 56204456fccdSmrg fi 56214456fccdSmrg ;; 56224456fccdSmrg esac 56234456fccdSmrg 56244456fccdSmrg if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 56254456fccdSmrg runpath_var= 56264456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 56274456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 56284456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 56294456fccdSmrg fi 56304456fccdSmrg else 56314456fccdSmrg # PORTME fill in a description of your system's linker (not GNU ld) 56324456fccdSmrg case $host_os in 56334456fccdSmrg aix3*) 56344456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 56354456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 56364456fccdSmrg _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' 56374456fccdSmrg # Note: this linker hardcodes the directories in LIBPATH if there 56384456fccdSmrg # are no directories specified by -L. 56394456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 56404456fccdSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 56414456fccdSmrg # Neither direct hardcoding nor static linking is supported with a 56424456fccdSmrg # broken collect2. 56434456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 56444456fccdSmrg fi 56454456fccdSmrg ;; 56464456fccdSmrg 56474456fccdSmrg aix4* | aix5*) 56484456fccdSmrg if test "$host_cpu" = ia64; then 56494456fccdSmrg # On IA64, the linker does run time linking by default, so we don't 56504456fccdSmrg # have to do anything special. 56514456fccdSmrg aix_use_runtimelinking=no 56524456fccdSmrg exp_sym_flag='-Bexport' 56534456fccdSmrg no_entry_flag="" 56544456fccdSmrg else 56554456fccdSmrg # If we're using GNU nm, then we don't want the "-C" option. 56564456fccdSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 56574456fccdSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 56584456fccdSmrg _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' 56594456fccdSmrg else 56604456fccdSmrg _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' 56614456fccdSmrg fi 56624456fccdSmrg aix_use_runtimelinking=no 56634456fccdSmrg 56644456fccdSmrg # Test if we are trying to use run time linking or normal 56654456fccdSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 56664456fccdSmrg # need to do runtime linking. 56674456fccdSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 56684456fccdSmrg for ld_flag in $LDFLAGS; do 56694456fccdSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 56704456fccdSmrg aix_use_runtimelinking=yes 56714456fccdSmrg break 56724456fccdSmrg fi 56734456fccdSmrg done 56744456fccdSmrg ;; 56754456fccdSmrg esac 56764456fccdSmrg 56774456fccdSmrg exp_sym_flag='-bexport' 56784456fccdSmrg no_entry_flag='-bnoentry' 56794456fccdSmrg fi 56804456fccdSmrg 56814456fccdSmrg # When large executables or shared objects are built, AIX ld can 56824456fccdSmrg # have problems creating the table of contents. If linking a library 56834456fccdSmrg # or program results in "error TOC overflow" add -mminimal-toc to 56844456fccdSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 56854456fccdSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 56864456fccdSmrg 56874456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 56884456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 56894456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 56904456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 56914456fccdSmrg 56924456fccdSmrg if test "$GCC" = yes; then 56934456fccdSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 56944456fccdSmrg # We only want to do this on AIX 4.2 and lower, the check 56954456fccdSmrg # below for broken collect2 doesn't work under 4.3+ 56964456fccdSmrg collect2name=`${CC} -print-prog-name=collect2` 56974456fccdSmrg if test -f "$collect2name" && \ 56984456fccdSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 56994456fccdSmrg then 57004456fccdSmrg # We have reworked collect2 57014456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 57024456fccdSmrg else 57034456fccdSmrg # We have old collect2 57044456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 57054456fccdSmrg # It fails to find uninstalled libraries when the uninstalled 57064456fccdSmrg # path is not listed in the libpath. Setting hardcode_minus_L 57074456fccdSmrg # to unsupported forces relinking 57084456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 57094456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 57104456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 57114456fccdSmrg fi 57124456fccdSmrg ;; 57134456fccdSmrg esac 57144456fccdSmrg shared_flag='-shared' 57154456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 57164456fccdSmrg shared_flag="$shared_flag "'${wl}-G' 57174456fccdSmrg fi 57184456fccdSmrg else 57194456fccdSmrg # not using gcc 57204456fccdSmrg if test "$host_cpu" = ia64; then 57214456fccdSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 57224456fccdSmrg # chokes on -Wl,-G. The following line is correct: 57234456fccdSmrg shared_flag='-G' 57244456fccdSmrg else 57254456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 57264456fccdSmrg shared_flag='${wl}-G' 57274456fccdSmrg else 57284456fccdSmrg shared_flag='${wl}-bM:SRE' 57294456fccdSmrg fi 57304456fccdSmrg fi 57314456fccdSmrg fi 57324456fccdSmrg 57334456fccdSmrg # It seems that -bexpall does not export symbols beginning with 57344456fccdSmrg # underscore (_), so it is better to generate a list of symbols to export. 57354456fccdSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 57364456fccdSmrg if test "$aix_use_runtimelinking" = yes; then 57374456fccdSmrg # Warning - without using the other runtime loading flags (-brtl), 57384456fccdSmrg # -berok will link without error, but may produce a broken library. 57394456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 57404456fccdSmrg # Determine the default libpath from the value encoded in an empty executable. 57414456fccdSmrg _LT_AC_SYS_LIBPATH_AIX 57424456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 57434456fccdSmrg _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" 57444456fccdSmrg else 57454456fccdSmrg if test "$host_cpu" = ia64; then 57464456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 57474456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 57484456fccdSmrg _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" 57494456fccdSmrg else 57504456fccdSmrg # Determine the default libpath from the value encoded in an empty executable. 57514456fccdSmrg _LT_AC_SYS_LIBPATH_AIX 57524456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 57534456fccdSmrg # Warning - without using the other run time loading flags, 57544456fccdSmrg # -berok will link without error, but may produce a broken library. 57554456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 57564456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 57574456fccdSmrg # Exported symbols can be pulled into shared objects from archives 57584456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 57594456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 57604456fccdSmrg # This is similar to how AIX traditionally builds its shared libraries. 57614456fccdSmrg _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' 57624456fccdSmrg fi 57634456fccdSmrg fi 57644456fccdSmrg ;; 57654456fccdSmrg 57664456fccdSmrg amigaos*) 57674456fccdSmrg _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)' 57684456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 57694456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 57704456fccdSmrg # see comment about different semantics on the GNU ld section 57714456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 57724456fccdSmrg ;; 57734456fccdSmrg 57744456fccdSmrg bsdi[[45]]*) 57754456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 57764456fccdSmrg ;; 57774456fccdSmrg 57784456fccdSmrg cygwin* | mingw* | pw32*) 57794456fccdSmrg # When not using gcc, we currently assume that we are using 57804456fccdSmrg # Microsoft Visual C++. 57814456fccdSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 57824456fccdSmrg # no search path for DLLs. 57834456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 57844456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 57854456fccdSmrg # Tell ltmain to make .lib files, not .a files. 57864456fccdSmrg libext=lib 57874456fccdSmrg # Tell ltmain to make .dll files, not .so files. 57884456fccdSmrg shrext_cmds=".dll" 57894456fccdSmrg # FIXME: Setting linknames here is a bad hack. 57904456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 57914456fccdSmrg # The linker will automatically build a .lib file if we build a DLL. 57924456fccdSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 57934456fccdSmrg # FIXME: Should let the user specify the lib program. 57944456fccdSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 57954456fccdSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 57964456fccdSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 57974456fccdSmrg ;; 57984456fccdSmrg 57994456fccdSmrg darwin* | rhapsody*) 58004456fccdSmrg case $host_os in 58014456fccdSmrg rhapsody* | darwin1.[[012]]) 58024456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 58034456fccdSmrg ;; 58044456fccdSmrg *) # Darwin 1.3 on 58054456fccdSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 58064456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 58074456fccdSmrg else 58084456fccdSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 58094456fccdSmrg 10.[[012]]) 58104456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 58114456fccdSmrg ;; 58124456fccdSmrg 10.*) 58134456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 58144456fccdSmrg ;; 58154456fccdSmrg esac 58164456fccdSmrg fi 58174456fccdSmrg ;; 58184456fccdSmrg esac 58194456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 58204456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 58214456fccdSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 58224456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 58234456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 58244456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 58254456fccdSmrg if test "$GCC" = yes ; then 58264456fccdSmrg output_verbose_link_cmd='echo' 58274456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 58284456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 58294456fccdSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 58304456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 58314456fccdSmrg _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}' 58324456fccdSmrg else 58334456fccdSmrg case $cc_basename in 58344456fccdSmrg xlc*) 58354456fccdSmrg output_verbose_link_cmd='echo' 58364456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' 58374456fccdSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 58384456fccdSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 58394456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 58404456fccdSmrg _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}' 58414456fccdSmrg ;; 58424456fccdSmrg *) 58434456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58444456fccdSmrg ;; 58454456fccdSmrg esac 58464456fccdSmrg fi 58474456fccdSmrg ;; 58484456fccdSmrg 58494456fccdSmrg dgux*) 58504456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 58514456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 58524456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 58534456fccdSmrg ;; 58544456fccdSmrg 58554456fccdSmrg freebsd1*) 58564456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 58574456fccdSmrg ;; 58584456fccdSmrg 58594456fccdSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 58604456fccdSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 58614456fccdSmrg # does not break anything, and helps significantly (at the cost of a little 58624456fccdSmrg # extra space). 58634456fccdSmrg freebsd2.2*) 58644456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 58654456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 58664456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 58674456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 58684456fccdSmrg ;; 58694456fccdSmrg 58704456fccdSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 58714456fccdSmrg freebsd2*) 58724456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 58734456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 58744456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 58754456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 58764456fccdSmrg ;; 58774456fccdSmrg 58784456fccdSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 58794456fccdSmrg freebsd* | dragonfly*) 58804456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 58814456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 58824456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 58834456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 58844456fccdSmrg ;; 58854456fccdSmrg 58864456fccdSmrg hpux9*) 58874456fccdSmrg if test "$GCC" = yes; then 58884456fccdSmrg _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' 58894456fccdSmrg else 58904456fccdSmrg _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' 58914456fccdSmrg fi 58924456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 58934456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 58944456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 58954456fccdSmrg 58964456fccdSmrg # hardcode_minus_L: Not really in the search PATH, 58974456fccdSmrg # but as the default location of the library. 58984456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 58994456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 59004456fccdSmrg ;; 59014456fccdSmrg 59024456fccdSmrg hpux10*) 59034456fccdSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 59044456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 59054456fccdSmrg else 59064456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 59074456fccdSmrg fi 59084456fccdSmrg if test "$with_gnu_ld" = no; then 59094456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 59104456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 59114456fccdSmrg 59124456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 59134456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 59144456fccdSmrg 59154456fccdSmrg # hardcode_minus_L: Not really in the search PATH, 59164456fccdSmrg # but as the default location of the library. 59174456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 59184456fccdSmrg fi 59194456fccdSmrg ;; 59204456fccdSmrg 59214456fccdSmrg hpux11*) 59224456fccdSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 59234456fccdSmrg case $host_cpu in 59244456fccdSmrg hppa*64*) 59254456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 59264456fccdSmrg ;; 59274456fccdSmrg ia64*) 59284456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 59294456fccdSmrg ;; 59304456fccdSmrg *) 59314456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 59324456fccdSmrg ;; 59334456fccdSmrg esac 59344456fccdSmrg else 59354456fccdSmrg case $host_cpu in 59364456fccdSmrg hppa*64*) 59374456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 59384456fccdSmrg ;; 59394456fccdSmrg ia64*) 59404456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 59414456fccdSmrg ;; 59424456fccdSmrg *) 59434456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 59444456fccdSmrg ;; 59454456fccdSmrg esac 59464456fccdSmrg fi 59474456fccdSmrg if test "$with_gnu_ld" = no; then 59484456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 59494456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 59504456fccdSmrg 59514456fccdSmrg case $host_cpu in 59524456fccdSmrg hppa*64*|ia64*) 59534456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 59544456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 59554456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 59564456fccdSmrg ;; 59574456fccdSmrg *) 59584456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 59594456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 59604456fccdSmrg 59614456fccdSmrg # hardcode_minus_L: Not really in the search PATH, 59624456fccdSmrg # but as the default location of the library. 59634456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 59644456fccdSmrg ;; 59654456fccdSmrg esac 59664456fccdSmrg fi 59674456fccdSmrg ;; 59684456fccdSmrg 59694456fccdSmrg irix5* | irix6* | nonstopux*) 59704456fccdSmrg if test "$GCC" = yes; then 59714456fccdSmrg _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' 59724456fccdSmrg else 59734456fccdSmrg _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' 59744456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 59754456fccdSmrg fi 59764456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59774456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 59784456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 59794456fccdSmrg ;; 59804456fccdSmrg 59814456fccdSmrg netbsd* | netbsdelf*-gnu) 59824456fccdSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 59834456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 59844456fccdSmrg else 59854456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 59864456fccdSmrg fi 59874456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 59884456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 59894456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 59904456fccdSmrg ;; 59914456fccdSmrg 59924456fccdSmrg newsos6) 59934456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 59944456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 59954456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 59964456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 59974456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 59984456fccdSmrg ;; 59994456fccdSmrg 60004456fccdSmrg openbsd*) 60014456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 60024456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 60034456fccdSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 60044456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 60054456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 60064456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60074456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 60084456fccdSmrg else 60094456fccdSmrg case $host_os in 60104456fccdSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 60114456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 60124456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60134456fccdSmrg ;; 60144456fccdSmrg *) 60154456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 60164456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 60174456fccdSmrg ;; 60184456fccdSmrg esac 60194456fccdSmrg fi 60204456fccdSmrg ;; 60214456fccdSmrg 60224456fccdSmrg os2*) 60234456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 60244456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 60254456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 60264456fccdSmrg _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' 60274456fccdSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 60284456fccdSmrg ;; 60294456fccdSmrg 60304456fccdSmrg osf3*) 60314456fccdSmrg if test "$GCC" = yes; then 60324456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 60334456fccdSmrg _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' 60344456fccdSmrg else 60354456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 60364456fccdSmrg _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' 60374456fccdSmrg fi 60384456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 60394456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 60404456fccdSmrg ;; 60414456fccdSmrg 60424456fccdSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 60434456fccdSmrg if test "$GCC" = yes; then 60444456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 60454456fccdSmrg _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' 60464456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 60474456fccdSmrg else 60484456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 60494456fccdSmrg _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' 60504456fccdSmrg _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~ 60514456fccdSmrg $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' 60524456fccdSmrg 60534456fccdSmrg # Both c and cxx compiler support -rpath directly 60544456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 60554456fccdSmrg fi 60564456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 60574456fccdSmrg ;; 60584456fccdSmrg 60594456fccdSmrg solaris*) 60604456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 60614456fccdSmrg if test "$GCC" = yes; then 60624456fccdSmrg wlarc='${wl}' 60634456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 60644456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 60654456fccdSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 60664456fccdSmrg else 60674456fccdSmrg wlarc='' 60684456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 60694456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 60704456fccdSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 60714456fccdSmrg fi 60724456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 60734456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 60744456fccdSmrg case $host_os in 60754456fccdSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 60764456fccdSmrg *) 60774456fccdSmrg # The compiler driver will combine linker options so we 60784456fccdSmrg # cannot just pass the convience library names through 60794456fccdSmrg # without $wl, iff we do not link with $LD. 60804456fccdSmrg # Luckily, gcc supports the same syntax we need for Sun Studio. 60814456fccdSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 60824456fccdSmrg case $wlarc in 60834456fccdSmrg '') 60844456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 60854456fccdSmrg *) 60864456fccdSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; 60874456fccdSmrg esac ;; 60884456fccdSmrg esac 60894456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 60904456fccdSmrg ;; 60914456fccdSmrg 60924456fccdSmrg sunos4*) 60934456fccdSmrg if test "x$host_vendor" = xsequent; then 60944456fccdSmrg # Use $CC to link under sequent, because it throws in some extra .o 60954456fccdSmrg # files that make .init and .fini sections work. 60964456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 60974456fccdSmrg else 60984456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 60994456fccdSmrg fi 61004456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 61014456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 61024456fccdSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 61034456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61044456fccdSmrg ;; 61054456fccdSmrg 61064456fccdSmrg sysv4) 61074456fccdSmrg case $host_vendor in 61084456fccdSmrg sni) 61094456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 61104456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 61114456fccdSmrg ;; 61124456fccdSmrg siemens) 61134456fccdSmrg ## LD is ld it makes a PLAMLIB 61144456fccdSmrg ## CC just makes a GrossModule. 61154456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 61164456fccdSmrg _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 61174456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 61184456fccdSmrg ;; 61194456fccdSmrg motorola) 61204456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 61214456fccdSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 61224456fccdSmrg ;; 61234456fccdSmrg esac 61244456fccdSmrg runpath_var='LD_RUN_PATH' 61254456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61264456fccdSmrg ;; 61274456fccdSmrg 61284456fccdSmrg sysv4.3*) 61294456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 61304456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61314456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 61324456fccdSmrg ;; 61334456fccdSmrg 61344456fccdSmrg sysv4*MP*) 61354456fccdSmrg if test -d /usr/nec; then 61364456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 61374456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61384456fccdSmrg runpath_var=LD_RUN_PATH 61394456fccdSmrg hardcode_runpath_var=yes 61404456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 61414456fccdSmrg fi 61424456fccdSmrg ;; 61434456fccdSmrg 61444456fccdSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) 61454456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 61464456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 61474456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61484456fccdSmrg runpath_var='LD_RUN_PATH' 61494456fccdSmrg 61504456fccdSmrg if test "$GCC" = yes; then 61514456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 61524456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 61534456fccdSmrg else 61544456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 61554456fccdSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 61564456fccdSmrg fi 61574456fccdSmrg ;; 61584456fccdSmrg 61594456fccdSmrg sysv5* | sco3.2v5* | sco5v6*) 61604456fccdSmrg # Note: We can NOT use -z defs as we might desire, because we do not 61614456fccdSmrg # link with -lc, and that would cause any symbols used from libc to 61624456fccdSmrg # always be unresolved, which means just about no library would 61634456fccdSmrg # ever link correctly. If we're not using GNU ld we use -z text 61644456fccdSmrg # though, which does catch some bad symbols but isn't as heavy-handed 61654456fccdSmrg # as -z defs. 61664456fccdSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 61674456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 61684456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 61694456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61704456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 61714456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 61724456fccdSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 61734456fccdSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 61744456fccdSmrg runpath_var='LD_RUN_PATH' 61754456fccdSmrg 61764456fccdSmrg if test "$GCC" = yes; then 61774456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 61784456fccdSmrg _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' 61794456fccdSmrg else 61804456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 61814456fccdSmrg _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' 61824456fccdSmrg fi 61834456fccdSmrg ;; 61844456fccdSmrg 61854456fccdSmrg uts4*) 61864456fccdSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 61874456fccdSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 61884456fccdSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 61894456fccdSmrg ;; 61904456fccdSmrg 61914456fccdSmrg *) 61924456fccdSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 61934456fccdSmrg ;; 61944456fccdSmrg esac 61954456fccdSmrg fi 61964456fccdSmrg]) 61974456fccdSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 61984456fccdSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 61994456fccdSmrg 62004456fccdSmrg# 62014456fccdSmrg# Do we need to explicitly link libc? 62024456fccdSmrg# 62034456fccdSmrgcase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 62044456fccdSmrgx|xyes) 62054456fccdSmrg # Assume -lc should be added 62064456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 62074456fccdSmrg 62084456fccdSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 62094456fccdSmrg case $_LT_AC_TAGVAR(archive_cmds, $1) in 62104456fccdSmrg *'~'*) 62114456fccdSmrg # FIXME: we may have to deal with multi-command sequences. 62124456fccdSmrg ;; 62134456fccdSmrg '$CC '*) 62144456fccdSmrg # Test whether the compiler implicitly links with -lc since on some 62154456fccdSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 62164456fccdSmrg # to ld, don't add -lc before -lgcc. 62174456fccdSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 62184456fccdSmrg $rm conftest* 62194456fccdSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 62204456fccdSmrg 62214456fccdSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 62224456fccdSmrg soname=conftest 62234456fccdSmrg lib=conftest 62244456fccdSmrg libobjs=conftest.$ac_objext 62254456fccdSmrg deplibs= 62264456fccdSmrg wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 62274456fccdSmrg pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 62284456fccdSmrg compiler_flags=-v 62294456fccdSmrg linker_flags=-v 62304456fccdSmrg verstring= 62314456fccdSmrg output_objdir=. 62324456fccdSmrg libname=conftest 62334456fccdSmrg lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 62344456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 62354456fccdSmrg if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 62364456fccdSmrg then 62374456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 62384456fccdSmrg else 62394456fccdSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 62404456fccdSmrg fi 62414456fccdSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 62424456fccdSmrg else 62434456fccdSmrg cat conftest.err 1>&5 62444456fccdSmrg fi 62454456fccdSmrg $rm conftest* 62464456fccdSmrg AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 62474456fccdSmrg ;; 62484456fccdSmrg esac 62494456fccdSmrg fi 62504456fccdSmrg ;; 62514456fccdSmrgesac 62524456fccdSmrg])# AC_LIBTOOL_PROG_LD_SHLIBS 62534456fccdSmrg 62544456fccdSmrg 62554456fccdSmrg# _LT_AC_FILE_LTDLL_C 62564456fccdSmrg# ------------------- 62574456fccdSmrg# Be careful that the start marker always follows a newline. 62584456fccdSmrgAC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 62594456fccdSmrg# /* ltdll.c starts here */ 62604456fccdSmrg# #define WIN32_LEAN_AND_MEAN 62614456fccdSmrg# #include <windows.h> 62624456fccdSmrg# #undef WIN32_LEAN_AND_MEAN 62634456fccdSmrg# #include <stdio.h> 62644456fccdSmrg# 62654456fccdSmrg# #ifndef __CYGWIN__ 62664456fccdSmrg# # ifdef __CYGWIN32__ 62674456fccdSmrg# # define __CYGWIN__ __CYGWIN32__ 62684456fccdSmrg# # endif 62694456fccdSmrg# #endif 62704456fccdSmrg# 62714456fccdSmrg# #ifdef __cplusplus 62724456fccdSmrg# extern "C" { 62734456fccdSmrg# #endif 62744456fccdSmrg# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 62754456fccdSmrg# #ifdef __cplusplus 62764456fccdSmrg# } 62774456fccdSmrg# #endif 62784456fccdSmrg# 62794456fccdSmrg# #ifdef __CYGWIN__ 62804456fccdSmrg# #include <cygwin/cygwin_dll.h> 62814456fccdSmrg# DECLARE_CYGWIN_DLL( DllMain ); 62824456fccdSmrg# #endif 62834456fccdSmrg# HINSTANCE __hDllInstance_base; 62844456fccdSmrg# 62854456fccdSmrg# BOOL APIENTRY 62864456fccdSmrg# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 62874456fccdSmrg# { 62884456fccdSmrg# __hDllInstance_base = hInst; 62894456fccdSmrg# return TRUE; 62904456fccdSmrg# } 62914456fccdSmrg# /* ltdll.c ends here */ 62924456fccdSmrg])# _LT_AC_FILE_LTDLL_C 62934456fccdSmrg 62944456fccdSmrg 62954456fccdSmrg# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 62964456fccdSmrg# --------------------------------- 62974456fccdSmrgAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 62984456fccdSmrg 62994456fccdSmrg 63004456fccdSmrg# old names 63014456fccdSmrgAC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 63024456fccdSmrgAC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 63034456fccdSmrgAC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 63044456fccdSmrgAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 63054456fccdSmrgAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 63064456fccdSmrgAC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 63074456fccdSmrgAC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 63084456fccdSmrg 63094456fccdSmrg# This is just to silence aclocal about the macro not being used 63104456fccdSmrgifelse([AC_DISABLE_FAST_INSTALL]) 63114456fccdSmrg 63124456fccdSmrgAC_DEFUN([LT_AC_PROG_GCJ], 63134456fccdSmrg[AC_CHECK_TOOL(GCJ, gcj, no) 63144456fccdSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 63154456fccdSmrg AC_SUBST(GCJFLAGS) 63164456fccdSmrg]) 63174456fccdSmrg 63184456fccdSmrgAC_DEFUN([LT_AC_PROG_RC], 63194456fccdSmrg[AC_CHECK_TOOL(RC, windres, no) 63204456fccdSmrg]) 63214456fccdSmrg 63224456fccdSmrg# NOTE: This macro has been submitted for inclusion into # 63234456fccdSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 63244456fccdSmrg# a released version of Autoconf we should remove this # 63254456fccdSmrg# macro and use it instead. # 63264456fccdSmrg# LT_AC_PROG_SED 63274456fccdSmrg# -------------- 63284456fccdSmrg# Check for a fully-functional sed program, that truncates 63294456fccdSmrg# as few characters as possible. Prefer GNU sed if found. 63304456fccdSmrgAC_DEFUN([LT_AC_PROG_SED], 63314456fccdSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 63324456fccdSmrgAC_CACHE_VAL(lt_cv_path_SED, 63334456fccdSmrg[# Loop through the user's path and test for sed and gsed. 63344456fccdSmrg# Then use that list of sed's as ones to test for truncation. 63354456fccdSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 63364456fccdSmrgfor as_dir in $PATH 63374456fccdSmrgdo 63384456fccdSmrg IFS=$as_save_IFS 63394456fccdSmrg test -z "$as_dir" && as_dir=. 63404456fccdSmrg for lt_ac_prog in sed gsed; do 63414456fccdSmrg for ac_exec_ext in '' $ac_executable_extensions; do 63424456fccdSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 63434456fccdSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 63444456fccdSmrg fi 63454456fccdSmrg done 63464456fccdSmrg done 63474456fccdSmrgdone 63484456fccdSmrglt_ac_max=0 63494456fccdSmrglt_ac_count=0 63504456fccdSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 63514456fccdSmrg# along with /bin/sed that truncates output. 63524456fccdSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 63534456fccdSmrg test ! -f $lt_ac_sed && continue 63544456fccdSmrg cat /dev/null > conftest.in 63554456fccdSmrg lt_ac_count=0 63564456fccdSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 63574456fccdSmrg # Check for GNU sed and select it if it is found. 63584456fccdSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 63594456fccdSmrg lt_cv_path_SED=$lt_ac_sed 63604456fccdSmrg break 63614456fccdSmrg fi 63624456fccdSmrg while true; do 63634456fccdSmrg cat conftest.in conftest.in >conftest.tmp 63644456fccdSmrg mv conftest.tmp conftest.in 63654456fccdSmrg cp conftest.in conftest.nl 63664456fccdSmrg echo >>conftest.nl 63674456fccdSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 63684456fccdSmrg cmp -s conftest.out conftest.nl || break 63694456fccdSmrg # 10000 chars as input seems more than enough 63704456fccdSmrg test $lt_ac_count -gt 10 && break 63714456fccdSmrg lt_ac_count=`expr $lt_ac_count + 1` 63724456fccdSmrg if test $lt_ac_count -gt $lt_ac_max; then 63734456fccdSmrg lt_ac_max=$lt_ac_count 63744456fccdSmrg lt_cv_path_SED=$lt_ac_sed 63754456fccdSmrg fi 63764456fccdSmrg done 63774456fccdSmrgdone 63784456fccdSmrg]) 63794456fccdSmrgSED=$lt_cv_path_SED 63804456fccdSmrgAC_MSG_RESULT([$SED]) 63814456fccdSmrg]) 63824456fccdSmrg 63834456fccdSmrg# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 63844456fccdSmrg# 63854456fccdSmrg# Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 63864456fccdSmrg# 63874456fccdSmrg# This program is free software; you can redistribute it and/or modify 63884456fccdSmrg# it under the terms of the GNU General Public License as published by 63894456fccdSmrg# the Free Software Foundation; either version 2 of the License, or 63904456fccdSmrg# (at your option) any later version. 63914456fccdSmrg# 63924456fccdSmrg# This program is distributed in the hope that it will be useful, but 63934456fccdSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 63944456fccdSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 63954456fccdSmrg# General Public License for more details. 63964456fccdSmrg# 63974456fccdSmrg# You should have received a copy of the GNU General Public License 63984456fccdSmrg# along with this program; if not, write to the Free Software 63994456fccdSmrg# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 64004456fccdSmrg# 64014456fccdSmrg# As a special exception to the GNU General Public License, if you 64024456fccdSmrg# distribute this file as part of a program that contains a 64034456fccdSmrg# configuration script generated by Autoconf, you may include it under 64044456fccdSmrg# the same distribution terms that you use for the rest of that program. 64054456fccdSmrg 64064456fccdSmrg# PKG_PROG_PKG_CONFIG([MIN-VERSION]) 64074456fccdSmrg# ---------------------------------- 64084456fccdSmrgAC_DEFUN([PKG_PROG_PKG_CONFIG], 64094456fccdSmrg[m4_pattern_forbid([^_?PKG_[A-Z_]+$]) 64104456fccdSmrgm4_pattern_allow([^PKG_CONFIG(_PATH)?$]) 64114456fccdSmrgAC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl 64124456fccdSmrgif test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 64134456fccdSmrg AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) 64144456fccdSmrgfi 64154456fccdSmrgif test -n "$PKG_CONFIG"; then 64164456fccdSmrg _pkg_min_version=m4_default([$1], [0.9.0]) 64174456fccdSmrg AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) 64184456fccdSmrg if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 64194456fccdSmrg AC_MSG_RESULT([yes]) 64204456fccdSmrg else 64214456fccdSmrg AC_MSG_RESULT([no]) 64224456fccdSmrg PKG_CONFIG="" 64234456fccdSmrg fi 64244456fccdSmrg 64254456fccdSmrgfi[]dnl 64264456fccdSmrg])# PKG_PROG_PKG_CONFIG 64274456fccdSmrg 64284456fccdSmrg# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 64294456fccdSmrg# 64304456fccdSmrg# Check to see whether a particular set of modules exists. Similar 64314456fccdSmrg# to PKG_CHECK_MODULES(), but does not set variables or print errors. 64324456fccdSmrg# 64334456fccdSmrg# 64344456fccdSmrg# Similar to PKG_CHECK_MODULES, make sure that the first instance of 64354456fccdSmrg# this or PKG_CHECK_MODULES is called, or make sure to call 64364456fccdSmrg# PKG_CHECK_EXISTS manually 64374456fccdSmrg# -------------------------------------------------------------- 64384456fccdSmrgAC_DEFUN([PKG_CHECK_EXISTS], 64394456fccdSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 64404456fccdSmrgif test -n "$PKG_CONFIG" && \ 64414456fccdSmrg AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then 64424456fccdSmrg m4_ifval([$2], [$2], [:]) 64434456fccdSmrgm4_ifvaln([$3], [else 64444456fccdSmrg $3])dnl 64454456fccdSmrgfi]) 64464456fccdSmrg 64474456fccdSmrg 64484456fccdSmrg# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 64494456fccdSmrg# --------------------------------------------- 64504456fccdSmrgm4_define([_PKG_CONFIG], 64514456fccdSmrg[if test -n "$PKG_CONFIG"; then 64524456fccdSmrg if test -n "$$1"; then 64534456fccdSmrg pkg_cv_[]$1="$$1" 64544456fccdSmrg else 64554456fccdSmrg PKG_CHECK_EXISTS([$3], 64564456fccdSmrg [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], 64574456fccdSmrg [pkg_failed=yes]) 64584456fccdSmrg fi 64594456fccdSmrgelse 64604456fccdSmrg pkg_failed=untried 64614456fccdSmrgfi[]dnl 64624456fccdSmrg])# _PKG_CONFIG 64634456fccdSmrg 64644456fccdSmrg# _PKG_SHORT_ERRORS_SUPPORTED 64654456fccdSmrg# ----------------------------- 64664456fccdSmrgAC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], 64674456fccdSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG]) 64684456fccdSmrgif $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 64694456fccdSmrg _pkg_short_errors_supported=yes 64704456fccdSmrgelse 64714456fccdSmrg _pkg_short_errors_supported=no 64724456fccdSmrgfi[]dnl 64734456fccdSmrg])# _PKG_SHORT_ERRORS_SUPPORTED 64744456fccdSmrg 64754456fccdSmrg 64764456fccdSmrg# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 64774456fccdSmrg# [ACTION-IF-NOT-FOUND]) 64784456fccdSmrg# 64794456fccdSmrg# 64804456fccdSmrg# Note that if there is a possibility the first call to 64814456fccdSmrg# PKG_CHECK_MODULES might not happen, you should be sure to include an 64824456fccdSmrg# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 64834456fccdSmrg# 64844456fccdSmrg# 64854456fccdSmrg# -------------------------------------------------------------- 64864456fccdSmrgAC_DEFUN([PKG_CHECK_MODULES], 64874456fccdSmrg[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl 64884456fccdSmrgAC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl 64894456fccdSmrgAC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl 64904456fccdSmrg 64914456fccdSmrgpkg_failed=no 64924456fccdSmrgAC_MSG_CHECKING([for $1]) 64934456fccdSmrg 64944456fccdSmrg_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) 64954456fccdSmrg_PKG_CONFIG([$1][_LIBS], [libs], [$2]) 64964456fccdSmrg 64974456fccdSmrgm4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS 64984456fccdSmrgand $1[]_LIBS to avoid the need to call pkg-config. 64994456fccdSmrgSee the pkg-config man page for more details.]) 65004456fccdSmrg 65014456fccdSmrgif test $pkg_failed = yes; then 65024456fccdSmrg _PKG_SHORT_ERRORS_SUPPORTED 65034456fccdSmrg if test $_pkg_short_errors_supported = yes; then 65044456fccdSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"` 65054456fccdSmrg else 65064456fccdSmrg $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"` 65074456fccdSmrg fi 65084456fccdSmrg # Put the nasty error message in config.log where it belongs 65094456fccdSmrg echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD 65104456fccdSmrg 65114456fccdSmrg ifelse([$4], , [AC_MSG_ERROR(dnl 65124456fccdSmrg[Package requirements ($2) were not met: 65134456fccdSmrg 65144456fccdSmrg$$1_PKG_ERRORS 65154456fccdSmrg 65164456fccdSmrgConsider adjusting the PKG_CONFIG_PATH environment variable if you 65174456fccdSmrginstalled software in a non-standard prefix. 65184456fccdSmrg 65194456fccdSmrg_PKG_TEXT 65204456fccdSmrg])], 65214456fccdSmrg [$4]) 65224456fccdSmrgelif test $pkg_failed = untried; then 65234456fccdSmrg ifelse([$4], , [AC_MSG_FAILURE(dnl 65244456fccdSmrg[The pkg-config script could not be found or is too old. Make sure it 65254456fccdSmrgis in your PATH or set the PKG_CONFIG environment variable to the full 65264456fccdSmrgpath to pkg-config. 65274456fccdSmrg 65284456fccdSmrg_PKG_TEXT 65294456fccdSmrg 65304456fccdSmrgTo get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])], 65314456fccdSmrg [$4]) 65324456fccdSmrgelse 65334456fccdSmrg $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS 65344456fccdSmrg $1[]_LIBS=$pkg_cv_[]$1[]_LIBS 65354456fccdSmrg AC_MSG_RESULT([yes]) 65364456fccdSmrg ifelse([$3], , :, [$3]) 65374456fccdSmrgfi[]dnl 65384456fccdSmrg])# PKG_CHECK_MODULES 65394456fccdSmrg 65404456fccdSmrgdnl $Id: aclocal.m4,v 1.1.1.1 2008/07/30 02:48:19 mrg Exp $ 65414456fccdSmrgdnl 65424456fccdSmrgdnl Copyright 2005 Sun Microsystems, Inc. All rights reserved. 65434456fccdSmrgdnl 65444456fccdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 65454456fccdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 65464456fccdSmrgdnl the above copyright notice appear in all copies and that both that 65474456fccdSmrgdnl copyright notice and this permission notice appear in supporting 65484456fccdSmrgdnl documentation. 65494456fccdSmrgdnl 65504456fccdSmrgdnl The above copyright notice and this permission notice shall be included 65514456fccdSmrgdnl in all copies or substantial portions of the Software. 65524456fccdSmrgdnl 65534456fccdSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 65544456fccdSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 65554456fccdSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 65564456fccdSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 65574456fccdSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 65584456fccdSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 65594456fccdSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 65604456fccdSmrgdnl 65614456fccdSmrgdnl Except as contained in this notice, the name of the copyright holders shall 65624456fccdSmrgdnl not be used in advertising or otherwise to promote the sale, use or 65634456fccdSmrgdnl other dealings in this Software without prior written authorization 65644456fccdSmrgdnl from the copyright holders. 65654456fccdSmrgdnl 65664456fccdSmrg 65674456fccdSmrg# XORG_PROG_RAWCPP() 65684456fccdSmrg# ------------------ 65694456fccdSmrg# Find cpp program and necessary flags for use in pre-processing text files 65704456fccdSmrg# such as man pages and config files 65714456fccdSmrgAC_DEFUN([XORG_PROG_RAWCPP],[ 65724456fccdSmrgAC_REQUIRE([AC_PROG_CPP]) 65734456fccdSmrgAC_PATH_PROGS(RAWCPP, [cpp], [${CPP}], 65744456fccdSmrg [$PATH:/bin:/usr/bin:/usr/lib:/usr/libexec:/usr/ccs/lib:/usr/ccs/lbin:/lib]) 65754456fccdSmrg 65764456fccdSmrg# Check for flag to avoid builtin definitions - assumes unix is predefined, 65774456fccdSmrg# which is not the best choice for supporting other OS'es, but covers most 65784456fccdSmrg# of the ones we need for now. 65794456fccdSmrgAC_MSG_CHECKING([if $RAWCPP requires -undef]) 65804456fccdSmrgAC_LANG_CONFTEST([Does cpp redefine unix ?]) 65814456fccdSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 65824456fccdSmrg AC_MSG_RESULT([no]) 65834456fccdSmrgelse 65844456fccdSmrg if test `${RAWCPP} -undef < conftest.$ac_ext | grep -c 'unix'` -eq 1 ; then 65854456fccdSmrg RAWCPPFLAGS=-undef 65864456fccdSmrg AC_MSG_RESULT([yes]) 65874456fccdSmrg else 65884456fccdSmrg AC_MSG_ERROR([${RAWCPP} defines unix with or without -undef. I don't know what to do.]) 65894456fccdSmrg fi 65904456fccdSmrgfi 65914456fccdSmrgrm -f conftest.$ac_ext 65924456fccdSmrg 65934456fccdSmrgAC_MSG_CHECKING([if $RAWCPP requires -traditional]) 65944456fccdSmrgAC_LANG_CONFTEST([Does cpp preserve "whitespace"?]) 65954456fccdSmrgif test `${RAWCPP} < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 65964456fccdSmrg AC_MSG_RESULT([no]) 65974456fccdSmrgelse 65984456fccdSmrg if test `${RAWCPP} -traditional < conftest.$ac_ext | grep -c 'preserve \"'` -eq 1 ; then 65994456fccdSmrg RAWCPPFLAGS="${RAWCPPFLAGS} -traditional" 66004456fccdSmrg AC_MSG_RESULT([yes]) 66014456fccdSmrg else 66024456fccdSmrg AC_MSG_ERROR([${RAWCPP} does not preserve whitespace with or without -traditional. I don't know what to do.]) 66034456fccdSmrg fi 66044456fccdSmrgfi 66054456fccdSmrgrm -f conftest.$ac_ext 66064456fccdSmrgAC_SUBST(RAWCPPFLAGS) 66074456fccdSmrg]) # XORG_PROG_RAWCPP 66084456fccdSmrg 66094456fccdSmrg# XORG_MANPAGE_SECTIONS() 66104456fccdSmrg# ----------------------- 66114456fccdSmrg# Determine which sections man pages go in for the different man page types 66124456fccdSmrg# on this OS - replaces *ManSuffix settings in old Imake *.cf per-os files. 66134456fccdSmrg# Not sure if there's any better way than just hardcoding by OS name. 66144456fccdSmrg# Override default settings by setting environment variables 66154456fccdSmrg 66164456fccdSmrgAC_DEFUN([XORG_MANPAGE_SECTIONS],[ 66174456fccdSmrgAC_REQUIRE([AC_CANONICAL_HOST]) 66184456fccdSmrg 66194456fccdSmrgif test x$APP_MAN_SUFFIX = x ; then 66204456fccdSmrg case $host_os in 66214456fccdSmrg linux*) APP_MAN_SUFFIX=1x ;; 66224456fccdSmrg *) APP_MAN_SUFFIX=1 ;; 66234456fccdSmrg esac 66244456fccdSmrgfi 66254456fccdSmrgif test x$APP_MAN_DIR = x ; then 66264456fccdSmrg case $host_os in 66274456fccdSmrg linux*) APP_MAN_DIR='$(mandir)/man1' ;; 66284456fccdSmrg *) APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' ;; 66294456fccdSmrg esac 66304456fccdSmrgfi 66314456fccdSmrg 66324456fccdSmrgif test x$LIB_MAN_SUFFIX = x ; then 66334456fccdSmrg case $host_os in 66344456fccdSmrg linux*) LIB_MAN_SUFFIX=3x ;; 66354456fccdSmrg *) LIB_MAN_SUFFIX=3 ;; 66364456fccdSmrg esac 66374456fccdSmrgfi 66384456fccdSmrgif test x$LIB_MAN_DIR = x ; then 66394456fccdSmrg case $host_os in 66404456fccdSmrg linux*) LIB_MAN_DIR='$(mandir)/man3' ;; 66414456fccdSmrg *) LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' ;; 66424456fccdSmrg esac 66434456fccdSmrgfi 66444456fccdSmrg 66454456fccdSmrgif test x$FILE_MAN_SUFFIX = x ; then 66464456fccdSmrg case $host_os in 66474456fccdSmrg linux*) FILE_MAN_SUFFIX=5x ;; 66484456fccdSmrg solaris*) FILE_MAN_SUFFIX=4 ;; 66494456fccdSmrg *) FILE_MAN_SUFFIX=5 ;; 66504456fccdSmrg esac 66514456fccdSmrgfi 66524456fccdSmrgif test x$FILE_MAN_DIR = x ; then 66534456fccdSmrg case $host_os in 66544456fccdSmrg linux*) FILE_MAN_DIR='$(mandir)/man5' ;; 66554456fccdSmrg *) FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' ;; 66564456fccdSmrg esac 66574456fccdSmrgfi 66584456fccdSmrg 66594456fccdSmrg# In Imake's linux.cf, the misc man suffix & dir was only changed for 66604456fccdSmrg# LinuxDebian, not other Linuxes, so we leave it unchanged here 66614456fccdSmrgif test x$MISC_MAN_SUFFIX = x ; then 66624456fccdSmrg case $host_os in 66634456fccdSmrg# linux*) MISC_MAN_SUFFIX=7x ;; 66644456fccdSmrg solaris*) MISC_MAN_SUFFIX=5 ;; 66654456fccdSmrg *) MISC_MAN_SUFFIX=7 ;; 66664456fccdSmrg esac 66674456fccdSmrgfi 66684456fccdSmrgif test x$MISC_MAN_DIR = x ; then 66694456fccdSmrg case $host_os in 66704456fccdSmrg# linux*) MISC_MAN_DIR='$(mandir)/man7' ;; 66714456fccdSmrg *) MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' ;; 66724456fccdSmrg esac 66734456fccdSmrgfi 66744456fccdSmrg 66754456fccdSmrg# In Imake's linux.cf, the driver man suffix & dir was only changed for 66764456fccdSmrg# LinuxDebian, not other Linuxes, so we leave it unchanged here 66774456fccdSmrgif test x$DRIVER_MAN_SUFFIX = x ; then 66784456fccdSmrg case $host_os in 66794456fccdSmrg# linux*) DRIVER_MAN_SUFFIX=4x ;; 66804456fccdSmrg solaris*) DRIVER_MAN_SUFFIX=7 ;; 66814456fccdSmrg *) DRIVER_MAN_SUFFIX=4 ;; 66824456fccdSmrg esac 66834456fccdSmrgfi 66844456fccdSmrgif test x$DRIVER_MAN_DIR = x ; then 66854456fccdSmrg case $host_os in 66864456fccdSmrg# linux*) DRIVER_MAN_DIR='$(mandir)/man4' ;; 66874456fccdSmrg *) DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' ;; 66884456fccdSmrg esac 66894456fccdSmrgfi 66904456fccdSmrg 66914456fccdSmrgif test x$ADMIN_MAN_SUFFIX = x ; then 66924456fccdSmrg case $host_os in 66934456fccdSmrg solaris*) ADMIN_MAN_SUFFIX=1m ;; 66944456fccdSmrg *) ADMIN_MAN_SUFFIX=8 ;; 66954456fccdSmrg esac 66964456fccdSmrgfi 66974456fccdSmrgif test x$ADMIN_MAN_DIR = x ; then 66984456fccdSmrg ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 66994456fccdSmrgfi 67004456fccdSmrg 67014456fccdSmrg 67024456fccdSmrgAC_SUBST([APP_MAN_SUFFIX]) 67034456fccdSmrgAC_SUBST([LIB_MAN_SUFFIX]) 67044456fccdSmrgAC_SUBST([FILE_MAN_SUFFIX]) 67054456fccdSmrgAC_SUBST([MISC_MAN_SUFFIX]) 67064456fccdSmrgAC_SUBST([DRIVER_MAN_SUFFIX]) 67074456fccdSmrgAC_SUBST([ADMIN_MAN_SUFFIX]) 67084456fccdSmrgAC_SUBST([APP_MAN_DIR]) 67094456fccdSmrgAC_SUBST([LIB_MAN_DIR]) 67104456fccdSmrgAC_SUBST([FILE_MAN_DIR]) 67114456fccdSmrgAC_SUBST([MISC_MAN_DIR]) 67124456fccdSmrgAC_SUBST([DRIVER_MAN_DIR]) 67134456fccdSmrgAC_SUBST([ADMIN_MAN_DIR]) 67144456fccdSmrg]) # XORG_MANPAGE_SECTIONS 67154456fccdSmrg 67164456fccdSmrg# XORG_CHECK_LINUXDOC 67174456fccdSmrg# ------------------- 67184456fccdSmrg# Defines the variable MAKE_TEXT if the necessary tools and 67194456fccdSmrg# files are found. $(MAKE_TEXT) blah.sgml will then produce blah.txt. 67204456fccdSmrg# Whether or not the necessary tools and files are found can be checked 67214456fccdSmrg# with the AM_CONDITIONAL "BUILD_LINUXDOC" 67224456fccdSmrgAC_DEFUN([XORG_CHECK_LINUXDOC],[ 67234456fccdSmrgAC_CHECK_FILE( 67244456fccdSmrg [$prefix/share/X11/sgml/defs.ent], 67254456fccdSmrg [DEFS_ENT_PATH=$prefix/share/X11/sgml], 67264456fccdSmrg [DEFS_ENT_PATH=] 67274456fccdSmrg) 67284456fccdSmrg 67294456fccdSmrgAC_PATH_PROG(LINUXDOC, linuxdoc) 67304456fccdSmrgAC_PATH_PROG(PS2PDF, ps2pdf) 67314456fccdSmrg 67324456fccdSmrgAC_MSG_CHECKING([Whether to build documentation]) 67334456fccdSmrg 67344456fccdSmrgif test x$DEFS_ENT_PATH != x && test x$LINUXDOC != x ; then 67354456fccdSmrg BUILDDOC=yes 67364456fccdSmrgelse 67374456fccdSmrg BUILDDOC=no 67384456fccdSmrgfi 67394456fccdSmrg 67404456fccdSmrgAM_CONDITIONAL(BUILD_LINUXDOC, [test x$BUILDDOC = xyes]) 67414456fccdSmrg 67424456fccdSmrgAC_MSG_RESULT([$BUILDDOC]) 67434456fccdSmrg 67444456fccdSmrgAC_MSG_CHECKING([Whether to build pdf documentation]) 67454456fccdSmrg 67464456fccdSmrgif test x$PS2PDF != x ; then 67474456fccdSmrg BUILDPDFDOC=yes 67484456fccdSmrgelse 67494456fccdSmrg BUILDPDFDOC=no 67504456fccdSmrgfi 67514456fccdSmrg 67524456fccdSmrgAM_CONDITIONAL(BUILD_PDFDOC, [test x$BUILDPDFDOC = xyes]) 67534456fccdSmrg 67544456fccdSmrgAC_MSG_RESULT([$BUILDPDFDOC]) 67554456fccdSmrg 67564456fccdSmrgMAKE_TEXT="SGML_SEARCH_PATH=$DEFS_ENT_PATH GROFF_NO_SGR=y $LINUXDOC -B txt" 67574456fccdSmrgMAKE_PS="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B latex --papersize=letter --output=ps" 67584456fccdSmrgMAKE_PDF="$PS2PDF" 67594456fccdSmrgMAKE_HTML="SGML_SEARCH_PATH=$DEFS_ENT_PATH $LINUXDOC -B html --split=0" 67604456fccdSmrg 67614456fccdSmrgAC_SUBST(MAKE_TEXT) 67624456fccdSmrgAC_SUBST(MAKE_PS) 67634456fccdSmrgAC_SUBST(MAKE_PDF) 67644456fccdSmrgAC_SUBST(MAKE_HTML) 67654456fccdSmrg]) # XORG_CHECK_LINUXDOC 67664456fccdSmrg 67674456fccdSmrg# XORG_CHECK_MALLOC_ZERO 67684456fccdSmrg# ---------------------- 67694456fccdSmrg# Defines {MALLOC,XMALLOC,XTMALLOC}_ZERO_CFLAGS appropriately if 67704456fccdSmrg# malloc(0) returns NULL. Packages should add one of these cflags to 67714456fccdSmrg# their AM_CFLAGS (or other appropriate *_CFLAGS) to use them. 67724456fccdSmrgAC_DEFUN([XORG_CHECK_MALLOC_ZERO],[ 67734456fccdSmrgAC_ARG_ENABLE(malloc0returnsnull, 67744456fccdSmrg AC_HELP_STRING([--enable-malloc0returnsnull], 67754456fccdSmrg [malloc(0) returns NULL (default: auto)]), 67764456fccdSmrg [MALLOC_ZERO_RETURNS_NULL=$enableval], 67774456fccdSmrg [MALLOC_ZERO_RETURNS_NULL=auto]) 67784456fccdSmrg 67794456fccdSmrgAC_MSG_CHECKING([whether malloc(0) returns NULL]) 67804456fccdSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 67814456fccdSmrg AC_RUN_IFELSE([ 67824456fccdSmrgchar *malloc(); 67834456fccdSmrgchar *realloc(); 67844456fccdSmrgchar *calloc(); 67854456fccdSmrgmain() { 67864456fccdSmrg char *m0, *r0, *c0, *p; 67874456fccdSmrg m0 = malloc(0); 67884456fccdSmrg p = malloc(10); 67894456fccdSmrg r0 = realloc(p,0); 67904456fccdSmrg c0 = calloc(0); 67914456fccdSmrg exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 67924456fccdSmrg}], 67934456fccdSmrg [MALLOC_ZERO_RETURNS_NULL=yes], 67944456fccdSmrg [MALLOC_ZERO_RETURNS_NULL=no]) 67954456fccdSmrgfi 67964456fccdSmrgAC_MSG_RESULT([$MALLOC_ZERO_RETURNS_NULL]) 67974456fccdSmrg 67984456fccdSmrgif test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 67994456fccdSmrg MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 68004456fccdSmrg XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 68014456fccdSmrg XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 68024456fccdSmrgelse 68034456fccdSmrg MALLOC_ZERO_CFLAGS="" 68044456fccdSmrg XMALLOC_ZERO_CFLAGS="" 68054456fccdSmrg XTMALLOC_ZERO_CFLAGS="" 68064456fccdSmrgfi 68074456fccdSmrg 68084456fccdSmrgAC_SUBST([MALLOC_ZERO_CFLAGS]) 68094456fccdSmrgAC_SUBST([XMALLOC_ZERO_CFLAGS]) 68104456fccdSmrgAC_SUBST([XTMALLOC_ZERO_CFLAGS]) 68114456fccdSmrg]) # XORG_CHECK_MALLOC_ZERO 68124456fccdSmrg 68134456fccdSmrgdnl Copyright 2005 Red Hat, Inc 68144456fccdSmrgdnl 68154456fccdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 68164456fccdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 68174456fccdSmrgdnl the above copyright notice appear in all copies and that both that 68184456fccdSmrgdnl copyright notice and this permission notice appear in supporting 68194456fccdSmrgdnl documentation. 68204456fccdSmrgdnl 68214456fccdSmrgdnl The above copyright notice and this permission notice shall be included 68224456fccdSmrgdnl in all copies or substantial portions of the Software. 68234456fccdSmrgdnl 68244456fccdSmrgdnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 68254456fccdSmrgdnl OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 68264456fccdSmrgdnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 68274456fccdSmrgdnl IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR 68284456fccdSmrgdnl OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 68294456fccdSmrgdnl ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 68304456fccdSmrgdnl OTHER DEALINGS IN THE SOFTWARE. 68314456fccdSmrgdnl 68324456fccdSmrgdnl Except as contained in this notice, the name of the copyright holders shall 68334456fccdSmrgdnl not be used in advertising or otherwise to promote the sale, use or 68344456fccdSmrgdnl other dealings in this Software without prior written authorization 68354456fccdSmrgdnl from the copyright holders. 68364456fccdSmrgdnl 68374456fccdSmrg 68384456fccdSmrg# XORG_RELEASE_VERSION 68394456fccdSmrg# -------------------- 68404456fccdSmrg# Adds --with/without-release-string and changes the PACKAGE and 68414456fccdSmrg# PACKAGE_TARNAME to use "$PACKAGE{_TARNAME}-$RELEASE_VERSION". If 68424456fccdSmrg# no option is given, PACKAGE and PACKAGE_TARNAME are unchanged. 68434456fccdSmrg 68444456fccdSmrgAC_DEFUN([XORG_RELEASE_VERSION],[ 68454456fccdSmrg AC_ARG_WITH(release-version, 68464456fccdSmrg AC_HELP_STRING([--with-release-version=STRING], 68474456fccdSmrg [Use release version string in package name]), 68484456fccdSmrg [RELEASE_VERSION="$withval"], 68494456fccdSmrg [RELEASE_VERSION=""]) 68504456fccdSmrg if test "x$RELEASE_VERSION" != "x"; then 68514456fccdSmrg PACKAGE="$PACKAGE-$RELEASE_VERSION" 68524456fccdSmrg PACKAGE_TARNAME="$PACKAGE_TARNAME-$RELEASE_VERSION" 68534456fccdSmrg AC_MSG_NOTICE([Building with package name set to $PACKAGE]) 68544456fccdSmrg fi 68554456fccdSmrg]) 68564456fccdSmrg 68574456fccdSmrg# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 68584456fccdSmrg# 68594456fccdSmrg# This file is free software; the Free Software Foundation 68604456fccdSmrg# gives unlimited permission to copy and/or distribute it, 68614456fccdSmrg# with or without modifications, as long as this notice is preserved. 68624456fccdSmrg 68634456fccdSmrg# AM_AUTOMAKE_VERSION(VERSION) 68644456fccdSmrg# ---------------------------- 68654456fccdSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 68664456fccdSmrg# generated from the m4 files accompanying Automake X.Y. 68674456fccdSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 68684456fccdSmrg 68694456fccdSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 68704456fccdSmrg# ------------------------------- 68714456fccdSmrg# Call AM_AUTOMAKE_VERSION so it can be traced. 68724456fccdSmrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 68734456fccdSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 68744456fccdSmrg [AM_AUTOMAKE_VERSION([1.9.6])]) 68754456fccdSmrg 68764456fccdSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 68774456fccdSmrg 68784456fccdSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 68794456fccdSmrg# 68804456fccdSmrg# This file is free software; the Free Software Foundation 68814456fccdSmrg# gives unlimited permission to copy and/or distribute it, 68824456fccdSmrg# with or without modifications, as long as this notice is preserved. 68834456fccdSmrg 68844456fccdSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 68854456fccdSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 68864456fccdSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 68874456fccdSmrg# 68884456fccdSmrg# Of course, Automake must honor this variable whenever it calls a 68894456fccdSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 68904456fccdSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 68914456fccdSmrg# depending on how configure is run. This is pretty annoying, since 68924456fccdSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 68934456fccdSmrg# source directory, any form will work fine, but in subdirectories a 68944456fccdSmrg# relative path needs to be adjusted first. 68954456fccdSmrg# 68964456fccdSmrg# $ac_aux_dir/missing 68974456fccdSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 68984456fccdSmrg# $top_srcdir/$ac_aux_dir/missing 68994456fccdSmrg# fails if $ac_aux_dir is absolute, 69004456fccdSmrg# fails when called from a subdirectory in a VPATH build with 69014456fccdSmrg# a relative $ac_aux_dir 69024456fccdSmrg# 69034456fccdSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 69044456fccdSmrg# are both prefixed by $srcdir. In an in-source build this is usually 69054456fccdSmrg# harmless because $srcdir is `.', but things will broke when you 69064456fccdSmrg# start a VPATH build or use an absolute $srcdir. 69074456fccdSmrg# 69084456fccdSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 69094456fccdSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 69104456fccdSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 69114456fccdSmrg# and then we would define $MISSING as 69124456fccdSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 69134456fccdSmrg# This will work as long as MISSING is not called from configure, because 69144456fccdSmrg# unfortunately $(top_srcdir) has no meaning in configure. 69154456fccdSmrg# However there are other variables, like CC, which are often used in 69164456fccdSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 69174456fccdSmrg# 69184456fccdSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 69194456fccdSmrg# absolute PATH. The drawback is that using absolute paths prevent a 69204456fccdSmrg# configured tree to be moved without reconfiguration. 69214456fccdSmrg 69224456fccdSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 69234456fccdSmrg[dnl Rely on autoconf to set up CDPATH properly. 69244456fccdSmrgAC_PREREQ([2.50])dnl 69254456fccdSmrg# expand $ac_aux_dir to an absolute path 69264456fccdSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 69274456fccdSmrg]) 69284456fccdSmrg 69294456fccdSmrg# AM_CONDITIONAL -*- Autoconf -*- 69304456fccdSmrg 69314456fccdSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 69324456fccdSmrg# Free Software Foundation, Inc. 69334456fccdSmrg# 69344456fccdSmrg# This file is free software; the Free Software Foundation 69354456fccdSmrg# gives unlimited permission to copy and/or distribute it, 69364456fccdSmrg# with or without modifications, as long as this notice is preserved. 69374456fccdSmrg 69384456fccdSmrg# serial 7 69394456fccdSmrg 69404456fccdSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 69414456fccdSmrg# ------------------------------------- 69424456fccdSmrg# Define a conditional. 69434456fccdSmrgAC_DEFUN([AM_CONDITIONAL], 69444456fccdSmrg[AC_PREREQ(2.52)dnl 69454456fccdSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 69464456fccdSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 69474456fccdSmrgAC_SUBST([$1_TRUE]) 69484456fccdSmrgAC_SUBST([$1_FALSE]) 69494456fccdSmrgif $2; then 69504456fccdSmrg $1_TRUE= 69514456fccdSmrg $1_FALSE='#' 69524456fccdSmrgelse 69534456fccdSmrg $1_TRUE='#' 69544456fccdSmrg $1_FALSE= 69554456fccdSmrgfi 69564456fccdSmrgAC_CONFIG_COMMANDS_PRE( 69574456fccdSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 69584456fccdSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 69594456fccdSmrgUsually this means the macro was only invoked conditionally.]]) 69604456fccdSmrgfi])]) 69614456fccdSmrg 69624456fccdSmrg 69634456fccdSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 69644456fccdSmrg# Free Software Foundation, Inc. 69654456fccdSmrg# 69664456fccdSmrg# This file is free software; the Free Software Foundation 69674456fccdSmrg# gives unlimited permission to copy and/or distribute it, 69684456fccdSmrg# with or without modifications, as long as this notice is preserved. 69694456fccdSmrg 69704456fccdSmrg# serial 8 69714456fccdSmrg 69724456fccdSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 69734456fccdSmrg# written in clear, in which case automake, when reading aclocal.m4, 69744456fccdSmrg# will think it sees a *use*, and therefore will trigger all it's 69754456fccdSmrg# C support machinery. Also note that it means that autoscan, seeing 69764456fccdSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 69774456fccdSmrg 69784456fccdSmrg 69794456fccdSmrg# _AM_DEPENDENCIES(NAME) 69804456fccdSmrg# ---------------------- 69814456fccdSmrg# See how the compiler implements dependency checking. 69824456fccdSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 69834456fccdSmrg# We try a few techniques and use that to set a single cache variable. 69844456fccdSmrg# 69854456fccdSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 69864456fccdSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 69874456fccdSmrg# dependency, and given that the user is not expected to run this macro, 69884456fccdSmrg# just rely on AC_PROG_CC. 69894456fccdSmrgAC_DEFUN([_AM_DEPENDENCIES], 69904456fccdSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 69914456fccdSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 69924456fccdSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 69934456fccdSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 69944456fccdSmrg 69954456fccdSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 69964456fccdSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 69974456fccdSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 69984456fccdSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 69994456fccdSmrg [depcc="$$1" am_compiler_list=]) 70004456fccdSmrg 70014456fccdSmrgAC_CACHE_CHECK([dependency style of $depcc], 70024456fccdSmrg [am_cv_$1_dependencies_compiler_type], 70034456fccdSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 70044456fccdSmrg # We make a subdir and do the tests there. Otherwise we can end up 70054456fccdSmrg # making bogus files that we don't know about and never remove. For 70064456fccdSmrg # instance it was reported that on HP-UX the gcc test will end up 70074456fccdSmrg # making a dummy file named `D' -- because `-MD' means `put the output 70084456fccdSmrg # in D'. 70094456fccdSmrg mkdir conftest.dir 70104456fccdSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 70114456fccdSmrg # using a relative directory. 70124456fccdSmrg cp "$am_depcomp" conftest.dir 70134456fccdSmrg cd conftest.dir 70144456fccdSmrg # We will build objects and dependencies in a subdirectory because 70154456fccdSmrg # it helps to detect inapplicable dependency modes. For instance 70164456fccdSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 70174456fccdSmrg # side effect of compilation, but ICC will put the dependencies in 70184456fccdSmrg # the current directory while Tru64 will put them in the object 70194456fccdSmrg # directory. 70204456fccdSmrg mkdir sub 70214456fccdSmrg 70224456fccdSmrg am_cv_$1_dependencies_compiler_type=none 70234456fccdSmrg if test "$am_compiler_list" = ""; then 70244456fccdSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 70254456fccdSmrg fi 70264456fccdSmrg for depmode in $am_compiler_list; do 70274456fccdSmrg # Setup a source with many dependencies, because some compilers 70284456fccdSmrg # like to wrap large dependency lists on column 80 (with \), and 70294456fccdSmrg # we should not choose a depcomp mode which is confused by this. 70304456fccdSmrg # 70314456fccdSmrg # We need to recreate these files for each test, as the compiler may 70324456fccdSmrg # overwrite some of them when testing with obscure command lines. 70334456fccdSmrg # This happens at least with the AIX C compiler. 70344456fccdSmrg : > sub/conftest.c 70354456fccdSmrg for i in 1 2 3 4 5 6; do 70364456fccdSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 70374456fccdSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 70384456fccdSmrg # Solaris 8's {/usr,}/bin/sh. 70394456fccdSmrg touch sub/conftst$i.h 70404456fccdSmrg done 70414456fccdSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 70424456fccdSmrg 70434456fccdSmrg case $depmode in 70444456fccdSmrg nosideeffect) 70454456fccdSmrg # after this tag, mechanisms are not by side-effect, so they'll 70464456fccdSmrg # only be used when explicitly requested 70474456fccdSmrg if test "x$enable_dependency_tracking" = xyes; then 70484456fccdSmrg continue 70494456fccdSmrg else 70504456fccdSmrg break 70514456fccdSmrg fi 70524456fccdSmrg ;; 70534456fccdSmrg none) break ;; 70544456fccdSmrg esac 70554456fccdSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 70564456fccdSmrg # mode. It turns out that the SunPro C++ compiler does not properly 70574456fccdSmrg # handle `-M -o', and we need to detect this. 70584456fccdSmrg if depmode=$depmode \ 70594456fccdSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 70604456fccdSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 70614456fccdSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 70624456fccdSmrg >/dev/null 2>conftest.err && 70634456fccdSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 70644456fccdSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 70654456fccdSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 70664456fccdSmrg # icc doesn't choke on unknown options, it will just issue warnings 70674456fccdSmrg # or remarks (even with -Werror). So we grep stderr for any message 70684456fccdSmrg # that says an option was ignored or not supported. 70694456fccdSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 70704456fccdSmrg # icc: Command line warning: ignoring option '-M'; no argument required 70714456fccdSmrg # The diagnosis changed in icc 8.0: 70724456fccdSmrg # icc: Command line remark: option '-MP' not supported 70734456fccdSmrg if (grep 'ignoring option' conftest.err || 70744456fccdSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 70754456fccdSmrg am_cv_$1_dependencies_compiler_type=$depmode 70764456fccdSmrg break 70774456fccdSmrg fi 70784456fccdSmrg fi 70794456fccdSmrg done 70804456fccdSmrg 70814456fccdSmrg cd .. 70824456fccdSmrg rm -rf conftest.dir 70834456fccdSmrgelse 70844456fccdSmrg am_cv_$1_dependencies_compiler_type=none 70854456fccdSmrgfi 70864456fccdSmrg]) 70874456fccdSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 70884456fccdSmrgAM_CONDITIONAL([am__fastdep$1], [ 70894456fccdSmrg test "x$enable_dependency_tracking" != xno \ 70904456fccdSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 70914456fccdSmrg]) 70924456fccdSmrg 70934456fccdSmrg 70944456fccdSmrg# AM_SET_DEPDIR 70954456fccdSmrg# ------------- 70964456fccdSmrg# Choose a directory name for dependency files. 70974456fccdSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 70984456fccdSmrgAC_DEFUN([AM_SET_DEPDIR], 70994456fccdSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 71004456fccdSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 71014456fccdSmrg]) 71024456fccdSmrg 71034456fccdSmrg 71044456fccdSmrg# AM_DEP_TRACK 71054456fccdSmrg# ------------ 71064456fccdSmrgAC_DEFUN([AM_DEP_TRACK], 71074456fccdSmrg[AC_ARG_ENABLE(dependency-tracking, 71084456fccdSmrg[ --disable-dependency-tracking speeds up one-time build 71094456fccdSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 71104456fccdSmrgif test "x$enable_dependency_tracking" != xno; then 71114456fccdSmrg am_depcomp="$ac_aux_dir/depcomp" 71124456fccdSmrg AMDEPBACKSLASH='\' 71134456fccdSmrgfi 71144456fccdSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 71154456fccdSmrgAC_SUBST([AMDEPBACKSLASH]) 71164456fccdSmrg]) 71174456fccdSmrg 71184456fccdSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 71194456fccdSmrg 71204456fccdSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 71214456fccdSmrg# Free Software Foundation, Inc. 71224456fccdSmrg# 71234456fccdSmrg# This file is free software; the Free Software Foundation 71244456fccdSmrg# gives unlimited permission to copy and/or distribute it, 71254456fccdSmrg# with or without modifications, as long as this notice is preserved. 71264456fccdSmrg 71274456fccdSmrg#serial 3 71284456fccdSmrg 71294456fccdSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 71304456fccdSmrg# ------------------------------ 71314456fccdSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 71324456fccdSmrg[for mf in $CONFIG_FILES; do 71334456fccdSmrg # Strip MF so we end up with the name of the file. 71344456fccdSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 71354456fccdSmrg # Check whether this is an Automake generated Makefile or not. 71364456fccdSmrg # We used to match only the files named `Makefile.in', but 71374456fccdSmrg # some people rename them; so instead we look at the file content. 71384456fccdSmrg # Grep'ing the first line is not enough: some people post-process 71394456fccdSmrg # each Makefile.in and add a new line on top of each file to say so. 71404456fccdSmrg # So let's grep whole file. 71414456fccdSmrg if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 71424456fccdSmrg dirpart=`AS_DIRNAME("$mf")` 71434456fccdSmrg else 71444456fccdSmrg continue 71454456fccdSmrg fi 71464456fccdSmrg # Extract the definition of DEPDIR, am__include, and am__quote 71474456fccdSmrg # from the Makefile without running `make'. 71484456fccdSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 71494456fccdSmrg test -z "$DEPDIR" && continue 71504456fccdSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 71514456fccdSmrg test -z "am__include" && continue 71524456fccdSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 71534456fccdSmrg # When using ansi2knr, U may be empty or an underscore; expand it 71544456fccdSmrg U=`sed -n 's/^U = //p' < "$mf"` 71554456fccdSmrg # Find all dependency output files, they are included files with 71564456fccdSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 71574456fccdSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 71584456fccdSmrg # expansion. 71594456fccdSmrg for file in `sed -n " 71604456fccdSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 71614456fccdSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 71624456fccdSmrg # Make sure the directory exists. 71634456fccdSmrg test -f "$dirpart/$file" && continue 71644456fccdSmrg fdir=`AS_DIRNAME(["$file"])` 71654456fccdSmrg AS_MKDIR_P([$dirpart/$fdir]) 71664456fccdSmrg # echo "creating $dirpart/$file" 71674456fccdSmrg echo '# dummy' > "$dirpart/$file" 71684456fccdSmrg done 71694456fccdSmrgdone 71704456fccdSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 71714456fccdSmrg 71724456fccdSmrg 71734456fccdSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 71744456fccdSmrg# ----------------------------- 71754456fccdSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 71764456fccdSmrg# 71774456fccdSmrg# This code is only required when automatic dependency tracking 71784456fccdSmrg# is enabled. FIXME. This creates each `.P' file that we will 71794456fccdSmrg# need in order to bootstrap the dependency handling code. 71804456fccdSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 71814456fccdSmrg[AC_CONFIG_COMMANDS([depfiles], 71824456fccdSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 71834456fccdSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 71844456fccdSmrg]) 71854456fccdSmrg 71864456fccdSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 71874456fccdSmrg# Free Software Foundation, Inc. 71884456fccdSmrg# 71894456fccdSmrg# This file is free software; the Free Software Foundation 71904456fccdSmrg# gives unlimited permission to copy and/or distribute it, 71914456fccdSmrg# with or without modifications, as long as this notice is preserved. 71924456fccdSmrg 71934456fccdSmrg# serial 8 71944456fccdSmrg 71954456fccdSmrg# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. 71964456fccdSmrgAU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) 71974456fccdSmrg 71984456fccdSmrg# Do all the work for Automake. -*- Autoconf -*- 71994456fccdSmrg 72004456fccdSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 72014456fccdSmrg# Free Software Foundation, Inc. 72024456fccdSmrg# 72034456fccdSmrg# This file is free software; the Free Software Foundation 72044456fccdSmrg# gives unlimited permission to copy and/or distribute it, 72054456fccdSmrg# with or without modifications, as long as this notice is preserved. 72064456fccdSmrg 72074456fccdSmrg# serial 12 72084456fccdSmrg 72094456fccdSmrg# This macro actually does too much. Some checks are only needed if 72104456fccdSmrg# your package does certain things. But this isn't really a big deal. 72114456fccdSmrg 72124456fccdSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 72134456fccdSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 72144456fccdSmrg# ----------------------------------------------- 72154456fccdSmrg# The call with PACKAGE and VERSION arguments is the old style 72164456fccdSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 72174456fccdSmrg# and VERSION should now be passed to AC_INIT and removed from 72184456fccdSmrg# the call to AM_INIT_AUTOMAKE. 72194456fccdSmrg# We support both call styles for the transition. After 72204456fccdSmrg# the next Automake release, Autoconf can make the AC_INIT 72214456fccdSmrg# arguments mandatory, and then we can depend on a new Autoconf 72224456fccdSmrg# release and drop the old call support. 72234456fccdSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 72244456fccdSmrg[AC_PREREQ([2.58])dnl 72254456fccdSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 72264456fccdSmrgdnl the ones we care about. 72274456fccdSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 72284456fccdSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 72294456fccdSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 72304456fccdSmrg# test to see if srcdir already configured 72314456fccdSmrgif test "`cd $srcdir && pwd`" != "`pwd`" && 72324456fccdSmrg test -f $srcdir/config.status; then 72334456fccdSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 72344456fccdSmrgfi 72354456fccdSmrg 72364456fccdSmrg# test whether we have cygpath 72374456fccdSmrgif test -z "$CYGPATH_W"; then 72384456fccdSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 72394456fccdSmrg CYGPATH_W='cygpath -w' 72404456fccdSmrg else 72414456fccdSmrg CYGPATH_W=echo 72424456fccdSmrg fi 72434456fccdSmrgfi 72444456fccdSmrgAC_SUBST([CYGPATH_W]) 72454456fccdSmrg 72464456fccdSmrg# Define the identity of the package. 72474456fccdSmrgdnl Distinguish between old-style and new-style calls. 72484456fccdSmrgm4_ifval([$2], 72494456fccdSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 72504456fccdSmrg AC_SUBST([PACKAGE], [$1])dnl 72514456fccdSmrg AC_SUBST([VERSION], [$2])], 72524456fccdSmrg[_AM_SET_OPTIONS([$1])dnl 72534456fccdSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 72544456fccdSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 72554456fccdSmrg 72564456fccdSmrg_AM_IF_OPTION([no-define],, 72574456fccdSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 72584456fccdSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 72594456fccdSmrg 72604456fccdSmrg# Some tools Automake needs. 72614456fccdSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 72624456fccdSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 72634456fccdSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 72644456fccdSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 72654456fccdSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 72664456fccdSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 72674456fccdSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 72684456fccdSmrgAM_PROG_INSTALL_SH 72694456fccdSmrgAM_PROG_INSTALL_STRIP 72704456fccdSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 72714456fccdSmrg# We need awk for the "check" target. The system "awk" is bad on 72724456fccdSmrg# some platforms. 72734456fccdSmrgAC_REQUIRE([AC_PROG_AWK])dnl 72744456fccdSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 72754456fccdSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 72764456fccdSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 72774456fccdSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 72784456fccdSmrg [_AM_PROG_TAR([v7])])]) 72794456fccdSmrg_AM_IF_OPTION([no-dependencies],, 72804456fccdSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 72814456fccdSmrg [_AM_DEPENDENCIES(CC)], 72824456fccdSmrg [define([AC_PROG_CC], 72834456fccdSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 72844456fccdSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 72854456fccdSmrg [_AM_DEPENDENCIES(CXX)], 72864456fccdSmrg [define([AC_PROG_CXX], 72874456fccdSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 72884456fccdSmrg]) 72894456fccdSmrgAC_REQUIRE([AM_PRETTY_CMDS]) 72904456fccdSmrg]) 72914456fccdSmrg 72924456fccdSmrg 72934456fccdSmrg# When config.status generates a header, we must update the stamp-h file. 72944456fccdSmrg# This file resides in the same directory as the config header 72954456fccdSmrg# that is generated. The stamp files are numbered to have different names. 72964456fccdSmrg 72974456fccdSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 72984456fccdSmrg# loop where config.status creates the headers, so we can generate 72994456fccdSmrg# our stamp files there. 73004456fccdSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 73014456fccdSmrg[# Compute $1's index in $config_headers. 73024456fccdSmrg_am_stamp_count=1 73034456fccdSmrgfor _am_header in $config_headers :; do 73044456fccdSmrg case $_am_header in 73054456fccdSmrg $1 | $1:* ) 73064456fccdSmrg break ;; 73074456fccdSmrg * ) 73084456fccdSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 73094456fccdSmrg esac 73104456fccdSmrgdone 73114456fccdSmrgecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 73124456fccdSmrg 73134456fccdSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 73144456fccdSmrg# 73154456fccdSmrg# This file is free software; the Free Software Foundation 73164456fccdSmrg# gives unlimited permission to copy and/or distribute it, 73174456fccdSmrg# with or without modifications, as long as this notice is preserved. 73184456fccdSmrg 73194456fccdSmrg# AM_PROG_INSTALL_SH 73204456fccdSmrg# ------------------ 73214456fccdSmrg# Define $install_sh. 73224456fccdSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 73234456fccdSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 73244456fccdSmrginstall_sh=${install_sh-"$am_aux_dir/install-sh"} 73254456fccdSmrgAC_SUBST(install_sh)]) 73264456fccdSmrg 73274456fccdSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 73284456fccdSmrg# 73294456fccdSmrg# This file is free software; the Free Software Foundation 73304456fccdSmrg# gives unlimited permission to copy and/or distribute it, 73314456fccdSmrg# with or without modifications, as long as this notice is preserved. 73324456fccdSmrg 73334456fccdSmrg# serial 2 73344456fccdSmrg 73354456fccdSmrg# Check whether the underlying file-system supports filenames 73364456fccdSmrg# with a leading dot. For instance MS-DOS doesn't. 73374456fccdSmrgAC_DEFUN([AM_SET_LEADING_DOT], 73384456fccdSmrg[rm -rf .tst 2>/dev/null 73394456fccdSmrgmkdir .tst 2>/dev/null 73404456fccdSmrgif test -d .tst; then 73414456fccdSmrg am__leading_dot=. 73424456fccdSmrgelse 73434456fccdSmrg am__leading_dot=_ 73444456fccdSmrgfi 73454456fccdSmrgrmdir .tst 2>/dev/null 73464456fccdSmrgAC_SUBST([am__leading_dot])]) 73474456fccdSmrg 73484456fccdSmrg# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- 73494456fccdSmrg# From Jim Meyering 73504456fccdSmrg 73514456fccdSmrg# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 73524456fccdSmrg# Free Software Foundation, Inc. 73534456fccdSmrg# 73544456fccdSmrg# This file is free software; the Free Software Foundation 73554456fccdSmrg# gives unlimited permission to copy and/or distribute it, 73564456fccdSmrg# with or without modifications, as long as this notice is preserved. 73574456fccdSmrg 73584456fccdSmrg# serial 4 73594456fccdSmrg 73604456fccdSmrgAC_DEFUN([AM_MAINTAINER_MODE], 73614456fccdSmrg[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 73624456fccdSmrg dnl maintainer-mode is disabled by default 73634456fccdSmrg AC_ARG_ENABLE(maintainer-mode, 73644456fccdSmrg[ --enable-maintainer-mode enable make rules and dependencies not useful 73654456fccdSmrg (and sometimes confusing) to the casual installer], 73664456fccdSmrg USE_MAINTAINER_MODE=$enableval, 73674456fccdSmrg USE_MAINTAINER_MODE=no) 73684456fccdSmrg AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 73694456fccdSmrg AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 73704456fccdSmrg MAINT=$MAINTAINER_MODE_TRUE 73714456fccdSmrg AC_SUBST(MAINT)dnl 73724456fccdSmrg] 73734456fccdSmrg) 73744456fccdSmrg 73754456fccdSmrgAU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) 73764456fccdSmrg 73774456fccdSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 73784456fccdSmrg 73794456fccdSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 73804456fccdSmrg# 73814456fccdSmrg# This file is free software; the Free Software Foundation 73824456fccdSmrg# gives unlimited permission to copy and/or distribute it, 73834456fccdSmrg# with or without modifications, as long as this notice is preserved. 73844456fccdSmrg 73854456fccdSmrg# serial 3 73864456fccdSmrg 73874456fccdSmrg# AM_MAKE_INCLUDE() 73884456fccdSmrg# ----------------- 73894456fccdSmrg# Check to see how make treats includes. 73904456fccdSmrgAC_DEFUN([AM_MAKE_INCLUDE], 73914456fccdSmrg[am_make=${MAKE-make} 73924456fccdSmrgcat > confinc << 'END' 73934456fccdSmrgam__doit: 73944456fccdSmrg @echo done 73954456fccdSmrg.PHONY: am__doit 73964456fccdSmrgEND 73974456fccdSmrg# If we don't find an include directive, just comment out the code. 73984456fccdSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 73994456fccdSmrgam__include="#" 74004456fccdSmrgam__quote= 74014456fccdSmrg_am_result=none 74024456fccdSmrg# First try GNU make style include. 74034456fccdSmrgecho "include confinc" > confmf 74044456fccdSmrg# We grep out `Entering directory' and `Leaving directory' 74054456fccdSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 74064456fccdSmrg# In particular we don't look at `^make:' because GNU make might 74074456fccdSmrg# be invoked under some other name (usually "gmake"), in which 74084456fccdSmrg# case it prints its new name instead of `make'. 74094456fccdSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 74104456fccdSmrg am__include=include 74114456fccdSmrg am__quote= 74124456fccdSmrg _am_result=GNU 74134456fccdSmrgfi 74144456fccdSmrg# Now try BSD make style include. 74154456fccdSmrgif test "$am__include" = "#"; then 74164456fccdSmrg echo '.include "confinc"' > confmf 74174456fccdSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 74184456fccdSmrg am__include=.include 74194456fccdSmrg am__quote="\"" 74204456fccdSmrg _am_result=BSD 74214456fccdSmrg fi 74224456fccdSmrgfi 74234456fccdSmrgAC_SUBST([am__include]) 74244456fccdSmrgAC_SUBST([am__quote]) 74254456fccdSmrgAC_MSG_RESULT([$_am_result]) 74264456fccdSmrgrm -f confinc confmf 74274456fccdSmrg]) 74284456fccdSmrg 74294456fccdSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 74304456fccdSmrg 74314456fccdSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 74324456fccdSmrg# Free Software Foundation, Inc. 74334456fccdSmrg# 74344456fccdSmrg# This file is free software; the Free Software Foundation 74354456fccdSmrg# gives unlimited permission to copy and/or distribute it, 74364456fccdSmrg# with or without modifications, as long as this notice is preserved. 74374456fccdSmrg 74384456fccdSmrg# serial 4 74394456fccdSmrg 74404456fccdSmrg# AM_MISSING_PROG(NAME, PROGRAM) 74414456fccdSmrg# ------------------------------ 74424456fccdSmrgAC_DEFUN([AM_MISSING_PROG], 74434456fccdSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 74444456fccdSmrg$1=${$1-"${am_missing_run}$2"} 74454456fccdSmrgAC_SUBST($1)]) 74464456fccdSmrg 74474456fccdSmrg 74484456fccdSmrg# AM_MISSING_HAS_RUN 74494456fccdSmrg# ------------------ 74504456fccdSmrg# Define MISSING if not defined so far and test if it supports --run. 74514456fccdSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 74524456fccdSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 74534456fccdSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 74544456fccdSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 74554456fccdSmrg# Use eval to expand $SHELL 74564456fccdSmrgif eval "$MISSING --run true"; then 74574456fccdSmrg am_missing_run="$MISSING --run " 74584456fccdSmrgelse 74594456fccdSmrg am_missing_run= 74604456fccdSmrg AC_MSG_WARN([`missing' script is too old or missing]) 74614456fccdSmrgfi 74624456fccdSmrg]) 74634456fccdSmrg 74644456fccdSmrg# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 74654456fccdSmrg# 74664456fccdSmrg# This file is free software; the Free Software Foundation 74674456fccdSmrg# gives unlimited permission to copy and/or distribute it, 74684456fccdSmrg# with or without modifications, as long as this notice is preserved. 74694456fccdSmrg 74704456fccdSmrg# AM_PROG_MKDIR_P 74714456fccdSmrg# --------------- 74724456fccdSmrg# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 74734456fccdSmrg# 74744456fccdSmrg# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 74754456fccdSmrg# created by `make install' are always world readable, even if the 74764456fccdSmrg# installer happens to have an overly restrictive umask (e.g. 077). 74774456fccdSmrg# This was a mistake. There are at least two reasons why we must not 74784456fccdSmrg# use `-m 0755': 74794456fccdSmrg# - it causes special bits like SGID to be ignored, 74804456fccdSmrg# - it may be too restrictive (some setups expect 775 directories). 74814456fccdSmrg# 74824456fccdSmrg# Do not use -m 0755 and let people choose whatever they expect by 74834456fccdSmrg# setting umask. 74844456fccdSmrg# 74854456fccdSmrg# We cannot accept any implementation of `mkdir' that recognizes `-p'. 74864456fccdSmrg# Some implementations (such as Solaris 8's) are not thread-safe: if a 74874456fccdSmrg# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 74884456fccdSmrg# concurrently, both version can detect that a/ is missing, but only 74894456fccdSmrg# one can create it and the other will error out. Consequently we 74904456fccdSmrg# restrict ourselves to GNU make (using the --version option ensures 74914456fccdSmrg# this.) 74924456fccdSmrgAC_DEFUN([AM_PROG_MKDIR_P], 74934456fccdSmrg[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 74944456fccdSmrg # We used to keeping the `.' as first argument, in order to 74954456fccdSmrg # allow $(mkdir_p) to be used without argument. As in 74964456fccdSmrg # $(mkdir_p) $(somedir) 74974456fccdSmrg # where $(somedir) is conditionally defined. However this is wrong 74984456fccdSmrg # for two reasons: 74994456fccdSmrg # 1. if the package is installed by a user who cannot write `.' 75004456fccdSmrg # make install will fail, 75014456fccdSmrg # 2. the above comment should most certainly read 75024456fccdSmrg # $(mkdir_p) $(DESTDIR)$(somedir) 75034456fccdSmrg # so it does not work when $(somedir) is undefined and 75044456fccdSmrg # $(DESTDIR) is not. 75054456fccdSmrg # To support the latter case, we have to write 75064456fccdSmrg # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 75074456fccdSmrg # so the `.' trick is pointless. 75084456fccdSmrg mkdir_p='mkdir -p --' 75094456fccdSmrgelse 75104456fccdSmrg # On NextStep and OpenStep, the `mkdir' command does not 75114456fccdSmrg # recognize any option. It will interpret all options as 75124456fccdSmrg # directories to create, and then abort because `.' already 75134456fccdSmrg # exists. 75144456fccdSmrg for d in ./-p ./--version; 75154456fccdSmrg do 75164456fccdSmrg test -d $d && rmdir $d 75174456fccdSmrg done 75184456fccdSmrg # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 75194456fccdSmrg if test -f "$ac_aux_dir/mkinstalldirs"; then 75204456fccdSmrg mkdir_p='$(mkinstalldirs)' 75214456fccdSmrg else 75224456fccdSmrg mkdir_p='$(install_sh) -d' 75234456fccdSmrg fi 75244456fccdSmrgfi 75254456fccdSmrgAC_SUBST([mkdir_p])]) 75264456fccdSmrg 75274456fccdSmrg# Helper functions for option handling. -*- Autoconf -*- 75284456fccdSmrg 75294456fccdSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 75304456fccdSmrg# 75314456fccdSmrg# This file is free software; the Free Software Foundation 75324456fccdSmrg# gives unlimited permission to copy and/or distribute it, 75334456fccdSmrg# with or without modifications, as long as this notice is preserved. 75344456fccdSmrg 75354456fccdSmrg# serial 3 75364456fccdSmrg 75374456fccdSmrg# _AM_MANGLE_OPTION(NAME) 75384456fccdSmrg# ----------------------- 75394456fccdSmrgAC_DEFUN([_AM_MANGLE_OPTION], 75404456fccdSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 75414456fccdSmrg 75424456fccdSmrg# _AM_SET_OPTION(NAME) 75434456fccdSmrg# ------------------------------ 75444456fccdSmrg# Set option NAME. Presently that only means defining a flag for this option. 75454456fccdSmrgAC_DEFUN([_AM_SET_OPTION], 75464456fccdSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 75474456fccdSmrg 75484456fccdSmrg# _AM_SET_OPTIONS(OPTIONS) 75494456fccdSmrg# ---------------------------------- 75504456fccdSmrg# OPTIONS is a space-separated list of Automake options. 75514456fccdSmrgAC_DEFUN([_AM_SET_OPTIONS], 75524456fccdSmrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 75534456fccdSmrg 75544456fccdSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 75554456fccdSmrg# ------------------------------------------- 75564456fccdSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 75574456fccdSmrgAC_DEFUN([_AM_IF_OPTION], 75584456fccdSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 75594456fccdSmrg 75604456fccdSmrg 75614456fccdSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 75624456fccdSmrg# Free Software Foundation, Inc. 75634456fccdSmrg# 75644456fccdSmrg# This file is free software; the Free Software Foundation 75654456fccdSmrg# gives unlimited permission to copy and/or distribute it, 75664456fccdSmrg# with or without modifications, as long as this notice is preserved. 75674456fccdSmrg 75684456fccdSmrg# serial 8 75694456fccdSmrg 75704456fccdSmrg 75714456fccdSmrg# AM_PRETTY_CMDS 75724456fccdSmrg# ------------ 75734456fccdSmrgAC_DEFUN([AM_PRETTY_CMDS], 75744456fccdSmrg[AC_ARG_ENABLE(pretty-cmds, 75754456fccdSmrg[ --disable-pretty-cmds show all commands executed 75764456fccdSmrg --enable-pretty-cmds do not output the entire command lines]) 75774456fccdSmrgAMSHOWCMDSAT='' 75784456fccdSmrgAMDEPSHOWCMDSAT='' 75794456fccdSmrgAMPRETTYECHO=true 75804456fccdSmrgAMCMDECHO=echo 75814456fccdSmrgif test "x$enable_pretty_cmds" == xyes; 75824456fccdSmrgthen 75834456fccdSmrg AMSHOWCMDSAT='@' 75844456fccdSmrg _AM_IF_OPTION([no-dependencies],,test x$enable_dependency_tracking == xno &&) AMDEPSHOWCMDSAT='@' 75854456fccdSmrg AMPRETTYECHO=echo 75864456fccdSmrg AMCMDECHO=true 75874456fccdSmrg LT_QUIET='--quiet' 75884456fccdSmrgfi 75894456fccdSmrgAC_SUBST([AMSHOWCMDSAT]) 75904456fccdSmrgAC_SUBST([AMDEPSHOWCMDSAT]) 75914456fccdSmrgAC_SUBST([AMPRETTYECHO]) 75924456fccdSmrgAC_SUBST([AMCMDECHO]) 75934456fccdSmrgAC_SUBST([LT_QUIET]) 75944456fccdSmrg]) 75954456fccdSmrg 75964456fccdSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 75974456fccdSmrg 75984456fccdSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 75994456fccdSmrg# Free Software Foundation, Inc. 76004456fccdSmrg# 76014456fccdSmrg# This file is free software; the Free Software Foundation 76024456fccdSmrg# gives unlimited permission to copy and/or distribute it, 76034456fccdSmrg# with or without modifications, as long as this notice is preserved. 76044456fccdSmrg 76054456fccdSmrg# serial 4 76064456fccdSmrg 76074456fccdSmrg# AM_SANITY_CHECK 76084456fccdSmrg# --------------- 76094456fccdSmrgAC_DEFUN([AM_SANITY_CHECK], 76104456fccdSmrg[AC_MSG_CHECKING([whether build environment is sane]) 76114456fccdSmrg# Just in case 76124456fccdSmrgsleep 1 76134456fccdSmrgecho timestamp > conftest.file 76144456fccdSmrg# Do `set' in a subshell so we don't clobber the current shell's 76154456fccdSmrg# arguments. Must try -L first in case configure is actually a 76164456fccdSmrg# symlink; some systems play weird games with the mod time of symlinks 76174456fccdSmrg# (eg FreeBSD returns the mod time of the symlink's containing 76184456fccdSmrg# directory). 76194456fccdSmrgif ( 76204456fccdSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 76214456fccdSmrg if test "$[*]" = "X"; then 76224456fccdSmrg # -L didn't work. 76234456fccdSmrg set X `ls -t $srcdir/configure conftest.file` 76244456fccdSmrg fi 76254456fccdSmrg rm -f conftest.file 76264456fccdSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 76274456fccdSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 76284456fccdSmrg 76294456fccdSmrg # If neither matched, then we have a broken ls. This can happen 76304456fccdSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 76314456fccdSmrg # broken ls alias from the environment. This has actually 76324456fccdSmrg # happened. Such a system could not be considered "sane". 76334456fccdSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 76344456fccdSmrgalias in your environment]) 76354456fccdSmrg fi 76364456fccdSmrg 76374456fccdSmrg test "$[2]" = conftest.file 76384456fccdSmrg ) 76394456fccdSmrgthen 76404456fccdSmrg # Ok. 76414456fccdSmrg : 76424456fccdSmrgelse 76434456fccdSmrg AC_MSG_ERROR([newly created file is older than distributed files! 76444456fccdSmrgCheck your system clock]) 76454456fccdSmrgfi 76464456fccdSmrgAC_MSG_RESULT(yes)]) 76474456fccdSmrg 76484456fccdSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 76494456fccdSmrg# 76504456fccdSmrg# This file is free software; the Free Software Foundation 76514456fccdSmrg# gives unlimited permission to copy and/or distribute it, 76524456fccdSmrg# with or without modifications, as long as this notice is preserved. 76534456fccdSmrg 76544456fccdSmrg# AM_PROG_INSTALL_STRIP 76554456fccdSmrg# --------------------- 76564456fccdSmrg# One issue with vendor `install' (even GNU) is that you can't 76574456fccdSmrg# specify the program used to strip binaries. This is especially 76584456fccdSmrg# annoying in cross-compiling environments, where the build's strip 76594456fccdSmrg# is unlikely to handle the host's binaries. 76604456fccdSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 76614456fccdSmrg# always use install-sh in `make install-strip', and initialize 76624456fccdSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 76634456fccdSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 76644456fccdSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 76654456fccdSmrg# Installed binaries are usually stripped using `strip' when the user 76664456fccdSmrg# run `make install-strip'. However `strip' might not be the right 76674456fccdSmrg# tool to use in cross-compilation environments, therefore Automake 76684456fccdSmrg# will honor the `STRIP' environment variable to overrule this program. 76694456fccdSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 76704456fccdSmrgif test "$cross_compiling" != no; then 76714456fccdSmrg AC_CHECK_TOOL([STRIP], [strip], :) 76724456fccdSmrgfi 76734456fccdSmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 76744456fccdSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 76754456fccdSmrg 76764456fccdSmrg# Check how to create a tarball. -*- Autoconf -*- 76774456fccdSmrg 76784456fccdSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 76794456fccdSmrg# 76804456fccdSmrg# This file is free software; the Free Software Foundation 76814456fccdSmrg# gives unlimited permission to copy and/or distribute it, 76824456fccdSmrg# with or without modifications, as long as this notice is preserved. 76834456fccdSmrg 76844456fccdSmrg# serial 2 76854456fccdSmrg 76864456fccdSmrg# _AM_PROG_TAR(FORMAT) 76874456fccdSmrg# -------------------- 76884456fccdSmrg# Check how to create a tarball in format FORMAT. 76894456fccdSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 76904456fccdSmrg# 76914456fccdSmrg# Substitute a variable $(am__tar) that is a command 76924456fccdSmrg# writing to stdout a FORMAT-tarball containing the directory 76934456fccdSmrg# $tardir. 76944456fccdSmrg# tardir=directory && $(am__tar) > result.tar 76954456fccdSmrg# 76964456fccdSmrg# Substitute a variable $(am__untar) that extract such 76974456fccdSmrg# a tarball read from stdin. 76984456fccdSmrg# $(am__untar) < result.tar 76994456fccdSmrgAC_DEFUN([_AM_PROG_TAR], 77004456fccdSmrg[# Always define AMTAR for backward compatibility. 77014456fccdSmrgAM_MISSING_PROG([AMTAR], [tar]) 77024456fccdSmrgm4_if([$1], [v7], 77034456fccdSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 77044456fccdSmrg [m4_case([$1], [ustar],, [pax],, 77054456fccdSmrg [m4_fatal([Unknown tar format])]) 77064456fccdSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 77074456fccdSmrg# Loop over all known methods to create a tar archive until one works. 77084456fccdSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 77094456fccdSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 77104456fccdSmrg# Do not fold the above two line into one, because Tru64 sh and 77114456fccdSmrg# Solaris sh will not grok spaces in the rhs of `-'. 77124456fccdSmrgfor _am_tool in $_am_tools 77134456fccdSmrgdo 77144456fccdSmrg case $_am_tool in 77154456fccdSmrg gnutar) 77164456fccdSmrg for _am_tar in tar gnutar gtar; 77174456fccdSmrg do 77184456fccdSmrg AM_RUN_LOG([$_am_tar --version]) && break 77194456fccdSmrg done 77204456fccdSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 77214456fccdSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 77224456fccdSmrg am__untar="$_am_tar -xf -" 77234456fccdSmrg ;; 77244456fccdSmrg plaintar) 77254456fccdSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 77264456fccdSmrg # ustar tarball either. 77274456fccdSmrg (tar --version) >/dev/null 2>&1 && continue 77284456fccdSmrg am__tar='tar chf - "$$tardir"' 77294456fccdSmrg am__tar_='tar chf - "$tardir"' 77304456fccdSmrg am__untar='tar xf -' 77314456fccdSmrg ;; 77324456fccdSmrg pax) 77334456fccdSmrg am__tar='pax -L -x $1 -w "$$tardir"' 77344456fccdSmrg am__tar_='pax -L -x $1 -w "$tardir"' 77354456fccdSmrg am__untar='pax -r' 77364456fccdSmrg ;; 77374456fccdSmrg cpio) 77384456fccdSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 77394456fccdSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 77404456fccdSmrg am__untar='cpio -i -H $1 -d' 77414456fccdSmrg ;; 77424456fccdSmrg none) 77434456fccdSmrg am__tar=false 77444456fccdSmrg am__tar_=false 77454456fccdSmrg am__untar=false 77464456fccdSmrg ;; 77474456fccdSmrg esac 77484456fccdSmrg 77494456fccdSmrg # If the value was cached, stop now. We just wanted to have am__tar 77504456fccdSmrg # and am__untar set. 77514456fccdSmrg test -n "${am_cv_prog_tar_$1}" && break 77524456fccdSmrg 77534456fccdSmrg # tar/untar a dummy directory, and stop if the command works 77544456fccdSmrg rm -rf conftest.dir 77554456fccdSmrg mkdir conftest.dir 77564456fccdSmrg echo GrepMe > conftest.dir/file 77574456fccdSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 77584456fccdSmrg rm -rf conftest.dir 77594456fccdSmrg if test -s conftest.tar; then 77604456fccdSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 77614456fccdSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 77624456fccdSmrg fi 77634456fccdSmrgdone 77644456fccdSmrgrm -rf conftest.dir 77654456fccdSmrg 77664456fccdSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 77674456fccdSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 77684456fccdSmrgAC_SUBST([am__tar]) 77694456fccdSmrgAC_SUBST([am__untar]) 77704456fccdSmrg]) # _AM_PROG_TAR 77714456fccdSmrg 7772