renatofilho@642: # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- renatofilho@642: ## Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005 renatofilho@642: ## Free Software Foundation, Inc. renatofilho@642: ## Originally by Gordon Matzigkeit , 1996 renatofilho@642: ## renatofilho@642: ## This file is free software; the Free Software Foundation gives renatofilho@642: ## unlimited permission to copy and/or distribute it, with or without renatofilho@642: ## modifications, as long as this notice is preserved. renatofilho@642: renatofilho@642: # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL renatofilho@642: renatofilho@642: renatofilho@642: # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) renatofilho@642: # ----------------------------------------------------------- renatofilho@642: # If this macro is not defined by Autoconf, define it here. renatofilho@642: m4_ifdef([AC_PROVIDE_IFELSE], renatofilho@642: [], renatofilho@642: [m4_define([AC_PROVIDE_IFELSE], renatofilho@642: [m4_ifdef([AC_PROVIDE_$1], renatofilho@642: [$2], [$3])])]) renatofilho@642: renatofilho@642: renatofilho@642: # AC_PROG_LIBTOOL renatofilho@642: # --------------- renatofilho@642: AC_DEFUN([AC_PROG_LIBTOOL], renatofilho@642: [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl renatofilho@642: dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX renatofilho@642: dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. renatofilho@642: AC_PROVIDE_IFELSE([AC_PROG_CXX], renatofilho@642: [AC_LIBTOOL_CXX], renatofilho@642: [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX renatofilho@642: ])]) renatofilho@642: dnl And a similar setup for Fortran 77 support renatofilho@642: AC_PROVIDE_IFELSE([AC_PROG_F77], renatofilho@642: [AC_LIBTOOL_F77], renatofilho@642: [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 renatofilho@642: ])]) renatofilho@642: renatofilho@642: dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. renatofilho@642: dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run renatofilho@642: dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. renatofilho@642: AC_PROVIDE_IFELSE([AC_PROG_GCJ], renatofilho@642: [AC_LIBTOOL_GCJ], renatofilho@642: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], renatofilho@642: [AC_LIBTOOL_GCJ], renatofilho@642: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], renatofilho@642: [AC_LIBTOOL_GCJ], renatofilho@642: [ifdef([AC_PROG_GCJ], renatofilho@642: [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) renatofilho@642: ifdef([A][M_PROG_GCJ], renatofilho@642: [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) renatofilho@642: ifdef([LT_AC_PROG_GCJ], renatofilho@642: [define([LT_AC_PROG_GCJ], renatofilho@642: defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) renatofilho@642: ])])# AC_PROG_LIBTOOL renatofilho@642: renatofilho@642: renatofilho@642: # _AC_PROG_LIBTOOL renatofilho@642: # ---------------- renatofilho@642: AC_DEFUN([_AC_PROG_LIBTOOL], renatofilho@642: [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl renatofilho@642: AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl renatofilho@642: AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl renatofilho@642: AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl renatofilho@642: renatofilho@642: # This can be used to rebuild libtool when needed renatofilho@642: LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" renatofilho@642: renatofilho@642: # Always use our own libtool. renatofilho@642: LIBTOOL='$(SHELL) $(top_builddir)/libtool' renatofilho@642: AC_SUBST(LIBTOOL)dnl renatofilho@642: renatofilho@642: # Prevent multiple expansion renatofilho@642: define([AC_PROG_LIBTOOL], []) renatofilho@642: ])# _AC_PROG_LIBTOOL renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SETUP renatofilho@642: # ---------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_SETUP], renatofilho@642: [AC_PREREQ(2.50)dnl renatofilho@642: AC_REQUIRE([AC_ENABLE_SHARED])dnl renatofilho@642: AC_REQUIRE([AC_ENABLE_STATIC])dnl renatofilho@642: AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl renatofilho@642: AC_REQUIRE([AC_CANONICAL_HOST])dnl renatofilho@642: AC_REQUIRE([AC_CANONICAL_BUILD])dnl renatofilho@642: AC_REQUIRE([AC_PROG_CC])dnl renatofilho@642: AC_REQUIRE([AC_PROG_LD])dnl renatofilho@642: AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl renatofilho@642: AC_REQUIRE([AC_PROG_NM])dnl renatofilho@642: renatofilho@642: AC_REQUIRE([AC_PROG_LN_S])dnl renatofilho@642: AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl renatofilho@642: # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! renatofilho@642: AC_REQUIRE([AC_OBJEXT])dnl renatofilho@642: AC_REQUIRE([AC_EXEEXT])dnl renatofilho@642: dnl renatofilho@642: renatofilho@642: AC_LIBTOOL_SYS_MAX_CMD_LEN renatofilho@642: AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE renatofilho@642: AC_LIBTOOL_OBJDIR renatofilho@642: renatofilho@642: AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl renatofilho@642: _LT_AC_PROG_ECHO_BACKSLASH renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: # AIX sometimes has problems with the GCC collect2 program. For some renatofilho@642: # reason, if we set the COLLECT_NAMES environment variable, the problems renatofilho@642: # vanish in a puff of smoke. renatofilho@642: if test "X${COLLECT_NAMES+set}" != Xset; then renatofilho@642: COLLECT_NAMES= renatofilho@642: export COLLECT_NAMES renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # Sed substitution that helps us do robust quoting. It backslashifies renatofilho@642: # metacharacters that are still active within double-quoted strings. renatofilho@642: Xsed='sed -e 1s/^X//' renatofilho@642: [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] renatofilho@642: renatofilho@642: # Same as above, but do not quote variable references. renatofilho@642: [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] renatofilho@642: renatofilho@642: # Sed substitution to delay expansion of an escaped shell variable in a renatofilho@642: # double_quote_subst'ed string. renatofilho@642: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' renatofilho@642: renatofilho@642: # Sed substitution to avoid accidental globbing in evaled expressions renatofilho@642: no_glob_subst='s/\*/\\\*/g' renatofilho@642: renatofilho@642: # Constants: renatofilho@642: rm="rm -f" renatofilho@642: renatofilho@642: # Global variables: renatofilho@642: default_ofile=libtool renatofilho@642: can_build_shared=yes renatofilho@642: renatofilho@642: # All known linkers require a `.a' archive for static linking (except MSVC, renatofilho@642: # which needs '.lib'). renatofilho@642: libext=a renatofilho@642: ltmain="$ac_aux_dir/ltmain.sh" renatofilho@642: ofile="$default_ofile" renatofilho@642: with_gnu_ld="$lt_cv_prog_gnu_ld" renatofilho@642: renatofilho@642: AC_CHECK_TOOL(AR, ar, false) renatofilho@642: AC_CHECK_TOOL(RANLIB, ranlib, :) renatofilho@642: AC_CHECK_TOOL(STRIP, strip, :) renatofilho@642: renatofilho@642: old_CC="$CC" renatofilho@642: old_CFLAGS="$CFLAGS" renatofilho@642: renatofilho@642: # Set sane defaults for various variables renatofilho@642: test -z "$AR" && AR=ar renatofilho@642: test -z "$AR_FLAGS" && AR_FLAGS=cru renatofilho@642: test -z "$AS" && AS=as renatofilho@642: test -z "$CC" && CC=cc renatofilho@642: test -z "$LTCC" && LTCC=$CC renatofilho@642: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS renatofilho@642: test -z "$DLLTOOL" && DLLTOOL=dlltool renatofilho@642: test -z "$LD" && LD=ld renatofilho@642: test -z "$LN_S" && LN_S="ln -s" renatofilho@642: test -z "$MAGIC_CMD" && MAGIC_CMD=file renatofilho@642: test -z "$NM" && NM=nm renatofilho@642: test -z "$SED" && SED=sed renatofilho@642: test -z "$OBJDUMP" && OBJDUMP=objdump renatofilho@642: test -z "$RANLIB" && RANLIB=: renatofilho@642: test -z "$STRIP" && STRIP=: renatofilho@642: test -z "$ac_objext" && ac_objext=o renatofilho@642: renatofilho@642: # Determine commands to create old-style static archives. renatofilho@642: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' renatofilho@642: old_postinstall_cmds='chmod 644 $oldlib' renatofilho@642: old_postuninstall_cmds= renatofilho@642: renatofilho@642: if test -n "$RANLIB"; then renatofilho@642: case $host_os in renatofilho@642: openbsd*) renatofilho@642: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" renatofilho@642: ;; renatofilho@642: *) renatofilho@642: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" renatofilho@642: fi renatofilho@642: renatofilho@642: _LT_CC_BASENAME([$compiler]) renatofilho@642: renatofilho@642: # Only perform the check for file, if the check method requires it renatofilho@642: case $deplibs_check_method in renatofilho@642: file_magic*) renatofilho@642: if test "$file_magic_cmd" = '$MAGIC_CMD'; then renatofilho@642: AC_PATH_MAGIC renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) renatofilho@642: AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], renatofilho@642: enable_win32_dll=yes, enable_win32_dll=no) renatofilho@642: renatofilho@642: AC_ARG_ENABLE([libtool-lock], renatofilho@642: [AC_HELP_STRING([--disable-libtool-lock], renatofilho@642: [avoid locking (might break parallel builds)])]) renatofilho@642: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes renatofilho@642: renatofilho@642: AC_ARG_WITH([pic], renatofilho@642: [AC_HELP_STRING([--with-pic], renatofilho@642: [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], renatofilho@642: [pic_mode="$withval"], renatofilho@642: [pic_mode=default]) renatofilho@642: test -z "$pic_mode" && pic_mode=default renatofilho@642: renatofilho@642: # Use C for the default configuration in the libtool script renatofilho@642: tagname= renatofilho@642: AC_LIBTOOL_LANG_C_CONFIG renatofilho@642: _LT_AC_TAGCONFIG renatofilho@642: ])# AC_LIBTOOL_SETUP renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_SYS_COMPILER renatofilho@642: # ------------------- renatofilho@642: AC_DEFUN([_LT_AC_SYS_COMPILER], renatofilho@642: [AC_REQUIRE([AC_PROG_CC])dnl renatofilho@642: renatofilho@642: # If no C compiler was specified, use CC. renatofilho@642: LTCC=${LTCC-"$CC"} renatofilho@642: renatofilho@642: # If no C compiler flags were specified, use CFLAGS. renatofilho@642: LTCFLAGS=${LTCFLAGS-"$CFLAGS"} renatofilho@642: renatofilho@642: # Allow CC to be a program name with arguments. renatofilho@642: compiler=$CC renatofilho@642: ])# _LT_AC_SYS_COMPILER renatofilho@642: renatofilho@642: renatofilho@642: # _LT_CC_BASENAME(CC) renatofilho@642: # ------------------- renatofilho@642: # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. renatofilho@642: AC_DEFUN([_LT_CC_BASENAME], renatofilho@642: [for cc_temp in $1""; do renatofilho@642: case $cc_temp in renatofilho@642: compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; renatofilho@642: distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; renatofilho@642: \-*) ;; renatofilho@642: *) break;; renatofilho@642: esac renatofilho@642: done renatofilho@642: cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` renatofilho@642: ]) renatofilho@642: renatofilho@642: renatofilho@642: # _LT_COMPILER_BOILERPLATE renatofilho@642: # ------------------------ renatofilho@642: # Check for compiler boilerplate output or warnings with renatofilho@642: # the simple compiler test code. renatofilho@642: AC_DEFUN([_LT_COMPILER_BOILERPLATE], renatofilho@642: [ac_outfile=conftest.$ac_objext renatofilho@642: printf "$lt_simple_compile_test_code" >conftest.$ac_ext renatofilho@642: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err renatofilho@642: _lt_compiler_boilerplate=`cat conftest.err` renatofilho@642: $rm conftest* renatofilho@642: ])# _LT_COMPILER_BOILERPLATE renatofilho@642: renatofilho@642: renatofilho@642: # _LT_LINKER_BOILERPLATE renatofilho@642: # ---------------------- renatofilho@642: # Check for linker boilerplate output or warnings with renatofilho@642: # the simple link test code. renatofilho@642: AC_DEFUN([_LT_LINKER_BOILERPLATE], renatofilho@642: [ac_outfile=conftest.$ac_objext renatofilho@642: printf "$lt_simple_link_test_code" >conftest.$ac_ext renatofilho@642: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err renatofilho@642: _lt_linker_boilerplate=`cat conftest.err` renatofilho@642: $rm conftest* renatofilho@642: ])# _LT_LINKER_BOILERPLATE renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_SYS_LIBPATH_AIX renatofilho@642: # ---------------------- renatofilho@642: # Links a minimal program and checks the executable renatofilho@642: # for the system default hardcoded library path. In most cases, renatofilho@642: # this is /usr/lib:/lib, but when the MPI compilers are used renatofilho@642: # the location of the communication and MPI libs are included too. renatofilho@642: # If we don't find anything, use the default library path according renatofilho@642: # to the aix ld manual. renatofilho@642: AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], renatofilho@642: [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ renatofilho@642: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } renatofilho@642: }'` renatofilho@642: # Check for a 64-bit object if we didn't find anything. renatofilho@642: if 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; } renatofilho@642: }'`; fi],[]) renatofilho@642: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi renatofilho@642: ])# _LT_AC_SYS_LIBPATH_AIX renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_SHELL_INIT(ARG) renatofilho@642: # ---------------------- renatofilho@642: AC_DEFUN([_LT_AC_SHELL_INIT], renatofilho@642: [ifdef([AC_DIVERSION_NOTICE], renatofilho@642: [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], renatofilho@642: [AC_DIVERT_PUSH(NOTICE)]) renatofilho@642: $1 renatofilho@642: AC_DIVERT_POP renatofilho@642: ])# _LT_AC_SHELL_INIT renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_PROG_ECHO_BACKSLASH renatofilho@642: # -------------------------- renatofilho@642: # Add some code to the start of the generated configure script which renatofilho@642: # will find an echo command which doesn't interpret backslashes. renatofilho@642: AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], renatofilho@642: [_LT_AC_SHELL_INIT([ renatofilho@642: # Check that we are running under the correct shell. renatofilho@642: SHELL=${CONFIG_SHELL-/bin/sh} renatofilho@642: renatofilho@642: case X$ECHO in renatofilho@642: X*--fallback-echo) renatofilho@642: # Remove one level of quotation (which was required for Make). renatofilho@642: ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: echo=${ECHO-echo} renatofilho@642: if test "X[$]1" = X--no-reexec; then renatofilho@642: # Discard the --no-reexec flag, and continue. renatofilho@642: shift renatofilho@642: elif test "X[$]1" = X--fallback-echo; then renatofilho@642: # Avoid inline document here, it may be left over renatofilho@642: : renatofilho@642: elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then renatofilho@642: # Yippee, $echo works! renatofilho@642: : renatofilho@642: else renatofilho@642: # Restart under the correct shell. renatofilho@642: exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} renatofilho@642: fi renatofilho@642: renatofilho@642: if test "X[$]1" = X--fallback-echo; then renatofilho@642: # used as fallback echo renatofilho@642: shift renatofilho@642: cat </dev/null 2>&1 && unset CDPATH renatofilho@642: renatofilho@642: if test -z "$ECHO"; then renatofilho@642: if test "X${echo_test_string+set}" != Xset; then renatofilho@642: # find a string as large as possible, as long as the shell can cope with it renatofilho@642: for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do renatofilho@642: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... renatofilho@642: if (echo_test_string=`eval $cmd`) 2>/dev/null && renatofilho@642: echo_test_string=`eval $cmd` && renatofilho@642: (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null renatofilho@642: then renatofilho@642: break renatofilho@642: fi renatofilho@642: done renatofilho@642: fi renatofilho@642: renatofilho@642: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && renatofilho@642: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: : renatofilho@642: else renatofilho@642: # The Solaris, AIX, and Digital Unix default echo programs unquote renatofilho@642: # backslashes. This makes it impossible to quote backslashes using renatofilho@642: # echo "$something" | sed 's/\\/\\\\/g' renatofilho@642: # renatofilho@642: # So, first we look for a working echo in the user's PATH. renatofilho@642: renatofilho@642: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR renatofilho@642: for dir in $PATH /usr/ucb; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && renatofilho@642: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && renatofilho@642: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: echo="$dir/echo" renatofilho@642: break renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: renatofilho@642: if test "X$echo" = Xecho; then renatofilho@642: # We didn't find a better echo, so look for alternatives. renatofilho@642: if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && renatofilho@642: echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: # This shell has a builtin print -r that does the trick. renatofilho@642: echo='print -r' renatofilho@642: elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && renatofilho@642: test "X$CONFIG_SHELL" != X/bin/ksh; then renatofilho@642: # If we have ksh, try running configure again with it. renatofilho@642: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} renatofilho@642: export ORIGINAL_CONFIG_SHELL renatofilho@642: CONFIG_SHELL=/bin/ksh renatofilho@642: export CONFIG_SHELL renatofilho@642: exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} renatofilho@642: else renatofilho@642: # Try using printf. renatofilho@642: echo='printf %s\n' renatofilho@642: if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && renatofilho@642: echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: # Cool, printf works renatofilho@642: : renatofilho@642: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = 'X\t' && renatofilho@642: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL renatofilho@642: export CONFIG_SHELL renatofilho@642: SHELL="$CONFIG_SHELL" renatofilho@642: export SHELL renatofilho@642: echo="$CONFIG_SHELL [$]0 --fallback-echo" renatofilho@642: elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = 'X\t' && renatofilho@642: echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && renatofilho@642: test "X$echo_testing_string" = "X$echo_test_string"; then renatofilho@642: echo="$CONFIG_SHELL [$]0 --fallback-echo" renatofilho@642: else renatofilho@642: # maybe with a smaller string... renatofilho@642: prev=: renatofilho@642: renatofilho@642: for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do renatofilho@642: if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null renatofilho@642: then renatofilho@642: break renatofilho@642: fi renatofilho@642: prev="$cmd" renatofilho@642: done renatofilho@642: renatofilho@642: if test "$prev" != 'sed 50q "[$]0"'; then renatofilho@642: echo_test_string=`eval $prev` renatofilho@642: export echo_test_string renatofilho@642: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} renatofilho@642: else renatofilho@642: # Oops. We lost completely, so just stick with echo. renatofilho@642: echo=echo renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: renatofilho@642: # Copy echo and quote the copy suitably for passing to libtool from renatofilho@642: # the Makefile, instead of quoting the original, which is used later. renatofilho@642: ECHO=$echo renatofilho@642: if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then renatofilho@642: ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" renatofilho@642: fi renatofilho@642: renatofilho@642: AC_SUBST(ECHO) renatofilho@642: ])])# _LT_AC_PROG_ECHO_BACKSLASH renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_LOCK renatofilho@642: # ----------- renatofilho@642: AC_DEFUN([_LT_AC_LOCK], renatofilho@642: [AC_ARG_ENABLE([libtool-lock], renatofilho@642: [AC_HELP_STRING([--disable-libtool-lock], renatofilho@642: [avoid locking (might break parallel builds)])]) renatofilho@642: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes renatofilho@642: renatofilho@642: # Some flags need to be propagated to the compiler or linker for good renatofilho@642: # libtool support. renatofilho@642: case $host in renatofilho@642: ia64-*-hpux*) renatofilho@642: # Find out which ABI we are using. renatofilho@642: echo 'int i;' > conftest.$ac_ext renatofilho@642: if AC_TRY_EVAL(ac_compile); then renatofilho@642: case `/usr/bin/file conftest.$ac_objext` in renatofilho@642: *ELF-32*) renatofilho@642: HPUX_IA64_MODE="32" renatofilho@642: ;; renatofilho@642: *ELF-64*) renatofilho@642: HPUX_IA64_MODE="64" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: rm -rf conftest* renatofilho@642: ;; renatofilho@642: *-*-irix6*) renatofilho@642: # Find out which ABI we are using. renatofilho@642: echo '[#]line __oline__ "configure"' > conftest.$ac_ext renatofilho@642: if AC_TRY_EVAL(ac_compile); then renatofilho@642: if test "$lt_cv_prog_gnu_ld" = yes; then renatofilho@642: case `/usr/bin/file conftest.$ac_objext` in renatofilho@642: *32-bit*) renatofilho@642: LD="${LD-ld} -melf32bsmip" renatofilho@642: ;; renatofilho@642: *N32*) renatofilho@642: LD="${LD-ld} -melf32bmipn32" renatofilho@642: ;; renatofilho@642: *64-bit*) renatofilho@642: LD="${LD-ld} -melf64bmip" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: case `/usr/bin/file conftest.$ac_objext` in renatofilho@642: *32-bit*) renatofilho@642: LD="${LD-ld} -32" renatofilho@642: ;; renatofilho@642: *N32*) renatofilho@642: LD="${LD-ld} -n32" renatofilho@642: ;; renatofilho@642: *64-bit*) renatofilho@642: LD="${LD-ld} -64" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: fi renatofilho@642: rm -rf conftest* renatofilho@642: ;; renatofilho@642: renatofilho@642: x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) renatofilho@642: # Find out which ABI we are using. renatofilho@642: echo 'int i;' > conftest.$ac_ext renatofilho@642: if AC_TRY_EVAL(ac_compile); then renatofilho@642: case `/usr/bin/file conftest.o` in renatofilho@642: *32-bit*) renatofilho@642: case $host in renatofilho@642: x86_64-*linux*) renatofilho@642: LD="${LD-ld} -m elf_i386" renatofilho@642: ;; renatofilho@642: ppc64-*linux*|powerpc64-*linux*) renatofilho@642: LD="${LD-ld} -m elf32ppclinux" renatofilho@642: ;; renatofilho@642: s390x-*linux*) renatofilho@642: LD="${LD-ld} -m elf_s390" renatofilho@642: ;; renatofilho@642: sparc64-*linux*) renatofilho@642: LD="${LD-ld} -m elf32_sparc" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: *64-bit*) renatofilho@642: case $host in renatofilho@642: x86_64-*linux*) renatofilho@642: LD="${LD-ld} -m elf_x86_64" renatofilho@642: ;; renatofilho@642: ppc*-*linux*|powerpc*-*linux*) renatofilho@642: LD="${LD-ld} -m elf64ppc" renatofilho@642: ;; renatofilho@642: s390*-*linux*) renatofilho@642: LD="${LD-ld} -m elf64_s390" renatofilho@642: ;; renatofilho@642: sparc*-*linux*) renatofilho@642: LD="${LD-ld} -m elf64_sparc" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: rm -rf conftest* renatofilho@642: ;; renatofilho@642: renatofilho@642: *-*-sco3.2v5*) renatofilho@642: # On SCO OpenServer 5, we need -belf to get full-featured binaries. renatofilho@642: SAVE_CFLAGS="$CFLAGS" renatofilho@642: CFLAGS="$CFLAGS -belf" renatofilho@642: AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, renatofilho@642: [AC_LANG_PUSH(C) renatofilho@642: AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) renatofilho@642: AC_LANG_POP]) renatofilho@642: if test x"$lt_cv_cc_needs_belf" != x"yes"; then renatofilho@642: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf renatofilho@642: CFLAGS="$SAVE_CFLAGS" renatofilho@642: fi renatofilho@642: ;; renatofilho@642: sparc*-*solaris*) renatofilho@642: # Find out which ABI we are using. renatofilho@642: echo 'int i;' > conftest.$ac_ext renatofilho@642: if AC_TRY_EVAL(ac_compile); then renatofilho@642: case `/usr/bin/file conftest.o` in renatofilho@642: *64-bit*) renatofilho@642: case $lt_cv_prog_gnu_ld in renatofilho@642: yes*) LD="${LD-ld} -m elf64_sparc" ;; renatofilho@642: *) LD="${LD-ld} -64" ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: rm -rf conftest* renatofilho@642: ;; renatofilho@642: renatofilho@642: AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], renatofilho@642: [*-*-cygwin* | *-*-mingw* | *-*-pw32*) renatofilho@642: AC_CHECK_TOOL(DLLTOOL, dlltool, false) renatofilho@642: AC_CHECK_TOOL(AS, as, false) renatofilho@642: AC_CHECK_TOOL(OBJDUMP, objdump, false) renatofilho@642: ;; renatofilho@642: ]) renatofilho@642: esac renatofilho@642: renatofilho@642: need_locks="$enable_libtool_lock" renatofilho@642: renatofilho@642: ])# _LT_AC_LOCK renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, renatofilho@642: # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) renatofilho@642: # ---------------------------------------------------------------- renatofilho@642: # Check whether the given compiler option works renatofilho@642: AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], renatofilho@642: [AC_REQUIRE([LT_AC_PROG_SED]) renatofilho@642: AC_CACHE_CHECK([$1], [$2], renatofilho@642: [$2=no renatofilho@642: ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) renatofilho@642: printf "$lt_simple_compile_test_code" > conftest.$ac_ext renatofilho@642: lt_compiler_flag="$3" renatofilho@642: # Insert the option either (1) after the last *FLAGS variable, or renatofilho@642: # (2) before a word containing "conftest.", or (3) at the end. renatofilho@642: # Note that $ac_compile itself does not contain backslashes and begins renatofilho@642: # with a dollar sign (not a hyphen), so the echo should work correctly. renatofilho@642: # The option is referenced via a variable to avoid confusing sed. renatofilho@642: lt_compile=`echo "$ac_compile" | $SED \ renatofilho@642: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ renatofilho@642: -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ renatofilho@642: -e 's:$: $lt_compiler_flag:'` renatofilho@642: (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) renatofilho@642: (eval "$lt_compile" 2>conftest.err) renatofilho@642: ac_status=$? renatofilho@642: cat conftest.err >&AS_MESSAGE_LOG_FD renatofilho@642: echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD renatofilho@642: if (exit $ac_status) && test -s "$ac_outfile"; then renatofilho@642: # The compiler can only warn and ignore the option if not recognized renatofilho@642: # So say no if there are warnings other than the usual output. renatofilho@642: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp renatofilho@642: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 renatofilho@642: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then renatofilho@642: $2=yes renatofilho@642: fi renatofilho@642: fi renatofilho@642: $rm conftest* renatofilho@642: ]) renatofilho@642: renatofilho@642: if test x"[$]$2" = xyes; then renatofilho@642: ifelse([$5], , :, [$5]) renatofilho@642: else renatofilho@642: ifelse([$6], , :, [$6]) renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_COMPILER_OPTION renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, renatofilho@642: # [ACTION-SUCCESS], [ACTION-FAILURE]) renatofilho@642: # ------------------------------------------------------------ renatofilho@642: # Check whether the given compiler option works renatofilho@642: AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], renatofilho@642: [AC_CACHE_CHECK([$1], [$2], renatofilho@642: [$2=no renatofilho@642: save_LDFLAGS="$LDFLAGS" renatofilho@642: LDFLAGS="$LDFLAGS $3" renatofilho@642: printf "$lt_simple_link_test_code" > conftest.$ac_ext renatofilho@642: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then renatofilho@642: # The linker can only warn and ignore the option if not recognized renatofilho@642: # So say no if there are warnings renatofilho@642: if test -s conftest.err; then renatofilho@642: # Append any errors to the config.log. renatofilho@642: cat conftest.err 1>&AS_MESSAGE_LOG_FD renatofilho@642: $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp renatofilho@642: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 renatofilho@642: if diff conftest.exp conftest.er2 >/dev/null; then renatofilho@642: $2=yes renatofilho@642: fi renatofilho@642: else renatofilho@642: $2=yes renatofilho@642: fi renatofilho@642: fi renatofilho@642: $rm conftest* renatofilho@642: LDFLAGS="$save_LDFLAGS" renatofilho@642: ]) renatofilho@642: renatofilho@642: if test x"[$]$2" = xyes; then renatofilho@642: ifelse([$4], , :, [$4]) renatofilho@642: else renatofilho@642: ifelse([$5], , :, [$5]) renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_LINKER_OPTION renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SYS_MAX_CMD_LEN renatofilho@642: # -------------------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], renatofilho@642: [# find the maximum length of command line arguments renatofilho@642: AC_MSG_CHECKING([the maximum length of command line arguments]) renatofilho@642: AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl renatofilho@642: i=0 renatofilho@642: teststring="ABCD" renatofilho@642: renatofilho@642: case $build_os in renatofilho@642: msdosdjgpp*) renatofilho@642: # On DJGPP, this test can blow up pretty badly due to problems in libc renatofilho@642: # (any single argument exceeding 2000 bytes causes a buffer overrun renatofilho@642: # during glob expansion). Even if it were fixed, the result of this renatofilho@642: # check would be larger than it should be. renatofilho@642: lt_cv_sys_max_cmd_len=12288; # 12K is about right renatofilho@642: ;; renatofilho@642: renatofilho@642: gnu*) renatofilho@642: # Under GNU Hurd, this test is not required because there is renatofilho@642: # no limit to the length of command line arguments. renatofilho@642: # Libtool will interpret -1 as no limit whatsoever renatofilho@642: lt_cv_sys_max_cmd_len=-1; renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin* | mingw*) renatofilho@642: # On Win9x/ME, this test blows up -- it succeeds, but takes renatofilho@642: # about 5 minutes as the teststring grows exponentially. renatofilho@642: # Worse, since 9x/ME are not pre-emptively multitasking, renatofilho@642: # you end up with a "frozen" computer, even though with patience renatofilho@642: # the test eventually succeeds (with a max line length of 256k). renatofilho@642: # Instead, let's just punt: use the minimum linelength reported by renatofilho@642: # all of the supported platforms: 8192 (on NT/2K/XP). renatofilho@642: lt_cv_sys_max_cmd_len=8192; renatofilho@642: ;; renatofilho@642: renatofilho@642: amigaos*) renatofilho@642: # On AmigaOS with pdksh, this test takes hours, literally. renatofilho@642: # So we just punt and use a minimum line length of 8192. renatofilho@642: lt_cv_sys_max_cmd_len=8192; renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) renatofilho@642: # This has been around since 386BSD, at least. Likely further. renatofilho@642: if test -x /sbin/sysctl; then renatofilho@642: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` renatofilho@642: elif test -x /usr/sbin/sysctl; then renatofilho@642: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` renatofilho@642: else renatofilho@642: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs renatofilho@642: fi renatofilho@642: # And add a safety zone renatofilho@642: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` renatofilho@642: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` renatofilho@642: ;; renatofilho@642: renatofilho@642: interix*) renatofilho@642: # We know the value 262144 and hardcode it with a safety zone (like BSD) renatofilho@642: lt_cv_sys_max_cmd_len=196608 renatofilho@642: ;; renatofilho@642: renatofilho@642: osf*) renatofilho@642: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure renatofilho@642: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not renatofilho@642: # nice to cause kernel panics so lets avoid the loop below. renatofilho@642: # First set a reasonable default. renatofilho@642: lt_cv_sys_max_cmd_len=16384 renatofilho@642: # renatofilho@642: if test -x /sbin/sysconfig; then renatofilho@642: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in renatofilho@642: *1*) lt_cv_sys_max_cmd_len=-1 ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: sco3.2v5*) renatofilho@642: lt_cv_sys_max_cmd_len=102400 renatofilho@642: ;; renatofilho@642: sysv5* | sco5v6* | sysv4.2uw2*) renatofilho@642: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` renatofilho@642: if test -n "$kargmax"; then renatofilho@642: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` renatofilho@642: else renatofilho@642: lt_cv_sys_max_cmd_len=32768 renatofilho@642: fi renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # If test is not a shell built-in, we'll probably end up computing a renatofilho@642: # maximum length that is only half of the actual maximum length, but renatofilho@642: # we can't tell. renatofilho@642: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} renatofilho@642: while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ renatofilho@642: = "XX$teststring") >/dev/null 2>&1 && renatofilho@642: new_result=`expr "X$teststring" : ".*" 2>&1` && renatofilho@642: lt_cv_sys_max_cmd_len=$new_result && renatofilho@642: test $i != 17 # 1/2 MB should be enough renatofilho@642: do renatofilho@642: i=`expr $i + 1` renatofilho@642: teststring=$teststring$teststring renatofilho@642: done renatofilho@642: teststring= renatofilho@642: # Add a significant safety factor because C++ compilers can tack on massive renatofilho@642: # amounts of additional arguments before passing them to the linker. renatofilho@642: # It appears as though 1/2 is a usable value. renatofilho@642: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ]) renatofilho@642: if test -n $lt_cv_sys_max_cmd_len ; then renatofilho@642: AC_MSG_RESULT($lt_cv_sys_max_cmd_len) renatofilho@642: else renatofilho@642: AC_MSG_RESULT(none) renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_SYS_MAX_CMD_LEN renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_CHECK_DLFCN renatofilho@642: # ------------------ renatofilho@642: AC_DEFUN([_LT_AC_CHECK_DLFCN], renatofilho@642: [AC_CHECK_HEADERS(dlfcn.h)dnl renatofilho@642: ])# _LT_AC_CHECK_DLFCN renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, renatofilho@642: # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) renatofilho@642: # --------------------------------------------------------------------- renatofilho@642: AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], renatofilho@642: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl renatofilho@642: if test "$cross_compiling" = yes; then : renatofilho@642: [$4] renatofilho@642: else renatofilho@642: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 renatofilho@642: lt_status=$lt_dlunknown renatofilho@642: cat > conftest.$ac_ext < renatofilho@642: #endif renatofilho@642: renatofilho@642: #include renatofilho@642: renatofilho@642: #ifdef RTLD_GLOBAL renatofilho@642: # define LT_DLGLOBAL RTLD_GLOBAL renatofilho@642: #else renatofilho@642: # ifdef DL_GLOBAL renatofilho@642: # define LT_DLGLOBAL DL_GLOBAL renatofilho@642: # else renatofilho@642: # define LT_DLGLOBAL 0 renatofilho@642: # endif renatofilho@642: #endif renatofilho@642: renatofilho@642: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we renatofilho@642: find out it does not work in some platform. */ renatofilho@642: #ifndef LT_DLLAZY_OR_NOW renatofilho@642: # ifdef RTLD_LAZY renatofilho@642: # define LT_DLLAZY_OR_NOW RTLD_LAZY renatofilho@642: # else renatofilho@642: # ifdef DL_LAZY renatofilho@642: # define LT_DLLAZY_OR_NOW DL_LAZY renatofilho@642: # else renatofilho@642: # ifdef RTLD_NOW renatofilho@642: # define LT_DLLAZY_OR_NOW RTLD_NOW renatofilho@642: # else renatofilho@642: # ifdef DL_NOW renatofilho@642: # define LT_DLLAZY_OR_NOW DL_NOW renatofilho@642: # else renatofilho@642: # define LT_DLLAZY_OR_NOW 0 renatofilho@642: # endif renatofilho@642: # endif renatofilho@642: # endif renatofilho@642: # endif renatofilho@642: #endif renatofilho@642: renatofilho@642: #ifdef __cplusplus renatofilho@642: extern "C" void exit (int); renatofilho@642: #endif renatofilho@642: renatofilho@642: void fnord() { int i=42;} renatofilho@642: int main () renatofilho@642: { renatofilho@642: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); renatofilho@642: int status = $lt_dlunknown; renatofilho@642: renatofilho@642: if (self) renatofilho@642: { renatofilho@642: if (dlsym (self,"fnord")) status = $lt_dlno_uscore; renatofilho@642: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; renatofilho@642: /* dlclose (self); */ renatofilho@642: } renatofilho@642: else renatofilho@642: puts (dlerror ()); renatofilho@642: renatofilho@642: exit (status); renatofilho@642: }] renatofilho@642: EOF renatofilho@642: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then renatofilho@642: (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null renatofilho@642: lt_status=$? renatofilho@642: case x$lt_status in renatofilho@642: x$lt_dlno_uscore) $1 ;; renatofilho@642: x$lt_dlneed_uscore) $2 ;; renatofilho@642: x$lt_dlunknown|x*) $3 ;; renatofilho@642: esac renatofilho@642: else : renatofilho@642: # compilation failed renatofilho@642: $3 renatofilho@642: fi renatofilho@642: fi renatofilho@642: rm -fr conftest* renatofilho@642: ])# _LT_AC_TRY_DLOPEN_SELF renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_DLOPEN_SELF renatofilho@642: # ---------------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], renatofilho@642: [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl renatofilho@642: if test "x$enable_dlopen" != xyes; then renatofilho@642: enable_dlopen=unknown renatofilho@642: enable_dlopen_self=unknown renatofilho@642: enable_dlopen_self_static=unknown renatofilho@642: else renatofilho@642: lt_cv_dlopen=no renatofilho@642: lt_cv_dlopen_libs= renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: beos*) renatofilho@642: lt_cv_dlopen="load_add_on" renatofilho@642: lt_cv_dlopen_libs= renatofilho@642: lt_cv_dlopen_self=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: mingw* | pw32*) renatofilho@642: lt_cv_dlopen="LoadLibrary" renatofilho@642: lt_cv_dlopen_libs= renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin*) renatofilho@642: lt_cv_dlopen="dlopen" renatofilho@642: lt_cv_dlopen_libs= renatofilho@642: ;; renatofilho@642: renatofilho@642: darwin*) renatofilho@642: # if libdl is installed we need to link against it renatofilho@642: AC_CHECK_LIB([dl], [dlopen], renatofilho@642: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ renatofilho@642: lt_cv_dlopen="dyld" renatofilho@642: lt_cv_dlopen_libs= renatofilho@642: lt_cv_dlopen_self=yes renatofilho@642: ]) renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: AC_CHECK_FUNC([shl_load], renatofilho@642: [lt_cv_dlopen="shl_load"], renatofilho@642: [AC_CHECK_LIB([dld], [shl_load], renatofilho@642: [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], renatofilho@642: [AC_CHECK_FUNC([dlopen], renatofilho@642: [lt_cv_dlopen="dlopen"], renatofilho@642: [AC_CHECK_LIB([dl], [dlopen], renatofilho@642: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], renatofilho@642: [AC_CHECK_LIB([svld], [dlopen], renatofilho@642: [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], renatofilho@642: [AC_CHECK_LIB([dld], [dld_link], renatofilho@642: [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) renatofilho@642: ]) renatofilho@642: ]) renatofilho@642: ]) renatofilho@642: ]) renatofilho@642: ]) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: if test "x$lt_cv_dlopen" != xno; then renatofilho@642: enable_dlopen=yes renatofilho@642: else renatofilho@642: enable_dlopen=no renatofilho@642: fi renatofilho@642: renatofilho@642: case $lt_cv_dlopen in renatofilho@642: dlopen) renatofilho@642: save_CPPFLAGS="$CPPFLAGS" renatofilho@642: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" renatofilho@642: renatofilho@642: save_LDFLAGS="$LDFLAGS" renatofilho@642: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" renatofilho@642: renatofilho@642: save_LIBS="$LIBS" renatofilho@642: LIBS="$lt_cv_dlopen_libs $LIBS" renatofilho@642: renatofilho@642: AC_CACHE_CHECK([whether a program can dlopen itself], renatofilho@642: lt_cv_dlopen_self, [dnl renatofilho@642: _LT_AC_TRY_DLOPEN_SELF( renatofilho@642: lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, renatofilho@642: lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) renatofilho@642: ]) renatofilho@642: renatofilho@642: if test "x$lt_cv_dlopen_self" = xyes; then renatofilho@642: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" renatofilho@642: AC_CACHE_CHECK([whether a statically linked program can dlopen itself], renatofilho@642: lt_cv_dlopen_self_static, [dnl renatofilho@642: _LT_AC_TRY_DLOPEN_SELF( renatofilho@642: lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, renatofilho@642: lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) renatofilho@642: ]) renatofilho@642: fi renatofilho@642: renatofilho@642: CPPFLAGS="$save_CPPFLAGS" renatofilho@642: LDFLAGS="$save_LDFLAGS" renatofilho@642: LIBS="$save_LIBS" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: case $lt_cv_dlopen_self in renatofilho@642: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; renatofilho@642: *) enable_dlopen_self=unknown ;; renatofilho@642: esac renatofilho@642: renatofilho@642: case $lt_cv_dlopen_self_static in renatofilho@642: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; renatofilho@642: *) enable_dlopen_self_static=unknown ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_DLOPEN_SELF renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) renatofilho@642: # --------------------------------- renatofilho@642: # Check to see if options -c and -o are simultaneously supported by compiler renatofilho@642: AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], renatofilho@642: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl renatofilho@642: AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], renatofilho@642: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], renatofilho@642: [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no renatofilho@642: $rm -r conftest 2>/dev/null renatofilho@642: mkdir conftest renatofilho@642: cd conftest renatofilho@642: mkdir out renatofilho@642: printf "$lt_simple_compile_test_code" > conftest.$ac_ext renatofilho@642: renatofilho@642: lt_compiler_flag="-o out/conftest2.$ac_objext" renatofilho@642: # Insert the option either (1) after the last *FLAGS variable, or renatofilho@642: # (2) before a word containing "conftest.", or (3) at the end. renatofilho@642: # Note that $ac_compile itself does not contain backslashes and begins renatofilho@642: # with a dollar sign (not a hyphen), so the echo should work correctly. renatofilho@642: lt_compile=`echo "$ac_compile" | $SED \ renatofilho@642: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ renatofilho@642: -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ renatofilho@642: -e 's:$: $lt_compiler_flag:'` renatofilho@642: (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) renatofilho@642: (eval "$lt_compile" 2>out/conftest.err) renatofilho@642: ac_status=$? renatofilho@642: cat out/conftest.err >&AS_MESSAGE_LOG_FD renatofilho@642: echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD renatofilho@642: if (exit $ac_status) && test -s out/conftest2.$ac_objext renatofilho@642: then renatofilho@642: # The compiler can only warn and ignore the option if not recognized renatofilho@642: # So say no if there are warnings renatofilho@642: $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp renatofilho@642: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 renatofilho@642: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then renatofilho@642: _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes renatofilho@642: fi renatofilho@642: fi renatofilho@642: chmod u+w . 2>&AS_MESSAGE_LOG_FD renatofilho@642: $rm conftest* renatofilho@642: # SGI C++ compiler will create directory out/ii_files/ for renatofilho@642: # template instantiation renatofilho@642: test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files renatofilho@642: $rm out/* && rmdir out renatofilho@642: cd .. renatofilho@642: rmdir conftest renatofilho@642: $rm conftest* renatofilho@642: ]) renatofilho@642: ])# AC_LIBTOOL_PROG_CC_C_O renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) renatofilho@642: # ----------------------------------------- renatofilho@642: # Check to see if we can do hard links to lock some files if needed renatofilho@642: AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], renatofilho@642: [AC_REQUIRE([_LT_AC_LOCK])dnl renatofilho@642: renatofilho@642: hard_links="nottested" renatofilho@642: if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then renatofilho@642: # do not overwrite the value of need_locks provided by the user renatofilho@642: AC_MSG_CHECKING([if we can lock with hard links]) renatofilho@642: hard_links=yes renatofilho@642: $rm conftest* renatofilho@642: ln conftest.a conftest.b 2>/dev/null && hard_links=no renatofilho@642: touch conftest.a renatofilho@642: ln conftest.a conftest.b 2>&5 || hard_links=no renatofilho@642: ln conftest.a conftest.b 2>/dev/null && hard_links=no renatofilho@642: AC_MSG_RESULT([$hard_links]) renatofilho@642: if test "$hard_links" = no; then renatofilho@642: AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) renatofilho@642: need_locks=warn renatofilho@642: fi renatofilho@642: else renatofilho@642: need_locks=no renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_OBJDIR renatofilho@642: # ----------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_OBJDIR], renatofilho@642: [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], renatofilho@642: [rm -f .libs 2>/dev/null renatofilho@642: mkdir .libs 2>/dev/null renatofilho@642: if test -d .libs; then renatofilho@642: lt_cv_objdir=.libs renatofilho@642: else renatofilho@642: # MS-DOS does not allow filenames that begin with a dot. renatofilho@642: lt_cv_objdir=_libs renatofilho@642: fi renatofilho@642: rmdir .libs 2>/dev/null]) renatofilho@642: objdir=$lt_cv_objdir renatofilho@642: ])# AC_LIBTOOL_OBJDIR renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) renatofilho@642: # ---------------------------------------------- renatofilho@642: # Check hardcoding attributes. renatofilho@642: AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], renatofilho@642: [AC_MSG_CHECKING([how to hardcode library paths into programs]) renatofilho@642: _LT_AC_TAGVAR(hardcode_action, $1)= renatofilho@642: if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ renatofilho@642: test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ renatofilho@642: test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then renatofilho@642: renatofilho@642: # We can hardcode non-existant directories. renatofilho@642: if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && renatofilho@642: # If the only mechanism to avoid hardcoding is shlibpath_var, we renatofilho@642: # have to relink, otherwise we might link with an installed library renatofilho@642: # when we should be linking with a yet-to-be-installed one renatofilho@642: ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && renatofilho@642: test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then renatofilho@642: # Linking always hardcodes the temporary library directory. renatofilho@642: _LT_AC_TAGVAR(hardcode_action, $1)=relink renatofilho@642: else renatofilho@642: # We can link without hardcoding, and we can hardcode nonexisting dirs. renatofilho@642: _LT_AC_TAGVAR(hardcode_action, $1)=immediate renatofilho@642: fi renatofilho@642: else renatofilho@642: # We cannot hardcode anything, or else we can only hardcode existing renatofilho@642: # directories. renatofilho@642: _LT_AC_TAGVAR(hardcode_action, $1)=unsupported renatofilho@642: fi renatofilho@642: AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) renatofilho@642: renatofilho@642: if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then renatofilho@642: # Fast installation is not supported renatofilho@642: enable_fast_install=no renatofilho@642: elif test "$shlibpath_overrides_runpath" = yes || renatofilho@642: test "$enable_shared" = no; then renatofilho@642: # Fast installation is not necessary renatofilho@642: enable_fast_install=needless renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SYS_LIB_STRIP renatofilho@642: # ------------------------ renatofilho@642: AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], renatofilho@642: [striplib= renatofilho@642: old_striplib= renatofilho@642: AC_MSG_CHECKING([whether stripping libraries is possible]) renatofilho@642: if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then renatofilho@642: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" renatofilho@642: test -z "$striplib" && striplib="$STRIP --strip-unneeded" renatofilho@642: AC_MSG_RESULT([yes]) renatofilho@642: else renatofilho@642: # FIXME - insert some real tests, host_os isn't really good enough renatofilho@642: case $host_os in renatofilho@642: darwin*) renatofilho@642: if test -n "$STRIP" ; then renatofilho@642: striplib="$STRIP -x" renatofilho@642: AC_MSG_RESULT([yes]) renatofilho@642: else renatofilho@642: AC_MSG_RESULT([no]) renatofilho@642: fi renatofilho@642: ;; renatofilho@642: *) renatofilho@642: AC_MSG_RESULT([no]) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_SYS_LIB_STRIP renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SYS_DYNAMIC_LINKER renatofilho@642: # ----------------------------- renatofilho@642: # PORTME Fill in your ld.so characteristics renatofilho@642: AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], renatofilho@642: [AC_MSG_CHECKING([dynamic linker characteristics]) renatofilho@642: library_names_spec= renatofilho@642: libname_spec='lib$name' renatofilho@642: soname_spec= renatofilho@642: shrext_cmds=".so" renatofilho@642: postinstall_cmds= renatofilho@642: postuninstall_cmds= renatofilho@642: finish_cmds= renatofilho@642: finish_eval= renatofilho@642: shlibpath_var= renatofilho@642: shlibpath_overrides_runpath=unknown renatofilho@642: version_type=none renatofilho@642: dynamic_linker="$host_os ld.so" renatofilho@642: sys_lib_dlsearch_path_spec="/lib /usr/lib" renatofilho@642: if test "$GCC" = yes; then renatofilho@642: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` renatofilho@642: if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then renatofilho@642: # if the path contains ";" then we assume it to be the separator renatofilho@642: # otherwise default to the standard path separator (i.e. ":") - it is renatofilho@642: # assumed that no part of a normal pathname contains ";" but that should renatofilho@642: # okay in the real world where ";" in dirpaths is itself problematic. renatofilho@642: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` renatofilho@642: else renatofilho@642: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` renatofilho@642: fi renatofilho@642: else renatofilho@642: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" renatofilho@642: fi renatofilho@642: need_lib_prefix=unknown renatofilho@642: hardcode_into_libs=no renatofilho@642: renatofilho@642: # when you set need_version to no, make sure it does not cause -set_version renatofilho@642: # flags to be left without arguments renatofilho@642: need_version=unknown renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: version_type=linux renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' renatofilho@642: shlibpath_var=LIBPATH renatofilho@642: renatofilho@642: # AIX 3 has no versioning support, so we append a major version to the name. renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: ;; renatofilho@642: renatofilho@642: aix4* | aix5*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: hardcode_into_libs=yes renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # AIX 5 supports IA64 renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: else renatofilho@642: # With GCC up to 2.95.x, collect2 would create an import file renatofilho@642: # for dependence libraries. The import file would start with renatofilho@642: # the line `#! .'. This would cause the generated library to renatofilho@642: # depend on `.', always an invalid library. This was fixed in renatofilho@642: # development snapshots of GCC prior to 3.0. renatofilho@642: case $host_os in renatofilho@642: aix4 | aix4.[[01]] | aix4.[[01]].*) renatofilho@642: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' renatofilho@642: echo ' yes ' renatofilho@642: echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then renatofilho@642: : renatofilho@642: else renatofilho@642: can_build_shared=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct renatofilho@642: # soname into executable. Probably we can add versioning support to renatofilho@642: # collect2, so additional links can be useful in future. renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: # If using run time linking (on AIX 4.2 or later) use lib.so renatofilho@642: # instead of lib.a to let people know that these are not renatofilho@642: # typical AIX shared libraries. renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: else renatofilho@642: # We preserve .a as extension for shared libraries through AIX4.2 renatofilho@642: # and later when we are not doing run time linking. renatofilho@642: library_names_spec='${libname}${release}.a $libname.a' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: fi renatofilho@642: shlibpath_var=LIBPATH renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: amigaos*) renatofilho@642: library_names_spec='$libname.ixlibrary $libname.a' renatofilho@642: # Create ${libname}_ixlibrary.a entries in /sys/libs. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: renatofilho@642: beos*) renatofilho@642: library_names_spec='${libname}${shared_ext}' renatofilho@642: dynamic_linker="$host_os ld.so" renatofilho@642: shlibpath_var=LIBRARY_PATH renatofilho@642: ;; renatofilho@642: renatofilho@642: bsdi[[45]]*) renatofilho@642: version_type=linux renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" renatofilho@642: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" renatofilho@642: # the default ld.so.conf also contains /usr/contrib/lib and renatofilho@642: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow renatofilho@642: # libtool to hard-code these into programs renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: version_type=windows renatofilho@642: shrext_cmds=".dll" renatofilho@642: need_version=no renatofilho@642: need_lib_prefix=no renatofilho@642: renatofilho@642: case $GCC,$host_os in renatofilho@642: yes,cygwin* | yes,mingw* | yes,pw32*) renatofilho@642: library_names_spec='$libname.dll.a' renatofilho@642: # DLL is installed to $(libdir)/../bin by postinstall_cmds renatofilho@642: postinstall_cmds='base_file=`basename \${file}`~ renatofilho@642: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ renatofilho@642: dldir=$destdir/`dirname \$dlpath`~ renatofilho@642: test -d \$dldir || mkdir -p \$dldir~ renatofilho@642: $install_prog $dir/$dlname \$dldir/$dlname~ renatofilho@642: chmod a+x \$dldir/$dlname' renatofilho@642: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ renatofilho@642: dlpath=$dir/\$dldll~ renatofilho@642: $rm \$dlpath' renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: cygwin*) renatofilho@642: # Cygwin DLLs use 'cyg' prefix rather than 'lib' renatofilho@642: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' renatofilho@642: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" renatofilho@642: ;; renatofilho@642: mingw*) renatofilho@642: # MinGW DLLs use traditional 'lib' prefix renatofilho@642: soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' renatofilho@642: sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` renatofilho@642: if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then renatofilho@642: # It is most probably a Windows format PATH printed by renatofilho@642: # mingw gcc, but we are running on Cygwin. Gcc prints its search renatofilho@642: # path with ; separators, and with drive letters. We can handle the renatofilho@642: # drive letters (cygwin fileutils understands them), so leave them, renatofilho@642: # especially as we might pass files found there to a mingw objdump, renatofilho@642: # which wouldn't understand a cygwinified path. Ahh. renatofilho@642: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` renatofilho@642: else renatofilho@642: sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` renatofilho@642: fi renatofilho@642: ;; renatofilho@642: pw32*) renatofilho@642: # pw32 DLLs use 'pw' prefix rather than 'lib' renatofilho@642: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: dynamic_linker='Win32 ld.exe' renatofilho@642: # FIXME: first we should search . and the directory the executable is in renatofilho@642: shlibpath_var=PATH renatofilho@642: ;; renatofilho@642: renatofilho@642: darwin* | rhapsody*) renatofilho@642: dynamic_linker="$host_os dyld" renatofilho@642: version_type=darwin renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' renatofilho@642: soname_spec='${libname}${release}${major}$shared_ext' renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: shlibpath_var=DYLD_LIBRARY_PATH renatofilho@642: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' renatofilho@642: # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. renatofilho@642: if test "$GCC" = yes; then renatofilho@642: 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"` renatofilho@642: else renatofilho@642: sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' renatofilho@642: fi renatofilho@642: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' renatofilho@642: ;; renatofilho@642: renatofilho@642: dgux*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: ;; renatofilho@642: renatofilho@642: freebsd1*) renatofilho@642: dynamic_linker=no renatofilho@642: ;; renatofilho@642: renatofilho@642: freebsd* | dragonfly*) renatofilho@642: # DragonFly does not have aout. When/if they implement a new renatofilho@642: # versioning mechanism, adjust this. renatofilho@642: if test -x /usr/bin/objformat; then renatofilho@642: objformat=`/usr/bin/objformat` renatofilho@642: else renatofilho@642: case $host_os in renatofilho@642: freebsd[[123]]*) objformat=aout ;; renatofilho@642: *) objformat=elf ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: version_type=freebsd-$objformat renatofilho@642: case $version_type in renatofilho@642: freebsd-elf*) renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' renatofilho@642: need_version=no renatofilho@642: need_lib_prefix=no renatofilho@642: ;; renatofilho@642: freebsd-*) renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' renatofilho@642: need_version=yes renatofilho@642: ;; renatofilho@642: esac renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: case $host_os in renatofilho@642: freebsd2*) renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: ;; renatofilho@642: freebsd3.[[01]]* | freebsdelf3.[[01]]*) renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ renatofilho@642: freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: freebsd*) # from 4.6 on renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: gnu*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux9* | hpux10* | hpux11*) renatofilho@642: # Give a soname corresponding to the major version so that dld.sl refuses to renatofilho@642: # link against other versions. renatofilho@642: version_type=sunos renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: case $host_cpu in renatofilho@642: ia64*) renatofilho@642: shrext_cmds='.so' renatofilho@642: hardcode_into_libs=yes renatofilho@642: dynamic_linker="$host_os dld.so" renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: if test "X$HPUX_IA64_MODE" = X32; then renatofilho@642: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" renatofilho@642: else renatofilho@642: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" renatofilho@642: fi renatofilho@642: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec renatofilho@642: ;; renatofilho@642: hppa*64*) renatofilho@642: shrext_cmds='.sl' renatofilho@642: hardcode_into_libs=yes renatofilho@642: dynamic_linker="$host_os dld.sl" renatofilho@642: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH renatofilho@642: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" renatofilho@642: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec renatofilho@642: ;; renatofilho@642: *) renatofilho@642: shrext_cmds='.sl' renatofilho@642: dynamic_linker="$host_os dld.sl" renatofilho@642: shlibpath_var=SHLIB_PATH renatofilho@642: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: # HP-UX runs *really* slowly unless shared libraries are mode 555. renatofilho@642: postinstall_cmds='chmod 555 $lib' renatofilho@642: ;; renatofilho@642: renatofilho@642: interix3*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: irix5* | irix6* | nonstopux*) renatofilho@642: case $host_os in renatofilho@642: nonstopux*) version_type=nonstopux ;; renatofilho@642: *) renatofilho@642: if test "$lt_cv_prog_gnu_ld" = yes; then renatofilho@642: version_type=linux renatofilho@642: else renatofilho@642: version_type=irix renatofilho@642: fi ;; renatofilho@642: esac renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' renatofilho@642: case $host_os in renatofilho@642: irix5* | nonstopux*) renatofilho@642: libsuff= shlibsuff= renatofilho@642: ;; renatofilho@642: *) renatofilho@642: case $LD in # libtool.m4 will add one of these switches to LD renatofilho@642: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") renatofilho@642: libsuff= shlibsuff= libmagic=32-bit;; renatofilho@642: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") renatofilho@642: libsuff=32 shlibsuff=N32 libmagic=N32;; renatofilho@642: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") renatofilho@642: libsuff=64 shlibsuff=64 libmagic=64-bit;; renatofilho@642: *) libsuff= shlibsuff= libmagic=never-match;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: esac renatofilho@642: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" renatofilho@642: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: # No shared lib support for Linux oldld, aout, or coff. renatofilho@642: linux*oldld* | linux*aout* | linux*coff*) renatofilho@642: dynamic_linker=no renatofilho@642: ;; renatofilho@642: renatofilho@642: # This must be Linux ELF. renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: # This implies no fast_install, which is unacceptable. renatofilho@642: # Some rework will be needed to allow for fast_install renatofilho@642: # before this can be enabled. renatofilho@642: hardcode_into_libs=yes renatofilho@642: renatofilho@642: # Append ld.so.conf contents to the search path renatofilho@642: if test -f /etc/ld.so.conf; then renatofilho@642: 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' ' '` renatofilho@642: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" renatofilho@642: fi renatofilho@642: renatofilho@642: # We used to test for /lib/ld.so.1 and disable shared libraries on renatofilho@642: # powerpc, because MkLinux only supported shared libraries with the renatofilho@642: # GNU dynamic linker. Since this was broken with cross compilers, renatofilho@642: # most powerpc-linux boxes support dynamic linking these days and renatofilho@642: # people can always --disable-shared, the test was removed, and we renatofilho@642: # assume the GNU/Linux dynamic linker is in use. renatofilho@642: dynamic_linker='GNU/Linux ld.so' renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsdelf*-gnu) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: hardcode_into_libs=yes renatofilho@642: dynamic_linker='NetBSD ld.elf_so' renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsd*) renatofilho@642: version_type=sunos renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' renatofilho@642: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' renatofilho@642: dynamic_linker='NetBSD (a.out) ld.so' renatofilho@642: else renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: dynamic_linker='NetBSD ld.elf_so' renatofilho@642: fi renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: hardcode_into_libs=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: newsos6) renatofilho@642: version_type=linux renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: nto-qnx*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: openbsd*) renatofilho@642: version_type=sunos renatofilho@642: sys_lib_dlsearch_path_spec="/usr/lib" renatofilho@642: need_lib_prefix=no renatofilho@642: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. renatofilho@642: case $host_os in renatofilho@642: openbsd3.3 | openbsd3.3.*) need_version=yes ;; renatofilho@642: *) need_version=no ;; renatofilho@642: esac renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' renatofilho@642: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then renatofilho@642: case $host_os in renatofilho@642: openbsd2.[[89]] | openbsd2.[[89]].*) renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: os2*) renatofilho@642: libname_spec='$name' renatofilho@642: shrext_cmds=".dll" renatofilho@642: need_lib_prefix=no renatofilho@642: library_names_spec='$libname${shared_ext} $libname.a' renatofilho@642: dynamic_linker='OS/2 ld.exe' renatofilho@642: shlibpath_var=LIBPATH renatofilho@642: ;; renatofilho@642: renatofilho@642: osf3* | osf4* | osf5*) renatofilho@642: version_type=osf renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" renatofilho@642: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" renatofilho@642: ;; renatofilho@642: renatofilho@642: solaris*) renatofilho@642: version_type=linux renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: hardcode_into_libs=yes renatofilho@642: # ldd complains unless libraries are executable renatofilho@642: postinstall_cmds='chmod +x $lib' renatofilho@642: ;; renatofilho@642: renatofilho@642: sunos4*) renatofilho@642: version_type=sunos renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' renatofilho@642: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: if test "$with_gnu_ld" = yes; then renatofilho@642: need_lib_prefix=no renatofilho@642: fi renatofilho@642: need_version=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4 | sysv4.3*) renatofilho@642: version_type=linux renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: case $host_vendor in renatofilho@642: sni) renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: need_lib_prefix=no renatofilho@642: export_dynamic_flag_spec='${wl}-Blargedynsym' renatofilho@642: runpath_var=LD_RUN_PATH renatofilho@642: ;; renatofilho@642: siemens) renatofilho@642: need_lib_prefix=no renatofilho@642: ;; renatofilho@642: motorola) renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4*MP*) renatofilho@642: if test -d /usr/nec ;then renatofilho@642: version_type=linux renatofilho@642: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' renatofilho@642: soname_spec='$libname${shared_ext}.$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) renatofilho@642: version_type=freebsd-elf renatofilho@642: need_lib_prefix=no renatofilho@642: need_version=no renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: hardcode_into_libs=yes renatofilho@642: if test "$with_gnu_ld" = yes; then renatofilho@642: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' renatofilho@642: shlibpath_overrides_runpath=no renatofilho@642: else renatofilho@642: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' renatofilho@642: shlibpath_overrides_runpath=yes renatofilho@642: case $host_os in renatofilho@642: sco3.2v5*) renatofilho@642: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: sys_lib_dlsearch_path_spec='/usr/lib' renatofilho@642: ;; renatofilho@642: renatofilho@642: uts4*) renatofilho@642: version_type=linux renatofilho@642: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' renatofilho@642: soname_spec='${libname}${release}${shared_ext}$major' renatofilho@642: shlibpath_var=LD_LIBRARY_PATH renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: dynamic_linker=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: AC_MSG_RESULT([$dynamic_linker]) renatofilho@642: test "$dynamic_linker" = no && can_build_shared=no renatofilho@642: renatofilho@642: variables_saved_for_relink="PATH $shlibpath_var $runpath_var" renatofilho@642: if test "$GCC" = yes; then renatofilho@642: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_TAGCONFIG renatofilho@642: # ---------------- renatofilho@642: AC_DEFUN([_LT_AC_TAGCONFIG], renatofilho@642: [AC_ARG_WITH([tags], renatofilho@642: [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], renatofilho@642: [include additional configurations @<:@automatic@:>@])], renatofilho@642: [tagnames="$withval"]) renatofilho@642: renatofilho@642: if test -f "$ltmain" && test -n "$tagnames"; then renatofilho@642: if test ! -f "${ofile}"; then renatofilho@642: AC_MSG_WARN([output file `$ofile' does not exist]) renatofilho@642: fi renatofilho@642: renatofilho@642: if test -z "$LTCC"; then renatofilho@642: eval "`$SHELL ${ofile} --config | grep '^LTCC='`" renatofilho@642: if test -z "$LTCC"; then renatofilho@642: AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) renatofilho@642: else renatofilho@642: AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) renatofilho@642: fi renatofilho@642: fi renatofilho@642: if test -z "$LTCFLAGS"; then renatofilho@642: eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" renatofilho@642: fi renatofilho@642: renatofilho@642: # Extract list of available tagged configurations in $ofile. renatofilho@642: # Note that this assumes the entire list is on one line. renatofilho@642: available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` renatofilho@642: renatofilho@642: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," renatofilho@642: for tagname in $tagnames; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: # Check whether tagname contains only valid characters renatofilho@642: case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in renatofilho@642: "") ;; renatofilho@642: *) AC_MSG_ERROR([invalid tag name: $tagname]) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null renatofilho@642: then renatofilho@642: AC_MSG_ERROR([tag name \"$tagname\" already exists]) renatofilho@642: fi renatofilho@642: renatofilho@642: # Update the list of available tags. renatofilho@642: if test -n "$tagname"; then renatofilho@642: echo appending configuration tag \"$tagname\" to $ofile renatofilho@642: renatofilho@642: case $tagname in renatofilho@642: CXX) renatofilho@642: if test -n "$CXX" && ( test "X$CXX" != "Xno" && renatofilho@642: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || renatofilho@642: (test "X$CXX" != "Xg++"))) ; then renatofilho@642: AC_LIBTOOL_LANG_CXX_CONFIG renatofilho@642: else renatofilho@642: tagname="" renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: F77) renatofilho@642: if test -n "$F77" && test "X$F77" != "Xno"; then renatofilho@642: AC_LIBTOOL_LANG_F77_CONFIG renatofilho@642: else renatofilho@642: tagname="" renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: GCJ) renatofilho@642: if test -n "$GCJ" && test "X$GCJ" != "Xno"; then renatofilho@642: AC_LIBTOOL_LANG_GCJ_CONFIG renatofilho@642: else renatofilho@642: tagname="" renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: RC) renatofilho@642: AC_LIBTOOL_LANG_RC_CONFIG renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: AC_MSG_ERROR([Unsupported tag name: $tagname]) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # Append the new tag name to the list of available tags. renatofilho@642: if test -n "$tagname" ; then renatofilho@642: available_tags="$available_tags $tagname" renatofilho@642: fi renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: renatofilho@642: # Now substitute the updated list of available tags. renatofilho@642: if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then renatofilho@642: mv "${ofile}T" "$ofile" renatofilho@642: chmod +x "$ofile" renatofilho@642: else renatofilho@642: rm -f "${ofile}T" renatofilho@642: AC_MSG_ERROR([unable to update list of available tagged configurations.]) renatofilho@642: fi renatofilho@642: fi renatofilho@642: ])# _LT_AC_TAGCONFIG renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_DLOPEN renatofilho@642: # ----------------- renatofilho@642: # enable checks for dlopen support renatofilho@642: AC_DEFUN([AC_LIBTOOL_DLOPEN], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) renatofilho@642: ])# AC_LIBTOOL_DLOPEN renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_WIN32_DLL renatofilho@642: # -------------------- renatofilho@642: # declare package support for building win32 DLLs renatofilho@642: AC_DEFUN([AC_LIBTOOL_WIN32_DLL], renatofilho@642: [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) renatofilho@642: ])# AC_LIBTOOL_WIN32_DLL renatofilho@642: renatofilho@642: renatofilho@642: # AC_ENABLE_SHARED([DEFAULT]) renatofilho@642: # --------------------------- renatofilho@642: # implement the --enable-shared flag renatofilho@642: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. renatofilho@642: AC_DEFUN([AC_ENABLE_SHARED], renatofilho@642: [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl renatofilho@642: AC_ARG_ENABLE([shared], renatofilho@642: [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], renatofilho@642: [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], renatofilho@642: [p=${PACKAGE-default} renatofilho@642: case $enableval in renatofilho@642: yes) enable_shared=yes ;; renatofilho@642: no) enable_shared=no ;; renatofilho@642: *) renatofilho@642: enable_shared=no renatofilho@642: # Look at the argument we got. We use all the common list separators. renatofilho@642: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," renatofilho@642: for pkg in $enableval; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: if test "X$pkg" = "X$p"; then renatofilho@642: enable_shared=yes renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: ;; renatofilho@642: esac], renatofilho@642: [enable_shared=]AC_ENABLE_SHARED_DEFAULT) renatofilho@642: ])# AC_ENABLE_SHARED renatofilho@642: renatofilho@642: renatofilho@642: # AC_DISABLE_SHARED renatofilho@642: # ----------------- renatofilho@642: # set the default shared flag to --disable-shared renatofilho@642: AC_DEFUN([AC_DISABLE_SHARED], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: AC_ENABLE_SHARED(no) renatofilho@642: ])# AC_DISABLE_SHARED renatofilho@642: renatofilho@642: renatofilho@642: # AC_ENABLE_STATIC([DEFAULT]) renatofilho@642: # --------------------------- renatofilho@642: # implement the --enable-static flag renatofilho@642: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. renatofilho@642: AC_DEFUN([AC_ENABLE_STATIC], renatofilho@642: [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl renatofilho@642: AC_ARG_ENABLE([static], renatofilho@642: [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], renatofilho@642: [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], renatofilho@642: [p=${PACKAGE-default} renatofilho@642: case $enableval in renatofilho@642: yes) enable_static=yes ;; renatofilho@642: no) enable_static=no ;; renatofilho@642: *) renatofilho@642: enable_static=no renatofilho@642: # Look at the argument we got. We use all the common list separators. renatofilho@642: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," renatofilho@642: for pkg in $enableval; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: if test "X$pkg" = "X$p"; then renatofilho@642: enable_static=yes renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: ;; renatofilho@642: esac], renatofilho@642: [enable_static=]AC_ENABLE_STATIC_DEFAULT) renatofilho@642: ])# AC_ENABLE_STATIC renatofilho@642: renatofilho@642: renatofilho@642: # AC_DISABLE_STATIC renatofilho@642: # ----------------- renatofilho@642: # set the default static flag to --disable-static renatofilho@642: AC_DEFUN([AC_DISABLE_STATIC], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: AC_ENABLE_STATIC(no) renatofilho@642: ])# AC_DISABLE_STATIC renatofilho@642: renatofilho@642: renatofilho@642: # AC_ENABLE_FAST_INSTALL([DEFAULT]) renatofilho@642: # --------------------------------- renatofilho@642: # implement the --enable-fast-install flag renatofilho@642: # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. renatofilho@642: AC_DEFUN([AC_ENABLE_FAST_INSTALL], renatofilho@642: [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl renatofilho@642: AC_ARG_ENABLE([fast-install], renatofilho@642: [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], renatofilho@642: [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], renatofilho@642: [p=${PACKAGE-default} renatofilho@642: case $enableval in renatofilho@642: yes) enable_fast_install=yes ;; renatofilho@642: no) enable_fast_install=no ;; renatofilho@642: *) renatofilho@642: enable_fast_install=no renatofilho@642: # Look at the argument we got. We use all the common list separators. renatofilho@642: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," renatofilho@642: for pkg in $enableval; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: if test "X$pkg" = "X$p"; then renatofilho@642: enable_fast_install=yes renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: ;; renatofilho@642: esac], renatofilho@642: [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) renatofilho@642: ])# AC_ENABLE_FAST_INSTALL renatofilho@642: renatofilho@642: renatofilho@642: # AC_DISABLE_FAST_INSTALL renatofilho@642: # ----------------------- renatofilho@642: # set the default to --disable-fast-install renatofilho@642: AC_DEFUN([AC_DISABLE_FAST_INSTALL], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: AC_ENABLE_FAST_INSTALL(no) renatofilho@642: ])# AC_DISABLE_FAST_INSTALL renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PICMODE([MODE]) renatofilho@642: # -------------------------- renatofilho@642: # implement the --with-pic flag renatofilho@642: # MODE is either `yes' or `no'. If omitted, it defaults to `both'. renatofilho@642: AC_DEFUN([AC_LIBTOOL_PICMODE], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: pic_mode=ifelse($#,1,$1,default) renatofilho@642: ])# AC_LIBTOOL_PICMODE renatofilho@642: renatofilho@642: renatofilho@642: # AC_PROG_EGREP renatofilho@642: # ------------- renatofilho@642: # This is predefined starting with Autoconf 2.54, so this conditional renatofilho@642: # definition can be removed once we require Autoconf 2.54 or later. renatofilho@642: m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], renatofilho@642: [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], renatofilho@642: [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 renatofilho@642: then ac_cv_prog_egrep='grep -E' renatofilho@642: else ac_cv_prog_egrep='egrep' renatofilho@642: fi]) renatofilho@642: EGREP=$ac_cv_prog_egrep renatofilho@642: AC_SUBST([EGREP]) renatofilho@642: ])]) renatofilho@642: renatofilho@642: renatofilho@642: # AC_PATH_TOOL_PREFIX renatofilho@642: # ------------------- renatofilho@642: # find a file program which can recognise shared library renatofilho@642: AC_DEFUN([AC_PATH_TOOL_PREFIX], renatofilho@642: [AC_REQUIRE([AC_PROG_EGREP])dnl renatofilho@642: AC_MSG_CHECKING([for $1]) renatofilho@642: AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, renatofilho@642: [case $MAGIC_CMD in renatofilho@642: [[\\/*] | ?:[\\/]*]) renatofilho@642: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. renatofilho@642: ;; renatofilho@642: *) renatofilho@642: lt_save_MAGIC_CMD="$MAGIC_CMD" renatofilho@642: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR renatofilho@642: dnl $ac_dummy forces splitting on constant user-supplied paths. renatofilho@642: dnl POSIX.2 word splitting is done only on the output of word expansions, renatofilho@642: dnl not every word. This closes a longstanding sh security hole. renatofilho@642: ac_dummy="ifelse([$2], , $PATH, [$2])" renatofilho@642: for ac_dir in $ac_dummy; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: test -z "$ac_dir" && ac_dir=. renatofilho@642: if test -f $ac_dir/$1; then renatofilho@642: lt_cv_path_MAGIC_CMD="$ac_dir/$1" renatofilho@642: if test -n "$file_magic_test_file"; then renatofilho@642: case $deplibs_check_method in renatofilho@642: "file_magic "*) renatofilho@642: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` renatofilho@642: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" renatofilho@642: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | renatofilho@642: $EGREP "$file_magic_regex" > /dev/null; then renatofilho@642: : renatofilho@642: else renatofilho@642: cat <&2 renatofilho@642: renatofilho@642: *** Warning: the command libtool uses to detect shared libraries, renatofilho@642: *** $file_magic_cmd, produces output that libtool cannot recognize. renatofilho@642: *** The result is that libtool may fail to recognize shared libraries renatofilho@642: *** as such. This will affect the creation of libtool libraries that renatofilho@642: *** depend on shared libraries, but programs linked with such libtool renatofilho@642: *** libraries will work regardless of this problem. Nevertheless, you renatofilho@642: *** may want to report the problem to your system manager and/or to renatofilho@642: *** bug-libtool@gnu.org renatofilho@642: renatofilho@642: EOF renatofilho@642: fi ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: break renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: MAGIC_CMD="$lt_save_MAGIC_CMD" renatofilho@642: ;; renatofilho@642: esac]) renatofilho@642: MAGIC_CMD="$lt_cv_path_MAGIC_CMD" renatofilho@642: if test -n "$MAGIC_CMD"; then renatofilho@642: AC_MSG_RESULT($MAGIC_CMD) renatofilho@642: else renatofilho@642: AC_MSG_RESULT(no) renatofilho@642: fi renatofilho@642: ])# AC_PATH_TOOL_PREFIX renatofilho@642: renatofilho@642: renatofilho@642: # AC_PATH_MAGIC renatofilho@642: # ------------- renatofilho@642: # find a file program which can recognise a shared library renatofilho@642: AC_DEFUN([AC_PATH_MAGIC], renatofilho@642: [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) renatofilho@642: if test -z "$lt_cv_path_MAGIC_CMD"; then renatofilho@642: if test -n "$ac_tool_prefix"; then renatofilho@642: AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) renatofilho@642: else renatofilho@642: MAGIC_CMD=: renatofilho@642: fi renatofilho@642: fi renatofilho@642: ])# AC_PATH_MAGIC renatofilho@642: renatofilho@642: renatofilho@642: # AC_PROG_LD renatofilho@642: # ---------- renatofilho@642: # find the pathname to the GNU or non-GNU linker renatofilho@642: AC_DEFUN([AC_PROG_LD], renatofilho@642: [AC_ARG_WITH([gnu-ld], renatofilho@642: [AC_HELP_STRING([--with-gnu-ld], renatofilho@642: [assume the C compiler uses GNU ld @<:@default=no@:>@])], renatofilho@642: [test "$withval" = no || with_gnu_ld=yes], renatofilho@642: [with_gnu_ld=no]) renatofilho@642: AC_REQUIRE([LT_AC_PROG_SED])dnl renatofilho@642: AC_REQUIRE([AC_PROG_CC])dnl renatofilho@642: AC_REQUIRE([AC_CANONICAL_HOST])dnl renatofilho@642: AC_REQUIRE([AC_CANONICAL_BUILD])dnl renatofilho@642: ac_prog=ld renatofilho@642: if test "$GCC" = yes; then renatofilho@642: # Check if gcc -print-prog-name=ld gives a path. renatofilho@642: AC_MSG_CHECKING([for ld used by $CC]) renatofilho@642: case $host in renatofilho@642: *-*-mingw*) renatofilho@642: # gcc leaves a trailing carriage return which upsets mingw renatofilho@642: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; renatofilho@642: *) renatofilho@642: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; renatofilho@642: esac renatofilho@642: case $ac_prog in renatofilho@642: # Accept absolute paths. renatofilho@642: [[\\/]]* | ?:[[\\/]]*) renatofilho@642: re_direlt='/[[^/]][[^/]]*/\.\./' renatofilho@642: # Canonicalize the pathname of ld renatofilho@642: ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` renatofilho@642: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do renatofilho@642: ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` renatofilho@642: done renatofilho@642: test -z "$LD" && LD="$ac_prog" renatofilho@642: ;; renatofilho@642: "") renatofilho@642: # If it fails, then pretend we aren't using GCC. renatofilho@642: ac_prog=ld renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # If it is relative, then search for the first ld in PATH. renatofilho@642: with_gnu_ld=unknown renatofilho@642: ;; renatofilho@642: esac renatofilho@642: elif test "$with_gnu_ld" = yes; then renatofilho@642: AC_MSG_CHECKING([for GNU ld]) renatofilho@642: else renatofilho@642: AC_MSG_CHECKING([for non-GNU ld]) renatofilho@642: fi renatofilho@642: AC_CACHE_VAL(lt_cv_path_LD, renatofilho@642: [if test -z "$LD"; then renatofilho@642: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR renatofilho@642: for ac_dir in $PATH; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: test -z "$ac_dir" && ac_dir=. renatofilho@642: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then renatofilho@642: lt_cv_path_LD="$ac_dir/$ac_prog" renatofilho@642: # Check to see if the program is GNU ld. I'd rather use --version, renatofilho@642: # but apparently some variants of GNU ld only accept -v. renatofilho@642: # Break only if it was the GNU/non-GNU ld that we prefer. renatofilho@642: case `"$lt_cv_path_LD" -v 2>&1 &1 /dev/null; then renatofilho@642: case $host_cpu in renatofilho@642: i*86 ) renatofilho@642: # Not sure whether the presence of OpenBSD here was a mistake. renatofilho@642: # Let's accept both of them until this is cleared up. renatofilho@642: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' renatofilho@642: lt_cv_file_magic_cmd=/usr/bin/file renatofilho@642: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: gnu*) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux10.20* | hpux11*) renatofilho@642: lt_cv_file_magic_cmd=/usr/bin/file renatofilho@642: case $host_cpu in renatofilho@642: ia64*) renatofilho@642: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' renatofilho@642: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so renatofilho@642: ;; renatofilho@642: hppa*64*) renatofilho@642: [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]'] renatofilho@642: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl renatofilho@642: ;; renatofilho@642: *) renatofilho@642: lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' renatofilho@642: lt_cv_file_magic_test_file=/usr/lib/libc.sl renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: interix3*) renatofilho@642: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here renatofilho@642: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' renatofilho@642: ;; renatofilho@642: renatofilho@642: irix5* | irix6* | nonstopux*) renatofilho@642: case $LD in renatofilho@642: *-32|*"-32 ") libmagic=32-bit;; renatofilho@642: *-n32|*"-n32 ") libmagic=N32;; renatofilho@642: *-64|*"-64 ") libmagic=64-bit;; renatofilho@642: *) libmagic=never-match;; renatofilho@642: esac renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: renatofilho@642: # This must be Linux ELF. renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsd* | netbsdelf*-gnu) renatofilho@642: if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then renatofilho@642: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' renatofilho@642: else renatofilho@642: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: newos6*) renatofilho@642: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' renatofilho@642: lt_cv_file_magic_cmd=/usr/bin/file renatofilho@642: lt_cv_file_magic_test_file=/usr/lib/libnls.so renatofilho@642: ;; renatofilho@642: renatofilho@642: nto-qnx*) renatofilho@642: lt_cv_deplibs_check_method=unknown renatofilho@642: ;; renatofilho@642: renatofilho@642: openbsd*) renatofilho@642: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then renatofilho@642: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' renatofilho@642: else renatofilho@642: lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: osf3* | osf4* | osf5*) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: renatofilho@642: solaris*) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4 | sysv4.3*) renatofilho@642: case $host_vendor in renatofilho@642: motorola) renatofilho@642: 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]]' renatofilho@642: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` renatofilho@642: ;; renatofilho@642: ncr) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: sequent) renatofilho@642: lt_cv_file_magic_cmd='/bin/file' renatofilho@642: lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' renatofilho@642: ;; renatofilho@642: sni) renatofilho@642: lt_cv_file_magic_cmd='/bin/file' renatofilho@642: lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" renatofilho@642: lt_cv_file_magic_test_file=/lib/libc.so renatofilho@642: ;; renatofilho@642: siemens) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: pc) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) renatofilho@642: lt_cv_deplibs_check_method=pass_all renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ]) renatofilho@642: file_magic_cmd=$lt_cv_file_magic_cmd renatofilho@642: deplibs_check_method=$lt_cv_deplibs_check_method renatofilho@642: test -z "$deplibs_check_method" && deplibs_check_method=unknown renatofilho@642: ])# AC_DEPLIBS_CHECK_METHOD renatofilho@642: renatofilho@642: renatofilho@642: # AC_PROG_NM renatofilho@642: # ---------- renatofilho@642: # find the pathname to a BSD-compatible name lister renatofilho@642: AC_DEFUN([AC_PROG_NM], renatofilho@642: [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, renatofilho@642: [if test -n "$NM"; then renatofilho@642: # Let the user override the test. renatofilho@642: lt_cv_path_NM="$NM" renatofilho@642: else renatofilho@642: lt_nm_to_check="${ac_tool_prefix}nm" renatofilho@642: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then renatofilho@642: lt_nm_to_check="$lt_nm_to_check nm" renatofilho@642: fi renatofilho@642: for lt_tmp_nm in $lt_nm_to_check; do renatofilho@642: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR renatofilho@642: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: test -z "$ac_dir" && ac_dir=. renatofilho@642: tmp_nm="$ac_dir/$lt_tmp_nm" renatofilho@642: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then renatofilho@642: # Check to see if the nm accepts a BSD-compat flag. renatofilho@642: # Adding the `sed 1q' prevents false positives on HP-UX, which says: renatofilho@642: # nm: unknown option "B" ignored renatofilho@642: # Tru64's nm complains that /dev/null is an invalid object file renatofilho@642: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in renatofilho@642: */dev/null* | *'Invalid file or object type'*) renatofilho@642: lt_cv_path_NM="$tmp_nm -B" renatofilho@642: break renatofilho@642: ;; renatofilho@642: *) renatofilho@642: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in renatofilho@642: */dev/null*) renatofilho@642: lt_cv_path_NM="$tmp_nm -p" renatofilho@642: break renatofilho@642: ;; renatofilho@642: *) renatofilho@642: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but renatofilho@642: continue # so that we can try to find one that supports BSD flags renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: done renatofilho@642: IFS="$lt_save_ifs" renatofilho@642: done renatofilho@642: test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm renatofilho@642: fi]) renatofilho@642: NM="$lt_cv_path_NM" renatofilho@642: ])# AC_PROG_NM renatofilho@642: renatofilho@642: renatofilho@642: # AC_CHECK_LIBM renatofilho@642: # ------------- renatofilho@642: # check for math library renatofilho@642: AC_DEFUN([AC_CHECK_LIBM], renatofilho@642: [AC_REQUIRE([AC_CANONICAL_HOST])dnl renatofilho@642: LIBM= renatofilho@642: case $host in renatofilho@642: *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) renatofilho@642: # These system don't have libm, or don't need it renatofilho@642: ;; renatofilho@642: *-ncr-sysv4.3*) renatofilho@642: AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") renatofilho@642: AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") renatofilho@642: ;; renatofilho@642: *) renatofilho@642: AC_CHECK_LIB(m, cos, LIBM="-lm") renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ])# AC_CHECK_LIBM renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) renatofilho@642: # ----------------------------------- renatofilho@642: # sets LIBLTDL to the link flags for the libltdl convenience library and renatofilho@642: # LTDLINCL to the include flags for the libltdl header and adds renatofilho@642: # --enable-ltdl-convenience to the configure arguments. Note that renatofilho@642: # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, renatofilho@642: # it is assumed to be `libltdl'. LIBLTDL will be prefixed with renatofilho@642: # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' renatofilho@642: # (note the single quotes!). If your package is not flat and you're not renatofilho@642: # using automake, define top_builddir and top_srcdir appropriately in renatofilho@642: # the Makefiles. renatofilho@642: AC_DEFUN([AC_LIBLTDL_CONVENIENCE], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: case $enable_ltdl_convenience in renatofilho@642: no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; renatofilho@642: "") enable_ltdl_convenience=yes renatofilho@642: ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; renatofilho@642: esac renatofilho@642: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la renatofilho@642: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) renatofilho@642: # For backwards non-gettext consistent compatibility... renatofilho@642: INCLTDL="$LTDLINCL" renatofilho@642: ])# AC_LIBLTDL_CONVENIENCE renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) renatofilho@642: # ----------------------------------- renatofilho@642: # sets LIBLTDL to the link flags for the libltdl installable library and renatofilho@642: # LTDLINCL to the include flags for the libltdl header and adds renatofilho@642: # --enable-ltdl-install to the configure arguments. Note that renatofilho@642: # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, renatofilho@642: # and an installed libltdl is not found, it is assumed to be `libltdl'. renatofilho@642: # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with renatofilho@642: # '${top_srcdir}/' (note the single quotes!). If your package is not renatofilho@642: # flat and you're not using automake, define top_builddir and top_srcdir renatofilho@642: # appropriately in the Makefiles. renatofilho@642: # In the future, this macro may have to be called after AC_PROG_LIBTOOL. renatofilho@642: AC_DEFUN([AC_LIBLTDL_INSTALLABLE], renatofilho@642: [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl renatofilho@642: AC_CHECK_LIB(ltdl, lt_dlinit, renatofilho@642: [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], renatofilho@642: [if test x"$enable_ltdl_install" = xno; then renatofilho@642: AC_MSG_WARN([libltdl not installed, but installation disabled]) renatofilho@642: else renatofilho@642: enable_ltdl_install=yes renatofilho@642: fi renatofilho@642: ]) renatofilho@642: if test x"$enable_ltdl_install" = x"yes"; then renatofilho@642: ac_configure_args="$ac_configure_args --enable-ltdl-install" renatofilho@642: LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la renatofilho@642: LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) renatofilho@642: else renatofilho@642: ac_configure_args="$ac_configure_args --enable-ltdl-install=no" renatofilho@642: LIBLTDL="-lltdl" renatofilho@642: LTDLINCL= renatofilho@642: fi renatofilho@642: # For backwards non-gettext consistent compatibility... renatofilho@642: INCLTDL="$LTDLINCL" renatofilho@642: ])# AC_LIBLTDL_INSTALLABLE renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_CXX renatofilho@642: # -------------- renatofilho@642: # enable support for C++ libraries renatofilho@642: AC_DEFUN([AC_LIBTOOL_CXX], renatofilho@642: [AC_REQUIRE([_LT_AC_LANG_CXX]) renatofilho@642: ])# AC_LIBTOOL_CXX renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_LANG_CXX renatofilho@642: # --------------- renatofilho@642: AC_DEFUN([_LT_AC_LANG_CXX], renatofilho@642: [AC_REQUIRE([AC_PROG_CXX]) renatofilho@642: AC_REQUIRE([_LT_AC_PROG_CXXCPP]) renatofilho@642: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) renatofilho@642: ])# _LT_AC_LANG_CXX renatofilho@642: renatofilho@642: # _LT_AC_PROG_CXXCPP renatofilho@642: # ------------------ renatofilho@642: AC_DEFUN([_LT_AC_PROG_CXXCPP], renatofilho@642: [ renatofilho@642: AC_REQUIRE([AC_PROG_CXX]) renatofilho@642: if test -n "$CXX" && ( test "X$CXX" != "Xno" && renatofilho@642: ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || renatofilho@642: (test "X$CXX" != "Xg++"))) ; then renatofilho@642: AC_PROG_CXXCPP renatofilho@642: fi renatofilho@642: ])# _LT_AC_PROG_CXXCPP renatofilho@642: renatofilho@642: # AC_LIBTOOL_F77 renatofilho@642: # -------------- renatofilho@642: # enable support for Fortran 77 libraries renatofilho@642: AC_DEFUN([AC_LIBTOOL_F77], renatofilho@642: [AC_REQUIRE([_LT_AC_LANG_F77]) renatofilho@642: ])# AC_LIBTOOL_F77 renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_LANG_F77 renatofilho@642: # --------------- renatofilho@642: AC_DEFUN([_LT_AC_LANG_F77], renatofilho@642: [AC_REQUIRE([AC_PROG_F77]) renatofilho@642: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) renatofilho@642: ])# _LT_AC_LANG_F77 renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_GCJ renatofilho@642: # -------------- renatofilho@642: # enable support for GCJ libraries renatofilho@642: AC_DEFUN([AC_LIBTOOL_GCJ], renatofilho@642: [AC_REQUIRE([_LT_AC_LANG_GCJ]) renatofilho@642: ])# AC_LIBTOOL_GCJ renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_LANG_GCJ renatofilho@642: # --------------- renatofilho@642: AC_DEFUN([_LT_AC_LANG_GCJ], renatofilho@642: [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], renatofilho@642: [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], renatofilho@642: [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], renatofilho@642: [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], renatofilho@642: [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], renatofilho@642: [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) renatofilho@642: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) renatofilho@642: ])# _LT_AC_LANG_GCJ renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_RC renatofilho@642: # ------------- renatofilho@642: # enable support for Windows resource files renatofilho@642: AC_DEFUN([AC_LIBTOOL_RC], renatofilho@642: [AC_REQUIRE([LT_AC_PROG_RC]) renatofilho@642: _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) renatofilho@642: ])# AC_LIBTOOL_RC renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_LANG_C_CONFIG renatofilho@642: # ------------------------ renatofilho@642: # Ensure that the configuration vars for the C compiler are renatofilho@642: # suitably defined. Those variables are subsequently used by renatofilho@642: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. renatofilho@642: AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) renatofilho@642: AC_DEFUN([_LT_AC_LANG_C_CONFIG], renatofilho@642: [lt_save_CC="$CC" renatofilho@642: AC_LANG_PUSH(C) renatofilho@642: renatofilho@642: # Source file extension for C test sources. renatofilho@642: ac_ext=c renatofilho@642: renatofilho@642: # Object file extension for compiled C test sources. renatofilho@642: objext=o renatofilho@642: _LT_AC_TAGVAR(objext, $1)=$objext renatofilho@642: renatofilho@642: # Code to be used in simple compile tests renatofilho@642: lt_simple_compile_test_code="int some_variable = 0;\n" renatofilho@642: renatofilho@642: # Code to be used in simple link tests renatofilho@642: lt_simple_link_test_code='int main(){return(0);}\n' renatofilho@642: renatofilho@642: _LT_AC_SYS_COMPILER renatofilho@642: renatofilho@642: # save warnings/boilerplate of simple test code renatofilho@642: _LT_COMPILER_BOILERPLATE renatofilho@642: _LT_LINKER_BOILERPLATE renatofilho@642: renatofilho@642: ## CAVEAT EMPTOR: renatofilho@642: ## There is no encapsulation within the following macros, do not change renatofilho@642: ## the running order or otherwise move them around unless you know exactly renatofilho@642: ## what you are doing... renatofilho@642: AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) renatofilho@642: AC_LIBTOOL_PROG_COMPILER_PIC($1) renatofilho@642: AC_LIBTOOL_PROG_CC_C_O($1) renatofilho@642: AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) renatofilho@642: AC_LIBTOOL_PROG_LD_SHLIBS($1) renatofilho@642: AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) renatofilho@642: AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) renatofilho@642: AC_LIBTOOL_SYS_LIB_STRIP renatofilho@642: AC_LIBTOOL_DLOPEN_SELF renatofilho@642: renatofilho@642: # Report which library types will actually be built renatofilho@642: AC_MSG_CHECKING([if libtool supports shared libraries]) renatofilho@642: AC_MSG_RESULT([$can_build_shared]) renatofilho@642: renatofilho@642: AC_MSG_CHECKING([whether to build shared libraries]) renatofilho@642: test "$can_build_shared" = "no" && enable_shared=no renatofilho@642: renatofilho@642: # On AIX, shared libraries and static libraries use the same namespace, and renatofilho@642: # are all built from PIC. renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: test "$enable_shared" = yes && enable_static=no renatofilho@642: if test -n "$RANLIB"; then renatofilho@642: archive_cmds="$archive_cmds~\$RANLIB \$lib" renatofilho@642: postinstall_cmds='$RANLIB $lib' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: aix4* | aix5*) renatofilho@642: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then renatofilho@642: test "$enable_shared" = yes && enable_static=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: AC_MSG_RESULT([$enable_shared]) renatofilho@642: renatofilho@642: AC_MSG_CHECKING([whether to build static libraries]) renatofilho@642: # Make sure either enable_shared or enable_static is yes. renatofilho@642: test "$enable_shared" = yes || enable_static=yes renatofilho@642: AC_MSG_RESULT([$enable_static]) renatofilho@642: renatofilho@642: AC_LIBTOOL_CONFIG($1) renatofilho@642: renatofilho@642: AC_LANG_POP renatofilho@642: CC="$lt_save_CC" renatofilho@642: ])# AC_LIBTOOL_LANG_C_CONFIG renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_LANG_CXX_CONFIG renatofilho@642: # -------------------------- renatofilho@642: # Ensure that the configuration vars for the C compiler are renatofilho@642: # suitably defined. Those variables are subsequently used by renatofilho@642: # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. renatofilho@642: AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) renatofilho@642: AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], renatofilho@642: [AC_LANG_PUSH(C++) renatofilho@642: AC_REQUIRE([AC_PROG_CXX]) renatofilho@642: AC_REQUIRE([_LT_AC_PROG_CXXCPP]) renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)= renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=no renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(hardcode_automatic, $1)=no renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(module_expsym_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)= renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no renatofilho@642: renatofilho@642: # Dependencies to place before and after the object being linked: renatofilho@642: _LT_AC_TAGVAR(predep_objects, $1)= renatofilho@642: _LT_AC_TAGVAR(postdep_objects, $1)= renatofilho@642: _LT_AC_TAGVAR(predeps, $1)= renatofilho@642: _LT_AC_TAGVAR(postdeps, $1)= renatofilho@642: _LT_AC_TAGVAR(compiler_lib_search_path, $1)= renatofilho@642: renatofilho@642: # Source file extension for C++ test sources. renatofilho@642: ac_ext=cpp renatofilho@642: renatofilho@642: # Object file extension for compiled C++ test sources. renatofilho@642: objext=o renatofilho@642: _LT_AC_TAGVAR(objext, $1)=$objext renatofilho@642: renatofilho@642: # Code to be used in simple compile tests renatofilho@642: lt_simple_compile_test_code="int some_variable = 0;\n" renatofilho@642: renatofilho@642: # Code to be used in simple link tests renatofilho@642: lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' renatofilho@642: renatofilho@642: # ltmain only uses $CC for tagged configurations so make sure $CC is set. renatofilho@642: _LT_AC_SYS_COMPILER renatofilho@642: renatofilho@642: # save warnings/boilerplate of simple test code renatofilho@642: _LT_COMPILER_BOILERPLATE renatofilho@642: _LT_LINKER_BOILERPLATE renatofilho@642: renatofilho@642: # Allow CC to be a program name with arguments. renatofilho@642: lt_save_CC=$CC renatofilho@642: lt_save_LD=$LD renatofilho@642: lt_save_GCC=$GCC renatofilho@642: GCC=$GXX renatofilho@642: lt_save_with_gnu_ld=$with_gnu_ld renatofilho@642: lt_save_path_LD=$lt_cv_path_LD renatofilho@642: if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then renatofilho@642: lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx renatofilho@642: else renatofilho@642: $as_unset lt_cv_prog_gnu_ld renatofilho@642: fi renatofilho@642: if test -n "${lt_cv_path_LDCXX+set}"; then renatofilho@642: lt_cv_path_LD=$lt_cv_path_LDCXX renatofilho@642: else renatofilho@642: $as_unset lt_cv_path_LD renatofilho@642: fi renatofilho@642: test -z "${LDCXX+set}" || LD=$LDCXX renatofilho@642: CC=${CXX-"c++"} renatofilho@642: compiler=$CC renatofilho@642: _LT_AC_TAGVAR(compiler, $1)=$CC renatofilho@642: _LT_CC_BASENAME([$compiler]) renatofilho@642: renatofilho@642: # We don't want -fno-exception wen compiling C++ code, so set the renatofilho@642: # no_builtin_flag separately renatofilho@642: if test "$GXX" = yes; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= renatofilho@642: fi renatofilho@642: renatofilho@642: if test "$GXX" = yes; then renatofilho@642: # Set up default GNU C++ configuration renatofilho@642: renatofilho@642: AC_PROG_LD renatofilho@642: renatofilho@642: # Check if GNU C++ uses GNU ld as the underlying linker, since the renatofilho@642: # archiving commands below assume that GNU ld is being used. renatofilho@642: if test "$with_gnu_ld" = yes; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' renatofilho@642: renatofilho@642: # If archive_cmds runs LD, not CC, wlarc should be empty renatofilho@642: # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to renatofilho@642: # investigate it a little bit more. (MM) renatofilho@642: wlarc='${wl}' renatofilho@642: renatofilho@642: # ancient GNU ld didn't support --whole-archive et. al. renatofilho@642: if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ renatofilho@642: grep 'no-whole-archive' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= renatofilho@642: fi renatofilho@642: else renatofilho@642: with_gnu_ld=no renatofilho@642: wlarc= renatofilho@642: renatofilho@642: # A generic and very simple default shared library creation renatofilho@642: # command for GNU C++ for the case where it uses the native renatofilho@642: # linker, instead of GNU ld. If possible, this setting should renatofilho@642: # overridden to take advantage of the native linker features on renatofilho@642: # the platform it is being used on. renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' renatofilho@642: fi renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' renatofilho@642: renatofilho@642: else renatofilho@642: GXX=no renatofilho@642: with_gnu_ld=no renatofilho@642: wlarc= renatofilho@642: fi renatofilho@642: renatofilho@642: # PORTME: fill in a description of your system's C++ link characteristics renatofilho@642: AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=yes renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: aix4* | aix5*) renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # On IA64, the linker does run time linking by default, so we don't renatofilho@642: # have to do anything special. renatofilho@642: aix_use_runtimelinking=no renatofilho@642: exp_sym_flag='-Bexport' renatofilho@642: no_entry_flag="" renatofilho@642: else renatofilho@642: aix_use_runtimelinking=no renatofilho@642: renatofilho@642: # Test if we are trying to use run time linking or normal renatofilho@642: # AIX style linking. If -brtl is somewhere in LDFLAGS, we renatofilho@642: # need to do runtime linking. renatofilho@642: case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) renatofilho@642: for ld_flag in $LDFLAGS; do renatofilho@642: case $ld_flag in renatofilho@642: *-brtl*) renatofilho@642: aix_use_runtimelinking=yes renatofilho@642: break renatofilho@642: ;; renatofilho@642: esac renatofilho@642: done renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: exp_sym_flag='-bexport' renatofilho@642: no_entry_flag='-bnoentry' renatofilho@642: fi renatofilho@642: renatofilho@642: # When large executables or shared objects are built, AIX ld can renatofilho@642: # have problems creating the table of contents. If linking a library renatofilho@642: # or program results in "error TOC overflow" add -mminimal-toc to renatofilho@642: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not renatofilho@642: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: renatofilho@642: if test "$GXX" = yes; then renatofilho@642: case $host_os in aix4.[[012]]|aix4.[[012]].*) renatofilho@642: # We only want to do this on AIX 4.2 and lower, the check renatofilho@642: # below for broken collect2 doesn't work under 4.3+ renatofilho@642: collect2name=`${CC} -print-prog-name=collect2` renatofilho@642: if test -f "$collect2name" && \ renatofilho@642: strings "$collect2name" | grep resolve_lib_name >/dev/null renatofilho@642: then renatofilho@642: # We have reworked collect2 renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: else renatofilho@642: # We have old collect2 renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported renatofilho@642: # It fails to find uninstalled libraries when the uninstalled renatofilho@642: # path is not listed in the libpath. Setting hardcode_minus_L renatofilho@642: # to unsupported forces relinking renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: shared_flag='-shared' renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: shared_flag="$shared_flag "'${wl}-G' renatofilho@642: fi renatofilho@642: else renatofilho@642: # not using gcc renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release renatofilho@642: # chokes on -Wl,-G. The following line is correct: renatofilho@642: shared_flag='-G' renatofilho@642: else renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: shared_flag='${wl}-G' renatofilho@642: else renatofilho@642: shared_flag='${wl}-bM:SRE' renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: renatofilho@642: # It seems that -bexpall does not export symbols beginning with renatofilho@642: # underscore (_), so it is better to generate a list of symbols to export. renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=yes renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: # Warning - without using the other runtime loading flags (-brtl), renatofilho@642: # -berok will link without error, but may produce a broken library. renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' renatofilho@642: # Determine the default libpath from the value encoded in an empty executable. renatofilho@642: _LT_AC_SYS_LIBPATH_AIX renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" renatofilho@642: renatofilho@642: _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" renatofilho@642: else renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" renatofilho@642: _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" renatofilho@642: else renatofilho@642: # Determine the default libpath from the value encoded in an empty executable. renatofilho@642: _LT_AC_SYS_LIBPATH_AIX renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" renatofilho@642: # Warning - without using the other run time loading flags, renatofilho@642: # -berok will link without error, but may produce a broken library. renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' renatofilho@642: # Exported symbols can be pulled into shared objects from archives renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes renatofilho@642: # This is similar to how AIX traditionally builds its shared libraries. renatofilho@642: _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' renatofilho@642: fi renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: beos*) renatofilho@642: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: # Joseph Beckenbach says some releases of gcc renatofilho@642: # support --undefined. This deserves some investigation. FIXME renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: chorus*) renatofilho@642: case $cc_basename in renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, renatofilho@642: # as there is no search path for DLLs. renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=no renatofilho@642: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes renatofilho@642: renatofilho@642: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then renatofilho@642: _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' renatofilho@642: # If the export-symbols file already is a .def file (1st line renatofilho@642: # is EXPORTS), use it as is; otherwise, prepend... renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then renatofilho@642: cp $export_symbols $output_objdir/$soname.def; renatofilho@642: else renatofilho@642: echo EXPORTS > $output_objdir/$soname.def; renatofilho@642: cat $export_symbols >> $output_objdir/$soname.def; renatofilho@642: fi~ renatofilho@642: $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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: darwin* | rhapsody*) renatofilho@642: case $host_os in renatofilho@642: rhapsody* | darwin1.[[012]]) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' renatofilho@642: ;; renatofilho@642: *) # Darwin 1.3 on renatofilho@642: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' renatofilho@642: else renatofilho@642: case ${MACOSX_DEPLOYMENT_TARGET} in renatofilho@642: 10.[[012]]) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' renatofilho@642: ;; renatofilho@642: 10.*) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_automatic, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: renatofilho@642: if test "$GXX" = yes ; then renatofilho@642: lt_int_apple_cc_single_mod=no renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then renatofilho@642: lt_int_apple_cc_single_mod=yes renatofilho@642: fi renatofilho@642: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' renatofilho@642: else renatofilho@642: _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' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' renatofilho@642: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds renatofilho@642: if test "X$lt_int_apple_cc_single_mod" = Xyes ; then renatofilho@642: _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}' renatofilho@642: else renatofilho@642: _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}' renatofilho@642: fi renatofilho@642: _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}' renatofilho@642: else renatofilho@642: case $cc_basename in renatofilho@642: xlc*) renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' renatofilho@642: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds renatofilho@642: _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}' renatofilho@642: _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}' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: dgux*) renatofilho@642: case $cc_basename in renatofilho@642: ec++*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: ghcx*) renatofilho@642: # Green Hills C++ Compiler renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: freebsd[[12]]*) renatofilho@642: # C++ shared libraries reported to be fairly broken before switch to ELF renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: freebsd-elf*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: ;; renatofilho@642: freebsd* | dragonfly*) renatofilho@642: # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF renatofilho@642: # conventions renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=yes renatofilho@642: ;; renatofilho@642: gnu*) renatofilho@642: ;; renatofilho@642: hpux9*) renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, renatofilho@642: # but as the default renatofilho@642: # location of the library. renatofilho@642: renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: aCC*) renatofilho@642: _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' renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if test "$GXX" = yes; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: hpux10*|hpux11*) renatofilho@642: if test $with_gnu_ld = no; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, renatofilho@642: # but as the default renatofilho@642: # location of the library. renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: aCC*) renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' renatofilho@642: ;; renatofilho@642: ia64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if test "$GXX" = yes; then renatofilho@642: if test $with_gnu_ld = no; then renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' renatofilho@642: ;; renatofilho@642: ia64*) renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: else renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: interix3*) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. renatofilho@642: # Instead, shared libraries are loaded at an image base (0x10000000 by renatofilho@642: # default) and relocated if they conflict, which is a slow very memory renatofilho@642: # consuming and fragmenting process. To avoid this, we pick a random, renatofilho@642: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link renatofilho@642: # time. Moving up from 0x10000000 also allows more sbrk(2) space. renatofilho@642: _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' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: irix5* | irix6*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # SGI C++ renatofilho@642: _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' renatofilho@642: renatofilho@642: # Archives containing C++ object files must be created using renatofilho@642: # "CC -ar", where "CC" is the IRIX C++ compiler. This is renatofilho@642: # necessary to make sure instantiated templates are included renatofilho@642: # in the archive. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if test "$GXX" = yes; then renatofilho@642: if test "$with_gnu_ld" = no; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: _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' renatofilho@642: fi renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: ;; renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: case $cc_basename in renatofilho@642: KCC*) renatofilho@642: # Kuck and Associates, Inc. (KAI) C++ Compiler renatofilho@642: renatofilho@642: # KCC will only create a shared library if the output file renatofilho@642: # ends with ".so" (or ".sl" for HP-UX), so rename the library renatofilho@642: # to its proper name (with version) after linking. renatofilho@642: _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' renatofilho@642: _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' renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' renatofilho@642: renatofilho@642: # Archives containing C++ object files must be created using renatofilho@642: # "CC -Bstatic", where "CC" is the KAI C++ compiler. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' renatofilho@642: ;; renatofilho@642: icpc*) renatofilho@642: # Intel C++ renatofilho@642: with_gnu_ld=yes renatofilho@642: # version 8.0 and above of icpc choke on multiply defined symbols renatofilho@642: # if we add $predep_objects and $postdep_objects, however 7.1 and renatofilho@642: # earlier do not add the objects themselves. renatofilho@642: case `$CC -V 2>&1` in renatofilho@642: *"Version 7."*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: *) # Version 8.0 or newer renatofilho@642: tmp_idyn= renatofilho@642: case $host_cpu in renatofilho@642: ia64*) tmp_idyn=' -i_dynamic';; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' renatofilho@642: ;; renatofilho@642: pgCC*) renatofilho@642: # Portland Group C++ compiler renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: cxx*) renatofilho@642: # Compaq C++ renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: renatofilho@642: runpath_var=LD_RUN_PATH renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: lynxos*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: m88k*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: mvs*) renatofilho@642: case $cc_basename in renatofilho@642: cxx*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: netbsd* | netbsdelf*-gnu) renatofilho@642: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' renatofilho@642: wlarc= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: fi renatofilho@642: # Workaround some broken pre-1.5 toolchains renatofilho@642: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' renatofilho@642: ;; renatofilho@642: openbsd2*) renatofilho@642: # C++ shared libraries are fairly broken renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: openbsd*) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' renatofilho@642: fi renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: ;; renatofilho@642: osf3*) renatofilho@642: case $cc_basename in renatofilho@642: KCC*) renatofilho@642: # Kuck and Associates, Inc. (KAI) C++ Compiler renatofilho@642: renatofilho@642: # KCC will only create a shared library if the output file renatofilho@642: # ends with ".so" (or ".sl" for HP-UX), so rename the library renatofilho@642: # to its proper name (with version) after linking. renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Archives containing C++ object files must be created using renatofilho@642: # "CC -Bstatic", where "CC" is the KAI C++ compiler. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' renatofilho@642: renatofilho@642: ;; renatofilho@642: RCC*) renatofilho@642: # Rational C++ 2.4.1 renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: cxx*) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if test "$GXX" = yes && test "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' renatofilho@642: renatofilho@642: else renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: osf4* | osf5*) renatofilho@642: case $cc_basename in renatofilho@642: KCC*) renatofilho@642: # Kuck and Associates, Inc. (KAI) C++ Compiler renatofilho@642: renatofilho@642: # KCC will only create a shared library if the output file renatofilho@642: # ends with ".so" (or ".sl" for HP-UX), so rename the library renatofilho@642: # to its proper name (with version) after linking. renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Archives containing C++ object files must be created using renatofilho@642: # the KAI C++ compiler. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' renatofilho@642: ;; renatofilho@642: RCC*) renatofilho@642: # Rational C++ 2.4.1 renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: cxx*) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ renatofilho@642: echo "-hidden">> $lib.exp~ renatofilho@642: $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~ renatofilho@642: $rm $lib.exp' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: # renatofilho@642: # There doesn't appear to be a way to prevent this compiler from renatofilho@642: # explicitly linking system object files so we need to strip them renatofilho@642: # from the output so that they don't get included in the library renatofilho@642: # dependencies. renatofilho@642: 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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if test "$GXX" = yes && test "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' renatofilho@642: _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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' renatofilho@642: renatofilho@642: else renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: psos*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: sunos4*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # Sun C++ 4.x renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: lcc*) renatofilho@642: # Lucid renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: solaris*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # Sun C++ 4.2, 5.x and Centerline C++ renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ renatofilho@642: $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' renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: case $host_os in renatofilho@642: solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; renatofilho@642: *) renatofilho@642: # The C++ compiler is used as linker so we must use $wl renatofilho@642: # flag to pass the commands to the underlying system renatofilho@642: # linker. We must also pass each convience library through renatofilho@642: # to the system linker between allextract/defaultextract. renatofilho@642: # The C++ compiler will combine linker options so we renatofilho@642: # cannot just pass the convience library names through renatofilho@642: # without $wl. renatofilho@642: # Supported since Solaris 2.6 (maybe 2.5.1?) renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: renatofilho@642: # Archives containing C++ object files must be created using renatofilho@642: # "CC -xar", where "CC" is the Sun C++ compiler. This is renatofilho@642: # necessary to make sure instantiated templates are included renatofilho@642: # in the archive. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' renatofilho@642: ;; renatofilho@642: gcx*) renatofilho@642: # Green Hills C++ Compiler renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' renatofilho@642: renatofilho@642: # The C++ compiler must be used to create the archive. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # GNU C++ compiler with Solaris linker renatofilho@642: if test "$GXX" = yes && test "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' renatofilho@642: if $CC --version | grep -v '^2\.7' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ renatofilho@642: $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" renatofilho@642: else renatofilho@642: # g++ 2.7 appears to require `-G' NOT `-shared' on this renatofilho@642: # platform. renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ renatofilho@642: $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' renatofilho@642: renatofilho@642: # Commands to make compiler produce verbose output that lists renatofilho@642: # what "hidden" libraries, object files and flags are used when renatofilho@642: # linking a shared library. renatofilho@642: output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" renatofilho@642: fi renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: runpath_var='LD_RUN_PATH' renatofilho@642: renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: sysv5* | sco3.2v5* | sco5v6*) renatofilho@642: # Note: We can NOT use -z defs as we might desire, because we do not renatofilho@642: # link with -lc, and that would cause any symbols used from libc to renatofilho@642: # always be unresolved, which means just about no library would renatofilho@642: # ever link correctly. If we're not using GNU ld we use -z text renatofilho@642: # though, which does catch some bad symbols but isn't as heavy-handed renatofilho@642: # as -z defs. renatofilho@642: # For security reasons, it is highly recommended that you always renatofilho@642: # use absolute paths for naming shared libraries, and exclude the renatofilho@642: # DT_RUNPATH tag from executables and libraries. But doing so renatofilho@642: # requires that you compile everything twice, which is a pain. renatofilho@642: # So that behaviour is only enabled if SCOABSPATH is set to a renatofilho@642: # non-empty value in the environment. Most likely only useful for renatofilho@642: # creating official distributions of packages. renatofilho@642: # This is a hack until libtool officially supports absolute path renatofilho@642: # names for shared libraries. renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' renatofilho@642: runpath_var='LD_RUN_PATH' renatofilho@642: renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: tandem*) renatofilho@642: case $cc_basename in renatofilho@642: NCC*) renatofilho@642: # NonStop-UX NCC 3.20 renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: vxworks*) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: # FIXME: insert proper C++ library support renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) renatofilho@642: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(GCC, $1)="$GXX" renatofilho@642: _LT_AC_TAGVAR(LD, $1)="$LD" renatofilho@642: renatofilho@642: ## CAVEAT EMPTOR: renatofilho@642: ## There is no encapsulation within the following macros, do not change renatofilho@642: ## the running order or otherwise move them around unless you know exactly renatofilho@642: ## what you are doing... renatofilho@642: AC_LIBTOOL_POSTDEP_PREDEP($1) renatofilho@642: AC_LIBTOOL_PROG_COMPILER_PIC($1) renatofilho@642: AC_LIBTOOL_PROG_CC_C_O($1) renatofilho@642: AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) renatofilho@642: AC_LIBTOOL_PROG_LD_SHLIBS($1) renatofilho@642: AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) renatofilho@642: AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) renatofilho@642: renatofilho@642: AC_LIBTOOL_CONFIG($1) renatofilho@642: renatofilho@642: AC_LANG_POP renatofilho@642: CC=$lt_save_CC renatofilho@642: LDCXX=$LD renatofilho@642: LD=$lt_save_LD renatofilho@642: GCC=$lt_save_GCC renatofilho@642: with_gnu_ldcxx=$with_gnu_ld renatofilho@642: with_gnu_ld=$lt_save_with_gnu_ld renatofilho@642: lt_cv_path_LDCXX=$lt_cv_path_LD renatofilho@642: lt_cv_path_LD=$lt_save_path_LD renatofilho@642: lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld renatofilho@642: lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld renatofilho@642: ])# AC_LIBTOOL_LANG_CXX_CONFIG renatofilho@642: renatofilho@642: # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) renatofilho@642: # ------------------------------------ renatofilho@642: # Figure out "hidden" library dependencies from verbose renatofilho@642: # compiler output when linking a shared library. renatofilho@642: # Parse the compiler output and extract the necessary renatofilho@642: # objects, libraries and library flags. renatofilho@642: AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ renatofilho@642: dnl we can't use the lt_simple_compile_test_code here, renatofilho@642: dnl because it contains code intended for an executable, renatofilho@642: dnl not a library. It's possible we should let each renatofilho@642: dnl tag define a new lt_????_link_test_code variable, renatofilho@642: dnl but it's only used here... renatofilho@642: ifelse([$1],[],[cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <> "$cfgfile" renatofilho@642: ifelse([$1], [], renatofilho@642: [#! $SHELL renatofilho@642: renatofilho@642: # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. renatofilho@642: # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) renatofilho@642: # NOTE: Changes made to this file will be lost: look at ltmain.sh. renatofilho@642: # renatofilho@642: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 renatofilho@642: # Free Software Foundation, Inc. renatofilho@642: # renatofilho@642: # This file is part of GNU Libtool: renatofilho@642: # Originally by Gordon Matzigkeit , 1996 renatofilho@642: # renatofilho@642: # This program is free software; you can redistribute it and/or modify renatofilho@642: # it under the terms of the GNU General Public License as published by renatofilho@642: # the Free Software Foundation; either version 2 of the License, or renatofilho@642: # (at your option) any later version. renatofilho@642: # renatofilho@642: # This program is distributed in the hope that it will be useful, but renatofilho@642: # WITHOUT ANY WARRANTY; without even the implied warranty of renatofilho@642: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU renatofilho@642: # General Public License for more details. renatofilho@642: # renatofilho@642: # You should have received a copy of the GNU General Public License renatofilho@642: # along with this program; if not, write to the Free Software renatofilho@642: # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. renatofilho@642: # renatofilho@642: # As a special exception to the GNU General Public License, if you renatofilho@642: # distribute this file as part of a program that contains a renatofilho@642: # configuration script generated by Autoconf, you may include it under renatofilho@642: # the same distribution terms that you use for the rest of that program. renatofilho@642: renatofilho@642: # A sed program that does not truncate output. renatofilho@642: SED=$lt_SED renatofilho@642: renatofilho@642: # Sed that helps us avoid accidentally triggering echo(1) options like -n. renatofilho@642: Xsed="$SED -e 1s/^X//" renatofilho@642: renatofilho@642: # The HP-UX ksh and POSIX shell print the target directory to stdout renatofilho@642: # if CDPATH is set. renatofilho@642: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH renatofilho@642: renatofilho@642: # The names of the tagged configurations supported by this script. renatofilho@642: available_tags= renatofilho@642: renatofilho@642: # ### BEGIN LIBTOOL CONFIG], renatofilho@642: [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) renatofilho@642: renatofilho@642: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: renatofilho@642: renatofilho@642: # Shell to use when invoking shell scripts. renatofilho@642: SHELL=$lt_SHELL renatofilho@642: renatofilho@642: # Whether or not to build shared libraries. renatofilho@642: build_libtool_libs=$enable_shared renatofilho@642: renatofilho@642: # Whether or not to build static libraries. renatofilho@642: build_old_libs=$enable_static renatofilho@642: renatofilho@642: # Whether or not to add -lc for building shared libraries. renatofilho@642: build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) renatofilho@642: renatofilho@642: # Whether or not to disallow shared libs when runtime libs are static renatofilho@642: allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) renatofilho@642: renatofilho@642: # Whether or not to optimize for fast installation. renatofilho@642: fast_install=$enable_fast_install renatofilho@642: renatofilho@642: # The host system. renatofilho@642: host_alias=$host_alias renatofilho@642: host=$host renatofilho@642: host_os=$host_os renatofilho@642: renatofilho@642: # The build system. renatofilho@642: build_alias=$build_alias renatofilho@642: build=$build renatofilho@642: build_os=$build_os renatofilho@642: renatofilho@642: # An echo program that does not interpret backslashes. renatofilho@642: echo=$lt_echo renatofilho@642: renatofilho@642: # The archiver. renatofilho@642: AR=$lt_AR renatofilho@642: AR_FLAGS=$lt_AR_FLAGS renatofilho@642: renatofilho@642: # A C compiler. renatofilho@642: LTCC=$lt_LTCC renatofilho@642: renatofilho@642: # LTCC compiler flags. renatofilho@642: LTCFLAGS=$lt_LTCFLAGS renatofilho@642: renatofilho@642: # A language-specific compiler. renatofilho@642: CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) renatofilho@642: renatofilho@642: # Is the compiler the GNU C compiler? renatofilho@642: with_gcc=$_LT_AC_TAGVAR(GCC, $1) renatofilho@642: renatofilho@642: # An ERE matcher. renatofilho@642: EGREP=$lt_EGREP renatofilho@642: renatofilho@642: # The linker used to build libraries. renatofilho@642: LD=$lt_[]_LT_AC_TAGVAR(LD, $1) renatofilho@642: renatofilho@642: # Whether we need hard or soft links. renatofilho@642: LN_S=$lt_LN_S renatofilho@642: renatofilho@642: # A BSD-compatible nm program. renatofilho@642: NM=$lt_NM renatofilho@642: renatofilho@642: # A symbol stripping program renatofilho@642: STRIP=$lt_STRIP renatofilho@642: renatofilho@642: # Used to examine libraries when file_magic_cmd begins "file" renatofilho@642: MAGIC_CMD=$MAGIC_CMD renatofilho@642: renatofilho@642: # Used on cygwin: DLL creation program. renatofilho@642: DLLTOOL="$DLLTOOL" renatofilho@642: renatofilho@642: # Used on cygwin: object dumper. renatofilho@642: OBJDUMP="$OBJDUMP" renatofilho@642: renatofilho@642: # Used on cygwin: assembler. renatofilho@642: AS="$AS" renatofilho@642: renatofilho@642: # The name of the directory that contains temporary libtool files. renatofilho@642: objdir=$objdir renatofilho@642: renatofilho@642: # How to create reloadable object files. renatofilho@642: reload_flag=$lt_reload_flag renatofilho@642: reload_cmds=$lt_reload_cmds renatofilho@642: renatofilho@642: # How to pass a linker flag through the compiler. renatofilho@642: wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) renatofilho@642: renatofilho@642: # Object file suffix (normally "o"). renatofilho@642: objext="$ac_objext" renatofilho@642: renatofilho@642: # Old archive suffix (normally "a"). renatofilho@642: libext="$libext" renatofilho@642: renatofilho@642: # Shared library suffix (normally ".so"). renatofilho@642: shrext_cmds='$shrext_cmds' renatofilho@642: renatofilho@642: # Executable file suffix (normally ""). renatofilho@642: exeext="$exeext" renatofilho@642: renatofilho@642: # Additional compiler flags for building library objects. renatofilho@642: pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) renatofilho@642: pic_mode=$pic_mode renatofilho@642: renatofilho@642: # What is the maximum length of a command? renatofilho@642: max_cmd_len=$lt_cv_sys_max_cmd_len renatofilho@642: renatofilho@642: # Does compiler simultaneously support -c and -o options? renatofilho@642: compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) renatofilho@642: renatofilho@642: # Must we lock files when doing compilation? renatofilho@642: need_locks=$lt_need_locks renatofilho@642: renatofilho@642: # Do we need the lib prefix for modules? renatofilho@642: need_lib_prefix=$need_lib_prefix renatofilho@642: renatofilho@642: # Do we need a version for libraries? renatofilho@642: need_version=$need_version renatofilho@642: renatofilho@642: # Whether dlopen is supported. renatofilho@642: dlopen_support=$enable_dlopen renatofilho@642: renatofilho@642: # Whether dlopen of programs is supported. renatofilho@642: dlopen_self=$enable_dlopen_self renatofilho@642: renatofilho@642: # Whether dlopen of statically linked programs is supported. renatofilho@642: dlopen_self_static=$enable_dlopen_self_static renatofilho@642: renatofilho@642: # Compiler flag to prevent dynamic linking. renatofilho@642: link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) renatofilho@642: renatofilho@642: # Compiler flag to turn off builtin functions. renatofilho@642: no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) renatofilho@642: renatofilho@642: # Compiler flag to allow reflexive dlopens. renatofilho@642: export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) renatofilho@642: renatofilho@642: # Compiler flag to generate shared objects directly from archives. renatofilho@642: whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) renatofilho@642: renatofilho@642: # Compiler flag to generate thread-safe objects. renatofilho@642: thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) renatofilho@642: renatofilho@642: # Library versioning type. renatofilho@642: version_type=$version_type renatofilho@642: renatofilho@642: # Format of library name prefix. renatofilho@642: libname_spec=$lt_libname_spec renatofilho@642: renatofilho@642: # List of archive names. First name is the real one, the rest are links. renatofilho@642: # The last name is the one that the linker finds with -lNAME. renatofilho@642: library_names_spec=$lt_library_names_spec renatofilho@642: renatofilho@642: # The coded name of the library, if different from the real name. renatofilho@642: soname_spec=$lt_soname_spec renatofilho@642: renatofilho@642: # Commands used to build and install an old-style archive. renatofilho@642: RANLIB=$lt_RANLIB renatofilho@642: old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) renatofilho@642: old_postinstall_cmds=$lt_old_postinstall_cmds renatofilho@642: old_postuninstall_cmds=$lt_old_postuninstall_cmds renatofilho@642: renatofilho@642: # Create an old-style archive from a shared archive. renatofilho@642: old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) renatofilho@642: renatofilho@642: # Create a temporary old-style archive to link instead of a shared archive. renatofilho@642: old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) renatofilho@642: renatofilho@642: # Commands used to build and install a shared archive. renatofilho@642: archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) renatofilho@642: archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) renatofilho@642: postinstall_cmds=$lt_postinstall_cmds renatofilho@642: postuninstall_cmds=$lt_postuninstall_cmds renatofilho@642: renatofilho@642: # Commands used to build a loadable module (assumed same as above if empty) renatofilho@642: module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) renatofilho@642: module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) renatofilho@642: renatofilho@642: # Commands to strip libraries. renatofilho@642: old_striplib=$lt_old_striplib renatofilho@642: striplib=$lt_striplib renatofilho@642: renatofilho@642: # Dependencies to place before the objects being linked to create a renatofilho@642: # shared library. renatofilho@642: predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) renatofilho@642: renatofilho@642: # Dependencies to place after the objects being linked to create a renatofilho@642: # shared library. renatofilho@642: postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) renatofilho@642: renatofilho@642: # Dependencies to place before the objects being linked to create a renatofilho@642: # shared library. renatofilho@642: predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) renatofilho@642: renatofilho@642: # Dependencies to place after the objects being linked to create a renatofilho@642: # shared library. renatofilho@642: postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) renatofilho@642: renatofilho@642: # The library search path used internally by the compiler when linking renatofilho@642: # a shared library. renatofilho@642: compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) renatofilho@642: renatofilho@642: # Method to check whether dependent libraries are shared objects. renatofilho@642: deplibs_check_method=$lt_deplibs_check_method renatofilho@642: renatofilho@642: # Command to use when deplibs_check_method == file_magic. renatofilho@642: file_magic_cmd=$lt_file_magic_cmd renatofilho@642: renatofilho@642: # Flag that allows shared libraries with undefined symbols to be built. renatofilho@642: allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) renatofilho@642: renatofilho@642: # Flag that forces no undefined symbols. renatofilho@642: no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) renatofilho@642: renatofilho@642: # Commands used to finish a libtool library installation in a directory. renatofilho@642: finish_cmds=$lt_finish_cmds renatofilho@642: renatofilho@642: # Same as above, but a single script fragment to be evaled but not shown. renatofilho@642: finish_eval=$lt_finish_eval renatofilho@642: renatofilho@642: # Take the output of nm and produce a listing of raw symbols and C names. renatofilho@642: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe renatofilho@642: renatofilho@642: # Transform the output of nm in a proper C declaration renatofilho@642: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl renatofilho@642: renatofilho@642: # Transform the output of nm in a C name address pair renatofilho@642: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address renatofilho@642: renatofilho@642: # This is the shared library runtime path variable. renatofilho@642: runpath_var=$runpath_var renatofilho@642: renatofilho@642: # This is the shared library path variable. renatofilho@642: shlibpath_var=$shlibpath_var renatofilho@642: renatofilho@642: # Is shlibpath searched before the hard-coded library search path? renatofilho@642: shlibpath_overrides_runpath=$shlibpath_overrides_runpath renatofilho@642: renatofilho@642: # How to hardcode a shared library path into an executable. renatofilho@642: hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) renatofilho@642: renatofilho@642: # Whether we should hardcode library paths into libraries. renatofilho@642: hardcode_into_libs=$hardcode_into_libs renatofilho@642: renatofilho@642: # Flag to hardcode \$libdir into a binary during linking. renatofilho@642: # This must work even if \$libdir does not exist. renatofilho@642: hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) renatofilho@642: renatofilho@642: # If ld is used when linking, flag to hardcode \$libdir into renatofilho@642: # a binary during linking. This must work even if \$libdir does renatofilho@642: # not exist. renatofilho@642: hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) renatofilho@642: renatofilho@642: # Whether we need a single -rpath flag with a separated argument. renatofilho@642: hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) renatofilho@642: renatofilho@642: # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the renatofilho@642: # resulting binary. renatofilho@642: hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) renatofilho@642: renatofilho@642: # Set to yes if using the -LDIR flag during linking hardcodes DIR into the renatofilho@642: # resulting binary. renatofilho@642: hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) renatofilho@642: renatofilho@642: # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into renatofilho@642: # the resulting binary. renatofilho@642: hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) renatofilho@642: renatofilho@642: # Set to yes if building a shared library automatically hardcodes DIR into the library renatofilho@642: # and all subsequent libraries and executables linked against it. renatofilho@642: hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) renatofilho@642: renatofilho@642: # Variables whose values should be saved in libtool wrapper scripts and renatofilho@642: # restored at relink time. renatofilho@642: variables_saved_for_relink="$variables_saved_for_relink" renatofilho@642: renatofilho@642: # Whether libtool must link a program against all its dependency libraries. renatofilho@642: link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) renatofilho@642: renatofilho@642: # Compile-time system search path for libraries renatofilho@642: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec renatofilho@642: renatofilho@642: # Run-time system search path for libraries renatofilho@642: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec renatofilho@642: renatofilho@642: # Fix the shell variable \$srcfile for the compiler. renatofilho@642: fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" renatofilho@642: renatofilho@642: # Set to yes if exported symbols are required. renatofilho@642: always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) renatofilho@642: renatofilho@642: # The commands to list exported symbols. renatofilho@642: export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) renatofilho@642: renatofilho@642: # The commands to extract the exported symbol list from a shared archive. renatofilho@642: extract_expsyms_cmds=$lt_extract_expsyms_cmds renatofilho@642: renatofilho@642: # Symbols that should not be listed in the preloaded symbols. renatofilho@642: exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) renatofilho@642: renatofilho@642: # Symbols that must always be exported. renatofilho@642: include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) renatofilho@642: renatofilho@642: ifelse([$1],[], renatofilho@642: [# ### END LIBTOOL CONFIG], renatofilho@642: [# ### END LIBTOOL TAG CONFIG: $tagname]) renatofilho@642: renatofilho@642: __EOF__ renatofilho@642: renatofilho@642: ifelse([$1],[], [ renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: cat <<\EOF >> "$cfgfile" renatofilho@642: renatofilho@642: # AIX sometimes has problems with the GCC collect2 program. For some renatofilho@642: # reason, if we set the COLLECT_NAMES environment variable, the problems renatofilho@642: # vanish in a puff of smoke. renatofilho@642: if test "X${COLLECT_NAMES+set}" != Xset; then renatofilho@642: COLLECT_NAMES= renatofilho@642: export COLLECT_NAMES renatofilho@642: fi renatofilho@642: EOF renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # We use sed instead of cat because bash on DJGPP gets confused if renatofilho@642: # if finds mixed CR/LF and LF-only lines. Since sed operates in renatofilho@642: # text mode, it properly converts lines to CR/LF. This bash problem renatofilho@642: # is reportedly fixed, but why not run on old versions too? renatofilho@642: sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) renatofilho@642: renatofilho@642: mv -f "$cfgfile" "$ofile" || \ renatofilho@642: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") renatofilho@642: chmod +x "$ofile" renatofilho@642: ]) renatofilho@642: else renatofilho@642: # If there is no Makefile yet, we rely on a make rule to execute renatofilho@642: # `config.status --recheck' to rerun these tests and create the renatofilho@642: # libtool script then. renatofilho@642: ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` renatofilho@642: if test -f "$ltmain_in"; then renatofilho@642: test -f Makefile && make "$ltmain" renatofilho@642: fi renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_CONFIG renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) renatofilho@642: # ------------------------------------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], renatofilho@642: [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= renatofilho@642: renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' renatofilho@642: renatofilho@642: AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], renatofilho@642: lt_cv_prog_compiler_rtti_exceptions, renatofilho@642: [-fno-rtti -fno-exceptions], [], renatofilho@642: [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) renatofilho@642: fi renatofilho@642: ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE renatofilho@642: # --------------------------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], renatofilho@642: [AC_REQUIRE([AC_CANONICAL_HOST]) renatofilho@642: AC_REQUIRE([AC_PROG_NM]) renatofilho@642: AC_REQUIRE([AC_OBJEXT]) renatofilho@642: # Check for command to grab the raw symbol name followed by C symbol from nm. renatofilho@642: AC_MSG_CHECKING([command to parse $NM output from $compiler object]) renatofilho@642: AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], renatofilho@642: [ renatofilho@642: # These are sane defaults that work on at least a few old systems. renatofilho@642: # [They come from Ultrix. What could be older than Ultrix?!! ;)] renatofilho@642: renatofilho@642: # Character class describing NM global symbol codes. renatofilho@642: symcode='[[BCDEGRST]]' renatofilho@642: renatofilho@642: # Regexp to match symbols that can be accessed directly from C. renatofilho@642: sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' renatofilho@642: renatofilho@642: # Transform an extracted symbol line into a proper C declaration renatofilho@642: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" renatofilho@642: renatofilho@642: # Transform an extracted symbol line into symbol name and symbol address renatofilho@642: 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'" renatofilho@642: renatofilho@642: # Define system-specific variables. renatofilho@642: case $host_os in renatofilho@642: aix*) renatofilho@642: symcode='[[BCDT]]' renatofilho@642: ;; renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: symcode='[[ABCDGISTW]]' renatofilho@642: ;; renatofilho@642: hpux*) # Its linker distinguishes data from code symbols renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: symcode='[[ABCDEGRST]]' renatofilho@642: fi renatofilho@642: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" renatofilho@642: 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'" renatofilho@642: ;; renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: symcode='[[ABCDGIRSTW]]' renatofilho@642: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" renatofilho@642: 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'" renatofilho@642: fi renatofilho@642: ;; renatofilho@642: irix* | nonstopux*) renatofilho@642: symcode='[[BCDEGRST]]' renatofilho@642: ;; renatofilho@642: osf*) renatofilho@642: symcode='[[BCDEGQRST]]' renatofilho@642: ;; renatofilho@642: solaris*) renatofilho@642: symcode='[[BDRT]]' renatofilho@642: ;; renatofilho@642: sco3.2v5*) renatofilho@642: symcode='[[DT]]' renatofilho@642: ;; renatofilho@642: sysv4.2uw2*) renatofilho@642: symcode='[[DT]]' renatofilho@642: ;; renatofilho@642: sysv5* | sco5v6* | unixware* | OpenUNIX*) renatofilho@642: symcode='[[ABDT]]' renatofilho@642: ;; renatofilho@642: sysv4) renatofilho@642: symcode='[[DFNSTU]]' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # Handle CRLF in mingw tool chain renatofilho@642: opt_cr= renatofilho@642: case $build_os in renatofilho@642: mingw*) renatofilho@642: opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # If we're using GNU nm, then use its standard symbol codes. renatofilho@642: case `$NM -V 2>&1` in renatofilho@642: *GNU* | *'with BFD'*) renatofilho@642: symcode='[[ABCDGIRSTW]]' ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # Try without a prefix undercore, then with it. renatofilho@642: for ac_symprfx in "" "_"; do renatofilho@642: renatofilho@642: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. renatofilho@642: symxfrm="\\1 $ac_symprfx\\2 \\2" renatofilho@642: renatofilho@642: # Write the raw and C identifiers. renatofilho@642: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" renatofilho@642: renatofilho@642: # Check to see that the pipe works correctly. renatofilho@642: pipe_works=no renatofilho@642: renatofilho@642: rm -f conftest* renatofilho@642: cat > conftest.$ac_ext < $nlist) && test -s "$nlist"; then renatofilho@642: # Try sorting and uniquifying the output. renatofilho@642: if sort "$nlist" | uniq > "$nlist"T; then renatofilho@642: mv -f "$nlist"T "$nlist" renatofilho@642: else renatofilho@642: rm -f "$nlist"T renatofilho@642: fi renatofilho@642: renatofilho@642: # Make sure that we snagged all the symbols we need. renatofilho@642: if grep ' nm_test_var$' "$nlist" >/dev/null; then renatofilho@642: if grep ' nm_test_func$' "$nlist" >/dev/null; then renatofilho@642: cat < conftest.$ac_ext renatofilho@642: #ifdef __cplusplus renatofilho@642: extern "C" { renatofilho@642: #endif renatofilho@642: renatofilho@642: EOF renatofilho@642: # Now generate the symbol file. renatofilho@642: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' renatofilho@642: renatofilho@642: cat <> conftest.$ac_ext renatofilho@642: #if defined (__STDC__) && __STDC__ renatofilho@642: # define lt_ptr_t void * renatofilho@642: #else renatofilho@642: # define lt_ptr_t char * renatofilho@642: # define const renatofilho@642: #endif renatofilho@642: renatofilho@642: /* The mapping between symbol names and symbols. */ renatofilho@642: const struct { renatofilho@642: const char *name; renatofilho@642: lt_ptr_t address; renatofilho@642: } renatofilho@642: lt_preloaded_symbols[[]] = renatofilho@642: { renatofilho@642: EOF renatofilho@642: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext renatofilho@642: cat <<\EOF >> conftest.$ac_ext renatofilho@642: {0, (lt_ptr_t) 0} renatofilho@642: }; renatofilho@642: renatofilho@642: #ifdef __cplusplus renatofilho@642: } renatofilho@642: #endif renatofilho@642: EOF renatofilho@642: # Now try linking the two files. renatofilho@642: mv conftest.$ac_objext conftstm.$ac_objext renatofilho@642: lt_save_LIBS="$LIBS" renatofilho@642: lt_save_CFLAGS="$CFLAGS" renatofilho@642: LIBS="conftstm.$ac_objext" renatofilho@642: CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" renatofilho@642: if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then renatofilho@642: pipe_works=yes renatofilho@642: fi renatofilho@642: LIBS="$lt_save_LIBS" renatofilho@642: CFLAGS="$lt_save_CFLAGS" renatofilho@642: else renatofilho@642: echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD renatofilho@642: fi renatofilho@642: else renatofilho@642: echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD renatofilho@642: fi renatofilho@642: else renatofilho@642: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD renatofilho@642: fi renatofilho@642: else renatofilho@642: echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD renatofilho@642: cat conftest.$ac_ext >&5 renatofilho@642: fi renatofilho@642: rm -f conftest* conftst* renatofilho@642: renatofilho@642: # Do not use the global_symbol_pipe unless it works. renatofilho@642: if test "$pipe_works" = yes; then renatofilho@642: break renatofilho@642: else renatofilho@642: lt_cv_sys_global_symbol_pipe= renatofilho@642: fi renatofilho@642: done renatofilho@642: ]) renatofilho@642: if test -z "$lt_cv_sys_global_symbol_pipe"; then renatofilho@642: lt_cv_sys_global_symbol_to_cdecl= renatofilho@642: fi renatofilho@642: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then renatofilho@642: AC_MSG_RESULT(failed) renatofilho@642: else renatofilho@642: AC_MSG_RESULT(ok) renatofilho@642: fi renatofilho@642: ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) renatofilho@642: # --------------------------------------- renatofilho@642: AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], renatofilho@642: [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= renatofilho@642: renatofilho@642: AC_MSG_CHECKING([for $compiler option to produce PIC]) renatofilho@642: ifelse([$1],[CXX],[ renatofilho@642: # C++ specific cases for pic, static, wl, etc. renatofilho@642: if test "$GXX" = yes; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: aix*) renatofilho@642: # All AIX code is PIC. renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # AIX 5 now supports IA64 processor renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: amigaos*) renatofilho@642: # FIXME: we need at least 68020 code to build shared libraries, but renatofilho@642: # adding the `-m68020' flag to GCC prevents building anything better, renatofilho@642: # like `-m68040'. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' renatofilho@642: ;; renatofilho@642: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) renatofilho@642: # PIC is the default for these OSes. renatofilho@642: ;; renatofilho@642: mingw* | os2* | pw32*) renatofilho@642: # This hack is so that the source file can tell whether it is being renatofilho@642: # built for inclusion in a dll (and should export symbols for example). renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' renatofilho@642: ;; renatofilho@642: darwin* | rhapsody*) renatofilho@642: # PIC is the default on this platform renatofilho@642: # Common symbols not allowed in MH_DYLIB files renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' renatofilho@642: ;; renatofilho@642: *djgpp*) renatofilho@642: # DJGPP does not support shared libraries at all renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: ;; renatofilho@642: interix3*) renatofilho@642: # Interix 3.x gcc -fpic/-fPIC options generate broken code. renatofilho@642: # Instead, we relocate shared libraries at runtime. renatofilho@642: ;; renatofilho@642: sysv4*MP*) renatofilho@642: if test -d /usr/nec; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic renatofilho@642: fi renatofilho@642: ;; renatofilho@642: hpux*) renatofilho@642: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but renatofilho@642: # not for PA HP-UX. renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: case $host_os in renatofilho@642: aix4* | aix5*) renatofilho@642: # All AIX code is PIC. renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # AIX 5 now supports IA64 processor renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: chorus*) renatofilho@642: case $cc_basename in renatofilho@642: cxch68*) renatofilho@642: # Green Hills C++ Compiler renatofilho@642: # _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" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: darwin*) renatofilho@642: # PIC is the default on this platform renatofilho@642: # Common symbols not allowed in MH_DYLIB files renatofilho@642: case $cc_basename in renatofilho@642: xlc*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: dgux*) renatofilho@642: case $cc_basename in renatofilho@642: ec++*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: ;; renatofilho@642: ghcx*) renatofilho@642: # Green Hills C++ Compiler renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: freebsd* | dragonfly*) renatofilho@642: # FreeBSD uses GNU C++ renatofilho@642: ;; renatofilho@642: hpux9* | hpux10* | hpux11*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' renatofilho@642: if test "$host_cpu" != ia64; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: aCC*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: # +Z the default renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: interix*) renatofilho@642: # This is c89, which is MS Visual C++ (no shared libs) renatofilho@642: # Anyone wants to do a port? renatofilho@642: ;; renatofilho@642: irix5* | irix6* | nonstopux*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: # CC pic flag -KPIC is the default. renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: case $cc_basename in renatofilho@642: KCC*) renatofilho@642: # KAI C++ Compiler renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' renatofilho@642: ;; renatofilho@642: icpc* | ecpc*) renatofilho@642: # Intel C++ renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' renatofilho@642: ;; renatofilho@642: pgCC*) renatofilho@642: # Portland Group C++ compiler. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: cxx*) renatofilho@642: # Compaq C++ renatofilho@642: # Make sure the PIC flag is empty. It appears that all Alpha renatofilho@642: # Linux and Compaq Tru64 Unix objects are PIC. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: lynxos*) renatofilho@642: ;; renatofilho@642: m88k*) renatofilho@642: ;; renatofilho@642: mvs*) renatofilho@642: case $cc_basename in renatofilho@642: cxx*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: netbsd* | netbsdelf*-gnu) renatofilho@642: ;; renatofilho@642: osf3* | osf4* | osf5*) renatofilho@642: case $cc_basename in renatofilho@642: KCC*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' renatofilho@642: ;; renatofilho@642: RCC*) renatofilho@642: # Rational C++ 2.4.1 renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' renatofilho@642: ;; renatofilho@642: cxx*) renatofilho@642: # Digital/Compaq C++ renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: # Make sure the PIC flag is empty. It appears that all Alpha renatofilho@642: # Linux and Compaq Tru64 Unix objects are PIC. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: psos*) renatofilho@642: ;; renatofilho@642: solaris*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # Sun C++ 4.2, 5.x and Centerline C++ renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' renatofilho@642: ;; renatofilho@642: gcx*) renatofilho@642: # Green Hills C++ Compiler renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: sunos4*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: # Sun C++ 4.x renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: lcc*) renatofilho@642: # Lucid renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: tandem*) renatofilho@642: case $cc_basename in renatofilho@642: NCC*) renatofilho@642: # NonStop-UX NCC 3.20 renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) renatofilho@642: case $cc_basename in renatofilho@642: CC*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: vxworks*) renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ], renatofilho@642: [ renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' renatofilho@642: renatofilho@642: case $host_os in renatofilho@642: aix*) renatofilho@642: # All AIX code is PIC. renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # AIX 5 now supports IA64 processor renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: amigaos*) renatofilho@642: # FIXME: we need at least 68020 code to build shared libraries, but renatofilho@642: # adding the `-m68020' flag to GCC prevents building anything better, renatofilho@642: # like `-m68040'. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' renatofilho@642: ;; renatofilho@642: renatofilho@642: beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) renatofilho@642: # PIC is the default for these OSes. renatofilho@642: ;; renatofilho@642: renatofilho@642: mingw* | pw32* | os2*) renatofilho@642: # This hack is so that the source file can tell whether it is being renatofilho@642: # built for inclusion in a dll (and should export symbols for example). renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' renatofilho@642: ;; renatofilho@642: renatofilho@642: darwin* | rhapsody*) renatofilho@642: # PIC is the default on this platform renatofilho@642: # Common symbols not allowed in MH_DYLIB files renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' renatofilho@642: ;; renatofilho@642: renatofilho@642: interix3*) renatofilho@642: # Interix 3.x gcc -fpic/-fPIC options generate broken code. renatofilho@642: # Instead, we relocate shared libraries at runtime. renatofilho@642: ;; renatofilho@642: renatofilho@642: msdosdjgpp*) renatofilho@642: # Just because we use GCC doesn't mean we suddenly get shared libraries renatofilho@642: # on systems that don't support them. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no renatofilho@642: enable_shared=no renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4*MP*) renatofilho@642: if test -d /usr/nec; then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux*) renatofilho@642: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but renatofilho@642: # not for PA HP-UX. renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: # +Z the default renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: # PORTME Check for flag to pass linker flags through the system compiler. renatofilho@642: case $host_os in renatofilho@642: aix*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # AIX 5 now supports IA64 processor renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: darwin*) renatofilho@642: # PIC is the default on this platform renatofilho@642: # Common symbols not allowed in MH_DYLIB files renatofilho@642: case $cc_basename in renatofilho@642: xlc*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: mingw* | pw32* | os2*) renatofilho@642: # This hack is so that the source file can tell whether it is being renatofilho@642: # built for inclusion in a dll (and should export symbols for example). renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux9* | hpux10* | hpux11*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but renatofilho@642: # not for PA HP-UX. renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: # +Z the default renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: # Is there a better lt_prog_compiler_static that works with the bundled CC? renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' renatofilho@642: ;; renatofilho@642: renatofilho@642: irix5* | irix6* | nonstopux*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: # PIC (with -KPIC) is the default. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: ;; renatofilho@642: renatofilho@642: newsos6) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: case $cc_basename in renatofilho@642: icc* | ecc*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' renatofilho@642: ;; renatofilho@642: pgcc* | pgf77* | pgf90* | pgf95*) renatofilho@642: # Portland Group compilers (*not* the Pentium gcc compiler, renatofilho@642: # which looks to be a dead project) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: ccc*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: # All Alpha code is PIC. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: osf3* | osf4* | osf5*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: # All OSF/1 code is PIC. renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' renatofilho@642: ;; renatofilho@642: renatofilho@642: solaris*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: case $cc_basename in renatofilho@642: f77* | f90* | f95*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: sunos4*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4 | sysv4.2uw2* | sysv4.3*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4*MP*) renatofilho@642: if test -d /usr/nec ;then renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: renatofilho@642: unicos*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: uts4*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ]) renatofilho@642: AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) renatofilho@642: renatofilho@642: # renatofilho@642: # Check to make sure the PIC flag actually works. renatofilho@642: # renatofilho@642: if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then renatofilho@642: AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), renatofilho@642: [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], renatofilho@642: [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in renatofilho@642: "" | " "*) ;; renatofilho@642: *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; renatofilho@642: esac], renatofilho@642: [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) renatofilho@642: fi renatofilho@642: case $host_os in renatofilho@642: # For platforms which do not support PIC, -DPIC is meaningless: renatofilho@642: *djgpp*) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # renatofilho@642: # Check to make sure the static flag actually works. renatofilho@642: # renatofilho@642: wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" renatofilho@642: AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], renatofilho@642: _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), renatofilho@642: $lt_tmp_static_flag, renatofilho@642: [], renatofilho@642: [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) renatofilho@642: ]) renatofilho@642: renatofilho@642: renatofilho@642: # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) renatofilho@642: # ------------------------------------ renatofilho@642: # See if the linker supports building shared libraries. renatofilho@642: AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], renatofilho@642: [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) renatofilho@642: ifelse([$1],[CXX],[ renatofilho@642: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' renatofilho@642: case $host_os in renatofilho@642: aix4* | aix5*) renatofilho@642: # If we're using GNU nm, then we don't want the "-C" option. renatofilho@642: # -C means demangle to AIX nm, but means don't demangle with GNU nm renatofilho@642: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: _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' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: pw32*) renatofilho@642: _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" renatofilho@642: ;; renatofilho@642: cygwin* | mingw*) renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ],[ renatofilho@642: runpath_var= renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)= renatofilho@642: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown renatofilho@642: _LT_AC_TAGVAR(hardcode_automatic, $1)=no renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(module_expsym_cmds, $1)= renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=no renatofilho@642: _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' renatofilho@642: # include_expsyms should be a list of space-separated symbols to be *always* renatofilho@642: # included in the symbol list renatofilho@642: _LT_AC_TAGVAR(include_expsyms, $1)= renatofilho@642: # exclude_expsyms can be an extended regexp of symbols to exclude renatofilho@642: # it will be wrapped by ` (' and `)$', so one must not match beginning or renatofilho@642: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', renatofilho@642: # as well as any symbol that contains `d'. renatofilho@642: _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" renatofilho@642: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out renatofilho@642: # platforms (ab)use it in PIC code, but their linkers get confused if renatofilho@642: # the symbol is explicitly referenced. Since portable code cannot renatofilho@642: # rely on this symbol name, it's probably fine to never include it in renatofilho@642: # preloaded symbol tables. renatofilho@642: extract_expsyms_cmds= renatofilho@642: # Just being paranoid about ensuring that cc_basename is set. renatofilho@642: _LT_CC_BASENAME([$compiler]) renatofilho@642: case $host_os in renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: # FIXME: the MSVC++ port hasn't been tested in a loooong time renatofilho@642: # When not using gcc, we currently assume that we are using renatofilho@642: # Microsoft Visual C++. renatofilho@642: if test "$GCC" != yes; then renatofilho@642: with_gnu_ld=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: interix*) renatofilho@642: # we just hope/assume this is gcc and not c89 (= MSVC++) renatofilho@642: with_gnu_ld=yes renatofilho@642: ;; renatofilho@642: openbsd*) renatofilho@642: with_gnu_ld=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=yes renatofilho@642: if test "$with_gnu_ld" = yes; then renatofilho@642: # If archive_cmds runs LD, not CC, wlarc should be empty renatofilho@642: wlarc='${wl}' renatofilho@642: renatofilho@642: # Set some defaults for GNU ld with shared library support. These renatofilho@642: # are reset later if shared libraries are not supported. Putting them renatofilho@642: # here allows them to be overridden if necessary. renatofilho@642: runpath_var=LD_RUN_PATH renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' renatofilho@642: # ancient GNU ld didn't support --whole-archive et. al. renatofilho@642: if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= renatofilho@642: fi renatofilho@642: supports_anon_versioning=no renatofilho@642: case `$LD -v 2>/dev/null` in renatofilho@642: *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 renatofilho@642: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... renatofilho@642: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... renatofilho@642: *\ 2.11.*) ;; # other 2.11 versions renatofilho@642: *) supports_anon_versioning=yes ;; renatofilho@642: esac renatofilho@642: renatofilho@642: # See if GNU ld supports shared libraries. renatofilho@642: case $host_os in renatofilho@642: aix3* | aix4* | aix5*) renatofilho@642: # On AIX/PPC, the GNU linker is very broken renatofilho@642: if test "$host_cpu" != ia64; then renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: cat <&2 renatofilho@642: renatofilho@642: *** Warning: the GNU linker, at least up to release 2.9.1, is reported renatofilho@642: *** to be unable to reliably create shared libraries on AIX. renatofilho@642: *** Therefore, libtool is disabling shared libraries support. If you renatofilho@642: *** really care for shared libraries, you may want to modify your PATH renatofilho@642: *** so that a non-GNU linker is found, and then restart. renatofilho@642: renatofilho@642: EOF renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: amigaos*) renatofilho@642: _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)' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: renatofilho@642: # Samuel A. Falvo II reports renatofilho@642: # that the semantics of dynamic libraries on AmigaOS, at least up renatofilho@642: # to version 4, is to share data among multiple programs linked renatofilho@642: # with the same dynamic library. Since this doesn't match the renatofilho@642: # behavior of shared libraries on other platforms, we can't use renatofilho@642: # them. renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: beos*) renatofilho@642: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: # Joseph Beckenbach says some releases of gcc renatofilho@642: # support --undefined. This deserves some investigation. FIXME renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, renatofilho@642: # as there is no search path for DLLs. renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=no renatofilho@642: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes renatofilho@642: _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' renatofilho@642: renatofilho@642: if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then renatofilho@642: _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' renatofilho@642: # If the export-symbols file already is a .def file (1st line renatofilho@642: # is EXPORTS), use it as is; otherwise, prepend... renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then renatofilho@642: cp $export_symbols $output_objdir/$soname.def; renatofilho@642: else renatofilho@642: echo EXPORTS > $output_objdir/$soname.def; renatofilho@642: cat $export_symbols >> $output_objdir/$soname.def; renatofilho@642: fi~ renatofilho@642: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: interix3*) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. renatofilho@642: # Instead, shared libraries are loaded at an image base (0x10000000 by renatofilho@642: # default) and relocated if they conflict, which is a slow very memory renatofilho@642: # consuming and fragmenting process. To avoid this, we pick a random, renatofilho@642: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link renatofilho@642: # time. Moving up from 0x10000000 also allows more sbrk(2) space. renatofilho@642: _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' renatofilho@642: _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' renatofilho@642: ;; renatofilho@642: renatofilho@642: linux* | k*bsd*-gnu) renatofilho@642: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: tmp_addflag= renatofilho@642: case $cc_basename,$host_cpu in renatofilho@642: pgcc*) # Portland Group C compiler renatofilho@642: _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' renatofilho@642: tmp_addflag=' $pic_flag' renatofilho@642: ;; renatofilho@642: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers renatofilho@642: _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' renatofilho@642: tmp_addflag=' $pic_flag -Mnomain' ;; renatofilho@642: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 renatofilho@642: tmp_addflag=' -i_dynamic' ;; renatofilho@642: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 renatofilho@642: tmp_addflag=' -i_dynamic -nofor_main' ;; renatofilho@642: ifc* | ifort*) # Intel Fortran compiler renatofilho@642: tmp_addflag=' -nofor_main' ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: renatofilho@642: if test $supports_anon_versioning = yes; then renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ renatofilho@642: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ renatofilho@642: $echo "local: *; };" >> $output_objdir/$libname.ver~ renatofilho@642: $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=no renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsd* | netbsdelf*-gnu) renatofilho@642: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' renatofilho@642: wlarc= renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: solaris*) renatofilho@642: if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: cat <&2 renatofilho@642: renatofilho@642: *** Warning: The releases 2.8.* of the GNU linker cannot reliably renatofilho@642: *** create shared libraries on Solaris systems. Therefore, libtool renatofilho@642: *** is disabling shared libraries support. We urge you to upgrade GNU renatofilho@642: *** binutils to release 2.9.1 or newer. Another option is to modify renatofilho@642: *** your PATH or compiler configuration so that the native linker is renatofilho@642: *** used, and then restart. renatofilho@642: renatofilho@642: EOF renatofilho@642: elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) renatofilho@642: case `$LD -v 2>&1` in renatofilho@642: *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: cat <<_LT_EOF 1>&2 renatofilho@642: renatofilho@642: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not renatofilho@642: *** reliably create shared libraries on SCO systems. Therefore, libtool renatofilho@642: *** is disabling shared libraries support. We urge you to upgrade GNU renatofilho@642: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify renatofilho@642: *** your PATH or compiler configuration so that the native linker is renatofilho@642: *** used, and then restart. renatofilho@642: renatofilho@642: _LT_EOF renatofilho@642: ;; renatofilho@642: *) renatofilho@642: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' renatofilho@642: _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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ;; renatofilho@642: renatofilho@642: sunos4*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: wlarc= renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' renatofilho@642: _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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then renatofilho@642: runpath_var= renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= renatofilho@642: fi renatofilho@642: else renatofilho@642: # PORTME fill in a description of your system's linker (not GNU ld) renatofilho@642: case $host_os in renatofilho@642: aix3*) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=yes renatofilho@642: _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' renatofilho@642: # Note: this linker hardcodes the directories in LIBPATH if there renatofilho@642: # are no directories specified by -L. renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then renatofilho@642: # Neither direct hardcoding nor static linking is supported with a renatofilho@642: # broken collect2. renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: aix4* | aix5*) renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # On IA64, the linker does run time linking by default, so we don't renatofilho@642: # have to do anything special. renatofilho@642: aix_use_runtimelinking=no renatofilho@642: exp_sym_flag='-Bexport' renatofilho@642: no_entry_flag="" renatofilho@642: else renatofilho@642: # If we're using GNU nm, then we don't want the "-C" option. renatofilho@642: # -C means demangle to AIX nm, but means don't demangle with GNU nm renatofilho@642: if $NM -V 2>&1 | grep 'GNU' > /dev/null; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: _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' renatofilho@642: fi renatofilho@642: aix_use_runtimelinking=no renatofilho@642: renatofilho@642: # Test if we are trying to use run time linking or normal renatofilho@642: # AIX style linking. If -brtl is somewhere in LDFLAGS, we renatofilho@642: # need to do runtime linking. renatofilho@642: case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) renatofilho@642: for ld_flag in $LDFLAGS; do renatofilho@642: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then renatofilho@642: aix_use_runtimelinking=yes renatofilho@642: break renatofilho@642: fi renatofilho@642: done renatofilho@642: ;; renatofilho@642: esac renatofilho@642: renatofilho@642: exp_sym_flag='-bexport' renatofilho@642: no_entry_flag='-bnoentry' renatofilho@642: fi renatofilho@642: renatofilho@642: # When large executables or shared objects are built, AIX ld can renatofilho@642: # have problems creating the table of contents. If linking a library renatofilho@642: # or program results in "error TOC overflow" add -mminimal-toc to renatofilho@642: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not renatofilho@642: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: renatofilho@642: if test "$GCC" = yes; then renatofilho@642: case $host_os in aix4.[[012]]|aix4.[[012]].*) renatofilho@642: # We only want to do this on AIX 4.2 and lower, the check renatofilho@642: # below for broken collect2 doesn't work under 4.3+ renatofilho@642: collect2name=`${CC} -print-prog-name=collect2` renatofilho@642: if test -f "$collect2name" && \ renatofilho@642: strings "$collect2name" | grep resolve_lib_name >/dev/null renatofilho@642: then renatofilho@642: # We have reworked collect2 renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: else renatofilho@642: # We have old collect2 renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported renatofilho@642: # It fails to find uninstalled libraries when the uninstalled renatofilho@642: # path is not listed in the libpath. Setting hardcode_minus_L renatofilho@642: # to unsupported forces relinking renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: shared_flag='-shared' renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: shared_flag="$shared_flag "'${wl}-G' renatofilho@642: fi renatofilho@642: else renatofilho@642: # not using gcc renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release renatofilho@642: # chokes on -Wl,-G. The following line is correct: renatofilho@642: shared_flag='-G' renatofilho@642: else renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: shared_flag='${wl}-G' renatofilho@642: else renatofilho@642: shared_flag='${wl}-bM:SRE' renatofilho@642: fi renatofilho@642: fi renatofilho@642: fi renatofilho@642: renatofilho@642: # It seems that -bexpall does not export symbols beginning with renatofilho@642: # underscore (_), so it is better to generate a list of symbols to export. renatofilho@642: _LT_AC_TAGVAR(always_export_symbols, $1)=yes renatofilho@642: if test "$aix_use_runtimelinking" = yes; then renatofilho@642: # Warning - without using the other runtime loading flags (-brtl), renatofilho@642: # -berok will link without error, but may produce a broken library. renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' renatofilho@642: # Determine the default libpath from the value encoded in an empty executable. renatofilho@642: _LT_AC_SYS_LIBPATH_AIX renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" renatofilho@642: _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" renatofilho@642: else renatofilho@642: if test "$host_cpu" = ia64; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" renatofilho@642: _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" renatofilho@642: else renatofilho@642: # Determine the default libpath from the value encoded in an empty executable. renatofilho@642: _LT_AC_SYS_LIBPATH_AIX renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" renatofilho@642: # Warning - without using the other run time loading flags, renatofilho@642: # -berok will link without error, but may produce a broken library. renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' renatofilho@642: # Exported symbols can be pulled into shared objects from archives renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes renatofilho@642: # This is similar to how AIX traditionally builds its shared libraries. renatofilho@642: _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' renatofilho@642: fi renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: amigaos*) renatofilho@642: _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)' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: # see comment about different semantics on the GNU ld section renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: bsdi[[45]]*) renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic renatofilho@642: ;; renatofilho@642: renatofilho@642: cygwin* | mingw* | pw32*) renatofilho@642: # When not using gcc, we currently assume that we are using renatofilho@642: # Microsoft Visual C++. renatofilho@642: # hardcode_libdir_flag_spec is actually meaningless, as there is renatofilho@642: # no search path for DLLs. renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: # Tell ltmain to make .lib files, not .a files. renatofilho@642: libext=lib renatofilho@642: # Tell ltmain to make .dll files, not .so files. renatofilho@642: shrext_cmds=".dll" renatofilho@642: # FIXME: Setting linknames here is a bad hack. renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' renatofilho@642: # The linker will automatically build a .lib file if we build a DLL. renatofilho@642: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' renatofilho@642: # FIXME: Should let the user specify the lib program. renatofilho@642: _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' renatofilho@642: _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' renatofilho@642: _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: darwin* | rhapsody*) renatofilho@642: case $host_os in renatofilho@642: rhapsody* | darwin1.[[012]]) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' renatofilho@642: ;; renatofilho@642: *) # Darwin 1.3 on renatofilho@642: if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' renatofilho@642: else renatofilho@642: case ${MACOSX_DEPLOYMENT_TARGET} in renatofilho@642: 10.[[012]]) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' renatofilho@642: ;; renatofilho@642: 10.*) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_automatic, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: if test "$GCC" = yes ; then renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' renatofilho@642: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds renatofilho@642: _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}' renatofilho@642: _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}' renatofilho@642: else renatofilho@642: case $cc_basename in renatofilho@642: xlc*) renatofilho@642: output_verbose_link_cmd='echo' renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' renatofilho@642: # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds renatofilho@642: _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}' renatofilho@642: _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}' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: dgux*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: freebsd1*) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor renatofilho@642: # support. Future versions do this automatically, but an explicit c++rt0.o renatofilho@642: # does not break anything, and helps significantly (at the cost of a little renatofilho@642: # extra space). renatofilho@642: freebsd2.2*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: # Unfortunately, older versions of FreeBSD 2 do not have this feature. renatofilho@642: freebsd2*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: # FreeBSD 3 and greater uses gcc -shared to do shared libraries. renatofilho@642: freebsd* | dragonfly*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux9*) renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: _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' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: renatofilho@642: # hardcode_minus_L: Not really in the search PATH, renatofilho@642: # but as the default location of the library. renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux10*) renatofilho@642: if test "$GCC" = yes -a "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: fi renatofilho@642: if test "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: renatofilho@642: # hardcode_minus_L: Not really in the search PATH, renatofilho@642: # but as the default location of the library. renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: hpux11*) renatofilho@642: if test "$GCC" = yes -a "$with_gnu_ld" = no; then renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: ia64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: else renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: ia64*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: if test "$with_gnu_ld" = no; then renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: renatofilho@642: case $host_cpu in renatofilho@642: hppa*64*|ia64*) renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: renatofilho@642: # hardcode_minus_L: Not really in the search PATH, renatofilho@642: # but as the default location of the library. renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: irix5* | irix6* | nonstopux*) renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _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' renatofilho@642: else renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: netbsd* | netbsdelf*-gnu) renatofilho@642: if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: newsos6) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: openbsd*) renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' renatofilho@642: else renatofilho@642: case $host_os in renatofilho@642: openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: ;; renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: os2*) renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' renatofilho@642: ;; renatofilho@642: renatofilho@642: osf3*) renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' renatofilho@642: _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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' renatofilho@642: _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' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: ;; renatofilho@642: renatofilho@642: osf4* | osf5*) # as osf3* with the addition of -msym flag renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' renatofilho@642: _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' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' renatofilho@642: _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' renatofilho@642: _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~ renatofilho@642: $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' renatofilho@642: renatofilho@642: # Both c and cxx compiler support -rpath directly renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: renatofilho@642: ;; renatofilho@642: renatofilho@642: solaris*) renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' renatofilho@642: if test "$GCC" = yes; then renatofilho@642: wlarc='${wl}' renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ renatofilho@642: $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' renatofilho@642: else renatofilho@642: wlarc='' renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ renatofilho@642: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: case $host_os in renatofilho@642: solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; renatofilho@642: *) renatofilho@642: # The compiler driver will combine linker options so we renatofilho@642: # cannot just pass the convience library names through renatofilho@642: # without $wl, iff we do not link with $LD. renatofilho@642: # Luckily, gcc supports the same syntax we need for Sun Studio. renatofilho@642: # Supported since Solaris 2.6 (maybe 2.5.1?) renatofilho@642: case $wlarc in renatofilho@642: '') renatofilho@642: _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; renatofilho@642: *) renatofilho@642: _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' ;; renatofilho@642: esac ;; renatofilho@642: esac renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: ;; renatofilho@642: renatofilho@642: sunos4*) renatofilho@642: if test "x$host_vendor" = xsequent; then renatofilho@642: # Use $CC to link under sequent, because it throws in some extra .o renatofilho@642: # files that make .init and .fini sections work. renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4) renatofilho@642: case $host_vendor in renatofilho@642: sni) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? renatofilho@642: ;; renatofilho@642: siemens) renatofilho@642: ## LD is ld it makes a PLAMLIB renatofilho@642: ## CC just makes a GrossModule. renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no renatofilho@642: ;; renatofilho@642: motorola) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie renatofilho@642: ;; renatofilho@642: esac renatofilho@642: runpath_var='LD_RUN_PATH' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4.3*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4*MP*) renatofilho@642: if test -d /usr/nec; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: runpath_var=LD_RUN_PATH renatofilho@642: hardcode_runpath_var=yes renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=yes renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: runpath_var='LD_RUN_PATH' renatofilho@642: renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: sysv5* | sco3.2v5* | sco5v6*) renatofilho@642: # Note: We can NOT use -z defs as we might desire, because we do not renatofilho@642: # link with -lc, and that would cause any symbols used from libc to renatofilho@642: # always be unresolved, which means just about no library would renatofilho@642: # ever link correctly. If we're not using GNU ld we use -z text renatofilho@642: # though, which does catch some bad symbols but isn't as heavy-handed renatofilho@642: # as -z defs. renatofilho@642: _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' renatofilho@642: _LT_AC_TAGVAR(link_all_deplibs, $1)=yes renatofilho@642: _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' renatofilho@642: runpath_var='LD_RUN_PATH' renatofilho@642: renatofilho@642: if test "$GCC" = yes; then renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _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' renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' renatofilho@642: _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' renatofilho@642: fi renatofilho@642: ;; renatofilho@642: renatofilho@642: uts4*) renatofilho@642: _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' renatofilho@642: _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' renatofilho@642: _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no renatofilho@642: ;; renatofilho@642: renatofilho@642: *) renatofilho@642: _LT_AC_TAGVAR(ld_shlibs, $1)=no renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ]) renatofilho@642: AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) renatofilho@642: test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no renatofilho@642: renatofilho@642: # renatofilho@642: # Do we need to explicitly link libc? renatofilho@642: # renatofilho@642: case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in renatofilho@642: x|xyes) renatofilho@642: # Assume -lc should be added renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes renatofilho@642: renatofilho@642: if test "$enable_shared" = yes && test "$GCC" = yes; then renatofilho@642: case $_LT_AC_TAGVAR(archive_cmds, $1) in renatofilho@642: *'~'*) renatofilho@642: # FIXME: we may have to deal with multi-command sequences. renatofilho@642: ;; renatofilho@642: '$CC '*) renatofilho@642: # Test whether the compiler implicitly links with -lc since on some renatofilho@642: # systems, -lgcc has to come before -lc. If gcc already passes -lc renatofilho@642: # to ld, don't add -lc before -lgcc. renatofilho@642: AC_MSG_CHECKING([whether -lc should be explicitly linked in]) renatofilho@642: $rm conftest* renatofilho@642: printf "$lt_simple_compile_test_code" > conftest.$ac_ext renatofilho@642: renatofilho@642: if AC_TRY_EVAL(ac_compile) 2>conftest.err; then renatofilho@642: soname=conftest renatofilho@642: lib=conftest renatofilho@642: libobjs=conftest.$ac_objext renatofilho@642: deplibs= renatofilho@642: wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) renatofilho@642: pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) renatofilho@642: compiler_flags=-v renatofilho@642: linker_flags=-v renatofilho@642: verstring= renatofilho@642: output_objdir=. renatofilho@642: libname=conftest renatofilho@642: lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)= renatofilho@642: if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) renatofilho@642: then renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no renatofilho@642: else renatofilho@642: _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes renatofilho@642: fi renatofilho@642: _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag renatofilho@642: else renatofilho@642: cat conftest.err 1>&5 renatofilho@642: fi renatofilho@642: $rm conftest* renatofilho@642: AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) renatofilho@642: ;; renatofilho@642: esac renatofilho@642: fi renatofilho@642: ;; renatofilho@642: esac renatofilho@642: ])# AC_LIBTOOL_PROG_LD_SHLIBS renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_FILE_LTDLL_C renatofilho@642: # ------------------- renatofilho@642: # Be careful that the start marker always follows a newline. renatofilho@642: AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ renatofilho@642: # /* ltdll.c starts here */ renatofilho@642: # #define WIN32_LEAN_AND_MEAN renatofilho@642: # #include renatofilho@642: # #undef WIN32_LEAN_AND_MEAN renatofilho@642: # #include renatofilho@642: # renatofilho@642: # #ifndef __CYGWIN__ renatofilho@642: # # ifdef __CYGWIN32__ renatofilho@642: # # define __CYGWIN__ __CYGWIN32__ renatofilho@642: # # endif renatofilho@642: # #endif renatofilho@642: # renatofilho@642: # #ifdef __cplusplus renatofilho@642: # extern "C" { renatofilho@642: # #endif renatofilho@642: # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); renatofilho@642: # #ifdef __cplusplus renatofilho@642: # } renatofilho@642: # #endif renatofilho@642: # renatofilho@642: # #ifdef __CYGWIN__ renatofilho@642: # #include renatofilho@642: # DECLARE_CYGWIN_DLL( DllMain ); renatofilho@642: # #endif renatofilho@642: # HINSTANCE __hDllInstance_base; renatofilho@642: # renatofilho@642: # BOOL APIENTRY renatofilho@642: # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) renatofilho@642: # { renatofilho@642: # __hDllInstance_base = hInst; renatofilho@642: # return TRUE; renatofilho@642: # } renatofilho@642: # /* ltdll.c ends here */ renatofilho@642: ])# _LT_AC_FILE_LTDLL_C renatofilho@642: renatofilho@642: renatofilho@642: # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) renatofilho@642: # --------------------------------- renatofilho@642: AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) renatofilho@642: renatofilho@642: renatofilho@642: # old names renatofilho@642: AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) renatofilho@642: AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) renatofilho@642: AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) renatofilho@642: AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) renatofilho@642: AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) renatofilho@642: AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) renatofilho@642: AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) renatofilho@642: renatofilho@642: # This is just to silence aclocal about the macro not being used renatofilho@642: ifelse([AC_DISABLE_FAST_INSTALL]) renatofilho@642: renatofilho@642: AC_DEFUN([LT_AC_PROG_GCJ], renatofilho@642: [AC_CHECK_TOOL(GCJ, gcj, no) renatofilho@642: test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" renatofilho@642: AC_SUBST(GCJFLAGS) renatofilho@642: ]) renatofilho@642: renatofilho@642: AC_DEFUN([LT_AC_PROG_RC], renatofilho@642: [AC_CHECK_TOOL(RC, windres, no) renatofilho@642: ]) renatofilho@642: renatofilho@642: ############################################################ renatofilho@642: # NOTE: This macro has been submitted for inclusion into # renatofilho@642: # GNU Autoconf as AC_PROG_SED. When it is available in # renatofilho@642: # a released version of Autoconf we should remove this # renatofilho@642: # macro and use it instead. # renatofilho@642: ############################################################ renatofilho@642: # LT_AC_PROG_SED renatofilho@642: # -------------- renatofilho@642: # Check for a fully-functional sed program, that truncates renatofilho@642: # as few characters as possible. Prefer GNU sed if found. renatofilho@642: AC_DEFUN([LT_AC_PROG_SED], renatofilho@642: [AC_MSG_CHECKING([for a sed that does not truncate output]) renatofilho@642: AC_CACHE_VAL(lt_cv_path_SED, renatofilho@642: [# Loop through the user's path and test for sed and gsed. renatofilho@642: # Then use that list of sed's as ones to test for truncation. renatofilho@642: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR renatofilho@642: for as_dir in $PATH renatofilho@642: do renatofilho@642: IFS=$as_save_IFS renatofilho@642: test -z "$as_dir" && as_dir=. renatofilho@642: for lt_ac_prog in sed gsed; do renatofilho@642: for ac_exec_ext in '' $ac_executable_extensions; do renatofilho@642: if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then renatofilho@642: lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" renatofilho@642: fi renatofilho@642: done renatofilho@642: done renatofilho@642: done renatofilho@642: lt_ac_max=0 renatofilho@642: lt_ac_count=0 renatofilho@642: # Add /usr/xpg4/bin/sed as it is typically found on Solaris renatofilho@642: # along with /bin/sed that truncates output. renatofilho@642: for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do renatofilho@642: test ! -f $lt_ac_sed && continue renatofilho@642: cat /dev/null > conftest.in renatofilho@642: lt_ac_count=0 renatofilho@642: echo $ECHO_N "0123456789$ECHO_C" >conftest.in renatofilho@642: # Check for GNU sed and select it if it is found. renatofilho@642: if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then renatofilho@642: lt_cv_path_SED=$lt_ac_sed renatofilho@642: break renatofilho@642: fi renatofilho@642: while true; do renatofilho@642: cat conftest.in conftest.in >conftest.tmp renatofilho@642: mv conftest.tmp conftest.in renatofilho@642: cp conftest.in conftest.nl renatofilho@642: echo >>conftest.nl renatofilho@642: $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break renatofilho@642: cmp -s conftest.out conftest.nl || break renatofilho@642: # 10000 chars as input seems more than enough renatofilho@642: test $lt_ac_count -gt 10 && break renatofilho@642: lt_ac_count=`expr $lt_ac_count + 1` renatofilho@642: if test $lt_ac_count -gt $lt_ac_max; then renatofilho@642: lt_ac_max=$lt_ac_count renatofilho@642: lt_cv_path_SED=$lt_ac_sed renatofilho@642: fi renatofilho@642: done renatofilho@642: done renatofilho@642: ]) renatofilho@642: SED=$lt_cv_path_SED renatofilho@642: AC_MSG_RESULT([$SED]) renatofilho@642: ])