1 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
16 # serial 48 AC_PROG_LIBTOOL
19 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
20 # -----------------------------------------------------------
21 # If this macro is not defined by Autoconf, define it here.
22 m4_ifdef([AC_PROVIDE_IFELSE],
24 [m4_define([AC_PROVIDE_IFELSE],
25 [m4_ifdef([AC_PROVIDE_$1],
31 AC_DEFUN([AC_PROG_LIBTOOL],
32 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
33 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
34 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
35 AC_PROVIDE_IFELSE([AC_PROG_CXX],
37 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
39 dnl And a similar setup for Fortran 77 support
40 AC_PROVIDE_IFELSE([AC_PROG_F77],
42 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
45 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
46 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
47 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
48 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
50 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
52 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
55 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
56 ifdef([A][M_PROG_GCJ],
57 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
58 ifdef([LT_AC_PROG_GCJ],
59 [define([LT_AC_PROG_GCJ],
60 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
66 AC_DEFUN([_AC_PROG_LIBTOOL],
67 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
70 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
72 # This can be used to rebuild libtool when needed
73 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
75 # Always use our own libtool.
76 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
79 # Prevent multiple expansion
80 define([AC_PROG_LIBTOOL], [])
86 AC_DEFUN([AC_LIBTOOL_SETUP],
88 AC_REQUIRE([AC_ENABLE_SHARED])dnl
89 AC_REQUIRE([AC_ENABLE_STATIC])dnl
90 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
91 AC_REQUIRE([AC_CANONICAL_HOST])dnl
92 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
93 AC_REQUIRE([AC_PROG_CC])dnl
94 AC_REQUIRE([AC_PROG_LD])dnl
95 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
96 AC_REQUIRE([AC_PROG_NM])dnl
98 AC_REQUIRE([AC_PROG_LN_S])dnl
99 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
100 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
101 AC_REQUIRE([AC_OBJEXT])dnl
102 AC_REQUIRE([AC_EXEEXT])dnl
105 AC_LIBTOOL_SYS_MAX_CMD_LEN
106 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
109 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
110 _LT_AC_PROG_ECHO_BACKSLASH
114 # AIX sometimes has problems with the GCC collect2 program. For some
115 # reason, if we set the COLLECT_NAMES environment variable, the problems
116 # vanish in a puff of smoke.
117 if test "X${COLLECT_NAMES+set}" != Xset; then
124 # Sed substitution that helps us do robust quoting. It backslashifies
125 # metacharacters that are still active within double-quoted strings.
126 Xsed='sed -e 1s/^X//'
127 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
129 # Same as above, but do not quote variable references.
130 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
132 # Sed substitution to delay expansion of an escaped shell variable in a
133 # double_quote_subst'ed string.
134 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
136 # Sed substitution to avoid accidental globbing in evaled expressions
137 no_glob_subst='s/\*/\\\*/g'
143 default_ofile=libtool
146 # All known linkers require a `.a' archive for static linking (except MSVC,
147 # which needs '.lib').
149 ltmain="$ac_aux_dir/ltmain.sh"
150 ofile="$default_ofile"
151 with_gnu_ld="$lt_cv_prog_gnu_ld"
153 AC_CHECK_TOOL(AR, ar, false)
154 AC_CHECK_TOOL(RANLIB, ranlib, :)
155 AC_CHECK_TOOL(STRIP, strip, :)
160 # Set sane defaults for various variables
161 test -z "$AR" && AR=ar
162 test -z "$AR_FLAGS" && AR_FLAGS=cru
163 test -z "$AS" && AS=as
164 test -z "$CC" && CC=cc
165 test -z "$LTCC" && LTCC=$CC
166 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
167 test -z "$DLLTOOL" && DLLTOOL=dlltool
168 test -z "$LD" && LD=ld
169 test -z "$LN_S" && LN_S="ln -s"
170 test -z "$MAGIC_CMD" && MAGIC_CMD=file
171 test -z "$NM" && NM=nm
172 test -z "$SED" && SED=sed
173 test -z "$OBJDUMP" && OBJDUMP=objdump
174 test -z "$RANLIB" && RANLIB=:
175 test -z "$STRIP" && STRIP=:
176 test -z "$ac_objext" && ac_objext=o
178 # Determine commands to create old-style static archives.
179 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
180 old_postinstall_cmds='chmod 644 $oldlib'
181 old_postuninstall_cmds=
183 if test -n "$RANLIB"; then
186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
189 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
192 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
195 _LT_CC_BASENAME([$compiler])
197 # Only perform the check for file, if the check method requires it
198 case $deplibs_check_method in
200 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
207 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
208 enable_win32_dll=yes, enable_win32_dll=no)
210 AC_ARG_ENABLE([libtool-lock],
211 [AC_HELP_STRING([--disable-libtool-lock],
212 [avoid locking (might break parallel builds)])])
213 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
216 [AC_HELP_STRING([--with-pic],
217 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
218 [pic_mode="$withval"],
220 test -z "$pic_mode" && pic_mode=default
222 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
224 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
225 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
226 # calls AC_LIBTOOL_CONFIG and creates libtool.
230 # Use C for the default configuration in the libtool script
232 AC_LIBTOOL_LANG_C_CONFIG
239 AC_DEFUN([_LT_VERSION_CHECK],
240 [AC_MSG_CHECKING([for correct ltmain.sh version])
241 if test "x$ltmain" = "x" ; then
245 *** @<:@Gentoo@:>@ sanity check failed! ***
246 *** \$ltmain is not defined, please check the patch for consistency! ***
249 gentoo_lt_version="1.5.22"
250 gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"`
251 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
255 *** @<:@Gentoo@:>@ sanity check failed! ***
256 *** libtool.m4 and ltmain.sh have a version mismatch! ***
257 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
261 libtoolize --copy --force
263 if appropriate, please contact the maintainer of this
264 package (or your distribution) for help.
269 ])# _LT_VERSION_CHECK
272 # _LT_AC_SYS_COMPILER
273 # -------------------
274 AC_DEFUN([_LT_AC_SYS_COMPILER],
275 [AC_REQUIRE([AC_PROG_CC])dnl
277 # If no C compiler was specified, use CC.
280 # If no C compiler flags were specified, use CFLAGS.
281 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
283 # Allow CC to be a program name with arguments.
285 ])# _LT_AC_SYS_COMPILER
288 # _LT_CC_BASENAME(CC)
289 # -------------------
290 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
291 AC_DEFUN([_LT_CC_BASENAME],
292 [for cc_temp in $1""; do
294 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
295 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
300 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
304 # _LT_COMPILER_BOILERPLATE
305 # ------------------------
306 # Check for compiler boilerplate output or warnings with
307 # the simple compiler test code.
308 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
309 [ac_outfile=conftest.$ac_objext
310 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
311 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
312 _lt_compiler_boilerplate=`cat conftest.err`
314 ])# _LT_COMPILER_BOILERPLATE
317 # _LT_LINKER_BOILERPLATE
318 # ----------------------
319 # Check for linker boilerplate output or warnings with
320 # the simple link test code.
321 AC_DEFUN([_LT_LINKER_BOILERPLATE],
322 [ac_outfile=conftest.$ac_objext
323 printf "$lt_simple_link_test_code" >conftest.$ac_ext
324 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
325 _lt_linker_boilerplate=`cat conftest.err`
327 ])# _LT_LINKER_BOILERPLATE
330 # _LT_AC_SYS_LIBPATH_AIX
331 # ----------------------
332 # Links a minimal program and checks the executable
333 # for the system default hardcoded library path. In most cases,
334 # this is /usr/lib:/lib, but when the MPI compilers are used
335 # the location of the communication and MPI libs are included too.
336 # If we don't find anything, use the default library path according
337 # to the aix ld manual.
338 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
339 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
340 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
342 # Check for a 64-bit object if we didn't find anything.
343 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; }
345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
346 ])# _LT_AC_SYS_LIBPATH_AIX
349 # _LT_AC_SHELL_INIT(ARG)
350 # ----------------------
351 AC_DEFUN([_LT_AC_SHELL_INIT],
352 [ifdef([AC_DIVERSION_NOTICE],
353 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
354 [AC_DIVERT_PUSH(NOTICE)])
357 ])# _LT_AC_SHELL_INIT
360 # _LT_AC_PROG_ECHO_BACKSLASH
361 # --------------------------
362 # Add some code to the start of the generated configure script which
363 # will find an echo command which doesn't interpret backslashes.
364 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
366 # Check that we are running under the correct shell.
367 SHELL=${CONFIG_SHELL-/bin/sh}
371 # Remove one level of quotation (which was required for Make).
372 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
377 if test "X[$]1" = X--no-reexec; then
378 # Discard the --no-reexec flag, and continue.
380 elif test "X[$]1" = X--fallback-echo; then
381 # Avoid inline document here, it may be left over
383 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
384 # Yippee, $echo works!
387 # Restart under the correct shell.
388 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
391 if test "X[$]1" = X--fallback-echo; then
392 # used as fallback echo
400 # The HP-UX ksh and POSIX shell print the target directory to stdout
402 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
404 if test -z "$ECHO"; then
405 if test "X${echo_test_string+set}" != Xset; then
406 # find a string as large as possible, as long as the shell can cope with it
407 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
408 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
409 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
410 echo_test_string=`eval $cmd` &&
411 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
418 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
419 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
420 test "X$echo_testing_string" = "X$echo_test_string"; then
423 # The Solaris, AIX, and Digital Unix default echo programs unquote
424 # backslashes. This makes it impossible to quote backslashes using
425 # echo "$something" | sed 's/\\/\\\\/g'
427 # So, first we look for a working echo in the user's PATH.
429 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
430 for dir in $PATH /usr/ucb; do
432 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
433 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
434 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
435 test "X$echo_testing_string" = "X$echo_test_string"; then
442 if test "X$echo" = Xecho; then
443 # We didn't find a better echo, so look for alternatives.
444 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
445 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
446 test "X$echo_testing_string" = "X$echo_test_string"; then
447 # This shell has a builtin print -r that does the trick.
449 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
450 test "X$CONFIG_SHELL" != X/bin/ksh; then
451 # If we have ksh, try running configure again with it.
452 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
453 export ORIGINAL_CONFIG_SHELL
454 CONFIG_SHELL=/bin/ksh
456 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
460 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
461 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
462 test "X$echo_testing_string" = "X$echo_test_string"; then
465 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
466 test "X$echo_testing_string" = 'X\t' &&
467 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
468 test "X$echo_testing_string" = "X$echo_test_string"; then
469 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
471 SHELL="$CONFIG_SHELL"
473 echo="$CONFIG_SHELL [$]0 --fallback-echo"
474 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
475 test "X$echo_testing_string" = 'X\t' &&
476 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
477 test "X$echo_testing_string" = "X$echo_test_string"; then
478 echo="$CONFIG_SHELL [$]0 --fallback-echo"
480 # maybe with a smaller string...
483 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
484 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
491 if test "$prev" != 'sed 50q "[$]0"'; then
492 echo_test_string=`eval $prev`
493 export echo_test_string
494 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
496 # Oops. We lost completely, so just stick with echo.
505 # Copy echo and quote the copy suitably for passing to libtool from
506 # the Makefile, instead of quoting the original, which is used later.
508 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
509 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
513 ])])# _LT_AC_PROG_ECHO_BACKSLASH
518 AC_DEFUN([_LT_AC_LOCK],
519 [AC_ARG_ENABLE([libtool-lock],
520 [AC_HELP_STRING([--disable-libtool-lock],
521 [avoid locking (might break parallel builds)])])
522 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
524 # Some flags need to be propagated to the compiler or linker for good
528 # Find out which ABI we are using.
529 echo 'int i;' > conftest.$ac_ext
530 if AC_TRY_EVAL(ac_compile); then
531 case `/usr/bin/file conftest.$ac_objext` in
543 # Find out which ABI we are using.
544 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
545 if AC_TRY_EVAL(ac_compile); then
546 if test "$lt_cv_prog_gnu_ld" = yes; then
547 case `/usr/bin/file conftest.$ac_objext` in
549 LD="${LD-ld} -melf32bsmip"
552 LD="${LD-ld} -melf32bmipn32"
555 LD="${LD-ld} -melf64bmip"
559 case `/usr/bin/file conftest.$ac_objext` in
575 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
576 # Find out which ABI we are using.
577 echo 'int i;' > conftest.$ac_ext
578 if AC_TRY_EVAL(ac_compile); then
579 case `/usr/bin/file conftest.o` in
583 LD="${LD-ld} -m elf_i386"
585 ppc64-*linux*|powerpc64-*linux*)
586 LD="${LD-ld} -m elf32ppclinux"
589 LD="${LD-ld} -m elf_s390"
592 LD="${LD-ld} -m elf32_sparc"
599 LD="${LD-ld} -m elf_x86_64"
601 ppc*-*linux*|powerpc*-*linux*)
602 LD="${LD-ld} -m elf64ppc"
605 LD="${LD-ld} -m elf64_s390"
608 LD="${LD-ld} -m elf64_sparc"
618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
619 SAVE_CFLAGS="$CFLAGS"
620 CFLAGS="$CFLAGS -belf"
621 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
623 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
625 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
626 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
627 CFLAGS="$SAVE_CFLAGS"
631 # Find out which ABI we are using.
632 echo 'int i;' > conftest.$ac_ext
633 if AC_TRY_EVAL(ac_compile); then
634 case `/usr/bin/file conftest.o` in
636 case $lt_cv_prog_gnu_ld in
637 yes*) LD="${LD-ld} -m elf64_sparc" ;;
638 *) LD="${LD-ld} -64" ;;
646 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
647 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
648 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
649 AC_CHECK_TOOL(AS, as, false)
650 AC_CHECK_TOOL(OBJDUMP, objdump, false)
655 need_locks="$enable_libtool_lock"
660 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
661 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
662 # ----------------------------------------------------------------
663 # Check whether the given compiler option works
664 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
665 [AC_REQUIRE([LT_AC_PROG_SED])
666 AC_CACHE_CHECK([$1], [$2],
668 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
669 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
670 lt_compiler_flag="$3"
671 # Insert the option either (1) after the last *FLAGS variable, or
672 # (2) before a word containing "conftest.", or (3) at the end.
673 # Note that $ac_compile itself does not contain backslashes and begins
674 # with a dollar sign (not a hyphen), so the echo should work correctly.
675 # The option is referenced via a variable to avoid confusing sed.
676 lt_compile=`echo "$ac_compile" | $SED \
677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
678 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
679 -e 's:$: $lt_compiler_flag:'`
680 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
681 (eval "$lt_compile" 2>conftest.err)
683 cat conftest.err >&AS_MESSAGE_LOG_FD
684 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
685 if (exit $ac_status) && test -s "$ac_outfile"; then
686 # The compiler can only warn and ignore the option if not recognized
687 # So say no if there are warnings other than the usual output.
688 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
697 if test x"[$]$2" = xyes; then
698 ifelse([$5], , :, [$5])
700 ifelse([$6], , :, [$6])
702 ])# AC_LIBTOOL_COMPILER_OPTION
705 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
706 # [ACTION-SUCCESS], [ACTION-FAILURE])
707 # ------------------------------------------------------------
708 # Check whether the given compiler option works
709 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
710 [AC_CACHE_CHECK([$1], [$2],
712 save_LDFLAGS="$LDFLAGS"
713 LDFLAGS="$LDFLAGS $3"
714 printf "$lt_simple_link_test_code" > conftest.$ac_ext
715 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
716 # The linker can only warn and ignore the option if not recognized
717 # So say no if there are warnings
718 if test -s conftest.err; then
719 # Append any errors to the config.log.
720 cat conftest.err 1>&AS_MESSAGE_LOG_FD
721 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
723 if diff conftest.exp conftest.er2 >/dev/null; then
731 LDFLAGS="$save_LDFLAGS"
734 if test x"[$]$2" = xyes; then
735 ifelse([$4], , :, [$4])
737 ifelse([$5], , :, [$5])
739 ])# AC_LIBTOOL_LINKER_OPTION
742 # AC_LIBTOOL_SYS_MAX_CMD_LEN
743 # --------------------------
744 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
745 [# find the maximum length of command line arguments
746 AC_MSG_CHECKING([the maximum length of command line arguments])
747 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
753 # On DJGPP, this test can blow up pretty badly due to problems in libc
754 # (any single argument exceeding 2000 bytes causes a buffer overrun
755 # during glob expansion). Even if it were fixed, the result of this
756 # check would be larger than it should be.
757 lt_cv_sys_max_cmd_len=12288; # 12K is about right
761 # Under GNU Hurd, this test is not required because there is
762 # no limit to the length of command line arguments.
763 # Libtool will interpret -1 as no limit whatsoever
764 lt_cv_sys_max_cmd_len=-1;
768 # On Win9x/ME, this test blows up -- it succeeds, but takes
769 # about 5 minutes as the teststring grows exponentially.
770 # Worse, since 9x/ME are not pre-emptively multitasking,
771 # you end up with a "frozen" computer, even though with patience
772 # the test eventually succeeds (with a max line length of 256k).
773 # Instead, let's just punt: use the minimum linelength reported by
774 # all of the supported platforms: 8192 (on NT/2K/XP).
775 lt_cv_sys_max_cmd_len=8192;
779 # On AmigaOS with pdksh, this test takes hours, literally.
780 # So we just punt and use a minimum line length of 8192.
781 lt_cv_sys_max_cmd_len=8192;
784 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
785 # This has been around since 386BSD, at least. Likely further.
786 if test -x /sbin/sysctl; then
787 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
788 elif test -x /usr/sbin/sysctl; then
789 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
791 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
793 # And add a safety zone
794 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
799 # We know the value 262144 and hardcode it with a safety zone (like BSD)
800 lt_cv_sys_max_cmd_len=196608
804 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
805 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
806 # nice to cause kernel panics so lets avoid the loop below.
807 # First set a reasonable default.
808 lt_cv_sys_max_cmd_len=16384
810 if test -x /sbin/sysconfig; then
811 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
812 *1*) lt_cv_sys_max_cmd_len=-1 ;;
817 lt_cv_sys_max_cmd_len=102400
819 sysv5* | sco5v6* | sysv4.2uw2*)
820 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
821 if test -n "$kargmax"; then
822 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
824 lt_cv_sys_max_cmd_len=32768
828 # If test is not a shell built-in, we'll probably end up computing a
829 # maximum length that is only half of the actual maximum length, but
831 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
832 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
833 = "XX$teststring") >/dev/null 2>&1 &&
834 new_result=`expr "X$teststring" : ".*" 2>&1` &&
835 lt_cv_sys_max_cmd_len=$new_result &&
836 test $i != 17 # 1/2 MB should be enough
839 teststring=$teststring$teststring
842 # Add a significant safety factor because C++ compilers can tack on massive
843 # amounts of additional arguments before passing them to the linker.
844 # It appears as though 1/2 is a usable value.
845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
849 if test -n $lt_cv_sys_max_cmd_len ; then
850 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
854 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
859 AC_DEFUN([_LT_AC_CHECK_DLFCN],
860 [AC_CHECK_HEADERS(dlfcn.h)dnl
861 ])# _LT_AC_CHECK_DLFCN
864 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
865 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
866 # ---------------------------------------------------------------------
867 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
868 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
869 if test "$cross_compiling" = yes; then :
872 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
873 lt_status=$lt_dlunknown
874 cat > conftest.$ac_ext <<EOF
875 [#line __oline__ "configure"
876 #include "confdefs.h"
885 # define LT_DLGLOBAL RTLD_GLOBAL
888 # define LT_DLGLOBAL DL_GLOBAL
890 # define LT_DLGLOBAL 0
894 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
895 find out it does not work in some platform. */
896 #ifndef LT_DLLAZY_OR_NOW
898 # define LT_DLLAZY_OR_NOW RTLD_LAZY
901 # define LT_DLLAZY_OR_NOW DL_LAZY
904 # define LT_DLLAZY_OR_NOW RTLD_NOW
907 # define LT_DLLAZY_OR_NOW DL_NOW
909 # define LT_DLLAZY_OR_NOW 0
917 extern "C" void exit (int);
920 void fnord() { int i=42;}
923 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
924 int status = $lt_dlunknown;
928 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
929 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
930 /* dlclose (self); */
938 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
939 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
942 x$lt_dlno_uscore) $1 ;;
943 x$lt_dlneed_uscore) $2 ;;
944 x$lt_dlunknown|x*) $3 ;;
952 ])# _LT_AC_TRY_DLOPEN_SELF
955 # AC_LIBTOOL_DLOPEN_SELF
956 # ----------------------
957 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
958 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
959 if test "x$enable_dlopen" != xyes; then
960 enable_dlopen=unknown
961 enable_dlopen_self=unknown
962 enable_dlopen_self_static=unknown
969 lt_cv_dlopen="load_add_on"
971 lt_cv_dlopen_self=yes
975 lt_cv_dlopen="LoadLibrary"
980 lt_cv_dlopen="dlopen"
985 # if libdl is installed we need to link against it
986 AC_CHECK_LIB([dl], [dlopen],
987 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
990 lt_cv_dlopen_self=yes
995 AC_CHECK_FUNC([shl_load],
996 [lt_cv_dlopen="shl_load"],
997 [AC_CHECK_LIB([dld], [shl_load],
998 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
999 [AC_CHECK_FUNC([dlopen],
1000 [lt_cv_dlopen="dlopen"],
1001 [AC_CHECK_LIB([dl], [dlopen],
1002 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1003 [AC_CHECK_LIB([svld], [dlopen],
1004 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1005 [AC_CHECK_LIB([dld], [dld_link],
1006 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1015 if test "x$lt_cv_dlopen" != xno; then
1021 case $lt_cv_dlopen in
1023 save_CPPFLAGS="$CPPFLAGS"
1024 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1026 save_LDFLAGS="$LDFLAGS"
1027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1030 LIBS="$lt_cv_dlopen_libs $LIBS"
1032 AC_CACHE_CHECK([whether a program can dlopen itself],
1033 lt_cv_dlopen_self, [dnl
1034 _LT_AC_TRY_DLOPEN_SELF(
1035 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1036 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1039 if test "x$lt_cv_dlopen_self" = xyes; then
1040 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1041 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1042 lt_cv_dlopen_self_static, [dnl
1043 _LT_AC_TRY_DLOPEN_SELF(
1044 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1045 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1049 CPPFLAGS="$save_CPPFLAGS"
1050 LDFLAGS="$save_LDFLAGS"
1055 case $lt_cv_dlopen_self in
1056 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1057 *) enable_dlopen_self=unknown ;;
1060 case $lt_cv_dlopen_self_static in
1061 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1062 *) enable_dlopen_self_static=unknown ;;
1065 ])# AC_LIBTOOL_DLOPEN_SELF
1068 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1069 # ---------------------------------
1070 # Check to see if options -c and -o are simultaneously supported by compiler
1071 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1072 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1073 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1074 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1075 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1076 $rm -r conftest 2>/dev/null
1080 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1082 lt_compiler_flag="-o out/conftest2.$ac_objext"
1083 # Insert the option either (1) after the last *FLAGS variable, or
1084 # (2) before a word containing "conftest.", or (3) at the end.
1085 # Note that $ac_compile itself does not contain backslashes and begins
1086 # with a dollar sign (not a hyphen), so the echo should work correctly.
1087 lt_compile=`echo "$ac_compile" | $SED \
1088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1089 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1090 -e 's:$: $lt_compiler_flag:'`
1091 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1092 (eval "$lt_compile" 2>out/conftest.err)
1094 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1095 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1096 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1098 # The compiler can only warn and ignore the option if not recognized
1099 # So say no if there are warnings
1100 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1101 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1102 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1103 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1106 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1108 # SGI C++ compiler will create directory out/ii_files/ for
1109 # template instantiation
1110 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1111 $rm out/* && rmdir out
1116 ])# AC_LIBTOOL_PROG_CC_C_O
1119 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1120 # -----------------------------------------
1121 # Check to see if we can do hard links to lock some files if needed
1122 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1123 [AC_REQUIRE([_LT_AC_LOCK])dnl
1125 hard_links="nottested"
1126 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1127 # do not overwrite the value of need_locks provided by the user
1128 AC_MSG_CHECKING([if we can lock with hard links])
1131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1133 ln conftest.a conftest.b 2>&5 || hard_links=no
1134 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1135 AC_MSG_RESULT([$hard_links])
1136 if test "$hard_links" = no; then
1137 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1143 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1148 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1149 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1150 [rm -f .libs 2>/dev/null
1151 mkdir .libs 2>/dev/null
1152 if test -d .libs; then
1155 # MS-DOS does not allow filenames that begin with a dot.
1158 rmdir .libs 2>/dev/null])
1159 objdir=$lt_cv_objdir
1160 ])# AC_LIBTOOL_OBJDIR
1163 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1164 # ----------------------------------------------
1165 # Check hardcoding attributes.
1166 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1167 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1168 _LT_AC_TAGVAR(hardcode_action, $1)=
1169 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1170 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1171 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1173 # We can hardcode non-existant directories.
1174 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1175 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1176 # have to relink, otherwise we might link with an installed library
1177 # when we should be linking with a yet-to-be-installed one
1178 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1179 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1180 # Linking always hardcodes the temporary library directory.
1181 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1183 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1184 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1187 # We cannot hardcode anything, or else we can only hardcode existing
1189 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1191 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1193 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1194 # Fast installation is not supported
1195 enable_fast_install=no
1196 elif test "$shlibpath_overrides_runpath" = yes ||
1197 test "$enable_shared" = no; then
1198 # Fast installation is not necessary
1199 enable_fast_install=needless
1201 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1204 # AC_LIBTOOL_SYS_LIB_STRIP
1205 # ------------------------
1206 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1209 AC_MSG_CHECKING([whether stripping libraries is possible])
1210 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1213 AC_MSG_RESULT([yes])
1215 # FIXME - insert some real tests, host_os isn't really good enough
1218 if test -n "$STRIP" ; then
1219 striplib="$STRIP -x"
1220 AC_MSG_RESULT([yes])
1230 ])# AC_LIBTOOL_SYS_LIB_STRIP
1233 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1234 # -----------------------------
1235 # PORTME Fill in your ld.so characteristics
1236 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1237 [AC_MSG_CHECKING([dynamic linker characteristics])
1239 libname_spec='lib$name'
1247 shlibpath_overrides_runpath=unknown
1249 dynamic_linker="$host_os ld.so"
1250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1251 if test "$GCC" = yes; then
1252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1253 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1254 # if the path contains ";" then we assume it to be the separator
1255 # otherwise default to the standard path separator (i.e. ":") - it is
1256 # assumed that no part of a normal pathname contains ";" but that should
1257 # okay in the real world where ";" in dirpaths is itself problematic.
1258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1265 need_lib_prefix=unknown
1266 hardcode_into_libs=no
1268 # when you set need_version to no, make sure it does not cause -set_version
1269 # flags to be left without arguments
1270 need_version=unknown
1275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1276 shlibpath_var=LIBPATH
1278 # AIX 3 has no versioning support, so we append a major version to the name.
1279 soname_spec='${libname}${release}${shared_ext}$major'
1286 hardcode_into_libs=yes
1287 if test "$host_cpu" = ia64; then
1288 # AIX 5 supports IA64
1289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1290 shlibpath_var=LD_LIBRARY_PATH
1292 # With GCC up to 2.95.x, collect2 would create an import file
1293 # for dependence libraries. The import file would start with
1294 # the line `#! .'. This would cause the generated library to
1295 # depend on `.', always an invalid library. This was fixed in
1296 # development snapshots of GCC prior to 3.0.
1298 aix4 | aix4.[[01]] | aix4.[[01]].*)
1299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1309 # soname into executable. Probably we can add versioning support to
1310 # collect2, so additional links can be useful in future.
1311 if test "$aix_use_runtimelinking" = yes; then
1312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1313 # instead of lib<name>.a to let people know that these are not
1314 # typical AIX shared libraries.
1315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1317 # We preserve .a as extension for shared libraries through AIX4.2
1318 # and later when we are not doing run time linking.
1319 library_names_spec='${libname}${release}.a $libname.a'
1320 soname_spec='${libname}${release}${shared_ext}$major'
1322 shlibpath_var=LIBPATH
1327 library_names_spec='$libname.ixlibrary $libname.a'
1328 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1329 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'
1333 library_names_spec='${libname}${shared_ext}'
1334 dynamic_linker="$host_os ld.so"
1335 shlibpath_var=LIBRARY_PATH
1341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1342 soname_spec='${libname}${release}${shared_ext}$major'
1343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1344 shlibpath_var=LD_LIBRARY_PATH
1345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1347 # the default ld.so.conf also contains /usr/contrib/lib and
1348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1349 # libtool to hard-code these into programs
1352 cygwin* | mingw* | pw32*)
1353 version_type=windows
1358 case $GCC,$host_os in
1359 yes,cygwin* | yes,mingw* | yes,pw32*)
1360 library_names_spec='$libname.dll.a'
1361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1362 postinstall_cmds='base_file=`basename \${file}`~
1363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1364 dldir=$destdir/`dirname \$dlpath`~
1365 test -d \$dldir || mkdir -p \$dldir~
1366 $install_prog $dir/$dlname \$dldir/$dlname~
1367 chmod a+x \$dldir/$dlname'
1368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1369 dlpath=$dir/\$dldll~
1371 shlibpath_overrides_runpath=yes
1375 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1376 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1377 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1380 # MinGW DLLs use traditional 'lib' prefix
1381 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1382 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1383 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1384 # It is most probably a Windows format PATH printed by
1385 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1386 # path with ; separators, and with drive letters. We can handle the
1387 # drive letters (cygwin fileutils understands them), so leave them,
1388 # especially as we might pass files found there to a mingw objdump,
1389 # which wouldn't understand a cygwinified path. Ahh.
1390 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1392 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1396 # pw32 DLLs use 'pw' prefix rather than 'lib'
1397 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1403 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
1404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
1405 supports_anon_versioning=no
1406 case `$LD -v 2>/dev/null` in
1407 *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
1408 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
1409 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
1410 *\ 2.11.*) ;; # other 2.11 versions
1411 *) supports_anon_versioning=yes ;;
1413 if test $supports_anon_versioning = yes; then
1414 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
1415 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
1416 $echo "local: *; };" >> $output_objdir/$libname.ver~
1417 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
1419 $archive_expsym_cmds="$archive_cmds"
1427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1430 dynamic_linker='Win32 ld.exe'
1431 # FIXME: first we should search . and the directory the executable is in
1435 darwin* | rhapsody*)
1436 dynamic_linker="$host_os dyld"
1440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1441 soname_spec='${libname}${release}${major}$shared_ext'
1442 shlibpath_overrides_runpath=yes
1443 shlibpath_var=DYLD_LIBRARY_PATH
1444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1445 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1446 if test "$GCC" = yes; then
1447 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"`
1449 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1459 soname_spec='${libname}${release}${shared_ext}$major'
1460 shlibpath_var=LD_LIBRARY_PATH
1471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1472 soname_spec='${libname}${release}${shared_ext}$major'
1473 shlibpath_var=LD_LIBRARY_PATH
1474 shlibpath_overrides_runpath=no
1475 hardcode_into_libs=yes
1476 dynamic_linker='GNU ld.so'
1479 freebsd* | dragonfly*)
1480 # DragonFly does not have aout. When/if they implement a new
1481 # versioning mechanism, adjust this.
1482 if test -x /usr/bin/objformat; then
1483 objformat=`/usr/bin/objformat`
1486 freebsd[[123]]*) objformat=aout ;;
1490 # Handle Gentoo/FreeBSD as it was Linux
1491 case $host_vendor in
1493 version_type=linux ;;
1495 version_type=freebsd-$objformat ;;
1498 case $version_type in
1500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1505 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1510 soname_spec='${libname}${release}${shared_ext}$major'
1515 shlibpath_var=LD_LIBRARY_PATH
1518 shlibpath_overrides_runpath=yes
1520 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1521 shlibpath_overrides_runpath=yes
1522 hardcode_into_libs=yes
1524 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1525 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1526 shlibpath_overrides_runpath=no
1527 hardcode_into_libs=yes
1529 freebsd*) # from 4.6 on
1530 shlibpath_overrides_runpath=yes
1531 hardcode_into_libs=yes
1540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1541 soname_spec='${libname}${release}${shared_ext}$major'
1542 shlibpath_var=LD_LIBRARY_PATH
1543 hardcode_into_libs=yes
1546 hpux9* | hpux10* | hpux11*)
1547 # Give a soname corresponding to the major version so that dld.sl refuses to
1548 # link against other versions.
1555 hardcode_into_libs=yes
1556 dynamic_linker="$host_os dld.so"
1557 shlibpath_var=LD_LIBRARY_PATH
1558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1560 soname_spec='${libname}${release}${shared_ext}$major'
1561 if test "X$HPUX_IA64_MODE" = X32; then
1562 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1564 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1566 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1570 hardcode_into_libs=yes
1571 dynamic_linker="$host_os dld.sl"
1572 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1573 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1575 soname_spec='${libname}${release}${shared_ext}$major'
1576 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1577 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1581 dynamic_linker="$host_os dld.sl"
1582 shlibpath_var=SHLIB_PATH
1583 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1585 soname_spec='${libname}${release}${shared_ext}$major'
1588 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1589 postinstall_cmds='chmod 555 $lib'
1596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1597 soname_spec='${libname}${release}${shared_ext}$major'
1598 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1599 shlibpath_var=LD_LIBRARY_PATH
1600 shlibpath_overrides_runpath=no
1601 hardcode_into_libs=yes
1604 irix5* | irix6* | nonstopux*)
1606 nonstopux*) version_type=nonstopux ;;
1608 if test "$lt_cv_prog_gnu_ld" = yes; then
1616 soname_spec='${libname}${release}${shared_ext}$major'
1617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1619 irix5* | nonstopux*)
1623 case $LD in # libtool.m4 will add one of these switches to LD
1624 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1625 libsuff= shlibsuff= libmagic=32-bit;;
1626 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1627 libsuff=32 shlibsuff=N32 libmagic=N32;;
1628 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1629 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1630 *) libsuff= shlibsuff= libmagic=never-match;;
1634 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1635 shlibpath_overrides_runpath=no
1636 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1637 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1638 hardcode_into_libs=yes
1641 # No shared lib support for Linux oldld, aout, or coff.
1642 linux*oldld* | linux*aout* | linux*coff*)
1646 # This must be Linux ELF.
1651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1652 soname_spec='${libname}${release}${shared_ext}$major'
1653 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1654 shlibpath_var=LD_LIBRARY_PATH
1655 shlibpath_overrides_runpath=no
1656 # This implies no fast_install, which is unacceptable.
1657 # Some rework will be needed to allow for fast_install
1658 # before this can be enabled.
1659 hardcode_into_libs=yes
1661 # Append ld.so.conf contents to the search path
1662 if test -f /etc/ld.so.conf; then
1663 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' ' '`
1664 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1667 # We used to test for /lib/ld.so.1 and disable shared libraries on
1668 # powerpc, because MkLinux only supported shared libraries with the
1669 # GNU dynamic linker. Since this was broken with cross compilers,
1670 # most powerpc-linux boxes support dynamic linking these days and
1671 # people can always --disable-shared, the test was removed, and we
1672 # assume the GNU/Linux dynamic linker is in use.
1673 dynamic_linker='GNU/Linux ld.so'
1680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1681 soname_spec='${libname}${release}${shared_ext}$major'
1682 shlibpath_var=LD_LIBRARY_PATH
1683 shlibpath_overrides_runpath=no
1684 hardcode_into_libs=yes
1685 dynamic_linker='GNU ld.so'
1692 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1694 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1695 dynamic_linker='NetBSD (a.out) ld.so'
1697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1698 soname_spec='${libname}${release}${shared_ext}$major'
1699 dynamic_linker='NetBSD ld.elf_so'
1701 shlibpath_var=LD_LIBRARY_PATH
1702 shlibpath_overrides_runpath=yes
1703 hardcode_into_libs=yes
1708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1709 shlibpath_var=LD_LIBRARY_PATH
1710 shlibpath_overrides_runpath=yes
1717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1718 soname_spec='${libname}${release}${shared_ext}$major'
1719 shlibpath_var=LD_LIBRARY_PATH
1720 shlibpath_overrides_runpath=yes
1725 sys_lib_dlsearch_path_spec="/usr/lib"
1727 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1729 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1730 *) need_version=no ;;
1732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1734 shlibpath_var=LD_LIBRARY_PATH
1735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1737 openbsd2.[[89]] | openbsd2.[[89]].*)
1738 shlibpath_overrides_runpath=no
1741 shlibpath_overrides_runpath=yes
1745 shlibpath_overrides_runpath=yes
1750 libname_spec='$name'
1753 library_names_spec='$libname${shared_ext} $libname.a'
1754 dynamic_linker='OS/2 ld.exe'
1755 shlibpath_var=LIBPATH
1758 osf3* | osf4* | osf5*)
1762 soname_spec='${libname}${release}${shared_ext}$major'
1763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1764 shlibpath_var=LD_LIBRARY_PATH
1765 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1766 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1774 soname_spec='${libname}${release}${shared_ext}$major'
1775 shlibpath_var=LD_LIBRARY_PATH
1776 shlibpath_overrides_runpath=yes
1777 hardcode_into_libs=yes
1778 # ldd complains unless libraries are executable
1779 postinstall_cmds='chmod +x $lib'
1784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1785 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1786 shlibpath_var=LD_LIBRARY_PATH
1787 shlibpath_overrides_runpath=yes
1788 if test "$with_gnu_ld" = yes; then
1796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1797 soname_spec='${libname}${release}${shared_ext}$major'
1798 shlibpath_var=LD_LIBRARY_PATH
1799 case $host_vendor in
1801 shlibpath_overrides_runpath=no
1803 export_dynamic_flag_spec='${wl}-Blargedynsym'
1804 runpath_var=LD_RUN_PATH
1812 shlibpath_overrides_runpath=no
1813 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1819 if test -d /usr/nec ;then
1821 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1822 soname_spec='$libname${shared_ext}.$major'
1823 shlibpath_var=LD_LIBRARY_PATH
1827 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1828 version_type=freebsd-elf
1831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1832 soname_spec='${libname}${release}${shared_ext}$major'
1833 shlibpath_var=LD_LIBRARY_PATH
1834 hardcode_into_libs=yes
1835 if test "$with_gnu_ld" = yes; then
1836 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1837 shlibpath_overrides_runpath=no
1839 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1840 shlibpath_overrides_runpath=yes
1843 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1847 sys_lib_dlsearch_path_spec='/usr/lib'
1852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1853 soname_spec='${libname}${release}${shared_ext}$major'
1854 shlibpath_var=LD_LIBRARY_PATH
1861 AC_MSG_RESULT([$dynamic_linker])
1862 test "$dynamic_linker" = no && can_build_shared=no
1864 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1865 if test "$GCC" = yes; then
1866 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1868 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1873 AC_DEFUN([_LT_AC_TAGCONFIG],
1874 [AC_ARG_WITH([tags],
1875 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1876 [include additional configurations @<:@automatic@:>@])],
1877 [tagnames="$withval"])
1879 if test -f "$ltmain" && test -n "$tagnames"; then
1880 if test ! -f "${ofile}"; then
1881 AC_MSG_WARN([output file `$ofile' does not exist])
1884 if test -z "$LTCC"; then
1885 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1886 if test -z "$LTCC"; then
1887 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1889 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1892 if test -z "$LTCFLAGS"; then
1893 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1896 # Extract list of available tagged configurations in $ofile.
1897 # Note that this assumes the entire list is on one line.
1898 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1900 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1901 for tagname in $tagnames; do
1903 # Check whether tagname contains only valid characters
1904 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1906 *) AC_MSG_ERROR([invalid tag name: $tagname])
1910 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1912 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1915 # Update the list of available tags.
1916 if test -n "$tagname"; then
1917 echo appending configuration tag \"$tagname\" to $ofile
1921 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1922 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1923 (test "X$CXX" != "Xg++"))) ; then
1924 AC_LIBTOOL_LANG_CXX_CONFIG
1931 if test -n "$F77" && test "X$F77" != "Xno"; then
1932 AC_LIBTOOL_LANG_F77_CONFIG
1939 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1940 AC_LIBTOOL_LANG_GCJ_CONFIG
1947 AC_LIBTOOL_LANG_RC_CONFIG
1951 AC_MSG_ERROR([Unsupported tag name: $tagname])
1955 # Append the new tag name to the list of available tags.
1956 if test -n "$tagname" ; then
1957 available_tags="$available_tags $tagname"
1963 # Now substitute the updated list of available tags.
1964 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1965 mv "${ofile}T" "$ofile"
1969 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1972 ])# _LT_AC_TAGCONFIG
1977 # enable checks for dlopen support
1978 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1979 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1980 ])# AC_LIBTOOL_DLOPEN
1983 # AC_LIBTOOL_WIN32_DLL
1984 # --------------------
1985 # declare package support for building win32 DLLs
1986 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1987 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1988 ])# AC_LIBTOOL_WIN32_DLL
1991 # AC_ENABLE_SHARED([DEFAULT])
1992 # ---------------------------
1993 # implement the --enable-shared flag
1994 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1995 AC_DEFUN([AC_ENABLE_SHARED],
1996 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1997 AC_ARG_ENABLE([shared],
1998 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1999 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2000 [p=${PACKAGE-default}
2002 yes) enable_shared=yes ;;
2003 no) enable_shared=no ;;
2006 # Look at the argument we got. We use all the common list separators.
2007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2008 for pkg in $enableval; do
2010 if test "X$pkg" = "X$p"; then
2017 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2018 ])# AC_ENABLE_SHARED
2023 # set the default shared flag to --disable-shared
2024 AC_DEFUN([AC_DISABLE_SHARED],
2025 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2026 AC_ENABLE_SHARED(no)
2027 ])# AC_DISABLE_SHARED
2030 # AC_ENABLE_STATIC([DEFAULT])
2031 # ---------------------------
2032 # implement the --enable-static flag
2033 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2034 AC_DEFUN([AC_ENABLE_STATIC],
2035 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2036 AC_ARG_ENABLE([static],
2037 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2038 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2039 [p=${PACKAGE-default}
2041 yes) enable_static=yes ;;
2042 no) enable_static=no ;;
2045 # Look at the argument we got. We use all the common list separators.
2046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2047 for pkg in $enableval; do
2049 if test "X$pkg" = "X$p"; then
2056 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2057 ])# AC_ENABLE_STATIC
2062 # set the default static flag to --disable-static
2063 AC_DEFUN([AC_DISABLE_STATIC],
2064 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2065 AC_ENABLE_STATIC(no)
2066 ])# AC_DISABLE_STATIC
2069 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2070 # ---------------------------------
2071 # implement the --enable-fast-install flag
2072 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2073 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2074 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2075 AC_ARG_ENABLE([fast-install],
2076 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2077 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2078 [p=${PACKAGE-default}
2080 yes) enable_fast_install=yes ;;
2081 no) enable_fast_install=no ;;
2083 enable_fast_install=no
2084 # Look at the argument we got. We use all the common list separators.
2085 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2086 for pkg in $enableval; do
2088 if test "X$pkg" = "X$p"; then
2089 enable_fast_install=yes
2095 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2096 ])# AC_ENABLE_FAST_INSTALL
2099 # AC_DISABLE_FAST_INSTALL
2100 # -----------------------
2101 # set the default to --disable-fast-install
2102 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2103 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2104 AC_ENABLE_FAST_INSTALL(no)
2105 ])# AC_DISABLE_FAST_INSTALL
2108 # AC_LIBTOOL_PICMODE([MODE])
2109 # --------------------------
2110 # implement the --with-pic flag
2111 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2112 AC_DEFUN([AC_LIBTOOL_PICMODE],
2113 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2114 pic_mode=ifelse($#,1,$1,default)
2115 ])# AC_LIBTOOL_PICMODE
2120 # This is predefined starting with Autoconf 2.54, so this conditional
2121 # definition can be removed once we require Autoconf 2.54 or later.
2122 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2123 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2124 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2125 then ac_cv_prog_egrep='grep -E'
2126 else ac_cv_prog_egrep='egrep'
2128 EGREP=$ac_cv_prog_egrep
2133 # AC_PATH_TOOL_PREFIX
2134 # -------------------
2135 # find a file program which can recognise shared library
2136 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2137 [AC_REQUIRE([AC_PROG_EGREP])dnl
2138 AC_MSG_CHECKING([for $1])
2139 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2141 [[\\/*] | ?:[\\/]*])
2142 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2145 lt_save_MAGIC_CMD="$MAGIC_CMD"
2146 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2147 dnl $ac_dummy forces splitting on constant user-supplied paths.
2148 dnl POSIX.2 word splitting is done only on the output of word expansions,
2149 dnl not every word. This closes a longstanding sh security hole.
2150 ac_dummy="ifelse([$2], , $PATH, [$2])"
2151 for ac_dir in $ac_dummy; do
2153 test -z "$ac_dir" && ac_dir=.
2154 if test -f $ac_dir/$1; then
2155 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2156 if test -n "$file_magic_test_file"; then
2157 case $deplibs_check_method in
2159 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2160 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2161 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2162 $EGREP "$file_magic_regex" > /dev/null; then
2167 *** Warning: the command libtool uses to detect shared libraries,
2168 *** $file_magic_cmd, produces output that libtool cannot recognize.
2169 *** The result is that libtool may fail to recognize shared libraries
2170 *** as such. This will affect the creation of libtool libraries that
2171 *** depend on shared libraries, but programs linked with such libtool
2172 *** libraries will work regardless of this problem. Nevertheless, you
2173 *** may want to report the problem to your system manager and/or to
2174 *** bug-libtool@gnu.org
2184 MAGIC_CMD="$lt_save_MAGIC_CMD"
2187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2188 if test -n "$MAGIC_CMD"; then
2189 AC_MSG_RESULT($MAGIC_CMD)
2193 ])# AC_PATH_TOOL_PREFIX
2198 # find a file program which can recognise a shared library
2199 AC_DEFUN([AC_PATH_MAGIC],
2200 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2201 if test -z "$lt_cv_path_MAGIC_CMD"; then
2202 if test -n "$ac_tool_prefix"; then
2203 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2213 # find the pathname to the GNU or non-GNU linker
2214 AC_DEFUN([AC_PROG_LD],
2215 [AC_ARG_WITH([gnu-ld],
2216 [AC_HELP_STRING([--with-gnu-ld],
2217 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2218 [test "$withval" = no || with_gnu_ld=yes],
2220 AC_REQUIRE([LT_AC_PROG_SED])dnl
2221 AC_REQUIRE([AC_PROG_CC])dnl
2222 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2223 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2225 if test "$GCC" = yes; then
2226 # Check if gcc -print-prog-name=ld gives a path.
2227 AC_MSG_CHECKING([for ld used by $CC])
2230 # gcc leaves a trailing carriage return which upsets mingw
2231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2236 # Accept absolute paths.
2237 [[\\/]]* | ?:[[\\/]]*)
2238 re_direlt='/[[^/]][[^/]]*/\.\./'
2239 # Canonicalize the pathname of ld
2240 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2241 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2242 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2244 test -z "$LD" && LD="$ac_prog"
2247 # If it fails, then pretend we aren't using GCC.
2251 # If it is relative, then search for the first ld in PATH.
2255 elif test "$with_gnu_ld" = yes; then
2256 AC_MSG_CHECKING([for GNU ld])
2258 AC_MSG_CHECKING([for non-GNU ld])
2260 AC_CACHE_VAL(lt_cv_path_LD,
2261 [if test -z "$LD"; then
2262 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2263 for ac_dir in $PATH; do
2265 test -z "$ac_dir" && ac_dir=.
2266 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2267 lt_cv_path_LD="$ac_dir/$ac_prog"
2268 # Check to see if the program is GNU ld. I'd rather use --version,
2269 # but apparently some variants of GNU ld only accept -v.
2270 # Break only if it was the GNU/non-GNU ld that we prefer.
2271 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2272 *GNU* | *'with BFD'*)
2273 test "$with_gnu_ld" != no && break
2276 test "$with_gnu_ld" != yes && break
2283 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2286 if test -n "$LD"; then
2291 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2298 AC_DEFUN([AC_PROG_LD_GNU],
2299 [AC_REQUIRE([AC_PROG_EGREP])dnl
2300 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2301 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2302 case `$LD -v 2>&1 </dev/null` in
2303 *GNU* | *'with BFD'*)
2304 lt_cv_prog_gnu_ld=yes
2307 lt_cv_prog_gnu_ld=no
2310 with_gnu_ld=$lt_cv_prog_gnu_ld
2314 # AC_PROG_LD_RELOAD_FLAG
2315 # ----------------------
2316 # find reload flag for linker
2317 # -- PORTME Some linkers may need a different reload flag.
2318 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2319 [AC_CACHE_CHECK([for $LD option to reload object files],
2320 lt_cv_ld_reload_flag,
2321 [lt_cv_ld_reload_flag='-r'])
2322 reload_flag=$lt_cv_ld_reload_flag
2323 case $reload_flag in
2325 *) reload_flag=" $reload_flag" ;;
2327 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2330 if test "$GCC" = yes; then
2331 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2333 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2337 ])# AC_PROG_LD_RELOAD_FLAG
2340 # AC_DEPLIBS_CHECK_METHOD
2341 # -----------------------
2342 # how to check for library dependencies
2343 # -- PORTME fill in with the dynamic library characteristics
2344 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2345 [AC_CACHE_CHECK([how to recognise dependent libraries],
2346 lt_cv_deplibs_check_method,
2347 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2348 lt_cv_file_magic_test_file=
2349 lt_cv_deplibs_check_method='unknown'
2350 # Need to set the preceding variable on all platforms that support
2351 # interlibrary dependencies.
2352 # 'none' -- dependencies not supported.
2353 # `unknown' -- same as none, but documents that we really don't know.
2354 # 'pass_all' -- all dependencies passed with no checks.
2355 # 'test_compile' -- check by making test program.
2356 # 'file_magic [[regex]]' -- check by looking for files in library path
2357 # which responds to the $file_magic_cmd with a given extended regex.
2358 # If you have `file' or equivalent on your system and you're not sure
2359 # whether `pass_all' will *always* work, you probably want this one.
2363 lt_cv_deplibs_check_method=pass_all
2367 lt_cv_deplibs_check_method=pass_all
2371 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2372 lt_cv_file_magic_cmd='/usr/bin/file -L'
2373 lt_cv_file_magic_test_file=/shlib/libc.so
2377 # func_win32_libid is a shell function defined in ltmain.sh
2378 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2379 lt_cv_file_magic_cmd='func_win32_libid'
2383 # Base MSYS/MinGW do not provide the 'file' command needed by
2384 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2385 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2386 lt_cv_file_magic_cmd='$OBJDUMP -f'
2389 darwin* | rhapsody*)
2390 lt_cv_deplibs_check_method=pass_all
2393 freebsd* | kfreebsd*-gnu | dragonfly*)
2394 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2397 # Not sure whether the presence of OpenBSD here was a mistake.
2398 # Let's accept both of them until this is cleared up.
2399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2400 lt_cv_file_magic_cmd=/usr/bin/file
2401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2405 lt_cv_deplibs_check_method=pass_all
2410 lt_cv_deplibs_check_method=pass_all
2413 hpux10.20* | hpux11*)
2414 lt_cv_file_magic_cmd=/usr/bin/file
2417 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2418 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2421 [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]']
2422 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2425 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2426 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2432 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2433 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2436 irix5* | irix6* | nonstopux*)
2438 *-32|*"-32 ") libmagic=32-bit;;
2439 *-n32|*"-n32 ") libmagic=N32;;
2440 *-64|*"-64 ") libmagic=64-bit;;
2441 *) libmagic=never-match;;
2443 lt_cv_deplibs_check_method=pass_all
2446 # This must be Linux ELF.
2448 lt_cv_deplibs_check_method=pass_all
2452 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2453 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2455 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2460 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2461 lt_cv_file_magic_cmd=/usr/bin/file
2462 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2466 lt_cv_deplibs_check_method=unknown
2470 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2471 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2473 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2477 osf3* | osf4* | osf5*)
2478 lt_cv_deplibs_check_method=pass_all
2482 lt_cv_deplibs_check_method=pass_all
2486 case $host_vendor in
2488 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]]'
2489 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2492 lt_cv_deplibs_check_method=pass_all
2495 lt_cv_file_magic_cmd='/bin/file'
2496 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2499 lt_cv_file_magic_cmd='/bin/file'
2500 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2501 lt_cv_file_magic_test_file=/lib/libc.so
2504 lt_cv_deplibs_check_method=pass_all
2507 lt_cv_deplibs_check_method=pass_all
2512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2513 lt_cv_deplibs_check_method=pass_all
2517 file_magic_cmd=$lt_cv_file_magic_cmd
2518 deplibs_check_method=$lt_cv_deplibs_check_method
2519 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2520 ])# AC_DEPLIBS_CHECK_METHOD
2525 # find the pathname to a BSD-compatible name lister
2526 AC_DEFUN([AC_PROG_NM],
2527 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2528 [if test -n "$NM"; then
2529 # Let the user override the test.
2532 lt_nm_to_check="${ac_tool_prefix}nm"
2533 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2534 lt_nm_to_check="$lt_nm_to_check nm"
2536 for lt_tmp_nm in $lt_nm_to_check; do
2537 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2538 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2540 test -z "$ac_dir" && ac_dir=.
2541 tmp_nm="$ac_dir/$lt_tmp_nm"
2542 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2543 # Check to see if the nm accepts a BSD-compat flag.
2544 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2545 # nm: unknown option "B" ignored
2546 # Tru64's nm complains that /dev/null is an invalid object file
2547 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2548 */dev/null* | *'Invalid file or object type'*)
2549 lt_cv_path_NM="$tmp_nm -B"
2553 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2555 lt_cv_path_NM="$tmp_nm -p"
2559 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2560 continue # so that we can try to find one that supports BSD flags
2569 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2577 # check for math library
2578 AC_DEFUN([AC_CHECK_LIBM],
2579 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2582 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2583 # These system don't have libm, or don't need it
2586 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2587 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2590 AC_CHECK_LIB(m, cos, LIBM="-lm")
2596 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2597 # -----------------------------------
2598 # sets LIBLTDL to the link flags for the libltdl convenience library and
2599 # LTDLINCL to the include flags for the libltdl header and adds
2600 # --enable-ltdl-convenience to the configure arguments. Note that
2601 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2602 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2603 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2604 # (note the single quotes!). If your package is not flat and you're not
2605 # using automake, define top_builddir and top_srcdir appropriately in
2607 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2608 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2609 case $enable_ltdl_convenience in
2610 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2611 "") enable_ltdl_convenience=yes
2612 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2614 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2615 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2616 # For backwards non-gettext consistent compatibility...
2618 ])# AC_LIBLTDL_CONVENIENCE
2621 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2622 # -----------------------------------
2623 # sets LIBLTDL to the link flags for the libltdl installable library and
2624 # LTDLINCL to the include flags for the libltdl header and adds
2625 # --enable-ltdl-install to the configure arguments. Note that
2626 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2627 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2628 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2629 # '${top_srcdir}/' (note the single quotes!). If your package is not
2630 # flat and you're not using automake, define top_builddir and top_srcdir
2631 # appropriately in the Makefiles.
2632 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2633 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2634 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2635 AC_CHECK_LIB(ltdl, lt_dlinit,
2636 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2637 [if test x"$enable_ltdl_install" = xno; then
2638 AC_MSG_WARN([libltdl not installed, but installation disabled])
2640 enable_ltdl_install=yes
2643 if test x"$enable_ltdl_install" = x"yes"; then
2644 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2645 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2646 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2648 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2652 # For backwards non-gettext consistent compatibility...
2654 ])# AC_LIBLTDL_INSTALLABLE
2659 # enable support for C++ libraries
2660 AC_DEFUN([AC_LIBTOOL_CXX],
2661 [AC_REQUIRE([_LT_AC_LANG_CXX])
2667 AC_DEFUN([_LT_AC_LANG_CXX],
2668 [AC_REQUIRE([AC_PROG_CXX])
2669 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2670 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2673 # _LT_AC_PROG_CXXCPP
2674 # ------------------
2675 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2677 AC_REQUIRE([AC_PROG_CXX])
2678 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2679 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2680 (test "X$CXX" != "Xg++"))) ; then
2683 ])# _LT_AC_PROG_CXXCPP
2687 # enable support for Fortran 77 libraries
2688 AC_DEFUN([AC_LIBTOOL_F77],
2689 [AC_REQUIRE([_LT_AC_LANG_F77])
2695 AC_DEFUN([_LT_AC_LANG_F77],
2696 [AC_REQUIRE([AC_PROG_F77])
2697 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2703 # enable support for GCJ libraries
2704 AC_DEFUN([AC_LIBTOOL_GCJ],
2705 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2711 AC_DEFUN([_LT_AC_LANG_GCJ],
2712 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2713 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2714 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2715 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2716 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2717 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2718 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2724 # enable support for Windows resource files
2725 AC_DEFUN([AC_LIBTOOL_RC],
2726 [AC_REQUIRE([LT_AC_PROG_RC])
2727 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2731 # AC_LIBTOOL_LANG_C_CONFIG
2732 # ------------------------
2733 # Ensure that the configuration vars for the C compiler are
2734 # suitably defined. Those variables are subsequently used by
2735 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2736 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2737 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2741 # Source file extension for C test sources.
2744 # Object file extension for compiled C test sources.
2746 _LT_AC_TAGVAR(objext, $1)=$objext
2748 # Code to be used in simple compile tests
2749 lt_simple_compile_test_code="int some_variable = 0;\n"
2751 # Code to be used in simple link tests
2752 lt_simple_link_test_code='int main(){return(0);}\n'
2756 # save warnings/boilerplate of simple test code
2757 _LT_COMPILER_BOILERPLATE
2758 _LT_LINKER_BOILERPLATE
2760 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2761 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2762 AC_LIBTOOL_PROG_CC_C_O($1)
2763 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2764 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2765 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2766 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2767 AC_LIBTOOL_SYS_LIB_STRIP
2768 AC_LIBTOOL_DLOPEN_SELF
2770 # Report which library types will actually be built
2771 AC_MSG_CHECKING([if libtool supports shared libraries])
2772 AC_MSG_RESULT([$can_build_shared])
2774 AC_MSG_CHECKING([whether to build shared libraries])
2775 test "$can_build_shared" = "no" && enable_shared=no
2777 # On AIX, shared libraries and static libraries use the same namespace, and
2778 # are all built from PIC.
2781 test "$enable_shared" = yes && enable_static=no
2782 if test -n "$RANLIB"; then
2783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2784 postinstall_cmds='$RANLIB $lib'
2789 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2790 test "$enable_shared" = yes && enable_static=no
2794 AC_MSG_RESULT([$enable_shared])
2796 AC_MSG_CHECKING([whether to build static libraries])
2797 # Make sure either enable_shared or enable_static is yes.
2798 test "$enable_shared" = yes || enable_static=yes
2799 AC_MSG_RESULT([$enable_static])
2801 AC_LIBTOOL_CONFIG($1)
2805 ])# AC_LIBTOOL_LANG_C_CONFIG
2808 # AC_LIBTOOL_LANG_CXX_CONFIG
2809 # --------------------------
2810 # Ensure that the configuration vars for the C compiler are
2811 # suitably defined. Those variables are subsequently used by
2812 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2813 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2814 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2816 AC_REQUIRE([AC_PROG_CXX])
2817 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2819 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2820 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2821 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2822 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2823 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2824 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2825 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2826 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2827 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2828 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2829 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2830 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2831 _LT_AC_TAGVAR(module_cmds, $1)=
2832 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2833 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2834 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2835 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2836 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2837 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2839 # Dependencies to place before and after the object being linked:
2840 _LT_AC_TAGVAR(predep_objects, $1)=
2841 _LT_AC_TAGVAR(postdep_objects, $1)=
2842 _LT_AC_TAGVAR(predeps, $1)=
2843 _LT_AC_TAGVAR(postdeps, $1)=
2844 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2846 # Source file extension for C++ test sources.
2849 # Object file extension for compiled C++ test sources.
2851 _LT_AC_TAGVAR(objext, $1)=$objext
2853 # Code to be used in simple compile tests
2854 lt_simple_compile_test_code="int some_variable = 0;\n"
2856 # Code to be used in simple link tests
2857 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2859 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2862 # save warnings/boilerplate of simple test code
2863 _LT_COMPILER_BOILERPLATE
2864 _LT_LINKER_BOILERPLATE
2866 # Allow CC to be a program name with arguments.
2871 lt_save_with_gnu_ld=$with_gnu_ld
2872 lt_save_path_LD=$lt_cv_path_LD
2873 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2874 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2876 $as_unset lt_cv_prog_gnu_ld
2878 if test -n "${lt_cv_path_LDCXX+set}"; then
2879 lt_cv_path_LD=$lt_cv_path_LDCXX
2881 $as_unset lt_cv_path_LD
2883 test -z "${LDCXX+set}" || LD=$LDCXX
2886 _LT_AC_TAGVAR(compiler, $1)=$CC
2887 _LT_CC_BASENAME([$compiler])
2889 # We don't want -fno-exception wen compiling C++ code, so set the
2890 # no_builtin_flag separately
2891 if test "$GXX" = yes; then
2892 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2894 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2897 if test "$GXX" = yes; then
2898 # Set up default GNU C++ configuration
2902 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2903 # archiving commands below assume that GNU ld is being used.
2904 if test "$with_gnu_ld" = yes; then
2905 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2906 _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'
2908 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2909 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2911 # If archive_cmds runs LD, not CC, wlarc should be empty
2912 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2913 # investigate it a little bit more. (MM)
2916 # ancient GNU ld didn't support --whole-archive et. al.
2917 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2918 grep 'no-whole-archive' > /dev/null; then
2919 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2921 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2927 # A generic and very simple default shared library creation
2928 # command for GNU C++ for the case where it uses the native
2929 # linker, instead of GNU ld. If possible, this setting should
2930 # overridden to take advantage of the native linker features on
2931 # the platform it is being used on.
2932 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2935 # Commands to make compiler produce verbose output that lists
2936 # what "hidden" libraries, object files and flags are used when
2937 # linking a shared library.
2938 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2946 # PORTME: fill in a description of your system's C++ link characteristics
2947 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2948 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2951 # FIXME: insert proper C++ library support
2952 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2955 if test "$host_cpu" = ia64; then
2956 # On IA64, the linker does run time linking by default, so we don't
2957 # have to do anything special.
2958 aix_use_runtimelinking=no
2959 exp_sym_flag='-Bexport'
2962 aix_use_runtimelinking=no
2964 # Test if we are trying to use run time linking or normal
2965 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2966 # need to do runtime linking.
2967 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2968 for ld_flag in $LDFLAGS; do
2971 aix_use_runtimelinking=yes
2979 exp_sym_flag='-bexport'
2980 no_entry_flag='-bnoentry'
2983 # When large executables or shared objects are built, AIX ld can
2984 # have problems creating the table of contents. If linking a library
2985 # or program results in "error TOC overflow" add -mminimal-toc to
2986 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2987 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2989 _LT_AC_TAGVAR(archive_cmds, $1)=''
2990 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2991 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2992 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2994 if test "$GXX" = yes; then
2995 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2996 # We only want to do this on AIX 4.2 and lower, the check
2997 # below for broken collect2 doesn't work under 4.3+
2998 collect2name=`${CC} -print-prog-name=collect2`
2999 if test -f "$collect2name" && \
3000 strings "$collect2name" | grep resolve_lib_name >/dev/null
3002 # We have reworked collect2
3003 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3005 # We have old collect2
3006 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3007 # It fails to find uninstalled libraries when the uninstalled
3008 # path is not listed in the libpath. Setting hardcode_minus_L
3009 # to unsupported forces relinking
3010 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3012 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3016 shared_flag='-shared'
3017 if test "$aix_use_runtimelinking" = yes; then
3018 shared_flag="$shared_flag "'${wl}-G'
3022 if test "$host_cpu" = ia64; then
3023 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3024 # chokes on -Wl,-G. The following line is correct:
3027 if test "$aix_use_runtimelinking" = yes; then
3028 shared_flag='${wl}-G'
3030 shared_flag='${wl}-bM:SRE'
3035 # It seems that -bexpall does not export symbols beginning with
3036 # underscore (_), so it is better to generate a list of symbols to export.
3037 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3038 if test "$aix_use_runtimelinking" = yes; then
3039 # Warning - without using the other runtime loading flags (-brtl),
3040 # -berok will link without error, but may produce a broken library.
3041 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3042 # Determine the default libpath from the value encoded in an empty executable.
3043 _LT_AC_SYS_LIBPATH_AIX
3044 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3046 _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"
3048 if test "$host_cpu" = ia64; then
3049 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3050 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3051 _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"
3053 # Determine the default libpath from the value encoded in an empty executable.
3054 _LT_AC_SYS_LIBPATH_AIX
3055 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3056 # Warning - without using the other run time loading flags,
3057 # -berok will link without error, but may produce a broken library.
3058 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3059 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3060 # Exported symbols can be pulled into shared objects from archives
3061 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3062 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3063 # This is similar to how AIX traditionally builds its shared libraries.
3064 _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'
3070 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3071 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3072 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3073 # support --undefined. This deserves some investigation. FIXME
3074 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3076 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3081 case $cc_basename in
3083 # FIXME: insert proper C++ library support
3084 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3089 cygwin* | mingw* | pw32*)
3090 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3091 # as there is no search path for DLLs.
3092 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3093 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3094 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3095 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3097 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3098 _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'
3099 # If the export-symbols file already is a .def file (1st line
3100 # is EXPORTS), use it as is; otherwise, prepend...
3101 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3102 cp $export_symbols $output_objdir/$soname.def;
3104 echo EXPORTS > $output_objdir/$soname.def;
3105 cat $export_symbols >> $output_objdir/$soname.def;
3107 $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'
3109 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3112 darwin* | rhapsody*)
3114 rhapsody* | darwin1.[[012]])
3115 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3118 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3119 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3121 case ${MACOSX_DEPLOYMENT_TARGET} in
3123 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3126 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3132 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3133 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3134 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3135 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3136 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3137 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3139 if test "$GXX" = yes ; then
3140 lt_int_apple_cc_single_mod=no
3141 output_verbose_link_cmd='echo'
3142 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3143 lt_int_apple_cc_single_mod=yes
3145 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3146 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3148 _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'
3150 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3151 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3152 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3153 _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}'
3155 _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}'
3157 _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}'
3159 case $cc_basename in
3161 output_verbose_link_cmd='echo'
3162 _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'
3163 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3164 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3165 _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}'
3166 _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}'
3169 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3176 case $cc_basename in
3178 # FIXME: insert proper C++ library support
3179 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3182 # Green Hills C++ Compiler
3183 # FIXME: insert proper C++ library support
3184 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3187 # FIXME: insert proper C++ library support
3188 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3193 # C++ shared libraries reported to be fairly broken before switch to ELF
3194 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3197 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3199 freebsd* | kfreebsd*-gnu | dragonfly*)
3200 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3202 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3207 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3208 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3209 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3210 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3211 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3212 # but as the default
3213 # location of the library.
3215 case $cc_basename in
3217 # FIXME: insert proper C++ library support
3218 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3221 _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'
3222 # Commands to make compiler produce verbose output that lists
3223 # what "hidden" libraries, object files and flags are used when
3224 # linking a shared library.
3226 # There doesn't appear to be a way to prevent this compiler from
3227 # explicitly linking system object files so we need to strip them
3228 # from the output so that they don't get included in the library
3230 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'
3233 if test "$GXX" = yes; then
3234 _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'
3236 # FIXME: insert proper C++ library support
3237 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3243 if test $with_gnu_ld = no; then
3244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3245 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3249 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3252 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3258 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3259 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3262 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3263 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3264 # but as the default
3265 # location of the library.
3269 case $cc_basename in
3271 # FIXME: insert proper C++ library support
3272 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3277 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3280 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3283 _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'
3286 # Commands to make compiler produce verbose output that lists
3287 # what "hidden" libraries, object files and flags are used when
3288 # linking a shared library.
3290 # There doesn't appear to be a way to prevent this compiler from
3291 # explicitly linking system object files so we need to strip them
3292 # from the output so that they don't get included in the library
3294 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'
3297 if test "$GXX" = yes; then
3298 if test $with_gnu_ld = no; then
3301 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3304 _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'
3307 _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'
3312 # FIXME: insert proper C++ library support
3313 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3319 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3320 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3321 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3322 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3323 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3324 # Instead, shared libraries are loaded at an image base (0x10000000 by
3325 # default) and relocated if they conflict, which is a slow very memory
3326 # consuming and fragmenting process. To avoid this, we pick a random,
3327 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3328 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3329 _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'
3330 _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'
3333 case $cc_basename in
3336 _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'
3338 # Archives containing C++ object files must be created using
3339 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3340 # necessary to make sure instantiated templates are included
3342 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3345 if test "$GXX" = yes; then
3346 if test "$with_gnu_ld" = no; then
3347 _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'
3349 _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'
3352 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3355 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3356 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3359 case $cc_basename in
3361 # Kuck and Associates, Inc. (KAI) C++ Compiler
3363 # KCC will only create a shared library if the output file
3364 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3365 # to its proper name (with version) after linking.
3366 _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'
3367 _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'
3368 # Commands to make compiler produce verbose output that lists
3369 # what "hidden" libraries, object files and flags are used when
3370 # linking a shared library.
3372 # There doesn't appear to be a way to prevent this compiler from
3373 # explicitly linking system object files so we need to strip them
3374 # from the output so that they don't get included in the library
3376 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'
3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3379 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3381 # Archives containing C++ object files must be created using
3382 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3383 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3388 # version 8.0 and above of icpc choke on multiply defined symbols
3389 # if we add $predep_objects and $postdep_objects, however 7.1 and
3390 # earlier do not add the objects themselves.
3391 case `$CC -V 2>&1` in
3393 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3394 _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'
3396 *) # Version 8.0 or newer
3399 ia64*) tmp_idyn=' -i_dynamic';;
3401 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3402 _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'
3405 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3406 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3407 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3408 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3411 # Portland Group C++ compiler
3412 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3413 _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'
3415 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3416 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3417 _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'
3421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3422 _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'
3424 runpath_var=LD_RUN_PATH
3425 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3426 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3428 # Commands to make compiler produce verbose output that lists
3429 # what "hidden" libraries, object files and flags are used when
3430 # linking a shared library.
3432 # There doesn't appear to be a way to prevent this compiler from
3433 # explicitly linking system object files so we need to strip them
3434 # from the output so that they don't get included in the library
3436 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'
3441 # FIXME: insert proper C++ library support
3442 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3445 # FIXME: insert proper C++ library support
3446 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3449 case $cc_basename in
3451 # FIXME: insert proper C++ library support
3452 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3455 # FIXME: insert proper C++ library support
3456 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3462 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3464 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3465 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3466 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3468 # Workaround some broken pre-1.5 toolchains
3469 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3472 # C++ shared libraries are fairly broken
3473 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3476 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3477 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3478 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3479 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3481 _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'
3482 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3483 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3485 output_verbose_link_cmd='echo'
3488 case $cc_basename in
3490 # Kuck and Associates, Inc. (KAI) C++ Compiler
3492 # KCC will only create a shared library if the output file
3493 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3494 # to its proper name (with version) after linking.
3495 _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'
3497 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3498 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3500 # Archives containing C++ object files must be created using
3501 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3502 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3506 # Rational C++ 2.4.1
3507 # FIXME: insert proper C++ library support
3508 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3511 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3512 _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'
3514 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3515 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3517 # Commands to make compiler produce verbose output that lists
3518 # what "hidden" libraries, object files and flags are used when
3519 # linking a shared library.
3521 # There doesn't appear to be a way to prevent this compiler from
3522 # explicitly linking system object files so we need to strip them
3523 # from the output so that they don't get included in the library
3525 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'
3528 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3529 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3530 _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'
3532 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3533 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3535 # Commands to make compiler produce verbose output that lists
3536 # what "hidden" libraries, object files and flags are used when
3537 # linking a shared library.
3538 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3541 # FIXME: insert proper C++ library support
3542 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3548 case $cc_basename in
3550 # Kuck and Associates, Inc. (KAI) C++ Compiler
3552 # KCC will only create a shared library if the output file
3553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3554 # to its proper name (with version) after linking.
3555 _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'
3557 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3558 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3560 # Archives containing C++ object files must be created using
3561 # the KAI C++ compiler.
3562 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3565 # Rational C++ 2.4.1
3566 # FIXME: insert proper C++ library support
3567 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3570 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3571 _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'
3572 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3573 echo "-hidden">> $lib.exp~
3574 $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~
3577 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3578 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3580 # Commands to make compiler produce verbose output that lists
3581 # what "hidden" libraries, object files and flags are used when
3582 # linking a shared library.
3584 # There doesn't appear to be a way to prevent this compiler from
3585 # explicitly linking system object files so we need to strip them
3586 # from the output so that they don't get included in the library
3588 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'
3591 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3592 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3593 _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'
3595 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3596 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3598 # Commands to make compiler produce verbose output that lists
3599 # what "hidden" libraries, object files and flags are used when
3600 # linking a shared library.
3601 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3604 # FIXME: insert proper C++ library support
3605 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3611 # FIXME: insert proper C++ library support
3612 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3615 case $cc_basename in
3618 # FIXME: insert proper C++ library support
3619 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3623 # FIXME: insert proper C++ library support
3624 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3627 # FIXME: insert proper C++ library support
3628 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3633 case $cc_basename in
3635 # Sun C++ 4.2, 5.x and Centerline C++
3636 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3637 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3638 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3639 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3640 $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'
3642 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3643 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3645 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3647 # The C++ compiler is used as linker so we must use $wl
3648 # flag to pass the commands to the underlying system
3649 # linker. We must also pass each convience library through
3650 # to the system linker between allextract/defaultextract.
3651 # The C++ compiler will combine linker options so we
3652 # cannot just pass the convience library names through
3654 # Supported since Solaris 2.6 (maybe 2.5.1?)
3655 _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'
3658 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3660 output_verbose_link_cmd='echo'
3662 # Archives containing C++ object files must be created using
3663 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3664 # necessary to make sure instantiated templates are included
3666 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3669 # Green Hills C++ Compiler
3670 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3672 # The C++ compiler must be used to create the archive.
3673 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3676 # GNU C++ compiler with Solaris linker
3677 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3678 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3679 if $CC --version | grep -v '^2\.7' > /dev/null; then
3680 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3681 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3682 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3684 # Commands to make compiler produce verbose output that lists
3685 # what "hidden" libraries, object files and flags are used when
3686 # linking a shared library.
3687 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3689 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3691 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3692 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3693 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3695 # Commands to make compiler produce verbose output that lists
3696 # what "hidden" libraries, object files and flags are used when
3697 # linking a shared library.
3698 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3701 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3706 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3707 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3708 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3709 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3710 runpath_var='LD_RUN_PATH'
3712 case $cc_basename in
3714 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3715 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3718 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3719 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3723 sysv5* | sco3.2v5* | sco5v6*)
3724 # Note: We can NOT use -z defs as we might desire, because we do not
3725 # link with -lc, and that would cause any symbols used from libc to
3726 # always be unresolved, which means just about no library would
3727 # ever link correctly. If we're not using GNU ld we use -z text
3728 # though, which does catch some bad symbols but isn't as heavy-handed
3730 # For security reasons, it is highly recommended that you always
3731 # use absolute paths for naming shared libraries, and exclude the
3732 # DT_RUNPATH tag from executables and libraries. But doing so
3733 # requires that you compile everything twice, which is a pain.
3734 # So that behaviour is only enabled if SCOABSPATH is set to a
3735 # non-empty value in the environment. Most likely only useful for
3736 # creating official distributions of packages.
3737 # This is a hack until libtool officially supports absolute path
3738 # names for shared libraries.
3739 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3740 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3741 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3742 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3743 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3744 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3745 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3746 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3747 runpath_var='LD_RUN_PATH'
3749 case $cc_basename in
3751 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3752 _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'
3755 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3756 _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'
3761 case $cc_basename in
3763 # NonStop-UX NCC 3.20
3764 # FIXME: insert proper C++ library support
3765 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3768 # FIXME: insert proper C++ library support
3769 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3774 # FIXME: insert proper C++ library support
3775 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3778 # FIXME: insert proper C++ library support
3779 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3782 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3783 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3785 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3786 _LT_AC_TAGVAR(LD, $1)="$LD"
3788 AC_LIBTOOL_POSTDEP_PREDEP($1)
3789 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3790 AC_LIBTOOL_PROG_CC_C_O($1)
3791 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3792 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3793 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3794 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3796 AC_LIBTOOL_CONFIG($1)
3803 with_gnu_ldcxx=$with_gnu_ld
3804 with_gnu_ld=$lt_save_with_gnu_ld
3805 lt_cv_path_LDCXX=$lt_cv_path_LD
3806 lt_cv_path_LD=$lt_save_path_LD
3807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3809 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3811 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3812 # ------------------------------------
3813 # Figure out "hidden" library dependencies from verbose
3814 # compiler output when linking a shared library.
3815 # Parse the compiler output and extract the necessary
3816 # objects, libraries and library flags.
3817 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3818 dnl we can't use the lt_simple_compile_test_code here,
3819 dnl because it contains code intended for an executable,
3820 dnl not a library. It's possible we should let each
3821 dnl tag define a new lt_????_link_test_code variable,
3822 dnl but it's only used here...
3823 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3825 void foo (void) { a = 0; }
3827 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3831 Foo (void) { a = 0; }
3836 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3844 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3847 public void bar (void) {
3853 dnl Parse the compiler output and extract the necessary
3854 dnl objects, libraries and library flags.
3855 if AC_TRY_EVAL(ac_compile); then
3856 # Parse the compiler output and extract the necessary
3857 # objects, libraries and library flags.
3859 # Sentinel used to keep track of whether or not we are before
3860 # the conftest object file.
3861 pre_test_object_deps_done=no
3863 # The `*' in the case matches for architectures that use `case' in
3864 # $output_verbose_cmd can trigger glob expansion during the loop
3865 # eval without this substitution.
3866 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3868 for p in `eval $output_verbose_link_cmd`; do
3872 # Some compilers place space between "-{L,R}" and the path.
3875 || test $p = "-R"; then
3882 if test "$pre_test_object_deps_done" = no; then
3885 # Internal compiler library paths should come after those
3886 # provided the user. The postdeps already come after the
3887 # user supplied libs so there is no need to process them.
3888 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3889 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3891 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3894 # The "-l" case would never come before the object being
3895 # linked, so don't bother handling this case.
3898 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3899 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3901 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3907 # This assumes that the test object file only shows up
3908 # once in the compiler output.
3909 if test "$p" = "conftest.$objext"; then
3910 pre_test_object_deps_done=yes
3914 if test "$pre_test_object_deps_done" = no; then
3915 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3916 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3918 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3921 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3922 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3924 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3929 *) ;; # Ignore the rest.
3937 echo "libtool.m4: error: problem compiling $1 test program"
3940 $rm -f confest.$objext
3942 # PORTME: override above test on systems where it is broken
3946 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3947 # hack all around it, let's just trust "g++" to DTRT.
3948 _LT_AC_TAGVAR(predep_objects,$1)=
3949 _LT_AC_TAGVAR(postdep_objects,$1)=
3950 _LT_AC_TAGVAR(postdeps,$1)=
3954 case $cc_basename in
3956 # Adding this requires a known-good setup of shared libraries for
3957 # Sun compiler versions before 5.6, else PIC objects from an old
3958 # archive will be linked into the output, leading to subtle bugs.
3959 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3966 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3967 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3969 ])# AC_LIBTOOL_POSTDEP_PREDEP
3971 # AC_LIBTOOL_LANG_F77_CONFIG
3972 # --------------------------
3973 # Ensure that the configuration vars for the C compiler are
3974 # suitably defined. Those variables are subsequently used by
3975 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3976 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3977 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3978 [AC_REQUIRE([AC_PROG_F77])
3979 AC_LANG_PUSH(Fortran 77)
3981 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3982 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3983 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3984 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3985 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3986 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3987 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3988 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3989 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3990 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3991 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3992 _LT_AC_TAGVAR(module_cmds, $1)=
3993 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3994 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3995 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3996 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3997 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3998 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4000 # Source file extension for f77 test sources.
4003 # Object file extension for compiled f77 test sources.
4005 _LT_AC_TAGVAR(objext, $1)=$objext
4007 # Code to be used in simple compile tests
4008 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4010 # Code to be used in simple link tests
4011 lt_simple_link_test_code=" program t\n end\n"
4013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4016 # save warnings/boilerplate of simple test code
4017 _LT_COMPILER_BOILERPLATE
4018 _LT_LINKER_BOILERPLATE
4020 # Allow CC to be a program name with arguments.
4024 _LT_AC_TAGVAR(compiler, $1)=$CC
4025 _LT_CC_BASENAME([$compiler])
4027 AC_MSG_CHECKING([if libtool supports shared libraries])
4028 AC_MSG_RESULT([$can_build_shared])
4030 AC_MSG_CHECKING([whether to build shared libraries])
4031 test "$can_build_shared" = "no" && enable_shared=no
4033 # On AIX, shared libraries and static libraries use the same namespace, and
4034 # are all built from PIC.
4037 test "$enable_shared" = yes && enable_static=no
4038 if test -n "$RANLIB"; then
4039 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4040 postinstall_cmds='$RANLIB $lib'
4044 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4045 test "$enable_shared" = yes && enable_static=no
4049 AC_MSG_RESULT([$enable_shared])
4051 AC_MSG_CHECKING([whether to build static libraries])
4052 # Make sure either enable_shared or enable_static is yes.
4053 test "$enable_shared" = yes || enable_static=yes
4054 AC_MSG_RESULT([$enable_static])
4056 _LT_AC_TAGVAR(GCC, $1)="$G77"
4057 _LT_AC_TAGVAR(LD, $1)="$LD"
4059 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4060 AC_LIBTOOL_PROG_CC_C_O($1)
4061 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4062 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4063 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4064 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4066 AC_LIBTOOL_CONFIG($1)
4070 ])# AC_LIBTOOL_LANG_F77_CONFIG
4073 # AC_LIBTOOL_LANG_GCJ_CONFIG
4074 # --------------------------
4075 # Ensure that the configuration vars for the C compiler are
4076 # suitably defined. Those variables are subsequently used by
4077 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4078 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4079 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4082 # Source file extension for Java test sources.
4085 # Object file extension for compiled Java test sources.
4087 _LT_AC_TAGVAR(objext, $1)=$objext
4089 # Code to be used in simple compile tests
4090 lt_simple_compile_test_code="class foo {}\n"
4092 # Code to be used in simple link tests
4093 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4098 # save warnings/boilerplate of simple test code
4099 _LT_COMPILER_BOILERPLATE
4100 _LT_LINKER_BOILERPLATE
4102 # Allow CC to be a program name with arguments.
4106 _LT_AC_TAGVAR(compiler, $1)=$CC
4107 _LT_CC_BASENAME([$compiler])
4109 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4110 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4112 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4114 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4115 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4116 AC_LIBTOOL_PROG_CC_C_O($1)
4117 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4118 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4119 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4120 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4122 AC_LIBTOOL_CONFIG($1)
4126 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4129 # AC_LIBTOOL_LANG_RC_CONFIG
4130 # -------------------------
4131 # Ensure that the configuration vars for the Windows resource compiler are
4132 # suitably defined. Those variables are subsequently used by
4133 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4134 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4135 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4138 # Source file extension for RC test sources.
4141 # Object file extension for compiled RC test sources.
4143 _LT_AC_TAGVAR(objext, $1)=$objext
4145 # Code to be used in simple compile tests
4146 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4148 # Code to be used in simple link tests
4149 lt_simple_link_test_code="$lt_simple_compile_test_code"
4151 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4154 # save warnings/boilerplate of simple test code
4155 _LT_COMPILER_BOILERPLATE
4156 _LT_LINKER_BOILERPLATE
4158 # Allow CC to be a program name with arguments.
4162 _LT_AC_TAGVAR(compiler, $1)=$CC
4163 _LT_CC_BASENAME([$compiler])
4164 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4166 AC_LIBTOOL_CONFIG($1)
4170 ])# AC_LIBTOOL_LANG_RC_CONFIG
4173 # AC_LIBTOOL_CONFIG([TAGNAME])
4174 # ----------------------------
4175 # If TAGNAME is not passed, then create an initial libtool script
4176 # with a default configuration from the untagged config vars. Otherwise
4177 # add code to config.status for appending the configuration named by
4178 # TAGNAME from the matching tagged config vars.
4179 AC_DEFUN([AC_LIBTOOL_CONFIG],
4180 [# The else clause should only fire when bootstrapping the
4181 # libtool distribution, otherwise you forgot to ship ltmain.sh
4182 # with your package, and you will get complaints that there are
4183 # no rules to generate ltmain.sh.
4184 if test -f "$ltmain"; then
4185 # See if we are running on zsh, and set the options which allow our commands through
4186 # without removal of \ escapes.
4187 if test -n "${ZSH_VERSION+set}" ; then
4188 setopt NO_GLOB_SUBST
4190 # Now quote all the things that may contain metacharacters while being
4191 # careful not to overquote the AC_SUBSTed values. We take copies of the
4192 # variables and quote the copies for generation of the libtool script.
4193 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4195 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4196 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4197 deplibs_check_method reload_flag reload_cmds need_locks \
4198 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4199 lt_cv_sys_global_symbol_to_c_name_address \
4200 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4201 old_postinstall_cmds old_postuninstall_cmds \
4202 _LT_AC_TAGVAR(compiler, $1) \
4203 _LT_AC_TAGVAR(CC, $1) \
4204 _LT_AC_TAGVAR(LD, $1) \
4205 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4208 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4209 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4210 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4211 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4212 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4213 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4214 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4215 _LT_AC_TAGVAR(predep_objects, $1) \
4216 _LT_AC_TAGVAR(postdep_objects, $1) \
4217 _LT_AC_TAGVAR(predeps, $1) \
4218 _LT_AC_TAGVAR(postdeps, $1) \
4219 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4220 _LT_AC_TAGVAR(archive_cmds, $1) \
4221 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4222 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4223 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4224 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4225 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4226 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4227 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4228 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4229 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4230 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4231 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4232 _LT_AC_TAGVAR(module_cmds, $1) \
4233 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4234 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4235 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4236 _LT_AC_TAGVAR(include_expsyms, $1); do
4239 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4240 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4241 _LT_AC_TAGVAR(archive_cmds, $1) | \
4242 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4243 _LT_AC_TAGVAR(module_cmds, $1) | \
4244 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4245 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4246 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4247 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4248 postinstall_cmds | postuninstall_cmds | \
4249 old_postinstall_cmds | old_postuninstall_cmds | \
4250 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4251 # Double-quote double-evaled strings.
4252 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4255 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4261 *'\[$]0 --fallback-echo"')
4262 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4267 [cfgfile="${ofile}T"
4268 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4270 AC_MSG_NOTICE([creating $ofile])],
4273 cat <<__EOF__ >> "$cfgfile"
4277 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4278 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4279 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4281 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4282 # Free Software Foundation, Inc.
4284 # This file is part of GNU Libtool:
4285 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4287 # This program is free software; you can redistribute it and/or modify
4288 # it under the terms of the GNU General Public License as published by
4289 # the Free Software Foundation; either version 2 of the License, or
4290 # (at your option) any later version.
4292 # This program is distributed in the hope that it will be useful, but
4293 # WITHOUT ANY WARRANTY; without even the implied warranty of
4294 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4295 # General Public License for more details.
4297 # You should have received a copy of the GNU General Public License
4298 # along with this program; if not, write to the Free Software
4299 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4301 # As a special exception to the GNU General Public License, if you
4302 # distribute this file as part of a program that contains a
4303 # configuration script generated by Autoconf, you may include it under
4304 # the same distribution terms that you use for the rest of that program.
4306 # A sed program that does not truncate output.
4309 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4310 Xsed="$SED -e 1s/^X//"
4312 # The HP-UX ksh and POSIX shell print the target directory to stdout
4314 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4316 # The names of the tagged configurations supported by this script.
4319 # ### BEGIN LIBTOOL CONFIG],
4320 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4322 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4324 # Shell to use when invoking shell scripts.
4327 # Whether or not to build shared libraries.
4328 build_libtool_libs=$enable_shared
4330 # Whether or not to build static libraries.
4331 build_old_libs=$enable_static
4333 # Whether or not to add -lc for building shared libraries.
4334 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4336 # Whether or not to disallow shared libs when runtime libs are static
4337 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4339 # Whether or not to optimize for fast installation.
4340 fast_install=$enable_fast_install
4343 host_alias=$host_alias
4348 build_alias=$build_alias
4352 # An echo program that does not interpret backslashes.
4357 AR_FLAGS=$lt_AR_FLAGS
4362 # LTCC compiler flags.
4363 LTCFLAGS=$lt_LTCFLAGS
4365 # A language-specific compiler.
4366 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4368 # Is the compiler the GNU C compiler?
4369 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4374 # The linker used to build libraries.
4375 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4377 # Whether we need hard or soft links.
4380 # A BSD-compatible nm program.
4383 # A symbol stripping program
4386 # Used to examine libraries when file_magic_cmd begins "file"
4387 MAGIC_CMD=$MAGIC_CMD
4389 # Used on cygwin: DLL creation program.
4392 # Used on cygwin: object dumper.
4395 # Used on cygwin: assembler.
4398 # The name of the directory that contains temporary libtool files.
4401 # How to create reloadable object files.
4402 reload_flag=$lt_reload_flag
4403 reload_cmds=$lt_reload_cmds
4405 # How to pass a linker flag through the compiler.
4406 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4408 # Object file suffix (normally "o").
4411 # Old archive suffix (normally "a").
4414 # Shared library suffix (normally ".so").
4415 shrext_cmds='$shrext_cmds'
4417 # Executable file suffix (normally "").
4420 # Additional compiler flags for building library objects.
4421 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4424 # What is the maximum length of a command?
4425 max_cmd_len=$lt_cv_sys_max_cmd_len
4427 # Does compiler simultaneously support -c and -o options?
4428 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4430 # Must we lock files when doing compilation?
4431 need_locks=$lt_need_locks
4433 # Do we need the lib prefix for modules?
4434 need_lib_prefix=$need_lib_prefix
4436 # Do we need a version for libraries?
4437 need_version=$need_version
4439 # Whether dlopen is supported.
4440 dlopen_support=$enable_dlopen
4442 # Whether dlopen of programs is supported.
4443 dlopen_self=$enable_dlopen_self
4445 # Whether dlopen of statically linked programs is supported.
4446 dlopen_self_static=$enable_dlopen_self_static
4448 # Compiler flag to prevent dynamic linking.
4449 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4451 # Compiler flag to turn off builtin functions.
4452 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4454 # Compiler flag to allow reflexive dlopens.
4455 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4457 # Compiler flag to generate shared objects directly from archives.
4458 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4460 # Compiler flag to generate thread-safe objects.
4461 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4463 # Library versioning type.
4464 version_type=$version_type
4466 # Format of library name prefix.
4467 libname_spec=$lt_libname_spec
4469 # List of archive names. First name is the real one, the rest are links.
4470 # The last name is the one that the linker finds with -lNAME.
4471 library_names_spec=$lt_library_names_spec
4473 # The coded name of the library, if different from the real name.
4474 soname_spec=$lt_soname_spec
4476 # Commands used to build and install an old-style archive.
4478 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4479 old_postinstall_cmds=$lt_old_postinstall_cmds
4480 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4482 # Create an old-style archive from a shared archive.
4483 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4485 # Create a temporary old-style archive to link instead of a shared archive.
4486 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4488 # Commands used to build and install a shared archive.
4489 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4490 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4491 postinstall_cmds=$lt_postinstall_cmds
4492 postuninstall_cmds=$lt_postuninstall_cmds
4494 # Commands used to build a loadable module (assumed same as above if empty)
4495 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4496 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4498 # Commands to strip libraries.
4499 old_striplib=$lt_old_striplib
4500 striplib=$lt_striplib
4502 # Dependencies to place before the objects being linked to create a
4504 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4506 # Dependencies to place after the objects being linked to create a
4508 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4510 # Dependencies to place before the objects being linked to create a
4512 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4514 # Dependencies to place after the objects being linked to create a
4516 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4518 # The library search path used internally by the compiler when linking
4520 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4522 # Method to check whether dependent libraries are shared objects.
4523 deplibs_check_method=$lt_deplibs_check_method
4525 # Command to use when deplibs_check_method == file_magic.
4526 file_magic_cmd=$lt_file_magic_cmd
4528 # Flag that allows shared libraries with undefined symbols to be built.
4529 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4531 # Flag that forces no undefined symbols.
4532 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4534 # Commands used to finish a libtool library installation in a directory.
4535 finish_cmds=$lt_finish_cmds
4537 # Same as above, but a single script fragment to be evaled but not shown.
4538 finish_eval=$lt_finish_eval
4540 # Take the output of nm and produce a listing of raw symbols and C names.
4541 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4543 # Transform the output of nm in a proper C declaration
4544 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4546 # Transform the output of nm in a C name address pair
4547 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4549 # This is the shared library runtime path variable.
4550 runpath_var=$runpath_var
4552 # This is the shared library path variable.
4553 shlibpath_var=$shlibpath_var
4555 # Is shlibpath searched before the hard-coded library search path?
4556 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4558 # How to hardcode a shared library path into an executable.
4559 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4561 # Whether we should hardcode library paths into libraries.
4562 hardcode_into_libs=$hardcode_into_libs
4564 # Flag to hardcode \$libdir into a binary during linking.
4565 # This must work even if \$libdir does not exist.
4566 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4568 # If ld is used when linking, flag to hardcode \$libdir into
4569 # a binary during linking. This must work even if \$libdir does
4571 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4573 # Whether we need a single -rpath flag with a separated argument.
4574 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4576 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4578 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4580 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4582 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4584 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4585 # the resulting binary.
4586 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4588 # Set to yes if building a shared library automatically hardcodes DIR into the library
4589 # and all subsequent libraries and executables linked against it.
4590 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4592 # Variables whose values should be saved in libtool wrapper scripts and
4593 # restored at relink time.
4594 variables_saved_for_relink="$variables_saved_for_relink"
4596 # Whether libtool must link a program against all its dependency libraries.
4597 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4599 # Compile-time system search path for libraries
4600 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4602 # Run-time system search path for libraries
4603 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4605 # Fix the shell variable \$srcfile for the compiler.
4606 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4608 # Set to yes if exported symbols are required.
4609 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4611 # The commands to list exported symbols.
4612 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4614 # The commands to extract the exported symbol list from a shared archive.
4615 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4617 # Symbols that should not be listed in the preloaded symbols.
4618 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4620 # Symbols that must always be exported.
4621 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4624 [# ### END LIBTOOL CONFIG],
4625 [# ### END LIBTOOL TAG CONFIG: $tagname])
4632 cat <<\EOF >> "$cfgfile"
4634 # AIX sometimes has problems with the GCC collect2 program. For some
4635 # reason, if we set the COLLECT_NAMES environment variable, the problems
4636 # vanish in a puff of smoke.
4637 if test "X${COLLECT_NAMES+set}" != Xset; then
4639 export COLLECT_NAMES
4645 # We use sed instead of cat because bash on DJGPP gets confused if
4646 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4647 # text mode, it properly converts lines to CR/LF. This bash problem
4648 # is reportedly fixed, but why not run on old versions too?
4649 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4651 mv -f "$cfgfile" "$ofile" || \
4652 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4656 # If there is no Makefile yet, we rely on a make rule to execute
4657 # `config.status --recheck' to rerun these tests and create the
4658 # libtool script then.
4659 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4660 if test -f "$ltmain_in"; then
4661 test -f Makefile && make "$ltmain"
4664 ])# AC_LIBTOOL_CONFIG
4667 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4668 # -------------------------------------------
4669 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4670 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4672 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4674 if test "$GCC" = yes; then
4675 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4677 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4678 lt_cv_prog_compiler_rtti_exceptions,
4679 [-fno-rtti -fno-exceptions], [],
4680 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4682 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4685 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4686 # ---------------------------------
4687 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4688 [AC_REQUIRE([AC_CANONICAL_HOST])
4689 AC_REQUIRE([AC_PROG_NM])
4690 AC_REQUIRE([AC_OBJEXT])
4691 # Check for command to grab the raw symbol name followed by C symbol from nm.
4692 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4693 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4695 # These are sane defaults that work on at least a few old systems.
4696 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4698 # Character class describing NM global symbol codes.
4699 symcode='[[BCDEGRST]]'
4701 # Regexp to match symbols that can be accessed directly from C.
4702 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4704 # Transform an extracted symbol line into a proper C declaration
4705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4707 # Transform an extracted symbol line into symbol name and symbol address
4708 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'"
4710 # Define system-specific variables.
4715 cygwin* | mingw* | pw32*)
4716 symcode='[[ABCDGISTW]]'
4718 hpux*) # Its linker distinguishes data from code symbols
4719 if test "$host_cpu" = ia64; then
4720 symcode='[[ABCDEGRST]]'
4722 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4723 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'"
4726 if test "$host_cpu" = ia64; then
4727 symcode='[[ABCDGIRSTW]]'
4728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4729 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'"
4733 symcode='[[BCDEGRST]]'
4736 symcode='[[BCDEGQRST]]'
4747 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4751 symcode='[[DFNSTU]]'
4755 # Handle CRLF in mingw tool chain
4759 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4763 # If we're using GNU nm, then use its standard symbol codes.
4764 case `$NM -V 2>&1` in
4765 *GNU* | *'with BFD'*)
4766 symcode='[[ABCDGIRSTW]]' ;;
4769 # Try without a prefix undercore, then with it.
4770 for ac_symprfx in "" "_"; do
4772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4773 symxfrm="\\1 $ac_symprfx\\2 \\2"
4775 # Write the raw and C identifiers.
4776 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4778 # Check to see that the pipe works correctly.
4782 cat > conftest.$ac_ext <<EOF
4787 void nm_test_func(){}
4791 int main(){nm_test_var='a';nm_test_func();return(0);}
4794 if AC_TRY_EVAL(ac_compile); then
4795 # Now try to grab the symbols.
4797 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4798 # Try sorting and uniquifying the output.
4799 if sort "$nlist" | uniq > "$nlist"T; then
4800 mv -f "$nlist"T "$nlist"
4805 # Make sure that we snagged all the symbols we need.
4806 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4807 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4808 cat <<EOF > conftest.$ac_ext
4814 # Now generate the symbol file.
4815 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4817 cat <<EOF >> conftest.$ac_ext
4818 #if defined (__STDC__) && __STDC__
4819 # define lt_ptr_t void *
4821 # define lt_ptr_t char *
4825 /* The mapping between symbol names and symbols. */
4830 lt_preloaded_symbols[[]] =
4833 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4834 cat <<\EOF >> conftest.$ac_ext
4842 # Now try linking the two files.
4843 mv conftest.$ac_objext conftstm.$ac_objext
4844 lt_save_LIBS="$LIBS"
4845 lt_save_CFLAGS="$CFLAGS"
4846 LIBS="conftstm.$ac_objext"
4847 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4848 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4851 LIBS="$lt_save_LIBS"
4852 CFLAGS="$lt_save_CFLAGS"
4854 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4857 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4860 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4863 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4864 cat conftest.$ac_ext >&5
4866 rm -f conftest* conftst*
4868 # Do not use the global_symbol_pipe unless it works.
4869 if test "$pipe_works" = yes; then
4872 lt_cv_sys_global_symbol_pipe=
4876 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4877 lt_cv_sys_global_symbol_to_cdecl=
4879 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4880 AC_MSG_RESULT(failed)
4884 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4887 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4888 # ---------------------------------------
4889 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4890 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4891 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4892 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4894 AC_MSG_CHECKING([for $compiler option to produce PIC])
4896 # C++ specific cases for pic, static, wl, etc.
4897 if test "$GXX" = yes; then
4898 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4899 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4903 # All AIX code is PIC.
4904 if test "$host_cpu" = ia64; then
4905 # AIX 5 now supports IA64 processor
4906 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4910 # FIXME: we need at least 68020 code to build shared libraries, but
4911 # adding the `-m68020' flag to GCC prevents building anything better,
4913 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4915 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4916 # PIC is the default for these OSes.
4918 mingw* | os2* | pw32*)
4919 # This hack is so that the source file can tell whether it is being
4920 # built for inclusion in a dll (and should export symbols for example).
4921 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4923 darwin* | rhapsody*)
4924 # PIC is the default on this platform
4925 # Common symbols not allowed in MH_DYLIB files
4926 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4929 # DJGPP does not support shared libraries at all
4930 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4933 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4934 # Instead, we relocate shared libraries at runtime.
4937 if test -d /usr/nec; then
4938 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4942 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4948 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4953 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4959 # All AIX code is PIC.
4960 if test "$host_cpu" = ia64; then
4961 # AIX 5 now supports IA64 processor
4962 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4964 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4968 case $cc_basename in
4970 # Green Hills C++ Compiler
4971 # _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"
4976 # PIC is the default on this platform
4977 # Common symbols not allowed in MH_DYLIB files
4978 case $cc_basename in
4980 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4981 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4986 case $cc_basename in
4988 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4991 # Green Hills C++ Compiler
4992 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4998 freebsd* | kfreebsd*-gnu | dragonfly*)
4999 # FreeBSD uses GNU C++
5001 hpux9* | hpux10* | hpux11*)
5002 case $cc_basename in
5004 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5005 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5006 if test "$host_cpu" != ia64; then
5007 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5011 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5012 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5018 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5027 # This is c89, which is MS Visual C++ (no shared libs)
5028 # Anyone wants to do a port?
5030 irix5* | irix6* | nonstopux*)
5031 case $cc_basename in
5033 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5034 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5035 # CC pic flag -KPIC is the default.
5042 case $cc_basename in
5045 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5046 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5050 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5051 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5052 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5055 # Portland Group C++ compiler.
5056 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5058 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5062 # Make sure the PIC flag is empty. It appears that all Alpha
5063 # Linux and Compaq Tru64 Unix objects are PIC.
5064 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5065 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5076 case $cc_basename in
5078 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5086 osf3* | osf4* | osf5*)
5087 case $cc_basename in
5089 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5092 # Rational C++ 2.4.1
5093 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5096 # Digital/Compaq C++
5097 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5098 # Make sure the PIC flag is empty. It appears that all Alpha
5099 # Linux and Compaq Tru64 Unix objects are PIC.
5100 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5101 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5110 case $cc_basename in
5112 # Sun C++ 4.2, 5.x and Centerline C++
5113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5114 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5115 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5118 # Green Hills C++ Compiler
5119 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5126 case $cc_basename in
5129 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5130 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5134 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5141 case $cc_basename in
5143 # NonStop-UX NCC 3.20
5144 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5151 case $cc_basename in
5153 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5154 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5155 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5162 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5168 if test "$GCC" = yes; then
5169 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5170 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5174 # All AIX code is PIC.
5175 if test "$host_cpu" = ia64; then
5176 # AIX 5 now supports IA64 processor
5177 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5182 # FIXME: we need at least 68020 code to build shared libraries, but
5183 # adding the `-m68020' flag to GCC prevents building anything better,
5185 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5188 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5189 # PIC is the default for these OSes.
5192 mingw* | pw32* | os2*)
5193 # This hack is so that the source file can tell whether it is being
5194 # built for inclusion in a dll (and should export symbols for example).
5195 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5198 darwin* | rhapsody*)
5199 # PIC is the default on this platform
5200 # Common symbols not allowed in MH_DYLIB files
5201 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5205 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5206 # Instead, we relocate shared libraries at runtime.
5210 # Just because we use GCC doesn't mean we suddenly get shared libraries
5211 # on systems that don't support them.
5212 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5217 if test -d /usr/nec; then
5218 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5223 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5230 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5236 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5240 # PORTME Check for flag to pass linker flags through the system compiler.
5243 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5244 if test "$host_cpu" = ia64; then
5245 # AIX 5 now supports IA64 processor
5246 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5248 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5252 # PIC is the default on this platform
5253 # Common symbols not allowed in MH_DYLIB files
5254 case $cc_basename in
5256 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5257 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5262 mingw* | pw32* | os2*)
5263 # This hack is so that the source file can tell whether it is being
5264 # built for inclusion in a dll (and should export symbols for example).
5265 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5268 hpux9* | hpux10* | hpux11*)
5269 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5270 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5277 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5280 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5281 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5284 irix5* | irix6* | nonstopux*)
5285 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5286 # PIC (with -KPIC) is the default.
5287 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5291 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5292 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5296 case $cc_basename in
5298 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5299 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5300 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5302 pgcc* | pgf77* | pgf90* | pgf95*)
5303 # Portland Group compilers (*not* the Pentium gcc compiler,
5304 # which looks to be a dead project)
5305 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5306 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5307 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5310 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5311 # All Alpha code is PIC.
5312 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5317 osf3* | osf4* | osf5*)
5318 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5319 # All OSF/1 code is PIC.
5320 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5324 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5325 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5326 case $cc_basename in
5328 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5330 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5335 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5336 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5337 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5340 sysv4 | sysv4.2uw2* | sysv4.3*)
5341 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5342 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5343 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5347 if test -d /usr/nec ;then
5348 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5349 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5353 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5354 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5355 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5356 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5360 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5361 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5365 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5366 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5370 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5375 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5378 # Check to make sure the PIC flag actually works.
5380 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5381 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5382 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5383 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5384 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5386 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5388 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5389 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5392 # For platforms which do not support PIC, -DPIC is meaningless:
5394 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5397 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5402 # Check to make sure the static flag actually works.
5404 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5405 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5406 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5407 $lt_tmp_static_flag,
5409 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5413 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5414 # ------------------------------------
5415 # See if the linker supports building shared libraries.
5416 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5417 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5419 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5422 # If we're using GNU nm, then we don't want the "-C" option.
5423 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5424 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5425 _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'
5427 _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'
5431 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5434 _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'
5437 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5442 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5443 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5444 _LT_AC_TAGVAR(archive_cmds, $1)=
5445 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5446 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5447 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5448 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5449 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5450 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5451 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5452 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5453 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5454 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5455 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5456 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5457 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5458 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5459 _LT_AC_TAGVAR(module_cmds, $1)=
5460 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5461 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5462 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5463 # include_expsyms should be a list of space-separated symbols to be *always*
5464 # included in the symbol list
5465 _LT_AC_TAGVAR(include_expsyms, $1)=
5466 # exclude_expsyms can be an extended regexp of symbols to exclude
5467 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5468 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5469 # as well as any symbol that contains `d'.
5470 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5471 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5472 # platforms (ab)use it in PIC code, but their linkers get confused if
5473 # the symbol is explicitly referenced. Since portable code cannot
5474 # rely on this symbol name, it's probably fine to never include it in
5475 # preloaded symbol tables.
5476 extract_expsyms_cmds=
5477 # Just being paranoid about ensuring that cc_basename is set.
5478 _LT_CC_BASENAME([$compiler])
5480 cygwin* | mingw* | pw32*)
5481 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5482 # When not using gcc, we currently assume that we are using
5483 # Microsoft Visual C++.
5484 if test "$GCC" != yes; then
5489 # we just hope/assume this is gcc and not c89 (= MSVC++)
5497 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5498 if test "$with_gnu_ld" = yes; then
5499 # If archive_cmds runs LD, not CC, wlarc should be empty
5502 # Set some defaults for GNU ld with shared library support. These
5503 # are reset later if shared libraries are not supported. Putting them
5504 # here allows them to be overridden if necessary.
5505 runpath_var=LD_RUN_PATH
5506 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5507 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5508 # ancient GNU ld didn't support --whole-archive et. al.
5509 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5510 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5512 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5514 supports_anon_versioning=no
5515 case `$LD -v 2>/dev/null` in
5516 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5517 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5518 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5519 *\ 2.11.*) ;; # other 2.11 versions
5520 *) supports_anon_versioning=yes ;;
5523 # See if GNU ld supports shared libraries.
5525 aix3* | aix4* | aix5*)
5526 # On AIX/PPC, the GNU linker is very broken
5527 if test "$host_cpu" != ia64; then
5528 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5531 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5532 *** to be unable to reliably create shared libraries on AIX.
5533 *** Therefore, libtool is disabling shared libraries support. If you
5534 *** really care for shared libraries, you may want to modify your PATH
5535 *** so that a non-GNU linker is found, and then restart.
5542 _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)'
5543 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5544 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5546 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5547 # that the semantics of dynamic libraries on AmigaOS, at least up
5548 # to version 4, is to share data among multiple programs linked
5549 # with the same dynamic library. Since this doesn't match the
5550 # behavior of shared libraries on other platforms, we can't use
5552 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5556 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5557 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5558 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5559 # support --undefined. This deserves some investigation. FIXME
5560 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5562 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5566 cygwin* | mingw* | pw32*)
5567 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5568 # as there is no search path for DLLs.
5569 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5570 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5571 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5572 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5573 _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'
5575 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5576 _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'
5577 # If the export-symbols file already is a .def file (1st line
5578 # is EXPORTS), use it as is; otherwise, prepend...
5579 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5580 cp $export_symbols $output_objdir/$soname.def;
5582 echo EXPORTS > $output_objdir/$soname.def;
5583 cat $export_symbols >> $output_objdir/$soname.def;
5585 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5587 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5592 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5593 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5594 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5595 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5596 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5597 # Instead, shared libraries are loaded at an image base (0x10000000 by
5598 # default) and relocated if they conflict, which is a slow very memory
5599 # consuming and fragmenting process. To avoid this, we pick a random,
5600 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5601 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5602 _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'
5603 _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'
5607 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5609 case $cc_basename,$host_cpu in
5610 pgcc*) # Portland Group C compiler
5611 _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'
5612 tmp_addflag=' $pic_flag'
5614 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5615 _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'
5616 tmp_addflag=' $pic_flag -Mnomain' ;;
5617 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5618 tmp_addflag=' -i_dynamic' ;;
5619 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5620 tmp_addflag=' -i_dynamic -nofor_main' ;;
5621 ifc* | ifort*) # Intel Fortran compiler
5622 tmp_addflag=' -nofor_main' ;;
5624 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5626 if test $supports_anon_versioning = yes; then
5627 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5628 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5629 $echo "local: *; };" >> $output_objdir/$libname.ver~
5630 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5633 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5639 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5642 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5643 _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'
5648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5649 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5653 *** create shared libraries on Solaris systems. Therefore, libtool
5654 *** is disabling shared libraries support. We urge you to upgrade GNU
5655 *** binutils to release 2.9.1 or newer. Another option is to modify
5656 *** your PATH or compiler configuration so that the native linker is
5657 *** used, and then restart.
5660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5661 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5662 _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'
5664 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5669 case `$LD -v 2>&1` in
5670 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5671 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5674 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5675 *** reliably create shared libraries on SCO systems. Therefore, libtool
5676 *** is disabling shared libraries support. We urge you to upgrade GNU
5677 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5678 *** your PATH or compiler configuration so that the native linker is
5679 *** used, and then restart.
5684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5685 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5686 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5687 _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'
5689 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5696 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5698 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5699 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5703 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5704 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5705 _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'
5707 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5712 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5714 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5715 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5716 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5719 # PORTME fill in a description of your system's linker (not GNU ld)
5722 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5723 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5724 _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'
5725 # Note: this linker hardcodes the directories in LIBPATH if there
5726 # are no directories specified by -L.
5727 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5728 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5729 # Neither direct hardcoding nor static linking is supported with a
5731 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5736 if test "$host_cpu" = ia64; then
5737 # On IA64, the linker does run time linking by default, so we don't
5738 # have to do anything special.
5739 aix_use_runtimelinking=no
5740 exp_sym_flag='-Bexport'
5743 # If we're using GNU nm, then we don't want the "-C" option.
5744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5745 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5746 _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'
5748 _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'
5750 aix_use_runtimelinking=no
5752 # Test if we are trying to use run time linking or normal
5753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5754 # need to do runtime linking.
5755 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5756 for ld_flag in $LDFLAGS; do
5757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5758 aix_use_runtimelinking=yes
5765 exp_sym_flag='-bexport'
5766 no_entry_flag='-bnoentry'
5769 # When large executables or shared objects are built, AIX ld can
5770 # have problems creating the table of contents. If linking a library
5771 # or program results in "error TOC overflow" add -mminimal-toc to
5772 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5773 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5775 _LT_AC_TAGVAR(archive_cmds, $1)=''
5776 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5777 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5778 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5780 if test "$GCC" = yes; then
5781 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5782 # We only want to do this on AIX 4.2 and lower, the check
5783 # below for broken collect2 doesn't work under 4.3+
5784 collect2name=`${CC} -print-prog-name=collect2`
5785 if test -f "$collect2name" && \
5786 strings "$collect2name" | grep resolve_lib_name >/dev/null
5788 # We have reworked collect2
5789 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5791 # We have old collect2
5792 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5793 # It fails to find uninstalled libraries when the uninstalled
5794 # path is not listed in the libpath. Setting hardcode_minus_L
5795 # to unsupported forces relinking
5796 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5797 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5798 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5802 shared_flag='-shared'
5803 if test "$aix_use_runtimelinking" = yes; then
5804 shared_flag="$shared_flag "'${wl}-G'
5808 if test "$host_cpu" = ia64; then
5809 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5810 # chokes on -Wl,-G. The following line is correct:
5813 if test "$aix_use_runtimelinking" = yes; then
5814 shared_flag='${wl}-G'
5816 shared_flag='${wl}-bM:SRE'
5821 # It seems that -bexpall does not export symbols beginning with
5822 # underscore (_), so it is better to generate a list of symbols to export.
5823 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5824 if test "$aix_use_runtimelinking" = yes; then
5825 # Warning - without using the other runtime loading flags (-brtl),
5826 # -berok will link without error, but may produce a broken library.
5827 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5828 # Determine the default libpath from the value encoded in an empty executable.
5829 _LT_AC_SYS_LIBPATH_AIX
5830 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5831 _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"
5833 if test "$host_cpu" = ia64; then
5834 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5835 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5836 _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"
5838 # Determine the default libpath from the value encoded in an empty executable.
5839 _LT_AC_SYS_LIBPATH_AIX
5840 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5841 # Warning - without using the other run time loading flags,
5842 # -berok will link without error, but may produce a broken library.
5843 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5844 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5845 # Exported symbols can be pulled into shared objects from archives
5846 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5847 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5848 # This is similar to how AIX traditionally builds its shared libraries.
5849 _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'
5855 _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)'
5856 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5857 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5858 # see comment about different semantics on the GNU ld section
5859 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5863 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5866 cygwin* | mingw* | pw32*)
5867 # When not using gcc, we currently assume that we are using
5868 # Microsoft Visual C++.
5869 # hardcode_libdir_flag_spec is actually meaningless, as there is
5870 # no search path for DLLs.
5871 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5872 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5873 # Tell ltmain to make .lib files, not .a files.
5875 # Tell ltmain to make .dll files, not .so files.
5877 # FIXME: Setting linknames here is a bad hack.
5878 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5879 # The linker will automatically build a .lib file if we build a DLL.
5880 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5881 # FIXME: Should let the user specify the lib program.
5882 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5883 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5884 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5887 darwin* | rhapsody*)
5889 rhapsody* | darwin1.[[012]])
5890 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5893 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5894 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5896 case ${MACOSX_DEPLOYMENT_TARGET} in
5898 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5901 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5907 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5908 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5909 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5910 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5911 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5912 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5913 if test "$GCC" = yes ; then
5914 output_verbose_link_cmd='echo'
5915 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5916 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5917 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5918 _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}'
5919 _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}'
5921 case $cc_basename in
5923 output_verbose_link_cmd='echo'
5924 _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'
5925 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5926 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5927 _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}'
5928 _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}'
5931 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5938 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5940 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5944 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5947 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5948 # support. Future versions do this automatically, but an explicit c++rt0.o
5949 # does not break anything, and helps significantly (at the cost of a little
5952 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5953 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5954 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5955 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5958 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5960 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5961 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5962 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5963 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5966 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5967 freebsd* | kfreebsd*-gnu | dragonfly*)
5968 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5970 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5971 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5975 if test "$GCC" = yes; then
5976 _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'
5978 _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'
5980 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5981 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5982 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5984 # hardcode_minus_L: Not really in the search PATH,
5985 # but as the default location of the library.
5986 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5987 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5991 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5992 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5994 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5996 if test "$with_gnu_ld" = no; then
5997 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5998 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6000 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6001 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6003 # hardcode_minus_L: Not really in the search PATH,
6004 # but as the default location of the library.
6005 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6010 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6013 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6016 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6019 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6025 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6028 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6031 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6035 if test "$with_gnu_ld" = no; then
6036 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6037 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6041 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6042 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6043 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6046 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6047 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6049 # hardcode_minus_L: Not really in the search PATH,
6050 # but as the default location of the library.
6051 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6057 irix5* | irix6* | nonstopux*)
6058 if test "$GCC" = yes; then
6059 _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'
6061 _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'
6062 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6064 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6065 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6066 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6070 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6071 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6073 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6075 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6076 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6077 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6081 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6082 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6084 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6085 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6089 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6090 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6091 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6092 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6093 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6094 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6095 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6098 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6099 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6100 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6103 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6104 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6111 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6112 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6113 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6114 _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'
6115 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6119 if test "$GCC" = yes; then
6120 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6121 _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'
6123 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6124 _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'
6126 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6127 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6130 osf4* | osf5*) # as osf3* with the addition of -msym flag
6131 if test "$GCC" = yes; then
6132 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6133 _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'
6134 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6136 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6137 _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'
6138 _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~
6139 $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'
6141 # Both c and cxx compiler support -rpath directly
6142 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6144 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6148 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6149 if test "$GCC" = yes; then
6151 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6152 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6153 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6156 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6157 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6160 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6161 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6163 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6165 # The compiler driver will combine linker options so we
6166 # cannot just pass the convience library names through
6167 # without $wl, iff we do not link with $LD.
6168 # Luckily, gcc supports the same syntax we need for Sun Studio.
6169 # Supported since Solaris 2.6 (maybe 2.5.1?)
6172 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6174 _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' ;;
6177 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6181 if test "x$host_vendor" = xsequent; then
6182 # Use $CC to link under sequent, because it throws in some extra .o
6183 # files that make .init and .fini sections work.
6184 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6186 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6188 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6189 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6190 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6191 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6195 case $host_vendor in
6197 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6198 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6201 ## LD is ld it makes a PLAMLIB
6202 ## CC just makes a GrossModule.
6203 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6204 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6205 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6208 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6209 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6212 runpath_var='LD_RUN_PATH'
6213 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6217 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6218 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6219 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6223 if test -d /usr/nec; then
6224 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6225 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6226 runpath_var=LD_RUN_PATH
6227 hardcode_runpath_var=yes
6228 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6232 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6233 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6234 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6235 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6236 runpath_var='LD_RUN_PATH'
6238 if test "$GCC" = yes; then
6239 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6240 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6242 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6243 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6247 sysv5* | sco3.2v5* | sco5v6*)
6248 # Note: We can NOT use -z defs as we might desire, because we do not
6249 # link with -lc, and that would cause any symbols used from libc to
6250 # always be unresolved, which means just about no library would
6251 # ever link correctly. If we're not using GNU ld we use -z text
6252 # though, which does catch some bad symbols but isn't as heavy-handed
6254 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6255 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6256 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6257 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6258 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6259 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6260 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6261 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6262 runpath_var='LD_RUN_PATH'
6264 if test "$GCC" = yes; then
6265 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6266 _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'
6268 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6269 _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'
6274 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6275 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6276 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6280 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6285 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6286 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6289 # Do we need to explicitly link libc?
6291 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6293 # Assume -lc should be added
6294 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6296 if test "$enable_shared" = yes && test "$GCC" = yes; then
6297 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6299 # FIXME: we may have to deal with multi-command sequences.
6302 # Test whether the compiler implicitly links with -lc since on some
6303 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6304 # to ld, don't add -lc before -lgcc.
6305 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6307 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6309 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6312 libobjs=conftest.$ac_objext
6314 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6315 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6321 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6322 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6323 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6325 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6327 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6329 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6331 cat conftest.err 1>&5
6334 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6340 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6343 # _LT_AC_FILE_LTDLL_C
6344 # -------------------
6345 # Be careful that the start marker always follows a newline.
6346 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6347 # /* ltdll.c starts here */
6348 # #define WIN32_LEAN_AND_MEAN
6349 # #include <windows.h>
6350 # #undef WIN32_LEAN_AND_MEAN
6351 # #include <stdio.h>
6353 # #ifndef __CYGWIN__
6354 # # ifdef __CYGWIN32__
6355 # # define __CYGWIN__ __CYGWIN32__
6359 # #ifdef __cplusplus
6362 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6363 # #ifdef __cplusplus
6368 # #include <cygwin/cygwin_dll.h>
6369 # DECLARE_CYGWIN_DLL( DllMain );
6371 # HINSTANCE __hDllInstance_base;
6374 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6376 # __hDllInstance_base = hInst;
6379 # /* ltdll.c ends here */
6380 ])# _LT_AC_FILE_LTDLL_C
6383 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6384 # ---------------------------------
6385 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6389 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6390 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6391 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6392 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6393 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6394 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6395 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6397 # This is just to silence aclocal about the macro not being used
6398 ifelse([AC_DISABLE_FAST_INSTALL])
6400 AC_DEFUN([LT_AC_PROG_GCJ],
6401 [AC_CHECK_TOOL(GCJ, gcj, no)
6402 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6406 AC_DEFUN([LT_AC_PROG_RC],
6407 [AC_CHECK_TOOL(RC, windres, no)
6410 # NOTE: This macro has been submitted for inclusion into #
6411 # GNU Autoconf as AC_PROG_SED. When it is available in #
6412 # a released version of Autoconf we should remove this #
6413 # macro and use it instead. #
6416 # Check for a fully-functional sed program, that truncates
6417 # as few characters as possible. Prefer GNU sed if found.
6418 AC_DEFUN([LT_AC_PROG_SED],
6419 [AC_MSG_CHECKING([for a sed that does not truncate output])
6420 AC_CACHE_VAL(lt_cv_path_SED,
6421 [# Loop through the user's path and test for sed and gsed.
6422 # Then use that list of sed's as ones to test for truncation.
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427 test -z "$as_dir" && as_dir=.
6428 for lt_ac_prog in sed gsed; do
6429 for ac_exec_ext in '' $ac_executable_extensions; do
6430 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6431 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6438 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6439 # along with /bin/sed that truncates output.
6440 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6441 test ! -f $lt_ac_sed && continue
6442 cat /dev/null > conftest.in
6444 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6445 # Check for GNU sed and select it if it is found.
6446 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6447 lt_cv_path_SED=$lt_ac_sed
6451 cat conftest.in conftest.in >conftest.tmp
6452 mv conftest.tmp conftest.in
6453 cp conftest.in conftest.nl
6455 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6456 cmp -s conftest.out conftest.nl || break
6457 # 10000 chars as input seems more than enough
6458 test $lt_ac_count -gt 10 && break
6459 lt_ac_count=`expr $lt_ac_count + 1`
6460 if test $lt_ac_count -gt $lt_ac_max; then
6461 lt_ac_max=$lt_ac_count
6462 lt_cv_path_SED=$lt_ac_sed
6468 AC_MSG_RESULT([$SED])
6471 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6473 # This file is free software; the Free Software Foundation
6474 # gives unlimited permission to copy and/or distribute it,
6475 # with or without modifications, as long as this notice is preserved.
6477 # AM_AUTOMAKE_VERSION(VERSION)
6478 # ----------------------------
6479 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6480 # generated from the m4 files accompanying Automake X.Y.
6481 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6483 # AM_SET_CURRENT_AUTOMAKE_VERSION
6484 # -------------------------------
6485 # Call AM_AUTOMAKE_VERSION so it can be traced.
6486 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6487 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6488 [AM_AUTOMAKE_VERSION([1.9.6])])
6490 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6492 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6494 # This file is free software; the Free Software Foundation
6495 # gives unlimited permission to copy and/or distribute it,
6496 # with or without modifications, as long as this notice is preserved.
6498 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6499 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6500 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6502 # Of course, Automake must honor this variable whenever it calls a
6503 # tool from the auxiliary directory. The problem is that $srcdir (and
6504 # therefore $ac_aux_dir as well) can be either absolute or relative,
6505 # depending on how configure is run. This is pretty annoying, since
6506 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6507 # source directory, any form will work fine, but in subdirectories a
6508 # relative path needs to be adjusted first.
6510 # $ac_aux_dir/missing
6511 # fails when called from a subdirectory if $ac_aux_dir is relative
6512 # $top_srcdir/$ac_aux_dir/missing
6513 # fails if $ac_aux_dir is absolute,
6514 # fails when called from a subdirectory in a VPATH build with
6515 # a relative $ac_aux_dir
6517 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6518 # are both prefixed by $srcdir. In an in-source build this is usually
6519 # harmless because $srcdir is `.', but things will broke when you
6520 # start a VPATH build or use an absolute $srcdir.
6522 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6523 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6524 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6525 # and then we would define $MISSING as
6526 # MISSING="\${SHELL} $am_aux_dir/missing"
6527 # This will work as long as MISSING is not called from configure, because
6528 # unfortunately $(top_srcdir) has no meaning in configure.
6529 # However there are other variables, like CC, which are often used in
6530 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6532 # Another solution, used here, is to always expand $ac_aux_dir to an
6533 # absolute PATH. The drawback is that using absolute paths prevent a
6534 # configured tree to be moved without reconfiguration.
6536 AC_DEFUN([AM_AUX_DIR_EXPAND],
6537 [dnl Rely on autoconf to set up CDPATH properly.
6538 AC_PREREQ([2.50])dnl
6539 # expand $ac_aux_dir to an absolute path
6540 am_aux_dir=`cd $ac_aux_dir && pwd`
6543 # AM_CONDITIONAL -*- Autoconf -*-
6545 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6546 # Free Software Foundation, Inc.
6548 # This file is free software; the Free Software Foundation
6549 # gives unlimited permission to copy and/or distribute it,
6550 # with or without modifications, as long as this notice is preserved.
6554 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6555 # -------------------------------------
6556 # Define a conditional.
6557 AC_DEFUN([AM_CONDITIONAL],
6559 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6560 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6562 AC_SUBST([$1_FALSE])
6570 AC_CONFIG_COMMANDS_PRE(
6571 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6572 AC_MSG_ERROR([[conditional "$1" was never defined.
6573 Usually this means the macro was only invoked conditionally.]])
6577 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6578 # Free Software Foundation, Inc.
6580 # This file is free software; the Free Software Foundation
6581 # gives unlimited permission to copy and/or distribute it,
6582 # with or without modifications, as long as this notice is preserved.
6586 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6587 # written in clear, in which case automake, when reading aclocal.m4,
6588 # will think it sees a *use*, and therefore will trigger all it's
6589 # C support machinery. Also note that it means that autoscan, seeing
6590 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6593 # _AM_DEPENDENCIES(NAME)
6594 # ----------------------
6595 # See how the compiler implements dependency checking.
6596 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6597 # We try a few techniques and use that to set a single cache variable.
6599 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6600 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6601 # dependency, and given that the user is not expected to run this macro,
6602 # just rely on AC_PROG_CC.
6603 AC_DEFUN([_AM_DEPENDENCIES],
6604 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6605 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6606 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6607 AC_REQUIRE([AM_DEP_TRACK])dnl
6609 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6610 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6611 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6612 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6613 [depcc="$$1" am_compiler_list=])
6615 AC_CACHE_CHECK([dependency style of $depcc],
6616 [am_cv_$1_dependencies_compiler_type],
6617 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6618 # We make a subdir and do the tests there. Otherwise we can end up
6619 # making bogus files that we don't know about and never remove. For
6620 # instance it was reported that on HP-UX the gcc test will end up
6621 # making a dummy file named `D' -- because `-MD' means `put the output
6624 # Copy depcomp to subdir because otherwise we won't find it if we're
6625 # using a relative directory.
6626 cp "$am_depcomp" conftest.dir
6628 # We will build objects and dependencies in a subdirectory because
6629 # it helps to detect inapplicable dependency modes. For instance
6630 # both Tru64's cc and ICC support -MD to output dependencies as a
6631 # side effect of compilation, but ICC will put the dependencies in
6632 # the current directory while Tru64 will put them in the object
6636 am_cv_$1_dependencies_compiler_type=none
6637 if test "$am_compiler_list" = ""; then
6638 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6640 for depmode in $am_compiler_list; do
6641 # Setup a source with many dependencies, because some compilers
6642 # like to wrap large dependency lists on column 80 (with \), and
6643 # we should not choose a depcomp mode which is confused by this.
6645 # We need to recreate these files for each test, as the compiler may
6646 # overwrite some of them when testing with obscure command lines.
6647 # This happens at least with the AIX C compiler.
6649 for i in 1 2 3 4 5 6; do
6650 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6651 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6652 # Solaris 8's {/usr,}/bin/sh.
6653 touch sub/conftst$i.h
6655 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6659 # after this tag, mechanisms are not by side-effect, so they'll
6660 # only be used when explicitly requested
6661 if test "x$enable_dependency_tracking" = xyes; then
6669 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6670 # mode. It turns out that the SunPro C++ compiler does not properly
6671 # handle `-M -o', and we need to detect this.
6672 if depmode=$depmode \
6673 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6674 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6675 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6676 >/dev/null 2>conftest.err &&
6677 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6678 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6679 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6680 # icc doesn't choke on unknown options, it will just issue warnings
6681 # or remarks (even with -Werror). So we grep stderr for any message
6682 # that says an option was ignored or not supported.
6683 # When given -MP, icc 7.0 and 7.1 complain thusly:
6684 # icc: Command line warning: ignoring option '-M'; no argument required
6685 # The diagnosis changed in icc 8.0:
6686 # icc: Command line remark: option '-MP' not supported
6687 if (grep 'ignoring option' conftest.err ||
6688 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6689 am_cv_$1_dependencies_compiler_type=$depmode
6698 am_cv_$1_dependencies_compiler_type=none
6701 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6702 AM_CONDITIONAL([am__fastdep$1], [
6703 test "x$enable_dependency_tracking" != xno \
6704 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6710 # Choose a directory name for dependency files.
6711 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6712 AC_DEFUN([AM_SET_DEPDIR],
6713 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6714 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6720 AC_DEFUN([AM_DEP_TRACK],
6721 [AC_ARG_ENABLE(dependency-tracking,
6722 [ --disable-dependency-tracking speeds up one-time build
6723 --enable-dependency-tracking do not reject slow dependency extractors])
6724 if test "x$enable_dependency_tracking" != xno; then
6725 am_depcomp="$ac_aux_dir/depcomp"
6728 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6729 AC_SUBST([AMDEPBACKSLASH])
6732 # Generate code to set up dependency tracking. -*- Autoconf -*-
6734 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6735 # Free Software Foundation, Inc.
6737 # This file is free software; the Free Software Foundation
6738 # gives unlimited permission to copy and/or distribute it,
6739 # with or without modifications, as long as this notice is preserved.
6743 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6744 # ------------------------------
6745 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6746 [for mf in $CONFIG_FILES; do
6747 # Strip MF so we end up with the name of the file.
6748 mf=`echo "$mf" | sed -e 's/:.*$//'`
6749 # Check whether this is an Automake generated Makefile or not.
6750 # We used to match only the files named `Makefile.in', but
6751 # some people rename them; so instead we look at the file content.
6752 # Grep'ing the first line is not enough: some people post-process
6753 # each Makefile.in and add a new line on top of each file to say so.
6754 # So let's grep whole file.
6755 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6756 dirpart=`AS_DIRNAME("$mf")`
6760 # Extract the definition of DEPDIR, am__include, and am__quote
6761 # from the Makefile without running `make'.
6762 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6763 test -z "$DEPDIR" && continue
6764 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6765 test -z "am__include" && continue
6766 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6767 # When using ansi2knr, U may be empty or an underscore; expand it
6768 U=`sed -n 's/^U = //p' < "$mf"`
6769 # Find all dependency output files, they are included files with
6770 # $(DEPDIR) in their names. We invoke sed twice because it is the
6771 # simplest approach to changing $(DEPDIR) to its actual value in the
6773 for file in `sed -n "
6774 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6775 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6776 # Make sure the directory exists.
6777 test -f "$dirpart/$file" && continue
6778 fdir=`AS_DIRNAME(["$file"])`
6779 AS_MKDIR_P([$dirpart/$fdir])
6780 # echo "creating $dirpart/$file"
6781 echo '# dummy' > "$dirpart/$file"
6784 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6787 # AM_OUTPUT_DEPENDENCY_COMMANDS
6788 # -----------------------------
6789 # This macro should only be invoked once -- use via AC_REQUIRE.
6791 # This code is only required when automatic dependency tracking
6792 # is enabled. FIXME. This creates each `.P' file that we will
6793 # need in order to bootstrap the dependency handling code.
6794 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6795 [AC_CONFIG_COMMANDS([depfiles],
6796 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6797 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6800 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6801 # Free Software Foundation, Inc.
6803 # This file is free software; the Free Software Foundation
6804 # gives unlimited permission to copy and/or distribute it,
6805 # with or without modifications, as long as this notice is preserved.
6809 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6810 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6812 # Do all the work for Automake. -*- Autoconf -*-
6814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6815 # Free Software Foundation, Inc.
6817 # This file is free software; the Free Software Foundation
6818 # gives unlimited permission to copy and/or distribute it,
6819 # with or without modifications, as long as this notice is preserved.
6823 # This macro actually does too much. Some checks are only needed if
6824 # your package does certain things. But this isn't really a big deal.
6826 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6827 # AM_INIT_AUTOMAKE([OPTIONS])
6828 # -----------------------------------------------
6829 # The call with PACKAGE and VERSION arguments is the old style
6830 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6831 # and VERSION should now be passed to AC_INIT and removed from
6832 # the call to AM_INIT_AUTOMAKE.
6833 # We support both call styles for the transition. After
6834 # the next Automake release, Autoconf can make the AC_INIT
6835 # arguments mandatory, and then we can depend on a new Autoconf
6836 # release and drop the old call support.
6837 AC_DEFUN([AM_INIT_AUTOMAKE],
6838 [AC_PREREQ([2.58])dnl
6839 dnl Autoconf wants to disallow AM_ names. We explicitly allow
6840 dnl the ones we care about.
6841 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6842 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6843 AC_REQUIRE([AC_PROG_INSTALL])dnl
6844 # test to see if srcdir already configured
6845 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6846 test -f $srcdir/config.status; then
6847 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6850 # test whether we have cygpath
6851 if test -z "$CYGPATH_W"; then
6852 if (cygpath --version) >/dev/null 2>/dev/null; then
6853 CYGPATH_W='cygpath -w'
6858 AC_SUBST([CYGPATH_W])
6860 # Define the identity of the package.
6861 dnl Distinguish between old-style and new-style calls.
6863 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6864 AC_SUBST([PACKAGE], [$1])dnl
6865 AC_SUBST([VERSION], [$2])],
6866 [_AM_SET_OPTIONS([$1])dnl
6867 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6868 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6870 _AM_IF_OPTION([no-define],,
6871 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6872 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6874 # Some tools Automake needs.
6875 AC_REQUIRE([AM_SANITY_CHECK])dnl
6876 AC_REQUIRE([AC_ARG_PROGRAM])dnl
6877 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6878 AM_MISSING_PROG(AUTOCONF, autoconf)
6879 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6880 AM_MISSING_PROG(AUTOHEADER, autoheader)
6881 AM_MISSING_PROG(MAKEINFO, makeinfo)
6883 AM_PROG_INSTALL_STRIP
6884 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6885 # We need awk for the "check" target. The system "awk" is bad on
6887 AC_REQUIRE([AC_PROG_AWK])dnl
6888 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6889 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6890 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6891 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6892 [_AM_PROG_TAR([v7])])])
6893 _AM_IF_OPTION([no-dependencies],,
6894 [AC_PROVIDE_IFELSE([AC_PROG_CC],
6895 [_AM_DEPENDENCIES(CC)],
6896 [define([AC_PROG_CC],
6897 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6898 AC_PROVIDE_IFELSE([AC_PROG_CXX],
6899 [_AM_DEPENDENCIES(CXX)],
6900 [define([AC_PROG_CXX],
6901 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6906 # When config.status generates a header, we must update the stamp-h file.
6907 # This file resides in the same directory as the config header
6908 # that is generated. The stamp files are numbered to have different names.
6910 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6911 # loop where config.status creates the headers, so we can generate
6912 # our stamp files there.
6913 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6914 [# Compute $1's index in $config_headers.
6916 for _am_header in $config_headers :; do
6921 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6924 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6926 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6928 # This file is free software; the Free Software Foundation
6929 # gives unlimited permission to copy and/or distribute it,
6930 # with or without modifications, as long as this notice is preserved.
6932 # AM_PROG_INSTALL_SH
6933 # ------------------
6934 # Define $install_sh.
6935 AC_DEFUN([AM_PROG_INSTALL_SH],
6936 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6937 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6938 AC_SUBST(install_sh)])
6940 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6942 # This file is free software; the Free Software Foundation
6943 # gives unlimited permission to copy and/or distribute it,
6944 # with or without modifications, as long as this notice is preserved.
6948 # Check whether the underlying file-system supports filenames
6949 # with a leading dot. For instance MS-DOS doesn't.
6950 AC_DEFUN([AM_SET_LEADING_DOT],
6951 [rm -rf .tst 2>/dev/null
6952 mkdir .tst 2>/dev/null
6953 if test -d .tst; then
6958 rmdir .tst 2>/dev/null
6959 AC_SUBST([am__leading_dot])])
6961 # Check to see how 'make' treats includes. -*- Autoconf -*-
6963 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6965 # This file is free software; the Free Software Foundation
6966 # gives unlimited permission to copy and/or distribute it,
6967 # with or without modifications, as long as this notice is preserved.
6973 # Check to see how make treats includes.
6974 AC_DEFUN([AM_MAKE_INCLUDE],
6975 [am_make=${MAKE-make}
6976 cat > confinc << 'END'
6981 # If we don't find an include directive, just comment out the code.
6982 AC_MSG_CHECKING([for style of include used by $am_make])
6986 # First try GNU make style include.
6987 echo "include confinc" > confmf
6988 # We grep out `Entering directory' and `Leaving directory'
6989 # messages which can occur if `w' ends up in MAKEFLAGS.
6990 # In particular we don't look at `^make:' because GNU make might
6991 # be invoked under some other name (usually "gmake"), in which
6992 # case it prints its new name instead of `make'.
6993 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6998 # Now try BSD make style include.
6999 if test "$am__include" = "#"; then
7000 echo '.include "confinc"' > confmf
7001 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7002 am__include=.include
7007 AC_SUBST([am__include])
7008 AC_SUBST([am__quote])
7009 AC_MSG_RESULT([$_am_result])
7010 rm -f confinc confmf
7013 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7015 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7016 # Free Software Foundation, Inc.
7018 # This file is free software; the Free Software Foundation
7019 # gives unlimited permission to copy and/or distribute it,
7020 # with or without modifications, as long as this notice is preserved.
7024 # AM_MISSING_PROG(NAME, PROGRAM)
7025 # ------------------------------
7026 AC_DEFUN([AM_MISSING_PROG],
7027 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7028 $1=${$1-"${am_missing_run}$2"}
7032 # AM_MISSING_HAS_RUN
7033 # ------------------
7034 # Define MISSING if not defined so far and test if it supports --run.
7035 # If it does, set am_missing_run to use it, otherwise, to nothing.
7036 AC_DEFUN([AM_MISSING_HAS_RUN],
7037 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7038 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7039 # Use eval to expand $SHELL
7040 if eval "$MISSING --run true"; then
7041 am_missing_run="$MISSING --run "
7044 AC_MSG_WARN([`missing' script is too old or missing])
7048 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7050 # This file is free software; the Free Software Foundation
7051 # gives unlimited permission to copy and/or distribute it,
7052 # with or without modifications, as long as this notice is preserved.
7056 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7058 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7059 # created by `make install' are always world readable, even if the
7060 # installer happens to have an overly restrictive umask (e.g. 077).
7061 # This was a mistake. There are at least two reasons why we must not
7063 # - it causes special bits like SGID to be ignored,
7064 # - it may be too restrictive (some setups expect 775 directories).
7066 # Do not use -m 0755 and let people choose whatever they expect by
7069 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7070 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7071 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7072 # concurrently, both version can detect that a/ is missing, but only
7073 # one can create it and the other will error out. Consequently we
7074 # restrict ourselves to GNU make (using the --version option ensures
7076 AC_DEFUN([AM_PROG_MKDIR_P],
7077 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7078 # We used to keeping the `.' as first argument, in order to
7079 # allow $(mkdir_p) to be used without argument. As in
7080 # $(mkdir_p) $(somedir)
7081 # where $(somedir) is conditionally defined. However this is wrong
7083 # 1. if the package is installed by a user who cannot write `.'
7084 # make install will fail,
7085 # 2. the above comment should most certainly read
7086 # $(mkdir_p) $(DESTDIR)$(somedir)
7087 # so it does not work when $(somedir) is undefined and
7088 # $(DESTDIR) is not.
7089 # To support the latter case, we have to write
7090 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7091 # so the `.' trick is pointless.
7092 mkdir_p='mkdir -p --'
7094 # On NextStep and OpenStep, the `mkdir' command does not
7095 # recognize any option. It will interpret all options as
7096 # directories to create, and then abort because `.' already
7098 for d in ./-p ./--version;
7100 test -d $d && rmdir $d
7102 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7103 if test -f "$ac_aux_dir/mkinstalldirs"; then
7104 mkdir_p='$(mkinstalldirs)'
7106 mkdir_p='$(install_sh) -d'
7109 AC_SUBST([mkdir_p])])
7111 # Helper functions for option handling. -*- Autoconf -*-
7113 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7115 # This file is free software; the Free Software Foundation
7116 # gives unlimited permission to copy and/or distribute it,
7117 # with or without modifications, as long as this notice is preserved.
7121 # _AM_MANGLE_OPTION(NAME)
7122 # -----------------------
7123 AC_DEFUN([_AM_MANGLE_OPTION],
7124 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7126 # _AM_SET_OPTION(NAME)
7127 # ------------------------------
7128 # Set option NAME. Presently that only means defining a flag for this option.
7129 AC_DEFUN([_AM_SET_OPTION],
7130 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7132 # _AM_SET_OPTIONS(OPTIONS)
7133 # ----------------------------------
7134 # OPTIONS is a space-separated list of Automake options.
7135 AC_DEFUN([_AM_SET_OPTIONS],
7136 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7138 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7139 # -------------------------------------------
7140 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7141 AC_DEFUN([_AM_IF_OPTION],
7142 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7144 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7146 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7147 # Free Software Foundation, Inc.
7149 # This file is free software; the Free Software Foundation
7150 # gives unlimited permission to copy and/or distribute it,
7151 # with or without modifications, as long as this notice is preserved.
7157 AC_DEFUN([AM_SANITY_CHECK],
7158 [AC_MSG_CHECKING([whether build environment is sane])
7161 echo timestamp > conftest.file
7162 # Do `set' in a subshell so we don't clobber the current shell's
7163 # arguments. Must try -L first in case configure is actually a
7164 # symlink; some systems play weird games with the mod time of symlinks
7165 # (eg FreeBSD returns the mod time of the symlink's containing
7168 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7169 if test "$[*]" = "X"; then
7171 set X `ls -t $srcdir/configure conftest.file`
7174 if test "$[*]" != "X $srcdir/configure conftest.file" \
7175 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7177 # If neither matched, then we have a broken ls. This can happen
7178 # if, for instance, CONFIG_SHELL is bash and it inherits a
7179 # broken ls alias from the environment. This has actually
7180 # happened. Such a system could not be considered "sane".
7181 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7182 alias in your environment])
7185 test "$[2]" = conftest.file
7191 AC_MSG_ERROR([newly created file is older than distributed files!
7192 Check your system clock])
7194 AC_MSG_RESULT(yes)])
7196 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7198 # This file is free software; the Free Software Foundation
7199 # gives unlimited permission to copy and/or distribute it,
7200 # with or without modifications, as long as this notice is preserved.
7202 # AM_PROG_INSTALL_STRIP
7203 # ---------------------
7204 # One issue with vendor `install' (even GNU) is that you can't
7205 # specify the program used to strip binaries. This is especially
7206 # annoying in cross-compiling environments, where the build's strip
7207 # is unlikely to handle the host's binaries.
7208 # Fortunately install-sh will honor a STRIPPROG variable, so we
7209 # always use install-sh in `make install-strip', and initialize
7210 # STRIPPROG with the value of the STRIP variable (set by the user).
7211 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7212 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7213 # Installed binaries are usually stripped using `strip' when the user
7214 # run `make install-strip'. However `strip' might not be the right
7215 # tool to use in cross-compilation environments, therefore Automake
7216 # will honor the `STRIP' environment variable to overrule this program.
7217 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7218 if test "$cross_compiling" != no; then
7219 AC_CHECK_TOOL([STRIP], [strip], :)
7221 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7222 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7224 # Check how to create a tarball. -*- Autoconf -*-
7226 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7228 # This file is free software; the Free Software Foundation
7229 # gives unlimited permission to copy and/or distribute it,
7230 # with or without modifications, as long as this notice is preserved.
7234 # _AM_PROG_TAR(FORMAT)
7235 # --------------------
7236 # Check how to create a tarball in format FORMAT.
7237 # FORMAT should be one of `v7', `ustar', or `pax'.
7239 # Substitute a variable $(am__tar) that is a command
7240 # writing to stdout a FORMAT-tarball containing the directory
7242 # tardir=directory && $(am__tar) > result.tar
7244 # Substitute a variable $(am__untar) that extract such
7245 # a tarball read from stdin.
7246 # $(am__untar) < result.tar
7247 AC_DEFUN([_AM_PROG_TAR],
7248 [# Always define AMTAR for backward compatibility.
7249 AM_MISSING_PROG([AMTAR], [tar])
7251 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7252 [m4_case([$1], [ustar],, [pax],,
7253 [m4_fatal([Unknown tar format])])
7254 AC_MSG_CHECKING([how to create a $1 tar archive])
7255 # Loop over all known methods to create a tar archive until one works.
7256 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7257 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7258 # Do not fold the above two line into one, because Tru64 sh and
7259 # Solaris sh will not grok spaces in the rhs of `-'.
7260 for _am_tool in $_am_tools
7264 for _am_tar in tar gnutar gtar;
7266 AM_RUN_LOG([$_am_tar --version]) && break
7268 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7269 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7270 am__untar="$_am_tar -xf -"
7273 # Must skip GNU tar: if it does not support --format= it doesn't create
7274 # ustar tarball either.
7275 (tar --version) >/dev/null 2>&1 && continue
7276 am__tar='tar chf - "$$tardir"'
7277 am__tar_='tar chf - "$tardir"'
7278 am__untar='tar xf -'
7281 am__tar='pax -L -x $1 -w "$$tardir"'
7282 am__tar_='pax -L -x $1 -w "$tardir"'
7286 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7287 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7288 am__untar='cpio -i -H $1 -d'
7297 # If the value was cached, stop now. We just wanted to have am__tar
7298 # and am__untar set.
7299 test -n "${am_cv_prog_tar_$1}" && break
7301 # tar/untar a dummy directory, and stop if the command works
7304 echo GrepMe > conftest.dir/file
7305 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7307 if test -s conftest.tar; then
7308 AM_RUN_LOG([$am__untar <conftest.tar])
7309 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7314 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7315 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7317 AC_SUBST([am__untar])
7320 m4_include([acinclude.m4])