aclocal.m4 revision 20d725fb
120d725fbSmrg# generated automatically by aclocal 1.9.6 -*- Autoconf -*- 220d725fbSmrg 320d725fbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 420d725fbSmrg# 2005 Free Software Foundation, Inc. 520d725fbSmrg# This file is free software; the Free Software Foundation 620d725fbSmrg# gives unlimited permission to copy and/or distribute it, 720d725fbSmrg# with or without modifications, as long as this notice is preserved. 820d725fbSmrg 920d725fbSmrg# This program is distributed in the hope that it will be useful, 1020d725fbSmrg# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 1120d725fbSmrg# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 1220d725fbSmrg# PARTICULAR PURPOSE. 1320d725fbSmrg 1420d725fbSmrg# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- 1520d725fbSmrg 1620d725fbSmrg# serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL 1720d725fbSmrg 1820d725fbSmrg 1920d725fbSmrg# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 2020d725fbSmrg# ----------------------------------------------------------- 2120d725fbSmrg# If this macro is not defined by Autoconf, define it here. 2220d725fbSmrgm4_ifdef([AC_PROVIDE_IFELSE], 2320d725fbSmrg [], 2420d725fbSmrg [m4_define([AC_PROVIDE_IFELSE], 2520d725fbSmrg [m4_ifdef([AC_PROVIDE_$1], 2620d725fbSmrg [$2], [$3])])]) 2720d725fbSmrg 2820d725fbSmrg 2920d725fbSmrg# AC_PROG_LIBTOOL 3020d725fbSmrg# --------------- 3120d725fbSmrgAC_DEFUN([AC_PROG_LIBTOOL], 3220d725fbSmrg[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl 3320d725fbSmrgdnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX 3420d725fbSmrgdnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. 3520d725fbSmrg AC_PROVIDE_IFELSE([AC_PROG_CXX], 3620d725fbSmrg [AC_LIBTOOL_CXX], 3720d725fbSmrg [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX 3820d725fbSmrg ])]) 3920d725fbSmrgdnl And a similar setup for Fortran 77 support 4020d725fbSmrg AC_PROVIDE_IFELSE([AC_PROG_F77], 4120d725fbSmrg [AC_LIBTOOL_F77], 4220d725fbSmrg [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 4320d725fbSmrg])]) 4420d725fbSmrg 4520d725fbSmrgdnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. 4620d725fbSmrgdnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run 4720d725fbSmrgdnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. 4820d725fbSmrg AC_PROVIDE_IFELSE([AC_PROG_GCJ], 4920d725fbSmrg [AC_LIBTOOL_GCJ], 5020d725fbSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], 5120d725fbSmrg [AC_LIBTOOL_GCJ], 5220d725fbSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], 5320d725fbSmrg [AC_LIBTOOL_GCJ], 5420d725fbSmrg [ifdef([AC_PROG_GCJ], 5520d725fbSmrg [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 5620d725fbSmrg ifdef([A][M_PROG_GCJ], 5720d725fbSmrg [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) 5820d725fbSmrg ifdef([LT_AC_PROG_GCJ], 5920d725fbSmrg [define([LT_AC_PROG_GCJ], 6020d725fbSmrg defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) 6120d725fbSmrg])])# AC_PROG_LIBTOOL 6220d725fbSmrg 6320d725fbSmrg 6420d725fbSmrg# _AC_PROG_LIBTOOL 6520d725fbSmrg# ---------------- 6620d725fbSmrgAC_DEFUN([_AC_PROG_LIBTOOL], 6720d725fbSmrg[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 6820d725fbSmrgAC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl 6920d725fbSmrgAC_BEFORE([$0],[AC_LIBTOOL_F77])dnl 7020d725fbSmrgAC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl 7120d725fbSmrg 7220d725fbSmrg# This can be used to rebuild libtool when needed 7320d725fbSmrgLIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 7420d725fbSmrg 7520d725fbSmrg# Always use our own libtool. 7620d725fbSmrgLIBTOOL='$(SHELL) $(top_builddir)/libtool' 7720d725fbSmrgAC_SUBST(LIBTOOL)dnl 7820d725fbSmrg 7920d725fbSmrg# Prevent multiple expansion 8020d725fbSmrgdefine([AC_PROG_LIBTOOL], []) 8120d725fbSmrg])# _AC_PROG_LIBTOOL 8220d725fbSmrg 8320d725fbSmrg 8420d725fbSmrg# AC_LIBTOOL_SETUP 8520d725fbSmrg# ---------------- 8620d725fbSmrgAC_DEFUN([AC_LIBTOOL_SETUP], 8720d725fbSmrg[AC_PREREQ(2.50)dnl 8820d725fbSmrgAC_REQUIRE([AC_ENABLE_SHARED])dnl 8920d725fbSmrgAC_REQUIRE([AC_ENABLE_STATIC])dnl 9020d725fbSmrgAC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 9120d725fbSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 9220d725fbSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 9320d725fbSmrgAC_REQUIRE([AC_PROG_CC])dnl 9420d725fbSmrgAC_REQUIRE([AC_PROG_LD])dnl 9520d725fbSmrgAC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 9620d725fbSmrgAC_REQUIRE([AC_PROG_NM])dnl 9720d725fbSmrg 9820d725fbSmrgAC_REQUIRE([AC_PROG_LN_S])dnl 9920d725fbSmrgAC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 10020d725fbSmrg# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 10120d725fbSmrgAC_REQUIRE([AC_OBJEXT])dnl 10220d725fbSmrgAC_REQUIRE([AC_EXEEXT])dnl 10320d725fbSmrgdnl 10420d725fbSmrg 10520d725fbSmrgAC_LIBTOOL_SYS_MAX_CMD_LEN 10620d725fbSmrgAC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 10720d725fbSmrgAC_LIBTOOL_OBJDIR 10820d725fbSmrg 10920d725fbSmrgAC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 11020d725fbSmrg_LT_AC_PROG_ECHO_BACKSLASH 11120d725fbSmrg 11220d725fbSmrgcase $host_os in 11320d725fbSmrgaix3*) 11420d725fbSmrg # AIX sometimes has problems with the GCC collect2 program. For some 11520d725fbSmrg # reason, if we set the COLLECT_NAMES environment variable, the problems 11620d725fbSmrg # vanish in a puff of smoke. 11720d725fbSmrg if test "X${COLLECT_NAMES+set}" != Xset; then 11820d725fbSmrg COLLECT_NAMES= 11920d725fbSmrg export COLLECT_NAMES 12020d725fbSmrg fi 12120d725fbSmrg ;; 12220d725fbSmrgesac 12320d725fbSmrg 12420d725fbSmrg# Sed substitution that helps us do robust quoting. It backslashifies 12520d725fbSmrg# metacharacters that are still active within double-quoted strings. 12620d725fbSmrgXsed='sed -e 1s/^X//' 12720d725fbSmrg[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] 12820d725fbSmrg 12920d725fbSmrg# Same as above, but do not quote variable references. 13020d725fbSmrg[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] 13120d725fbSmrg 13220d725fbSmrg# Sed substitution to delay expansion of an escaped shell variable in a 13320d725fbSmrg# double_quote_subst'ed string. 13420d725fbSmrgdelay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 13520d725fbSmrg 13620d725fbSmrg# Sed substitution to avoid accidental globbing in evaled expressions 13720d725fbSmrgno_glob_subst='s/\*/\\\*/g' 13820d725fbSmrg 13920d725fbSmrg# Constants: 14020d725fbSmrgrm="rm -f" 14120d725fbSmrg 14220d725fbSmrg# Global variables: 14320d725fbSmrgdefault_ofile=libtool 14420d725fbSmrgcan_build_shared=yes 14520d725fbSmrg 14620d725fbSmrg# All known linkers require a `.a' archive for static linking (except MSVC, 14720d725fbSmrg# which needs '.lib'). 14820d725fbSmrglibext=a 14920d725fbSmrgltmain="$ac_aux_dir/ltmain.sh" 15020d725fbSmrgofile="$default_ofile" 15120d725fbSmrgwith_gnu_ld="$lt_cv_prog_gnu_ld" 15220d725fbSmrg 15320d725fbSmrgAC_CHECK_TOOL(AR, ar, false) 15420d725fbSmrgAC_CHECK_TOOL(RANLIB, ranlib, :) 15520d725fbSmrgAC_CHECK_TOOL(STRIP, strip, :) 15620d725fbSmrg 15720d725fbSmrgold_CC="$CC" 15820d725fbSmrgold_CFLAGS="$CFLAGS" 15920d725fbSmrg 16020d725fbSmrg# Set sane defaults for various variables 16120d725fbSmrgtest -z "$AR" && AR=ar 16220d725fbSmrgtest -z "$AR_FLAGS" && AR_FLAGS=cru 16320d725fbSmrgtest -z "$AS" && AS=as 16420d725fbSmrgtest -z "$CC" && CC=cc 16520d725fbSmrgtest -z "$LTCC" && LTCC=$CC 16620d725fbSmrgtest -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 16720d725fbSmrgtest -z "$DLLTOOL" && DLLTOOL=dlltool 16820d725fbSmrgtest -z "$LD" && LD=ld 16920d725fbSmrgtest -z "$LN_S" && LN_S="ln -s" 17020d725fbSmrgtest -z "$MAGIC_CMD" && MAGIC_CMD=file 17120d725fbSmrgtest -z "$NM" && NM=nm 17220d725fbSmrgtest -z "$SED" && SED=sed 17320d725fbSmrgtest -z "$OBJDUMP" && OBJDUMP=objdump 17420d725fbSmrgtest -z "$RANLIB" && RANLIB=: 17520d725fbSmrgtest -z "$STRIP" && STRIP=: 17620d725fbSmrgtest -z "$ac_objext" && ac_objext=o 17720d725fbSmrg 17820d725fbSmrg# Determine commands to create old-style static archives. 17920d725fbSmrgold_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 18020d725fbSmrgold_postinstall_cmds='chmod 644 $oldlib' 18120d725fbSmrgold_postuninstall_cmds= 18220d725fbSmrg 18320d725fbSmrgif test -n "$RANLIB"; then 18420d725fbSmrg case $host_os in 18520d725fbSmrg openbsd*) 18620d725fbSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 18720d725fbSmrg ;; 18820d725fbSmrg *) 18920d725fbSmrg old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 19020d725fbSmrg ;; 19120d725fbSmrg esac 19220d725fbSmrg old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 19320d725fbSmrgfi 19420d725fbSmrg 19520d725fbSmrg_LT_CC_BASENAME([$compiler]) 19620d725fbSmrg 19720d725fbSmrg# Only perform the check for file, if the check method requires it 19820d725fbSmrgcase $deplibs_check_method in 19920d725fbSmrgfile_magic*) 20020d725fbSmrg if test "$file_magic_cmd" = '$MAGIC_CMD'; then 20120d725fbSmrg AC_PATH_MAGIC 20220d725fbSmrg fi 20320d725fbSmrg ;; 20420d725fbSmrgesac 20520d725fbSmrg 20620d725fbSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 20720d725fbSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 20820d725fbSmrgenable_win32_dll=yes, enable_win32_dll=no) 20920d725fbSmrg 21020d725fbSmrgAC_ARG_ENABLE([libtool-lock], 21120d725fbSmrg [AC_HELP_STRING([--disable-libtool-lock], 21220d725fbSmrg [avoid locking (might break parallel builds)])]) 21320d725fbSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 21420d725fbSmrg 21520d725fbSmrgAC_ARG_WITH([pic], 21620d725fbSmrg [AC_HELP_STRING([--with-pic], 21720d725fbSmrg [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], 21820d725fbSmrg [pic_mode="$withval"], 21920d725fbSmrg [pic_mode=default]) 22020d725fbSmrgtest -z "$pic_mode" && pic_mode=default 22120d725fbSmrg 22220d725fbSmrg# Use C for the default configuration in the libtool script 22320d725fbSmrgtagname= 22420d725fbSmrgAC_LIBTOOL_LANG_C_CONFIG 22520d725fbSmrg_LT_AC_TAGCONFIG 22620d725fbSmrg])# AC_LIBTOOL_SETUP 22720d725fbSmrg 22820d725fbSmrg 22920d725fbSmrg# _LT_AC_SYS_COMPILER 23020d725fbSmrg# ------------------- 23120d725fbSmrgAC_DEFUN([_LT_AC_SYS_COMPILER], 23220d725fbSmrg[AC_REQUIRE([AC_PROG_CC])dnl 23320d725fbSmrg 23420d725fbSmrg# If no C compiler was specified, use CC. 23520d725fbSmrgLTCC=${LTCC-"$CC"} 23620d725fbSmrg 23720d725fbSmrg# If no C compiler flags were specified, use CFLAGS. 23820d725fbSmrgLTCFLAGS=${LTCFLAGS-"$CFLAGS"} 23920d725fbSmrg 24020d725fbSmrg# Allow CC to be a program name with arguments. 24120d725fbSmrgcompiler=$CC 24220d725fbSmrg])# _LT_AC_SYS_COMPILER 24320d725fbSmrg 24420d725fbSmrg 24520d725fbSmrg# _LT_CC_BASENAME(CC) 24620d725fbSmrg# ------------------- 24720d725fbSmrg# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24820d725fbSmrgAC_DEFUN([_LT_CC_BASENAME], 24920d725fbSmrg[for cc_temp in $1""; do 25020d725fbSmrg case $cc_temp in 25120d725fbSmrg compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; 25220d725fbSmrg distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; 25320d725fbSmrg \-*) ;; 25420d725fbSmrg *) break;; 25520d725fbSmrg esac 25620d725fbSmrgdone 25720d725fbSmrgcc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 25820d725fbSmrg]) 25920d725fbSmrg 26020d725fbSmrg 26120d725fbSmrg# _LT_COMPILER_BOILERPLATE 26220d725fbSmrg# ------------------------ 26320d725fbSmrg# Check for compiler boilerplate output or warnings with 26420d725fbSmrg# the simple compiler test code. 26520d725fbSmrgAC_DEFUN([_LT_COMPILER_BOILERPLATE], 26620d725fbSmrg[ac_outfile=conftest.$ac_objext 26720d725fbSmrgprintf "$lt_simple_compile_test_code" >conftest.$ac_ext 26820d725fbSmrgeval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 26920d725fbSmrg_lt_compiler_boilerplate=`cat conftest.err` 27020d725fbSmrg$rm conftest* 27120d725fbSmrg])# _LT_COMPILER_BOILERPLATE 27220d725fbSmrg 27320d725fbSmrg 27420d725fbSmrg# _LT_LINKER_BOILERPLATE 27520d725fbSmrg# ---------------------- 27620d725fbSmrg# Check for linker boilerplate output or warnings with 27720d725fbSmrg# the simple link test code. 27820d725fbSmrgAC_DEFUN([_LT_LINKER_BOILERPLATE], 27920d725fbSmrg[ac_outfile=conftest.$ac_objext 28020d725fbSmrgprintf "$lt_simple_link_test_code" >conftest.$ac_ext 28120d725fbSmrgeval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 28220d725fbSmrg_lt_linker_boilerplate=`cat conftest.err` 28320d725fbSmrg$rm conftest* 28420d725fbSmrg])# _LT_LINKER_BOILERPLATE 28520d725fbSmrg 28620d725fbSmrg 28720d725fbSmrg# _LT_AC_SYS_LIBPATH_AIX 28820d725fbSmrg# ---------------------- 28920d725fbSmrg# Links a minimal program and checks the executable 29020d725fbSmrg# for the system default hardcoded library path. In most cases, 29120d725fbSmrg# this is /usr/lib:/lib, but when the MPI compilers are used 29220d725fbSmrg# the location of the communication and MPI libs are included too. 29320d725fbSmrg# If we don't find anything, use the default library path according 29420d725fbSmrg# to the aix ld manual. 29520d725fbSmrgAC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], 29620d725fbSmrg[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ 29720d725fbSmrgaix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 29820d725fbSmrg}'` 29920d725fbSmrg# Check for a 64-bit object if we didn't find anything. 30020d725fbSmrgif 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; } 30120d725fbSmrg}'`; fi],[]) 30220d725fbSmrgif test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 30320d725fbSmrg])# _LT_AC_SYS_LIBPATH_AIX 30420d725fbSmrg 30520d725fbSmrg 30620d725fbSmrg# _LT_AC_SHELL_INIT(ARG) 30720d725fbSmrg# ---------------------- 30820d725fbSmrgAC_DEFUN([_LT_AC_SHELL_INIT], 30920d725fbSmrg[ifdef([AC_DIVERSION_NOTICE], 31020d725fbSmrg [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 31120d725fbSmrg [AC_DIVERT_PUSH(NOTICE)]) 31220d725fbSmrg$1 31320d725fbSmrgAC_DIVERT_POP 31420d725fbSmrg])# _LT_AC_SHELL_INIT 31520d725fbSmrg 31620d725fbSmrg 31720d725fbSmrg# _LT_AC_PROG_ECHO_BACKSLASH 31820d725fbSmrg# -------------------------- 31920d725fbSmrg# Add some code to the start of the generated configure script which 32020d725fbSmrg# will find an echo command which doesn't interpret backslashes. 32120d725fbSmrgAC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 32220d725fbSmrg[_LT_AC_SHELL_INIT([ 32320d725fbSmrg# Check that we are running under the correct shell. 32420d725fbSmrgSHELL=${CONFIG_SHELL-/bin/sh} 32520d725fbSmrg 32620d725fbSmrgcase X$ECHO in 32720d725fbSmrgX*--fallback-echo) 32820d725fbSmrg # Remove one level of quotation (which was required for Make). 32920d725fbSmrg ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 33020d725fbSmrg ;; 33120d725fbSmrgesac 33220d725fbSmrg 33320d725fbSmrgecho=${ECHO-echo} 33420d725fbSmrgif test "X[$]1" = X--no-reexec; then 33520d725fbSmrg # Discard the --no-reexec flag, and continue. 33620d725fbSmrg shift 33720d725fbSmrgelif test "X[$]1" = X--fallback-echo; then 33820d725fbSmrg # Avoid inline document here, it may be left over 33920d725fbSmrg : 34020d725fbSmrgelif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 34120d725fbSmrg # Yippee, $echo works! 34220d725fbSmrg : 34320d725fbSmrgelse 34420d725fbSmrg # Restart under the correct shell. 34520d725fbSmrg exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 34620d725fbSmrgfi 34720d725fbSmrg 34820d725fbSmrgif test "X[$]1" = X--fallback-echo; then 34920d725fbSmrg # used as fallback echo 35020d725fbSmrg shift 35120d725fbSmrg cat <<EOF 35220d725fbSmrg[$]* 35320d725fbSmrgEOF 35420d725fbSmrg exit 0 35520d725fbSmrgfi 35620d725fbSmrg 35720d725fbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 35820d725fbSmrg# if CDPATH is set. 35920d725fbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 36020d725fbSmrg 36120d725fbSmrgif test -z "$ECHO"; then 36220d725fbSmrgif test "X${echo_test_string+set}" != Xset; then 36320d725fbSmrg# find a string as large as possible, as long as the shell can cope with it 36420d725fbSmrg for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 36520d725fbSmrg # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 36620d725fbSmrg if (echo_test_string=`eval $cmd`) 2>/dev/null && 36720d725fbSmrg echo_test_string=`eval $cmd` && 36820d725fbSmrg (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 36920d725fbSmrg then 37020d725fbSmrg break 37120d725fbSmrg fi 37220d725fbSmrg done 37320d725fbSmrgfi 37420d725fbSmrg 37520d725fbSmrgif test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 37620d725fbSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 37720d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 37820d725fbSmrg : 37920d725fbSmrgelse 38020d725fbSmrg # The Solaris, AIX, and Digital Unix default echo programs unquote 38120d725fbSmrg # backslashes. This makes it impossible to quote backslashes using 38220d725fbSmrg # echo "$something" | sed 's/\\/\\\\/g' 38320d725fbSmrg # 38420d725fbSmrg # So, first we look for a working echo in the user's PATH. 38520d725fbSmrg 38620d725fbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 38720d725fbSmrg for dir in $PATH /usr/ucb; do 38820d725fbSmrg IFS="$lt_save_ifs" 38920d725fbSmrg if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 39020d725fbSmrg test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 39120d725fbSmrg echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 39220d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 39320d725fbSmrg echo="$dir/echo" 39420d725fbSmrg break 39520d725fbSmrg fi 39620d725fbSmrg done 39720d725fbSmrg IFS="$lt_save_ifs" 39820d725fbSmrg 39920d725fbSmrg if test "X$echo" = Xecho; then 40020d725fbSmrg # We didn't find a better echo, so look for alternatives. 40120d725fbSmrg if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 40220d725fbSmrg echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 40320d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 40420d725fbSmrg # This shell has a builtin print -r that does the trick. 40520d725fbSmrg echo='print -r' 40620d725fbSmrg elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 40720d725fbSmrg test "X$CONFIG_SHELL" != X/bin/ksh; then 40820d725fbSmrg # If we have ksh, try running configure again with it. 40920d725fbSmrg ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 41020d725fbSmrg export ORIGINAL_CONFIG_SHELL 41120d725fbSmrg CONFIG_SHELL=/bin/ksh 41220d725fbSmrg export CONFIG_SHELL 41320d725fbSmrg exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 41420d725fbSmrg else 41520d725fbSmrg # Try using printf. 41620d725fbSmrg echo='printf %s\n' 41720d725fbSmrg if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 41820d725fbSmrg echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 41920d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 42020d725fbSmrg # Cool, printf works 42120d725fbSmrg : 42220d725fbSmrg elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 42320d725fbSmrg test "X$echo_testing_string" = 'X\t' && 42420d725fbSmrg echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 42520d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 42620d725fbSmrg CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 42720d725fbSmrg export CONFIG_SHELL 42820d725fbSmrg SHELL="$CONFIG_SHELL" 42920d725fbSmrg export SHELL 43020d725fbSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 43120d725fbSmrg elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 43220d725fbSmrg test "X$echo_testing_string" = 'X\t' && 43320d725fbSmrg echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 43420d725fbSmrg test "X$echo_testing_string" = "X$echo_test_string"; then 43520d725fbSmrg echo="$CONFIG_SHELL [$]0 --fallback-echo" 43620d725fbSmrg else 43720d725fbSmrg # maybe with a smaller string... 43820d725fbSmrg prev=: 43920d725fbSmrg 44020d725fbSmrg for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 44120d725fbSmrg if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 44220d725fbSmrg then 44320d725fbSmrg break 44420d725fbSmrg fi 44520d725fbSmrg prev="$cmd" 44620d725fbSmrg done 44720d725fbSmrg 44820d725fbSmrg if test "$prev" != 'sed 50q "[$]0"'; then 44920d725fbSmrg echo_test_string=`eval $prev` 45020d725fbSmrg export echo_test_string 45120d725fbSmrg exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 45220d725fbSmrg else 45320d725fbSmrg # Oops. We lost completely, so just stick with echo. 45420d725fbSmrg echo=echo 45520d725fbSmrg fi 45620d725fbSmrg fi 45720d725fbSmrg fi 45820d725fbSmrg fi 45920d725fbSmrgfi 46020d725fbSmrgfi 46120d725fbSmrg 46220d725fbSmrg# Copy echo and quote the copy suitably for passing to libtool from 46320d725fbSmrg# the Makefile, instead of quoting the original, which is used later. 46420d725fbSmrgECHO=$echo 46520d725fbSmrgif test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 46620d725fbSmrg ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 46720d725fbSmrgfi 46820d725fbSmrg 46920d725fbSmrgAC_SUBST(ECHO) 47020d725fbSmrg])])# _LT_AC_PROG_ECHO_BACKSLASH 47120d725fbSmrg 47220d725fbSmrg 47320d725fbSmrg# _LT_AC_LOCK 47420d725fbSmrg# ----------- 47520d725fbSmrgAC_DEFUN([_LT_AC_LOCK], 47620d725fbSmrg[AC_ARG_ENABLE([libtool-lock], 47720d725fbSmrg [AC_HELP_STRING([--disable-libtool-lock], 47820d725fbSmrg [avoid locking (might break parallel builds)])]) 47920d725fbSmrgtest "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 48020d725fbSmrg 48120d725fbSmrg# Some flags need to be propagated to the compiler or linker for good 48220d725fbSmrg# libtool support. 48320d725fbSmrgcase $host in 48420d725fbSmrgia64-*-hpux*) 48520d725fbSmrg # Find out which ABI we are using. 48620d725fbSmrg echo 'int i;' > conftest.$ac_ext 48720d725fbSmrg if AC_TRY_EVAL(ac_compile); then 48820d725fbSmrg case `/usr/bin/file conftest.$ac_objext` in 48920d725fbSmrg *ELF-32*) 49020d725fbSmrg HPUX_IA64_MODE="32" 49120d725fbSmrg ;; 49220d725fbSmrg *ELF-64*) 49320d725fbSmrg HPUX_IA64_MODE="64" 49420d725fbSmrg ;; 49520d725fbSmrg esac 49620d725fbSmrg fi 49720d725fbSmrg rm -rf conftest* 49820d725fbSmrg ;; 49920d725fbSmrg*-*-irix6*) 50020d725fbSmrg # Find out which ABI we are using. 50120d725fbSmrg echo '[#]line __oline__ "configure"' > conftest.$ac_ext 50220d725fbSmrg if AC_TRY_EVAL(ac_compile); then 50320d725fbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 50420d725fbSmrg case `/usr/bin/file conftest.$ac_objext` in 50520d725fbSmrg *32-bit*) 50620d725fbSmrg LD="${LD-ld} -melf32bsmip" 50720d725fbSmrg ;; 50820d725fbSmrg *N32*) 50920d725fbSmrg LD="${LD-ld} -melf32bmipn32" 51020d725fbSmrg ;; 51120d725fbSmrg *64-bit*) 51220d725fbSmrg LD="${LD-ld} -melf64bmip" 51320d725fbSmrg ;; 51420d725fbSmrg esac 51520d725fbSmrg else 51620d725fbSmrg case `/usr/bin/file conftest.$ac_objext` in 51720d725fbSmrg *32-bit*) 51820d725fbSmrg LD="${LD-ld} -32" 51920d725fbSmrg ;; 52020d725fbSmrg *N32*) 52120d725fbSmrg LD="${LD-ld} -n32" 52220d725fbSmrg ;; 52320d725fbSmrg *64-bit*) 52420d725fbSmrg LD="${LD-ld} -64" 52520d725fbSmrg ;; 52620d725fbSmrg esac 52720d725fbSmrg fi 52820d725fbSmrg fi 52920d725fbSmrg rm -rf conftest* 53020d725fbSmrg ;; 53120d725fbSmrg 53220d725fbSmrgx86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 53320d725fbSmrg # Find out which ABI we are using. 53420d725fbSmrg echo 'int i;' > conftest.$ac_ext 53520d725fbSmrg if AC_TRY_EVAL(ac_compile); then 53620d725fbSmrg case `/usr/bin/file conftest.o` in 53720d725fbSmrg *32-bit*) 53820d725fbSmrg case $host in 53920d725fbSmrg x86_64-*linux*) 54020d725fbSmrg LD="${LD-ld} -m elf_i386" 54120d725fbSmrg ;; 54220d725fbSmrg ppc64-*linux*|powerpc64-*linux*) 54320d725fbSmrg LD="${LD-ld} -m elf32ppclinux" 54420d725fbSmrg ;; 54520d725fbSmrg s390x-*linux*) 54620d725fbSmrg LD="${LD-ld} -m elf_s390" 54720d725fbSmrg ;; 54820d725fbSmrg sparc64-*linux*) 54920d725fbSmrg LD="${LD-ld} -m elf32_sparc" 55020d725fbSmrg ;; 55120d725fbSmrg esac 55220d725fbSmrg ;; 55320d725fbSmrg *64-bit*) 55420d725fbSmrg case $host in 55520d725fbSmrg x86_64-*linux*) 55620d725fbSmrg LD="${LD-ld} -m elf_x86_64" 55720d725fbSmrg ;; 55820d725fbSmrg ppc*-*linux*|powerpc*-*linux*) 55920d725fbSmrg LD="${LD-ld} -m elf64ppc" 56020d725fbSmrg ;; 56120d725fbSmrg s390*-*linux*) 56220d725fbSmrg LD="${LD-ld} -m elf64_s390" 56320d725fbSmrg ;; 56420d725fbSmrg sparc*-*linux*) 56520d725fbSmrg LD="${LD-ld} -m elf64_sparc" 56620d725fbSmrg ;; 56720d725fbSmrg esac 56820d725fbSmrg ;; 56920d725fbSmrg esac 57020d725fbSmrg fi 57120d725fbSmrg rm -rf conftest* 57220d725fbSmrg ;; 57320d725fbSmrg 57420d725fbSmrg*-*-sco3.2v5*) 57520d725fbSmrg # On SCO OpenServer 5, we need -belf to get full-featured binaries. 57620d725fbSmrg SAVE_CFLAGS="$CFLAGS" 57720d725fbSmrg CFLAGS="$CFLAGS -belf" 57820d725fbSmrg AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 57920d725fbSmrg [AC_LANG_PUSH(C) 58020d725fbSmrg AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 58120d725fbSmrg AC_LANG_POP]) 58220d725fbSmrg if test x"$lt_cv_cc_needs_belf" != x"yes"; then 58320d725fbSmrg # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 58420d725fbSmrg CFLAGS="$SAVE_CFLAGS" 58520d725fbSmrg fi 58620d725fbSmrg ;; 58720d725fbSmrgsparc*-*solaris*) 58820d725fbSmrg # Find out which ABI we are using. 58920d725fbSmrg echo 'int i;' > conftest.$ac_ext 59020d725fbSmrg if AC_TRY_EVAL(ac_compile); then 59120d725fbSmrg case `/usr/bin/file conftest.o` in 59220d725fbSmrg *64-bit*) 59320d725fbSmrg case $lt_cv_prog_gnu_ld in 59420d725fbSmrg yes*) LD="${LD-ld} -m elf64_sparc" ;; 59520d725fbSmrg *) LD="${LD-ld} -64" ;; 59620d725fbSmrg esac 59720d725fbSmrg ;; 59820d725fbSmrg esac 59920d725fbSmrg fi 60020d725fbSmrg rm -rf conftest* 60120d725fbSmrg ;; 60220d725fbSmrg 60320d725fbSmrgAC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], 60420d725fbSmrg[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 60520d725fbSmrg AC_CHECK_TOOL(DLLTOOL, dlltool, false) 60620d725fbSmrg AC_CHECK_TOOL(AS, as, false) 60720d725fbSmrg AC_CHECK_TOOL(OBJDUMP, objdump, false) 60820d725fbSmrg ;; 60920d725fbSmrg ]) 61020d725fbSmrgesac 61120d725fbSmrg 61220d725fbSmrgneed_locks="$enable_libtool_lock" 61320d725fbSmrg 61420d725fbSmrg])# _LT_AC_LOCK 61520d725fbSmrg 61620d725fbSmrg 61720d725fbSmrg# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 61820d725fbSmrg# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) 61920d725fbSmrg# ---------------------------------------------------------------- 62020d725fbSmrg# Check whether the given compiler option works 62120d725fbSmrgAC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], 62220d725fbSmrg[AC_REQUIRE([LT_AC_PROG_SED]) 62320d725fbSmrgAC_CACHE_CHECK([$1], [$2], 62420d725fbSmrg [$2=no 62520d725fbSmrg ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) 62620d725fbSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 62720d725fbSmrg lt_compiler_flag="$3" 62820d725fbSmrg # Insert the option either (1) after the last *FLAGS variable, or 62920d725fbSmrg # (2) before a word containing "conftest.", or (3) at the end. 63020d725fbSmrg # Note that $ac_compile itself does not contain backslashes and begins 63120d725fbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 63220d725fbSmrg # The option is referenced via a variable to avoid confusing sed. 63320d725fbSmrg lt_compile=`echo "$ac_compile" | $SED \ 63420d725fbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 63520d725fbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 63620d725fbSmrg -e 's:$: $lt_compiler_flag:'` 63720d725fbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 63820d725fbSmrg (eval "$lt_compile" 2>conftest.err) 63920d725fbSmrg ac_status=$? 64020d725fbSmrg cat conftest.err >&AS_MESSAGE_LOG_FD 64120d725fbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 64220d725fbSmrg if (exit $ac_status) && test -s "$ac_outfile"; then 64320d725fbSmrg # The compiler can only warn and ignore the option if not recognized 64420d725fbSmrg # So say no if there are warnings other than the usual output. 64520d725fbSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 64620d725fbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 64720d725fbSmrg if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 64820d725fbSmrg $2=yes 64920d725fbSmrg fi 65020d725fbSmrg fi 65120d725fbSmrg $rm conftest* 65220d725fbSmrg]) 65320d725fbSmrg 65420d725fbSmrgif test x"[$]$2" = xyes; then 65520d725fbSmrg ifelse([$5], , :, [$5]) 65620d725fbSmrgelse 65720d725fbSmrg ifelse([$6], , :, [$6]) 65820d725fbSmrgfi 65920d725fbSmrg])# AC_LIBTOOL_COMPILER_OPTION 66020d725fbSmrg 66120d725fbSmrg 66220d725fbSmrg# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, 66320d725fbSmrg# [ACTION-SUCCESS], [ACTION-FAILURE]) 66420d725fbSmrg# ------------------------------------------------------------ 66520d725fbSmrg# Check whether the given compiler option works 66620d725fbSmrgAC_DEFUN([AC_LIBTOOL_LINKER_OPTION], 66720d725fbSmrg[AC_CACHE_CHECK([$1], [$2], 66820d725fbSmrg [$2=no 66920d725fbSmrg save_LDFLAGS="$LDFLAGS" 67020d725fbSmrg LDFLAGS="$LDFLAGS $3" 67120d725fbSmrg printf "$lt_simple_link_test_code" > conftest.$ac_ext 67220d725fbSmrg if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 67320d725fbSmrg # The linker can only warn and ignore the option if not recognized 67420d725fbSmrg # So say no if there are warnings 67520d725fbSmrg if test -s conftest.err; then 67620d725fbSmrg # Append any errors to the config.log. 67720d725fbSmrg cat conftest.err 1>&AS_MESSAGE_LOG_FD 67820d725fbSmrg $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 67920d725fbSmrg $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 68020d725fbSmrg if diff conftest.exp conftest.er2 >/dev/null; then 68120d725fbSmrg $2=yes 68220d725fbSmrg fi 68320d725fbSmrg else 68420d725fbSmrg $2=yes 68520d725fbSmrg fi 68620d725fbSmrg fi 68720d725fbSmrg $rm conftest* 68820d725fbSmrg LDFLAGS="$save_LDFLAGS" 68920d725fbSmrg]) 69020d725fbSmrg 69120d725fbSmrgif test x"[$]$2" = xyes; then 69220d725fbSmrg ifelse([$4], , :, [$4]) 69320d725fbSmrgelse 69420d725fbSmrg ifelse([$5], , :, [$5]) 69520d725fbSmrgfi 69620d725fbSmrg])# AC_LIBTOOL_LINKER_OPTION 69720d725fbSmrg 69820d725fbSmrg 69920d725fbSmrg# AC_LIBTOOL_SYS_MAX_CMD_LEN 70020d725fbSmrg# -------------------------- 70120d725fbSmrgAC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], 70220d725fbSmrg[# find the maximum length of command line arguments 70320d725fbSmrgAC_MSG_CHECKING([the maximum length of command line arguments]) 70420d725fbSmrgAC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl 70520d725fbSmrg i=0 70620d725fbSmrg teststring="ABCD" 70720d725fbSmrg 70820d725fbSmrg case $build_os in 70920d725fbSmrg msdosdjgpp*) 71020d725fbSmrg # On DJGPP, this test can blow up pretty badly due to problems in libc 71120d725fbSmrg # (any single argument exceeding 2000 bytes causes a buffer overrun 71220d725fbSmrg # during glob expansion). Even if it were fixed, the result of this 71320d725fbSmrg # check would be larger than it should be. 71420d725fbSmrg lt_cv_sys_max_cmd_len=12288; # 12K is about right 71520d725fbSmrg ;; 71620d725fbSmrg 71720d725fbSmrg gnu*) 71820d725fbSmrg # Under GNU Hurd, this test is not required because there is 71920d725fbSmrg # no limit to the length of command line arguments. 72020d725fbSmrg # Libtool will interpret -1 as no limit whatsoever 72120d725fbSmrg lt_cv_sys_max_cmd_len=-1; 72220d725fbSmrg ;; 72320d725fbSmrg 72420d725fbSmrg cygwin* | mingw*) 72520d725fbSmrg # On Win9x/ME, this test blows up -- it succeeds, but takes 72620d725fbSmrg # about 5 minutes as the teststring grows exponentially. 72720d725fbSmrg # Worse, since 9x/ME are not pre-emptively multitasking, 72820d725fbSmrg # you end up with a "frozen" computer, even though with patience 72920d725fbSmrg # the test eventually succeeds (with a max line length of 256k). 73020d725fbSmrg # Instead, let's just punt: use the minimum linelength reported by 73120d725fbSmrg # all of the supported platforms: 8192 (on NT/2K/XP). 73220d725fbSmrg lt_cv_sys_max_cmd_len=8192; 73320d725fbSmrg ;; 73420d725fbSmrg 73520d725fbSmrg amigaos*) 73620d725fbSmrg # On AmigaOS with pdksh, this test takes hours, literally. 73720d725fbSmrg # So we just punt and use a minimum line length of 8192. 73820d725fbSmrg lt_cv_sys_max_cmd_len=8192; 73920d725fbSmrg ;; 74020d725fbSmrg 74120d725fbSmrg netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 74220d725fbSmrg # This has been around since 386BSD, at least. Likely further. 74320d725fbSmrg if test -x /sbin/sysctl; then 74420d725fbSmrg lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 74520d725fbSmrg elif test -x /usr/sbin/sysctl; then 74620d725fbSmrg lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 74720d725fbSmrg else 74820d725fbSmrg lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 74920d725fbSmrg fi 75020d725fbSmrg # And add a safety zone 75120d725fbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 75220d725fbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 75320d725fbSmrg ;; 75420d725fbSmrg 75520d725fbSmrg interix*) 75620d725fbSmrg # We know the value 262144 and hardcode it with a safety zone (like BSD) 75720d725fbSmrg lt_cv_sys_max_cmd_len=196608 75820d725fbSmrg ;; 75920d725fbSmrg 76020d725fbSmrg osf*) 76120d725fbSmrg # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 76220d725fbSmrg # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 76320d725fbSmrg # nice to cause kernel panics so lets avoid the loop below. 76420d725fbSmrg # First set a reasonable default. 76520d725fbSmrg lt_cv_sys_max_cmd_len=16384 76620d725fbSmrg # 76720d725fbSmrg if test -x /sbin/sysconfig; then 76820d725fbSmrg case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 76920d725fbSmrg *1*) lt_cv_sys_max_cmd_len=-1 ;; 77020d725fbSmrg esac 77120d725fbSmrg fi 77220d725fbSmrg ;; 77320d725fbSmrg sco3.2v5*) 77420d725fbSmrg lt_cv_sys_max_cmd_len=102400 77520d725fbSmrg ;; 77620d725fbSmrg sysv5* | sco5v6* | sysv4.2uw2*) 77720d725fbSmrg kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 77820d725fbSmrg if test -n "$kargmax"; then 77920d725fbSmrg lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` 78020d725fbSmrg else 78120d725fbSmrg lt_cv_sys_max_cmd_len=32768 78220d725fbSmrg fi 78320d725fbSmrg ;; 78420d725fbSmrg *) 78520d725fbSmrg # If test is not a shell built-in, we'll probably end up computing a 78620d725fbSmrg # maximum length that is only half of the actual maximum length, but 78720d725fbSmrg # we can't tell. 78820d725fbSmrg SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 78920d725fbSmrg while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ 79020d725fbSmrg = "XX$teststring") >/dev/null 2>&1 && 79120d725fbSmrg new_result=`expr "X$teststring" : ".*" 2>&1` && 79220d725fbSmrg lt_cv_sys_max_cmd_len=$new_result && 79320d725fbSmrg test $i != 17 # 1/2 MB should be enough 79420d725fbSmrg do 79520d725fbSmrg i=`expr $i + 1` 79620d725fbSmrg teststring=$teststring$teststring 79720d725fbSmrg done 79820d725fbSmrg teststring= 79920d725fbSmrg # Add a significant safety factor because C++ compilers can tack on massive 80020d725fbSmrg # amounts of additional arguments before passing them to the linker. 80120d725fbSmrg # It appears as though 1/2 is a usable value. 80220d725fbSmrg lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 80320d725fbSmrg ;; 80420d725fbSmrg esac 80520d725fbSmrg]) 80620d725fbSmrgif test -n $lt_cv_sys_max_cmd_len ; then 80720d725fbSmrg AC_MSG_RESULT($lt_cv_sys_max_cmd_len) 80820d725fbSmrgelse 80920d725fbSmrg AC_MSG_RESULT(none) 81020d725fbSmrgfi 81120d725fbSmrg])# AC_LIBTOOL_SYS_MAX_CMD_LEN 81220d725fbSmrg 81320d725fbSmrg 81420d725fbSmrg# _LT_AC_CHECK_DLFCN 81520d725fbSmrg# ------------------ 81620d725fbSmrgAC_DEFUN([_LT_AC_CHECK_DLFCN], 81720d725fbSmrg[AC_CHECK_HEADERS(dlfcn.h)dnl 81820d725fbSmrg])# _LT_AC_CHECK_DLFCN 81920d725fbSmrg 82020d725fbSmrg 82120d725fbSmrg# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 82220d725fbSmrg# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 82320d725fbSmrg# --------------------------------------------------------------------- 82420d725fbSmrgAC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 82520d725fbSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 82620d725fbSmrgif test "$cross_compiling" = yes; then : 82720d725fbSmrg [$4] 82820d725fbSmrgelse 82920d725fbSmrg lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 83020d725fbSmrg lt_status=$lt_dlunknown 83120d725fbSmrg cat > conftest.$ac_ext <<EOF 83220d725fbSmrg[#line __oline__ "configure" 83320d725fbSmrg#include "confdefs.h" 83420d725fbSmrg 83520d725fbSmrg#if HAVE_DLFCN_H 83620d725fbSmrg#include <dlfcn.h> 83720d725fbSmrg#endif 83820d725fbSmrg 83920d725fbSmrg#include <stdio.h> 84020d725fbSmrg 84120d725fbSmrg#ifdef RTLD_GLOBAL 84220d725fbSmrg# define LT_DLGLOBAL RTLD_GLOBAL 84320d725fbSmrg#else 84420d725fbSmrg# ifdef DL_GLOBAL 84520d725fbSmrg# define LT_DLGLOBAL DL_GLOBAL 84620d725fbSmrg# else 84720d725fbSmrg# define LT_DLGLOBAL 0 84820d725fbSmrg# endif 84920d725fbSmrg#endif 85020d725fbSmrg 85120d725fbSmrg/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 85220d725fbSmrg find out it does not work in some platform. */ 85320d725fbSmrg#ifndef LT_DLLAZY_OR_NOW 85420d725fbSmrg# ifdef RTLD_LAZY 85520d725fbSmrg# define LT_DLLAZY_OR_NOW RTLD_LAZY 85620d725fbSmrg# else 85720d725fbSmrg# ifdef DL_LAZY 85820d725fbSmrg# define LT_DLLAZY_OR_NOW DL_LAZY 85920d725fbSmrg# else 86020d725fbSmrg# ifdef RTLD_NOW 86120d725fbSmrg# define LT_DLLAZY_OR_NOW RTLD_NOW 86220d725fbSmrg# else 86320d725fbSmrg# ifdef DL_NOW 86420d725fbSmrg# define LT_DLLAZY_OR_NOW DL_NOW 86520d725fbSmrg# else 86620d725fbSmrg# define LT_DLLAZY_OR_NOW 0 86720d725fbSmrg# endif 86820d725fbSmrg# endif 86920d725fbSmrg# endif 87020d725fbSmrg# endif 87120d725fbSmrg#endif 87220d725fbSmrg 87320d725fbSmrg#ifdef __cplusplus 87420d725fbSmrgextern "C" void exit (int); 87520d725fbSmrg#endif 87620d725fbSmrg 87720d725fbSmrgvoid fnord() { int i=42;} 87820d725fbSmrgint main () 87920d725fbSmrg{ 88020d725fbSmrg void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 88120d725fbSmrg int status = $lt_dlunknown; 88220d725fbSmrg 88320d725fbSmrg if (self) 88420d725fbSmrg { 88520d725fbSmrg if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 88620d725fbSmrg else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 88720d725fbSmrg /* dlclose (self); */ 88820d725fbSmrg } 88920d725fbSmrg else 89020d725fbSmrg puts (dlerror ()); 89120d725fbSmrg 89220d725fbSmrg exit (status); 89320d725fbSmrg}] 89420d725fbSmrgEOF 89520d725fbSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 89620d725fbSmrg (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null 89720d725fbSmrg lt_status=$? 89820d725fbSmrg case x$lt_status in 89920d725fbSmrg x$lt_dlno_uscore) $1 ;; 90020d725fbSmrg x$lt_dlneed_uscore) $2 ;; 90120d725fbSmrg x$lt_dlunknown|x*) $3 ;; 90220d725fbSmrg esac 90320d725fbSmrg else : 90420d725fbSmrg # compilation failed 90520d725fbSmrg $3 90620d725fbSmrg fi 90720d725fbSmrgfi 90820d725fbSmrgrm -fr conftest* 90920d725fbSmrg])# _LT_AC_TRY_DLOPEN_SELF 91020d725fbSmrg 91120d725fbSmrg 91220d725fbSmrg# AC_LIBTOOL_DLOPEN_SELF 91320d725fbSmrg# ---------------------- 91420d725fbSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 91520d725fbSmrg[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 91620d725fbSmrgif test "x$enable_dlopen" != xyes; then 91720d725fbSmrg enable_dlopen=unknown 91820d725fbSmrg enable_dlopen_self=unknown 91920d725fbSmrg enable_dlopen_self_static=unknown 92020d725fbSmrgelse 92120d725fbSmrg lt_cv_dlopen=no 92220d725fbSmrg lt_cv_dlopen_libs= 92320d725fbSmrg 92420d725fbSmrg case $host_os in 92520d725fbSmrg beos*) 92620d725fbSmrg lt_cv_dlopen="load_add_on" 92720d725fbSmrg lt_cv_dlopen_libs= 92820d725fbSmrg lt_cv_dlopen_self=yes 92920d725fbSmrg ;; 93020d725fbSmrg 93120d725fbSmrg mingw* | pw32*) 93220d725fbSmrg lt_cv_dlopen="LoadLibrary" 93320d725fbSmrg lt_cv_dlopen_libs= 93420d725fbSmrg ;; 93520d725fbSmrg 93620d725fbSmrg cygwin*) 93720d725fbSmrg lt_cv_dlopen="dlopen" 93820d725fbSmrg lt_cv_dlopen_libs= 93920d725fbSmrg ;; 94020d725fbSmrg 94120d725fbSmrg darwin*) 94220d725fbSmrg # if libdl is installed we need to link against it 94320d725fbSmrg AC_CHECK_LIB([dl], [dlopen], 94420d725fbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ 94520d725fbSmrg lt_cv_dlopen="dyld" 94620d725fbSmrg lt_cv_dlopen_libs= 94720d725fbSmrg lt_cv_dlopen_self=yes 94820d725fbSmrg ]) 94920d725fbSmrg ;; 95020d725fbSmrg 95120d725fbSmrg *) 95220d725fbSmrg AC_CHECK_FUNC([shl_load], 95320d725fbSmrg [lt_cv_dlopen="shl_load"], 95420d725fbSmrg [AC_CHECK_LIB([dld], [shl_load], 95520d725fbSmrg [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 95620d725fbSmrg [AC_CHECK_FUNC([dlopen], 95720d725fbSmrg [lt_cv_dlopen="dlopen"], 95820d725fbSmrg [AC_CHECK_LIB([dl], [dlopen], 95920d725fbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 96020d725fbSmrg [AC_CHECK_LIB([svld], [dlopen], 96120d725fbSmrg [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 96220d725fbSmrg [AC_CHECK_LIB([dld], [dld_link], 96320d725fbSmrg [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 96420d725fbSmrg ]) 96520d725fbSmrg ]) 96620d725fbSmrg ]) 96720d725fbSmrg ]) 96820d725fbSmrg ]) 96920d725fbSmrg ;; 97020d725fbSmrg esac 97120d725fbSmrg 97220d725fbSmrg if test "x$lt_cv_dlopen" != xno; then 97320d725fbSmrg enable_dlopen=yes 97420d725fbSmrg else 97520d725fbSmrg enable_dlopen=no 97620d725fbSmrg fi 97720d725fbSmrg 97820d725fbSmrg case $lt_cv_dlopen in 97920d725fbSmrg dlopen) 98020d725fbSmrg save_CPPFLAGS="$CPPFLAGS" 98120d725fbSmrg test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 98220d725fbSmrg 98320d725fbSmrg save_LDFLAGS="$LDFLAGS" 98420d725fbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 98520d725fbSmrg 98620d725fbSmrg save_LIBS="$LIBS" 98720d725fbSmrg LIBS="$lt_cv_dlopen_libs $LIBS" 98820d725fbSmrg 98920d725fbSmrg AC_CACHE_CHECK([whether a program can dlopen itself], 99020d725fbSmrg lt_cv_dlopen_self, [dnl 99120d725fbSmrg _LT_AC_TRY_DLOPEN_SELF( 99220d725fbSmrg lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 99320d725fbSmrg lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 99420d725fbSmrg ]) 99520d725fbSmrg 99620d725fbSmrg if test "x$lt_cv_dlopen_self" = xyes; then 99720d725fbSmrg wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 99820d725fbSmrg AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 99920d725fbSmrg lt_cv_dlopen_self_static, [dnl 100020d725fbSmrg _LT_AC_TRY_DLOPEN_SELF( 100120d725fbSmrg lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 100220d725fbSmrg lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 100320d725fbSmrg ]) 100420d725fbSmrg fi 100520d725fbSmrg 100620d725fbSmrg CPPFLAGS="$save_CPPFLAGS" 100720d725fbSmrg LDFLAGS="$save_LDFLAGS" 100820d725fbSmrg LIBS="$save_LIBS" 100920d725fbSmrg ;; 101020d725fbSmrg esac 101120d725fbSmrg 101220d725fbSmrg case $lt_cv_dlopen_self in 101320d725fbSmrg yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 101420d725fbSmrg *) enable_dlopen_self=unknown ;; 101520d725fbSmrg esac 101620d725fbSmrg 101720d725fbSmrg case $lt_cv_dlopen_self_static in 101820d725fbSmrg yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 101920d725fbSmrg *) enable_dlopen_self_static=unknown ;; 102020d725fbSmrg esac 102120d725fbSmrgfi 102220d725fbSmrg])# AC_LIBTOOL_DLOPEN_SELF 102320d725fbSmrg 102420d725fbSmrg 102520d725fbSmrg# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) 102620d725fbSmrg# --------------------------------- 102720d725fbSmrg# Check to see if options -c and -o are simultaneously supported by compiler 102820d725fbSmrgAC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], 102920d725fbSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 103020d725fbSmrgAC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], 103120d725fbSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], 103220d725fbSmrg [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no 103320d725fbSmrg $rm -r conftest 2>/dev/null 103420d725fbSmrg mkdir conftest 103520d725fbSmrg cd conftest 103620d725fbSmrg mkdir out 103720d725fbSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 103820d725fbSmrg 103920d725fbSmrg lt_compiler_flag="-o out/conftest2.$ac_objext" 104020d725fbSmrg # Insert the option either (1) after the last *FLAGS variable, or 104120d725fbSmrg # (2) before a word containing "conftest.", or (3) at the end. 104220d725fbSmrg # Note that $ac_compile itself does not contain backslashes and begins 104320d725fbSmrg # with a dollar sign (not a hyphen), so the echo should work correctly. 104420d725fbSmrg lt_compile=`echo "$ac_compile" | $SED \ 104520d725fbSmrg -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 104620d725fbSmrg -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ 104720d725fbSmrg -e 's:$: $lt_compiler_flag:'` 104820d725fbSmrg (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) 104920d725fbSmrg (eval "$lt_compile" 2>out/conftest.err) 105020d725fbSmrg ac_status=$? 105120d725fbSmrg cat out/conftest.err >&AS_MESSAGE_LOG_FD 105220d725fbSmrg echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD 105320d725fbSmrg if (exit $ac_status) && test -s out/conftest2.$ac_objext 105420d725fbSmrg then 105520d725fbSmrg # The compiler can only warn and ignore the option if not recognized 105620d725fbSmrg # So say no if there are warnings 105720d725fbSmrg $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 105820d725fbSmrg $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 105920d725fbSmrg if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 106020d725fbSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 106120d725fbSmrg fi 106220d725fbSmrg fi 106320d725fbSmrg chmod u+w . 2>&AS_MESSAGE_LOG_FD 106420d725fbSmrg $rm conftest* 106520d725fbSmrg # SGI C++ compiler will create directory out/ii_files/ for 106620d725fbSmrg # template instantiation 106720d725fbSmrg test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 106820d725fbSmrg $rm out/* && rmdir out 106920d725fbSmrg cd .. 107020d725fbSmrg rmdir conftest 107120d725fbSmrg $rm conftest* 107220d725fbSmrg]) 107320d725fbSmrg])# AC_LIBTOOL_PROG_CC_C_O 107420d725fbSmrg 107520d725fbSmrg 107620d725fbSmrg# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) 107720d725fbSmrg# ----------------------------------------- 107820d725fbSmrg# Check to see if we can do hard links to lock some files if needed 107920d725fbSmrgAC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], 108020d725fbSmrg[AC_REQUIRE([_LT_AC_LOCK])dnl 108120d725fbSmrg 108220d725fbSmrghard_links="nottested" 108320d725fbSmrgif test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then 108420d725fbSmrg # do not overwrite the value of need_locks provided by the user 108520d725fbSmrg AC_MSG_CHECKING([if we can lock with hard links]) 108620d725fbSmrg hard_links=yes 108720d725fbSmrg $rm conftest* 108820d725fbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 108920d725fbSmrg touch conftest.a 109020d725fbSmrg ln conftest.a conftest.b 2>&5 || hard_links=no 109120d725fbSmrg ln conftest.a conftest.b 2>/dev/null && hard_links=no 109220d725fbSmrg AC_MSG_RESULT([$hard_links]) 109320d725fbSmrg if test "$hard_links" = no; then 109420d725fbSmrg AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) 109520d725fbSmrg need_locks=warn 109620d725fbSmrg fi 109720d725fbSmrgelse 109820d725fbSmrg need_locks=no 109920d725fbSmrgfi 110020d725fbSmrg])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS 110120d725fbSmrg 110220d725fbSmrg 110320d725fbSmrg# AC_LIBTOOL_OBJDIR 110420d725fbSmrg# ----------------- 110520d725fbSmrgAC_DEFUN([AC_LIBTOOL_OBJDIR], 110620d725fbSmrg[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], 110720d725fbSmrg[rm -f .libs 2>/dev/null 110820d725fbSmrgmkdir .libs 2>/dev/null 110920d725fbSmrgif test -d .libs; then 111020d725fbSmrg lt_cv_objdir=.libs 111120d725fbSmrgelse 111220d725fbSmrg # MS-DOS does not allow filenames that begin with a dot. 111320d725fbSmrg lt_cv_objdir=_libs 111420d725fbSmrgfi 111520d725fbSmrgrmdir .libs 2>/dev/null]) 111620d725fbSmrgobjdir=$lt_cv_objdir 111720d725fbSmrg])# AC_LIBTOOL_OBJDIR 111820d725fbSmrg 111920d725fbSmrg 112020d725fbSmrg# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) 112120d725fbSmrg# ---------------------------------------------- 112220d725fbSmrg# Check hardcoding attributes. 112320d725fbSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], 112420d725fbSmrg[AC_MSG_CHECKING([how to hardcode library paths into programs]) 112520d725fbSmrg_LT_AC_TAGVAR(hardcode_action, $1)= 112620d725fbSmrgif test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ 112720d725fbSmrg test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ 112820d725fbSmrg test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then 112920d725fbSmrg 113020d725fbSmrg # We can hardcode non-existant directories. 113120d725fbSmrg if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && 113220d725fbSmrg # If the only mechanism to avoid hardcoding is shlibpath_var, we 113320d725fbSmrg # have to relink, otherwise we might link with an installed library 113420d725fbSmrg # when we should be linking with a yet-to-be-installed one 113520d725fbSmrg ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && 113620d725fbSmrg test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then 113720d725fbSmrg # Linking always hardcodes the temporary library directory. 113820d725fbSmrg _LT_AC_TAGVAR(hardcode_action, $1)=relink 113920d725fbSmrg else 114020d725fbSmrg # We can link without hardcoding, and we can hardcode nonexisting dirs. 114120d725fbSmrg _LT_AC_TAGVAR(hardcode_action, $1)=immediate 114220d725fbSmrg fi 114320d725fbSmrgelse 114420d725fbSmrg # We cannot hardcode anything, or else we can only hardcode existing 114520d725fbSmrg # directories. 114620d725fbSmrg _LT_AC_TAGVAR(hardcode_action, $1)=unsupported 114720d725fbSmrgfi 114820d725fbSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) 114920d725fbSmrg 115020d725fbSmrgif test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then 115120d725fbSmrg # Fast installation is not supported 115220d725fbSmrg enable_fast_install=no 115320d725fbSmrgelif test "$shlibpath_overrides_runpath" = yes || 115420d725fbSmrg test "$enable_shared" = no; then 115520d725fbSmrg # Fast installation is not necessary 115620d725fbSmrg enable_fast_install=needless 115720d725fbSmrgfi 115820d725fbSmrg])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH 115920d725fbSmrg 116020d725fbSmrg 116120d725fbSmrg# AC_LIBTOOL_SYS_LIB_STRIP 116220d725fbSmrg# ------------------------ 116320d725fbSmrgAC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], 116420d725fbSmrg[striplib= 116520d725fbSmrgold_striplib= 116620d725fbSmrgAC_MSG_CHECKING([whether stripping libraries is possible]) 116720d725fbSmrgif test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 116820d725fbSmrg test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 116920d725fbSmrg test -z "$striplib" && striplib="$STRIP --strip-unneeded" 117020d725fbSmrg AC_MSG_RESULT([yes]) 117120d725fbSmrgelse 117220d725fbSmrg# FIXME - insert some real tests, host_os isn't really good enough 117320d725fbSmrg case $host_os in 117420d725fbSmrg darwin*) 117520d725fbSmrg if test -n "$STRIP" ; then 117620d725fbSmrg striplib="$STRIP -x" 117720d725fbSmrg AC_MSG_RESULT([yes]) 117820d725fbSmrg else 117920d725fbSmrg AC_MSG_RESULT([no]) 118020d725fbSmrgfi 118120d725fbSmrg ;; 118220d725fbSmrg *) 118320d725fbSmrg AC_MSG_RESULT([no]) 118420d725fbSmrg ;; 118520d725fbSmrg esac 118620d725fbSmrgfi 118720d725fbSmrg])# AC_LIBTOOL_SYS_LIB_STRIP 118820d725fbSmrg 118920d725fbSmrg 119020d725fbSmrg# AC_LIBTOOL_SYS_DYNAMIC_LINKER 119120d725fbSmrg# ----------------------------- 119220d725fbSmrg# PORTME Fill in your ld.so characteristics 119320d725fbSmrgAC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], 119420d725fbSmrg[AC_MSG_CHECKING([dynamic linker characteristics]) 119520d725fbSmrglibrary_names_spec= 119620d725fbSmrglibname_spec='lib$name' 119720d725fbSmrgsoname_spec= 119820d725fbSmrgshrext_cmds=".so" 119920d725fbSmrgpostinstall_cmds= 120020d725fbSmrgpostuninstall_cmds= 120120d725fbSmrgfinish_cmds= 120220d725fbSmrgfinish_eval= 120320d725fbSmrgshlibpath_var= 120420d725fbSmrgshlibpath_overrides_runpath=unknown 120520d725fbSmrgversion_type=none 120620d725fbSmrgdynamic_linker="$host_os ld.so" 120720d725fbSmrgsys_lib_dlsearch_path_spec="/lib /usr/lib" 120820d725fbSmrgif test "$GCC" = yes; then 120920d725fbSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 121020d725fbSmrg if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 121120d725fbSmrg # if the path contains ";" then we assume it to be the separator 121220d725fbSmrg # otherwise default to the standard path separator (i.e. ":") - it is 121320d725fbSmrg # assumed that no part of a normal pathname contains ";" but that should 121420d725fbSmrg # okay in the real world where ";" in dirpaths is itself problematic. 121520d725fbSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 121620d725fbSmrg else 121720d725fbSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 121820d725fbSmrg fi 121920d725fbSmrgelse 122020d725fbSmrg sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 122120d725fbSmrgfi 122220d725fbSmrgneed_lib_prefix=unknown 122320d725fbSmrghardcode_into_libs=no 122420d725fbSmrg 122520d725fbSmrg# when you set need_version to no, make sure it does not cause -set_version 122620d725fbSmrg# flags to be left without arguments 122720d725fbSmrgneed_version=unknown 122820d725fbSmrg 122920d725fbSmrgcase $host_os in 123020d725fbSmrgaix3*) 123120d725fbSmrg version_type=linux 123220d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 123320d725fbSmrg shlibpath_var=LIBPATH 123420d725fbSmrg 123520d725fbSmrg # AIX 3 has no versioning support, so we append a major version to the name. 123620d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 123720d725fbSmrg ;; 123820d725fbSmrg 123920d725fbSmrgaix4* | aix5*) 124020d725fbSmrg version_type=linux 124120d725fbSmrg need_lib_prefix=no 124220d725fbSmrg need_version=no 124320d725fbSmrg hardcode_into_libs=yes 124420d725fbSmrg if test "$host_cpu" = ia64; then 124520d725fbSmrg # AIX 5 supports IA64 124620d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 124720d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 124820d725fbSmrg else 124920d725fbSmrg # With GCC up to 2.95.x, collect2 would create an import file 125020d725fbSmrg # for dependence libraries. The import file would start with 125120d725fbSmrg # the line `#! .'. This would cause the generated library to 125220d725fbSmrg # depend on `.', always an invalid library. This was fixed in 125320d725fbSmrg # development snapshots of GCC prior to 3.0. 125420d725fbSmrg case $host_os in 125520d725fbSmrg aix4 | aix4.[[01]] | aix4.[[01]].*) 125620d725fbSmrg if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 125720d725fbSmrg echo ' yes ' 125820d725fbSmrg echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 125920d725fbSmrg : 126020d725fbSmrg else 126120d725fbSmrg can_build_shared=no 126220d725fbSmrg fi 126320d725fbSmrg ;; 126420d725fbSmrg esac 126520d725fbSmrg # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 126620d725fbSmrg # soname into executable. Probably we can add versioning support to 126720d725fbSmrg # collect2, so additional links can be useful in future. 126820d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 126920d725fbSmrg # If using run time linking (on AIX 4.2 or later) use lib<name>.so 127020d725fbSmrg # instead of lib<name>.a to let people know that these are not 127120d725fbSmrg # typical AIX shared libraries. 127220d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 127320d725fbSmrg else 127420d725fbSmrg # We preserve .a as extension for shared libraries through AIX4.2 127520d725fbSmrg # and later when we are not doing run time linking. 127620d725fbSmrg library_names_spec='${libname}${release}.a $libname.a' 127720d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 127820d725fbSmrg fi 127920d725fbSmrg shlibpath_var=LIBPATH 128020d725fbSmrg fi 128120d725fbSmrg ;; 128220d725fbSmrg 128320d725fbSmrgamigaos*) 128420d725fbSmrg library_names_spec='$libname.ixlibrary $libname.a' 128520d725fbSmrg # Create ${libname}_ixlibrary.a entries in /sys/libs. 128620d725fbSmrg 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' 128720d725fbSmrg ;; 128820d725fbSmrg 128920d725fbSmrgbeos*) 129020d725fbSmrg library_names_spec='${libname}${shared_ext}' 129120d725fbSmrg dynamic_linker="$host_os ld.so" 129220d725fbSmrg shlibpath_var=LIBRARY_PATH 129320d725fbSmrg ;; 129420d725fbSmrg 129520d725fbSmrgbsdi[[45]]*) 129620d725fbSmrg version_type=linux 129720d725fbSmrg need_version=no 129820d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 129920d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 130020d725fbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 130120d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 130220d725fbSmrg sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 130320d725fbSmrg sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 130420d725fbSmrg # the default ld.so.conf also contains /usr/contrib/lib and 130520d725fbSmrg # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 130620d725fbSmrg # libtool to hard-code these into programs 130720d725fbSmrg ;; 130820d725fbSmrg 130920d725fbSmrgcygwin* | mingw* | pw32*) 131020d725fbSmrg version_type=windows 131120d725fbSmrg shrext_cmds=".dll" 131220d725fbSmrg need_version=no 131320d725fbSmrg need_lib_prefix=no 131420d725fbSmrg 131520d725fbSmrg case $GCC,$host_os in 131620d725fbSmrg yes,cygwin* | yes,mingw* | yes,pw32*) 131720d725fbSmrg library_names_spec='$libname.dll.a' 131820d725fbSmrg # DLL is installed to $(libdir)/../bin by postinstall_cmds 131920d725fbSmrg postinstall_cmds='base_file=`basename \${file}`~ 132020d725fbSmrg dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 132120d725fbSmrg dldir=$destdir/`dirname \$dlpath`~ 132220d725fbSmrg test -d \$dldir || mkdir -p \$dldir~ 132320d725fbSmrg $install_prog $dir/$dlname \$dldir/$dlname~ 132420d725fbSmrg chmod a+x \$dldir/$dlname' 132520d725fbSmrg postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 132620d725fbSmrg dlpath=$dir/\$dldll~ 132720d725fbSmrg $rm \$dlpath' 132820d725fbSmrg shlibpath_overrides_runpath=yes 132920d725fbSmrg 133020d725fbSmrg case $host_os in 133120d725fbSmrg cygwin*) 133220d725fbSmrg # Cygwin DLLs use 'cyg' prefix rather than 'lib' 133320d725fbSmrg soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 133420d725fbSmrg sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 133520d725fbSmrg ;; 133620d725fbSmrg mingw*) 133720d725fbSmrg # MinGW DLLs use traditional 'lib' prefix 133820d725fbSmrg soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 133920d725fbSmrg sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 134020d725fbSmrg if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then 134120d725fbSmrg # It is most probably a Windows format PATH printed by 134220d725fbSmrg # mingw gcc, but we are running on Cygwin. Gcc prints its search 134320d725fbSmrg # path with ; separators, and with drive letters. We can handle the 134420d725fbSmrg # drive letters (cygwin fileutils understands them), so leave them, 134520d725fbSmrg # especially as we might pass files found there to a mingw objdump, 134620d725fbSmrg # which wouldn't understand a cygwinified path. Ahh. 134720d725fbSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 134820d725fbSmrg else 134920d725fbSmrg sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 135020d725fbSmrg fi 135120d725fbSmrg ;; 135220d725fbSmrg pw32*) 135320d725fbSmrg # pw32 DLLs use 'pw' prefix rather than 'lib' 135420d725fbSmrg library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' 135520d725fbSmrg ;; 135620d725fbSmrg esac 135720d725fbSmrg ;; 135820d725fbSmrg 135920d725fbSmrg *) 136020d725fbSmrg library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' 136120d725fbSmrg ;; 136220d725fbSmrg esac 136320d725fbSmrg dynamic_linker='Win32 ld.exe' 136420d725fbSmrg # FIXME: first we should search . and the directory the executable is in 136520d725fbSmrg shlibpath_var=PATH 136620d725fbSmrg ;; 136720d725fbSmrg 136820d725fbSmrgdarwin* | rhapsody*) 136920d725fbSmrg dynamic_linker="$host_os dyld" 137020d725fbSmrg version_type=darwin 137120d725fbSmrg need_lib_prefix=no 137220d725fbSmrg need_version=no 137320d725fbSmrg library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 137420d725fbSmrg soname_spec='${libname}${release}${major}$shared_ext' 137520d725fbSmrg shlibpath_overrides_runpath=yes 137620d725fbSmrg shlibpath_var=DYLD_LIBRARY_PATH 137720d725fbSmrg shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 137820d725fbSmrg # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 137920d725fbSmrg if test "$GCC" = yes; then 138020d725fbSmrg 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"` 138120d725fbSmrg else 138220d725fbSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 138320d725fbSmrg fi 138420d725fbSmrg sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 138520d725fbSmrg ;; 138620d725fbSmrg 138720d725fbSmrgdgux*) 138820d725fbSmrg version_type=linux 138920d725fbSmrg need_lib_prefix=no 139020d725fbSmrg need_version=no 139120d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 139220d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 139320d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 139420d725fbSmrg ;; 139520d725fbSmrg 139620d725fbSmrgfreebsd1*) 139720d725fbSmrg dynamic_linker=no 139820d725fbSmrg ;; 139920d725fbSmrg 140020d725fbSmrgfreebsd* | dragonfly*) 140120d725fbSmrg # DragonFly does not have aout. When/if they implement a new 140220d725fbSmrg # versioning mechanism, adjust this. 140320d725fbSmrg if test -x /usr/bin/objformat; then 140420d725fbSmrg objformat=`/usr/bin/objformat` 140520d725fbSmrg else 140620d725fbSmrg case $host_os in 140720d725fbSmrg freebsd[[123]]*) objformat=aout ;; 140820d725fbSmrg *) objformat=elf ;; 140920d725fbSmrg esac 141020d725fbSmrg fi 141120d725fbSmrg version_type=freebsd-$objformat 141220d725fbSmrg case $version_type in 141320d725fbSmrg freebsd-elf*) 141420d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 141520d725fbSmrg need_version=no 141620d725fbSmrg need_lib_prefix=no 141720d725fbSmrg ;; 141820d725fbSmrg freebsd-*) 141920d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 142020d725fbSmrg need_version=yes 142120d725fbSmrg ;; 142220d725fbSmrg esac 142320d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 142420d725fbSmrg case $host_os in 142520d725fbSmrg freebsd2*) 142620d725fbSmrg shlibpath_overrides_runpath=yes 142720d725fbSmrg ;; 142820d725fbSmrg freebsd3.[[01]]* | freebsdelf3.[[01]]*) 142920d725fbSmrg shlibpath_overrides_runpath=yes 143020d725fbSmrg hardcode_into_libs=yes 143120d725fbSmrg ;; 143220d725fbSmrg freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ 143320d725fbSmrg freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) 143420d725fbSmrg shlibpath_overrides_runpath=no 143520d725fbSmrg hardcode_into_libs=yes 143620d725fbSmrg ;; 143720d725fbSmrg freebsd*) # from 4.6 on 143820d725fbSmrg shlibpath_overrides_runpath=yes 143920d725fbSmrg hardcode_into_libs=yes 144020d725fbSmrg ;; 144120d725fbSmrg esac 144220d725fbSmrg ;; 144320d725fbSmrg 144420d725fbSmrggnu*) 144520d725fbSmrg version_type=linux 144620d725fbSmrg need_lib_prefix=no 144720d725fbSmrg need_version=no 144820d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 144920d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 145020d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 145120d725fbSmrg hardcode_into_libs=yes 145220d725fbSmrg ;; 145320d725fbSmrg 145420d725fbSmrghpux9* | hpux10* | hpux11*) 145520d725fbSmrg # Give a soname corresponding to the major version so that dld.sl refuses to 145620d725fbSmrg # link against other versions. 145720d725fbSmrg version_type=sunos 145820d725fbSmrg need_lib_prefix=no 145920d725fbSmrg need_version=no 146020d725fbSmrg case $host_cpu in 146120d725fbSmrg ia64*) 146220d725fbSmrg shrext_cmds='.so' 146320d725fbSmrg hardcode_into_libs=yes 146420d725fbSmrg dynamic_linker="$host_os dld.so" 146520d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 146620d725fbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 146720d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 146820d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 146920d725fbSmrg if test "X$HPUX_IA64_MODE" = X32; then 147020d725fbSmrg sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 147120d725fbSmrg else 147220d725fbSmrg sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 147320d725fbSmrg fi 147420d725fbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 147520d725fbSmrg ;; 147620d725fbSmrg hppa*64*) 147720d725fbSmrg shrext_cmds='.sl' 147820d725fbSmrg hardcode_into_libs=yes 147920d725fbSmrg dynamic_linker="$host_os dld.sl" 148020d725fbSmrg shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 148120d725fbSmrg shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 148220d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 148320d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 148420d725fbSmrg sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 148520d725fbSmrg sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 148620d725fbSmrg ;; 148720d725fbSmrg *) 148820d725fbSmrg shrext_cmds='.sl' 148920d725fbSmrg dynamic_linker="$host_os dld.sl" 149020d725fbSmrg shlibpath_var=SHLIB_PATH 149120d725fbSmrg shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 149220d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 149320d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 149420d725fbSmrg ;; 149520d725fbSmrg esac 149620d725fbSmrg # HP-UX runs *really* slowly unless shared libraries are mode 555. 149720d725fbSmrg postinstall_cmds='chmod 555 $lib' 149820d725fbSmrg ;; 149920d725fbSmrg 150020d725fbSmrginterix3*) 150120d725fbSmrg version_type=linux 150220d725fbSmrg need_lib_prefix=no 150320d725fbSmrg need_version=no 150420d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 150520d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 150620d725fbSmrg dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 150720d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 150820d725fbSmrg shlibpath_overrides_runpath=no 150920d725fbSmrg hardcode_into_libs=yes 151020d725fbSmrg ;; 151120d725fbSmrg 151220d725fbSmrgirix5* | irix6* | nonstopux*) 151320d725fbSmrg case $host_os in 151420d725fbSmrg nonstopux*) version_type=nonstopux ;; 151520d725fbSmrg *) 151620d725fbSmrg if test "$lt_cv_prog_gnu_ld" = yes; then 151720d725fbSmrg version_type=linux 151820d725fbSmrg else 151920d725fbSmrg version_type=irix 152020d725fbSmrg fi ;; 152120d725fbSmrg esac 152220d725fbSmrg need_lib_prefix=no 152320d725fbSmrg need_version=no 152420d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 152520d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 152620d725fbSmrg case $host_os in 152720d725fbSmrg irix5* | nonstopux*) 152820d725fbSmrg libsuff= shlibsuff= 152920d725fbSmrg ;; 153020d725fbSmrg *) 153120d725fbSmrg case $LD in # libtool.m4 will add one of these switches to LD 153220d725fbSmrg *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 153320d725fbSmrg libsuff= shlibsuff= libmagic=32-bit;; 153420d725fbSmrg *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 153520d725fbSmrg libsuff=32 shlibsuff=N32 libmagic=N32;; 153620d725fbSmrg *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 153720d725fbSmrg libsuff=64 shlibsuff=64 libmagic=64-bit;; 153820d725fbSmrg *) libsuff= shlibsuff= libmagic=never-match;; 153920d725fbSmrg esac 154020d725fbSmrg ;; 154120d725fbSmrg esac 154220d725fbSmrg shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 154320d725fbSmrg shlibpath_overrides_runpath=no 154420d725fbSmrg sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 154520d725fbSmrg sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 154620d725fbSmrg hardcode_into_libs=yes 154720d725fbSmrg ;; 154820d725fbSmrg 154920d725fbSmrg# No shared lib support for Linux oldld, aout, or coff. 155020d725fbSmrglinux*oldld* | linux*aout* | linux*coff*) 155120d725fbSmrg dynamic_linker=no 155220d725fbSmrg ;; 155320d725fbSmrg 155420d725fbSmrg# This must be Linux ELF. 155520d725fbSmrglinux* | k*bsd*-gnu) 155620d725fbSmrg version_type=linux 155720d725fbSmrg need_lib_prefix=no 155820d725fbSmrg need_version=no 155920d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 156020d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 156120d725fbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 156220d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 156320d725fbSmrg shlibpath_overrides_runpath=no 156420d725fbSmrg # This implies no fast_install, which is unacceptable. 156520d725fbSmrg # Some rework will be needed to allow for fast_install 156620d725fbSmrg # before this can be enabled. 156720d725fbSmrg hardcode_into_libs=yes 156820d725fbSmrg 156920d725fbSmrg # Append ld.so.conf contents to the search path 157020d725fbSmrg if test -f /etc/ld.so.conf; then 157120d725fbSmrg 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' ' '` 157220d725fbSmrg sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 157320d725fbSmrg fi 157420d725fbSmrg 157520d725fbSmrg # We used to test for /lib/ld.so.1 and disable shared libraries on 157620d725fbSmrg # powerpc, because MkLinux only supported shared libraries with the 157720d725fbSmrg # GNU dynamic linker. Since this was broken with cross compilers, 157820d725fbSmrg # most powerpc-linux boxes support dynamic linking these days and 157920d725fbSmrg # people can always --disable-shared, the test was removed, and we 158020d725fbSmrg # assume the GNU/Linux dynamic linker is in use. 158120d725fbSmrg dynamic_linker='GNU/Linux ld.so' 158220d725fbSmrg ;; 158320d725fbSmrg 158420d725fbSmrgnetbsdelf*-gnu) 158520d725fbSmrg version_type=linux 158620d725fbSmrg need_lib_prefix=no 158720d725fbSmrg need_version=no 158820d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 158920d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 159020d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 159120d725fbSmrg shlibpath_overrides_runpath=no 159220d725fbSmrg hardcode_into_libs=yes 159320d725fbSmrg dynamic_linker='NetBSD ld.elf_so' 159420d725fbSmrg ;; 159520d725fbSmrg 159620d725fbSmrgnetbsd*) 159720d725fbSmrg version_type=sunos 159820d725fbSmrg need_lib_prefix=no 159920d725fbSmrg need_version=no 160020d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 160120d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 160220d725fbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 160320d725fbSmrg dynamic_linker='NetBSD (a.out) ld.so' 160420d725fbSmrg else 160520d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 160620d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 160720d725fbSmrg dynamic_linker='NetBSD ld.elf_so' 160820d725fbSmrg fi 160920d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 161020d725fbSmrg shlibpath_overrides_runpath=yes 161120d725fbSmrg hardcode_into_libs=yes 161220d725fbSmrg ;; 161320d725fbSmrg 161420d725fbSmrgnewsos6) 161520d725fbSmrg version_type=linux 161620d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 161720d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 161820d725fbSmrg shlibpath_overrides_runpath=yes 161920d725fbSmrg ;; 162020d725fbSmrg 162120d725fbSmrgnto-qnx*) 162220d725fbSmrg version_type=linux 162320d725fbSmrg need_lib_prefix=no 162420d725fbSmrg need_version=no 162520d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 162620d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 162720d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 162820d725fbSmrg shlibpath_overrides_runpath=yes 162920d725fbSmrg ;; 163020d725fbSmrg 163120d725fbSmrgopenbsd*) 163220d725fbSmrg version_type=sunos 163320d725fbSmrg sys_lib_dlsearch_path_spec="/usr/lib" 163420d725fbSmrg need_lib_prefix=no 163520d725fbSmrg # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 163620d725fbSmrg case $host_os in 163720d725fbSmrg openbsd3.3 | openbsd3.3.*) need_version=yes ;; 163820d725fbSmrg *) need_version=no ;; 163920d725fbSmrg esac 164020d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 164120d725fbSmrg finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 164220d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 164320d725fbSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 164420d725fbSmrg case $host_os in 164520d725fbSmrg openbsd2.[[89]] | openbsd2.[[89]].*) 164620d725fbSmrg shlibpath_overrides_runpath=no 164720d725fbSmrg ;; 164820d725fbSmrg *) 164920d725fbSmrg shlibpath_overrides_runpath=yes 165020d725fbSmrg ;; 165120d725fbSmrg esac 165220d725fbSmrg else 165320d725fbSmrg shlibpath_overrides_runpath=yes 165420d725fbSmrg fi 165520d725fbSmrg ;; 165620d725fbSmrg 165720d725fbSmrgos2*) 165820d725fbSmrg libname_spec='$name' 165920d725fbSmrg shrext_cmds=".dll" 166020d725fbSmrg need_lib_prefix=no 166120d725fbSmrg library_names_spec='$libname${shared_ext} $libname.a' 166220d725fbSmrg dynamic_linker='OS/2 ld.exe' 166320d725fbSmrg shlibpath_var=LIBPATH 166420d725fbSmrg ;; 166520d725fbSmrg 166620d725fbSmrgosf3* | osf4* | osf5*) 166720d725fbSmrg version_type=osf 166820d725fbSmrg need_lib_prefix=no 166920d725fbSmrg need_version=no 167020d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 167120d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 167220d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 167320d725fbSmrg sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 167420d725fbSmrg sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 167520d725fbSmrg ;; 167620d725fbSmrg 167720d725fbSmrgsolaris*) 167820d725fbSmrg version_type=linux 167920d725fbSmrg need_lib_prefix=no 168020d725fbSmrg need_version=no 168120d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 168220d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 168320d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 168420d725fbSmrg shlibpath_overrides_runpath=yes 168520d725fbSmrg hardcode_into_libs=yes 168620d725fbSmrg # ldd complains unless libraries are executable 168720d725fbSmrg postinstall_cmds='chmod +x $lib' 168820d725fbSmrg ;; 168920d725fbSmrg 169020d725fbSmrgsunos4*) 169120d725fbSmrg version_type=sunos 169220d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 169320d725fbSmrg finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 169420d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 169520d725fbSmrg shlibpath_overrides_runpath=yes 169620d725fbSmrg if test "$with_gnu_ld" = yes; then 169720d725fbSmrg need_lib_prefix=no 169820d725fbSmrg fi 169920d725fbSmrg need_version=yes 170020d725fbSmrg ;; 170120d725fbSmrg 170220d725fbSmrgsysv4 | sysv4.3*) 170320d725fbSmrg version_type=linux 170420d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 170520d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 170620d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 170720d725fbSmrg case $host_vendor in 170820d725fbSmrg sni) 170920d725fbSmrg shlibpath_overrides_runpath=no 171020d725fbSmrg need_lib_prefix=no 171120d725fbSmrg export_dynamic_flag_spec='${wl}-Blargedynsym' 171220d725fbSmrg runpath_var=LD_RUN_PATH 171320d725fbSmrg ;; 171420d725fbSmrg siemens) 171520d725fbSmrg need_lib_prefix=no 171620d725fbSmrg ;; 171720d725fbSmrg motorola) 171820d725fbSmrg need_lib_prefix=no 171920d725fbSmrg need_version=no 172020d725fbSmrg shlibpath_overrides_runpath=no 172120d725fbSmrg sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 172220d725fbSmrg ;; 172320d725fbSmrg esac 172420d725fbSmrg ;; 172520d725fbSmrg 172620d725fbSmrgsysv4*MP*) 172720d725fbSmrg if test -d /usr/nec ;then 172820d725fbSmrg version_type=linux 172920d725fbSmrg library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 173020d725fbSmrg soname_spec='$libname${shared_ext}.$major' 173120d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 173220d725fbSmrg fi 173320d725fbSmrg ;; 173420d725fbSmrg 173520d725fbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 173620d725fbSmrg version_type=freebsd-elf 173720d725fbSmrg need_lib_prefix=no 173820d725fbSmrg need_version=no 173920d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 174020d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 174120d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 174220d725fbSmrg hardcode_into_libs=yes 174320d725fbSmrg if test "$with_gnu_ld" = yes; then 174420d725fbSmrg sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 174520d725fbSmrg shlibpath_overrides_runpath=no 174620d725fbSmrg else 174720d725fbSmrg sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 174820d725fbSmrg shlibpath_overrides_runpath=yes 174920d725fbSmrg case $host_os in 175020d725fbSmrg sco3.2v5*) 175120d725fbSmrg sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 175220d725fbSmrg ;; 175320d725fbSmrg esac 175420d725fbSmrg fi 175520d725fbSmrg sys_lib_dlsearch_path_spec='/usr/lib' 175620d725fbSmrg ;; 175720d725fbSmrg 175820d725fbSmrguts4*) 175920d725fbSmrg version_type=linux 176020d725fbSmrg library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 176120d725fbSmrg soname_spec='${libname}${release}${shared_ext}$major' 176220d725fbSmrg shlibpath_var=LD_LIBRARY_PATH 176320d725fbSmrg ;; 176420d725fbSmrg 176520d725fbSmrg*) 176620d725fbSmrg dynamic_linker=no 176720d725fbSmrg ;; 176820d725fbSmrgesac 176920d725fbSmrgAC_MSG_RESULT([$dynamic_linker]) 177020d725fbSmrgtest "$dynamic_linker" = no && can_build_shared=no 177120d725fbSmrg 177220d725fbSmrgvariables_saved_for_relink="PATH $shlibpath_var $runpath_var" 177320d725fbSmrgif test "$GCC" = yes; then 177420d725fbSmrg variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 177520d725fbSmrgfi 177620d725fbSmrg])# AC_LIBTOOL_SYS_DYNAMIC_LINKER 177720d725fbSmrg 177820d725fbSmrg 177920d725fbSmrg# _LT_AC_TAGCONFIG 178020d725fbSmrg# ---------------- 178120d725fbSmrgAC_DEFUN([_LT_AC_TAGCONFIG], 178220d725fbSmrg[AC_ARG_WITH([tags], 178320d725fbSmrg [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], 178420d725fbSmrg [include additional configurations @<:@automatic@:>@])], 178520d725fbSmrg [tagnames="$withval"]) 178620d725fbSmrg 178720d725fbSmrgif test -f "$ltmain" && test -n "$tagnames"; then 178820d725fbSmrg if test ! -f "${ofile}"; then 178920d725fbSmrg AC_MSG_WARN([output file `$ofile' does not exist]) 179020d725fbSmrg fi 179120d725fbSmrg 179220d725fbSmrg if test -z "$LTCC"; then 179320d725fbSmrg eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 179420d725fbSmrg if test -z "$LTCC"; then 179520d725fbSmrg AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) 179620d725fbSmrg else 179720d725fbSmrg AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) 179820d725fbSmrg fi 179920d725fbSmrg fi 180020d725fbSmrg if test -z "$LTCFLAGS"; then 180120d725fbSmrg eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" 180220d725fbSmrg fi 180320d725fbSmrg 180420d725fbSmrg # Extract list of available tagged configurations in $ofile. 180520d725fbSmrg # Note that this assumes the entire list is on one line. 180620d725fbSmrg available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 180720d725fbSmrg 180820d725fbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 180920d725fbSmrg for tagname in $tagnames; do 181020d725fbSmrg IFS="$lt_save_ifs" 181120d725fbSmrg # Check whether tagname contains only valid characters 181220d725fbSmrg case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in 181320d725fbSmrg "") ;; 181420d725fbSmrg *) AC_MSG_ERROR([invalid tag name: $tagname]) 181520d725fbSmrg ;; 181620d725fbSmrg esac 181720d725fbSmrg 181820d725fbSmrg if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 181920d725fbSmrg then 182020d725fbSmrg AC_MSG_ERROR([tag name \"$tagname\" already exists]) 182120d725fbSmrg fi 182220d725fbSmrg 182320d725fbSmrg # Update the list of available tags. 182420d725fbSmrg if test -n "$tagname"; then 182520d725fbSmrg echo appending configuration tag \"$tagname\" to $ofile 182620d725fbSmrg 182720d725fbSmrg case $tagname in 182820d725fbSmrg CXX) 182920d725fbSmrg if test -n "$CXX" && ( test "X$CXX" != "Xno" && 183020d725fbSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 183120d725fbSmrg (test "X$CXX" != "Xg++"))) ; then 183220d725fbSmrg AC_LIBTOOL_LANG_CXX_CONFIG 183320d725fbSmrg else 183420d725fbSmrg tagname="" 183520d725fbSmrg fi 183620d725fbSmrg ;; 183720d725fbSmrg 183820d725fbSmrg F77) 183920d725fbSmrg if test -n "$F77" && test "X$F77" != "Xno"; then 184020d725fbSmrg AC_LIBTOOL_LANG_F77_CONFIG 184120d725fbSmrg else 184220d725fbSmrg tagname="" 184320d725fbSmrg fi 184420d725fbSmrg ;; 184520d725fbSmrg 184620d725fbSmrg GCJ) 184720d725fbSmrg if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 184820d725fbSmrg AC_LIBTOOL_LANG_GCJ_CONFIG 184920d725fbSmrg else 185020d725fbSmrg tagname="" 185120d725fbSmrg fi 185220d725fbSmrg ;; 185320d725fbSmrg 185420d725fbSmrg RC) 185520d725fbSmrg AC_LIBTOOL_LANG_RC_CONFIG 185620d725fbSmrg ;; 185720d725fbSmrg 185820d725fbSmrg *) 185920d725fbSmrg AC_MSG_ERROR([Unsupported tag name: $tagname]) 186020d725fbSmrg ;; 186120d725fbSmrg esac 186220d725fbSmrg 186320d725fbSmrg # Append the new tag name to the list of available tags. 186420d725fbSmrg if test -n "$tagname" ; then 186520d725fbSmrg available_tags="$available_tags $tagname" 186620d725fbSmrg fi 186720d725fbSmrg fi 186820d725fbSmrg done 186920d725fbSmrg IFS="$lt_save_ifs" 187020d725fbSmrg 187120d725fbSmrg # Now substitute the updated list of available tags. 187220d725fbSmrg if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 187320d725fbSmrg mv "${ofile}T" "$ofile" 187420d725fbSmrg chmod +x "$ofile" 187520d725fbSmrg else 187620d725fbSmrg rm -f "${ofile}T" 187720d725fbSmrg AC_MSG_ERROR([unable to update list of available tagged configurations.]) 187820d725fbSmrg fi 187920d725fbSmrgfi 188020d725fbSmrg])# _LT_AC_TAGCONFIG 188120d725fbSmrg 188220d725fbSmrg 188320d725fbSmrg# AC_LIBTOOL_DLOPEN 188420d725fbSmrg# ----------------- 188520d725fbSmrg# enable checks for dlopen support 188620d725fbSmrgAC_DEFUN([AC_LIBTOOL_DLOPEN], 188720d725fbSmrg [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) 188820d725fbSmrg])# AC_LIBTOOL_DLOPEN 188920d725fbSmrg 189020d725fbSmrg 189120d725fbSmrg# AC_LIBTOOL_WIN32_DLL 189220d725fbSmrg# -------------------- 189320d725fbSmrg# declare package support for building win32 DLLs 189420d725fbSmrgAC_DEFUN([AC_LIBTOOL_WIN32_DLL], 189520d725fbSmrg[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) 189620d725fbSmrg])# AC_LIBTOOL_WIN32_DLL 189720d725fbSmrg 189820d725fbSmrg 189920d725fbSmrg# AC_ENABLE_SHARED([DEFAULT]) 190020d725fbSmrg# --------------------------- 190120d725fbSmrg# implement the --enable-shared flag 190220d725fbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 190320d725fbSmrgAC_DEFUN([AC_ENABLE_SHARED], 190420d725fbSmrg[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 190520d725fbSmrgAC_ARG_ENABLE([shared], 190620d725fbSmrg [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], 190720d725fbSmrg [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], 190820d725fbSmrg [p=${PACKAGE-default} 190920d725fbSmrg case $enableval in 191020d725fbSmrg yes) enable_shared=yes ;; 191120d725fbSmrg no) enable_shared=no ;; 191220d725fbSmrg *) 191320d725fbSmrg enable_shared=no 191420d725fbSmrg # Look at the argument we got. We use all the common list separators. 191520d725fbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 191620d725fbSmrg for pkg in $enableval; do 191720d725fbSmrg IFS="$lt_save_ifs" 191820d725fbSmrg if test "X$pkg" = "X$p"; then 191920d725fbSmrg enable_shared=yes 192020d725fbSmrg fi 192120d725fbSmrg done 192220d725fbSmrg IFS="$lt_save_ifs" 192320d725fbSmrg ;; 192420d725fbSmrg esac], 192520d725fbSmrg [enable_shared=]AC_ENABLE_SHARED_DEFAULT) 192620d725fbSmrg])# AC_ENABLE_SHARED 192720d725fbSmrg 192820d725fbSmrg 192920d725fbSmrg# AC_DISABLE_SHARED 193020d725fbSmrg# ----------------- 193120d725fbSmrg# set the default shared flag to --disable-shared 193220d725fbSmrgAC_DEFUN([AC_DISABLE_SHARED], 193320d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 193420d725fbSmrgAC_ENABLE_SHARED(no) 193520d725fbSmrg])# AC_DISABLE_SHARED 193620d725fbSmrg 193720d725fbSmrg 193820d725fbSmrg# AC_ENABLE_STATIC([DEFAULT]) 193920d725fbSmrg# --------------------------- 194020d725fbSmrg# implement the --enable-static flag 194120d725fbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 194220d725fbSmrgAC_DEFUN([AC_ENABLE_STATIC], 194320d725fbSmrg[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 194420d725fbSmrgAC_ARG_ENABLE([static], 194520d725fbSmrg [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], 194620d725fbSmrg [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], 194720d725fbSmrg [p=${PACKAGE-default} 194820d725fbSmrg case $enableval in 194920d725fbSmrg yes) enable_static=yes ;; 195020d725fbSmrg no) enable_static=no ;; 195120d725fbSmrg *) 195220d725fbSmrg enable_static=no 195320d725fbSmrg # Look at the argument we got. We use all the common list separators. 195420d725fbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 195520d725fbSmrg for pkg in $enableval; do 195620d725fbSmrg IFS="$lt_save_ifs" 195720d725fbSmrg if test "X$pkg" = "X$p"; then 195820d725fbSmrg enable_static=yes 195920d725fbSmrg fi 196020d725fbSmrg done 196120d725fbSmrg IFS="$lt_save_ifs" 196220d725fbSmrg ;; 196320d725fbSmrg esac], 196420d725fbSmrg [enable_static=]AC_ENABLE_STATIC_DEFAULT) 196520d725fbSmrg])# AC_ENABLE_STATIC 196620d725fbSmrg 196720d725fbSmrg 196820d725fbSmrg# AC_DISABLE_STATIC 196920d725fbSmrg# ----------------- 197020d725fbSmrg# set the default static flag to --disable-static 197120d725fbSmrgAC_DEFUN([AC_DISABLE_STATIC], 197220d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 197320d725fbSmrgAC_ENABLE_STATIC(no) 197420d725fbSmrg])# AC_DISABLE_STATIC 197520d725fbSmrg 197620d725fbSmrg 197720d725fbSmrg# AC_ENABLE_FAST_INSTALL([DEFAULT]) 197820d725fbSmrg# --------------------------------- 197920d725fbSmrg# implement the --enable-fast-install flag 198020d725fbSmrg# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. 198120d725fbSmrgAC_DEFUN([AC_ENABLE_FAST_INSTALL], 198220d725fbSmrg[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 198320d725fbSmrgAC_ARG_ENABLE([fast-install], 198420d725fbSmrg [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], 198520d725fbSmrg [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], 198620d725fbSmrg [p=${PACKAGE-default} 198720d725fbSmrg case $enableval in 198820d725fbSmrg yes) enable_fast_install=yes ;; 198920d725fbSmrg no) enable_fast_install=no ;; 199020d725fbSmrg *) 199120d725fbSmrg enable_fast_install=no 199220d725fbSmrg # Look at the argument we got. We use all the common list separators. 199320d725fbSmrg lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 199420d725fbSmrg for pkg in $enableval; do 199520d725fbSmrg IFS="$lt_save_ifs" 199620d725fbSmrg if test "X$pkg" = "X$p"; then 199720d725fbSmrg enable_fast_install=yes 199820d725fbSmrg fi 199920d725fbSmrg done 200020d725fbSmrg IFS="$lt_save_ifs" 200120d725fbSmrg ;; 200220d725fbSmrg esac], 200320d725fbSmrg [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) 200420d725fbSmrg])# AC_ENABLE_FAST_INSTALL 200520d725fbSmrg 200620d725fbSmrg 200720d725fbSmrg# AC_DISABLE_FAST_INSTALL 200820d725fbSmrg# ----------------------- 200920d725fbSmrg# set the default to --disable-fast-install 201020d725fbSmrgAC_DEFUN([AC_DISABLE_FAST_INSTALL], 201120d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 201220d725fbSmrgAC_ENABLE_FAST_INSTALL(no) 201320d725fbSmrg])# AC_DISABLE_FAST_INSTALL 201420d725fbSmrg 201520d725fbSmrg 201620d725fbSmrg# AC_LIBTOOL_PICMODE([MODE]) 201720d725fbSmrg# -------------------------- 201820d725fbSmrg# implement the --with-pic flag 201920d725fbSmrg# MODE is either `yes' or `no'. If omitted, it defaults to `both'. 202020d725fbSmrgAC_DEFUN([AC_LIBTOOL_PICMODE], 202120d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 202220d725fbSmrgpic_mode=ifelse($#,1,$1,default) 202320d725fbSmrg])# AC_LIBTOOL_PICMODE 202420d725fbSmrg 202520d725fbSmrg 202620d725fbSmrg# AC_PROG_EGREP 202720d725fbSmrg# ------------- 202820d725fbSmrg# This is predefined starting with Autoconf 2.54, so this conditional 202920d725fbSmrg# definition can be removed once we require Autoconf 2.54 or later. 203020d725fbSmrgm4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], 203120d725fbSmrg[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], 203220d725fbSmrg [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 203320d725fbSmrg then ac_cv_prog_egrep='grep -E' 203420d725fbSmrg else ac_cv_prog_egrep='egrep' 203520d725fbSmrg fi]) 203620d725fbSmrg EGREP=$ac_cv_prog_egrep 203720d725fbSmrg AC_SUBST([EGREP]) 203820d725fbSmrg])]) 203920d725fbSmrg 204020d725fbSmrg 204120d725fbSmrg# AC_PATH_TOOL_PREFIX 204220d725fbSmrg# ------------------- 204320d725fbSmrg# find a file program which can recognise shared library 204420d725fbSmrgAC_DEFUN([AC_PATH_TOOL_PREFIX], 204520d725fbSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 204620d725fbSmrgAC_MSG_CHECKING([for $1]) 204720d725fbSmrgAC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 204820d725fbSmrg[case $MAGIC_CMD in 204920d725fbSmrg[[\\/*] | ?:[\\/]*]) 205020d725fbSmrg lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 205120d725fbSmrg ;; 205220d725fbSmrg*) 205320d725fbSmrg lt_save_MAGIC_CMD="$MAGIC_CMD" 205420d725fbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 205520d725fbSmrgdnl $ac_dummy forces splitting on constant user-supplied paths. 205620d725fbSmrgdnl POSIX.2 word splitting is done only on the output of word expansions, 205720d725fbSmrgdnl not every word. This closes a longstanding sh security hole. 205820d725fbSmrg ac_dummy="ifelse([$2], , $PATH, [$2])" 205920d725fbSmrg for ac_dir in $ac_dummy; do 206020d725fbSmrg IFS="$lt_save_ifs" 206120d725fbSmrg test -z "$ac_dir" && ac_dir=. 206220d725fbSmrg if test -f $ac_dir/$1; then 206320d725fbSmrg lt_cv_path_MAGIC_CMD="$ac_dir/$1" 206420d725fbSmrg if test -n "$file_magic_test_file"; then 206520d725fbSmrg case $deplibs_check_method in 206620d725fbSmrg "file_magic "*) 206720d725fbSmrg file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 206820d725fbSmrg MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 206920d725fbSmrg if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 207020d725fbSmrg $EGREP "$file_magic_regex" > /dev/null; then 207120d725fbSmrg : 207220d725fbSmrg else 207320d725fbSmrg cat <<EOF 1>&2 207420d725fbSmrg 207520d725fbSmrg*** Warning: the command libtool uses to detect shared libraries, 207620d725fbSmrg*** $file_magic_cmd, produces output that libtool cannot recognize. 207720d725fbSmrg*** The result is that libtool may fail to recognize shared libraries 207820d725fbSmrg*** as such. This will affect the creation of libtool libraries that 207920d725fbSmrg*** depend on shared libraries, but programs linked with such libtool 208020d725fbSmrg*** libraries will work regardless of this problem. Nevertheless, you 208120d725fbSmrg*** may want to report the problem to your system manager and/or to 208220d725fbSmrg*** bug-libtool@gnu.org 208320d725fbSmrg 208420d725fbSmrgEOF 208520d725fbSmrg fi ;; 208620d725fbSmrg esac 208720d725fbSmrg fi 208820d725fbSmrg break 208920d725fbSmrg fi 209020d725fbSmrg done 209120d725fbSmrg IFS="$lt_save_ifs" 209220d725fbSmrg MAGIC_CMD="$lt_save_MAGIC_CMD" 209320d725fbSmrg ;; 209420d725fbSmrgesac]) 209520d725fbSmrgMAGIC_CMD="$lt_cv_path_MAGIC_CMD" 209620d725fbSmrgif test -n "$MAGIC_CMD"; then 209720d725fbSmrg AC_MSG_RESULT($MAGIC_CMD) 209820d725fbSmrgelse 209920d725fbSmrg AC_MSG_RESULT(no) 210020d725fbSmrgfi 210120d725fbSmrg])# AC_PATH_TOOL_PREFIX 210220d725fbSmrg 210320d725fbSmrg 210420d725fbSmrg# AC_PATH_MAGIC 210520d725fbSmrg# ------------- 210620d725fbSmrg# find a file program which can recognise a shared library 210720d725fbSmrgAC_DEFUN([AC_PATH_MAGIC], 210820d725fbSmrg[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) 210920d725fbSmrgif test -z "$lt_cv_path_MAGIC_CMD"; then 211020d725fbSmrg if test -n "$ac_tool_prefix"; then 211120d725fbSmrg AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) 211220d725fbSmrg else 211320d725fbSmrg MAGIC_CMD=: 211420d725fbSmrg fi 211520d725fbSmrgfi 211620d725fbSmrg])# AC_PATH_MAGIC 211720d725fbSmrg 211820d725fbSmrg 211920d725fbSmrg# AC_PROG_LD 212020d725fbSmrg# ---------- 212120d725fbSmrg# find the pathname to the GNU or non-GNU linker 212220d725fbSmrgAC_DEFUN([AC_PROG_LD], 212320d725fbSmrg[AC_ARG_WITH([gnu-ld], 212420d725fbSmrg [AC_HELP_STRING([--with-gnu-ld], 212520d725fbSmrg [assume the C compiler uses GNU ld @<:@default=no@:>@])], 212620d725fbSmrg [test "$withval" = no || with_gnu_ld=yes], 212720d725fbSmrg [with_gnu_ld=no]) 212820d725fbSmrgAC_REQUIRE([LT_AC_PROG_SED])dnl 212920d725fbSmrgAC_REQUIRE([AC_PROG_CC])dnl 213020d725fbSmrgAC_REQUIRE([AC_CANONICAL_HOST])dnl 213120d725fbSmrgAC_REQUIRE([AC_CANONICAL_BUILD])dnl 213220d725fbSmrgac_prog=ld 213320d725fbSmrgif test "$GCC" = yes; then 213420d725fbSmrg # Check if gcc -print-prog-name=ld gives a path. 213520d725fbSmrg AC_MSG_CHECKING([for ld used by $CC]) 213620d725fbSmrg case $host in 213720d725fbSmrg *-*-mingw*) 213820d725fbSmrg # gcc leaves a trailing carriage return which upsets mingw 213920d725fbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 214020d725fbSmrg *) 214120d725fbSmrg ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 214220d725fbSmrg esac 214320d725fbSmrg case $ac_prog in 214420d725fbSmrg # Accept absolute paths. 214520d725fbSmrg [[\\/]]* | ?:[[\\/]]*) 214620d725fbSmrg re_direlt='/[[^/]][[^/]]*/\.\./' 214720d725fbSmrg # Canonicalize the pathname of ld 214820d725fbSmrg ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 214920d725fbSmrg while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 215020d725fbSmrg ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 215120d725fbSmrg done 215220d725fbSmrg test -z "$LD" && LD="$ac_prog" 215320d725fbSmrg ;; 215420d725fbSmrg "") 215520d725fbSmrg # If it fails, then pretend we aren't using GCC. 215620d725fbSmrg ac_prog=ld 215720d725fbSmrg ;; 215820d725fbSmrg *) 215920d725fbSmrg # If it is relative, then search for the first ld in PATH. 216020d725fbSmrg with_gnu_ld=unknown 216120d725fbSmrg ;; 216220d725fbSmrg esac 216320d725fbSmrgelif test "$with_gnu_ld" = yes; then 216420d725fbSmrg AC_MSG_CHECKING([for GNU ld]) 216520d725fbSmrgelse 216620d725fbSmrg AC_MSG_CHECKING([for non-GNU ld]) 216720d725fbSmrgfi 216820d725fbSmrgAC_CACHE_VAL(lt_cv_path_LD, 216920d725fbSmrg[if test -z "$LD"; then 217020d725fbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 217120d725fbSmrg for ac_dir in $PATH; do 217220d725fbSmrg IFS="$lt_save_ifs" 217320d725fbSmrg test -z "$ac_dir" && ac_dir=. 217420d725fbSmrg if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 217520d725fbSmrg lt_cv_path_LD="$ac_dir/$ac_prog" 217620d725fbSmrg # Check to see if the program is GNU ld. I'd rather use --version, 217720d725fbSmrg # but apparently some variants of GNU ld only accept -v. 217820d725fbSmrg # Break only if it was the GNU/non-GNU ld that we prefer. 217920d725fbSmrg case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 218020d725fbSmrg *GNU* | *'with BFD'*) 218120d725fbSmrg test "$with_gnu_ld" != no && break 218220d725fbSmrg ;; 218320d725fbSmrg *) 218420d725fbSmrg test "$with_gnu_ld" != yes && break 218520d725fbSmrg ;; 218620d725fbSmrg esac 218720d725fbSmrg fi 218820d725fbSmrg done 218920d725fbSmrg IFS="$lt_save_ifs" 219020d725fbSmrgelse 219120d725fbSmrg lt_cv_path_LD="$LD" # Let the user override the test with a path. 219220d725fbSmrgfi]) 219320d725fbSmrgLD="$lt_cv_path_LD" 219420d725fbSmrgif test -n "$LD"; then 219520d725fbSmrg AC_MSG_RESULT($LD) 219620d725fbSmrgelse 219720d725fbSmrg AC_MSG_RESULT(no) 219820d725fbSmrgfi 219920d725fbSmrgtest -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 220020d725fbSmrgAC_PROG_LD_GNU 220120d725fbSmrg])# AC_PROG_LD 220220d725fbSmrg 220320d725fbSmrg 220420d725fbSmrg# AC_PROG_LD_GNU 220520d725fbSmrg# -------------- 220620d725fbSmrgAC_DEFUN([AC_PROG_LD_GNU], 220720d725fbSmrg[AC_REQUIRE([AC_PROG_EGREP])dnl 220820d725fbSmrgAC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 220920d725fbSmrg[# I'd rather use --version here, but apparently some GNU lds only accept -v. 221020d725fbSmrgcase `$LD -v 2>&1 </dev/null` in 221120d725fbSmrg*GNU* | *'with BFD'*) 221220d725fbSmrg lt_cv_prog_gnu_ld=yes 221320d725fbSmrg ;; 221420d725fbSmrg*) 221520d725fbSmrg lt_cv_prog_gnu_ld=no 221620d725fbSmrg ;; 221720d725fbSmrgesac]) 221820d725fbSmrgwith_gnu_ld=$lt_cv_prog_gnu_ld 221920d725fbSmrg])# AC_PROG_LD_GNU 222020d725fbSmrg 222120d725fbSmrg 222220d725fbSmrg# AC_PROG_LD_RELOAD_FLAG 222320d725fbSmrg# ---------------------- 222420d725fbSmrg# find reload flag for linker 222520d725fbSmrg# -- PORTME Some linkers may need a different reload flag. 222620d725fbSmrgAC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 222720d725fbSmrg[AC_CACHE_CHECK([for $LD option to reload object files], 222820d725fbSmrg lt_cv_ld_reload_flag, 222920d725fbSmrg [lt_cv_ld_reload_flag='-r']) 223020d725fbSmrgreload_flag=$lt_cv_ld_reload_flag 223120d725fbSmrgcase $reload_flag in 223220d725fbSmrg"" | " "*) ;; 223320d725fbSmrg*) reload_flag=" $reload_flag" ;; 223420d725fbSmrgesac 223520d725fbSmrgreload_cmds='$LD$reload_flag -o $output$reload_objs' 223620d725fbSmrgcase $host_os in 223720d725fbSmrg darwin*) 223820d725fbSmrg if test "$GCC" = yes; then 223920d725fbSmrg reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 224020d725fbSmrg else 224120d725fbSmrg reload_cmds='$LD$reload_flag -o $output$reload_objs' 224220d725fbSmrg fi 224320d725fbSmrg ;; 224420d725fbSmrgesac 224520d725fbSmrg])# AC_PROG_LD_RELOAD_FLAG 224620d725fbSmrg 224720d725fbSmrg 224820d725fbSmrg# AC_DEPLIBS_CHECK_METHOD 224920d725fbSmrg# ----------------------- 225020d725fbSmrg# how to check for library dependencies 225120d725fbSmrg# -- PORTME fill in with the dynamic library characteristics 225220d725fbSmrgAC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 225320d725fbSmrg[AC_CACHE_CHECK([how to recognise dependent libraries], 225420d725fbSmrglt_cv_deplibs_check_method, 225520d725fbSmrg[lt_cv_file_magic_cmd='$MAGIC_CMD' 225620d725fbSmrglt_cv_file_magic_test_file= 225720d725fbSmrglt_cv_deplibs_check_method='unknown' 225820d725fbSmrg# Need to set the preceding variable on all platforms that support 225920d725fbSmrg# interlibrary dependencies. 226020d725fbSmrg# 'none' -- dependencies not supported. 226120d725fbSmrg# `unknown' -- same as none, but documents that we really don't know. 226220d725fbSmrg# 'pass_all' -- all dependencies passed with no checks. 226320d725fbSmrg# 'test_compile' -- check by making test program. 226420d725fbSmrg# 'file_magic [[regex]]' -- check by looking for files in library path 226520d725fbSmrg# which responds to the $file_magic_cmd with a given extended regex. 226620d725fbSmrg# If you have `file' or equivalent on your system and you're not sure 226720d725fbSmrg# whether `pass_all' will *always* work, you probably want this one. 226820d725fbSmrg 226920d725fbSmrgcase $host_os in 227020d725fbSmrgaix4* | aix5*) 227120d725fbSmrg lt_cv_deplibs_check_method=pass_all 227220d725fbSmrg ;; 227320d725fbSmrg 227420d725fbSmrgbeos*) 227520d725fbSmrg lt_cv_deplibs_check_method=pass_all 227620d725fbSmrg ;; 227720d725fbSmrg 227820d725fbSmrgbsdi[[45]]*) 227920d725fbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 228020d725fbSmrg lt_cv_file_magic_cmd='/usr/bin/file -L' 228120d725fbSmrg lt_cv_file_magic_test_file=/shlib/libc.so 228220d725fbSmrg ;; 228320d725fbSmrg 228420d725fbSmrgcygwin*) 228520d725fbSmrg # func_win32_libid is a shell function defined in ltmain.sh 228620d725fbSmrg lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 228720d725fbSmrg lt_cv_file_magic_cmd='func_win32_libid' 228820d725fbSmrg ;; 228920d725fbSmrg 229020d725fbSmrgmingw* | pw32*) 229120d725fbSmrg # Base MSYS/MinGW do not provide the 'file' command needed by 229220d725fbSmrg # func_win32_libid shell function, so use a weaker test based on 'objdump'. 229320d725fbSmrg lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 229420d725fbSmrg lt_cv_file_magic_cmd='$OBJDUMP -f' 229520d725fbSmrg ;; 229620d725fbSmrg 229720d725fbSmrgdarwin* | rhapsody*) 229820d725fbSmrg lt_cv_deplibs_check_method=pass_all 229920d725fbSmrg ;; 230020d725fbSmrg 230120d725fbSmrgfreebsd* | dragonfly*) 230220d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 230320d725fbSmrg case $host_cpu in 230420d725fbSmrg i*86 ) 230520d725fbSmrg # Not sure whether the presence of OpenBSD here was a mistake. 230620d725fbSmrg # Let's accept both of them until this is cleared up. 230720d725fbSmrg lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' 230820d725fbSmrg lt_cv_file_magic_cmd=/usr/bin/file 230920d725fbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 231020d725fbSmrg ;; 231120d725fbSmrg esac 231220d725fbSmrg else 231320d725fbSmrg lt_cv_deplibs_check_method=pass_all 231420d725fbSmrg fi 231520d725fbSmrg ;; 231620d725fbSmrg 231720d725fbSmrggnu*) 231820d725fbSmrg lt_cv_deplibs_check_method=pass_all 231920d725fbSmrg ;; 232020d725fbSmrg 232120d725fbSmrghpux10.20* | hpux11*) 232220d725fbSmrg lt_cv_file_magic_cmd=/usr/bin/file 232320d725fbSmrg case $host_cpu in 232420d725fbSmrg ia64*) 232520d725fbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' 232620d725fbSmrg lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 232720d725fbSmrg ;; 232820d725fbSmrg hppa*64*) 232920d725fbSmrg [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]'] 233020d725fbSmrg lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 233120d725fbSmrg ;; 233220d725fbSmrg *) 233320d725fbSmrg lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 233420d725fbSmrg lt_cv_file_magic_test_file=/usr/lib/libc.sl 233520d725fbSmrg ;; 233620d725fbSmrg esac 233720d725fbSmrg ;; 233820d725fbSmrg 233920d725fbSmrginterix3*) 234020d725fbSmrg # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 234120d725fbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' 234220d725fbSmrg ;; 234320d725fbSmrg 234420d725fbSmrgirix5* | irix6* | nonstopux*) 234520d725fbSmrg case $LD in 234620d725fbSmrg *-32|*"-32 ") libmagic=32-bit;; 234720d725fbSmrg *-n32|*"-n32 ") libmagic=N32;; 234820d725fbSmrg *-64|*"-64 ") libmagic=64-bit;; 234920d725fbSmrg *) libmagic=never-match;; 235020d725fbSmrg esac 235120d725fbSmrg lt_cv_deplibs_check_method=pass_all 235220d725fbSmrg ;; 235320d725fbSmrg 235420d725fbSmrg# This must be Linux ELF. 235520d725fbSmrglinux* | k*bsd*-gnu) 235620d725fbSmrg lt_cv_deplibs_check_method=pass_all 235720d725fbSmrg ;; 235820d725fbSmrg 235920d725fbSmrgnetbsd* | netbsdelf*-gnu) 236020d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 236120d725fbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 236220d725fbSmrg else 236320d725fbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' 236420d725fbSmrg fi 236520d725fbSmrg ;; 236620d725fbSmrg 236720d725fbSmrgnewos6*) 236820d725fbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 236920d725fbSmrg lt_cv_file_magic_cmd=/usr/bin/file 237020d725fbSmrg lt_cv_file_magic_test_file=/usr/lib/libnls.so 237120d725fbSmrg ;; 237220d725fbSmrg 237320d725fbSmrgnto-qnx*) 237420d725fbSmrg lt_cv_deplibs_check_method=unknown 237520d725fbSmrg ;; 237620d725fbSmrg 237720d725fbSmrgopenbsd*) 237820d725fbSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 237920d725fbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' 238020d725fbSmrg else 238120d725fbSmrg lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' 238220d725fbSmrg fi 238320d725fbSmrg ;; 238420d725fbSmrg 238520d725fbSmrgosf3* | osf4* | osf5*) 238620d725fbSmrg lt_cv_deplibs_check_method=pass_all 238720d725fbSmrg ;; 238820d725fbSmrg 238920d725fbSmrgsolaris*) 239020d725fbSmrg lt_cv_deplibs_check_method=pass_all 239120d725fbSmrg ;; 239220d725fbSmrg 239320d725fbSmrgsysv4 | sysv4.3*) 239420d725fbSmrg case $host_vendor in 239520d725fbSmrg motorola) 239620d725fbSmrg 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]]' 239720d725fbSmrg lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 239820d725fbSmrg ;; 239920d725fbSmrg ncr) 240020d725fbSmrg lt_cv_deplibs_check_method=pass_all 240120d725fbSmrg ;; 240220d725fbSmrg sequent) 240320d725fbSmrg lt_cv_file_magic_cmd='/bin/file' 240420d725fbSmrg lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 240520d725fbSmrg ;; 240620d725fbSmrg sni) 240720d725fbSmrg lt_cv_file_magic_cmd='/bin/file' 240820d725fbSmrg lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 240920d725fbSmrg lt_cv_file_magic_test_file=/lib/libc.so 241020d725fbSmrg ;; 241120d725fbSmrg siemens) 241220d725fbSmrg lt_cv_deplibs_check_method=pass_all 241320d725fbSmrg ;; 241420d725fbSmrg pc) 241520d725fbSmrg lt_cv_deplibs_check_method=pass_all 241620d725fbSmrg ;; 241720d725fbSmrg esac 241820d725fbSmrg ;; 241920d725fbSmrg 242020d725fbSmrgsysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 242120d725fbSmrg lt_cv_deplibs_check_method=pass_all 242220d725fbSmrg ;; 242320d725fbSmrgesac 242420d725fbSmrg]) 242520d725fbSmrgfile_magic_cmd=$lt_cv_file_magic_cmd 242620d725fbSmrgdeplibs_check_method=$lt_cv_deplibs_check_method 242720d725fbSmrgtest -z "$deplibs_check_method" && deplibs_check_method=unknown 242820d725fbSmrg])# AC_DEPLIBS_CHECK_METHOD 242920d725fbSmrg 243020d725fbSmrg 243120d725fbSmrg# AC_PROG_NM 243220d725fbSmrg# ---------- 243320d725fbSmrg# find the pathname to a BSD-compatible name lister 243420d725fbSmrgAC_DEFUN([AC_PROG_NM], 243520d725fbSmrg[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, 243620d725fbSmrg[if test -n "$NM"; then 243720d725fbSmrg # Let the user override the test. 243820d725fbSmrg lt_cv_path_NM="$NM" 243920d725fbSmrgelse 244020d725fbSmrg lt_nm_to_check="${ac_tool_prefix}nm" 244120d725fbSmrg if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 244220d725fbSmrg lt_nm_to_check="$lt_nm_to_check nm" 244320d725fbSmrg fi 244420d725fbSmrg for lt_tmp_nm in $lt_nm_to_check; do 244520d725fbSmrg lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 244620d725fbSmrg for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 244720d725fbSmrg IFS="$lt_save_ifs" 244820d725fbSmrg test -z "$ac_dir" && ac_dir=. 244920d725fbSmrg tmp_nm="$ac_dir/$lt_tmp_nm" 245020d725fbSmrg if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 245120d725fbSmrg # Check to see if the nm accepts a BSD-compat flag. 245220d725fbSmrg # Adding the `sed 1q' prevents false positives on HP-UX, which says: 245320d725fbSmrg # nm: unknown option "B" ignored 245420d725fbSmrg # Tru64's nm complains that /dev/null is an invalid object file 245520d725fbSmrg case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 245620d725fbSmrg */dev/null* | *'Invalid file or object type'*) 245720d725fbSmrg lt_cv_path_NM="$tmp_nm -B" 245820d725fbSmrg break 245920d725fbSmrg ;; 246020d725fbSmrg *) 246120d725fbSmrg case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 246220d725fbSmrg */dev/null*) 246320d725fbSmrg lt_cv_path_NM="$tmp_nm -p" 246420d725fbSmrg break 246520d725fbSmrg ;; 246620d725fbSmrg *) 246720d725fbSmrg lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 246820d725fbSmrg continue # so that we can try to find one that supports BSD flags 246920d725fbSmrg ;; 247020d725fbSmrg esac 247120d725fbSmrg ;; 247220d725fbSmrg esac 247320d725fbSmrg fi 247420d725fbSmrg done 247520d725fbSmrg IFS="$lt_save_ifs" 247620d725fbSmrg done 247720d725fbSmrg test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 247820d725fbSmrgfi]) 247920d725fbSmrgNM="$lt_cv_path_NM" 248020d725fbSmrg])# AC_PROG_NM 248120d725fbSmrg 248220d725fbSmrg 248320d725fbSmrg# AC_CHECK_LIBM 248420d725fbSmrg# ------------- 248520d725fbSmrg# check for math library 248620d725fbSmrgAC_DEFUN([AC_CHECK_LIBM], 248720d725fbSmrg[AC_REQUIRE([AC_CANONICAL_HOST])dnl 248820d725fbSmrgLIBM= 248920d725fbSmrgcase $host in 249020d725fbSmrg*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) 249120d725fbSmrg # These system don't have libm, or don't need it 249220d725fbSmrg ;; 249320d725fbSmrg*-ncr-sysv4.3*) 249420d725fbSmrg AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 249520d725fbSmrg AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") 249620d725fbSmrg ;; 249720d725fbSmrg*) 249820d725fbSmrg AC_CHECK_LIB(m, cos, LIBM="-lm") 249920d725fbSmrg ;; 250020d725fbSmrgesac 250120d725fbSmrg])# AC_CHECK_LIBM 250220d725fbSmrg 250320d725fbSmrg 250420d725fbSmrg# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) 250520d725fbSmrg# ----------------------------------- 250620d725fbSmrg# sets LIBLTDL to the link flags for the libltdl convenience library and 250720d725fbSmrg# LTDLINCL to the include flags for the libltdl header and adds 250820d725fbSmrg# --enable-ltdl-convenience to the configure arguments. Note that 250920d725fbSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 251020d725fbSmrg# it is assumed to be `libltdl'. LIBLTDL will be prefixed with 251120d725fbSmrg# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' 251220d725fbSmrg# (note the single quotes!). If your package is not flat and you're not 251320d725fbSmrg# using automake, define top_builddir and top_srcdir appropriately in 251420d725fbSmrg# the Makefiles. 251520d725fbSmrgAC_DEFUN([AC_LIBLTDL_CONVENIENCE], 251620d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 251720d725fbSmrg case $enable_ltdl_convenience in 251820d725fbSmrg no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 251920d725fbSmrg "") enable_ltdl_convenience=yes 252020d725fbSmrg ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 252120d725fbSmrg esac 252220d725fbSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 252320d725fbSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 252420d725fbSmrg # For backwards non-gettext consistent compatibility... 252520d725fbSmrg INCLTDL="$LTDLINCL" 252620d725fbSmrg])# AC_LIBLTDL_CONVENIENCE 252720d725fbSmrg 252820d725fbSmrg 252920d725fbSmrg# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) 253020d725fbSmrg# ----------------------------------- 253120d725fbSmrg# sets LIBLTDL to the link flags for the libltdl installable library and 253220d725fbSmrg# LTDLINCL to the include flags for the libltdl header and adds 253320d725fbSmrg# --enable-ltdl-install to the configure arguments. Note that 253420d725fbSmrg# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, 253520d725fbSmrg# and an installed libltdl is not found, it is assumed to be `libltdl'. 253620d725fbSmrg# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with 253720d725fbSmrg# '${top_srcdir}/' (note the single quotes!). If your package is not 253820d725fbSmrg# flat and you're not using automake, define top_builddir and top_srcdir 253920d725fbSmrg# appropriately in the Makefiles. 254020d725fbSmrg# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 254120d725fbSmrgAC_DEFUN([AC_LIBLTDL_INSTALLABLE], 254220d725fbSmrg[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 254320d725fbSmrg AC_CHECK_LIB(ltdl, lt_dlinit, 254420d725fbSmrg [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 254520d725fbSmrg [if test x"$enable_ltdl_install" = xno; then 254620d725fbSmrg AC_MSG_WARN([libltdl not installed, but installation disabled]) 254720d725fbSmrg else 254820d725fbSmrg enable_ltdl_install=yes 254920d725fbSmrg fi 255020d725fbSmrg ]) 255120d725fbSmrg if test x"$enable_ltdl_install" = x"yes"; then 255220d725fbSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install" 255320d725fbSmrg LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 255420d725fbSmrg LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 255520d725fbSmrg else 255620d725fbSmrg ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 255720d725fbSmrg LIBLTDL="-lltdl" 255820d725fbSmrg LTDLINCL= 255920d725fbSmrg fi 256020d725fbSmrg # For backwards non-gettext consistent compatibility... 256120d725fbSmrg INCLTDL="$LTDLINCL" 256220d725fbSmrg])# AC_LIBLTDL_INSTALLABLE 256320d725fbSmrg 256420d725fbSmrg 256520d725fbSmrg# AC_LIBTOOL_CXX 256620d725fbSmrg# -------------- 256720d725fbSmrg# enable support for C++ libraries 256820d725fbSmrgAC_DEFUN([AC_LIBTOOL_CXX], 256920d725fbSmrg[AC_REQUIRE([_LT_AC_LANG_CXX]) 257020d725fbSmrg])# AC_LIBTOOL_CXX 257120d725fbSmrg 257220d725fbSmrg 257320d725fbSmrg# _LT_AC_LANG_CXX 257420d725fbSmrg# --------------- 257520d725fbSmrgAC_DEFUN([_LT_AC_LANG_CXX], 257620d725fbSmrg[AC_REQUIRE([AC_PROG_CXX]) 257720d725fbSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 257820d725fbSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) 257920d725fbSmrg])# _LT_AC_LANG_CXX 258020d725fbSmrg 258120d725fbSmrg# _LT_AC_PROG_CXXCPP 258220d725fbSmrg# ------------------ 258320d725fbSmrgAC_DEFUN([_LT_AC_PROG_CXXCPP], 258420d725fbSmrg[ 258520d725fbSmrgAC_REQUIRE([AC_PROG_CXX]) 258620d725fbSmrgif test -n "$CXX" && ( test "X$CXX" != "Xno" && 258720d725fbSmrg ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 258820d725fbSmrg (test "X$CXX" != "Xg++"))) ; then 258920d725fbSmrg AC_PROG_CXXCPP 259020d725fbSmrgfi 259120d725fbSmrg])# _LT_AC_PROG_CXXCPP 259220d725fbSmrg 259320d725fbSmrg# AC_LIBTOOL_F77 259420d725fbSmrg# -------------- 259520d725fbSmrg# enable support for Fortran 77 libraries 259620d725fbSmrgAC_DEFUN([AC_LIBTOOL_F77], 259720d725fbSmrg[AC_REQUIRE([_LT_AC_LANG_F77]) 259820d725fbSmrg])# AC_LIBTOOL_F77 259920d725fbSmrg 260020d725fbSmrg 260120d725fbSmrg# _LT_AC_LANG_F77 260220d725fbSmrg# --------------- 260320d725fbSmrgAC_DEFUN([_LT_AC_LANG_F77], 260420d725fbSmrg[AC_REQUIRE([AC_PROG_F77]) 260520d725fbSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) 260620d725fbSmrg])# _LT_AC_LANG_F77 260720d725fbSmrg 260820d725fbSmrg 260920d725fbSmrg# AC_LIBTOOL_GCJ 261020d725fbSmrg# -------------- 261120d725fbSmrg# enable support for GCJ libraries 261220d725fbSmrgAC_DEFUN([AC_LIBTOOL_GCJ], 261320d725fbSmrg[AC_REQUIRE([_LT_AC_LANG_GCJ]) 261420d725fbSmrg])# AC_LIBTOOL_GCJ 261520d725fbSmrg 261620d725fbSmrg 261720d725fbSmrg# _LT_AC_LANG_GCJ 261820d725fbSmrg# --------------- 261920d725fbSmrgAC_DEFUN([_LT_AC_LANG_GCJ], 262020d725fbSmrg[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], 262120d725fbSmrg [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], 262220d725fbSmrg [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], 262320d725fbSmrg [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], 262420d725fbSmrg [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], 262520d725fbSmrg [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) 262620d725fbSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) 262720d725fbSmrg])# _LT_AC_LANG_GCJ 262820d725fbSmrg 262920d725fbSmrg 263020d725fbSmrg# AC_LIBTOOL_RC 263120d725fbSmrg# ------------- 263220d725fbSmrg# enable support for Windows resource files 263320d725fbSmrgAC_DEFUN([AC_LIBTOOL_RC], 263420d725fbSmrg[AC_REQUIRE([LT_AC_PROG_RC]) 263520d725fbSmrg_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) 263620d725fbSmrg])# AC_LIBTOOL_RC 263720d725fbSmrg 263820d725fbSmrg 263920d725fbSmrg# AC_LIBTOOL_LANG_C_CONFIG 264020d725fbSmrg# ------------------------ 264120d725fbSmrg# Ensure that the configuration vars for the C compiler are 264220d725fbSmrg# suitably defined. Those variables are subsequently used by 264320d725fbSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 264420d725fbSmrgAC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) 264520d725fbSmrgAC_DEFUN([_LT_AC_LANG_C_CONFIG], 264620d725fbSmrg[lt_save_CC="$CC" 264720d725fbSmrgAC_LANG_PUSH(C) 264820d725fbSmrg 264920d725fbSmrg# Source file extension for C test sources. 265020d725fbSmrgac_ext=c 265120d725fbSmrg 265220d725fbSmrg# Object file extension for compiled C test sources. 265320d725fbSmrgobjext=o 265420d725fbSmrg_LT_AC_TAGVAR(objext, $1)=$objext 265520d725fbSmrg 265620d725fbSmrg# Code to be used in simple compile tests 265720d725fbSmrglt_simple_compile_test_code="int some_variable = 0;\n" 265820d725fbSmrg 265920d725fbSmrg# Code to be used in simple link tests 266020d725fbSmrglt_simple_link_test_code='int main(){return(0);}\n' 266120d725fbSmrg 266220d725fbSmrg_LT_AC_SYS_COMPILER 266320d725fbSmrg 266420d725fbSmrg# save warnings/boilerplate of simple test code 266520d725fbSmrg_LT_COMPILER_BOILERPLATE 266620d725fbSmrg_LT_LINKER_BOILERPLATE 266720d725fbSmrg 266820d725fbSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 266920d725fbSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 267020d725fbSmrgAC_LIBTOOL_PROG_CC_C_O($1) 267120d725fbSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 267220d725fbSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 267320d725fbSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 267420d725fbSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 267520d725fbSmrgAC_LIBTOOL_SYS_LIB_STRIP 267620d725fbSmrgAC_LIBTOOL_DLOPEN_SELF 267720d725fbSmrg 267820d725fbSmrg# Report which library types will actually be built 267920d725fbSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 268020d725fbSmrgAC_MSG_RESULT([$can_build_shared]) 268120d725fbSmrg 268220d725fbSmrgAC_MSG_CHECKING([whether to build shared libraries]) 268320d725fbSmrgtest "$can_build_shared" = "no" && enable_shared=no 268420d725fbSmrg 268520d725fbSmrg# On AIX, shared libraries and static libraries use the same namespace, and 268620d725fbSmrg# are all built from PIC. 268720d725fbSmrgcase $host_os in 268820d725fbSmrgaix3*) 268920d725fbSmrg test "$enable_shared" = yes && enable_static=no 269020d725fbSmrg if test -n "$RANLIB"; then 269120d725fbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 269220d725fbSmrg postinstall_cmds='$RANLIB $lib' 269320d725fbSmrg fi 269420d725fbSmrg ;; 269520d725fbSmrg 269620d725fbSmrgaix4* | aix5*) 269720d725fbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 269820d725fbSmrg test "$enable_shared" = yes && enable_static=no 269920d725fbSmrg fi 270020d725fbSmrg ;; 270120d725fbSmrgesac 270220d725fbSmrgAC_MSG_RESULT([$enable_shared]) 270320d725fbSmrg 270420d725fbSmrgAC_MSG_CHECKING([whether to build static libraries]) 270520d725fbSmrg# Make sure either enable_shared or enable_static is yes. 270620d725fbSmrgtest "$enable_shared" = yes || enable_static=yes 270720d725fbSmrgAC_MSG_RESULT([$enable_static]) 270820d725fbSmrg 270920d725fbSmrgAC_LIBTOOL_CONFIG($1) 271020d725fbSmrg 271120d725fbSmrgAC_LANG_POP 271220d725fbSmrgCC="$lt_save_CC" 271320d725fbSmrg])# AC_LIBTOOL_LANG_C_CONFIG 271420d725fbSmrg 271520d725fbSmrg 271620d725fbSmrg# AC_LIBTOOL_LANG_CXX_CONFIG 271720d725fbSmrg# -------------------------- 271820d725fbSmrg# Ensure that the configuration vars for the C compiler are 271920d725fbSmrg# suitably defined. Those variables are subsequently used by 272020d725fbSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 272120d725fbSmrgAC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) 272220d725fbSmrgAC_DEFUN([_LT_AC_LANG_CXX_CONFIG], 272320d725fbSmrg[AC_LANG_PUSH(C++) 272420d725fbSmrgAC_REQUIRE([AC_PROG_CXX]) 272520d725fbSmrgAC_REQUIRE([_LT_AC_PROG_CXXCPP]) 272620d725fbSmrg 272720d725fbSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 272820d725fbSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 272920d725fbSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 273020d725fbSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 273120d725fbSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 273220d725fbSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 273320d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 273420d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 273520d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 273620d725fbSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 273720d725fbSmrg_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 273820d725fbSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 273920d725fbSmrg_LT_AC_TAGVAR(module_cmds, $1)= 274020d725fbSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 274120d725fbSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 274220d725fbSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 274320d725fbSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 274420d725fbSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 274520d725fbSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 274620d725fbSmrg 274720d725fbSmrg# Dependencies to place before and after the object being linked: 274820d725fbSmrg_LT_AC_TAGVAR(predep_objects, $1)= 274920d725fbSmrg_LT_AC_TAGVAR(postdep_objects, $1)= 275020d725fbSmrg_LT_AC_TAGVAR(predeps, $1)= 275120d725fbSmrg_LT_AC_TAGVAR(postdeps, $1)= 275220d725fbSmrg_LT_AC_TAGVAR(compiler_lib_search_path, $1)= 275320d725fbSmrg 275420d725fbSmrg# Source file extension for C++ test sources. 275520d725fbSmrgac_ext=cpp 275620d725fbSmrg 275720d725fbSmrg# Object file extension for compiled C++ test sources. 275820d725fbSmrgobjext=o 275920d725fbSmrg_LT_AC_TAGVAR(objext, $1)=$objext 276020d725fbSmrg 276120d725fbSmrg# Code to be used in simple compile tests 276220d725fbSmrglt_simple_compile_test_code="int some_variable = 0;\n" 276320d725fbSmrg 276420d725fbSmrg# Code to be used in simple link tests 276520d725fbSmrglt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' 276620d725fbSmrg 276720d725fbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 276820d725fbSmrg_LT_AC_SYS_COMPILER 276920d725fbSmrg 277020d725fbSmrg# save warnings/boilerplate of simple test code 277120d725fbSmrg_LT_COMPILER_BOILERPLATE 277220d725fbSmrg_LT_LINKER_BOILERPLATE 277320d725fbSmrg 277420d725fbSmrg# Allow CC to be a program name with arguments. 277520d725fbSmrglt_save_CC=$CC 277620d725fbSmrglt_save_LD=$LD 277720d725fbSmrglt_save_GCC=$GCC 277820d725fbSmrgGCC=$GXX 277920d725fbSmrglt_save_with_gnu_ld=$with_gnu_ld 278020d725fbSmrglt_save_path_LD=$lt_cv_path_LD 278120d725fbSmrgif test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 278220d725fbSmrg lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 278320d725fbSmrgelse 278420d725fbSmrg $as_unset lt_cv_prog_gnu_ld 278520d725fbSmrgfi 278620d725fbSmrgif test -n "${lt_cv_path_LDCXX+set}"; then 278720d725fbSmrg lt_cv_path_LD=$lt_cv_path_LDCXX 278820d725fbSmrgelse 278920d725fbSmrg $as_unset lt_cv_path_LD 279020d725fbSmrgfi 279120d725fbSmrgtest -z "${LDCXX+set}" || LD=$LDCXX 279220d725fbSmrgCC=${CXX-"c++"} 279320d725fbSmrgcompiler=$CC 279420d725fbSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 279520d725fbSmrg_LT_CC_BASENAME([$compiler]) 279620d725fbSmrg 279720d725fbSmrg# We don't want -fno-exception wen compiling C++ code, so set the 279820d725fbSmrg# no_builtin_flag separately 279920d725fbSmrgif test "$GXX" = yes; then 280020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 280120d725fbSmrgelse 280220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 280320d725fbSmrgfi 280420d725fbSmrg 280520d725fbSmrgif test "$GXX" = yes; then 280620d725fbSmrg # Set up default GNU C++ configuration 280720d725fbSmrg 280820d725fbSmrg AC_PROG_LD 280920d725fbSmrg 281020d725fbSmrg # Check if GNU C++ uses GNU ld as the underlying linker, since the 281120d725fbSmrg # archiving commands below assume that GNU ld is being used. 281220d725fbSmrg if test "$with_gnu_ld" = yes; then 281320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 281420d725fbSmrg _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' 281520d725fbSmrg 281620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 281720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 281820d725fbSmrg 281920d725fbSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 282020d725fbSmrg # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 282120d725fbSmrg # investigate it a little bit more. (MM) 282220d725fbSmrg wlarc='${wl}' 282320d725fbSmrg 282420d725fbSmrg # ancient GNU ld didn't support --whole-archive et. al. 282520d725fbSmrg if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 282620d725fbSmrg grep 'no-whole-archive' > /dev/null; then 282720d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 282820d725fbSmrg else 282920d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 283020d725fbSmrg fi 283120d725fbSmrg else 283220d725fbSmrg with_gnu_ld=no 283320d725fbSmrg wlarc= 283420d725fbSmrg 283520d725fbSmrg # A generic and very simple default shared library creation 283620d725fbSmrg # command for GNU C++ for the case where it uses the native 283720d725fbSmrg # linker, instead of GNU ld. If possible, this setting should 283820d725fbSmrg # overridden to take advantage of the native linker features on 283920d725fbSmrg # the platform it is being used on. 284020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 284120d725fbSmrg fi 284220d725fbSmrg 284320d725fbSmrg # Commands to make compiler produce verbose output that lists 284420d725fbSmrg # what "hidden" libraries, object files and flags are used when 284520d725fbSmrg # linking a shared library. 284620d725fbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 284720d725fbSmrg 284820d725fbSmrgelse 284920d725fbSmrg GXX=no 285020d725fbSmrg with_gnu_ld=no 285120d725fbSmrg wlarc= 285220d725fbSmrgfi 285320d725fbSmrg 285420d725fbSmrg# PORTME: fill in a description of your system's C++ link characteristics 285520d725fbSmrgAC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 285620d725fbSmrg_LT_AC_TAGVAR(ld_shlibs, $1)=yes 285720d725fbSmrgcase $host_os in 285820d725fbSmrg aix3*) 285920d725fbSmrg # FIXME: insert proper C++ library support 286020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 286120d725fbSmrg ;; 286220d725fbSmrg aix4* | aix5*) 286320d725fbSmrg if test "$host_cpu" = ia64; then 286420d725fbSmrg # On IA64, the linker does run time linking by default, so we don't 286520d725fbSmrg # have to do anything special. 286620d725fbSmrg aix_use_runtimelinking=no 286720d725fbSmrg exp_sym_flag='-Bexport' 286820d725fbSmrg no_entry_flag="" 286920d725fbSmrg else 287020d725fbSmrg aix_use_runtimelinking=no 287120d725fbSmrg 287220d725fbSmrg # Test if we are trying to use run time linking or normal 287320d725fbSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 287420d725fbSmrg # need to do runtime linking. 287520d725fbSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 287620d725fbSmrg for ld_flag in $LDFLAGS; do 287720d725fbSmrg case $ld_flag in 287820d725fbSmrg *-brtl*) 287920d725fbSmrg aix_use_runtimelinking=yes 288020d725fbSmrg break 288120d725fbSmrg ;; 288220d725fbSmrg esac 288320d725fbSmrg done 288420d725fbSmrg ;; 288520d725fbSmrg esac 288620d725fbSmrg 288720d725fbSmrg exp_sym_flag='-bexport' 288820d725fbSmrg no_entry_flag='-bnoentry' 288920d725fbSmrg fi 289020d725fbSmrg 289120d725fbSmrg # When large executables or shared objects are built, AIX ld can 289220d725fbSmrg # have problems creating the table of contents. If linking a library 289320d725fbSmrg # or program results in "error TOC overflow" add -mminimal-toc to 289420d725fbSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 289520d725fbSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 289620d725fbSmrg 289720d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 289820d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 289920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 290020d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 290120d725fbSmrg 290220d725fbSmrg if test "$GXX" = yes; then 290320d725fbSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 290420d725fbSmrg # We only want to do this on AIX 4.2 and lower, the check 290520d725fbSmrg # below for broken collect2 doesn't work under 4.3+ 290620d725fbSmrg collect2name=`${CC} -print-prog-name=collect2` 290720d725fbSmrg if test -f "$collect2name" && \ 290820d725fbSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 290920d725fbSmrg then 291020d725fbSmrg # We have reworked collect2 291120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 291220d725fbSmrg else 291320d725fbSmrg # We have old collect2 291420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 291520d725fbSmrg # It fails to find uninstalled libraries when the uninstalled 291620d725fbSmrg # path is not listed in the libpath. Setting hardcode_minus_L 291720d725fbSmrg # to unsupported forces relinking 291820d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 291920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 292020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 292120d725fbSmrg fi 292220d725fbSmrg ;; 292320d725fbSmrg esac 292420d725fbSmrg shared_flag='-shared' 292520d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 292620d725fbSmrg shared_flag="$shared_flag "'${wl}-G' 292720d725fbSmrg fi 292820d725fbSmrg else 292920d725fbSmrg # not using gcc 293020d725fbSmrg if test "$host_cpu" = ia64; then 293120d725fbSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 293220d725fbSmrg # chokes on -Wl,-G. The following line is correct: 293320d725fbSmrg shared_flag='-G' 293420d725fbSmrg else 293520d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 293620d725fbSmrg shared_flag='${wl}-G' 293720d725fbSmrg else 293820d725fbSmrg shared_flag='${wl}-bM:SRE' 293920d725fbSmrg fi 294020d725fbSmrg fi 294120d725fbSmrg fi 294220d725fbSmrg 294320d725fbSmrg # It seems that -bexpall does not export symbols beginning with 294420d725fbSmrg # underscore (_), so it is better to generate a list of symbols to export. 294520d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 294620d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 294720d725fbSmrg # Warning - without using the other runtime loading flags (-brtl), 294820d725fbSmrg # -berok will link without error, but may produce a broken library. 294920d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 295020d725fbSmrg # Determine the default libpath from the value encoded in an empty executable. 295120d725fbSmrg _LT_AC_SYS_LIBPATH_AIX 295220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 295320d725fbSmrg 295420d725fbSmrg _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" 295520d725fbSmrg else 295620d725fbSmrg if test "$host_cpu" = ia64; then 295720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 295820d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 295920d725fbSmrg _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" 296020d725fbSmrg else 296120d725fbSmrg # Determine the default libpath from the value encoded in an empty executable. 296220d725fbSmrg _LT_AC_SYS_LIBPATH_AIX 296320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 296420d725fbSmrg # Warning - without using the other run time loading flags, 296520d725fbSmrg # -berok will link without error, but may produce a broken library. 296620d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 296720d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 296820d725fbSmrg # Exported symbols can be pulled into shared objects from archives 296920d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 297020d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 297120d725fbSmrg # This is similar to how AIX traditionally builds its shared libraries. 297220d725fbSmrg _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' 297320d725fbSmrg fi 297420d725fbSmrg fi 297520d725fbSmrg ;; 297620d725fbSmrg 297720d725fbSmrg beos*) 297820d725fbSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 297920d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 298020d725fbSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 298120d725fbSmrg # support --undefined. This deserves some investigation. FIXME 298220d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 298320d725fbSmrg else 298420d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 298520d725fbSmrg fi 298620d725fbSmrg ;; 298720d725fbSmrg 298820d725fbSmrg chorus*) 298920d725fbSmrg case $cc_basename in 299020d725fbSmrg *) 299120d725fbSmrg # FIXME: insert proper C++ library support 299220d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 299320d725fbSmrg ;; 299420d725fbSmrg esac 299520d725fbSmrg ;; 299620d725fbSmrg 299720d725fbSmrg cygwin* | mingw* | pw32*) 299820d725fbSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 299920d725fbSmrg # as there is no search path for DLLs. 300020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 300120d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 300220d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 300320d725fbSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 300420d725fbSmrg 300520d725fbSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 300620d725fbSmrg _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' 300720d725fbSmrg # If the export-symbols file already is a .def file (1st line 300820d725fbSmrg # is EXPORTS), use it as is; otherwise, prepend... 300920d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 301020d725fbSmrg cp $export_symbols $output_objdir/$soname.def; 301120d725fbSmrg else 301220d725fbSmrg echo EXPORTS > $output_objdir/$soname.def; 301320d725fbSmrg cat $export_symbols >> $output_objdir/$soname.def; 301420d725fbSmrg fi~ 301520d725fbSmrg $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' 301620d725fbSmrg else 301720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 301820d725fbSmrg fi 301920d725fbSmrg ;; 302020d725fbSmrg darwin* | rhapsody*) 302120d725fbSmrg case $host_os in 302220d725fbSmrg rhapsody* | darwin1.[[012]]) 302320d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 302420d725fbSmrg ;; 302520d725fbSmrg *) # Darwin 1.3 on 302620d725fbSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 302720d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 302820d725fbSmrg else 302920d725fbSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 303020d725fbSmrg 10.[[012]]) 303120d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 303220d725fbSmrg ;; 303320d725fbSmrg 10.*) 303420d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 303520d725fbSmrg ;; 303620d725fbSmrg esac 303720d725fbSmrg fi 303820d725fbSmrg ;; 303920d725fbSmrg esac 304020d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 304120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 304220d725fbSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 304320d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 304420d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 304520d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 304620d725fbSmrg 304720d725fbSmrg if test "$GXX" = yes ; then 304820d725fbSmrg lt_int_apple_cc_single_mod=no 304920d725fbSmrg output_verbose_link_cmd='echo' 305020d725fbSmrg if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then 305120d725fbSmrg lt_int_apple_cc_single_mod=yes 305220d725fbSmrg fi 305320d725fbSmrg if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 305420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 305520d725fbSmrg else 305620d725fbSmrg _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' 305720d725fbSmrg fi 305820d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 305920d725fbSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 306020d725fbSmrg if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 306120d725fbSmrg _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}' 306220d725fbSmrg else 306320d725fbSmrg _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}' 306420d725fbSmrg fi 306520d725fbSmrg _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}' 306620d725fbSmrg else 306720d725fbSmrg case $cc_basename in 306820d725fbSmrg xlc*) 306920d725fbSmrg output_verbose_link_cmd='echo' 307020d725fbSmrg _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' 307120d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 307220d725fbSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 307320d725fbSmrg _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}' 307420d725fbSmrg _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}' 307520d725fbSmrg ;; 307620d725fbSmrg *) 307720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 307820d725fbSmrg ;; 307920d725fbSmrg esac 308020d725fbSmrg fi 308120d725fbSmrg ;; 308220d725fbSmrg 308320d725fbSmrg dgux*) 308420d725fbSmrg case $cc_basename in 308520d725fbSmrg ec++*) 308620d725fbSmrg # FIXME: insert proper C++ library support 308720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 308820d725fbSmrg ;; 308920d725fbSmrg ghcx*) 309020d725fbSmrg # Green Hills C++ Compiler 309120d725fbSmrg # FIXME: insert proper C++ library support 309220d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 309320d725fbSmrg ;; 309420d725fbSmrg *) 309520d725fbSmrg # FIXME: insert proper C++ library support 309620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 309720d725fbSmrg ;; 309820d725fbSmrg esac 309920d725fbSmrg ;; 310020d725fbSmrg freebsd[[12]]*) 310120d725fbSmrg # C++ shared libraries reported to be fairly broken before switch to ELF 310220d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 310320d725fbSmrg ;; 310420d725fbSmrg freebsd-elf*) 310520d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 310620d725fbSmrg ;; 310720d725fbSmrg freebsd* | dragonfly*) 310820d725fbSmrg # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 310920d725fbSmrg # conventions 311020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 311120d725fbSmrg ;; 311220d725fbSmrg gnu*) 311320d725fbSmrg ;; 311420d725fbSmrg hpux9*) 311520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 311620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 311720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 311820d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 311920d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 312020d725fbSmrg # but as the default 312120d725fbSmrg # location of the library. 312220d725fbSmrg 312320d725fbSmrg case $cc_basename in 312420d725fbSmrg CC*) 312520d725fbSmrg # FIXME: insert proper C++ library support 312620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 312720d725fbSmrg ;; 312820d725fbSmrg aCC*) 312920d725fbSmrg _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' 313020d725fbSmrg # Commands to make compiler produce verbose output that lists 313120d725fbSmrg # what "hidden" libraries, object files and flags are used when 313220d725fbSmrg # linking a shared library. 313320d725fbSmrg # 313420d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 313520d725fbSmrg # explicitly linking system object files so we need to strip them 313620d725fbSmrg # from the output so that they don't get included in the library 313720d725fbSmrg # dependencies. 313820d725fbSmrg 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' 313920d725fbSmrg ;; 314020d725fbSmrg *) 314120d725fbSmrg if test "$GXX" = yes; then 314220d725fbSmrg _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' 314320d725fbSmrg else 314420d725fbSmrg # FIXME: insert proper C++ library support 314520d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 314620d725fbSmrg fi 314720d725fbSmrg ;; 314820d725fbSmrg esac 314920d725fbSmrg ;; 315020d725fbSmrg hpux10*|hpux11*) 315120d725fbSmrg if test $with_gnu_ld = no; then 315220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 315320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 315420d725fbSmrg 315520d725fbSmrg case $host_cpu in 315620d725fbSmrg hppa*64*|ia64*) 315720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 315820d725fbSmrg ;; 315920d725fbSmrg *) 316020d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 316120d725fbSmrg ;; 316220d725fbSmrg esac 316320d725fbSmrg fi 316420d725fbSmrg case $host_cpu in 316520d725fbSmrg hppa*64*|ia64*) 316620d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 316720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 316820d725fbSmrg ;; 316920d725fbSmrg *) 317020d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 317120d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, 317220d725fbSmrg # but as the default 317320d725fbSmrg # location of the library. 317420d725fbSmrg ;; 317520d725fbSmrg esac 317620d725fbSmrg 317720d725fbSmrg case $cc_basename in 317820d725fbSmrg CC*) 317920d725fbSmrg # FIXME: insert proper C++ library support 318020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 318120d725fbSmrg ;; 318220d725fbSmrg aCC*) 318320d725fbSmrg case $host_cpu in 318420d725fbSmrg hppa*64*) 318520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 318620d725fbSmrg ;; 318720d725fbSmrg ia64*) 318820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 318920d725fbSmrg ;; 319020d725fbSmrg *) 319120d725fbSmrg _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' 319220d725fbSmrg ;; 319320d725fbSmrg esac 319420d725fbSmrg # Commands to make compiler produce verbose output that lists 319520d725fbSmrg # what "hidden" libraries, object files and flags are used when 319620d725fbSmrg # linking a shared library. 319720d725fbSmrg # 319820d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 319920d725fbSmrg # explicitly linking system object files so we need to strip them 320020d725fbSmrg # from the output so that they don't get included in the library 320120d725fbSmrg # dependencies. 320220d725fbSmrg 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' 320320d725fbSmrg ;; 320420d725fbSmrg *) 320520d725fbSmrg if test "$GXX" = yes; then 320620d725fbSmrg if test $with_gnu_ld = no; then 320720d725fbSmrg case $host_cpu in 320820d725fbSmrg hppa*64*) 320920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 321020d725fbSmrg ;; 321120d725fbSmrg ia64*) 321220d725fbSmrg _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' 321320d725fbSmrg ;; 321420d725fbSmrg *) 321520d725fbSmrg _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' 321620d725fbSmrg ;; 321720d725fbSmrg esac 321820d725fbSmrg fi 321920d725fbSmrg else 322020d725fbSmrg # FIXME: insert proper C++ library support 322120d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 322220d725fbSmrg fi 322320d725fbSmrg ;; 322420d725fbSmrg esac 322520d725fbSmrg ;; 322620d725fbSmrg interix3*) 322720d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 322820d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 322920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 323020d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 323120d725fbSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 323220d725fbSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 323320d725fbSmrg # default) and relocated if they conflict, which is a slow very memory 323420d725fbSmrg # consuming and fragmenting process. To avoid this, we pick a random, 323520d725fbSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 323620d725fbSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 323720d725fbSmrg _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' 323820d725fbSmrg _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' 323920d725fbSmrg ;; 324020d725fbSmrg irix5* | irix6*) 324120d725fbSmrg case $cc_basename in 324220d725fbSmrg CC*) 324320d725fbSmrg # SGI C++ 324420d725fbSmrg _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' 324520d725fbSmrg 324620d725fbSmrg # Archives containing C++ object files must be created using 324720d725fbSmrg # "CC -ar", where "CC" is the IRIX C++ compiler. This is 324820d725fbSmrg # necessary to make sure instantiated templates are included 324920d725fbSmrg # in the archive. 325020d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' 325120d725fbSmrg ;; 325220d725fbSmrg *) 325320d725fbSmrg if test "$GXX" = yes; then 325420d725fbSmrg if test "$with_gnu_ld" = no; then 325520d725fbSmrg _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' 325620d725fbSmrg else 325720d725fbSmrg _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' 325820d725fbSmrg fi 325920d725fbSmrg fi 326020d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 326120d725fbSmrg ;; 326220d725fbSmrg esac 326320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 326420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 326520d725fbSmrg ;; 326620d725fbSmrg linux* | k*bsd*-gnu) 326720d725fbSmrg case $cc_basename in 326820d725fbSmrg KCC*) 326920d725fbSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 327020d725fbSmrg 327120d725fbSmrg # KCC will only create a shared library if the output file 327220d725fbSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 327320d725fbSmrg # to its proper name (with version) after linking. 327420d725fbSmrg _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' 327520d725fbSmrg _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' 327620d725fbSmrg # Commands to make compiler produce verbose output that lists 327720d725fbSmrg # what "hidden" libraries, object files and flags are used when 327820d725fbSmrg # linking a shared library. 327920d725fbSmrg # 328020d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 328120d725fbSmrg # explicitly linking system object files so we need to strip them 328220d725fbSmrg # from the output so that they don't get included in the library 328320d725fbSmrg # dependencies. 328420d725fbSmrg 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' 328520d725fbSmrg 328620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' 328720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 328820d725fbSmrg 328920d725fbSmrg # Archives containing C++ object files must be created using 329020d725fbSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 329120d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 329220d725fbSmrg ;; 329320d725fbSmrg icpc*) 329420d725fbSmrg # Intel C++ 329520d725fbSmrg with_gnu_ld=yes 329620d725fbSmrg # version 8.0 and above of icpc choke on multiply defined symbols 329720d725fbSmrg # if we add $predep_objects and $postdep_objects, however 7.1 and 329820d725fbSmrg # earlier do not add the objects themselves. 329920d725fbSmrg case `$CC -V 2>&1` in 330020d725fbSmrg *"Version 7."*) 330120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 330220d725fbSmrg _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' 330320d725fbSmrg ;; 330420d725fbSmrg *) # Version 8.0 or newer 330520d725fbSmrg tmp_idyn= 330620d725fbSmrg case $host_cpu in 330720d725fbSmrg ia64*) tmp_idyn=' -i_dynamic';; 330820d725fbSmrg esac 330920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 331020d725fbSmrg _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' 331120d725fbSmrg ;; 331220d725fbSmrg esac 331320d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 331420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 331520d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 331620d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 331720d725fbSmrg ;; 331820d725fbSmrg pgCC*) 331920d725fbSmrg # Portland Group C++ compiler 332020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 332120d725fbSmrg _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' 332220d725fbSmrg 332320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 332420d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 332520d725fbSmrg _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' 332620d725fbSmrg ;; 332720d725fbSmrg cxx*) 332820d725fbSmrg # Compaq C++ 332920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 333020d725fbSmrg _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' 333120d725fbSmrg 333220d725fbSmrg runpath_var=LD_RUN_PATH 333320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 333420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 333520d725fbSmrg 333620d725fbSmrg # Commands to make compiler produce verbose output that lists 333720d725fbSmrg # what "hidden" libraries, object files and flags are used when 333820d725fbSmrg # linking a shared library. 333920d725fbSmrg # 334020d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 334120d725fbSmrg # explicitly linking system object files so we need to strip them 334220d725fbSmrg # from the output so that they don't get included in the library 334320d725fbSmrg # dependencies. 334420d725fbSmrg 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' 334520d725fbSmrg ;; 334620d725fbSmrg esac 334720d725fbSmrg ;; 334820d725fbSmrg lynxos*) 334920d725fbSmrg # FIXME: insert proper C++ library support 335020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 335120d725fbSmrg ;; 335220d725fbSmrg m88k*) 335320d725fbSmrg # FIXME: insert proper C++ library support 335420d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 335520d725fbSmrg ;; 335620d725fbSmrg mvs*) 335720d725fbSmrg case $cc_basename in 335820d725fbSmrg cxx*) 335920d725fbSmrg # FIXME: insert proper C++ library support 336020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 336120d725fbSmrg ;; 336220d725fbSmrg *) 336320d725fbSmrg # FIXME: insert proper C++ library support 336420d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 336520d725fbSmrg ;; 336620d725fbSmrg esac 336720d725fbSmrg ;; 336820d725fbSmrg netbsd* | netbsdelf*-gnu) 336920d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 337020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 337120d725fbSmrg wlarc= 337220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 337320d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 337420d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 337520d725fbSmrg fi 337620d725fbSmrg # Workaround some broken pre-1.5 toolchains 337720d725fbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 337820d725fbSmrg ;; 337920d725fbSmrg openbsd2*) 338020d725fbSmrg # C++ shared libraries are fairly broken 338120d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 338220d725fbSmrg ;; 338320d725fbSmrg openbsd*) 338420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 338520d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 338620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 338720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 338820d725fbSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 338920d725fbSmrg _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' 339020d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 339120d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 339220d725fbSmrg fi 339320d725fbSmrg output_verbose_link_cmd='echo' 339420d725fbSmrg ;; 339520d725fbSmrg osf3*) 339620d725fbSmrg case $cc_basename in 339720d725fbSmrg KCC*) 339820d725fbSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 339920d725fbSmrg 340020d725fbSmrg # KCC will only create a shared library if the output file 340120d725fbSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 340220d725fbSmrg # to its proper name (with version) after linking. 340320d725fbSmrg _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' 340420d725fbSmrg 340520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 340620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 340720d725fbSmrg 340820d725fbSmrg # Archives containing C++ object files must be created using 340920d725fbSmrg # "CC -Bstatic", where "CC" is the KAI C++ compiler. 341020d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' 341120d725fbSmrg 341220d725fbSmrg ;; 341320d725fbSmrg RCC*) 341420d725fbSmrg # Rational C++ 2.4.1 341520d725fbSmrg # FIXME: insert proper C++ library support 341620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 341720d725fbSmrg ;; 341820d725fbSmrg cxx*) 341920d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 342020d725fbSmrg _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' 342120d725fbSmrg 342220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 342320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 342420d725fbSmrg 342520d725fbSmrg # Commands to make compiler produce verbose output that lists 342620d725fbSmrg # what "hidden" libraries, object files and flags are used when 342720d725fbSmrg # linking a shared library. 342820d725fbSmrg # 342920d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 343020d725fbSmrg # explicitly linking system object files so we need to strip them 343120d725fbSmrg # from the output so that they don't get included in the library 343220d725fbSmrg # dependencies. 343320d725fbSmrg 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' 343420d725fbSmrg ;; 343520d725fbSmrg *) 343620d725fbSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 343720d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 343820d725fbSmrg _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' 343920d725fbSmrg 344020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 344120d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 344220d725fbSmrg 344320d725fbSmrg # Commands to make compiler produce verbose output that lists 344420d725fbSmrg # what "hidden" libraries, object files and flags are used when 344520d725fbSmrg # linking a shared library. 344620d725fbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 344720d725fbSmrg 344820d725fbSmrg else 344920d725fbSmrg # FIXME: insert proper C++ library support 345020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 345120d725fbSmrg fi 345220d725fbSmrg ;; 345320d725fbSmrg esac 345420d725fbSmrg ;; 345520d725fbSmrg osf4* | osf5*) 345620d725fbSmrg case $cc_basename in 345720d725fbSmrg KCC*) 345820d725fbSmrg # Kuck and Associates, Inc. (KAI) C++ Compiler 345920d725fbSmrg 346020d725fbSmrg # KCC will only create a shared library if the output file 346120d725fbSmrg # ends with ".so" (or ".sl" for HP-UX), so rename the library 346220d725fbSmrg # to its proper name (with version) after linking. 346320d725fbSmrg _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' 346420d725fbSmrg 346520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 346620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 346720d725fbSmrg 346820d725fbSmrg # Archives containing C++ object files must be created using 346920d725fbSmrg # the KAI C++ compiler. 347020d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' 347120d725fbSmrg ;; 347220d725fbSmrg RCC*) 347320d725fbSmrg # Rational C++ 2.4.1 347420d725fbSmrg # FIXME: insert proper C++ library support 347520d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 347620d725fbSmrg ;; 347720d725fbSmrg cxx*) 347820d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 347920d725fbSmrg _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' 348020d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 348120d725fbSmrg echo "-hidden">> $lib.exp~ 348220d725fbSmrg $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~ 348320d725fbSmrg $rm $lib.exp' 348420d725fbSmrg 348520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 348620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 348720d725fbSmrg 348820d725fbSmrg # Commands to make compiler produce verbose output that lists 348920d725fbSmrg # what "hidden" libraries, object files and flags are used when 349020d725fbSmrg # linking a shared library. 349120d725fbSmrg # 349220d725fbSmrg # There doesn't appear to be a way to prevent this compiler from 349320d725fbSmrg # explicitly linking system object files so we need to strip them 349420d725fbSmrg # from the output so that they don't get included in the library 349520d725fbSmrg # dependencies. 349620d725fbSmrg 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' 349720d725fbSmrg ;; 349820d725fbSmrg *) 349920d725fbSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 350020d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 350120d725fbSmrg _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' 350220d725fbSmrg 350320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 350420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 350520d725fbSmrg 350620d725fbSmrg # Commands to make compiler produce verbose output that lists 350720d725fbSmrg # what "hidden" libraries, object files and flags are used when 350820d725fbSmrg # linking a shared library. 350920d725fbSmrg output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 351020d725fbSmrg 351120d725fbSmrg else 351220d725fbSmrg # FIXME: insert proper C++ library support 351320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 351420d725fbSmrg fi 351520d725fbSmrg ;; 351620d725fbSmrg esac 351720d725fbSmrg ;; 351820d725fbSmrg psos*) 351920d725fbSmrg # FIXME: insert proper C++ library support 352020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 352120d725fbSmrg ;; 352220d725fbSmrg sunos4*) 352320d725fbSmrg case $cc_basename in 352420d725fbSmrg CC*) 352520d725fbSmrg # Sun C++ 4.x 352620d725fbSmrg # FIXME: insert proper C++ library support 352720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 352820d725fbSmrg ;; 352920d725fbSmrg lcc*) 353020d725fbSmrg # Lucid 353120d725fbSmrg # FIXME: insert proper C++ library support 353220d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 353320d725fbSmrg ;; 353420d725fbSmrg *) 353520d725fbSmrg # FIXME: insert proper C++ library support 353620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 353720d725fbSmrg ;; 353820d725fbSmrg esac 353920d725fbSmrg ;; 354020d725fbSmrg solaris*) 354120d725fbSmrg case $cc_basename in 354220d725fbSmrg CC*) 354320d725fbSmrg # Sun C++ 4.2, 5.x and Centerline C++ 354420d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes 354520d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' 354620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 354720d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 354820d725fbSmrg $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' 354920d725fbSmrg 355020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 355120d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 355220d725fbSmrg case $host_os in 355320d725fbSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 355420d725fbSmrg *) 355520d725fbSmrg # The C++ compiler is used as linker so we must use $wl 355620d725fbSmrg # flag to pass the commands to the underlying system 355720d725fbSmrg # linker. We must also pass each convience library through 355820d725fbSmrg # to the system linker between allextract/defaultextract. 355920d725fbSmrg # The C++ compiler will combine linker options so we 356020d725fbSmrg # cannot just pass the convience library names through 356120d725fbSmrg # without $wl. 356220d725fbSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 356320d725fbSmrg _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' 356420d725fbSmrg ;; 356520d725fbSmrg esac 356620d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 356720d725fbSmrg 356820d725fbSmrg output_verbose_link_cmd='echo' 356920d725fbSmrg 357020d725fbSmrg # Archives containing C++ object files must be created using 357120d725fbSmrg # "CC -xar", where "CC" is the Sun C++ compiler. This is 357220d725fbSmrg # necessary to make sure instantiated templates are included 357320d725fbSmrg # in the archive. 357420d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' 357520d725fbSmrg ;; 357620d725fbSmrg gcx*) 357720d725fbSmrg # Green Hills C++ Compiler 357820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 357920d725fbSmrg 358020d725fbSmrg # The C++ compiler must be used to create the archive. 358120d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 358220d725fbSmrg ;; 358320d725fbSmrg *) 358420d725fbSmrg # GNU C++ compiler with Solaris linker 358520d725fbSmrg if test "$GXX" = yes && test "$with_gnu_ld" = no; then 358620d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' 358720d725fbSmrg if $CC --version | grep -v '^2\.7' > /dev/null; then 358820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 358920d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 359020d725fbSmrg $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 359120d725fbSmrg 359220d725fbSmrg # Commands to make compiler produce verbose output that lists 359320d725fbSmrg # what "hidden" libraries, object files and flags are used when 359420d725fbSmrg # linking a shared library. 359520d725fbSmrg output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 359620d725fbSmrg else 359720d725fbSmrg # g++ 2.7 appears to require `-G' NOT `-shared' on this 359820d725fbSmrg # platform. 359920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 360020d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 360120d725fbSmrg $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 360220d725fbSmrg 360320d725fbSmrg # Commands to make compiler produce verbose output that lists 360420d725fbSmrg # what "hidden" libraries, object files and flags are used when 360520d725fbSmrg # linking a shared library. 360620d725fbSmrg output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 360720d725fbSmrg fi 360820d725fbSmrg 360920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' 361020d725fbSmrg fi 361120d725fbSmrg ;; 361220d725fbSmrg esac 361320d725fbSmrg ;; 361420d725fbSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) 361520d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 361620d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 361720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 361820d725fbSmrg runpath_var='LD_RUN_PATH' 361920d725fbSmrg 362020d725fbSmrg case $cc_basename in 362120d725fbSmrg CC*) 362220d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 362320d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 362420d725fbSmrg ;; 362520d725fbSmrg *) 362620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 362720d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 362820d725fbSmrg ;; 362920d725fbSmrg esac 363020d725fbSmrg ;; 363120d725fbSmrg sysv5* | sco3.2v5* | sco5v6*) 363220d725fbSmrg # Note: We can NOT use -z defs as we might desire, because we do not 363320d725fbSmrg # link with -lc, and that would cause any symbols used from libc to 363420d725fbSmrg # always be unresolved, which means just about no library would 363520d725fbSmrg # ever link correctly. If we're not using GNU ld we use -z text 363620d725fbSmrg # though, which does catch some bad symbols but isn't as heavy-handed 363720d725fbSmrg # as -z defs. 363820d725fbSmrg # For security reasons, it is highly recommended that you always 363920d725fbSmrg # use absolute paths for naming shared libraries, and exclude the 364020d725fbSmrg # DT_RUNPATH tag from executables and libraries. But doing so 364120d725fbSmrg # requires that you compile everything twice, which is a pain. 364220d725fbSmrg # So that behaviour is only enabled if SCOABSPATH is set to a 364320d725fbSmrg # non-empty value in the environment. Most likely only useful for 364420d725fbSmrg # creating official distributions of packages. 364520d725fbSmrg # This is a hack until libtool officially supports absolute path 364620d725fbSmrg # names for shared libraries. 364720d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 364820d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 364920d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 365020d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 365120d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 365220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 365320d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 365420d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 365520d725fbSmrg runpath_var='LD_RUN_PATH' 365620d725fbSmrg 365720d725fbSmrg case $cc_basename in 365820d725fbSmrg CC*) 365920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 366020d725fbSmrg _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' 366120d725fbSmrg ;; 366220d725fbSmrg *) 366320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 366420d725fbSmrg _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' 366520d725fbSmrg ;; 366620d725fbSmrg esac 366720d725fbSmrg ;; 366820d725fbSmrg tandem*) 366920d725fbSmrg case $cc_basename in 367020d725fbSmrg NCC*) 367120d725fbSmrg # NonStop-UX NCC 3.20 367220d725fbSmrg # FIXME: insert proper C++ library support 367320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 367420d725fbSmrg ;; 367520d725fbSmrg *) 367620d725fbSmrg # FIXME: insert proper C++ library support 367720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 367820d725fbSmrg ;; 367920d725fbSmrg esac 368020d725fbSmrg ;; 368120d725fbSmrg vxworks*) 368220d725fbSmrg # FIXME: insert proper C++ library support 368320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 368420d725fbSmrg ;; 368520d725fbSmrg *) 368620d725fbSmrg # FIXME: insert proper C++ library support 368720d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 368820d725fbSmrg ;; 368920d725fbSmrgesac 369020d725fbSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 369120d725fbSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 369220d725fbSmrg 369320d725fbSmrg_LT_AC_TAGVAR(GCC, $1)="$GXX" 369420d725fbSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 369520d725fbSmrg 369620d725fbSmrgAC_LIBTOOL_POSTDEP_PREDEP($1) 369720d725fbSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 369820d725fbSmrgAC_LIBTOOL_PROG_CC_C_O($1) 369920d725fbSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 370020d725fbSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 370120d725fbSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 370220d725fbSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 370320d725fbSmrg 370420d725fbSmrgAC_LIBTOOL_CONFIG($1) 370520d725fbSmrg 370620d725fbSmrgAC_LANG_POP 370720d725fbSmrgCC=$lt_save_CC 370820d725fbSmrgLDCXX=$LD 370920d725fbSmrgLD=$lt_save_LD 371020d725fbSmrgGCC=$lt_save_GCC 371120d725fbSmrgwith_gnu_ldcxx=$with_gnu_ld 371220d725fbSmrgwith_gnu_ld=$lt_save_with_gnu_ld 371320d725fbSmrglt_cv_path_LDCXX=$lt_cv_path_LD 371420d725fbSmrglt_cv_path_LD=$lt_save_path_LD 371520d725fbSmrglt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 371620d725fbSmrglt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 371720d725fbSmrg])# AC_LIBTOOL_LANG_CXX_CONFIG 371820d725fbSmrg 371920d725fbSmrg# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) 372020d725fbSmrg# ------------------------------------ 372120d725fbSmrg# Figure out "hidden" library dependencies from verbose 372220d725fbSmrg# compiler output when linking a shared library. 372320d725fbSmrg# Parse the compiler output and extract the necessary 372420d725fbSmrg# objects, libraries and library flags. 372520d725fbSmrgAC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ 372620d725fbSmrgdnl we can't use the lt_simple_compile_test_code here, 372720d725fbSmrgdnl because it contains code intended for an executable, 372820d725fbSmrgdnl not a library. It's possible we should let each 372920d725fbSmrgdnl tag define a new lt_????_link_test_code variable, 373020d725fbSmrgdnl but it's only used here... 373120d725fbSmrgifelse([$1],[],[cat > conftest.$ac_ext <<EOF 373220d725fbSmrgint a; 373320d725fbSmrgvoid foo (void) { a = 0; } 373420d725fbSmrgEOF 373520d725fbSmrg],[$1],[CXX],[cat > conftest.$ac_ext <<EOF 373620d725fbSmrgclass Foo 373720d725fbSmrg{ 373820d725fbSmrgpublic: 373920d725fbSmrg Foo (void) { a = 0; } 374020d725fbSmrgprivate: 374120d725fbSmrg int a; 374220d725fbSmrg}; 374320d725fbSmrgEOF 374420d725fbSmrg],[$1],[F77],[cat > conftest.$ac_ext <<EOF 374520d725fbSmrg subroutine foo 374620d725fbSmrg implicit none 374720d725fbSmrg integer*4 a 374820d725fbSmrg a=0 374920d725fbSmrg return 375020d725fbSmrg end 375120d725fbSmrgEOF 375220d725fbSmrg],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF 375320d725fbSmrgpublic class foo { 375420d725fbSmrg private int a; 375520d725fbSmrg public void bar (void) { 375620d725fbSmrg a = 0; 375720d725fbSmrg } 375820d725fbSmrg}; 375920d725fbSmrgEOF 376020d725fbSmrg]) 376120d725fbSmrgdnl Parse the compiler output and extract the necessary 376220d725fbSmrgdnl objects, libraries and library flags. 376320d725fbSmrgif AC_TRY_EVAL(ac_compile); then 376420d725fbSmrg # Parse the compiler output and extract the necessary 376520d725fbSmrg # objects, libraries and library flags. 376620d725fbSmrg 376720d725fbSmrg # Sentinel used to keep track of whether or not we are before 376820d725fbSmrg # the conftest object file. 376920d725fbSmrg pre_test_object_deps_done=no 377020d725fbSmrg 377120d725fbSmrg # The `*' in the case matches for architectures that use `case' in 377220d725fbSmrg # $output_verbose_cmd can trigger glob expansion during the loop 377320d725fbSmrg # eval without this substitution. 377420d725fbSmrg output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 377520d725fbSmrg 377620d725fbSmrg for p in `eval $output_verbose_link_cmd`; do 377720d725fbSmrg case $p in 377820d725fbSmrg 377920d725fbSmrg -L* | -R* | -l*) 378020d725fbSmrg # Some compilers place space between "-{L,R}" and the path. 378120d725fbSmrg # Remove the space. 378220d725fbSmrg if test $p = "-L" \ 378320d725fbSmrg || test $p = "-R"; then 378420d725fbSmrg prev=$p 378520d725fbSmrg continue 378620d725fbSmrg else 378720d725fbSmrg prev= 378820d725fbSmrg fi 378920d725fbSmrg 379020d725fbSmrg if test "$pre_test_object_deps_done" = no; then 379120d725fbSmrg case $p in 379220d725fbSmrg -L* | -R*) 379320d725fbSmrg # Internal compiler library paths should come after those 379420d725fbSmrg # provided the user. The postdeps already come after the 379520d725fbSmrg # user supplied libs so there is no need to process them. 379620d725fbSmrg if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then 379720d725fbSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" 379820d725fbSmrg else 379920d725fbSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" 380020d725fbSmrg fi 380120d725fbSmrg ;; 380220d725fbSmrg # The "-l" case would never come before the object being 380320d725fbSmrg # linked, so don't bother handling this case. 380420d725fbSmrg esac 380520d725fbSmrg else 380620d725fbSmrg if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then 380720d725fbSmrg _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" 380820d725fbSmrg else 380920d725fbSmrg _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" 381020d725fbSmrg fi 381120d725fbSmrg fi 381220d725fbSmrg ;; 381320d725fbSmrg 381420d725fbSmrg *.$objext) 381520d725fbSmrg # This assumes that the test object file only shows up 381620d725fbSmrg # once in the compiler output. 381720d725fbSmrg if test "$p" = "conftest.$objext"; then 381820d725fbSmrg pre_test_object_deps_done=yes 381920d725fbSmrg continue 382020d725fbSmrg fi 382120d725fbSmrg 382220d725fbSmrg if test "$pre_test_object_deps_done" = no; then 382320d725fbSmrg if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then 382420d725fbSmrg _LT_AC_TAGVAR(predep_objects, $1)="$p" 382520d725fbSmrg else 382620d725fbSmrg _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" 382720d725fbSmrg fi 382820d725fbSmrg else 382920d725fbSmrg if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then 383020d725fbSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$p" 383120d725fbSmrg else 383220d725fbSmrg _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" 383320d725fbSmrg fi 383420d725fbSmrg fi 383520d725fbSmrg ;; 383620d725fbSmrg 383720d725fbSmrg *) ;; # Ignore the rest. 383820d725fbSmrg 383920d725fbSmrg esac 384020d725fbSmrg done 384120d725fbSmrg 384220d725fbSmrg # Clean up. 384320d725fbSmrg rm -f a.out a.exe 384420d725fbSmrgelse 384520d725fbSmrg echo "libtool.m4: error: problem compiling $1 test program" 384620d725fbSmrgfi 384720d725fbSmrg 384820d725fbSmrg$rm -f confest.$objext 384920d725fbSmrg 385020d725fbSmrg# PORTME: override above test on systems where it is broken 385120d725fbSmrgifelse([$1],[CXX], 385220d725fbSmrg[case $host_os in 385320d725fbSmrginterix3*) 385420d725fbSmrg # Interix 3.5 installs completely hosed .la files for C++, so rather than 385520d725fbSmrg # hack all around it, let's just trust "g++" to DTRT. 385620d725fbSmrg _LT_AC_TAGVAR(predep_objects,$1)= 385720d725fbSmrg _LT_AC_TAGVAR(postdep_objects,$1)= 385820d725fbSmrg _LT_AC_TAGVAR(postdeps,$1)= 385920d725fbSmrg ;; 386020d725fbSmrg 386120d725fbSmrgsolaris*) 386220d725fbSmrg case $cc_basename in 386320d725fbSmrg CC*) 386420d725fbSmrg # Adding this requires a known-good setup of shared libraries for 386520d725fbSmrg # Sun compiler versions before 5.6, else PIC objects from an old 386620d725fbSmrg # archive will be linked into the output, leading to subtle bugs. 386720d725fbSmrg _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' 386820d725fbSmrg ;; 386920d725fbSmrg esac 387020d725fbSmrg ;; 387120d725fbSmrgesac 387220d725fbSmrg]) 387320d725fbSmrg 387420d725fbSmrgcase " $_LT_AC_TAGVAR(postdeps, $1) " in 387520d725fbSmrg*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; 387620d725fbSmrgesac 387720d725fbSmrg])# AC_LIBTOOL_POSTDEP_PREDEP 387820d725fbSmrg 387920d725fbSmrg# AC_LIBTOOL_LANG_F77_CONFIG 388020d725fbSmrg# -------------------------- 388120d725fbSmrg# Ensure that the configuration vars for the C compiler are 388220d725fbSmrg# suitably defined. Those variables are subsequently used by 388320d725fbSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 388420d725fbSmrgAC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) 388520d725fbSmrgAC_DEFUN([_LT_AC_LANG_F77_CONFIG], 388620d725fbSmrg[AC_REQUIRE([AC_PROG_F77]) 388720d725fbSmrgAC_LANG_PUSH(Fortran 77) 388820d725fbSmrg 388920d725fbSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 389020d725fbSmrg_LT_AC_TAGVAR(allow_undefined_flag, $1)= 389120d725fbSmrg_LT_AC_TAGVAR(always_export_symbols, $1)=no 389220d725fbSmrg_LT_AC_TAGVAR(archive_expsym_cmds, $1)= 389320d725fbSmrg_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 389420d725fbSmrg_LT_AC_TAGVAR(hardcode_direct, $1)=no 389520d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 389620d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 389720d725fbSmrg_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 389820d725fbSmrg_LT_AC_TAGVAR(hardcode_minus_L, $1)=no 389920d725fbSmrg_LT_AC_TAGVAR(hardcode_automatic, $1)=no 390020d725fbSmrg_LT_AC_TAGVAR(module_cmds, $1)= 390120d725fbSmrg_LT_AC_TAGVAR(module_expsym_cmds, $1)= 390220d725fbSmrg_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 390320d725fbSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 390420d725fbSmrg_LT_AC_TAGVAR(no_undefined_flag, $1)= 390520d725fbSmrg_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 390620d725fbSmrg_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 390720d725fbSmrg 390820d725fbSmrg# Source file extension for f77 test sources. 390920d725fbSmrgac_ext=f 391020d725fbSmrg 391120d725fbSmrg# Object file extension for compiled f77 test sources. 391220d725fbSmrgobjext=o 391320d725fbSmrg_LT_AC_TAGVAR(objext, $1)=$objext 391420d725fbSmrg 391520d725fbSmrg# Code to be used in simple compile tests 391620d725fbSmrglt_simple_compile_test_code=" subroutine t\n return\n end\n" 391720d725fbSmrg 391820d725fbSmrg# Code to be used in simple link tests 391920d725fbSmrglt_simple_link_test_code=" program t\n end\n" 392020d725fbSmrg 392120d725fbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 392220d725fbSmrg_LT_AC_SYS_COMPILER 392320d725fbSmrg 392420d725fbSmrg# save warnings/boilerplate of simple test code 392520d725fbSmrg_LT_COMPILER_BOILERPLATE 392620d725fbSmrg_LT_LINKER_BOILERPLATE 392720d725fbSmrg 392820d725fbSmrg# Allow CC to be a program name with arguments. 392920d725fbSmrglt_save_CC="$CC" 393020d725fbSmrgCC=${F77-"f77"} 393120d725fbSmrgcompiler=$CC 393220d725fbSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 393320d725fbSmrg_LT_CC_BASENAME([$compiler]) 393420d725fbSmrg 393520d725fbSmrgAC_MSG_CHECKING([if libtool supports shared libraries]) 393620d725fbSmrgAC_MSG_RESULT([$can_build_shared]) 393720d725fbSmrg 393820d725fbSmrgAC_MSG_CHECKING([whether to build shared libraries]) 393920d725fbSmrgtest "$can_build_shared" = "no" && enable_shared=no 394020d725fbSmrg 394120d725fbSmrg# On AIX, shared libraries and static libraries use the same namespace, and 394220d725fbSmrg# are all built from PIC. 394320d725fbSmrgcase $host_os in 394420d725fbSmrgaix3*) 394520d725fbSmrg test "$enable_shared" = yes && enable_static=no 394620d725fbSmrg if test -n "$RANLIB"; then 394720d725fbSmrg archive_cmds="$archive_cmds~\$RANLIB \$lib" 394820d725fbSmrg postinstall_cmds='$RANLIB $lib' 394920d725fbSmrg fi 395020d725fbSmrg ;; 395120d725fbSmrgaix4* | aix5*) 395220d725fbSmrg if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 395320d725fbSmrg test "$enable_shared" = yes && enable_static=no 395420d725fbSmrg fi 395520d725fbSmrg ;; 395620d725fbSmrgesac 395720d725fbSmrgAC_MSG_RESULT([$enable_shared]) 395820d725fbSmrg 395920d725fbSmrgAC_MSG_CHECKING([whether to build static libraries]) 396020d725fbSmrg# Make sure either enable_shared or enable_static is yes. 396120d725fbSmrgtest "$enable_shared" = yes || enable_static=yes 396220d725fbSmrgAC_MSG_RESULT([$enable_static]) 396320d725fbSmrg 396420d725fbSmrg_LT_AC_TAGVAR(GCC, $1)="$G77" 396520d725fbSmrg_LT_AC_TAGVAR(LD, $1)="$LD" 396620d725fbSmrg 396720d725fbSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 396820d725fbSmrgAC_LIBTOOL_PROG_CC_C_O($1) 396920d725fbSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 397020d725fbSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 397120d725fbSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 397220d725fbSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 397320d725fbSmrg 397420d725fbSmrgAC_LIBTOOL_CONFIG($1) 397520d725fbSmrg 397620d725fbSmrgAC_LANG_POP 397720d725fbSmrgCC="$lt_save_CC" 397820d725fbSmrg])# AC_LIBTOOL_LANG_F77_CONFIG 397920d725fbSmrg 398020d725fbSmrg 398120d725fbSmrg# AC_LIBTOOL_LANG_GCJ_CONFIG 398220d725fbSmrg# -------------------------- 398320d725fbSmrg# Ensure that the configuration vars for the C compiler are 398420d725fbSmrg# suitably defined. Those variables are subsequently used by 398520d725fbSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 398620d725fbSmrgAC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) 398720d725fbSmrgAC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], 398820d725fbSmrg[AC_LANG_SAVE 398920d725fbSmrg 399020d725fbSmrg# Source file extension for Java test sources. 399120d725fbSmrgac_ext=java 399220d725fbSmrg 399320d725fbSmrg# Object file extension for compiled Java test sources. 399420d725fbSmrgobjext=o 399520d725fbSmrg_LT_AC_TAGVAR(objext, $1)=$objext 399620d725fbSmrg 399720d725fbSmrg# Code to be used in simple compile tests 399820d725fbSmrglt_simple_compile_test_code="class foo {}\n" 399920d725fbSmrg 400020d725fbSmrg# Code to be used in simple link tests 400120d725fbSmrglt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' 400220d725fbSmrg 400320d725fbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 400420d725fbSmrg_LT_AC_SYS_COMPILER 400520d725fbSmrg 400620d725fbSmrg# save warnings/boilerplate of simple test code 400720d725fbSmrg_LT_COMPILER_BOILERPLATE 400820d725fbSmrg_LT_LINKER_BOILERPLATE 400920d725fbSmrg 401020d725fbSmrg# Allow CC to be a program name with arguments. 401120d725fbSmrglt_save_CC="$CC" 401220d725fbSmrgCC=${GCJ-"gcj"} 401320d725fbSmrgcompiler=$CC 401420d725fbSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 401520d725fbSmrg_LT_CC_BASENAME([$compiler]) 401620d725fbSmrg 401720d725fbSmrg# GCJ did not exist at the time GCC didn't implicitly link libc in. 401820d725fbSmrg_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 401920d725fbSmrg 402020d725fbSmrg_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds 402120d725fbSmrg 402220d725fbSmrgAC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) 402320d725fbSmrgAC_LIBTOOL_PROG_COMPILER_PIC($1) 402420d725fbSmrgAC_LIBTOOL_PROG_CC_C_O($1) 402520d725fbSmrgAC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) 402620d725fbSmrgAC_LIBTOOL_PROG_LD_SHLIBS($1) 402720d725fbSmrgAC_LIBTOOL_SYS_DYNAMIC_LINKER($1) 402820d725fbSmrgAC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) 402920d725fbSmrg 403020d725fbSmrgAC_LIBTOOL_CONFIG($1) 403120d725fbSmrg 403220d725fbSmrgAC_LANG_RESTORE 403320d725fbSmrgCC="$lt_save_CC" 403420d725fbSmrg])# AC_LIBTOOL_LANG_GCJ_CONFIG 403520d725fbSmrg 403620d725fbSmrg 403720d725fbSmrg# AC_LIBTOOL_LANG_RC_CONFIG 403820d725fbSmrg# ------------------------- 403920d725fbSmrg# Ensure that the configuration vars for the Windows resource compiler are 404020d725fbSmrg# suitably defined. Those variables are subsequently used by 404120d725fbSmrg# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. 404220d725fbSmrgAC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) 404320d725fbSmrgAC_DEFUN([_LT_AC_LANG_RC_CONFIG], 404420d725fbSmrg[AC_LANG_SAVE 404520d725fbSmrg 404620d725fbSmrg# Source file extension for RC test sources. 404720d725fbSmrgac_ext=rc 404820d725fbSmrg 404920d725fbSmrg# Object file extension for compiled RC test sources. 405020d725fbSmrgobjext=o 405120d725fbSmrg_LT_AC_TAGVAR(objext, $1)=$objext 405220d725fbSmrg 405320d725fbSmrg# Code to be used in simple compile tests 405420d725fbSmrglt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 405520d725fbSmrg 405620d725fbSmrg# Code to be used in simple link tests 405720d725fbSmrglt_simple_link_test_code="$lt_simple_compile_test_code" 405820d725fbSmrg 405920d725fbSmrg# ltmain only uses $CC for tagged configurations so make sure $CC is set. 406020d725fbSmrg_LT_AC_SYS_COMPILER 406120d725fbSmrg 406220d725fbSmrg# save warnings/boilerplate of simple test code 406320d725fbSmrg_LT_COMPILER_BOILERPLATE 406420d725fbSmrg_LT_LINKER_BOILERPLATE 406520d725fbSmrg 406620d725fbSmrg# Allow CC to be a program name with arguments. 406720d725fbSmrglt_save_CC="$CC" 406820d725fbSmrgCC=${RC-"windres"} 406920d725fbSmrgcompiler=$CC 407020d725fbSmrg_LT_AC_TAGVAR(compiler, $1)=$CC 407120d725fbSmrg_LT_CC_BASENAME([$compiler]) 407220d725fbSmrg_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes 407320d725fbSmrg 407420d725fbSmrgAC_LIBTOOL_CONFIG($1) 407520d725fbSmrg 407620d725fbSmrgAC_LANG_RESTORE 407720d725fbSmrgCC="$lt_save_CC" 407820d725fbSmrg])# AC_LIBTOOL_LANG_RC_CONFIG 407920d725fbSmrg 408020d725fbSmrg 408120d725fbSmrg# AC_LIBTOOL_CONFIG([TAGNAME]) 408220d725fbSmrg# ---------------------------- 408320d725fbSmrg# If TAGNAME is not passed, then create an initial libtool script 408420d725fbSmrg# with a default configuration from the untagged config vars. Otherwise 408520d725fbSmrg# add code to config.status for appending the configuration named by 408620d725fbSmrg# TAGNAME from the matching tagged config vars. 408720d725fbSmrgAC_DEFUN([AC_LIBTOOL_CONFIG], 408820d725fbSmrg[# The else clause should only fire when bootstrapping the 408920d725fbSmrg# libtool distribution, otherwise you forgot to ship ltmain.sh 409020d725fbSmrg# with your package, and you will get complaints that there are 409120d725fbSmrg# no rules to generate ltmain.sh. 409220d725fbSmrgif test -f "$ltmain"; then 409320d725fbSmrg # See if we are running on zsh, and set the options which allow our commands through 409420d725fbSmrg # without removal of \ escapes. 409520d725fbSmrg if test -n "${ZSH_VERSION+set}" ; then 409620d725fbSmrg setopt NO_GLOB_SUBST 409720d725fbSmrg fi 409820d725fbSmrg # Now quote all the things that may contain metacharacters while being 409920d725fbSmrg # careful not to overquote the AC_SUBSTed values. We take copies of the 410020d725fbSmrg # variables and quote the copies for generation of the libtool script. 410120d725fbSmrg for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ 410220d725fbSmrg SED SHELL STRIP \ 410320d725fbSmrg libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 410420d725fbSmrg old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 410520d725fbSmrg deplibs_check_method reload_flag reload_cmds need_locks \ 410620d725fbSmrg lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 410720d725fbSmrg lt_cv_sys_global_symbol_to_c_name_address \ 410820d725fbSmrg sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 410920d725fbSmrg old_postinstall_cmds old_postuninstall_cmds \ 411020d725fbSmrg _LT_AC_TAGVAR(compiler, $1) \ 411120d725fbSmrg _LT_AC_TAGVAR(CC, $1) \ 411220d725fbSmrg _LT_AC_TAGVAR(LD, $1) \ 411320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ 411420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ 411520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ 411620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ 411720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ 411820d725fbSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ 411920d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ 412020d725fbSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ 412120d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) \ 412220d725fbSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ 412320d725fbSmrg _LT_AC_TAGVAR(predep_objects, $1) \ 412420d725fbSmrg _LT_AC_TAGVAR(postdep_objects, $1) \ 412520d725fbSmrg _LT_AC_TAGVAR(predeps, $1) \ 412620d725fbSmrg _LT_AC_TAGVAR(postdeps, $1) \ 412720d725fbSmrg _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ 412820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1) \ 412920d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ 413020d725fbSmrg _LT_AC_TAGVAR(postinstall_cmds, $1) \ 413120d725fbSmrg _LT_AC_TAGVAR(postuninstall_cmds, $1) \ 413220d725fbSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ 413320d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1) \ 413420d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1) \ 413520d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) \ 413620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ 413720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ 413820d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ 413920d725fbSmrg _LT_AC_TAGVAR(hardcode_automatic, $1) \ 414020d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1) \ 414120d725fbSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) \ 414220d725fbSmrg _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ 414320d725fbSmrg _LT_AC_TAGVAR(exclude_expsyms, $1) \ 414420d725fbSmrg _LT_AC_TAGVAR(include_expsyms, $1); do 414520d725fbSmrg 414620d725fbSmrg case $var in 414720d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1) | \ 414820d725fbSmrg _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ 414920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1) | \ 415020d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ 415120d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1) | \ 415220d725fbSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ 415320d725fbSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ 415420d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ 415520d725fbSmrg extract_expsyms_cmds | reload_cmds | finish_cmds | \ 415620d725fbSmrg postinstall_cmds | postuninstall_cmds | \ 415720d725fbSmrg old_postinstall_cmds | old_postuninstall_cmds | \ 415820d725fbSmrg sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 415920d725fbSmrg # Double-quote double-evaled strings. 416020d725fbSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 416120d725fbSmrg ;; 416220d725fbSmrg *) 416320d725fbSmrg eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 416420d725fbSmrg ;; 416520d725fbSmrg esac 416620d725fbSmrg done 416720d725fbSmrg 416820d725fbSmrg case $lt_echo in 416920d725fbSmrg *'\[$]0 --fallback-echo"') 417020d725fbSmrg lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` 417120d725fbSmrg ;; 417220d725fbSmrg esac 417320d725fbSmrg 417420d725fbSmrgifelse([$1], [], 417520d725fbSmrg [cfgfile="${ofile}T" 417620d725fbSmrg trap "$rm \"$cfgfile\"; exit 1" 1 2 15 417720d725fbSmrg $rm -f "$cfgfile" 417820d725fbSmrg AC_MSG_NOTICE([creating $ofile])], 417920d725fbSmrg [cfgfile="$ofile"]) 418020d725fbSmrg 418120d725fbSmrg cat <<__EOF__ >> "$cfgfile" 418220d725fbSmrgifelse([$1], [], 418320d725fbSmrg[#! $SHELL 418420d725fbSmrg 418520d725fbSmrg# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 418620d725fbSmrg# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 418720d725fbSmrg# NOTE: Changes made to this file will be lost: look at ltmain.sh. 418820d725fbSmrg# 418920d725fbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 419020d725fbSmrg# Free Software Foundation, Inc. 419120d725fbSmrg# 419220d725fbSmrg# This file is part of GNU Libtool: 419320d725fbSmrg# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 419420d725fbSmrg# 419520d725fbSmrg# This program is free software; you can redistribute it and/or modify 419620d725fbSmrg# it under the terms of the GNU General Public License as published by 419720d725fbSmrg# the Free Software Foundation; either version 2 of the License, or 419820d725fbSmrg# (at your option) any later version. 419920d725fbSmrg# 420020d725fbSmrg# This program is distributed in the hope that it will be useful, but 420120d725fbSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 420220d725fbSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 420320d725fbSmrg# General Public License for more details. 420420d725fbSmrg# 420520d725fbSmrg# You should have received a copy of the GNU General Public License 420620d725fbSmrg# along with this program; if not, write to the Free Software 420720d725fbSmrg# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 420820d725fbSmrg# 420920d725fbSmrg# As a special exception to the GNU General Public License, if you 421020d725fbSmrg# distribute this file as part of a program that contains a 421120d725fbSmrg# configuration script generated by Autoconf, you may include it under 421220d725fbSmrg# the same distribution terms that you use for the rest of that program. 421320d725fbSmrg 421420d725fbSmrg# A sed program that does not truncate output. 421520d725fbSmrgSED=$lt_SED 421620d725fbSmrg 421720d725fbSmrg# Sed that helps us avoid accidentally triggering echo(1) options like -n. 421820d725fbSmrgXsed="$SED -e 1s/^X//" 421920d725fbSmrg 422020d725fbSmrg# The HP-UX ksh and POSIX shell print the target directory to stdout 422120d725fbSmrg# if CDPATH is set. 422220d725fbSmrg(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 422320d725fbSmrg 422420d725fbSmrg# The names of the tagged configurations supported by this script. 422520d725fbSmrgavailable_tags= 422620d725fbSmrg 422720d725fbSmrg# ### BEGIN LIBTOOL CONFIG], 422820d725fbSmrg[# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) 422920d725fbSmrg 423020d725fbSmrg# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 423120d725fbSmrg 423220d725fbSmrg# Shell to use when invoking shell scripts. 423320d725fbSmrgSHELL=$lt_SHELL 423420d725fbSmrg 423520d725fbSmrg# Whether or not to build shared libraries. 423620d725fbSmrgbuild_libtool_libs=$enable_shared 423720d725fbSmrg 423820d725fbSmrg# Whether or not to build static libraries. 423920d725fbSmrgbuild_old_libs=$enable_static 424020d725fbSmrg 424120d725fbSmrg# Whether or not to add -lc for building shared libraries. 424220d725fbSmrgbuild_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) 424320d725fbSmrg 424420d725fbSmrg# Whether or not to disallow shared libs when runtime libs are static 424520d725fbSmrgallow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) 424620d725fbSmrg 424720d725fbSmrg# Whether or not to optimize for fast installation. 424820d725fbSmrgfast_install=$enable_fast_install 424920d725fbSmrg 425020d725fbSmrg# The host system. 425120d725fbSmrghost_alias=$host_alias 425220d725fbSmrghost=$host 425320d725fbSmrghost_os=$host_os 425420d725fbSmrg 425520d725fbSmrg# The build system. 425620d725fbSmrgbuild_alias=$build_alias 425720d725fbSmrgbuild=$build 425820d725fbSmrgbuild_os=$build_os 425920d725fbSmrg 426020d725fbSmrg# An echo program that does not interpret backslashes. 426120d725fbSmrgecho=$lt_echo 426220d725fbSmrg 426320d725fbSmrg# The archiver. 426420d725fbSmrgAR=$lt_AR 426520d725fbSmrgAR_FLAGS=$lt_AR_FLAGS 426620d725fbSmrg 426720d725fbSmrg# A C compiler. 426820d725fbSmrgLTCC=$lt_LTCC 426920d725fbSmrg 427020d725fbSmrg# LTCC compiler flags. 427120d725fbSmrgLTCFLAGS=$lt_LTCFLAGS 427220d725fbSmrg 427320d725fbSmrg# A language-specific compiler. 427420d725fbSmrgCC=$lt_[]_LT_AC_TAGVAR(compiler, $1) 427520d725fbSmrg 427620d725fbSmrg# Is the compiler the GNU C compiler? 427720d725fbSmrgwith_gcc=$_LT_AC_TAGVAR(GCC, $1) 427820d725fbSmrg 427920d725fbSmrg# An ERE matcher. 428020d725fbSmrgEGREP=$lt_EGREP 428120d725fbSmrg 428220d725fbSmrg# The linker used to build libraries. 428320d725fbSmrgLD=$lt_[]_LT_AC_TAGVAR(LD, $1) 428420d725fbSmrg 428520d725fbSmrg# Whether we need hard or soft links. 428620d725fbSmrgLN_S=$lt_LN_S 428720d725fbSmrg 428820d725fbSmrg# A BSD-compatible nm program. 428920d725fbSmrgNM=$lt_NM 429020d725fbSmrg 429120d725fbSmrg# A symbol stripping program 429220d725fbSmrgSTRIP=$lt_STRIP 429320d725fbSmrg 429420d725fbSmrg# Used to examine libraries when file_magic_cmd begins "file" 429520d725fbSmrgMAGIC_CMD=$MAGIC_CMD 429620d725fbSmrg 429720d725fbSmrg# Used on cygwin: DLL creation program. 429820d725fbSmrgDLLTOOL="$DLLTOOL" 429920d725fbSmrg 430020d725fbSmrg# Used on cygwin: object dumper. 430120d725fbSmrgOBJDUMP="$OBJDUMP" 430220d725fbSmrg 430320d725fbSmrg# Used on cygwin: assembler. 430420d725fbSmrgAS="$AS" 430520d725fbSmrg 430620d725fbSmrg# The name of the directory that contains temporary libtool files. 430720d725fbSmrgobjdir=$objdir 430820d725fbSmrg 430920d725fbSmrg# How to create reloadable object files. 431020d725fbSmrgreload_flag=$lt_reload_flag 431120d725fbSmrgreload_cmds=$lt_reload_cmds 431220d725fbSmrg 431320d725fbSmrg# How to pass a linker flag through the compiler. 431420d725fbSmrgwl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 431520d725fbSmrg 431620d725fbSmrg# Object file suffix (normally "o"). 431720d725fbSmrgobjext="$ac_objext" 431820d725fbSmrg 431920d725fbSmrg# Old archive suffix (normally "a"). 432020d725fbSmrglibext="$libext" 432120d725fbSmrg 432220d725fbSmrg# Shared library suffix (normally ".so"). 432320d725fbSmrgshrext_cmds='$shrext_cmds' 432420d725fbSmrg 432520d725fbSmrg# Executable file suffix (normally ""). 432620d725fbSmrgexeext="$exeext" 432720d725fbSmrg 432820d725fbSmrg# Additional compiler flags for building library objects. 432920d725fbSmrgpic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 433020d725fbSmrgpic_mode=$pic_mode 433120d725fbSmrg 433220d725fbSmrg# What is the maximum length of a command? 433320d725fbSmrgmax_cmd_len=$lt_cv_sys_max_cmd_len 433420d725fbSmrg 433520d725fbSmrg# Does compiler simultaneously support -c and -o options? 433620d725fbSmrgcompiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) 433720d725fbSmrg 433820d725fbSmrg# Must we lock files when doing compilation? 433920d725fbSmrgneed_locks=$lt_need_locks 434020d725fbSmrg 434120d725fbSmrg# Do we need the lib prefix for modules? 434220d725fbSmrgneed_lib_prefix=$need_lib_prefix 434320d725fbSmrg 434420d725fbSmrg# Do we need a version for libraries? 434520d725fbSmrgneed_version=$need_version 434620d725fbSmrg 434720d725fbSmrg# Whether dlopen is supported. 434820d725fbSmrgdlopen_support=$enable_dlopen 434920d725fbSmrg 435020d725fbSmrg# Whether dlopen of programs is supported. 435120d725fbSmrgdlopen_self=$enable_dlopen_self 435220d725fbSmrg 435320d725fbSmrg# Whether dlopen of statically linked programs is supported. 435420d725fbSmrgdlopen_self_static=$enable_dlopen_self_static 435520d725fbSmrg 435620d725fbSmrg# Compiler flag to prevent dynamic linking. 435720d725fbSmrglink_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) 435820d725fbSmrg 435920d725fbSmrg# Compiler flag to turn off builtin functions. 436020d725fbSmrgno_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) 436120d725fbSmrg 436220d725fbSmrg# Compiler flag to allow reflexive dlopens. 436320d725fbSmrgexport_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) 436420d725fbSmrg 436520d725fbSmrg# Compiler flag to generate shared objects directly from archives. 436620d725fbSmrgwhole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) 436720d725fbSmrg 436820d725fbSmrg# Compiler flag to generate thread-safe objects. 436920d725fbSmrgthread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) 437020d725fbSmrg 437120d725fbSmrg# Library versioning type. 437220d725fbSmrgversion_type=$version_type 437320d725fbSmrg 437420d725fbSmrg# Format of library name prefix. 437520d725fbSmrglibname_spec=$lt_libname_spec 437620d725fbSmrg 437720d725fbSmrg# List of archive names. First name is the real one, the rest are links. 437820d725fbSmrg# The last name is the one that the linker finds with -lNAME. 437920d725fbSmrglibrary_names_spec=$lt_library_names_spec 438020d725fbSmrg 438120d725fbSmrg# The coded name of the library, if different from the real name. 438220d725fbSmrgsoname_spec=$lt_soname_spec 438320d725fbSmrg 438420d725fbSmrg# Commands used to build and install an old-style archive. 438520d725fbSmrgRANLIB=$lt_RANLIB 438620d725fbSmrgold_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) 438720d725fbSmrgold_postinstall_cmds=$lt_old_postinstall_cmds 438820d725fbSmrgold_postuninstall_cmds=$lt_old_postuninstall_cmds 438920d725fbSmrg 439020d725fbSmrg# Create an old-style archive from a shared archive. 439120d725fbSmrgold_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) 439220d725fbSmrg 439320d725fbSmrg# Create a temporary old-style archive to link instead of a shared archive. 439420d725fbSmrgold_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) 439520d725fbSmrg 439620d725fbSmrg# Commands used to build and install a shared archive. 439720d725fbSmrgarchive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) 439820d725fbSmrgarchive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) 439920d725fbSmrgpostinstall_cmds=$lt_postinstall_cmds 440020d725fbSmrgpostuninstall_cmds=$lt_postuninstall_cmds 440120d725fbSmrg 440220d725fbSmrg# Commands used to build a loadable module (assumed same as above if empty) 440320d725fbSmrgmodule_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) 440420d725fbSmrgmodule_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) 440520d725fbSmrg 440620d725fbSmrg# Commands to strip libraries. 440720d725fbSmrgold_striplib=$lt_old_striplib 440820d725fbSmrgstriplib=$lt_striplib 440920d725fbSmrg 441020d725fbSmrg# Dependencies to place before the objects being linked to create a 441120d725fbSmrg# shared library. 441220d725fbSmrgpredep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) 441320d725fbSmrg 441420d725fbSmrg# Dependencies to place after the objects being linked to create a 441520d725fbSmrg# shared library. 441620d725fbSmrgpostdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) 441720d725fbSmrg 441820d725fbSmrg# Dependencies to place before the objects being linked to create a 441920d725fbSmrg# shared library. 442020d725fbSmrgpredeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) 442120d725fbSmrg 442220d725fbSmrg# Dependencies to place after the objects being linked to create a 442320d725fbSmrg# shared library. 442420d725fbSmrgpostdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) 442520d725fbSmrg 442620d725fbSmrg# The library search path used internally by the compiler when linking 442720d725fbSmrg# a shared library. 442820d725fbSmrgcompiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) 442920d725fbSmrg 443020d725fbSmrg# Method to check whether dependent libraries are shared objects. 443120d725fbSmrgdeplibs_check_method=$lt_deplibs_check_method 443220d725fbSmrg 443320d725fbSmrg# Command to use when deplibs_check_method == file_magic. 443420d725fbSmrgfile_magic_cmd=$lt_file_magic_cmd 443520d725fbSmrg 443620d725fbSmrg# Flag that allows shared libraries with undefined symbols to be built. 443720d725fbSmrgallow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) 443820d725fbSmrg 443920d725fbSmrg# Flag that forces no undefined symbols. 444020d725fbSmrgno_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) 444120d725fbSmrg 444220d725fbSmrg# Commands used to finish a libtool library installation in a directory. 444320d725fbSmrgfinish_cmds=$lt_finish_cmds 444420d725fbSmrg 444520d725fbSmrg# Same as above, but a single script fragment to be evaled but not shown. 444620d725fbSmrgfinish_eval=$lt_finish_eval 444720d725fbSmrg 444820d725fbSmrg# Take the output of nm and produce a listing of raw symbols and C names. 444920d725fbSmrgglobal_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 445020d725fbSmrg 445120d725fbSmrg# Transform the output of nm in a proper C declaration 445220d725fbSmrgglobal_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 445320d725fbSmrg 445420d725fbSmrg# Transform the output of nm in a C name address pair 445520d725fbSmrgglobal_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 445620d725fbSmrg 445720d725fbSmrg# This is the shared library runtime path variable. 445820d725fbSmrgrunpath_var=$runpath_var 445920d725fbSmrg 446020d725fbSmrg# This is the shared library path variable. 446120d725fbSmrgshlibpath_var=$shlibpath_var 446220d725fbSmrg 446320d725fbSmrg# Is shlibpath searched before the hard-coded library search path? 446420d725fbSmrgshlibpath_overrides_runpath=$shlibpath_overrides_runpath 446520d725fbSmrg 446620d725fbSmrg# How to hardcode a shared library path into an executable. 446720d725fbSmrghardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) 446820d725fbSmrg 446920d725fbSmrg# Whether we should hardcode library paths into libraries. 447020d725fbSmrghardcode_into_libs=$hardcode_into_libs 447120d725fbSmrg 447220d725fbSmrg# Flag to hardcode \$libdir into a binary during linking. 447320d725fbSmrg# This must work even if \$libdir does not exist. 447420d725fbSmrghardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) 447520d725fbSmrg 447620d725fbSmrg# If ld is used when linking, flag to hardcode \$libdir into 447720d725fbSmrg# a binary during linking. This must work even if \$libdir does 447820d725fbSmrg# not exist. 447920d725fbSmrghardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) 448020d725fbSmrg 448120d725fbSmrg# Whether we need a single -rpath flag with a separated argument. 448220d725fbSmrghardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) 448320d725fbSmrg 448420d725fbSmrg# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 448520d725fbSmrg# resulting binary. 448620d725fbSmrghardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) 448720d725fbSmrg 448820d725fbSmrg# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 448920d725fbSmrg# resulting binary. 449020d725fbSmrghardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) 449120d725fbSmrg 449220d725fbSmrg# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 449320d725fbSmrg# the resulting binary. 449420d725fbSmrghardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) 449520d725fbSmrg 449620d725fbSmrg# Set to yes if building a shared library automatically hardcodes DIR into the library 449720d725fbSmrg# and all subsequent libraries and executables linked against it. 449820d725fbSmrghardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) 449920d725fbSmrg 450020d725fbSmrg# Variables whose values should be saved in libtool wrapper scripts and 450120d725fbSmrg# restored at relink time. 450220d725fbSmrgvariables_saved_for_relink="$variables_saved_for_relink" 450320d725fbSmrg 450420d725fbSmrg# Whether libtool must link a program against all its dependency libraries. 450520d725fbSmrglink_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) 450620d725fbSmrg 450720d725fbSmrg# Compile-time system search path for libraries 450820d725fbSmrgsys_lib_search_path_spec=$lt_sys_lib_search_path_spec 450920d725fbSmrg 451020d725fbSmrg# Run-time system search path for libraries 451120d725fbSmrgsys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 451220d725fbSmrg 451320d725fbSmrg# Fix the shell variable \$srcfile for the compiler. 451420d725fbSmrgfix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" 451520d725fbSmrg 451620d725fbSmrg# Set to yes if exported symbols are required. 451720d725fbSmrgalways_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) 451820d725fbSmrg 451920d725fbSmrg# The commands to list exported symbols. 452020d725fbSmrgexport_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) 452120d725fbSmrg 452220d725fbSmrg# The commands to extract the exported symbol list from a shared archive. 452320d725fbSmrgextract_expsyms_cmds=$lt_extract_expsyms_cmds 452420d725fbSmrg 452520d725fbSmrg# Symbols that should not be listed in the preloaded symbols. 452620d725fbSmrgexclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) 452720d725fbSmrg 452820d725fbSmrg# Symbols that must always be exported. 452920d725fbSmrginclude_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) 453020d725fbSmrg 453120d725fbSmrgifelse([$1],[], 453220d725fbSmrg[# ### END LIBTOOL CONFIG], 453320d725fbSmrg[# ### END LIBTOOL TAG CONFIG: $tagname]) 453420d725fbSmrg 453520d725fbSmrg__EOF__ 453620d725fbSmrg 453720d725fbSmrgifelse([$1],[], [ 453820d725fbSmrg case $host_os in 453920d725fbSmrg aix3*) 454020d725fbSmrg cat <<\EOF >> "$cfgfile" 454120d725fbSmrg 454220d725fbSmrg# AIX sometimes has problems with the GCC collect2 program. For some 454320d725fbSmrg# reason, if we set the COLLECT_NAMES environment variable, the problems 454420d725fbSmrg# vanish in a puff of smoke. 454520d725fbSmrgif test "X${COLLECT_NAMES+set}" != Xset; then 454620d725fbSmrg COLLECT_NAMES= 454720d725fbSmrg export COLLECT_NAMES 454820d725fbSmrgfi 454920d725fbSmrgEOF 455020d725fbSmrg ;; 455120d725fbSmrg esac 455220d725fbSmrg 455320d725fbSmrg # We use sed instead of cat because bash on DJGPP gets confused if 455420d725fbSmrg # if finds mixed CR/LF and LF-only lines. Since sed operates in 455520d725fbSmrg # text mode, it properly converts lines to CR/LF. This bash problem 455620d725fbSmrg # is reportedly fixed, but why not run on old versions too? 455720d725fbSmrg sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 455820d725fbSmrg 455920d725fbSmrg mv -f "$cfgfile" "$ofile" || \ 456020d725fbSmrg (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 456120d725fbSmrg chmod +x "$ofile" 456220d725fbSmrg]) 456320d725fbSmrgelse 456420d725fbSmrg # If there is no Makefile yet, we rely on a make rule to execute 456520d725fbSmrg # `config.status --recheck' to rerun these tests and create the 456620d725fbSmrg # libtool script then. 456720d725fbSmrg ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 456820d725fbSmrg if test -f "$ltmain_in"; then 456920d725fbSmrg test -f Makefile && make "$ltmain" 457020d725fbSmrg fi 457120d725fbSmrgfi 457220d725fbSmrg])# AC_LIBTOOL_CONFIG 457320d725fbSmrg 457420d725fbSmrg 457520d725fbSmrg# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) 457620d725fbSmrg# ------------------------------------------- 457720d725fbSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], 457820d725fbSmrg[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl 457920d725fbSmrg 458020d725fbSmrg_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= 458120d725fbSmrg 458220d725fbSmrgif test "$GCC" = yes; then 458320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' 458420d725fbSmrg 458520d725fbSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], 458620d725fbSmrg lt_cv_prog_compiler_rtti_exceptions, 458720d725fbSmrg [-fno-rtti -fno-exceptions], [], 458820d725fbSmrg [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) 458920d725fbSmrgfi 459020d725fbSmrg])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI 459120d725fbSmrg 459220d725fbSmrg 459320d725fbSmrg# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 459420d725fbSmrg# --------------------------------- 459520d725fbSmrgAC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 459620d725fbSmrg[AC_REQUIRE([AC_CANONICAL_HOST]) 459720d725fbSmrgAC_REQUIRE([AC_PROG_NM]) 459820d725fbSmrgAC_REQUIRE([AC_OBJEXT]) 459920d725fbSmrg# Check for command to grab the raw symbol name followed by C symbol from nm. 460020d725fbSmrgAC_MSG_CHECKING([command to parse $NM output from $compiler object]) 460120d725fbSmrgAC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], 460220d725fbSmrg[ 460320d725fbSmrg# These are sane defaults that work on at least a few old systems. 460420d725fbSmrg# [They come from Ultrix. What could be older than Ultrix?!! ;)] 460520d725fbSmrg 460620d725fbSmrg# Character class describing NM global symbol codes. 460720d725fbSmrgsymcode='[[BCDEGRST]]' 460820d725fbSmrg 460920d725fbSmrg# Regexp to match symbols that can be accessed directly from C. 461020d725fbSmrgsympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 461120d725fbSmrg 461220d725fbSmrg# Transform an extracted symbol line into a proper C declaration 461320d725fbSmrglt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 461420d725fbSmrg 461520d725fbSmrg# Transform an extracted symbol line into symbol name and symbol address 461620d725fbSmrglt_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'" 461720d725fbSmrg 461820d725fbSmrg# Define system-specific variables. 461920d725fbSmrgcase $host_os in 462020d725fbSmrgaix*) 462120d725fbSmrg symcode='[[BCDT]]' 462220d725fbSmrg ;; 462320d725fbSmrgcygwin* | mingw* | pw32*) 462420d725fbSmrg symcode='[[ABCDGISTW]]' 462520d725fbSmrg ;; 462620d725fbSmrghpux*) # Its linker distinguishes data from code symbols 462720d725fbSmrg if test "$host_cpu" = ia64; then 462820d725fbSmrg symcode='[[ABCDEGRST]]' 462920d725fbSmrg fi 463020d725fbSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 463120d725fbSmrg 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'" 463220d725fbSmrg ;; 463320d725fbSmrglinux* | k*bsd*-gnu) 463420d725fbSmrg if test "$host_cpu" = ia64; then 463520d725fbSmrg symcode='[[ABCDGIRSTW]]' 463620d725fbSmrg lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 463720d725fbSmrg 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'" 463820d725fbSmrg fi 463920d725fbSmrg ;; 464020d725fbSmrgirix* | nonstopux*) 464120d725fbSmrg symcode='[[BCDEGRST]]' 464220d725fbSmrg ;; 464320d725fbSmrgosf*) 464420d725fbSmrg symcode='[[BCDEGQRST]]' 464520d725fbSmrg ;; 464620d725fbSmrgsolaris*) 464720d725fbSmrg symcode='[[BDRT]]' 464820d725fbSmrg ;; 464920d725fbSmrgsco3.2v5*) 465020d725fbSmrg symcode='[[DT]]' 465120d725fbSmrg ;; 465220d725fbSmrgsysv4.2uw2*) 465320d725fbSmrg symcode='[[DT]]' 465420d725fbSmrg ;; 465520d725fbSmrgsysv5* | sco5v6* | unixware* | OpenUNIX*) 465620d725fbSmrg symcode='[[ABDT]]' 465720d725fbSmrg ;; 465820d725fbSmrgsysv4) 465920d725fbSmrg symcode='[[DFNSTU]]' 466020d725fbSmrg ;; 466120d725fbSmrgesac 466220d725fbSmrg 466320d725fbSmrg# Handle CRLF in mingw tool chain 466420d725fbSmrgopt_cr= 466520d725fbSmrgcase $build_os in 466620d725fbSmrgmingw*) 466720d725fbSmrg opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 466820d725fbSmrg ;; 466920d725fbSmrgesac 467020d725fbSmrg 467120d725fbSmrg# If we're using GNU nm, then use its standard symbol codes. 467220d725fbSmrgcase `$NM -V 2>&1` in 467320d725fbSmrg*GNU* | *'with BFD'*) 467420d725fbSmrg symcode='[[ABCDGIRSTW]]' ;; 467520d725fbSmrgesac 467620d725fbSmrg 467720d725fbSmrg# Try without a prefix undercore, then with it. 467820d725fbSmrgfor ac_symprfx in "" "_"; do 467920d725fbSmrg 468020d725fbSmrg # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 468120d725fbSmrg symxfrm="\\1 $ac_symprfx\\2 \\2" 468220d725fbSmrg 468320d725fbSmrg # Write the raw and C identifiers. 468420d725fbSmrg lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 468520d725fbSmrg 468620d725fbSmrg # Check to see that the pipe works correctly. 468720d725fbSmrg pipe_works=no 468820d725fbSmrg 468920d725fbSmrg rm -f conftest* 469020d725fbSmrg cat > conftest.$ac_ext <<EOF 469120d725fbSmrg#ifdef __cplusplus 469220d725fbSmrgextern "C" { 469320d725fbSmrg#endif 469420d725fbSmrgchar nm_test_var; 469520d725fbSmrgvoid nm_test_func(){} 469620d725fbSmrg#ifdef __cplusplus 469720d725fbSmrg} 469820d725fbSmrg#endif 469920d725fbSmrgint main(){nm_test_var='a';nm_test_func();return(0);} 470020d725fbSmrgEOF 470120d725fbSmrg 470220d725fbSmrg if AC_TRY_EVAL(ac_compile); then 470320d725fbSmrg # Now try to grab the symbols. 470420d725fbSmrg nlist=conftest.nm 470520d725fbSmrg if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 470620d725fbSmrg # Try sorting and uniquifying the output. 470720d725fbSmrg if sort "$nlist" | uniq > "$nlist"T; then 470820d725fbSmrg mv -f "$nlist"T "$nlist" 470920d725fbSmrg else 471020d725fbSmrg rm -f "$nlist"T 471120d725fbSmrg fi 471220d725fbSmrg 471320d725fbSmrg # Make sure that we snagged all the symbols we need. 471420d725fbSmrg if grep ' nm_test_var$' "$nlist" >/dev/null; then 471520d725fbSmrg if grep ' nm_test_func$' "$nlist" >/dev/null; then 471620d725fbSmrg cat <<EOF > conftest.$ac_ext 471720d725fbSmrg#ifdef __cplusplus 471820d725fbSmrgextern "C" { 471920d725fbSmrg#endif 472020d725fbSmrg 472120d725fbSmrgEOF 472220d725fbSmrg # Now generate the symbol file. 472320d725fbSmrg eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 472420d725fbSmrg 472520d725fbSmrg cat <<EOF >> conftest.$ac_ext 472620d725fbSmrg#if defined (__STDC__) && __STDC__ 472720d725fbSmrg# define lt_ptr_t void * 472820d725fbSmrg#else 472920d725fbSmrg# define lt_ptr_t char * 473020d725fbSmrg# define const 473120d725fbSmrg#endif 473220d725fbSmrg 473320d725fbSmrg/* The mapping between symbol names and symbols. */ 473420d725fbSmrgconst struct { 473520d725fbSmrg const char *name; 473620d725fbSmrg lt_ptr_t address; 473720d725fbSmrg} 473820d725fbSmrglt_preloaded_symbols[[]] = 473920d725fbSmrg{ 474020d725fbSmrgEOF 474120d725fbSmrg $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 474220d725fbSmrg cat <<\EOF >> conftest.$ac_ext 474320d725fbSmrg {0, (lt_ptr_t) 0} 474420d725fbSmrg}; 474520d725fbSmrg 474620d725fbSmrg#ifdef __cplusplus 474720d725fbSmrg} 474820d725fbSmrg#endif 474920d725fbSmrgEOF 475020d725fbSmrg # Now try linking the two files. 475120d725fbSmrg mv conftest.$ac_objext conftstm.$ac_objext 475220d725fbSmrg lt_save_LIBS="$LIBS" 475320d725fbSmrg lt_save_CFLAGS="$CFLAGS" 475420d725fbSmrg LIBS="conftstm.$ac_objext" 475520d725fbSmrg CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" 475620d725fbSmrg if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then 475720d725fbSmrg pipe_works=yes 475820d725fbSmrg fi 475920d725fbSmrg LIBS="$lt_save_LIBS" 476020d725fbSmrg CFLAGS="$lt_save_CFLAGS" 476120d725fbSmrg else 476220d725fbSmrg echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD 476320d725fbSmrg fi 476420d725fbSmrg else 476520d725fbSmrg echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD 476620d725fbSmrg fi 476720d725fbSmrg else 476820d725fbSmrg echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD 476920d725fbSmrg fi 477020d725fbSmrg else 477120d725fbSmrg echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD 477220d725fbSmrg cat conftest.$ac_ext >&5 477320d725fbSmrg fi 477420d725fbSmrg rm -f conftest* conftst* 477520d725fbSmrg 477620d725fbSmrg # Do not use the global_symbol_pipe unless it works. 477720d725fbSmrg if test "$pipe_works" = yes; then 477820d725fbSmrg break 477920d725fbSmrg else 478020d725fbSmrg lt_cv_sys_global_symbol_pipe= 478120d725fbSmrg fi 478220d725fbSmrgdone 478320d725fbSmrg]) 478420d725fbSmrgif test -z "$lt_cv_sys_global_symbol_pipe"; then 478520d725fbSmrg lt_cv_sys_global_symbol_to_cdecl= 478620d725fbSmrgfi 478720d725fbSmrgif test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 478820d725fbSmrg AC_MSG_RESULT(failed) 478920d725fbSmrgelse 479020d725fbSmrg AC_MSG_RESULT(ok) 479120d725fbSmrgfi 479220d725fbSmrg]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 479320d725fbSmrg 479420d725fbSmrg 479520d725fbSmrg# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) 479620d725fbSmrg# --------------------------------------- 479720d725fbSmrgAC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], 479820d725fbSmrg[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= 479920d725fbSmrg_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 480020d725fbSmrg_LT_AC_TAGVAR(lt_prog_compiler_static, $1)= 480120d725fbSmrg 480220d725fbSmrgAC_MSG_CHECKING([for $compiler option to produce PIC]) 480320d725fbSmrg ifelse([$1],[CXX],[ 480420d725fbSmrg # C++ specific cases for pic, static, wl, etc. 480520d725fbSmrg if test "$GXX" = yes; then 480620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 480720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 480820d725fbSmrg 480920d725fbSmrg case $host_os in 481020d725fbSmrg aix*) 481120d725fbSmrg # All AIX code is PIC. 481220d725fbSmrg if test "$host_cpu" = ia64; then 481320d725fbSmrg # AIX 5 now supports IA64 processor 481420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 481520d725fbSmrg fi 481620d725fbSmrg ;; 481720d725fbSmrg amigaos*) 481820d725fbSmrg # FIXME: we need at least 68020 code to build shared libraries, but 481920d725fbSmrg # adding the `-m68020' flag to GCC prevents building anything better, 482020d725fbSmrg # like `-m68040'. 482120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 482220d725fbSmrg ;; 482320d725fbSmrg beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 482420d725fbSmrg # PIC is the default for these OSes. 482520d725fbSmrg ;; 482620d725fbSmrg mingw* | os2* | pw32*) 482720d725fbSmrg # This hack is so that the source file can tell whether it is being 482820d725fbSmrg # built for inclusion in a dll (and should export symbols for example). 482920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 483020d725fbSmrg ;; 483120d725fbSmrg darwin* | rhapsody*) 483220d725fbSmrg # PIC is the default on this platform 483320d725fbSmrg # Common symbols not allowed in MH_DYLIB files 483420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 483520d725fbSmrg ;; 483620d725fbSmrg *djgpp*) 483720d725fbSmrg # DJGPP does not support shared libraries at all 483820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 483920d725fbSmrg ;; 484020d725fbSmrg interix3*) 484120d725fbSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 484220d725fbSmrg # Instead, we relocate shared libraries at runtime. 484320d725fbSmrg ;; 484420d725fbSmrg sysv4*MP*) 484520d725fbSmrg if test -d /usr/nec; then 484620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 484720d725fbSmrg fi 484820d725fbSmrg ;; 484920d725fbSmrg hpux*) 485020d725fbSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 485120d725fbSmrg # not for PA HP-UX. 485220d725fbSmrg case $host_cpu in 485320d725fbSmrg hppa*64*|ia64*) 485420d725fbSmrg ;; 485520d725fbSmrg *) 485620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 485720d725fbSmrg ;; 485820d725fbSmrg esac 485920d725fbSmrg ;; 486020d725fbSmrg *) 486120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 486220d725fbSmrg ;; 486320d725fbSmrg esac 486420d725fbSmrg else 486520d725fbSmrg case $host_os in 486620d725fbSmrg aix4* | aix5*) 486720d725fbSmrg # All AIX code is PIC. 486820d725fbSmrg if test "$host_cpu" = ia64; then 486920d725fbSmrg # AIX 5 now supports IA64 processor 487020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 487120d725fbSmrg else 487220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 487320d725fbSmrg fi 487420d725fbSmrg ;; 487520d725fbSmrg chorus*) 487620d725fbSmrg case $cc_basename in 487720d725fbSmrg cxch68*) 487820d725fbSmrg # Green Hills C++ Compiler 487920d725fbSmrg # _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" 488020d725fbSmrg ;; 488120d725fbSmrg esac 488220d725fbSmrg ;; 488320d725fbSmrg darwin*) 488420d725fbSmrg # PIC is the default on this platform 488520d725fbSmrg # Common symbols not allowed in MH_DYLIB files 488620d725fbSmrg case $cc_basename in 488720d725fbSmrg xlc*) 488820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 488920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 489020d725fbSmrg ;; 489120d725fbSmrg esac 489220d725fbSmrg ;; 489320d725fbSmrg dgux*) 489420d725fbSmrg case $cc_basename in 489520d725fbSmrg ec++*) 489620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 489720d725fbSmrg ;; 489820d725fbSmrg ghcx*) 489920d725fbSmrg # Green Hills C++ Compiler 490020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 490120d725fbSmrg ;; 490220d725fbSmrg *) 490320d725fbSmrg ;; 490420d725fbSmrg esac 490520d725fbSmrg ;; 490620d725fbSmrg freebsd* | dragonfly*) 490720d725fbSmrg # FreeBSD uses GNU C++ 490820d725fbSmrg ;; 490920d725fbSmrg hpux9* | hpux10* | hpux11*) 491020d725fbSmrg case $cc_basename in 491120d725fbSmrg CC*) 491220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 491320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 491420d725fbSmrg if test "$host_cpu" != ia64; then 491520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 491620d725fbSmrg fi 491720d725fbSmrg ;; 491820d725fbSmrg aCC*) 491920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 492020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 492120d725fbSmrg case $host_cpu in 492220d725fbSmrg hppa*64*|ia64*) 492320d725fbSmrg # +Z the default 492420d725fbSmrg ;; 492520d725fbSmrg *) 492620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 492720d725fbSmrg ;; 492820d725fbSmrg esac 492920d725fbSmrg ;; 493020d725fbSmrg *) 493120d725fbSmrg ;; 493220d725fbSmrg esac 493320d725fbSmrg ;; 493420d725fbSmrg interix*) 493520d725fbSmrg # This is c89, which is MS Visual C++ (no shared libs) 493620d725fbSmrg # Anyone wants to do a port? 493720d725fbSmrg ;; 493820d725fbSmrg irix5* | irix6* | nonstopux*) 493920d725fbSmrg case $cc_basename in 494020d725fbSmrg CC*) 494120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 494220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 494320d725fbSmrg # CC pic flag -KPIC is the default. 494420d725fbSmrg ;; 494520d725fbSmrg *) 494620d725fbSmrg ;; 494720d725fbSmrg esac 494820d725fbSmrg ;; 494920d725fbSmrg linux* | k*bsd*-gnu) 495020d725fbSmrg case $cc_basename in 495120d725fbSmrg KCC*) 495220d725fbSmrg # KAI C++ Compiler 495320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 495420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 495520d725fbSmrg ;; 495620d725fbSmrg icpc* | ecpc*) 495720d725fbSmrg # Intel C++ 495820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 495920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 496020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 496120d725fbSmrg ;; 496220d725fbSmrg pgCC*) 496320d725fbSmrg # Portland Group C++ compiler. 496420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 496520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 496620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 496720d725fbSmrg ;; 496820d725fbSmrg cxx*) 496920d725fbSmrg # Compaq C++ 497020d725fbSmrg # Make sure the PIC flag is empty. It appears that all Alpha 497120d725fbSmrg # Linux and Compaq Tru64 Unix objects are PIC. 497220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 497320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 497420d725fbSmrg ;; 497520d725fbSmrg *) 497620d725fbSmrg ;; 497720d725fbSmrg esac 497820d725fbSmrg ;; 497920d725fbSmrg lynxos*) 498020d725fbSmrg ;; 498120d725fbSmrg m88k*) 498220d725fbSmrg ;; 498320d725fbSmrg mvs*) 498420d725fbSmrg case $cc_basename in 498520d725fbSmrg cxx*) 498620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' 498720d725fbSmrg ;; 498820d725fbSmrg *) 498920d725fbSmrg ;; 499020d725fbSmrg esac 499120d725fbSmrg ;; 499220d725fbSmrg netbsd* | netbsdelf*-gnu) 499320d725fbSmrg ;; 499420d725fbSmrg osf3* | osf4* | osf5*) 499520d725fbSmrg case $cc_basename in 499620d725fbSmrg KCC*) 499720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' 499820d725fbSmrg ;; 499920d725fbSmrg RCC*) 500020d725fbSmrg # Rational C++ 2.4.1 500120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 500220d725fbSmrg ;; 500320d725fbSmrg cxx*) 500420d725fbSmrg # Digital/Compaq C++ 500520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 500620d725fbSmrg # Make sure the PIC flag is empty. It appears that all Alpha 500720d725fbSmrg # Linux and Compaq Tru64 Unix objects are PIC. 500820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 500920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 501020d725fbSmrg ;; 501120d725fbSmrg *) 501220d725fbSmrg ;; 501320d725fbSmrg esac 501420d725fbSmrg ;; 501520d725fbSmrg psos*) 501620d725fbSmrg ;; 501720d725fbSmrg solaris*) 501820d725fbSmrg case $cc_basename in 501920d725fbSmrg CC*) 502020d725fbSmrg # Sun C++ 4.2, 5.x and Centerline C++ 502120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 502220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 502320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 502420d725fbSmrg ;; 502520d725fbSmrg gcx*) 502620d725fbSmrg # Green Hills C++ Compiler 502720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 502820d725fbSmrg ;; 502920d725fbSmrg *) 503020d725fbSmrg ;; 503120d725fbSmrg esac 503220d725fbSmrg ;; 503320d725fbSmrg sunos4*) 503420d725fbSmrg case $cc_basename in 503520d725fbSmrg CC*) 503620d725fbSmrg # Sun C++ 4.x 503720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 503820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 503920d725fbSmrg ;; 504020d725fbSmrg lcc*) 504120d725fbSmrg # Lucid 504220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 504320d725fbSmrg ;; 504420d725fbSmrg *) 504520d725fbSmrg ;; 504620d725fbSmrg esac 504720d725fbSmrg ;; 504820d725fbSmrg tandem*) 504920d725fbSmrg case $cc_basename in 505020d725fbSmrg NCC*) 505120d725fbSmrg # NonStop-UX NCC 3.20 505220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 505320d725fbSmrg ;; 505420d725fbSmrg *) 505520d725fbSmrg ;; 505620d725fbSmrg esac 505720d725fbSmrg ;; 505820d725fbSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 505920d725fbSmrg case $cc_basename in 506020d725fbSmrg CC*) 506120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 506220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 506320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 506420d725fbSmrg ;; 506520d725fbSmrg esac 506620d725fbSmrg ;; 506720d725fbSmrg vxworks*) 506820d725fbSmrg ;; 506920d725fbSmrg *) 507020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 507120d725fbSmrg ;; 507220d725fbSmrg esac 507320d725fbSmrg fi 507420d725fbSmrg], 507520d725fbSmrg[ 507620d725fbSmrg if test "$GCC" = yes; then 507720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 507820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 507920d725fbSmrg 508020d725fbSmrg case $host_os in 508120d725fbSmrg aix*) 508220d725fbSmrg # All AIX code is PIC. 508320d725fbSmrg if test "$host_cpu" = ia64; then 508420d725fbSmrg # AIX 5 now supports IA64 processor 508520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 508620d725fbSmrg fi 508720d725fbSmrg ;; 508820d725fbSmrg 508920d725fbSmrg amigaos*) 509020d725fbSmrg # FIXME: we need at least 68020 code to build shared libraries, but 509120d725fbSmrg # adding the `-m68020' flag to GCC prevents building anything better, 509220d725fbSmrg # like `-m68040'. 509320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' 509420d725fbSmrg ;; 509520d725fbSmrg 509620d725fbSmrg beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 509720d725fbSmrg # PIC is the default for these OSes. 509820d725fbSmrg ;; 509920d725fbSmrg 510020d725fbSmrg mingw* | pw32* | os2*) 510120d725fbSmrg # This hack is so that the source file can tell whether it is being 510220d725fbSmrg # built for inclusion in a dll (and should export symbols for example). 510320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 510420d725fbSmrg ;; 510520d725fbSmrg 510620d725fbSmrg darwin* | rhapsody*) 510720d725fbSmrg # PIC is the default on this platform 510820d725fbSmrg # Common symbols not allowed in MH_DYLIB files 510920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' 511020d725fbSmrg ;; 511120d725fbSmrg 511220d725fbSmrg interix3*) 511320d725fbSmrg # Interix 3.x gcc -fpic/-fPIC options generate broken code. 511420d725fbSmrg # Instead, we relocate shared libraries at runtime. 511520d725fbSmrg ;; 511620d725fbSmrg 511720d725fbSmrg msdosdjgpp*) 511820d725fbSmrg # Just because we use GCC doesn't mean we suddenly get shared libraries 511920d725fbSmrg # on systems that don't support them. 512020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 512120d725fbSmrg enable_shared=no 512220d725fbSmrg ;; 512320d725fbSmrg 512420d725fbSmrg sysv4*MP*) 512520d725fbSmrg if test -d /usr/nec; then 512620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic 512720d725fbSmrg fi 512820d725fbSmrg ;; 512920d725fbSmrg 513020d725fbSmrg hpux*) 513120d725fbSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 513220d725fbSmrg # not for PA HP-UX. 513320d725fbSmrg case $host_cpu in 513420d725fbSmrg hppa*64*|ia64*) 513520d725fbSmrg # +Z the default 513620d725fbSmrg ;; 513720d725fbSmrg *) 513820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 513920d725fbSmrg ;; 514020d725fbSmrg esac 514120d725fbSmrg ;; 514220d725fbSmrg 514320d725fbSmrg *) 514420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' 514520d725fbSmrg ;; 514620d725fbSmrg esac 514720d725fbSmrg else 514820d725fbSmrg # PORTME Check for flag to pass linker flags through the system compiler. 514920d725fbSmrg case $host_os in 515020d725fbSmrg aix*) 515120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 515220d725fbSmrg if test "$host_cpu" = ia64; then 515320d725fbSmrg # AIX 5 now supports IA64 processor 515420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 515520d725fbSmrg else 515620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' 515720d725fbSmrg fi 515820d725fbSmrg ;; 515920d725fbSmrg darwin*) 516020d725fbSmrg # PIC is the default on this platform 516120d725fbSmrg # Common symbols not allowed in MH_DYLIB files 516220d725fbSmrg case $cc_basename in 516320d725fbSmrg xlc*) 516420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' 516520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 516620d725fbSmrg ;; 516720d725fbSmrg esac 516820d725fbSmrg ;; 516920d725fbSmrg 517020d725fbSmrg mingw* | pw32* | os2*) 517120d725fbSmrg # This hack is so that the source file can tell whether it is being 517220d725fbSmrg # built for inclusion in a dll (and should export symbols for example). 517320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' 517420d725fbSmrg ;; 517520d725fbSmrg 517620d725fbSmrg hpux9* | hpux10* | hpux11*) 517720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 517820d725fbSmrg # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 517920d725fbSmrg # not for PA HP-UX. 518020d725fbSmrg case $host_cpu in 518120d725fbSmrg hppa*64*|ia64*) 518220d725fbSmrg # +Z the default 518320d725fbSmrg ;; 518420d725fbSmrg *) 518520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' 518620d725fbSmrg ;; 518720d725fbSmrg esac 518820d725fbSmrg # Is there a better lt_prog_compiler_static that works with the bundled CC? 518920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' 519020d725fbSmrg ;; 519120d725fbSmrg 519220d725fbSmrg irix5* | irix6* | nonstopux*) 519320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 519420d725fbSmrg # PIC (with -KPIC) is the default. 519520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 519620d725fbSmrg ;; 519720d725fbSmrg 519820d725fbSmrg newsos6) 519920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 520020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 520120d725fbSmrg ;; 520220d725fbSmrg 520320d725fbSmrg linux* | k*bsd*-gnu) 520420d725fbSmrg case $cc_basename in 520520d725fbSmrg icc* | ecc*) 520620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 520720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 520820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' 520920d725fbSmrg ;; 521020d725fbSmrg pgcc* | pgf77* | pgf90* | pgf95*) 521120d725fbSmrg # Portland Group compilers (*not* the Pentium gcc compiler, 521220d725fbSmrg # which looks to be a dead project) 521320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 521420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' 521520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 521620d725fbSmrg ;; 521720d725fbSmrg ccc*) 521820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 521920d725fbSmrg # All Alpha code is PIC. 522020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 522120d725fbSmrg ;; 522220d725fbSmrg esac 522320d725fbSmrg ;; 522420d725fbSmrg 522520d725fbSmrg osf3* | osf4* | osf5*) 522620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 522720d725fbSmrg # All OSF/1 code is PIC. 522820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' 522920d725fbSmrg ;; 523020d725fbSmrg 523120d725fbSmrg solaris*) 523220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 523320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 523420d725fbSmrg case $cc_basename in 523520d725fbSmrg f77* | f90* | f95*) 523620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; 523720d725fbSmrg *) 523820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; 523920d725fbSmrg esac 524020d725fbSmrg ;; 524120d725fbSmrg 524220d725fbSmrg sunos4*) 524320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' 524420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' 524520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 524620d725fbSmrg ;; 524720d725fbSmrg 524820d725fbSmrg sysv4 | sysv4.2uw2* | sysv4.3*) 524920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 525020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 525120d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 525220d725fbSmrg ;; 525320d725fbSmrg 525420d725fbSmrg sysv4*MP*) 525520d725fbSmrg if test -d /usr/nec ;then 525620d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' 525720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 525820d725fbSmrg fi 525920d725fbSmrg ;; 526020d725fbSmrg 526120d725fbSmrg sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 526220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 526320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' 526420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 526520d725fbSmrg ;; 526620d725fbSmrg 526720d725fbSmrg unicos*) 526820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' 526920d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 527020d725fbSmrg ;; 527120d725fbSmrg 527220d725fbSmrg uts4*) 527320d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' 527420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' 527520d725fbSmrg ;; 527620d725fbSmrg 527720d725fbSmrg *) 527820d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no 527920d725fbSmrg ;; 528020d725fbSmrg esac 528120d725fbSmrg fi 528220d725fbSmrg]) 528320d725fbSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) 528420d725fbSmrg 528520d725fbSmrg# 528620d725fbSmrg# Check to make sure the PIC flag actually works. 528720d725fbSmrg# 528820d725fbSmrgif test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then 528920d725fbSmrg AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], 529020d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), 529120d725fbSmrg [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], 529220d725fbSmrg [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in 529320d725fbSmrg "" | " "*) ;; 529420d725fbSmrg *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; 529520d725fbSmrg esac], 529620d725fbSmrg [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 529720d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) 529820d725fbSmrgfi 529920d725fbSmrgcase $host_os in 530020d725fbSmrg # For platforms which do not support PIC, -DPIC is meaningless: 530120d725fbSmrg *djgpp*) 530220d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= 530320d725fbSmrg ;; 530420d725fbSmrg *) 530520d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" 530620d725fbSmrg ;; 530720d725fbSmrgesac 530820d725fbSmrg 530920d725fbSmrg# 531020d725fbSmrg# Check to make sure the static flag actually works. 531120d725fbSmrg# 531220d725fbSmrgwl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" 531320d725fbSmrgAC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], 531420d725fbSmrg _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), 531520d725fbSmrg $lt_tmp_static_flag, 531620d725fbSmrg [], 531720d725fbSmrg [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) 531820d725fbSmrg]) 531920d725fbSmrg 532020d725fbSmrg 532120d725fbSmrg# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) 532220d725fbSmrg# ------------------------------------ 532320d725fbSmrg# See if the linker supports building shared libraries. 532420d725fbSmrgAC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], 532520d725fbSmrg[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) 532620d725fbSmrgifelse([$1],[CXX],[ 532720d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 532820d725fbSmrg case $host_os in 532920d725fbSmrg aix4* | aix5*) 533020d725fbSmrg # If we're using GNU nm, then we don't want the "-C" option. 533120d725fbSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 533220d725fbSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 533320d725fbSmrg _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' 533420d725fbSmrg else 533520d725fbSmrg _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' 533620d725fbSmrg fi 533720d725fbSmrg ;; 533820d725fbSmrg pw32*) 533920d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" 534020d725fbSmrg ;; 534120d725fbSmrg cygwin* | mingw*) 534220d725fbSmrg _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' 534320d725fbSmrg ;; 534420d725fbSmrg linux* | k*bsd*-gnu) 534520d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 534620d725fbSmrg ;; 534720d725fbSmrg *) 534820d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 534920d725fbSmrg ;; 535020d725fbSmrg esac 535120d725fbSmrg],[ 535220d725fbSmrg runpath_var= 535320d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 535420d725fbSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no 535520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)= 535620d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)= 535720d725fbSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= 535820d725fbSmrg _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= 535920d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 536020d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 536120d725fbSmrg _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= 536220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 536320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= 536420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 536520d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 536620d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=no 536720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 536820d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown 536920d725fbSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=no 537020d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1)= 537120d725fbSmrg _LT_AC_TAGVAR(module_expsym_cmds, $1)= 537220d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 537320d725fbSmrg _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 537420d725fbSmrg # include_expsyms should be a list of space-separated symbols to be *always* 537520d725fbSmrg # included in the symbol list 537620d725fbSmrg _LT_AC_TAGVAR(include_expsyms, $1)= 537720d725fbSmrg # exclude_expsyms can be an extended regexp of symbols to exclude 537820d725fbSmrg # it will be wrapped by ` (' and `)$', so one must not match beginning or 537920d725fbSmrg # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 538020d725fbSmrg # as well as any symbol that contains `d'. 538120d725fbSmrg _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" 538220d725fbSmrg # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 538320d725fbSmrg # platforms (ab)use it in PIC code, but their linkers get confused if 538420d725fbSmrg # the symbol is explicitly referenced. Since portable code cannot 538520d725fbSmrg # rely on this symbol name, it's probably fine to never include it in 538620d725fbSmrg # preloaded symbol tables. 538720d725fbSmrg extract_expsyms_cmds= 538820d725fbSmrg # Just being paranoid about ensuring that cc_basename is set. 538920d725fbSmrg _LT_CC_BASENAME([$compiler]) 539020d725fbSmrg case $host_os in 539120d725fbSmrg cygwin* | mingw* | pw32*) 539220d725fbSmrg # FIXME: the MSVC++ port hasn't been tested in a loooong time 539320d725fbSmrg # When not using gcc, we currently assume that we are using 539420d725fbSmrg # Microsoft Visual C++. 539520d725fbSmrg if test "$GCC" != yes; then 539620d725fbSmrg with_gnu_ld=no 539720d725fbSmrg fi 539820d725fbSmrg ;; 539920d725fbSmrg interix*) 540020d725fbSmrg # we just hope/assume this is gcc and not c89 (= MSVC++) 540120d725fbSmrg with_gnu_ld=yes 540220d725fbSmrg ;; 540320d725fbSmrg openbsd*) 540420d725fbSmrg with_gnu_ld=no 540520d725fbSmrg ;; 540620d725fbSmrg esac 540720d725fbSmrg 540820d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 540920d725fbSmrg if test "$with_gnu_ld" = yes; then 541020d725fbSmrg # If archive_cmds runs LD, not CC, wlarc should be empty 541120d725fbSmrg wlarc='${wl}' 541220d725fbSmrg 541320d725fbSmrg # Set some defaults for GNU ld with shared library support. These 541420d725fbSmrg # are reset later if shared libraries are not supported. Putting them 541520d725fbSmrg # here allows them to be overridden if necessary. 541620d725fbSmrg runpath_var=LD_RUN_PATH 541720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' 541820d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' 541920d725fbSmrg # ancient GNU ld didn't support --whole-archive et. al. 542020d725fbSmrg if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 542120d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 542220d725fbSmrg else 542320d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 542420d725fbSmrg fi 542520d725fbSmrg supports_anon_versioning=no 542620d725fbSmrg case `$LD -v 2>/dev/null` in 542720d725fbSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 542820d725fbSmrg *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 542920d725fbSmrg *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 543020d725fbSmrg *\ 2.11.*) ;; # other 2.11 versions 543120d725fbSmrg *) supports_anon_versioning=yes ;; 543220d725fbSmrg esac 543320d725fbSmrg 543420d725fbSmrg # See if GNU ld supports shared libraries. 543520d725fbSmrg case $host_os in 543620d725fbSmrg aix3* | aix4* | aix5*) 543720d725fbSmrg # On AIX/PPC, the GNU linker is very broken 543820d725fbSmrg if test "$host_cpu" != ia64; then 543920d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 544020d725fbSmrg cat <<EOF 1>&2 544120d725fbSmrg 544220d725fbSmrg*** Warning: the GNU linker, at least up to release 2.9.1, is reported 544320d725fbSmrg*** to be unable to reliably create shared libraries on AIX. 544420d725fbSmrg*** Therefore, libtool is disabling shared libraries support. If you 544520d725fbSmrg*** really care for shared libraries, you may want to modify your PATH 544620d725fbSmrg*** so that a non-GNU linker is found, and then restart. 544720d725fbSmrg 544820d725fbSmrgEOF 544920d725fbSmrg fi 545020d725fbSmrg ;; 545120d725fbSmrg 545220d725fbSmrg amigaos*) 545320d725fbSmrg _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)' 545420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 545520d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 545620d725fbSmrg 545720d725fbSmrg # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 545820d725fbSmrg # that the semantics of dynamic libraries on AmigaOS, at least up 545920d725fbSmrg # to version 4, is to share data among multiple programs linked 546020d725fbSmrg # with the same dynamic library. Since this doesn't match the 546120d725fbSmrg # behavior of shared libraries on other platforms, we can't use 546220d725fbSmrg # them. 546320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 546420d725fbSmrg ;; 546520d725fbSmrg 546620d725fbSmrg beos*) 546720d725fbSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 546820d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 546920d725fbSmrg # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 547020d725fbSmrg # support --undefined. This deserves some investigation. FIXME 547120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 547220d725fbSmrg else 547320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 547420d725fbSmrg fi 547520d725fbSmrg ;; 547620d725fbSmrg 547720d725fbSmrg cygwin* | mingw* | pw32*) 547820d725fbSmrg # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, 547920d725fbSmrg # as there is no search path for DLLs. 548020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 548120d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 548220d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=no 548320d725fbSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 548420d725fbSmrg _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' 548520d725fbSmrg 548620d725fbSmrg if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 548720d725fbSmrg _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' 548820d725fbSmrg # If the export-symbols file already is a .def file (1st line 548920d725fbSmrg # is EXPORTS), use it as is; otherwise, prepend... 549020d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 549120d725fbSmrg cp $export_symbols $output_objdir/$soname.def; 549220d725fbSmrg else 549320d725fbSmrg echo EXPORTS > $output_objdir/$soname.def; 549420d725fbSmrg cat $export_symbols >> $output_objdir/$soname.def; 549520d725fbSmrg fi~ 549620d725fbSmrg $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 549720d725fbSmrg else 549820d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 549920d725fbSmrg fi 550020d725fbSmrg ;; 550120d725fbSmrg 550220d725fbSmrg interix3*) 550320d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 550420d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 550520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 550620d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 550720d725fbSmrg # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 550820d725fbSmrg # Instead, shared libraries are loaded at an image base (0x10000000 by 550920d725fbSmrg # default) and relocated if they conflict, which is a slow very memory 551020d725fbSmrg # consuming and fragmenting process. To avoid this, we pick a random, 551120d725fbSmrg # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 551220d725fbSmrg # time. Moving up from 0x10000000 also allows more sbrk(2) space. 551320d725fbSmrg _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' 551420d725fbSmrg _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' 551520d725fbSmrg ;; 551620d725fbSmrg 551720d725fbSmrg linux* | k*bsd*-gnu) 551820d725fbSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 551920d725fbSmrg tmp_addflag= 552020d725fbSmrg case $cc_basename,$host_cpu in 552120d725fbSmrg pgcc*) # Portland Group C compiler 552220d725fbSmrg _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' 552320d725fbSmrg tmp_addflag=' $pic_flag' 552420d725fbSmrg ;; 552520d725fbSmrg pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 552620d725fbSmrg _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' 552720d725fbSmrg tmp_addflag=' $pic_flag -Mnomain' ;; 552820d725fbSmrg ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 552920d725fbSmrg tmp_addflag=' -i_dynamic' ;; 553020d725fbSmrg efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 553120d725fbSmrg tmp_addflag=' -i_dynamic -nofor_main' ;; 553220d725fbSmrg ifc* | ifort*) # Intel Fortran compiler 553320d725fbSmrg tmp_addflag=' -nofor_main' ;; 553420d725fbSmrg esac 553520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 553620d725fbSmrg 553720d725fbSmrg if test $supports_anon_versioning = yes; then 553820d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ 553920d725fbSmrg cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 554020d725fbSmrg $echo "local: *; };" >> $output_objdir/$libname.ver~ 554120d725fbSmrg $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 554220d725fbSmrg fi 554320d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=no 554420d725fbSmrg else 554520d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 554620d725fbSmrg fi 554720d725fbSmrg ;; 554820d725fbSmrg 554920d725fbSmrg netbsd* | netbsdelf*-gnu) 555020d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 555120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 555220d725fbSmrg wlarc= 555320d725fbSmrg else 555420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 555520d725fbSmrg _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' 555620d725fbSmrg fi 555720d725fbSmrg ;; 555820d725fbSmrg 555920d725fbSmrg solaris*) 556020d725fbSmrg if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 556120d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 556220d725fbSmrg cat <<EOF 1>&2 556320d725fbSmrg 556420d725fbSmrg*** Warning: The releases 2.8.* of the GNU linker cannot reliably 556520d725fbSmrg*** create shared libraries on Solaris systems. Therefore, libtool 556620d725fbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 556720d725fbSmrg*** binutils to release 2.9.1 or newer. Another option is to modify 556820d725fbSmrg*** your PATH or compiler configuration so that the native linker is 556920d725fbSmrg*** used, and then restart. 557020d725fbSmrg 557120d725fbSmrgEOF 557220d725fbSmrg elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 557320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 557420d725fbSmrg _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' 557520d725fbSmrg else 557620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 557720d725fbSmrg fi 557820d725fbSmrg ;; 557920d725fbSmrg 558020d725fbSmrg sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 558120d725fbSmrg case `$LD -v 2>&1` in 558220d725fbSmrg *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) 558320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 558420d725fbSmrg cat <<_LT_EOF 1>&2 558520d725fbSmrg 558620d725fbSmrg*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 558720d725fbSmrg*** reliably create shared libraries on SCO systems. Therefore, libtool 558820d725fbSmrg*** is disabling shared libraries support. We urge you to upgrade GNU 558920d725fbSmrg*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 559020d725fbSmrg*** your PATH or compiler configuration so that the native linker is 559120d725fbSmrg*** used, and then restart. 559220d725fbSmrg 559320d725fbSmrg_LT_EOF 559420d725fbSmrg ;; 559520d725fbSmrg *) 559620d725fbSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 559720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' 559820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' 559920d725fbSmrg _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' 560020d725fbSmrg else 560120d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 560220d725fbSmrg fi 560320d725fbSmrg ;; 560420d725fbSmrg esac 560520d725fbSmrg ;; 560620d725fbSmrg 560720d725fbSmrg sunos4*) 560820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 560920d725fbSmrg wlarc= 561020d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 561120d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 561220d725fbSmrg ;; 561320d725fbSmrg 561420d725fbSmrg *) 561520d725fbSmrg if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 561620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 561720d725fbSmrg _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' 561820d725fbSmrg else 561920d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 562020d725fbSmrg fi 562120d725fbSmrg ;; 562220d725fbSmrg esac 562320d725fbSmrg 562420d725fbSmrg if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then 562520d725fbSmrg runpath_var= 562620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= 562720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= 562820d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= 562920d725fbSmrg fi 563020d725fbSmrg else 563120d725fbSmrg # PORTME fill in a description of your system's linker (not GNU ld) 563220d725fbSmrg case $host_os in 563320d725fbSmrg aix3*) 563420d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 563520d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 563620d725fbSmrg _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' 563720d725fbSmrg # Note: this linker hardcodes the directories in LIBPATH if there 563820d725fbSmrg # are no directories specified by -L. 563920d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 564020d725fbSmrg if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 564120d725fbSmrg # Neither direct hardcoding nor static linking is supported with a 564220d725fbSmrg # broken collect2. 564320d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 564420d725fbSmrg fi 564520d725fbSmrg ;; 564620d725fbSmrg 564720d725fbSmrg aix4* | aix5*) 564820d725fbSmrg if test "$host_cpu" = ia64; then 564920d725fbSmrg # On IA64, the linker does run time linking by default, so we don't 565020d725fbSmrg # have to do anything special. 565120d725fbSmrg aix_use_runtimelinking=no 565220d725fbSmrg exp_sym_flag='-Bexport' 565320d725fbSmrg no_entry_flag="" 565420d725fbSmrg else 565520d725fbSmrg # If we're using GNU nm, then we don't want the "-C" option. 565620d725fbSmrg # -C means demangle to AIX nm, but means don't demangle with GNU nm 565720d725fbSmrg if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 565820d725fbSmrg _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' 565920d725fbSmrg else 566020d725fbSmrg _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' 566120d725fbSmrg fi 566220d725fbSmrg aix_use_runtimelinking=no 566320d725fbSmrg 566420d725fbSmrg # Test if we are trying to use run time linking or normal 566520d725fbSmrg # AIX style linking. If -brtl is somewhere in LDFLAGS, we 566620d725fbSmrg # need to do runtime linking. 566720d725fbSmrg case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 566820d725fbSmrg for ld_flag in $LDFLAGS; do 566920d725fbSmrg if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 567020d725fbSmrg aix_use_runtimelinking=yes 567120d725fbSmrg break 567220d725fbSmrg fi 567320d725fbSmrg done 567420d725fbSmrg ;; 567520d725fbSmrg esac 567620d725fbSmrg 567720d725fbSmrg exp_sym_flag='-bexport' 567820d725fbSmrg no_entry_flag='-bnoentry' 567920d725fbSmrg fi 568020d725fbSmrg 568120d725fbSmrg # When large executables or shared objects are built, AIX ld can 568220d725fbSmrg # have problems creating the table of contents. If linking a library 568320d725fbSmrg # or program results in "error TOC overflow" add -mminimal-toc to 568420d725fbSmrg # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 568520d725fbSmrg # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 568620d725fbSmrg 568720d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='' 568820d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 568920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 569020d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 569120d725fbSmrg 569220d725fbSmrg if test "$GCC" = yes; then 569320d725fbSmrg case $host_os in aix4.[[012]]|aix4.[[012]].*) 569420d725fbSmrg # We only want to do this on AIX 4.2 and lower, the check 569520d725fbSmrg # below for broken collect2 doesn't work under 4.3+ 569620d725fbSmrg collect2name=`${CC} -print-prog-name=collect2` 569720d725fbSmrg if test -f "$collect2name" && \ 569820d725fbSmrg strings "$collect2name" | grep resolve_lib_name >/dev/null 569920d725fbSmrg then 570020d725fbSmrg # We have reworked collect2 570120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 570220d725fbSmrg else 570320d725fbSmrg # We have old collect2 570420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported 570520d725fbSmrg # It fails to find uninstalled libraries when the uninstalled 570620d725fbSmrg # path is not listed in the libpath. Setting hardcode_minus_L 570720d725fbSmrg # to unsupported forces relinking 570820d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 570920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 571020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= 571120d725fbSmrg fi 571220d725fbSmrg ;; 571320d725fbSmrg esac 571420d725fbSmrg shared_flag='-shared' 571520d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 571620d725fbSmrg shared_flag="$shared_flag "'${wl}-G' 571720d725fbSmrg fi 571820d725fbSmrg else 571920d725fbSmrg # not using gcc 572020d725fbSmrg if test "$host_cpu" = ia64; then 572120d725fbSmrg # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 572220d725fbSmrg # chokes on -Wl,-G. The following line is correct: 572320d725fbSmrg shared_flag='-G' 572420d725fbSmrg else 572520d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 572620d725fbSmrg shared_flag='${wl}-G' 572720d725fbSmrg else 572820d725fbSmrg shared_flag='${wl}-bM:SRE' 572920d725fbSmrg fi 573020d725fbSmrg fi 573120d725fbSmrg fi 573220d725fbSmrg 573320d725fbSmrg # It seems that -bexpall does not export symbols beginning with 573420d725fbSmrg # underscore (_), so it is better to generate a list of symbols to export. 573520d725fbSmrg _LT_AC_TAGVAR(always_export_symbols, $1)=yes 573620d725fbSmrg if test "$aix_use_runtimelinking" = yes; then 573720d725fbSmrg # Warning - without using the other runtime loading flags (-brtl), 573820d725fbSmrg # -berok will link without error, but may produce a broken library. 573920d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' 574020d725fbSmrg # Determine the default libpath from the value encoded in an empty executable. 574120d725fbSmrg _LT_AC_SYS_LIBPATH_AIX 574220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 574320d725fbSmrg _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" 574420d725fbSmrg else 574520d725fbSmrg if test "$host_cpu" = ia64; then 574620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' 574720d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" 574820d725fbSmrg _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" 574920d725fbSmrg else 575020d725fbSmrg # Determine the default libpath from the value encoded in an empty executable. 575120d725fbSmrg _LT_AC_SYS_LIBPATH_AIX 575220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" 575320d725fbSmrg # Warning - without using the other run time loading flags, 575420d725fbSmrg # -berok will link without error, but may produce a broken library. 575520d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' 575620d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' 575720d725fbSmrg # Exported symbols can be pulled into shared objects from archives 575820d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' 575920d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 576020d725fbSmrg # This is similar to how AIX traditionally builds its shared libraries. 576120d725fbSmrg _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' 576220d725fbSmrg fi 576320d725fbSmrg fi 576420d725fbSmrg ;; 576520d725fbSmrg 576620d725fbSmrg amigaos*) 576720d725fbSmrg _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)' 576820d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 576920d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 577020d725fbSmrg # see comment about different semantics on the GNU ld section 577120d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 577220d725fbSmrg ;; 577320d725fbSmrg 577420d725fbSmrg bsdi[[45]]*) 577520d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic 577620d725fbSmrg ;; 577720d725fbSmrg 577820d725fbSmrg cygwin* | mingw* | pw32*) 577920d725fbSmrg # When not using gcc, we currently assume that we are using 578020d725fbSmrg # Microsoft Visual C++. 578120d725fbSmrg # hardcode_libdir_flag_spec is actually meaningless, as there is 578220d725fbSmrg # no search path for DLLs. 578320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' 578420d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 578520d725fbSmrg # Tell ltmain to make .lib files, not .a files. 578620d725fbSmrg libext=lib 578720d725fbSmrg # Tell ltmain to make .dll files, not .so files. 578820d725fbSmrg shrext_cmds=".dll" 578920d725fbSmrg # FIXME: Setting linknames here is a bad hack. 579020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 579120d725fbSmrg # The linker will automatically build a .lib file if we build a DLL. 579220d725fbSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' 579320d725fbSmrg # FIXME: Should let the user specify the lib program. 579420d725fbSmrg _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' 579520d725fbSmrg _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' 579620d725fbSmrg _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes 579720d725fbSmrg ;; 579820d725fbSmrg 579920d725fbSmrg darwin* | rhapsody*) 580020d725fbSmrg case $host_os in 580120d725fbSmrg rhapsody* | darwin1.[[012]]) 580220d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' 580320d725fbSmrg ;; 580420d725fbSmrg *) # Darwin 1.3 on 580520d725fbSmrg if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 580620d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 580720d725fbSmrg else 580820d725fbSmrg case ${MACOSX_DEPLOYMENT_TARGET} in 580920d725fbSmrg 10.[[012]]) 581020d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 581120d725fbSmrg ;; 581220d725fbSmrg 10.*) 581320d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' 581420d725fbSmrg ;; 581520d725fbSmrg esac 581620d725fbSmrg fi 581720d725fbSmrg ;; 581820d725fbSmrg esac 581920d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 582020d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 582120d725fbSmrg _LT_AC_TAGVAR(hardcode_automatic, $1)=yes 582220d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported 582320d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' 582420d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 582520d725fbSmrg if test "$GCC" = yes ; then 582620d725fbSmrg output_verbose_link_cmd='echo' 582720d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 582820d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 582920d725fbSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 583020d725fbSmrg _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}' 583120d725fbSmrg _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}' 583220d725fbSmrg else 583320d725fbSmrg case $cc_basename in 583420d725fbSmrg xlc*) 583520d725fbSmrg output_verbose_link_cmd='echo' 583620d725fbSmrg _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' 583720d725fbSmrg _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 583820d725fbSmrg # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 583920d725fbSmrg _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}' 584020d725fbSmrg _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}' 584120d725fbSmrg ;; 584220d725fbSmrg *) 584320d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 584420d725fbSmrg ;; 584520d725fbSmrg esac 584620d725fbSmrg fi 584720d725fbSmrg ;; 584820d725fbSmrg 584920d725fbSmrg dgux*) 585020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 585120d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 585220d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 585320d725fbSmrg ;; 585420d725fbSmrg 585520d725fbSmrg freebsd1*) 585620d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 585720d725fbSmrg ;; 585820d725fbSmrg 585920d725fbSmrg # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 586020d725fbSmrg # support. Future versions do this automatically, but an explicit c++rt0.o 586120d725fbSmrg # does not break anything, and helps significantly (at the cost of a little 586220d725fbSmrg # extra space). 586320d725fbSmrg freebsd2.2*) 586420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 586520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 586620d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 586720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 586820d725fbSmrg ;; 586920d725fbSmrg 587020d725fbSmrg # Unfortunately, older versions of FreeBSD 2 do not have this feature. 587120d725fbSmrg freebsd2*) 587220d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 587320d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 587420d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 587520d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 587620d725fbSmrg ;; 587720d725fbSmrg 587820d725fbSmrg # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 587920d725fbSmrg freebsd* | dragonfly*) 588020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 588120d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 588220d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 588320d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 588420d725fbSmrg ;; 588520d725fbSmrg 588620d725fbSmrg hpux9*) 588720d725fbSmrg if test "$GCC" = yes; then 588820d725fbSmrg _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' 588920d725fbSmrg else 589020d725fbSmrg _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' 589120d725fbSmrg fi 589220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 589320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 589420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 589520d725fbSmrg 589620d725fbSmrg # hardcode_minus_L: Not really in the search PATH, 589720d725fbSmrg # but as the default location of the library. 589820d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 589920d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 590020d725fbSmrg ;; 590120d725fbSmrg 590220d725fbSmrg hpux10*) 590320d725fbSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 590420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 590520d725fbSmrg else 590620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 590720d725fbSmrg fi 590820d725fbSmrg if test "$with_gnu_ld" = no; then 590920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 591020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 591120d725fbSmrg 591220d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 591320d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 591420d725fbSmrg 591520d725fbSmrg # hardcode_minus_L: Not really in the search PATH, 591620d725fbSmrg # but as the default location of the library. 591720d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 591820d725fbSmrg fi 591920d725fbSmrg ;; 592020d725fbSmrg 592120d725fbSmrg hpux11*) 592220d725fbSmrg if test "$GCC" = yes -a "$with_gnu_ld" = no; then 592320d725fbSmrg case $host_cpu in 592420d725fbSmrg hppa*64*) 592520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 592620d725fbSmrg ;; 592720d725fbSmrg ia64*) 592820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 592920d725fbSmrg ;; 593020d725fbSmrg *) 593120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 593220d725fbSmrg ;; 593320d725fbSmrg esac 593420d725fbSmrg else 593520d725fbSmrg case $host_cpu in 593620d725fbSmrg hppa*64*) 593720d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 593820d725fbSmrg ;; 593920d725fbSmrg ia64*) 594020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 594120d725fbSmrg ;; 594220d725fbSmrg *) 594320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 594420d725fbSmrg ;; 594520d725fbSmrg esac 594620d725fbSmrg fi 594720d725fbSmrg if test "$with_gnu_ld" = no; then 594820d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' 594920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 595020d725fbSmrg 595120d725fbSmrg case $host_cpu in 595220d725fbSmrg hppa*64*|ia64*) 595320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' 595420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 595520d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 595620d725fbSmrg ;; 595720d725fbSmrg *) 595820d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 595920d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 596020d725fbSmrg 596120d725fbSmrg # hardcode_minus_L: Not really in the search PATH, 596220d725fbSmrg # but as the default location of the library. 596320d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 596420d725fbSmrg ;; 596520d725fbSmrg esac 596620d725fbSmrg fi 596720d725fbSmrg ;; 596820d725fbSmrg 596920d725fbSmrg irix5* | irix6* | nonstopux*) 597020d725fbSmrg if test "$GCC" = yes; then 597120d725fbSmrg _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' 597220d725fbSmrg else 597320d725fbSmrg _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' 597420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' 597520d725fbSmrg fi 597620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 597720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 597820d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 597920d725fbSmrg ;; 598020d725fbSmrg 598120d725fbSmrg netbsd* | netbsdelf*-gnu) 598220d725fbSmrg if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 598320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 598420d725fbSmrg else 598520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 598620d725fbSmrg fi 598720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 598820d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 598920d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 599020d725fbSmrg ;; 599120d725fbSmrg 599220d725fbSmrg newsos6) 599320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 599420d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 599520d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 599620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 599720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 599820d725fbSmrg ;; 599920d725fbSmrg 600020d725fbSmrg openbsd*) 600120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 600220d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 600320d725fbSmrg if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 600420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 600520d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 600620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 600720d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' 600820d725fbSmrg else 600920d725fbSmrg case $host_os in 601020d725fbSmrg openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 601120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 601220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 601320d725fbSmrg ;; 601420d725fbSmrg *) 601520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 601620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' 601720d725fbSmrg ;; 601820d725fbSmrg esac 601920d725fbSmrg fi 602020d725fbSmrg ;; 602120d725fbSmrg 602220d725fbSmrg os2*) 602320d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 602420d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 602520d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported 602620d725fbSmrg _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' 602720d725fbSmrg _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 602820d725fbSmrg ;; 602920d725fbSmrg 603020d725fbSmrg osf3*) 603120d725fbSmrg if test "$GCC" = yes; then 603220d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 603320d725fbSmrg _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' 603420d725fbSmrg else 603520d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 603620d725fbSmrg _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' 603720d725fbSmrg fi 603820d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 603920d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 604020d725fbSmrg ;; 604120d725fbSmrg 604220d725fbSmrg osf4* | osf5*) # as osf3* with the addition of -msym flag 604320d725fbSmrg if test "$GCC" = yes; then 604420d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' 604520d725fbSmrg _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' 604620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' 604720d725fbSmrg else 604820d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' 604920d725fbSmrg _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' 605020d725fbSmrg _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~ 605120d725fbSmrg $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' 605220d725fbSmrg 605320d725fbSmrg # Both c and cxx compiler support -rpath directly 605420d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' 605520d725fbSmrg fi 605620d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: 605720d725fbSmrg ;; 605820d725fbSmrg 605920d725fbSmrg solaris*) 606020d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' 606120d725fbSmrg if test "$GCC" = yes; then 606220d725fbSmrg wlarc='${wl}' 606320d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 606420d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 606520d725fbSmrg $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 606620d725fbSmrg else 606720d725fbSmrg wlarc='' 606820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 606920d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 607020d725fbSmrg $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 607120d725fbSmrg fi 607220d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' 607320d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 607420d725fbSmrg case $host_os in 607520d725fbSmrg solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 607620d725fbSmrg *) 607720d725fbSmrg # The compiler driver will combine linker options so we 607820d725fbSmrg # cannot just pass the convience library names through 607920d725fbSmrg # without $wl, iff we do not link with $LD. 608020d725fbSmrg # Luckily, gcc supports the same syntax we need for Sun Studio. 608120d725fbSmrg # Supported since Solaris 2.6 (maybe 2.5.1?) 608220d725fbSmrg case $wlarc in 608320d725fbSmrg '') 608420d725fbSmrg _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; 608520d725fbSmrg *) 608620d725fbSmrg _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' ;; 608720d725fbSmrg esac ;; 608820d725fbSmrg esac 608920d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 609020d725fbSmrg ;; 609120d725fbSmrg 609220d725fbSmrg sunos4*) 609320d725fbSmrg if test "x$host_vendor" = xsequent; then 609420d725fbSmrg # Use $CC to link under sequent, because it throws in some extra .o 609520d725fbSmrg # files that make .init and .fini sections work. 609620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 609720d725fbSmrg else 609820d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 609920d725fbSmrg fi 610020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 610120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes 610220d725fbSmrg _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes 610320d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 610420d725fbSmrg ;; 610520d725fbSmrg 610620d725fbSmrg sysv4) 610720d725fbSmrg case $host_vendor in 610820d725fbSmrg sni) 610920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 611020d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? 611120d725fbSmrg ;; 611220d725fbSmrg siemens) 611320d725fbSmrg ## LD is ld it makes a PLAMLIB 611420d725fbSmrg ## CC just makes a GrossModule. 611520d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' 611620d725fbSmrg _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' 611720d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no 611820d725fbSmrg ;; 611920d725fbSmrg motorola) 612020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 612120d725fbSmrg _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie 612220d725fbSmrg ;; 612320d725fbSmrg esac 612420d725fbSmrg runpath_var='LD_RUN_PATH' 612520d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 612620d725fbSmrg ;; 612720d725fbSmrg 612820d725fbSmrg sysv4.3*) 612920d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 613020d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 613120d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' 613220d725fbSmrg ;; 613320d725fbSmrg 613420d725fbSmrg sysv4*MP*) 613520d725fbSmrg if test -d /usr/nec; then 613620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 613720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 613820d725fbSmrg runpath_var=LD_RUN_PATH 613920d725fbSmrg hardcode_runpath_var=yes 614020d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=yes 614120d725fbSmrg fi 614220d725fbSmrg ;; 614320d725fbSmrg 614420d725fbSmrg sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) 614520d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 614620d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 614720d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 614820d725fbSmrg runpath_var='LD_RUN_PATH' 614920d725fbSmrg 615020d725fbSmrg if test "$GCC" = yes; then 615120d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 615220d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 615320d725fbSmrg else 615420d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 615520d725fbSmrg _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 615620d725fbSmrg fi 615720d725fbSmrg ;; 615820d725fbSmrg 615920d725fbSmrg sysv5* | sco3.2v5* | sco5v6*) 616020d725fbSmrg # Note: We can NOT use -z defs as we might desire, because we do not 616120d725fbSmrg # link with -lc, and that would cause any symbols used from libc to 616220d725fbSmrg # always be unresolved, which means just about no library would 616320d725fbSmrg # ever link correctly. If we're not using GNU ld we use -z text 616420d725fbSmrg # though, which does catch some bad symbols but isn't as heavy-handed 616520d725fbSmrg # as -z defs. 616620d725fbSmrg _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' 616720d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' 616820d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 616920d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 617020d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' 617120d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' 617220d725fbSmrg _LT_AC_TAGVAR(link_all_deplibs, $1)=yes 617320d725fbSmrg _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' 617420d725fbSmrg runpath_var='LD_RUN_PATH' 617520d725fbSmrg 617620d725fbSmrg if test "$GCC" = yes; then 617720d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 617820d725fbSmrg _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' 617920d725fbSmrg else 618020d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' 618120d725fbSmrg _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' 618220d725fbSmrg fi 618320d725fbSmrg ;; 618420d725fbSmrg 618520d725fbSmrg uts4*) 618620d725fbSmrg _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 618720d725fbSmrg _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' 618820d725fbSmrg _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no 618920d725fbSmrg ;; 619020d725fbSmrg 619120d725fbSmrg *) 619220d725fbSmrg _LT_AC_TAGVAR(ld_shlibs, $1)=no 619320d725fbSmrg ;; 619420d725fbSmrg esac 619520d725fbSmrg fi 619620d725fbSmrg]) 619720d725fbSmrgAC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) 619820d725fbSmrgtest "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no 619920d725fbSmrg 620020d725fbSmrg# 620120d725fbSmrg# Do we need to explicitly link libc? 620220d725fbSmrg# 620320d725fbSmrgcase "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in 620420d725fbSmrgx|xyes) 620520d725fbSmrg # Assume -lc should be added 620620d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 620720d725fbSmrg 620820d725fbSmrg if test "$enable_shared" = yes && test "$GCC" = yes; then 620920d725fbSmrg case $_LT_AC_TAGVAR(archive_cmds, $1) in 621020d725fbSmrg *'~'*) 621120d725fbSmrg # FIXME: we may have to deal with multi-command sequences. 621220d725fbSmrg ;; 621320d725fbSmrg '$CC '*) 621420d725fbSmrg # Test whether the compiler implicitly links with -lc since on some 621520d725fbSmrg # systems, -lgcc has to come before -lc. If gcc already passes -lc 621620d725fbSmrg # to ld, don't add -lc before -lgcc. 621720d725fbSmrg AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 621820d725fbSmrg $rm conftest* 621920d725fbSmrg printf "$lt_simple_compile_test_code" > conftest.$ac_ext 622020d725fbSmrg 622120d725fbSmrg if AC_TRY_EVAL(ac_compile) 2>conftest.err; then 622220d725fbSmrg soname=conftest 622320d725fbSmrg lib=conftest 622420d725fbSmrg libobjs=conftest.$ac_objext 622520d725fbSmrg deplibs= 622620d725fbSmrg wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) 622720d725fbSmrg pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) 622820d725fbSmrg compiler_flags=-v 622920d725fbSmrg linker_flags=-v 623020d725fbSmrg verstring= 623120d725fbSmrg output_objdir=. 623220d725fbSmrg libname=conftest 623320d725fbSmrg lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) 623420d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)= 623520d725fbSmrg if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 623620d725fbSmrg then 623720d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no 623820d725fbSmrg else 623920d725fbSmrg _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes 624020d725fbSmrg fi 624120d725fbSmrg _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag 624220d725fbSmrg else 624320d725fbSmrg cat conftest.err 1>&5 624420d725fbSmrg fi 624520d725fbSmrg $rm conftest* 624620d725fbSmrg AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) 624720d725fbSmrg ;; 624820d725fbSmrg esac 624920d725fbSmrg fi 625020d725fbSmrg ;; 625120d725fbSmrgesac 625220d725fbSmrg])# AC_LIBTOOL_PROG_LD_SHLIBS 625320d725fbSmrg 625420d725fbSmrg 625520d725fbSmrg# _LT_AC_FILE_LTDLL_C 625620d725fbSmrg# ------------------- 625720d725fbSmrg# Be careful that the start marker always follows a newline. 625820d725fbSmrgAC_DEFUN([_LT_AC_FILE_LTDLL_C], [ 625920d725fbSmrg# /* ltdll.c starts here */ 626020d725fbSmrg# #define WIN32_LEAN_AND_MEAN 626120d725fbSmrg# #include <windows.h> 626220d725fbSmrg# #undef WIN32_LEAN_AND_MEAN 626320d725fbSmrg# #include <stdio.h> 626420d725fbSmrg# 626520d725fbSmrg# #ifndef __CYGWIN__ 626620d725fbSmrg# # ifdef __CYGWIN32__ 626720d725fbSmrg# # define __CYGWIN__ __CYGWIN32__ 626820d725fbSmrg# # endif 626920d725fbSmrg# #endif 627020d725fbSmrg# 627120d725fbSmrg# #ifdef __cplusplus 627220d725fbSmrg# extern "C" { 627320d725fbSmrg# #endif 627420d725fbSmrg# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 627520d725fbSmrg# #ifdef __cplusplus 627620d725fbSmrg# } 627720d725fbSmrg# #endif 627820d725fbSmrg# 627920d725fbSmrg# #ifdef __CYGWIN__ 628020d725fbSmrg# #include <cygwin/cygwin_dll.h> 628120d725fbSmrg# DECLARE_CYGWIN_DLL( DllMain ); 628220d725fbSmrg# #endif 628320d725fbSmrg# HINSTANCE __hDllInstance_base; 628420d725fbSmrg# 628520d725fbSmrg# BOOL APIENTRY 628620d725fbSmrg# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 628720d725fbSmrg# { 628820d725fbSmrg# __hDllInstance_base = hInst; 628920d725fbSmrg# return TRUE; 629020d725fbSmrg# } 629120d725fbSmrg# /* ltdll.c ends here */ 629220d725fbSmrg])# _LT_AC_FILE_LTDLL_C 629320d725fbSmrg 629420d725fbSmrg 629520d725fbSmrg# _LT_AC_TAGVAR(VARNAME, [TAGNAME]) 629620d725fbSmrg# --------------------------------- 629720d725fbSmrgAC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) 629820d725fbSmrg 629920d725fbSmrg 630020d725fbSmrg# old names 630120d725fbSmrgAC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 630220d725fbSmrgAC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 630320d725fbSmrgAC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 630420d725fbSmrgAC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 630520d725fbSmrgAC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 630620d725fbSmrgAC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 630720d725fbSmrgAC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 630820d725fbSmrg 630920d725fbSmrg# This is just to silence aclocal about the macro not being used 631020d725fbSmrgifelse([AC_DISABLE_FAST_INSTALL]) 631120d725fbSmrg 631220d725fbSmrgAC_DEFUN([LT_AC_PROG_GCJ], 631320d725fbSmrg[AC_CHECK_TOOL(GCJ, gcj, no) 631420d725fbSmrg test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" 631520d725fbSmrg AC_SUBST(GCJFLAGS) 631620d725fbSmrg]) 631720d725fbSmrg 631820d725fbSmrgAC_DEFUN([LT_AC_PROG_RC], 631920d725fbSmrg[AC_CHECK_TOOL(RC, windres, no) 632020d725fbSmrg]) 632120d725fbSmrg 632220d725fbSmrg# NOTE: This macro has been submitted for inclusion into # 632320d725fbSmrg# GNU Autoconf as AC_PROG_SED. When it is available in # 632420d725fbSmrg# a released version of Autoconf we should remove this # 632520d725fbSmrg# macro and use it instead. # 632620d725fbSmrg# LT_AC_PROG_SED 632720d725fbSmrg# -------------- 632820d725fbSmrg# Check for a fully-functional sed program, that truncates 632920d725fbSmrg# as few characters as possible. Prefer GNU sed if found. 633020d725fbSmrgAC_DEFUN([LT_AC_PROG_SED], 633120d725fbSmrg[AC_MSG_CHECKING([for a sed that does not truncate output]) 633220d725fbSmrgAC_CACHE_VAL(lt_cv_path_SED, 633320d725fbSmrg[# Loop through the user's path and test for sed and gsed. 633420d725fbSmrg# Then use that list of sed's as ones to test for truncation. 633520d725fbSmrgas_save_IFS=$IFS; IFS=$PATH_SEPARATOR 633620d725fbSmrgfor as_dir in $PATH 633720d725fbSmrgdo 633820d725fbSmrg IFS=$as_save_IFS 633920d725fbSmrg test -z "$as_dir" && as_dir=. 634020d725fbSmrg for lt_ac_prog in sed gsed; do 634120d725fbSmrg for ac_exec_ext in '' $ac_executable_extensions; do 634220d725fbSmrg if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 634320d725fbSmrg lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 634420d725fbSmrg fi 634520d725fbSmrg done 634620d725fbSmrg done 634720d725fbSmrgdone 634820d725fbSmrglt_ac_max=0 634920d725fbSmrglt_ac_count=0 635020d725fbSmrg# Add /usr/xpg4/bin/sed as it is typically found on Solaris 635120d725fbSmrg# along with /bin/sed that truncates output. 635220d725fbSmrgfor lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 635320d725fbSmrg test ! -f $lt_ac_sed && continue 635420d725fbSmrg cat /dev/null > conftest.in 635520d725fbSmrg lt_ac_count=0 635620d725fbSmrg echo $ECHO_N "0123456789$ECHO_C" >conftest.in 635720d725fbSmrg # Check for GNU sed and select it if it is found. 635820d725fbSmrg if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 635920d725fbSmrg lt_cv_path_SED=$lt_ac_sed 636020d725fbSmrg break 636120d725fbSmrg fi 636220d725fbSmrg while true; do 636320d725fbSmrg cat conftest.in conftest.in >conftest.tmp 636420d725fbSmrg mv conftest.tmp conftest.in 636520d725fbSmrg cp conftest.in conftest.nl 636620d725fbSmrg echo >>conftest.nl 636720d725fbSmrg $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 636820d725fbSmrg cmp -s conftest.out conftest.nl || break 636920d725fbSmrg # 10000 chars as input seems more than enough 637020d725fbSmrg test $lt_ac_count -gt 10 && break 637120d725fbSmrg lt_ac_count=`expr $lt_ac_count + 1` 637220d725fbSmrg if test $lt_ac_count -gt $lt_ac_max; then 637320d725fbSmrg lt_ac_max=$lt_ac_count 637420d725fbSmrg lt_cv_path_SED=$lt_ac_sed 637520d725fbSmrg fi 637620d725fbSmrg done 637720d725fbSmrgdone 637820d725fbSmrg]) 637920d725fbSmrgSED=$lt_cv_path_SED 638020d725fbSmrgAC_MSG_RESULT([$SED]) 638120d725fbSmrg]) 638220d725fbSmrg 638320d725fbSmrg# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. 638420d725fbSmrg# 638520d725fbSmrg# This file is free software; the Free Software Foundation 638620d725fbSmrg# gives unlimited permission to copy and/or distribute it, 638720d725fbSmrg# with or without modifications, as long as this notice is preserved. 638820d725fbSmrg 638920d725fbSmrg# AM_AUTOMAKE_VERSION(VERSION) 639020d725fbSmrg# ---------------------------- 639120d725fbSmrg# Automake X.Y traces this macro to ensure aclocal.m4 has been 639220d725fbSmrg# generated from the m4 files accompanying Automake X.Y. 639320d725fbSmrgAC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"]) 639420d725fbSmrg 639520d725fbSmrg# AM_SET_CURRENT_AUTOMAKE_VERSION 639620d725fbSmrg# ------------------------------- 639720d725fbSmrg# Call AM_AUTOMAKE_VERSION so it can be traced. 639820d725fbSmrg# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. 639920d725fbSmrgAC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], 640020d725fbSmrg [AM_AUTOMAKE_VERSION([1.9.6])]) 640120d725fbSmrg 640220d725fbSmrg# AM_AUX_DIR_EXPAND -*- Autoconf -*- 640320d725fbSmrg 640420d725fbSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 640520d725fbSmrg# 640620d725fbSmrg# This file is free software; the Free Software Foundation 640720d725fbSmrg# gives unlimited permission to copy and/or distribute it, 640820d725fbSmrg# with or without modifications, as long as this notice is preserved. 640920d725fbSmrg 641020d725fbSmrg# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 641120d725fbSmrg# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 641220d725fbSmrg# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 641320d725fbSmrg# 641420d725fbSmrg# Of course, Automake must honor this variable whenever it calls a 641520d725fbSmrg# tool from the auxiliary directory. The problem is that $srcdir (and 641620d725fbSmrg# therefore $ac_aux_dir as well) can be either absolute or relative, 641720d725fbSmrg# depending on how configure is run. This is pretty annoying, since 641820d725fbSmrg# it makes $ac_aux_dir quite unusable in subdirectories: in the top 641920d725fbSmrg# source directory, any form will work fine, but in subdirectories a 642020d725fbSmrg# relative path needs to be adjusted first. 642120d725fbSmrg# 642220d725fbSmrg# $ac_aux_dir/missing 642320d725fbSmrg# fails when called from a subdirectory if $ac_aux_dir is relative 642420d725fbSmrg# $top_srcdir/$ac_aux_dir/missing 642520d725fbSmrg# fails if $ac_aux_dir is absolute, 642620d725fbSmrg# fails when called from a subdirectory in a VPATH build with 642720d725fbSmrg# a relative $ac_aux_dir 642820d725fbSmrg# 642920d725fbSmrg# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 643020d725fbSmrg# are both prefixed by $srcdir. In an in-source build this is usually 643120d725fbSmrg# harmless because $srcdir is `.', but things will broke when you 643220d725fbSmrg# start a VPATH build or use an absolute $srcdir. 643320d725fbSmrg# 643420d725fbSmrg# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 643520d725fbSmrg# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 643620d725fbSmrg# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 643720d725fbSmrg# and then we would define $MISSING as 643820d725fbSmrg# MISSING="\${SHELL} $am_aux_dir/missing" 643920d725fbSmrg# This will work as long as MISSING is not called from configure, because 644020d725fbSmrg# unfortunately $(top_srcdir) has no meaning in configure. 644120d725fbSmrg# However there are other variables, like CC, which are often used in 644220d725fbSmrg# configure, and could therefore not use this "fixed" $ac_aux_dir. 644320d725fbSmrg# 644420d725fbSmrg# Another solution, used here, is to always expand $ac_aux_dir to an 644520d725fbSmrg# absolute PATH. The drawback is that using absolute paths prevent a 644620d725fbSmrg# configured tree to be moved without reconfiguration. 644720d725fbSmrg 644820d725fbSmrgAC_DEFUN([AM_AUX_DIR_EXPAND], 644920d725fbSmrg[dnl Rely on autoconf to set up CDPATH properly. 645020d725fbSmrgAC_PREREQ([2.50])dnl 645120d725fbSmrg# expand $ac_aux_dir to an absolute path 645220d725fbSmrgam_aux_dir=`cd $ac_aux_dir && pwd` 645320d725fbSmrg]) 645420d725fbSmrg 645520d725fbSmrg# AM_CONDITIONAL -*- Autoconf -*- 645620d725fbSmrg 645720d725fbSmrg# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005 645820d725fbSmrg# Free Software Foundation, Inc. 645920d725fbSmrg# 646020d725fbSmrg# This file is free software; the Free Software Foundation 646120d725fbSmrg# gives unlimited permission to copy and/or distribute it, 646220d725fbSmrg# with or without modifications, as long as this notice is preserved. 646320d725fbSmrg 646420d725fbSmrg# serial 7 646520d725fbSmrg 646620d725fbSmrg# AM_CONDITIONAL(NAME, SHELL-CONDITION) 646720d725fbSmrg# ------------------------------------- 646820d725fbSmrg# Define a conditional. 646920d725fbSmrgAC_DEFUN([AM_CONDITIONAL], 647020d725fbSmrg[AC_PREREQ(2.52)dnl 647120d725fbSmrg ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], 647220d725fbSmrg [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl 647320d725fbSmrgAC_SUBST([$1_TRUE]) 647420d725fbSmrgAC_SUBST([$1_FALSE]) 647520d725fbSmrgif $2; then 647620d725fbSmrg $1_TRUE= 647720d725fbSmrg $1_FALSE='#' 647820d725fbSmrgelse 647920d725fbSmrg $1_TRUE='#' 648020d725fbSmrg $1_FALSE= 648120d725fbSmrgfi 648220d725fbSmrgAC_CONFIG_COMMANDS_PRE( 648320d725fbSmrg[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then 648420d725fbSmrg AC_MSG_ERROR([[conditional "$1" was never defined. 648520d725fbSmrgUsually this means the macro was only invoked conditionally.]]) 648620d725fbSmrgfi])]) 648720d725fbSmrg 648820d725fbSmrg 648920d725fbSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 649020d725fbSmrg# Free Software Foundation, Inc. 649120d725fbSmrg# 649220d725fbSmrg# This file is free software; the Free Software Foundation 649320d725fbSmrg# gives unlimited permission to copy and/or distribute it, 649420d725fbSmrg# with or without modifications, as long as this notice is preserved. 649520d725fbSmrg 649620d725fbSmrg# serial 8 649720d725fbSmrg 649820d725fbSmrg# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 649920d725fbSmrg# written in clear, in which case automake, when reading aclocal.m4, 650020d725fbSmrg# will think it sees a *use*, and therefore will trigger all it's 650120d725fbSmrg# C support machinery. Also note that it means that autoscan, seeing 650220d725fbSmrg# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 650320d725fbSmrg 650420d725fbSmrg 650520d725fbSmrg# _AM_DEPENDENCIES(NAME) 650620d725fbSmrg# ---------------------- 650720d725fbSmrg# See how the compiler implements dependency checking. 650820d725fbSmrg# NAME is "CC", "CXX", "GCJ", or "OBJC". 650920d725fbSmrg# We try a few techniques and use that to set a single cache variable. 651020d725fbSmrg# 651120d725fbSmrg# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 651220d725fbSmrg# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 651320d725fbSmrg# dependency, and given that the user is not expected to run this macro, 651420d725fbSmrg# just rely on AC_PROG_CC. 651520d725fbSmrgAC_DEFUN([_AM_DEPENDENCIES], 651620d725fbSmrg[AC_REQUIRE([AM_SET_DEPDIR])dnl 651720d725fbSmrgAC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 651820d725fbSmrgAC_REQUIRE([AM_MAKE_INCLUDE])dnl 651920d725fbSmrgAC_REQUIRE([AM_DEP_TRACK])dnl 652020d725fbSmrg 652120d725fbSmrgifelse([$1], CC, [depcc="$CC" am_compiler_list=], 652220d725fbSmrg [$1], CXX, [depcc="$CXX" am_compiler_list=], 652320d725fbSmrg [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], 652420d725fbSmrg [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 652520d725fbSmrg [depcc="$$1" am_compiler_list=]) 652620d725fbSmrg 652720d725fbSmrgAC_CACHE_CHECK([dependency style of $depcc], 652820d725fbSmrg [am_cv_$1_dependencies_compiler_type], 652920d725fbSmrg[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 653020d725fbSmrg # We make a subdir and do the tests there. Otherwise we can end up 653120d725fbSmrg # making bogus files that we don't know about and never remove. For 653220d725fbSmrg # instance it was reported that on HP-UX the gcc test will end up 653320d725fbSmrg # making a dummy file named `D' -- because `-MD' means `put the output 653420d725fbSmrg # in D'. 653520d725fbSmrg mkdir conftest.dir 653620d725fbSmrg # Copy depcomp to subdir because otherwise we won't find it if we're 653720d725fbSmrg # using a relative directory. 653820d725fbSmrg cp "$am_depcomp" conftest.dir 653920d725fbSmrg cd conftest.dir 654020d725fbSmrg # We will build objects and dependencies in a subdirectory because 654120d725fbSmrg # it helps to detect inapplicable dependency modes. For instance 654220d725fbSmrg # both Tru64's cc and ICC support -MD to output dependencies as a 654320d725fbSmrg # side effect of compilation, but ICC will put the dependencies in 654420d725fbSmrg # the current directory while Tru64 will put them in the object 654520d725fbSmrg # directory. 654620d725fbSmrg mkdir sub 654720d725fbSmrg 654820d725fbSmrg am_cv_$1_dependencies_compiler_type=none 654920d725fbSmrg if test "$am_compiler_list" = ""; then 655020d725fbSmrg am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 655120d725fbSmrg fi 655220d725fbSmrg for depmode in $am_compiler_list; do 655320d725fbSmrg # Setup a source with many dependencies, because some compilers 655420d725fbSmrg # like to wrap large dependency lists on column 80 (with \), and 655520d725fbSmrg # we should not choose a depcomp mode which is confused by this. 655620d725fbSmrg # 655720d725fbSmrg # We need to recreate these files for each test, as the compiler may 655820d725fbSmrg # overwrite some of them when testing with obscure command lines. 655920d725fbSmrg # This happens at least with the AIX C compiler. 656020d725fbSmrg : > sub/conftest.c 656120d725fbSmrg for i in 1 2 3 4 5 6; do 656220d725fbSmrg echo '#include "conftst'$i'.h"' >> sub/conftest.c 656320d725fbSmrg # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 656420d725fbSmrg # Solaris 8's {/usr,}/bin/sh. 656520d725fbSmrg touch sub/conftst$i.h 656620d725fbSmrg done 656720d725fbSmrg echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 656820d725fbSmrg 656920d725fbSmrg case $depmode in 657020d725fbSmrg nosideeffect) 657120d725fbSmrg # after this tag, mechanisms are not by side-effect, so they'll 657220d725fbSmrg # only be used when explicitly requested 657320d725fbSmrg if test "x$enable_dependency_tracking" = xyes; then 657420d725fbSmrg continue 657520d725fbSmrg else 657620d725fbSmrg break 657720d725fbSmrg fi 657820d725fbSmrg ;; 657920d725fbSmrg none) break ;; 658020d725fbSmrg esac 658120d725fbSmrg # We check with `-c' and `-o' for the sake of the "dashmstdout" 658220d725fbSmrg # mode. It turns out that the SunPro C++ compiler does not properly 658320d725fbSmrg # handle `-M -o', and we need to detect this. 658420d725fbSmrg if depmode=$depmode \ 658520d725fbSmrg source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 658620d725fbSmrg depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 658720d725fbSmrg $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 658820d725fbSmrg >/dev/null 2>conftest.err && 658920d725fbSmrg grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 659020d725fbSmrg grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 659120d725fbSmrg ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 659220d725fbSmrg # icc doesn't choke on unknown options, it will just issue warnings 659320d725fbSmrg # or remarks (even with -Werror). So we grep stderr for any message 659420d725fbSmrg # that says an option was ignored or not supported. 659520d725fbSmrg # When given -MP, icc 7.0 and 7.1 complain thusly: 659620d725fbSmrg # icc: Command line warning: ignoring option '-M'; no argument required 659720d725fbSmrg # The diagnosis changed in icc 8.0: 659820d725fbSmrg # icc: Command line remark: option '-MP' not supported 659920d725fbSmrg if (grep 'ignoring option' conftest.err || 660020d725fbSmrg grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 660120d725fbSmrg am_cv_$1_dependencies_compiler_type=$depmode 660220d725fbSmrg break 660320d725fbSmrg fi 660420d725fbSmrg fi 660520d725fbSmrg done 660620d725fbSmrg 660720d725fbSmrg cd .. 660820d725fbSmrg rm -rf conftest.dir 660920d725fbSmrgelse 661020d725fbSmrg am_cv_$1_dependencies_compiler_type=none 661120d725fbSmrgfi 661220d725fbSmrg]) 661320d725fbSmrgAC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) 661420d725fbSmrgAM_CONDITIONAL([am__fastdep$1], [ 661520d725fbSmrg test "x$enable_dependency_tracking" != xno \ 661620d725fbSmrg && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) 661720d725fbSmrg]) 661820d725fbSmrg 661920d725fbSmrg 662020d725fbSmrg# AM_SET_DEPDIR 662120d725fbSmrg# ------------- 662220d725fbSmrg# Choose a directory name for dependency files. 662320d725fbSmrg# This macro is AC_REQUIREd in _AM_DEPENDENCIES 662420d725fbSmrgAC_DEFUN([AM_SET_DEPDIR], 662520d725fbSmrg[AC_REQUIRE([AM_SET_LEADING_DOT])dnl 662620d725fbSmrgAC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl 662720d725fbSmrg]) 662820d725fbSmrg 662920d725fbSmrg 663020d725fbSmrg# AM_DEP_TRACK 663120d725fbSmrg# ------------ 663220d725fbSmrgAC_DEFUN([AM_DEP_TRACK], 663320d725fbSmrg[AC_ARG_ENABLE(dependency-tracking, 663420d725fbSmrg[ --disable-dependency-tracking speeds up one-time build 663520d725fbSmrg --enable-dependency-tracking do not reject slow dependency extractors]) 663620d725fbSmrgif test "x$enable_dependency_tracking" != xno; then 663720d725fbSmrg am_depcomp="$ac_aux_dir/depcomp" 663820d725fbSmrg AMDEPBACKSLASH='\' 663920d725fbSmrgfi 664020d725fbSmrgAM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 664120d725fbSmrgAC_SUBST([AMDEPBACKSLASH]) 664220d725fbSmrg]) 664320d725fbSmrg 664420d725fbSmrg# Generate code to set up dependency tracking. -*- Autoconf -*- 664520d725fbSmrg 664620d725fbSmrg# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 664720d725fbSmrg# Free Software Foundation, Inc. 664820d725fbSmrg# 664920d725fbSmrg# This file is free software; the Free Software Foundation 665020d725fbSmrg# gives unlimited permission to copy and/or distribute it, 665120d725fbSmrg# with or without modifications, as long as this notice is preserved. 665220d725fbSmrg 665320d725fbSmrg#serial 3 665420d725fbSmrg 665520d725fbSmrg# _AM_OUTPUT_DEPENDENCY_COMMANDS 665620d725fbSmrg# ------------------------------ 665720d725fbSmrgAC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], 665820d725fbSmrg[for mf in $CONFIG_FILES; do 665920d725fbSmrg # Strip MF so we end up with the name of the file. 666020d725fbSmrg mf=`echo "$mf" | sed -e 's/:.*$//'` 666120d725fbSmrg # Check whether this is an Automake generated Makefile or not. 666220d725fbSmrg # We used to match only the files named `Makefile.in', but 666320d725fbSmrg # some people rename them; so instead we look at the file content. 666420d725fbSmrg # Grep'ing the first line is not enough: some people post-process 666520d725fbSmrg # each Makefile.in and add a new line on top of each file to say so. 666620d725fbSmrg # So let's grep whole file. 666720d725fbSmrg if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 666820d725fbSmrg dirpart=`AS_DIRNAME("$mf")` 666920d725fbSmrg else 667020d725fbSmrg continue 667120d725fbSmrg fi 667220d725fbSmrg # Extract the definition of DEPDIR, am__include, and am__quote 667320d725fbSmrg # from the Makefile without running `make'. 667420d725fbSmrg DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 667520d725fbSmrg test -z "$DEPDIR" && continue 667620d725fbSmrg am__include=`sed -n 's/^am__include = //p' < "$mf"` 667720d725fbSmrg test -z "am__include" && continue 667820d725fbSmrg am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 667920d725fbSmrg # When using ansi2knr, U may be empty or an underscore; expand it 668020d725fbSmrg U=`sed -n 's/^U = //p' < "$mf"` 668120d725fbSmrg # Find all dependency output files, they are included files with 668220d725fbSmrg # $(DEPDIR) in their names. We invoke sed twice because it is the 668320d725fbSmrg # simplest approach to changing $(DEPDIR) to its actual value in the 668420d725fbSmrg # expansion. 668520d725fbSmrg for file in `sed -n " 668620d725fbSmrg s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 668720d725fbSmrg sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 668820d725fbSmrg # Make sure the directory exists. 668920d725fbSmrg test -f "$dirpart/$file" && continue 669020d725fbSmrg fdir=`AS_DIRNAME(["$file"])` 669120d725fbSmrg AS_MKDIR_P([$dirpart/$fdir]) 669220d725fbSmrg # echo "creating $dirpart/$file" 669320d725fbSmrg echo '# dummy' > "$dirpart/$file" 669420d725fbSmrg done 669520d725fbSmrgdone 669620d725fbSmrg])# _AM_OUTPUT_DEPENDENCY_COMMANDS 669720d725fbSmrg 669820d725fbSmrg 669920d725fbSmrg# AM_OUTPUT_DEPENDENCY_COMMANDS 670020d725fbSmrg# ----------------------------- 670120d725fbSmrg# This macro should only be invoked once -- use via AC_REQUIRE. 670220d725fbSmrg# 670320d725fbSmrg# This code is only required when automatic dependency tracking 670420d725fbSmrg# is enabled. FIXME. This creates each `.P' file that we will 670520d725fbSmrg# need in order to bootstrap the dependency handling code. 670620d725fbSmrgAC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], 670720d725fbSmrg[AC_CONFIG_COMMANDS([depfiles], 670820d725fbSmrg [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], 670920d725fbSmrg [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) 671020d725fbSmrg]) 671120d725fbSmrg 671220d725fbSmrg# Do all the work for Automake. -*- Autoconf -*- 671320d725fbSmrg 671420d725fbSmrg# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 671520d725fbSmrg# Free Software Foundation, Inc. 671620d725fbSmrg# 671720d725fbSmrg# This file is free software; the Free Software Foundation 671820d725fbSmrg# gives unlimited permission to copy and/or distribute it, 671920d725fbSmrg# with or without modifications, as long as this notice is preserved. 672020d725fbSmrg 672120d725fbSmrg# serial 12 672220d725fbSmrg 672320d725fbSmrg# This macro actually does too much. Some checks are only needed if 672420d725fbSmrg# your package does certain things. But this isn't really a big deal. 672520d725fbSmrg 672620d725fbSmrg# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) 672720d725fbSmrg# AM_INIT_AUTOMAKE([OPTIONS]) 672820d725fbSmrg# ----------------------------------------------- 672920d725fbSmrg# The call with PACKAGE and VERSION arguments is the old style 673020d725fbSmrg# call (pre autoconf-2.50), which is being phased out. PACKAGE 673120d725fbSmrg# and VERSION should now be passed to AC_INIT and removed from 673220d725fbSmrg# the call to AM_INIT_AUTOMAKE. 673320d725fbSmrg# We support both call styles for the transition. After 673420d725fbSmrg# the next Automake release, Autoconf can make the AC_INIT 673520d725fbSmrg# arguments mandatory, and then we can depend on a new Autoconf 673620d725fbSmrg# release and drop the old call support. 673720d725fbSmrgAC_DEFUN([AM_INIT_AUTOMAKE], 673820d725fbSmrg[AC_PREREQ([2.58])dnl 673920d725fbSmrgdnl Autoconf wants to disallow AM_ names. We explicitly allow 674020d725fbSmrgdnl the ones we care about. 674120d725fbSmrgm4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl 674220d725fbSmrgAC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl 674320d725fbSmrgAC_REQUIRE([AC_PROG_INSTALL])dnl 674420d725fbSmrg# test to see if srcdir already configured 674520d725fbSmrgif test "`cd $srcdir && pwd`" != "`pwd`" && 674620d725fbSmrg test -f $srcdir/config.status; then 674720d725fbSmrg AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) 674820d725fbSmrgfi 674920d725fbSmrg 675020d725fbSmrg# test whether we have cygpath 675120d725fbSmrgif test -z "$CYGPATH_W"; then 675220d725fbSmrg if (cygpath --version) >/dev/null 2>/dev/null; then 675320d725fbSmrg CYGPATH_W='cygpath -w' 675420d725fbSmrg else 675520d725fbSmrg CYGPATH_W=echo 675620d725fbSmrg fi 675720d725fbSmrgfi 675820d725fbSmrgAC_SUBST([CYGPATH_W]) 675920d725fbSmrg 676020d725fbSmrg# Define the identity of the package. 676120d725fbSmrgdnl Distinguish between old-style and new-style calls. 676220d725fbSmrgm4_ifval([$2], 676320d725fbSmrg[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl 676420d725fbSmrg AC_SUBST([PACKAGE], [$1])dnl 676520d725fbSmrg AC_SUBST([VERSION], [$2])], 676620d725fbSmrg[_AM_SET_OPTIONS([$1])dnl 676720d725fbSmrg AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl 676820d725fbSmrg AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl 676920d725fbSmrg 677020d725fbSmrg_AM_IF_OPTION([no-define],, 677120d725fbSmrg[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 677220d725fbSmrg AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl 677320d725fbSmrg 677420d725fbSmrg# Some tools Automake needs. 677520d725fbSmrgAC_REQUIRE([AM_SANITY_CHECK])dnl 677620d725fbSmrgAC_REQUIRE([AC_ARG_PROGRAM])dnl 677720d725fbSmrgAM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) 677820d725fbSmrgAM_MISSING_PROG(AUTOCONF, autoconf) 677920d725fbSmrgAM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) 678020d725fbSmrgAM_MISSING_PROG(AUTOHEADER, autoheader) 678120d725fbSmrgAM_MISSING_PROG(MAKEINFO, makeinfo) 678220d725fbSmrgAM_PROG_INSTALL_SH 678320d725fbSmrgAM_PROG_INSTALL_STRIP 678420d725fbSmrgAC_REQUIRE([AM_PROG_MKDIR_P])dnl 678520d725fbSmrg# We need awk for the "check" target. The system "awk" is bad on 678620d725fbSmrg# some platforms. 678720d725fbSmrgAC_REQUIRE([AC_PROG_AWK])dnl 678820d725fbSmrgAC_REQUIRE([AC_PROG_MAKE_SET])dnl 678920d725fbSmrgAC_REQUIRE([AM_SET_LEADING_DOT])dnl 679020d725fbSmrg_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], 679120d725fbSmrg [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], 679220d725fbSmrg [_AM_PROG_TAR([v7])])]) 679320d725fbSmrg_AM_IF_OPTION([no-dependencies],, 679420d725fbSmrg[AC_PROVIDE_IFELSE([AC_PROG_CC], 679520d725fbSmrg [_AM_DEPENDENCIES(CC)], 679620d725fbSmrg [define([AC_PROG_CC], 679720d725fbSmrg defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl 679820d725fbSmrgAC_PROVIDE_IFELSE([AC_PROG_CXX], 679920d725fbSmrg [_AM_DEPENDENCIES(CXX)], 680020d725fbSmrg [define([AC_PROG_CXX], 680120d725fbSmrg defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl 680220d725fbSmrg]) 680320d725fbSmrg]) 680420d725fbSmrg 680520d725fbSmrg 680620d725fbSmrg# When config.status generates a header, we must update the stamp-h file. 680720d725fbSmrg# This file resides in the same directory as the config header 680820d725fbSmrg# that is generated. The stamp files are numbered to have different names. 680920d725fbSmrg 681020d725fbSmrg# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the 681120d725fbSmrg# loop where config.status creates the headers, so we can generate 681220d725fbSmrg# our stamp files there. 681320d725fbSmrgAC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], 681420d725fbSmrg[# Compute $1's index in $config_headers. 681520d725fbSmrg_am_stamp_count=1 681620d725fbSmrgfor _am_header in $config_headers :; do 681720d725fbSmrg case $_am_header in 681820d725fbSmrg $1 | $1:* ) 681920d725fbSmrg break ;; 682020d725fbSmrg * ) 682120d725fbSmrg _am_stamp_count=`expr $_am_stamp_count + 1` ;; 682220d725fbSmrg esac 682320d725fbSmrgdone 682420d725fbSmrgecho "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count]) 682520d725fbSmrg 682620d725fbSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 682720d725fbSmrg# 682820d725fbSmrg# This file is free software; the Free Software Foundation 682920d725fbSmrg# gives unlimited permission to copy and/or distribute it, 683020d725fbSmrg# with or without modifications, as long as this notice is preserved. 683120d725fbSmrg 683220d725fbSmrg# AM_PROG_INSTALL_SH 683320d725fbSmrg# ------------------ 683420d725fbSmrg# Define $install_sh. 683520d725fbSmrgAC_DEFUN([AM_PROG_INSTALL_SH], 683620d725fbSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 683720d725fbSmrginstall_sh=${install_sh-"$am_aux_dir/install-sh"} 683820d725fbSmrgAC_SUBST(install_sh)]) 683920d725fbSmrg 684020d725fbSmrg# Copyright (C) 2003, 2005 Free Software Foundation, Inc. 684120d725fbSmrg# 684220d725fbSmrg# This file is free software; the Free Software Foundation 684320d725fbSmrg# gives unlimited permission to copy and/or distribute it, 684420d725fbSmrg# with or without modifications, as long as this notice is preserved. 684520d725fbSmrg 684620d725fbSmrg# serial 2 684720d725fbSmrg 684820d725fbSmrg# Check whether the underlying file-system supports filenames 684920d725fbSmrg# with a leading dot. For instance MS-DOS doesn't. 685020d725fbSmrgAC_DEFUN([AM_SET_LEADING_DOT], 685120d725fbSmrg[rm -rf .tst 2>/dev/null 685220d725fbSmrgmkdir .tst 2>/dev/null 685320d725fbSmrgif test -d .tst; then 685420d725fbSmrg am__leading_dot=. 685520d725fbSmrgelse 685620d725fbSmrg am__leading_dot=_ 685720d725fbSmrgfi 685820d725fbSmrgrmdir .tst 2>/dev/null 685920d725fbSmrgAC_SUBST([am__leading_dot])]) 686020d725fbSmrg 686120d725fbSmrg# Check to see how 'make' treats includes. -*- Autoconf -*- 686220d725fbSmrg 686320d725fbSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 686420d725fbSmrg# 686520d725fbSmrg# This file is free software; the Free Software Foundation 686620d725fbSmrg# gives unlimited permission to copy and/or distribute it, 686720d725fbSmrg# with or without modifications, as long as this notice is preserved. 686820d725fbSmrg 686920d725fbSmrg# serial 3 687020d725fbSmrg 687120d725fbSmrg# AM_MAKE_INCLUDE() 687220d725fbSmrg# ----------------- 687320d725fbSmrg# Check to see how make treats includes. 687420d725fbSmrgAC_DEFUN([AM_MAKE_INCLUDE], 687520d725fbSmrg[am_make=${MAKE-make} 687620d725fbSmrgcat > confinc << 'END' 687720d725fbSmrgam__doit: 687820d725fbSmrg @echo done 687920d725fbSmrg.PHONY: am__doit 688020d725fbSmrgEND 688120d725fbSmrg# If we don't find an include directive, just comment out the code. 688220d725fbSmrgAC_MSG_CHECKING([for style of include used by $am_make]) 688320d725fbSmrgam__include="#" 688420d725fbSmrgam__quote= 688520d725fbSmrg_am_result=none 688620d725fbSmrg# First try GNU make style include. 688720d725fbSmrgecho "include confinc" > confmf 688820d725fbSmrg# We grep out `Entering directory' and `Leaving directory' 688920d725fbSmrg# messages which can occur if `w' ends up in MAKEFLAGS. 689020d725fbSmrg# In particular we don't look at `^make:' because GNU make might 689120d725fbSmrg# be invoked under some other name (usually "gmake"), in which 689220d725fbSmrg# case it prints its new name instead of `make'. 689320d725fbSmrgif test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 689420d725fbSmrg am__include=include 689520d725fbSmrg am__quote= 689620d725fbSmrg _am_result=GNU 689720d725fbSmrgfi 689820d725fbSmrg# Now try BSD make style include. 689920d725fbSmrgif test "$am__include" = "#"; then 690020d725fbSmrg echo '.include "confinc"' > confmf 690120d725fbSmrg if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 690220d725fbSmrg am__include=.include 690320d725fbSmrg am__quote="\"" 690420d725fbSmrg _am_result=BSD 690520d725fbSmrg fi 690620d725fbSmrgfi 690720d725fbSmrgAC_SUBST([am__include]) 690820d725fbSmrgAC_SUBST([am__quote]) 690920d725fbSmrgAC_MSG_RESULT([$_am_result]) 691020d725fbSmrgrm -f confinc confmf 691120d725fbSmrg]) 691220d725fbSmrg 691320d725fbSmrg# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- 691420d725fbSmrg 691520d725fbSmrg# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005 691620d725fbSmrg# Free Software Foundation, Inc. 691720d725fbSmrg# 691820d725fbSmrg# This file is free software; the Free Software Foundation 691920d725fbSmrg# gives unlimited permission to copy and/or distribute it, 692020d725fbSmrg# with or without modifications, as long as this notice is preserved. 692120d725fbSmrg 692220d725fbSmrg# serial 4 692320d725fbSmrg 692420d725fbSmrg# AM_MISSING_PROG(NAME, PROGRAM) 692520d725fbSmrg# ------------------------------ 692620d725fbSmrgAC_DEFUN([AM_MISSING_PROG], 692720d725fbSmrg[AC_REQUIRE([AM_MISSING_HAS_RUN]) 692820d725fbSmrg$1=${$1-"${am_missing_run}$2"} 692920d725fbSmrgAC_SUBST($1)]) 693020d725fbSmrg 693120d725fbSmrg 693220d725fbSmrg# AM_MISSING_HAS_RUN 693320d725fbSmrg# ------------------ 693420d725fbSmrg# Define MISSING if not defined so far and test if it supports --run. 693520d725fbSmrg# If it does, set am_missing_run to use it, otherwise, to nothing. 693620d725fbSmrgAC_DEFUN([AM_MISSING_HAS_RUN], 693720d725fbSmrg[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 693820d725fbSmrgtest x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 693920d725fbSmrg# Use eval to expand $SHELL 694020d725fbSmrgif eval "$MISSING --run true"; then 694120d725fbSmrg am_missing_run="$MISSING --run " 694220d725fbSmrgelse 694320d725fbSmrg am_missing_run= 694420d725fbSmrg AC_MSG_WARN([`missing' script is too old or missing]) 694520d725fbSmrgfi 694620d725fbSmrg]) 694720d725fbSmrg 694820d725fbSmrg# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. 694920d725fbSmrg# 695020d725fbSmrg# This file is free software; the Free Software Foundation 695120d725fbSmrg# gives unlimited permission to copy and/or distribute it, 695220d725fbSmrg# with or without modifications, as long as this notice is preserved. 695320d725fbSmrg 695420d725fbSmrg# AM_PROG_MKDIR_P 695520d725fbSmrg# --------------- 695620d725fbSmrg# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise. 695720d725fbSmrg# 695820d725fbSmrg# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories 695920d725fbSmrg# created by `make install' are always world readable, even if the 696020d725fbSmrg# installer happens to have an overly restrictive umask (e.g. 077). 696120d725fbSmrg# This was a mistake. There are at least two reasons why we must not 696220d725fbSmrg# use `-m 0755': 696320d725fbSmrg# - it causes special bits like SGID to be ignored, 696420d725fbSmrg# - it may be too restrictive (some setups expect 775 directories). 696520d725fbSmrg# 696620d725fbSmrg# Do not use -m 0755 and let people choose whatever they expect by 696720d725fbSmrg# setting umask. 696820d725fbSmrg# 696920d725fbSmrg# We cannot accept any implementation of `mkdir' that recognizes `-p'. 697020d725fbSmrg# Some implementations (such as Solaris 8's) are not thread-safe: if a 697120d725fbSmrg# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c' 697220d725fbSmrg# concurrently, both version can detect that a/ is missing, but only 697320d725fbSmrg# one can create it and the other will error out. Consequently we 697420d725fbSmrg# restrict ourselves to GNU make (using the --version option ensures 697520d725fbSmrg# this.) 697620d725fbSmrgAC_DEFUN([AM_PROG_MKDIR_P], 697720d725fbSmrg[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 697820d725fbSmrg # We used to keeping the `.' as first argument, in order to 697920d725fbSmrg # allow $(mkdir_p) to be used without argument. As in 698020d725fbSmrg # $(mkdir_p) $(somedir) 698120d725fbSmrg # where $(somedir) is conditionally defined. However this is wrong 698220d725fbSmrg # for two reasons: 698320d725fbSmrg # 1. if the package is installed by a user who cannot write `.' 698420d725fbSmrg # make install will fail, 698520d725fbSmrg # 2. the above comment should most certainly read 698620d725fbSmrg # $(mkdir_p) $(DESTDIR)$(somedir) 698720d725fbSmrg # so it does not work when $(somedir) is undefined and 698820d725fbSmrg # $(DESTDIR) is not. 698920d725fbSmrg # To support the latter case, we have to write 699020d725fbSmrg # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 699120d725fbSmrg # so the `.' trick is pointless. 699220d725fbSmrg mkdir_p='mkdir -p --' 699320d725fbSmrgelse 699420d725fbSmrg # On NextStep and OpenStep, the `mkdir' command does not 699520d725fbSmrg # recognize any option. It will interpret all options as 699620d725fbSmrg # directories to create, and then abort because `.' already 699720d725fbSmrg # exists. 699820d725fbSmrg for d in ./-p ./--version; 699920d725fbSmrg do 700020d725fbSmrg test -d $d && rmdir $d 700120d725fbSmrg done 700220d725fbSmrg # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 700320d725fbSmrg if test -f "$ac_aux_dir/mkinstalldirs"; then 700420d725fbSmrg mkdir_p='$(mkinstalldirs)' 700520d725fbSmrg else 700620d725fbSmrg mkdir_p='$(install_sh) -d' 700720d725fbSmrg fi 700820d725fbSmrgfi 700920d725fbSmrgAC_SUBST([mkdir_p])]) 701020d725fbSmrg 701120d725fbSmrg# Helper functions for option handling. -*- Autoconf -*- 701220d725fbSmrg 701320d725fbSmrg# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. 701420d725fbSmrg# 701520d725fbSmrg# This file is free software; the Free Software Foundation 701620d725fbSmrg# gives unlimited permission to copy and/or distribute it, 701720d725fbSmrg# with or without modifications, as long as this notice is preserved. 701820d725fbSmrg 701920d725fbSmrg# serial 3 702020d725fbSmrg 702120d725fbSmrg# _AM_MANGLE_OPTION(NAME) 702220d725fbSmrg# ----------------------- 702320d725fbSmrgAC_DEFUN([_AM_MANGLE_OPTION], 702420d725fbSmrg[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) 702520d725fbSmrg 702620d725fbSmrg# _AM_SET_OPTION(NAME) 702720d725fbSmrg# ------------------------------ 702820d725fbSmrg# Set option NAME. Presently that only means defining a flag for this option. 702920d725fbSmrgAC_DEFUN([_AM_SET_OPTION], 703020d725fbSmrg[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) 703120d725fbSmrg 703220d725fbSmrg# _AM_SET_OPTIONS(OPTIONS) 703320d725fbSmrg# ---------------------------------- 703420d725fbSmrg# OPTIONS is a space-separated list of Automake options. 703520d725fbSmrgAC_DEFUN([_AM_SET_OPTIONS], 703620d725fbSmrg[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) 703720d725fbSmrg 703820d725fbSmrg# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) 703920d725fbSmrg# ------------------------------------------- 704020d725fbSmrg# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. 704120d725fbSmrgAC_DEFUN([_AM_IF_OPTION], 704220d725fbSmrg[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) 704320d725fbSmrg 704420d725fbSmrg# Check to make sure that the build environment is sane. -*- Autoconf -*- 704520d725fbSmrg 704620d725fbSmrg# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 704720d725fbSmrg# Free Software Foundation, Inc. 704820d725fbSmrg# 704920d725fbSmrg# This file is free software; the Free Software Foundation 705020d725fbSmrg# gives unlimited permission to copy and/or distribute it, 705120d725fbSmrg# with or without modifications, as long as this notice is preserved. 705220d725fbSmrg 705320d725fbSmrg# serial 4 705420d725fbSmrg 705520d725fbSmrg# AM_SANITY_CHECK 705620d725fbSmrg# --------------- 705720d725fbSmrgAC_DEFUN([AM_SANITY_CHECK], 705820d725fbSmrg[AC_MSG_CHECKING([whether build environment is sane]) 705920d725fbSmrg# Just in case 706020d725fbSmrgsleep 1 706120d725fbSmrgecho timestamp > conftest.file 706220d725fbSmrg# Do `set' in a subshell so we don't clobber the current shell's 706320d725fbSmrg# arguments. Must try -L first in case configure is actually a 706420d725fbSmrg# symlink; some systems play weird games with the mod time of symlinks 706520d725fbSmrg# (eg FreeBSD returns the mod time of the symlink's containing 706620d725fbSmrg# directory). 706720d725fbSmrgif ( 706820d725fbSmrg set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 706920d725fbSmrg if test "$[*]" = "X"; then 707020d725fbSmrg # -L didn't work. 707120d725fbSmrg set X `ls -t $srcdir/configure conftest.file` 707220d725fbSmrg fi 707320d725fbSmrg rm -f conftest.file 707420d725fbSmrg if test "$[*]" != "X $srcdir/configure conftest.file" \ 707520d725fbSmrg && test "$[*]" != "X conftest.file $srcdir/configure"; then 707620d725fbSmrg 707720d725fbSmrg # If neither matched, then we have a broken ls. This can happen 707820d725fbSmrg # if, for instance, CONFIG_SHELL is bash and it inherits a 707920d725fbSmrg # broken ls alias from the environment. This has actually 708020d725fbSmrg # happened. Such a system could not be considered "sane". 708120d725fbSmrg AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 708220d725fbSmrgalias in your environment]) 708320d725fbSmrg fi 708420d725fbSmrg 708520d725fbSmrg test "$[2]" = conftest.file 708620d725fbSmrg ) 708720d725fbSmrgthen 708820d725fbSmrg # Ok. 708920d725fbSmrg : 709020d725fbSmrgelse 709120d725fbSmrg AC_MSG_ERROR([newly created file is older than distributed files! 709220d725fbSmrgCheck your system clock]) 709320d725fbSmrgfi 709420d725fbSmrgAC_MSG_RESULT(yes)]) 709520d725fbSmrg 709620d725fbSmrg# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. 709720d725fbSmrg# 709820d725fbSmrg# This file is free software; the Free Software Foundation 709920d725fbSmrg# gives unlimited permission to copy and/or distribute it, 710020d725fbSmrg# with or without modifications, as long as this notice is preserved. 710120d725fbSmrg 710220d725fbSmrg# AM_PROG_INSTALL_STRIP 710320d725fbSmrg# --------------------- 710420d725fbSmrg# One issue with vendor `install' (even GNU) is that you can't 710520d725fbSmrg# specify the program used to strip binaries. This is especially 710620d725fbSmrg# annoying in cross-compiling environments, where the build's strip 710720d725fbSmrg# is unlikely to handle the host's binaries. 710820d725fbSmrg# Fortunately install-sh will honor a STRIPPROG variable, so we 710920d725fbSmrg# always use install-sh in `make install-strip', and initialize 711020d725fbSmrg# STRIPPROG with the value of the STRIP variable (set by the user). 711120d725fbSmrgAC_DEFUN([AM_PROG_INSTALL_STRIP], 711220d725fbSmrg[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 711320d725fbSmrg# Installed binaries are usually stripped using `strip' when the user 711420d725fbSmrg# run `make install-strip'. However `strip' might not be the right 711520d725fbSmrg# tool to use in cross-compilation environments, therefore Automake 711620d725fbSmrg# will honor the `STRIP' environment variable to overrule this program. 711720d725fbSmrgdnl Don't test for $cross_compiling = yes, because it might be `maybe'. 711820d725fbSmrgif test "$cross_compiling" != no; then 711920d725fbSmrg AC_CHECK_TOOL([STRIP], [strip], :) 712020d725fbSmrgfi 712120d725fbSmrgINSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 712220d725fbSmrgAC_SUBST([INSTALL_STRIP_PROGRAM])]) 712320d725fbSmrg 712420d725fbSmrg# Check how to create a tarball. -*- Autoconf -*- 712520d725fbSmrg 712620d725fbSmrg# Copyright (C) 2004, 2005 Free Software Foundation, Inc. 712720d725fbSmrg# 712820d725fbSmrg# This file is free software; the Free Software Foundation 712920d725fbSmrg# gives unlimited permission to copy and/or distribute it, 713020d725fbSmrg# with or without modifications, as long as this notice is preserved. 713120d725fbSmrg 713220d725fbSmrg# serial 2 713320d725fbSmrg 713420d725fbSmrg# _AM_PROG_TAR(FORMAT) 713520d725fbSmrg# -------------------- 713620d725fbSmrg# Check how to create a tarball in format FORMAT. 713720d725fbSmrg# FORMAT should be one of `v7', `ustar', or `pax'. 713820d725fbSmrg# 713920d725fbSmrg# Substitute a variable $(am__tar) that is a command 714020d725fbSmrg# writing to stdout a FORMAT-tarball containing the directory 714120d725fbSmrg# $tardir. 714220d725fbSmrg# tardir=directory && $(am__tar) > result.tar 714320d725fbSmrg# 714420d725fbSmrg# Substitute a variable $(am__untar) that extract such 714520d725fbSmrg# a tarball read from stdin. 714620d725fbSmrg# $(am__untar) < result.tar 714720d725fbSmrgAC_DEFUN([_AM_PROG_TAR], 714820d725fbSmrg[# Always define AMTAR for backward compatibility. 714920d725fbSmrgAM_MISSING_PROG([AMTAR], [tar]) 715020d725fbSmrgm4_if([$1], [v7], 715120d725fbSmrg [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], 715220d725fbSmrg [m4_case([$1], [ustar],, [pax],, 715320d725fbSmrg [m4_fatal([Unknown tar format])]) 715420d725fbSmrgAC_MSG_CHECKING([how to create a $1 tar archive]) 715520d725fbSmrg# Loop over all known methods to create a tar archive until one works. 715620d725fbSmrg_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' 715720d725fbSmrg_am_tools=${am_cv_prog_tar_$1-$_am_tools} 715820d725fbSmrg# Do not fold the above two line into one, because Tru64 sh and 715920d725fbSmrg# Solaris sh will not grok spaces in the rhs of `-'. 716020d725fbSmrgfor _am_tool in $_am_tools 716120d725fbSmrgdo 716220d725fbSmrg case $_am_tool in 716320d725fbSmrg gnutar) 716420d725fbSmrg for _am_tar in tar gnutar gtar; 716520d725fbSmrg do 716620d725fbSmrg AM_RUN_LOG([$_am_tar --version]) && break 716720d725fbSmrg done 716820d725fbSmrg am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' 716920d725fbSmrg am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' 717020d725fbSmrg am__untar="$_am_tar -xf -" 717120d725fbSmrg ;; 717220d725fbSmrg plaintar) 717320d725fbSmrg # Must skip GNU tar: if it does not support --format= it doesn't create 717420d725fbSmrg # ustar tarball either. 717520d725fbSmrg (tar --version) >/dev/null 2>&1 && continue 717620d725fbSmrg am__tar='tar chf - "$$tardir"' 717720d725fbSmrg am__tar_='tar chf - "$tardir"' 717820d725fbSmrg am__untar='tar xf -' 717920d725fbSmrg ;; 718020d725fbSmrg pax) 718120d725fbSmrg am__tar='pax -L -x $1 -w "$$tardir"' 718220d725fbSmrg am__tar_='pax -L -x $1 -w "$tardir"' 718320d725fbSmrg am__untar='pax -r' 718420d725fbSmrg ;; 718520d725fbSmrg cpio) 718620d725fbSmrg am__tar='find "$$tardir" -print | cpio -o -H $1 -L' 718720d725fbSmrg am__tar_='find "$tardir" -print | cpio -o -H $1 -L' 718820d725fbSmrg am__untar='cpio -i -H $1 -d' 718920d725fbSmrg ;; 719020d725fbSmrg none) 719120d725fbSmrg am__tar=false 719220d725fbSmrg am__tar_=false 719320d725fbSmrg am__untar=false 719420d725fbSmrg ;; 719520d725fbSmrg esac 719620d725fbSmrg 719720d725fbSmrg # If the value was cached, stop now. We just wanted to have am__tar 719820d725fbSmrg # and am__untar set. 719920d725fbSmrg test -n "${am_cv_prog_tar_$1}" && break 720020d725fbSmrg 720120d725fbSmrg # tar/untar a dummy directory, and stop if the command works 720220d725fbSmrg rm -rf conftest.dir 720320d725fbSmrg mkdir conftest.dir 720420d725fbSmrg echo GrepMe > conftest.dir/file 720520d725fbSmrg AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) 720620d725fbSmrg rm -rf conftest.dir 720720d725fbSmrg if test -s conftest.tar; then 720820d725fbSmrg AM_RUN_LOG([$am__untar <conftest.tar]) 720920d725fbSmrg grep GrepMe conftest.dir/file >/dev/null 2>&1 && break 721020d725fbSmrg fi 721120d725fbSmrgdone 721220d725fbSmrgrm -rf conftest.dir 721320d725fbSmrg 721420d725fbSmrgAC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) 721520d725fbSmrgAC_MSG_RESULT([$am_cv_prog_tar_$1])]) 721620d725fbSmrgAC_SUBST([am__tar]) 721720d725fbSmrgAC_SUBST([am__untar]) 721820d725fbSmrg]) # _AM_PROG_TAR 721920d725fbSmrg 7220