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 51 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'
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.24"
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_REQUIRE([LT_AC_PROG_SED])dnl
310 ac_outfile=conftest.$ac_objext
311 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
312 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
313 _lt_compiler_boilerplate=`cat conftest.err`
315 ])# _LT_COMPILER_BOILERPLATE
318 # _LT_LINKER_BOILERPLATE
319 # ----------------------
320 # Check for linker boilerplate output or warnings with
321 # the simple link test code.
322 AC_DEFUN([_LT_LINKER_BOILERPLATE],
323 [AC_REQUIRE([LT_AC_PROG_SED])dnl
324 ac_outfile=conftest.$ac_objext
325 echo "$lt_simple_link_test_code" >conftest.$ac_ext
326 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
327 _lt_linker_boilerplate=`cat conftest.err`
329 ])# _LT_LINKER_BOILERPLATE
332 # _LT_AC_SYS_LIBPATH_AIX
333 # ----------------------
334 # Links a minimal program and checks the executable
335 # for the system default hardcoded library path. In most cases,
336 # this is /usr/lib:/lib, but when the MPI compilers are used
337 # the location of the communication and MPI libs are included too.
338 # If we don't find anything, use the default library path according
339 # to the aix ld manual.
340 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
341 [AC_REQUIRE([LT_AC_PROG_SED])dnl
342 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
344 /Import File Strings/,/^$/ {
350 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
351 # Check for a 64-bit object if we didn't find anything.
352 if test -z "$aix_libpath"; then
353 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
356 ])# _LT_AC_SYS_LIBPATH_AIX
359 # _LT_AC_SHELL_INIT(ARG)
360 # ----------------------
361 AC_DEFUN([_LT_AC_SHELL_INIT],
362 [ifdef([AC_DIVERSION_NOTICE],
363 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
364 [AC_DIVERT_PUSH(NOTICE)])
367 ])# _LT_AC_SHELL_INIT
370 # _LT_AC_PROG_ECHO_BACKSLASH
371 # --------------------------
372 # Add some code to the start of the generated configure script which
373 # will find an echo command which doesn't interpret backslashes.
374 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
376 # Check that we are running under the correct shell.
377 SHELL=${CONFIG_SHELL-/bin/sh}
381 # Remove one level of quotation (which was required for Make).
382 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
387 if test "X[$]1" = X--no-reexec; then
388 # Discard the --no-reexec flag, and continue.
390 elif test "X[$]1" = X--fallback-echo; then
391 # Avoid inline document here, it may be left over
393 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
394 # Yippee, $echo works!
397 # Restart under the correct shell.
398 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
401 if test "X[$]1" = X--fallback-echo; then
402 # used as fallback echo
410 # The HP-UX ksh and POSIX shell print the target directory to stdout
412 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
414 if test -z "$ECHO"; then
415 if test "X${echo_test_string+set}" != Xset; then
416 # find a string as large as possible, as long as the shell can cope with it
417 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
418 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
419 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
420 echo_test_string=`eval $cmd` &&
421 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
428 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
429 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
430 test "X$echo_testing_string" = "X$echo_test_string"; then
433 # The Solaris, AIX, and Digital Unix default echo programs unquote
434 # backslashes. This makes it impossible to quote backslashes using
435 # echo "$something" | sed 's/\\/\\\\/g'
437 # So, first we look for a working echo in the user's PATH.
439 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
440 for dir in $PATH /usr/ucb; do
442 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
443 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
444 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
445 test "X$echo_testing_string" = "X$echo_test_string"; then
452 if test "X$echo" = Xecho; then
453 # We didn't find a better echo, so look for alternatives.
454 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
455 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
456 test "X$echo_testing_string" = "X$echo_test_string"; then
457 # This shell has a builtin print -r that does the trick.
459 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
460 test "X$CONFIG_SHELL" != X/bin/ksh; then
461 # If we have ksh, try running configure again with it.
462 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
463 export ORIGINAL_CONFIG_SHELL
464 CONFIG_SHELL=/bin/ksh
466 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
470 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
471 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
472 test "X$echo_testing_string" = "X$echo_test_string"; then
475 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
476 test "X$echo_testing_string" = 'X\t' &&
477 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
478 test "X$echo_testing_string" = "X$echo_test_string"; then
479 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
481 SHELL="$CONFIG_SHELL"
483 echo="$CONFIG_SHELL [$]0 --fallback-echo"
484 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
485 test "X$echo_testing_string" = 'X\t' &&
486 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
487 test "X$echo_testing_string" = "X$echo_test_string"; then
488 echo="$CONFIG_SHELL [$]0 --fallback-echo"
490 # maybe with a smaller string...
493 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
494 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
501 if test "$prev" != 'sed 50q "[$]0"'; then
502 echo_test_string=`eval $prev`
503 export echo_test_string
504 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
506 # Oops. We lost completely, so just stick with echo.
515 # Copy echo and quote the copy suitably for passing to libtool from
516 # the Makefile, instead of quoting the original, which is used later.
518 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
519 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
523 ])])# _LT_AC_PROG_ECHO_BACKSLASH
528 AC_DEFUN([_LT_AC_LOCK],
529 [AC_ARG_ENABLE([libtool-lock],
530 [AC_HELP_STRING([--disable-libtool-lock],
531 [avoid locking (might break parallel builds)])])
532 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
534 # Some flags need to be propagated to the compiler or linker for good
538 # Find out which ABI we are using.
539 echo 'int i;' > conftest.$ac_ext
540 if AC_TRY_EVAL(ac_compile); then
541 case `/usr/bin/file conftest.$ac_objext` in
553 # Find out which ABI we are using.
554 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
555 if AC_TRY_EVAL(ac_compile); then
556 if test "$lt_cv_prog_gnu_ld" = yes; then
557 case `/usr/bin/file conftest.$ac_objext` in
559 LD="${LD-ld} -melf32bsmip"
562 LD="${LD-ld} -melf32bmipn32"
565 LD="${LD-ld} -melf64bmip"
569 case `/usr/bin/file conftest.$ac_objext` in
585 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
586 s390*-*linux*|sparc*-*linux*)
587 # Find out which ABI we are using.
588 echo 'int i;' > conftest.$ac_ext
589 if AC_TRY_EVAL(ac_compile); then
590 case `/usr/bin/file conftest.o` in
593 x86_64-*kfreebsd*-gnu)
594 LD="${LD-ld} -m elf_i386_fbsd"
597 LD="${LD-ld} -m elf_i386"
599 ppc64-*linux*|powerpc64-*linux*)
600 LD="${LD-ld} -m elf32ppclinux"
603 LD="${LD-ld} -m elf_s390"
606 LD="${LD-ld} -m elf32_sparc"
612 x86_64-*kfreebsd*-gnu)
613 LD="${LD-ld} -m elf_x86_64_fbsd"
616 LD="${LD-ld} -m elf_x86_64"
618 ppc*-*linux*|powerpc*-*linux*)
619 LD="${LD-ld} -m elf64ppc"
622 LD="${LD-ld} -m elf64_s390"
625 LD="${LD-ld} -m elf64_sparc"
635 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
636 SAVE_CFLAGS="$CFLAGS"
637 CFLAGS="$CFLAGS -belf"
638 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
640 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
642 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
643 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
644 CFLAGS="$SAVE_CFLAGS"
648 # Find out which ABI we are using.
649 echo 'int i;' > conftest.$ac_ext
650 if AC_TRY_EVAL(ac_compile); then
651 case `/usr/bin/file conftest.o` in
653 case $lt_cv_prog_gnu_ld in
654 yes*) LD="${LD-ld} -m elf64_sparc" ;;
655 *) LD="${LD-ld} -64" ;;
663 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
664 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
665 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
666 AC_CHECK_TOOL(AS, as, false)
667 AC_CHECK_TOOL(OBJDUMP, objdump, false)
672 need_locks="$enable_libtool_lock"
677 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
678 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
679 # ----------------------------------------------------------------
680 # Check whether the given compiler option works
681 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
682 [AC_REQUIRE([LT_AC_PROG_SED])
683 AC_CACHE_CHECK([$1], [$2],
685 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
687 lt_compiler_flag="$3"
688 # Insert the option either (1) after the last *FLAGS variable, or
689 # (2) before a word containing "conftest.", or (3) at the end.
690 # Note that $ac_compile itself does not contain backslashes and begins
691 # with a dollar sign (not a hyphen), so the echo should work correctly.
692 # The option is referenced via a variable to avoid confusing sed.
693 lt_compile=`echo "$ac_compile" | $SED \
694 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
695 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
696 -e 's:$: $lt_compiler_flag:'`
697 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
698 (eval "$lt_compile" 2>conftest.err)
700 cat conftest.err >&AS_MESSAGE_LOG_FD
701 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
702 if (exit $ac_status) && test -s "$ac_outfile"; then
703 # The compiler can only warn and ignore the option if not recognized
704 # So say no if there are warnings other than the usual output.
705 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
706 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
707 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
714 if test x"[$]$2" = xyes; then
715 ifelse([$5], , :, [$5])
717 ifelse([$6], , :, [$6])
719 ])# AC_LIBTOOL_COMPILER_OPTION
722 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
723 # [ACTION-SUCCESS], [ACTION-FAILURE])
724 # ------------------------------------------------------------
725 # Check whether the given compiler option works
726 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
727 [AC_REQUIRE([LT_AC_PROG_SED])dnl
728 AC_CACHE_CHECK([$1], [$2],
730 save_LDFLAGS="$LDFLAGS"
731 LDFLAGS="$LDFLAGS $3"
732 echo "$lt_simple_link_test_code" > conftest.$ac_ext
733 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
734 # The linker can only warn and ignore the option if not recognized
735 # So say no if there are warnings
736 if test -s conftest.err; then
737 # Append any errors to the config.log.
738 cat conftest.err 1>&AS_MESSAGE_LOG_FD
739 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
740 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
741 if diff conftest.exp conftest.er2 >/dev/null; then
749 LDFLAGS="$save_LDFLAGS"
752 if test x"[$]$2" = xyes; then
753 ifelse([$4], , :, [$4])
755 ifelse([$5], , :, [$5])
757 ])# AC_LIBTOOL_LINKER_OPTION
760 # AC_LIBTOOL_SYS_MAX_CMD_LEN
761 # --------------------------
762 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
763 [# find the maximum length of command line arguments
764 AC_MSG_CHECKING([the maximum length of command line arguments])
765 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
771 # On DJGPP, this test can blow up pretty badly due to problems in libc
772 # (any single argument exceeding 2000 bytes causes a buffer overrun
773 # during glob expansion). Even if it were fixed, the result of this
774 # check would be larger than it should be.
775 lt_cv_sys_max_cmd_len=12288; # 12K is about right
779 # Under GNU Hurd, this test is not required because there is
780 # no limit to the length of command line arguments.
781 # Libtool will interpret -1 as no limit whatsoever
782 lt_cv_sys_max_cmd_len=-1;
786 # On Win9x/ME, this test blows up -- it succeeds, but takes
787 # about 5 minutes as the teststring grows exponentially.
788 # Worse, since 9x/ME are not pre-emptively multitasking,
789 # you end up with a "frozen" computer, even though with patience
790 # the test eventually succeeds (with a max line length of 256k).
791 # Instead, let's just punt: use the minimum linelength reported by
792 # all of the supported platforms: 8192 (on NT/2K/XP).
793 lt_cv_sys_max_cmd_len=8192;
797 # On AmigaOS with pdksh, this test takes hours, literally.
798 # So we just punt and use a minimum line length of 8192.
799 lt_cv_sys_max_cmd_len=8192;
802 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
803 # This has been around since 386BSD, at least. Likely further.
804 if test -x /sbin/sysctl; then
805 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
806 elif test -x /usr/sbin/sysctl; then
807 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
809 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
811 # And add a safety zone
812 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
813 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
817 # We know the value 262144 and hardcode it with a safety zone (like BSD)
818 lt_cv_sys_max_cmd_len=196608
822 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
823 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
824 # nice to cause kernel panics so lets avoid the loop below.
825 # First set a reasonable default.
826 lt_cv_sys_max_cmd_len=16384
828 if test -x /sbin/sysconfig; then
829 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
830 *1*) lt_cv_sys_max_cmd_len=-1 ;;
835 lt_cv_sys_max_cmd_len=102400
837 sysv5* | sco5v6* | sysv4.2uw2*)
838 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
839 if test -n "$kargmax"; then
840 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
842 lt_cv_sys_max_cmd_len=32768
846 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
847 if test -n "$lt_cv_sys_max_cmd_len"; then
848 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
849 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
851 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
852 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
853 = "XX$teststring") >/dev/null 2>&1 &&
854 new_result=`expr "X$teststring" : ".*" 2>&1` &&
855 lt_cv_sys_max_cmd_len=$new_result &&
856 test $i != 17 # 1/2 MB should be enough
859 teststring=$teststring$teststring
862 # Add a significant safety factor because C++ compilers can tack on massive
863 # amounts of additional arguments before passing them to the linker.
864 # It appears as though 1/2 is a usable value.
865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
870 if test -n $lt_cv_sys_max_cmd_len ; then
871 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
875 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
880 AC_DEFUN([_LT_AC_CHECK_DLFCN],
881 [AC_CHECK_HEADERS(dlfcn.h)dnl
882 ])# _LT_AC_CHECK_DLFCN
885 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
886 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
887 # ---------------------------------------------------------------------
888 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
889 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
890 if test "$cross_compiling" = yes; then :
893 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
894 lt_status=$lt_dlunknown
895 cat > conftest.$ac_ext <<EOF
896 [#line __oline__ "configure"
897 #include "confdefs.h"
906 # define LT_DLGLOBAL RTLD_GLOBAL
909 # define LT_DLGLOBAL DL_GLOBAL
911 # define LT_DLGLOBAL 0
915 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
916 find out it does not work in some platform. */
917 #ifndef LT_DLLAZY_OR_NOW
919 # define LT_DLLAZY_OR_NOW RTLD_LAZY
922 # define LT_DLLAZY_OR_NOW DL_LAZY
925 # define LT_DLLAZY_OR_NOW RTLD_NOW
928 # define LT_DLLAZY_OR_NOW DL_NOW
930 # define LT_DLLAZY_OR_NOW 0
938 extern "C" void exit (int);
941 void fnord() { int i=42;}
944 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
945 int status = $lt_dlunknown;
949 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
950 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
951 /* dlclose (self); */
959 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
960 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
963 x$lt_dlno_uscore) $1 ;;
964 x$lt_dlneed_uscore) $2 ;;
965 x$lt_dlunknown|x*) $3 ;;
973 ])# _LT_AC_TRY_DLOPEN_SELF
976 # AC_LIBTOOL_DLOPEN_SELF
977 # ----------------------
978 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
979 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
980 if test "x$enable_dlopen" != xyes; then
981 enable_dlopen=unknown
982 enable_dlopen_self=unknown
983 enable_dlopen_self_static=unknown
990 lt_cv_dlopen="load_add_on"
992 lt_cv_dlopen_self=yes
996 lt_cv_dlopen="LoadLibrary"
1001 lt_cv_dlopen="dlopen"
1006 # if libdl is installed we need to link against it
1007 AC_CHECK_LIB([dl], [dlopen],
1008 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1011 lt_cv_dlopen_self=yes
1016 AC_CHECK_FUNC([shl_load],
1017 [lt_cv_dlopen="shl_load"],
1018 [AC_CHECK_LIB([dld], [shl_load],
1019 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1020 [AC_CHECK_FUNC([dlopen],
1021 [lt_cv_dlopen="dlopen"],
1022 [AC_CHECK_LIB([dl], [dlopen],
1023 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1024 [AC_CHECK_LIB([svld], [dlopen],
1025 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1026 [AC_CHECK_LIB([dld], [dld_link],
1027 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1036 if test "x$lt_cv_dlopen" != xno; then
1042 case $lt_cv_dlopen in
1044 save_CPPFLAGS="$CPPFLAGS"
1045 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1047 save_LDFLAGS="$LDFLAGS"
1048 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1051 LIBS="$lt_cv_dlopen_libs $LIBS"
1053 AC_CACHE_CHECK([whether a program can dlopen itself],
1054 lt_cv_dlopen_self, [dnl
1055 _LT_AC_TRY_DLOPEN_SELF(
1056 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1057 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1060 if test "x$lt_cv_dlopen_self" = xyes; then
1061 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1062 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1063 lt_cv_dlopen_self_static, [dnl
1064 _LT_AC_TRY_DLOPEN_SELF(
1065 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1066 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1070 CPPFLAGS="$save_CPPFLAGS"
1071 LDFLAGS="$save_LDFLAGS"
1076 case $lt_cv_dlopen_self in
1077 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1078 *) enable_dlopen_self=unknown ;;
1081 case $lt_cv_dlopen_self_static in
1082 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1083 *) enable_dlopen_self_static=unknown ;;
1086 ])# AC_LIBTOOL_DLOPEN_SELF
1089 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1090 # ---------------------------------
1091 # Check to see if options -c and -o are simultaneously supported by compiler
1092 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1093 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1094 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1095 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1096 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1097 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1098 $rm -r conftest 2>/dev/null
1102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1104 lt_compiler_flag="-o out/conftest2.$ac_objext"
1105 # Insert the option either (1) after the last *FLAGS variable, or
1106 # (2) before a word containing "conftest.", or (3) at the end.
1107 # Note that $ac_compile itself does not contain backslashes and begins
1108 # with a dollar sign (not a hyphen), so the echo should work correctly.
1109 lt_compile=`echo "$ac_compile" | $SED \
1110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1111 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1112 -e 's:$: $lt_compiler_flag:'`
1113 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1114 (eval "$lt_compile" 2>out/conftest.err)
1116 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1117 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1118 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1120 # The compiler can only warn and ignore the option if not recognized
1121 # So say no if there are warnings
1122 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1123 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1124 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1125 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1128 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1130 # SGI C++ compiler will create directory out/ii_files/ for
1131 # template instantiation
1132 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1133 $rm out/* && rmdir out
1138 ])# AC_LIBTOOL_PROG_CC_C_O
1141 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1142 # -----------------------------------------
1143 # Check to see if we can do hard links to lock some files if needed
1144 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1145 [AC_REQUIRE([_LT_AC_LOCK])dnl
1147 hard_links="nottested"
1148 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1149 # do not overwrite the value of need_locks provided by the user
1150 AC_MSG_CHECKING([if we can lock with hard links])
1153 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1155 ln conftest.a conftest.b 2>&5 || hard_links=no
1156 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1157 AC_MSG_RESULT([$hard_links])
1158 if test "$hard_links" = no; then
1159 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1165 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1170 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1171 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1172 [rm -f .libs 2>/dev/null
1173 mkdir .libs 2>/dev/null
1174 if test -d .libs; then
1177 # MS-DOS does not allow filenames that begin with a dot.
1180 rmdir .libs 2>/dev/null])
1181 objdir=$lt_cv_objdir
1182 ])# AC_LIBTOOL_OBJDIR
1185 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1186 # ----------------------------------------------
1187 # Check hardcoding attributes.
1188 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1189 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1190 _LT_AC_TAGVAR(hardcode_action, $1)=
1191 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1192 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1193 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1195 # We can hardcode non-existant directories.
1196 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1197 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1198 # have to relink, otherwise we might link with an installed library
1199 # when we should be linking with a yet-to-be-installed one
1200 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1201 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1202 # Linking always hardcodes the temporary library directory.
1203 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1205 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1206 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1209 # We cannot hardcode anything, or else we can only hardcode existing
1211 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1213 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1215 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1216 # Fast installation is not supported
1217 enable_fast_install=no
1218 elif test "$shlibpath_overrides_runpath" = yes ||
1219 test "$enable_shared" = no; then
1220 # Fast installation is not necessary
1221 enable_fast_install=needless
1223 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1226 # AC_LIBTOOL_SYS_LIB_STRIP
1227 # ------------------------
1228 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1231 AC_MSG_CHECKING([whether stripping libraries is possible])
1232 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1233 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1234 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1235 AC_MSG_RESULT([yes])
1237 # FIXME - insert some real tests, host_os isn't really good enough
1240 if test -n "$STRIP" ; then
1241 striplib="$STRIP -x"
1242 old_striplib="$STRIP -S"
1243 AC_MSG_RESULT([yes])
1253 ])# AC_LIBTOOL_SYS_LIB_STRIP
1256 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1257 # -----------------------------
1258 # PORTME Fill in your ld.so characteristics
1259 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1260 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1261 AC_MSG_CHECKING([dynamic linker characteristics])
1263 libname_spec='lib$name'
1271 shlibpath_overrides_runpath=unknown
1273 dynamic_linker="$host_os ld.so"
1274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1276 if test "$GCC" = yes; then
1278 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1279 *) lt_awk_arg="/^libraries:/" ;;
1281 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1282 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1283 # if the path contains ";" then we assume it to be the separator
1284 # otherwise default to the standard path separator (i.e. ":") - it is
1285 # assumed that no part of a normal pathname contains ";" but that should
1286 # okay in the real world where ";" in dirpaths is itself problematic.
1287 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1289 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1291 # Ok, now we have the path, separated by spaces, we can step through it
1292 # and add multilib dir if necessary.
1293 lt_tmp_lt_search_path_spec=
1294 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1295 for lt_sys_path in $lt_search_path_spec; do
1296 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1297 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1299 test -d "$lt_sys_path" && \
1300 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1303 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1304 BEGIN {RS=" "; FS="/|\n";} {
1307 for (lt_i = NF; lt_i > 0; lt_i--) {
1308 if ($lt_i != "" && $lt_i != ".") {
1309 if ($lt_i == "..") {
1312 if (lt_count == 0) {
1313 lt_foo="/" $lt_i lt_foo;
1320 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1321 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1323 sys_lib_search_path_spec=`echo $lt_search_path_spec`
1325 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1327 need_lib_prefix=unknown
1328 hardcode_into_libs=no
1330 # when you set need_version to no, make sure it does not cause -set_version
1331 # flags to be left without arguments
1332 need_version=unknown
1337 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1338 shlibpath_var=LIBPATH
1340 # AIX 3 has no versioning support, so we append a major version to the name.
1341 soname_spec='${libname}${release}${shared_ext}$major'
1348 hardcode_into_libs=yes
1349 if test "$host_cpu" = ia64; then
1350 # AIX 5 supports IA64
1351 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1352 shlibpath_var=LD_LIBRARY_PATH
1354 # With GCC up to 2.95.x, collect2 would create an import file
1355 # for dependence libraries. The import file would start with
1356 # the line `#! .'. This would cause the generated library to
1357 # depend on `.', always an invalid library. This was fixed in
1358 # development snapshots of GCC prior to 3.0.
1360 aix4 | aix4.[[01]] | aix4.[[01]].*)
1361 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1363 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1370 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1371 # soname into executable. Probably we can add versioning support to
1372 # collect2, so additional links can be useful in future.
1373 if test "$aix_use_runtimelinking" = yes; then
1374 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1375 # instead of lib<name>.a to let people know that these are not
1376 # typical AIX shared libraries.
1377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1379 # We preserve .a as extension for shared libraries through AIX4.2
1380 # and later when we are not doing run time linking.
1381 library_names_spec='${libname}${release}.a $libname.a'
1382 soname_spec='${libname}${release}${shared_ext}$major'
1384 shlibpath_var=LIBPATH
1389 library_names_spec='$libname.ixlibrary $libname.a'
1390 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1391 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'
1395 library_names_spec='${libname}${shared_ext}'
1396 dynamic_linker="$host_os ld.so"
1397 shlibpath_var=LIBRARY_PATH
1403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1404 soname_spec='${libname}${release}${shared_ext}$major'
1405 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1406 shlibpath_var=LD_LIBRARY_PATH
1407 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1408 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1409 # the default ld.so.conf also contains /usr/contrib/lib and
1410 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1411 # libtool to hard-code these into programs
1414 cygwin* | mingw* | pw32*)
1415 version_type=windows
1420 case $GCC,$host_os in
1421 yes,cygwin* | yes,mingw* | yes,pw32*)
1422 library_names_spec='$libname.dll.a'
1423 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1424 postinstall_cmds='base_file=`basename \${file}`~
1425 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1426 dldir=$destdir/`dirname \$dlpath`~
1427 test -d \$dldir || mkdir -p \$dldir~
1428 $install_prog $dir/$dlname \$dldir/$dlname~
1429 chmod a+x \$dldir/$dlname'
1430 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1431 dlpath=$dir/\$dldll~
1433 shlibpath_overrides_runpath=yes
1437 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1438 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1439 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1442 # MinGW DLLs use traditional 'lib' prefix
1443 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1444 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1445 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1446 # It is most probably a Windows format PATH printed by
1447 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1448 # path with ; separators, and with drive letters. We can handle the
1449 # drive letters (cygwin fileutils understands them), so leave them,
1450 # especially as we might pass files found there to a mingw objdump,
1451 # which wouldn't understand a cygwinified path. Ahh.
1452 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1454 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1458 # pw32 DLLs use 'pw' prefix rather than 'lib'
1459 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1465 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1468 dynamic_linker='Win32 ld.exe'
1469 # FIXME: first we should search . and the directory the executable is in
1473 darwin* | rhapsody*)
1474 dynamic_linker="$host_os dyld"
1478 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1479 soname_spec='${libname}${release}${major}$shared_ext'
1480 shlibpath_overrides_runpath=yes
1481 shlibpath_var=DYLD_LIBRARY_PATH
1482 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1484 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1493 soname_spec='${libname}${release}${shared_ext}$major'
1494 shlibpath_var=LD_LIBRARY_PATH
1501 freebsd* | dragonfly*)
1502 # DragonFly does not have aout. When/if they implement a new
1503 # versioning mechanism, adjust this.
1504 if test -x /usr/bin/objformat; then
1505 objformat=`/usr/bin/objformat`
1508 freebsd[[123]]*) objformat=aout ;;
1512 # Handle Gentoo/FreeBSD as it was Linux
1513 case $host_vendor in
1515 version_type=linux ;;
1517 version_type=freebsd-$objformat ;;
1520 case $version_type in
1522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1532 soname_spec='${libname}${release}${shared_ext}$major'
1537 shlibpath_var=LD_LIBRARY_PATH
1540 shlibpath_overrides_runpath=yes
1542 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1543 shlibpath_overrides_runpath=yes
1544 hardcode_into_libs=yes
1546 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1547 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1548 shlibpath_overrides_runpath=no
1549 hardcode_into_libs=yes
1551 *) # from 4.6 on, and DragonFly
1552 shlibpath_overrides_runpath=yes
1553 hardcode_into_libs=yes
1562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1563 soname_spec='${libname}${release}${shared_ext}$major'
1564 shlibpath_var=LD_LIBRARY_PATH
1565 hardcode_into_libs=yes
1568 hpux9* | hpux10* | hpux11*)
1569 # Give a soname corresponding to the major version so that dld.sl refuses to
1570 # link against other versions.
1577 hardcode_into_libs=yes
1578 dynamic_linker="$host_os dld.so"
1579 shlibpath_var=LD_LIBRARY_PATH
1580 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1582 soname_spec='${libname}${release}${shared_ext}$major'
1583 if test "X$HPUX_IA64_MODE" = X32; then
1584 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1586 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1588 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1592 hardcode_into_libs=yes
1593 dynamic_linker="$host_os dld.sl"
1594 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1595 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1599 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1603 dynamic_linker="$host_os dld.sl"
1604 shlibpath_var=SHLIB_PATH
1605 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1607 soname_spec='${libname}${release}${shared_ext}$major'
1610 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1611 postinstall_cmds='chmod 555 $lib'
1618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1619 soname_spec='${libname}${release}${shared_ext}$major'
1620 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1621 shlibpath_var=LD_LIBRARY_PATH
1622 shlibpath_overrides_runpath=no
1623 hardcode_into_libs=yes
1626 irix5* | irix6* | nonstopux*)
1628 nonstopux*) version_type=nonstopux ;;
1630 if test "$lt_cv_prog_gnu_ld" = yes; then
1638 soname_spec='${libname}${release}${shared_ext}$major'
1639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1641 irix5* | nonstopux*)
1645 case $LD in # libtool.m4 will add one of these switches to LD
1646 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1647 libsuff= shlibsuff= libmagic=32-bit;;
1648 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1649 libsuff=32 shlibsuff=N32 libmagic=N32;;
1650 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1651 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1652 *) libsuff= shlibsuff= libmagic=never-match;;
1656 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1657 shlibpath_overrides_runpath=no
1658 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1659 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1660 hardcode_into_libs=yes
1663 # No shared lib support for Linux oldld, aout, or coff.
1664 linux*oldld* | linux*aout* | linux*coff*)
1668 # This must be Linux ELF.
1669 linux* | k*bsd*-gnu)
1673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1674 soname_spec='${libname}${release}${shared_ext}$major'
1675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1676 shlibpath_var=LD_LIBRARY_PATH
1677 shlibpath_overrides_runpath=no
1678 # This implies no fast_install, which is unacceptable.
1679 # Some rework will be needed to allow for fast_install
1680 # before this can be enabled.
1681 hardcode_into_libs=yes
1683 # Append ld.so.conf contents to the search path
1684 if test -f /etc/ld.so.conf; then
1685 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1686 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1689 # We used to test for /lib/ld.so.1 and disable shared libraries on
1690 # powerpc, because MkLinux only supported shared libraries with the
1691 # GNU dynamic linker. Since this was broken with cross compilers,
1692 # most powerpc-linux boxes support dynamic linking these days and
1693 # people can always --disable-shared, the test was removed, and we
1694 # assume the GNU/Linux dynamic linker is in use.
1695 dynamic_linker='GNU/Linux ld.so'
1702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1704 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1705 dynamic_linker='NetBSD (a.out) ld.so'
1707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1708 soname_spec='${libname}${release}${shared_ext}$major'
1709 dynamic_linker='NetBSD ld.elf_so'
1711 shlibpath_var=LD_LIBRARY_PATH
1712 shlibpath_overrides_runpath=yes
1713 hardcode_into_libs=yes
1718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1719 shlibpath_var=LD_LIBRARY_PATH
1720 shlibpath_overrides_runpath=yes
1727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1728 soname_spec='${libname}${release}${shared_ext}$major'
1729 shlibpath_var=LD_LIBRARY_PATH
1730 shlibpath_overrides_runpath=yes
1735 sys_lib_dlsearch_path_spec="/usr/lib"
1737 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1739 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1740 *) need_version=no ;;
1742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1744 shlibpath_var=LD_LIBRARY_PATH
1745 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1747 openbsd2.[[89]] | openbsd2.[[89]].*)
1748 shlibpath_overrides_runpath=no
1751 shlibpath_overrides_runpath=yes
1755 shlibpath_overrides_runpath=yes
1760 libname_spec='$name'
1763 library_names_spec='$libname${shared_ext} $libname.a'
1764 dynamic_linker='OS/2 ld.exe'
1765 shlibpath_var=LIBPATH
1768 osf3* | osf4* | osf5*)
1772 soname_spec='${libname}${release}${shared_ext}$major'
1773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1774 shlibpath_var=LD_LIBRARY_PATH
1775 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1776 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1788 soname_spec='${libname}${release}${shared_ext}$major'
1789 shlibpath_var=LD_LIBRARY_PATH
1790 shlibpath_overrides_runpath=yes
1791 hardcode_into_libs=yes
1792 # ldd complains unless libraries are executable
1793 postinstall_cmds='chmod +x $lib'
1798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1799 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1800 shlibpath_var=LD_LIBRARY_PATH
1801 shlibpath_overrides_runpath=yes
1802 if test "$with_gnu_ld" = yes; then
1810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1811 soname_spec='${libname}${release}${shared_ext}$major'
1812 shlibpath_var=LD_LIBRARY_PATH
1813 case $host_vendor in
1815 shlibpath_overrides_runpath=no
1817 export_dynamic_flag_spec='${wl}-Blargedynsym'
1818 runpath_var=LD_RUN_PATH
1826 shlibpath_overrides_runpath=no
1827 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1833 if test -d /usr/nec ;then
1835 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1836 soname_spec='$libname${shared_ext}.$major'
1837 shlibpath_var=LD_LIBRARY_PATH
1841 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1842 version_type=freebsd-elf
1845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1846 soname_spec='${libname}${release}${shared_ext}$major'
1847 shlibpath_var=LD_LIBRARY_PATH
1848 hardcode_into_libs=yes
1849 if test "$with_gnu_ld" = yes; then
1850 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1851 shlibpath_overrides_runpath=no
1853 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1854 shlibpath_overrides_runpath=yes
1857 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1861 sys_lib_dlsearch_path_spec='/usr/lib'
1866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1867 soname_spec='${libname}${release}${shared_ext}$major'
1868 shlibpath_var=LD_LIBRARY_PATH
1875 AC_MSG_RESULT([$dynamic_linker])
1876 test "$dynamic_linker" = no && can_build_shared=no
1878 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1879 if test "$GCC" = yes; then
1880 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1882 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1887 AC_DEFUN([_LT_AC_TAGCONFIG],
1888 [AC_REQUIRE([LT_AC_PROG_SED])dnl
1890 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1891 [include additional configurations @<:@automatic@:>@])],
1892 [tagnames="$withval"])
1894 if test -f "$ltmain" && test -n "$tagnames"; then
1895 if test ! -f "${ofile}"; then
1896 AC_MSG_WARN([output file `$ofile' does not exist])
1899 if test -z "$LTCC"; then
1900 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1901 if test -z "$LTCC"; then
1902 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1904 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1907 if test -z "$LTCFLAGS"; then
1908 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1911 # Extract list of available tagged configurations in $ofile.
1912 # Note that this assumes the entire list is on one line.
1913 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1915 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1916 for tagname in $tagnames; do
1918 # Check whether tagname contains only valid characters
1919 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1921 *) AC_MSG_ERROR([invalid tag name: $tagname])
1925 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1927 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1930 # Update the list of available tags.
1931 if test -n "$tagname"; then
1932 echo appending configuration tag \"$tagname\" to $ofile
1936 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1937 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1938 (test "X$CXX" != "Xg++"))) ; then
1939 AC_LIBTOOL_LANG_CXX_CONFIG
1946 if test -n "$F77" && test "X$F77" != "Xno"; then
1947 AC_LIBTOOL_LANG_F77_CONFIG
1954 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1955 AC_LIBTOOL_LANG_GCJ_CONFIG
1962 AC_LIBTOOL_LANG_RC_CONFIG
1966 AC_MSG_ERROR([Unsupported tag name: $tagname])
1970 # Append the new tag name to the list of available tags.
1971 if test -n "$tagname" ; then
1972 available_tags="$available_tags $tagname"
1978 # Now substitute the updated list of available tags.
1979 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1980 mv "${ofile}T" "$ofile"
1984 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1987 ])# _LT_AC_TAGCONFIG
1992 # enable checks for dlopen support
1993 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1994 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1995 ])# AC_LIBTOOL_DLOPEN
1998 # AC_LIBTOOL_WIN32_DLL
1999 # --------------------
2000 # declare package support for building win32 DLLs
2001 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2002 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2003 ])# AC_LIBTOOL_WIN32_DLL
2006 # AC_ENABLE_SHARED([DEFAULT])
2007 # ---------------------------
2008 # implement the --enable-shared flag
2009 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2010 AC_DEFUN([AC_ENABLE_SHARED],
2011 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2012 AC_ARG_ENABLE([shared],
2013 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2014 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2015 [p=${PACKAGE-default}
2017 yes) enable_shared=yes ;;
2018 no) enable_shared=no ;;
2021 # Look at the argument we got. We use all the common list separators.
2022 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2023 for pkg in $enableval; do
2025 if test "X$pkg" = "X$p"; then
2032 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2033 ])# AC_ENABLE_SHARED
2038 # set the default shared flag to --disable-shared
2039 AC_DEFUN([AC_DISABLE_SHARED],
2040 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2041 AC_ENABLE_SHARED(no)
2042 ])# AC_DISABLE_SHARED
2045 # AC_ENABLE_STATIC([DEFAULT])
2046 # ---------------------------
2047 # implement the --enable-static flag
2048 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2049 AC_DEFUN([AC_ENABLE_STATIC],
2050 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2051 AC_ARG_ENABLE([static],
2052 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2053 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2054 [p=${PACKAGE-default}
2056 yes) enable_static=yes ;;
2057 no) enable_static=no ;;
2060 # Look at the argument we got. We use all the common list separators.
2061 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2062 for pkg in $enableval; do
2064 if test "X$pkg" = "X$p"; then
2071 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2072 ])# AC_ENABLE_STATIC
2077 # set the default static flag to --disable-static
2078 AC_DEFUN([AC_DISABLE_STATIC],
2079 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2080 AC_ENABLE_STATIC(no)
2081 ])# AC_DISABLE_STATIC
2084 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2085 # ---------------------------------
2086 # implement the --enable-fast-install flag
2087 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2088 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2089 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2090 AC_ARG_ENABLE([fast-install],
2091 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2092 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2093 [p=${PACKAGE-default}
2095 yes) enable_fast_install=yes ;;
2096 no) enable_fast_install=no ;;
2098 enable_fast_install=no
2099 # Look at the argument we got. We use all the common list separators.
2100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2101 for pkg in $enableval; do
2103 if test "X$pkg" = "X$p"; then
2104 enable_fast_install=yes
2110 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2111 ])# AC_ENABLE_FAST_INSTALL
2114 # AC_DISABLE_FAST_INSTALL
2115 # -----------------------
2116 # set the default to --disable-fast-install
2117 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2118 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2119 AC_ENABLE_FAST_INSTALL(no)
2120 ])# AC_DISABLE_FAST_INSTALL
2123 # AC_LIBTOOL_PICMODE([MODE])
2124 # --------------------------
2125 # implement the --with-pic flag
2126 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2127 AC_DEFUN([AC_LIBTOOL_PICMODE],
2128 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2129 pic_mode=ifelse($#,1,$1,default)
2130 ])# AC_LIBTOOL_PICMODE
2135 # This is predefined starting with Autoconf 2.54, so this conditional
2136 # definition can be removed once we require Autoconf 2.54 or later.
2137 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2138 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2139 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2140 then ac_cv_prog_egrep='grep -E'
2141 else ac_cv_prog_egrep='egrep'
2143 EGREP=$ac_cv_prog_egrep
2148 # AC_PATH_TOOL_PREFIX
2149 # -------------------
2150 # find a file program which can recognize shared library
2151 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2152 [AC_REQUIRE([AC_PROG_EGREP])dnl
2153 AC_MSG_CHECKING([for $1])
2154 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2156 [[\\/*] | ?:[\\/]*])
2157 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2160 lt_save_MAGIC_CMD="$MAGIC_CMD"
2161 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2162 dnl $ac_dummy forces splitting on constant user-supplied paths.
2163 dnl POSIX.2 word splitting is done only on the output of word expansions,
2164 dnl not every word. This closes a longstanding sh security hole.
2165 ac_dummy="ifelse([$2], , $PATH, [$2])"
2166 for ac_dir in $ac_dummy; do
2168 test -z "$ac_dir" && ac_dir=.
2169 if test -f $ac_dir/$1; then
2170 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2171 if test -n "$file_magic_test_file"; then
2172 case $deplibs_check_method in
2174 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2175 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2176 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2177 $EGREP "$file_magic_regex" > /dev/null; then
2182 *** Warning: the command libtool uses to detect shared libraries,
2183 *** $file_magic_cmd, produces output that libtool cannot recognize.
2184 *** The result is that libtool may fail to recognize shared libraries
2185 *** as such. This will affect the creation of libtool libraries that
2186 *** depend on shared libraries, but programs linked with such libtool
2187 *** libraries will work regardless of this problem. Nevertheless, you
2188 *** may want to report the problem to your system manager and/or to
2189 *** bug-libtool@gnu.org
2199 MAGIC_CMD="$lt_save_MAGIC_CMD"
2202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2203 if test -n "$MAGIC_CMD"; then
2204 AC_MSG_RESULT($MAGIC_CMD)
2208 ])# AC_PATH_TOOL_PREFIX
2213 # find a file program which can recognize a shared library
2214 AC_DEFUN([AC_PATH_MAGIC],
2215 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2216 if test -z "$lt_cv_path_MAGIC_CMD"; then
2217 if test -n "$ac_tool_prefix"; then
2218 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2228 # find the pathname to the GNU or non-GNU linker
2229 AC_DEFUN([AC_PROG_LD],
2230 [AC_ARG_WITH([gnu-ld],
2231 [AC_HELP_STRING([--with-gnu-ld],
2232 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2233 [test "$withval" = no || with_gnu_ld=yes],
2235 AC_REQUIRE([LT_AC_PROG_SED])dnl
2236 AC_REQUIRE([AC_PROG_CC])dnl
2237 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2238 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2240 if test "$GCC" = yes; then
2241 # Check if gcc -print-prog-name=ld gives a path.
2242 AC_MSG_CHECKING([for ld used by $CC])
2245 # gcc leaves a trailing carriage return which upsets mingw
2246 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2248 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2251 # Accept absolute paths.
2252 [[\\/]]* | ?:[[\\/]]*)
2253 re_direlt='/[[^/]][[^/]]*/\.\./'
2254 # Canonicalize the pathname of ld
2255 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2256 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2257 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2259 test -z "$LD" && LD="$ac_prog"
2262 # If it fails, then pretend we aren't using GCC.
2266 # If it is relative, then search for the first ld in PATH.
2270 elif test "$with_gnu_ld" = yes; then
2271 AC_MSG_CHECKING([for GNU ld])
2273 AC_MSG_CHECKING([for non-GNU ld])
2275 AC_CACHE_VAL(lt_cv_path_LD,
2276 [if test -z "$LD"; then
2277 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2278 for ac_dir in $PATH; do
2280 test -z "$ac_dir" && ac_dir=.
2281 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2282 lt_cv_path_LD="$ac_dir/$ac_prog"
2283 # Check to see if the program is GNU ld. I'd rather use --version,
2284 # but apparently some variants of GNU ld only accept -v.
2285 # Break only if it was the GNU/non-GNU ld that we prefer.
2286 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2287 *GNU* | *'with BFD'*)
2288 test "$with_gnu_ld" != no && break
2291 test "$with_gnu_ld" != yes && break
2298 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2301 if test -n "$LD"; then
2306 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2313 AC_DEFUN([AC_PROG_LD_GNU],
2314 [AC_REQUIRE([AC_PROG_EGREP])dnl
2315 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2316 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2317 case `$LD -v 2>&1 </dev/null` in
2318 *GNU* | *'with BFD'*)
2319 lt_cv_prog_gnu_ld=yes
2322 lt_cv_prog_gnu_ld=no
2325 with_gnu_ld=$lt_cv_prog_gnu_ld
2329 # AC_PROG_LD_RELOAD_FLAG
2330 # ----------------------
2331 # find reload flag for linker
2332 # -- PORTME Some linkers may need a different reload flag.
2333 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2334 [AC_CACHE_CHECK([for $LD option to reload object files],
2335 lt_cv_ld_reload_flag,
2336 [lt_cv_ld_reload_flag='-r'])
2337 reload_flag=$lt_cv_ld_reload_flag
2338 case $reload_flag in
2340 *) reload_flag=" $reload_flag" ;;
2342 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2345 if test "$GCC" = yes; then
2346 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2348 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2352 ])# AC_PROG_LD_RELOAD_FLAG
2355 # AC_DEPLIBS_CHECK_METHOD
2356 # -----------------------
2357 # how to check for library dependencies
2358 # -- PORTME fill in with the dynamic library characteristics
2359 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2360 [AC_CACHE_CHECK([how to recognize dependent libraries],
2361 lt_cv_deplibs_check_method,
2362 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2363 lt_cv_file_magic_test_file=
2364 lt_cv_deplibs_check_method='unknown'
2365 # Need to set the preceding variable on all platforms that support
2366 # interlibrary dependencies.
2367 # 'none' -- dependencies not supported.
2368 # `unknown' -- same as none, but documents that we really don't know.
2369 # 'pass_all' -- all dependencies passed with no checks.
2370 # 'test_compile' -- check by making test program.
2371 # 'file_magic [[regex]]' -- check by looking for files in library path
2372 # which responds to the $file_magic_cmd with a given extended regex.
2373 # If you have `file' or equivalent on your system and you're not sure
2374 # whether `pass_all' will *always* work, you probably want this one.
2378 lt_cv_deplibs_check_method=pass_all
2382 lt_cv_deplibs_check_method=pass_all
2386 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2387 lt_cv_file_magic_cmd='/usr/bin/file -L'
2388 lt_cv_file_magic_test_file=/shlib/libc.so
2392 # func_win32_libid is a shell function defined in ltmain.sh
2393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2394 lt_cv_file_magic_cmd='func_win32_libid'
2398 # Base MSYS/MinGW do not provide the 'file' command needed by
2399 # func_win32_libid shell function, so use a weaker test based on 'objdump',
2400 # unless we find 'file', for example because we are cross-compiling.
2401 if ( file / ) >/dev/null 2>&1; then
2402 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2403 lt_cv_file_magic_cmd='func_win32_libid'
2405 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2406 lt_cv_file_magic_cmd='$OBJDUMP -f'
2410 darwin* | rhapsody*)
2411 lt_cv_deplibs_check_method=pass_all
2414 freebsd* | dragonfly*)
2415 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2418 # Not sure whether the presence of OpenBSD here was a mistake.
2419 # Let's accept both of them until this is cleared up.
2420 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2421 lt_cv_file_magic_cmd=/usr/bin/file
2422 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2426 lt_cv_deplibs_check_method=pass_all
2431 lt_cv_deplibs_check_method=pass_all
2434 hpux10.20* | hpux11*)
2435 lt_cv_file_magic_cmd=/usr/bin/file
2438 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2439 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2442 [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]']
2443 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2446 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2447 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2453 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2454 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2457 irix5* | irix6* | nonstopux*)
2459 *-32|*"-32 ") libmagic=32-bit;;
2460 *-n32|*"-n32 ") libmagic=N32;;
2461 *-64|*"-64 ") libmagic=64-bit;;
2462 *) libmagic=never-match;;
2464 lt_cv_deplibs_check_method=pass_all
2467 # This must be Linux ELF.
2468 linux* | k*bsd*-gnu)
2469 lt_cv_deplibs_check_method=pass_all
2473 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2474 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2476 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2481 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2482 lt_cv_file_magic_cmd=/usr/bin/file
2483 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2487 lt_cv_deplibs_check_method=unknown
2491 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2492 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2494 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2498 osf3* | osf4* | osf5*)
2499 lt_cv_deplibs_check_method=pass_all
2503 lt_cv_deplibs_check_method=pass_all
2507 lt_cv_deplibs_check_method=pass_all
2511 case $host_vendor in
2513 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]]'
2514 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2517 lt_cv_deplibs_check_method=pass_all
2520 lt_cv_file_magic_cmd='/bin/file'
2521 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2524 lt_cv_file_magic_cmd='/bin/file'
2525 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2526 lt_cv_file_magic_test_file=/lib/libc.so
2529 lt_cv_deplibs_check_method=pass_all
2532 lt_cv_deplibs_check_method=pass_all
2537 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2538 lt_cv_deplibs_check_method=pass_all
2542 file_magic_cmd=$lt_cv_file_magic_cmd
2543 deplibs_check_method=$lt_cv_deplibs_check_method
2544 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2545 ])# AC_DEPLIBS_CHECK_METHOD
2550 # find the pathname to a BSD-compatible name lister
2551 AC_DEFUN([AC_PROG_NM],
2552 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2553 [if test -n "$NM"; then
2554 # Let the user override the test.
2557 lt_nm_to_check="${ac_tool_prefix}nm"
2558 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2559 lt_nm_to_check="$lt_nm_to_check nm"
2561 for lt_tmp_nm in $lt_nm_to_check; do
2562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2563 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2565 test -z "$ac_dir" && ac_dir=.
2566 tmp_nm="$ac_dir/$lt_tmp_nm"
2567 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2568 # Check to see if the nm accepts a BSD-compat flag.
2569 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2570 # nm: unknown option "B" ignored
2571 # Tru64's nm complains that /dev/null is an invalid object file
2572 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2573 */dev/null* | *'Invalid file or object type'*)
2574 lt_cv_path_NM="$tmp_nm -B"
2578 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2580 lt_cv_path_NM="$tmp_nm -p"
2584 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2585 continue # so that we can try to find one that supports BSD flags
2594 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2602 # check for math library
2603 AC_DEFUN([AC_CHECK_LIBM],
2604 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2607 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2608 # These system don't have libm, or don't need it
2611 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2612 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2615 AC_CHECK_LIB(m, cos, LIBM="-lm")
2621 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2622 # -----------------------------------
2623 # sets LIBLTDL to the link flags for the libltdl convenience library and
2624 # LTDLINCL to the include flags for the libltdl header and adds
2625 # --enable-ltdl-convenience to the configure arguments. Note that
2626 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2627 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2628 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2629 # (note the single quotes!). If your package is not flat and you're not
2630 # using automake, define top_builddir and top_srcdir appropriately in
2632 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2633 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2634 case $enable_ltdl_convenience in
2635 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2636 "") enable_ltdl_convenience=yes
2637 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2639 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2640 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2641 # For backwards non-gettext consistent compatibility...
2643 ])# AC_LIBLTDL_CONVENIENCE
2646 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2647 # -----------------------------------
2648 # sets LIBLTDL to the link flags for the libltdl installable library and
2649 # LTDLINCL to the include flags for the libltdl header and adds
2650 # --enable-ltdl-install to the configure arguments. Note that
2651 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2652 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2653 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2654 # '${top_srcdir}/' (note the single quotes!). If your package is not
2655 # flat and you're not using automake, define top_builddir and top_srcdir
2656 # appropriately in the Makefiles.
2657 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2658 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2659 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2660 AC_CHECK_LIB(ltdl, lt_dlinit,
2661 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2662 [if test x"$enable_ltdl_install" = xno; then
2663 AC_MSG_WARN([libltdl not installed, but installation disabled])
2665 enable_ltdl_install=yes
2668 if test x"$enable_ltdl_install" = x"yes"; then
2669 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2670 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2671 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2673 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2677 # For backwards non-gettext consistent compatibility...
2679 ])# AC_LIBLTDL_INSTALLABLE
2684 # enable support for C++ libraries
2685 AC_DEFUN([AC_LIBTOOL_CXX],
2686 [AC_REQUIRE([_LT_AC_LANG_CXX])
2692 AC_DEFUN([_LT_AC_LANG_CXX],
2693 [AC_REQUIRE([AC_PROG_CXX])
2694 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2695 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2698 # _LT_AC_PROG_CXXCPP
2699 # ------------------
2700 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2702 AC_REQUIRE([AC_PROG_CXX])
2703 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2704 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2705 (test "X$CXX" != "Xg++"))) ; then
2708 ])# _LT_AC_PROG_CXXCPP
2712 # enable support for Fortran 77 libraries
2713 AC_DEFUN([AC_LIBTOOL_F77],
2714 [AC_REQUIRE([_LT_AC_LANG_F77])
2720 AC_DEFUN([_LT_AC_LANG_F77],
2721 [AC_REQUIRE([AC_PROG_F77])
2722 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2728 # enable support for GCJ libraries
2729 AC_DEFUN([AC_LIBTOOL_GCJ],
2730 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2736 AC_DEFUN([_LT_AC_LANG_GCJ],
2737 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2738 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2739 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2740 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2741 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2742 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2743 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2749 # enable support for Windows resource files
2750 AC_DEFUN([AC_LIBTOOL_RC],
2751 [AC_REQUIRE([LT_AC_PROG_RC])
2752 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2756 # AC_LIBTOOL_LANG_C_CONFIG
2757 # ------------------------
2758 # Ensure that the configuration vars for the C compiler are
2759 # suitably defined. Those variables are subsequently used by
2760 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2761 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2762 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2766 # Source file extension for C test sources.
2769 # Object file extension for compiled C test sources.
2771 _LT_AC_TAGVAR(objext, $1)=$objext
2773 # Code to be used in simple compile tests
2774 lt_simple_compile_test_code="int some_variable = 0;"
2776 # Code to be used in simple link tests
2777 lt_simple_link_test_code='int main(){return(0);}'
2781 # save warnings/boilerplate of simple test code
2782 _LT_COMPILER_BOILERPLATE
2783 _LT_LINKER_BOILERPLATE
2785 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2786 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2787 AC_LIBTOOL_PROG_CC_C_O($1)
2788 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2789 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2790 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2791 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2792 AC_LIBTOOL_SYS_LIB_STRIP
2793 AC_LIBTOOL_DLOPEN_SELF
2795 # Report which library types will actually be built
2796 AC_MSG_CHECKING([if libtool supports shared libraries])
2797 AC_MSG_RESULT([$can_build_shared])
2799 AC_MSG_CHECKING([whether to build shared libraries])
2800 test "$can_build_shared" = "no" && enable_shared=no
2802 # On AIX, shared libraries and static libraries use the same namespace, and
2803 # are all built from PIC.
2806 test "$enable_shared" = yes && enable_static=no
2807 if test -n "$RANLIB"; then
2808 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2809 postinstall_cmds='$RANLIB $lib'
2814 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2815 test "$enable_shared" = yes && enable_static=no
2819 AC_MSG_RESULT([$enable_shared])
2821 AC_MSG_CHECKING([whether to build static libraries])
2822 # Make sure either enable_shared or enable_static is yes.
2823 test "$enable_shared" = yes || enable_static=yes
2824 AC_MSG_RESULT([$enable_static])
2826 AC_LIBTOOL_CONFIG($1)
2830 ])# AC_LIBTOOL_LANG_C_CONFIG
2833 # AC_LIBTOOL_LANG_CXX_CONFIG
2834 # --------------------------
2835 # Ensure that the configuration vars for the C compiler are
2836 # suitably defined. Those variables are subsequently used by
2837 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2838 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2839 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2841 AC_REQUIRE([AC_PROG_CXX])
2842 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2844 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2845 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2846 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2847 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2848 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2849 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2850 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2851 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2852 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2853 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2854 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2855 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2856 _LT_AC_TAGVAR(module_cmds, $1)=
2857 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2858 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2859 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2860 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2861 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2862 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2864 # Dependencies to place before and after the object being linked:
2865 _LT_AC_TAGVAR(predep_objects, $1)=
2866 _LT_AC_TAGVAR(postdep_objects, $1)=
2867 _LT_AC_TAGVAR(predeps, $1)=
2868 _LT_AC_TAGVAR(postdeps, $1)=
2869 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2871 # Source file extension for C++ test sources.
2874 # Object file extension for compiled C++ test sources.
2876 _LT_AC_TAGVAR(objext, $1)=$objext
2878 # Code to be used in simple compile tests
2879 lt_simple_compile_test_code="int some_variable = 0;"
2881 # Code to be used in simple link tests
2882 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2884 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2887 # save warnings/boilerplate of simple test code
2888 _LT_COMPILER_BOILERPLATE
2889 _LT_LINKER_BOILERPLATE
2891 # Allow CC to be a program name with arguments.
2896 lt_save_with_gnu_ld=$with_gnu_ld
2897 lt_save_path_LD=$lt_cv_path_LD
2898 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2899 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2901 $as_unset lt_cv_prog_gnu_ld
2903 if test -n "${lt_cv_path_LDCXX+set}"; then
2904 lt_cv_path_LD=$lt_cv_path_LDCXX
2906 $as_unset lt_cv_path_LD
2908 test -z "${LDCXX+set}" || LD=$LDCXX
2911 _LT_AC_TAGVAR(compiler, $1)=$CC
2912 _LT_CC_BASENAME([$compiler])
2914 # We don't want -fno-exception wen compiling C++ code, so set the
2915 # no_builtin_flag separately
2916 if test "$GXX" = yes; then
2917 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2919 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2922 if test "$GXX" = yes; then
2923 # Set up default GNU C++ configuration
2927 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2928 # archiving commands below assume that GNU ld is being used.
2929 if test "$with_gnu_ld" = yes; then
2930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2931 _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'
2933 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2934 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2936 # If archive_cmds runs LD, not CC, wlarc should be empty
2937 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2938 # investigate it a little bit more. (MM)
2941 # ancient GNU ld didn't support --whole-archive et. al.
2942 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2943 grep 'no-whole-archive' > /dev/null; then
2944 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2946 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2952 # A generic and very simple default shared library creation
2953 # command for GNU C++ for the case where it uses the native
2954 # linker, instead of GNU ld. If possible, this setting should
2955 # overridden to take advantage of the native linker features on
2956 # the platform it is being used on.
2957 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2960 # Commands to make compiler produce verbose output that lists
2961 # what "hidden" libraries, object files and flags are used when
2962 # linking a shared library.
2963 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2971 # PORTME: fill in a description of your system's C++ link characteristics
2972 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2973 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2976 # FIXME: insert proper C++ library support
2977 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2980 if test "$host_cpu" = ia64; then
2981 # On IA64, the linker does run time linking by default, so we don't
2982 # have to do anything special.
2983 aix_use_runtimelinking=no
2984 exp_sym_flag='-Bexport'
2987 aix_use_runtimelinking=no
2989 # Test if we are trying to use run time linking or normal
2990 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2991 # need to do runtime linking.
2992 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2993 for ld_flag in $LDFLAGS; do
2996 aix_use_runtimelinking=yes
3004 exp_sym_flag='-bexport'
3005 no_entry_flag='-bnoentry'
3008 # When large executables or shared objects are built, AIX ld can
3009 # have problems creating the table of contents. If linking a library
3010 # or program results in "error TOC overflow" add -mminimal-toc to
3011 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3012 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3014 _LT_AC_TAGVAR(archive_cmds, $1)=''
3015 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3016 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3017 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3019 if test "$GXX" = yes; then
3020 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3021 # We only want to do this on AIX 4.2 and lower, the check
3022 # below for broken collect2 doesn't work under 4.3+
3023 collect2name=`${CC} -print-prog-name=collect2`
3024 if test -f "$collect2name" && \
3025 strings "$collect2name" | grep resolve_lib_name >/dev/null
3027 # We have reworked collect2
3030 # We have old collect2
3031 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3032 # It fails to find uninstalled libraries when the uninstalled
3033 # path is not listed in the libpath. Setting hardcode_minus_L
3034 # to unsupported forces relinking
3035 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3036 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3037 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3041 shared_flag='-shared'
3042 if test "$aix_use_runtimelinking" = yes; then
3043 shared_flag="$shared_flag "'${wl}-G'
3047 if test "$host_cpu" = ia64; then
3048 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3049 # chokes on -Wl,-G. The following line is correct:
3052 if test "$aix_use_runtimelinking" = yes; then
3053 shared_flag='${wl}-G'
3055 shared_flag='${wl}-bM:SRE'
3060 # It seems that -bexpall does not export symbols beginning with
3061 # underscore (_), so it is better to generate a list of symbols to export.
3062 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3063 if test "$aix_use_runtimelinking" = yes; then
3064 # Warning - without using the other runtime loading flags (-brtl),
3065 # -berok will link without error, but may produce a broken library.
3066 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3067 # Determine the default libpath from the value encoded in an empty executable.
3068 _LT_AC_SYS_LIBPATH_AIX
3069 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3071 _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"
3073 if test "$host_cpu" = ia64; then
3074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3075 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3076 _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"
3078 # Determine the default libpath from the value encoded in an empty executable.
3079 _LT_AC_SYS_LIBPATH_AIX
3080 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3081 # Warning - without using the other run time loading flags,
3082 # -berok will link without error, but may produce a broken library.
3083 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3084 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3085 # Exported symbols can be pulled into shared objects from archives
3086 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3087 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3088 # This is similar to how AIX traditionally builds its shared libraries.
3089 _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'
3095 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3096 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3097 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3098 # support --undefined. This deserves some investigation. FIXME
3099 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3101 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3106 case $cc_basename in
3108 # FIXME: insert proper C++ library support
3109 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3114 cygwin* | mingw* | pw32*)
3115 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3116 # as there is no search path for DLLs.
3117 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3118 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3119 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3120 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3122 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3123 _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'
3124 # If the export-symbols file already is a .def file (1st line
3125 # is EXPORTS), use it as is; otherwise, prepend...
3126 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3127 cp $export_symbols $output_objdir/$soname.def;
3129 echo EXPORTS > $output_objdir/$soname.def;
3130 cat $export_symbols >> $output_objdir/$soname.def;
3132 $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'
3134 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3137 darwin* | rhapsody*)
3139 rhapsody* | darwin1.[[012]])
3140 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3143 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3144 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3146 case ${MACOSX_DEPLOYMENT_TARGET} in
3148 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3151 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3157 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3158 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3159 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3160 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3161 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3162 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3164 if test "$GXX" = yes ; then
3165 lt_int_apple_cc_single_mod=no
3166 output_verbose_link_cmd='echo'
3167 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3168 lt_int_apple_cc_single_mod=yes
3170 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3171 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3173 _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'
3175 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3176 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3177 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3178 _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}'
3180 _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}'
3182 _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}'
3184 case $cc_basename in
3186 output_verbose_link_cmd='echo'
3187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3188 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3189 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3190 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3191 _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}'
3194 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3201 case $cc_basename in
3203 # FIXME: insert proper C++ library support
3204 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3207 # Green Hills C++ Compiler
3208 # FIXME: insert proper C++ library support
3209 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3212 # FIXME: insert proper C++ library support
3213 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3218 # C++ shared libraries reported to be fairly broken before switch to ELF
3219 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3222 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3224 freebsd* | dragonfly*)
3225 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3227 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3232 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3233 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3234 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3235 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3236 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3237 # but as the default
3238 # location of the library.
3240 case $cc_basename in
3242 # FIXME: insert proper C++ library support
3243 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3246 _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'
3247 # Commands to make compiler produce verbose output that lists
3248 # what "hidden" libraries, object files and flags are used when
3249 # linking a shared library.
3251 # There doesn't appear to be a way to prevent this compiler from
3252 # explicitly linking system object files so we need to strip them
3253 # from the output so that they don't get included in the library
3255 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'
3258 if test "$GXX" = yes; then
3259 _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'
3261 # FIXME: insert proper C++ library support
3262 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3268 if test $with_gnu_ld = no; then
3269 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3270 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3275 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3281 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3282 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3285 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3286 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3287 # but as the default
3288 # location of the library.
3292 case $cc_basename in
3294 # FIXME: insert proper C++ library support
3295 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3300 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3303 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3306 _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'
3309 # Commands to make compiler produce verbose output that lists
3310 # what "hidden" libraries, object files and flags are used when
3311 # linking a shared library.
3313 # There doesn't appear to be a way to prevent this compiler from
3314 # explicitly linking system object files so we need to strip them
3315 # from the output so that they don't get included in the library
3317 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'
3320 if test "$GXX" = yes; then
3321 if test $with_gnu_ld = no; then
3324 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3327 _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'
3330 _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'
3335 # FIXME: insert proper C++ library support
3336 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3342 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3343 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3344 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3345 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3346 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3347 # Instead, shared libraries are loaded at an image base (0x10000000 by
3348 # default) and relocated if they conflict, which is a slow very memory
3349 # consuming and fragmenting process. To avoid this, we pick a random,
3350 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3351 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3352 _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'
3353 _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'
3356 case $cc_basename in
3359 _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'
3361 # Archives containing C++ object files must be created using
3362 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3363 # necessary to make sure instantiated templates are included
3365 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3368 if test "$GXX" = yes; then
3369 if test "$with_gnu_ld" = no; then
3370 _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'
3372 _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'
3375 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3378 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3379 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3381 linux* | k*bsd*-gnu)
3382 case $cc_basename in
3384 # Kuck and Associates, Inc. (KAI) C++ Compiler
3386 # KCC will only create a shared library if the output file
3387 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3388 # to its proper name (with version) after linking.
3389 _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'
3390 _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'
3391 # Commands to make compiler produce verbose output that lists
3392 # what "hidden" libraries, object files and flags are used when
3393 # linking a shared library.
3395 # There doesn't appear to be a way to prevent this compiler from
3396 # explicitly linking system object files so we need to strip them
3397 # from the output so that they don't get included in the library
3399 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'
3401 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3402 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3404 # Archives containing C++ object files must be created using
3405 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3406 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3411 # version 8.0 and above of icpc choke on multiply defined symbols
3412 # if we add $predep_objects and $postdep_objects, however 7.1 and
3413 # earlier do not add the objects themselves.
3414 case `$CC -V 2>&1` in
3416 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3417 _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'
3419 *) # Version 8.0 or newer
3422 ia64*) tmp_idyn=' -i_dynamic';;
3424 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3425 _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'
3428 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3429 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3430 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3431 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3434 # Portland Group C++ compiler
3435 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3436 _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'
3438 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3439 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3440 _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'
3444 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445 _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'
3447 runpath_var=LD_RUN_PATH
3448 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3449 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3451 # Commands to make compiler produce verbose output that lists
3452 # what "hidden" libraries, object files and flags are used when
3453 # linking a shared library.
3455 # There doesn't appear to be a way to prevent this compiler from
3456 # explicitly linking system object files so we need to strip them
3457 # from the output so that they don't get included in the library
3459 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'
3462 case `$CC -V 2>&1 | sed 5q` in
3465 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3466 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3467 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3468 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3469 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3471 # Not sure whether something based on
3472 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3474 output_verbose_link_cmd='echo'
3476 # Archives containing C++ object files must be created using
3477 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3478 # necessary to make sure instantiated templates are included
3480 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3487 # FIXME: insert proper C++ library support
3488 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3491 # FIXME: insert proper C++ library support
3492 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3495 case $cc_basename in
3497 # FIXME: insert proper C++ library support
3498 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3501 # FIXME: insert proper C++ library support
3502 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3507 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3508 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3510 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3511 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3512 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3514 # Workaround some broken pre-1.5 toolchains
3515 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3518 # C++ shared libraries are fairly broken
3519 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3522 if test -f /usr/libexec/ld.so; then
3523 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3524 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3525 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3526 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3528 _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'
3529 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3530 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3532 output_verbose_link_cmd='echo'
3534 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3538 case $cc_basename in
3540 # Kuck and Associates, Inc. (KAI) C++ Compiler
3542 # KCC will only create a shared library if the output file
3543 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3544 # to its proper name (with version) after linking.
3545 _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'
3547 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3548 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3550 # Archives containing C++ object files must be created using
3551 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3552 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3556 # Rational C++ 2.4.1
3557 # FIXME: insert proper C++ library support
3558 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3561 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3562 _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'
3564 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3565 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3567 # Commands to make compiler produce verbose output that lists
3568 # what "hidden" libraries, object files and flags are used when
3569 # linking a shared library.
3571 # There doesn't appear to be a way to prevent this compiler from
3572 # explicitly linking system object files so we need to strip them
3573 # from the output so that they don't get included in the library
3575 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'
3578 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3579 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3580 _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'
3582 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3583 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3585 # Commands to make compiler produce verbose output that lists
3586 # what "hidden" libraries, object files and flags are used when
3587 # linking a shared library.
3588 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3591 # FIXME: insert proper C++ library support
3592 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3598 case $cc_basename in
3600 # Kuck and Associates, Inc. (KAI) C++ Compiler
3602 # KCC will only create a shared library if the output file
3603 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3604 # to its proper name (with version) after linking.
3605 _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'
3607 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3608 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3610 # Archives containing C++ object files must be created using
3611 # the KAI C++ compiler.
3612 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3615 # Rational C++ 2.4.1
3616 # FIXME: insert proper C++ library support
3617 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3620 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3621 _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'
3622 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3623 echo "-hidden">> $lib.exp~
3624 $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~
3627 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3628 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3630 # Commands to make compiler produce verbose output that lists
3631 # what "hidden" libraries, object files and flags are used when
3632 # linking a shared library.
3634 # There doesn't appear to be a way to prevent this compiler from
3635 # explicitly linking system object files so we need to strip them
3636 # from the output so that they don't get included in the library
3638 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'
3641 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3642 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3643 _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'
3645 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3646 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3648 # Commands to make compiler produce verbose output that lists
3649 # what "hidden" libraries, object files and flags are used when
3650 # linking a shared library.
3651 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3654 # FIXME: insert proper C++ library support
3655 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3661 # FIXME: insert proper C++ library support
3662 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3665 case $cc_basename in
3668 # FIXME: insert proper C++ library support
3669 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3673 # FIXME: insert proper C++ library support
3674 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3677 # FIXME: insert proper C++ library support
3678 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683 case $cc_basename in
3685 # Sun C++ 4.2, 5.x and Centerline C++
3686 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3687 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3688 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3689 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3690 $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'
3692 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3693 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3695 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3697 # The compiler driver will combine and reorder linker options,
3698 # but understands `-z linker_flag'.
3699 # Supported since Solaris 2.6 (maybe 2.5.1?)
3700 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3703 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3705 output_verbose_link_cmd='echo'
3707 # Archives containing C++ object files must be created using
3708 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3709 # necessary to make sure instantiated templates are included
3711 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3714 # Green Hills C++ Compiler
3715 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3717 # The C++ compiler must be used to create the archive.
3718 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3721 # GNU C++ compiler with Solaris linker
3722 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3723 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3724 if $CC --version | grep -v '^2\.7' > /dev/null; then
3725 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3726 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3727 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3729 # Commands to make compiler produce verbose output that lists
3730 # what "hidden" libraries, object files and flags are used when
3731 # linking a shared library.
3732 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3734 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3736 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3737 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3738 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3740 # Commands to make compiler produce verbose output that lists
3741 # what "hidden" libraries, object files and flags are used when
3742 # linking a shared library.
3743 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3746 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3748 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3750 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3757 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3758 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3759 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3760 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3761 runpath_var='LD_RUN_PATH'
3763 case $cc_basename in
3765 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3766 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3769 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3770 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3774 sysv5* | sco3.2v5* | sco5v6*)
3775 # Note: We can NOT use -z defs as we might desire, because we do not
3776 # link with -lc, and that would cause any symbols used from libc to
3777 # always be unresolved, which means just about no library would
3778 # ever link correctly. If we're not using GNU ld we use -z text
3779 # though, which does catch some bad symbols but isn't as heavy-handed
3781 # For security reasons, it is highly recommended that you always
3782 # use absolute paths for naming shared libraries, and exclude the
3783 # DT_RUNPATH tag from executables and libraries. But doing so
3784 # requires that you compile everything twice, which is a pain.
3785 # So that behaviour is only enabled if SCOABSPATH is set to a
3786 # non-empty value in the environment. Most likely only useful for
3787 # creating official distributions of packages.
3788 # This is a hack until libtool officially supports absolute path
3789 # names for shared libraries.
3790 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3791 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3792 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3793 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3794 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3795 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3796 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3797 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3798 runpath_var='LD_RUN_PATH'
3800 case $cc_basename in
3802 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3803 _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'
3806 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3807 _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'
3812 case $cc_basename in
3814 # NonStop-UX NCC 3.20
3815 # FIXME: insert proper C++ library support
3816 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3819 # FIXME: insert proper C++ library support
3820 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3825 # FIXME: insert proper C++ library support
3826 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3829 # FIXME: insert proper C++ library support
3830 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3833 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3834 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3836 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3837 _LT_AC_TAGVAR(LD, $1)="$LD"
3839 AC_LIBTOOL_POSTDEP_PREDEP($1)
3840 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3841 AC_LIBTOOL_PROG_CC_C_O($1)
3842 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3843 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3844 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3845 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3847 AC_LIBTOOL_CONFIG($1)
3854 with_gnu_ldcxx=$with_gnu_ld
3855 with_gnu_ld=$lt_save_with_gnu_ld
3856 lt_cv_path_LDCXX=$lt_cv_path_LD
3857 lt_cv_path_LD=$lt_save_path_LD
3858 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3859 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3860 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3862 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3863 # ------------------------------------
3864 # Figure out "hidden" library dependencies from verbose
3865 # compiler output when linking a shared library.
3866 # Parse the compiler output and extract the necessary
3867 # objects, libraries and library flags.
3868 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3869 dnl we can't use the lt_simple_compile_test_code here,
3870 dnl because it contains code intended for an executable,
3871 dnl not a library. It's possible we should let each
3872 dnl tag define a new lt_????_link_test_code variable,
3873 dnl but it's only used here...
3874 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3876 void foo (void) { a = 0; }
3878 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3882 Foo (void) { a = 0; }
3887 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3895 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3898 public void bar (void) {
3904 dnl Parse the compiler output and extract the necessary
3905 dnl objects, libraries and library flags.
3906 if AC_TRY_EVAL(ac_compile); then
3907 # Parse the compiler output and extract the necessary
3908 # objects, libraries and library flags.
3910 # Sentinel used to keep track of whether or not we are before
3911 # the conftest object file.
3912 pre_test_object_deps_done=no
3914 # The `*' in the case matches for architectures that use `case' in
3915 # $output_verbose_cmd can trigger glob expansion during the loop
3916 # eval without this substitution.
3917 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3919 for p in `eval $output_verbose_link_cmd`; do
3923 # Some compilers place space between "-{L,R}" and the path.
3926 || test $p = "-R"; then
3933 if test "$pre_test_object_deps_done" = no; then
3936 # Internal compiler library paths should come after those
3937 # provided the user. The postdeps already come after the
3938 # user supplied libs so there is no need to process them.
3939 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3940 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3942 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3945 # The "-l" case would never come before the object being
3946 # linked, so don't bother handling this case.
3949 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3950 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3952 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3958 # This assumes that the test object file only shows up
3959 # once in the compiler output.
3960 if test "$p" = "conftest.$objext"; then
3961 pre_test_object_deps_done=yes
3965 if test "$pre_test_object_deps_done" = no; then
3966 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3967 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3969 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3972 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3973 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3975 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3980 *) ;; # Ignore the rest.
3988 echo "libtool.m4: error: problem compiling $1 test program"
3991 $rm -f confest.$objext
3993 # PORTME: override above test on systems where it is broken
3997 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3998 # hack all around it, let's just trust "g++" to DTRT.
3999 _LT_AC_TAGVAR(predep_objects,$1)=
4000 _LT_AC_TAGVAR(postdep_objects,$1)=
4001 _LT_AC_TAGVAR(postdeps,$1)=
4005 case `$CC -V 2>&1 | sed 5q` in
4009 # The more standards-conforming stlport4 library is
4010 # incompatible with the Cstd library. Avoid specifying
4011 # it if it's in CXXFLAGS. Ignore libCrun as
4012 # -library=stlport4 depends on it.
4013 case " $CXX $CXXFLAGS " in
4014 *" -library=stlport4 "*)
4015 solaris_use_stlport4=yes
4018 if test "$solaris_use_stlport4" != yes; then
4019 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4026 case $cc_basename in
4028 # The more standards-conforming stlport4 library is
4029 # incompatible with the Cstd library. Avoid specifying
4030 # it if it's in CXXFLAGS. Ignore libCrun as
4031 # -library=stlport4 depends on it.
4032 case " $CXX $CXXFLAGS " in
4033 *" -library=stlport4 "*)
4034 solaris_use_stlport4=yes
4038 # Adding this requires a known-good setup of shared libraries for
4039 # Sun compiler versions before 5.6, else PIC objects from an old
4040 # archive will be linked into the output, leading to subtle bugs.
4041 if test "$solaris_use_stlport4" != yes; then
4042 _LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4050 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4051 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4053 ])# AC_LIBTOOL_POSTDEP_PREDEP
4055 # AC_LIBTOOL_LANG_F77_CONFIG
4056 # --------------------------
4057 # Ensure that the configuration vars for the C compiler are
4058 # suitably defined. Those variables are subsequently used by
4059 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4060 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4061 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4062 [AC_REQUIRE([AC_PROG_F77])
4063 AC_LANG_PUSH(Fortran 77)
4065 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4066 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4067 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4068 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4069 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4070 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4071 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4072 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4073 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4074 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4075 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4076 _LT_AC_TAGVAR(module_cmds, $1)=
4077 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4078 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4079 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4080 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4081 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4082 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4084 # Source file extension for f77 test sources.
4087 # Object file extension for compiled f77 test sources.
4089 _LT_AC_TAGVAR(objext, $1)=$objext
4091 # Code to be used in simple compile tests
4092 lt_simple_compile_test_code="\
4098 # Code to be used in simple link tests
4099 lt_simple_link_test_code="\
4104 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4107 # save warnings/boilerplate of simple test code
4108 _LT_COMPILER_BOILERPLATE
4109 _LT_LINKER_BOILERPLATE
4111 # Allow CC to be a program name with arguments.
4115 _LT_AC_TAGVAR(compiler, $1)=$CC
4116 _LT_CC_BASENAME([$compiler])
4118 AC_MSG_CHECKING([if libtool supports shared libraries])
4119 AC_MSG_RESULT([$can_build_shared])
4121 AC_MSG_CHECKING([whether to build shared libraries])
4122 test "$can_build_shared" = "no" && enable_shared=no
4124 # On AIX, shared libraries and static libraries use the same namespace, and
4125 # are all built from PIC.
4128 test "$enable_shared" = yes && enable_static=no
4129 if test -n "$RANLIB"; then
4130 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4131 postinstall_cmds='$RANLIB $lib'
4135 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4136 test "$enable_shared" = yes && enable_static=no
4140 AC_MSG_RESULT([$enable_shared])
4142 AC_MSG_CHECKING([whether to build static libraries])
4143 # Make sure either enable_shared or enable_static is yes.
4144 test "$enable_shared" = yes || enable_static=yes
4145 AC_MSG_RESULT([$enable_static])
4147 _LT_AC_TAGVAR(GCC, $1)="$G77"
4148 _LT_AC_TAGVAR(LD, $1)="$LD"
4150 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4151 AC_LIBTOOL_PROG_CC_C_O($1)
4152 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4153 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4154 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4155 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4157 AC_LIBTOOL_CONFIG($1)
4161 ])# AC_LIBTOOL_LANG_F77_CONFIG
4164 # AC_LIBTOOL_LANG_GCJ_CONFIG
4165 # --------------------------
4166 # Ensure that the configuration vars for the C compiler are
4167 # suitably defined. Those variables are subsequently used by
4168 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4169 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4170 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4173 # Source file extension for Java test sources.
4176 # Object file extension for compiled Java test sources.
4178 _LT_AC_TAGVAR(objext, $1)=$objext
4180 # Code to be used in simple compile tests
4181 lt_simple_compile_test_code="class foo {}"
4183 # Code to be used in simple link tests
4184 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4186 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4189 # save warnings/boilerplate of simple test code
4190 _LT_COMPILER_BOILERPLATE
4191 _LT_LINKER_BOILERPLATE
4193 # Allow CC to be a program name with arguments.
4197 _LT_AC_TAGVAR(compiler, $1)=$CC
4198 _LT_CC_BASENAME([$compiler])
4200 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4201 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4203 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4205 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4206 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4207 AC_LIBTOOL_PROG_CC_C_O($1)
4208 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4209 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4210 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4211 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4213 AC_LIBTOOL_CONFIG($1)
4217 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4220 # AC_LIBTOOL_LANG_RC_CONFIG
4221 # -------------------------
4222 # Ensure that the configuration vars for the Windows resource compiler are
4223 # suitably defined. Those variables are subsequently used by
4224 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4225 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4226 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4229 # Source file extension for RC test sources.
4232 # Object file extension for compiled RC test sources.
4234 _LT_AC_TAGVAR(objext, $1)=$objext
4236 # Code to be used in simple compile tests
4237 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4239 # Code to be used in simple link tests
4240 lt_simple_link_test_code="$lt_simple_compile_test_code"
4242 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4245 # save warnings/boilerplate of simple test code
4246 _LT_COMPILER_BOILERPLATE
4247 _LT_LINKER_BOILERPLATE
4249 # Allow CC to be a program name with arguments.
4253 _LT_AC_TAGVAR(compiler, $1)=$CC
4254 _LT_CC_BASENAME([$compiler])
4255 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4257 AC_LIBTOOL_CONFIG($1)
4261 ])# AC_LIBTOOL_LANG_RC_CONFIG
4264 # AC_LIBTOOL_CONFIG([TAGNAME])
4265 # ----------------------------
4266 # If TAGNAME is not passed, then create an initial libtool script
4267 # with a default configuration from the untagged config vars. Otherwise
4268 # add code to config.status for appending the configuration named by
4269 # TAGNAME from the matching tagged config vars.
4270 AC_DEFUN([AC_LIBTOOL_CONFIG],
4271 [# The else clause should only fire when bootstrapping the
4272 # libtool distribution, otherwise you forgot to ship ltmain.sh
4273 # with your package, and you will get complaints that there are
4274 # no rules to generate ltmain.sh.
4275 if test -f "$ltmain"; then
4276 # See if we are running on zsh, and set the options which allow our commands through
4277 # without removal of \ escapes.
4278 if test -n "${ZSH_VERSION+set}" ; then
4279 setopt NO_GLOB_SUBST
4281 # Now quote all the things that may contain metacharacters while being
4282 # careful not to overquote the AC_SUBSTed values. We take copies of the
4283 # variables and quote the copies for generation of the libtool script.
4284 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4286 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4287 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4288 deplibs_check_method reload_flag reload_cmds need_locks \
4289 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4290 lt_cv_sys_global_symbol_to_c_name_address \
4291 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4292 old_postinstall_cmds old_postuninstall_cmds \
4293 _LT_AC_TAGVAR(compiler, $1) \
4294 _LT_AC_TAGVAR(CC, $1) \
4295 _LT_AC_TAGVAR(LD, $1) \
4296 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4297 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4298 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4299 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4300 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4301 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4302 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4303 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4304 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4305 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4306 _LT_AC_TAGVAR(predep_objects, $1) \
4307 _LT_AC_TAGVAR(postdep_objects, $1) \
4308 _LT_AC_TAGVAR(predeps, $1) \
4309 _LT_AC_TAGVAR(postdeps, $1) \
4310 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4311 _LT_AC_TAGVAR(archive_cmds, $1) \
4312 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4313 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4314 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4315 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4316 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4317 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4318 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4319 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4320 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4321 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4322 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4323 _LT_AC_TAGVAR(module_cmds, $1) \
4324 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4325 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4326 _LT_AC_TAGVAR(fix_srcfile_path, $1) \
4327 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4328 _LT_AC_TAGVAR(include_expsyms, $1); do
4331 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4332 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4333 _LT_AC_TAGVAR(archive_cmds, $1) | \
4334 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4335 _LT_AC_TAGVAR(module_cmds, $1) | \
4336 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4337 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4338 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4339 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4340 postinstall_cmds | postuninstall_cmds | \
4341 old_postinstall_cmds | old_postuninstall_cmds | \
4342 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4343 # Double-quote double-evaled strings.
4344 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4347 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4353 *'\[$]0 --fallback-echo"')
4354 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4359 [cfgfile="${ofile}T"
4360 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4362 AC_MSG_NOTICE([creating $ofile])],
4365 cat <<__EOF__ >> "$cfgfile"
4369 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4370 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4371 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4373 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4374 # Free Software Foundation, Inc.
4376 # This file is part of GNU Libtool:
4377 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4379 # This program is free software; you can redistribute it and/or modify
4380 # it under the terms of the GNU General Public License as published by
4381 # the Free Software Foundation; either version 2 of the License, or
4382 # (at your option) any later version.
4384 # This program is distributed in the hope that it will be useful, but
4385 # WITHOUT ANY WARRANTY; without even the implied warranty of
4386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4387 # General Public License for more details.
4389 # You should have received a copy of the GNU General Public License
4390 # along with this program; if not, write to the Free Software
4391 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4393 # As a special exception to the GNU General Public License, if you
4394 # distribute this file as part of a program that contains a
4395 # configuration script generated by Autoconf, you may include it under
4396 # the same distribution terms that you use for the rest of that program.
4398 # A sed program that does not truncate output.
4401 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4402 Xsed="$SED -e 1s/^X//"
4404 # The HP-UX ksh and POSIX shell print the target directory to stdout
4406 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4408 # The names of the tagged configurations supported by this script.
4411 # ### BEGIN LIBTOOL CONFIG],
4412 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4414 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4416 # Shell to use when invoking shell scripts.
4419 # Whether or not to build shared libraries.
4420 build_libtool_libs=$enable_shared
4422 # Whether or not to build static libraries.
4423 build_old_libs=$enable_static
4425 # Whether or not to add -lc for building shared libraries.
4426 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4428 # Whether or not to disallow shared libs when runtime libs are static
4429 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4431 # Whether or not to optimize for fast installation.
4432 fast_install=$enable_fast_install
4435 host_alias=$host_alias
4440 build_alias=$build_alias
4444 # An echo program that does not interpret backslashes.
4449 AR_FLAGS=$lt_AR_FLAGS
4454 # LTCC compiler flags.
4455 LTCFLAGS=$lt_LTCFLAGS
4457 # A language-specific compiler.
4458 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4460 # Is the compiler the GNU C compiler?
4461 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4466 # The linker used to build libraries.
4467 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4469 # Whether we need hard or soft links.
4472 # A BSD-compatible nm program.
4475 # A symbol stripping program
4478 # Used to examine libraries when file_magic_cmd begins "file"
4479 MAGIC_CMD=$MAGIC_CMD
4481 # Used on cygwin: DLL creation program.
4484 # Used on cygwin: object dumper.
4487 # Used on cygwin: assembler.
4490 # The name of the directory that contains temporary libtool files.
4493 # How to create reloadable object files.
4494 reload_flag=$lt_reload_flag
4495 reload_cmds=$lt_reload_cmds
4497 # How to pass a linker flag through the compiler.
4498 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4500 # Object file suffix (normally "o").
4503 # Old archive suffix (normally "a").
4506 # Shared library suffix (normally ".so").
4507 shrext_cmds='$shrext_cmds'
4509 # Executable file suffix (normally "").
4512 # Additional compiler flags for building library objects.
4513 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4516 # What is the maximum length of a command?
4517 max_cmd_len=$lt_cv_sys_max_cmd_len
4519 # Does compiler simultaneously support -c and -o options?
4520 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4522 # Must we lock files when doing compilation?
4523 need_locks=$lt_need_locks
4525 # Do we need the lib prefix for modules?
4526 need_lib_prefix=$need_lib_prefix
4528 # Do we need a version for libraries?
4529 need_version=$need_version
4531 # Whether dlopen is supported.
4532 dlopen_support=$enable_dlopen
4534 # Whether dlopen of programs is supported.
4535 dlopen_self=$enable_dlopen_self
4537 # Whether dlopen of statically linked programs is supported.
4538 dlopen_self_static=$enable_dlopen_self_static
4540 # Compiler flag to prevent dynamic linking.
4541 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4543 # Compiler flag to turn off builtin functions.
4544 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4546 # Compiler flag to allow reflexive dlopens.
4547 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4549 # Compiler flag to generate shared objects directly from archives.
4550 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4552 # Compiler flag to generate thread-safe objects.
4553 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4555 # Library versioning type.
4556 version_type=$version_type
4558 # Format of library name prefix.
4559 libname_spec=$lt_libname_spec
4561 # List of archive names. First name is the real one, the rest are links.
4562 # The last name is the one that the linker finds with -lNAME.
4563 library_names_spec=$lt_library_names_spec
4565 # The coded name of the library, if different from the real name.
4566 soname_spec=$lt_soname_spec
4568 # Commands used to build and install an old-style archive.
4570 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4571 old_postinstall_cmds=$lt_old_postinstall_cmds
4572 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4574 # Create an old-style archive from a shared archive.
4575 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4577 # Create a temporary old-style archive to link instead of a shared archive.
4578 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4580 # Commands used to build and install a shared archive.
4581 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4582 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4583 postinstall_cmds=$lt_postinstall_cmds
4584 postuninstall_cmds=$lt_postuninstall_cmds
4586 # Commands used to build a loadable module (assumed same as above if empty)
4587 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4588 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4590 # Commands to strip libraries.
4591 old_striplib=$lt_old_striplib
4592 striplib=$lt_striplib
4594 # Dependencies to place before the objects being linked to create a
4596 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4598 # Dependencies to place after the objects being linked to create a
4600 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4602 # Dependencies to place before the objects being linked to create a
4604 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4606 # Dependencies to place after the objects being linked to create a
4608 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4610 # The library search path used internally by the compiler when linking
4612 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4614 # Method to check whether dependent libraries are shared objects.
4615 deplibs_check_method=$lt_deplibs_check_method
4617 # Command to use when deplibs_check_method == file_magic.
4618 file_magic_cmd=$lt_file_magic_cmd
4620 # Flag that allows shared libraries with undefined symbols to be built.
4621 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4623 # Flag that forces no undefined symbols.
4624 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4626 # Commands used to finish a libtool library installation in a directory.
4627 finish_cmds=$lt_finish_cmds
4629 # Same as above, but a single script fragment to be evaled but not shown.
4630 finish_eval=$lt_finish_eval
4632 # Take the output of nm and produce a listing of raw symbols and C names.
4633 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4635 # Transform the output of nm in a proper C declaration
4636 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4638 # Transform the output of nm in a C name address pair
4639 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4641 # This is the shared library runtime path variable.
4642 runpath_var=$runpath_var
4644 # This is the shared library path variable.
4645 shlibpath_var=$shlibpath_var
4647 # Is shlibpath searched before the hard-coded library search path?
4648 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4650 # How to hardcode a shared library path into an executable.
4651 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4653 # Whether we should hardcode library paths into libraries.
4654 hardcode_into_libs=$hardcode_into_libs
4656 # Flag to hardcode \$libdir into a binary during linking.
4657 # This must work even if \$libdir does not exist.
4658 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4660 # If ld is used when linking, flag to hardcode \$libdir into
4661 # a binary during linking. This must work even if \$libdir does
4663 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4665 # Whether we need a single -rpath flag with a separated argument.
4666 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4668 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4670 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4672 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4674 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4676 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4677 # the resulting binary.
4678 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4680 # Set to yes if building a shared library automatically hardcodes DIR into the library
4681 # and all subsequent libraries and executables linked against it.
4682 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4684 # Variables whose values should be saved in libtool wrapper scripts and
4685 # restored at relink time.
4686 variables_saved_for_relink="$variables_saved_for_relink"
4688 # Whether libtool must link a program against all its dependency libraries.
4689 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4691 # Compile-time system search path for libraries
4692 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4694 # Run-time system search path for libraries
4695 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4697 # Fix the shell variable \$srcfile for the compiler.
4698 fix_srcfile_path=$lt_fix_srcfile_path
4700 # Set to yes if exported symbols are required.
4701 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4703 # The commands to list exported symbols.
4704 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4706 # The commands to extract the exported symbol list from a shared archive.
4707 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4709 # Symbols that should not be listed in the preloaded symbols.
4710 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4712 # Symbols that must always be exported.
4713 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4716 [# ### END LIBTOOL CONFIG],
4717 [# ### END LIBTOOL TAG CONFIG: $tagname])
4724 cat <<\EOF >> "$cfgfile"
4726 # AIX sometimes has problems with the GCC collect2 program. For some
4727 # reason, if we set the COLLECT_NAMES environment variable, the problems
4728 # vanish in a puff of smoke.
4729 if test "X${COLLECT_NAMES+set}" != Xset; then
4731 export COLLECT_NAMES
4737 # We use sed instead of cat because bash on DJGPP gets confused if
4738 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4739 # text mode, it properly converts lines to CR/LF. This bash problem
4740 # is reportedly fixed, but why not run on old versions too?
4741 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4743 mv -f "$cfgfile" "$ofile" || \
4744 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4748 # If there is no Makefile yet, we rely on a make rule to execute
4749 # `config.status --recheck' to rerun these tests and create the
4750 # libtool script then.
4751 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4752 if test -f "$ltmain_in"; then
4753 test -f Makefile && make "$ltmain"
4756 ])# AC_LIBTOOL_CONFIG
4759 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4760 # -------------------------------------------
4761 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4762 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4764 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4766 if test "$GCC" = yes; then
4767 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4769 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4770 lt_cv_prog_compiler_rtti_exceptions,
4771 [-fno-rtti -fno-exceptions], [],
4772 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4774 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4777 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4778 # ---------------------------------
4779 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4780 [AC_REQUIRE([AC_CANONICAL_HOST])
4781 AC_REQUIRE([LT_AC_PROG_SED])
4782 AC_REQUIRE([AC_PROG_NM])
4783 AC_REQUIRE([AC_OBJEXT])
4784 # Check for command to grab the raw symbol name followed by C symbol from nm.
4785 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4786 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4788 # These are sane defaults that work on at least a few old systems.
4789 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4791 # Character class describing NM global symbol codes.
4792 symcode='[[BCDEGRST]]'
4794 # Regexp to match symbols that can be accessed directly from C.
4795 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4797 # Transform an extracted symbol line into a proper C declaration
4798 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4800 # Transform an extracted symbol line into symbol name and symbol address
4801 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'"
4803 # Define system-specific variables.
4808 cygwin* | mingw* | pw32*)
4809 symcode='[[ABCDGISTW]]'
4811 hpux*) # Its linker distinguishes data from code symbols
4812 if test "$host_cpu" = ia64; then
4813 symcode='[[ABCDEGRST]]'
4815 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4816 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'"
4818 linux* | k*bsd*-gnu)
4819 if test "$host_cpu" = ia64; then
4820 symcode='[[ABCDGIRSTW]]'
4821 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4822 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'"
4826 symcode='[[BCDEGRST]]'
4829 symcode='[[BCDEGQRST]]'
4840 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4844 symcode='[[DFNSTU]]'
4848 # Handle CRLF in mingw tool chain
4852 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4856 # If we're using GNU nm, then use its standard symbol codes.
4857 case `$NM -V 2>&1` in
4858 *GNU* | *'with BFD'*)
4859 symcode='[[ABCDGIRSTW]]' ;;
4862 # Try without a prefix undercore, then with it.
4863 for ac_symprfx in "" "_"; do
4865 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4866 symxfrm="\\1 $ac_symprfx\\2 \\2"
4868 # Write the raw and C identifiers.
4869 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4871 # Check to see that the pipe works correctly.
4875 cat > conftest.$ac_ext <<EOF
4880 void nm_test_func(){}
4884 int main(){nm_test_var='a';nm_test_func();return(0);}
4887 if AC_TRY_EVAL(ac_compile); then
4888 # Now try to grab the symbols.
4890 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4891 # Try sorting and uniquifying the output.
4892 if sort "$nlist" | uniq > "$nlist"T; then
4893 mv -f "$nlist"T "$nlist"
4898 # Make sure that we snagged all the symbols we need.
4899 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4900 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4901 cat <<EOF > conftest.$ac_ext
4907 # Now generate the symbol file.
4908 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4910 cat <<EOF >> conftest.$ac_ext
4911 #if defined (__STDC__) && __STDC__
4912 # define lt_ptr_t void *
4914 # define lt_ptr_t char *
4918 /* The mapping between symbol names and symbols. */
4923 lt_preloaded_symbols[[]] =
4926 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4927 cat <<\EOF >> conftest.$ac_ext
4935 # Now try linking the two files.
4936 mv conftest.$ac_objext conftstm.$ac_objext
4937 lt_save_LIBS="$LIBS"
4938 lt_save_CFLAGS="$CFLAGS"
4939 LIBS="conftstm.$ac_objext"
4940 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4941 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4944 LIBS="$lt_save_LIBS"
4945 CFLAGS="$lt_save_CFLAGS"
4947 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4950 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4953 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4956 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4957 cat conftest.$ac_ext >&5
4959 rm -f conftest* conftst*
4961 # Do not use the global_symbol_pipe unless it works.
4962 if test "$pipe_works" = yes; then
4965 lt_cv_sys_global_symbol_pipe=
4969 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4970 lt_cv_sys_global_symbol_to_cdecl=
4972 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4973 AC_MSG_RESULT(failed)
4977 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4980 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4981 # ---------------------------------------
4982 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4983 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4984 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4985 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4987 AC_MSG_CHECKING([for $compiler option to produce PIC])
4989 # C++ specific cases for pic, static, wl, etc.
4990 if test "$GXX" = yes; then
4991 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4992 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4996 # All AIX code is PIC.
4997 if test "$host_cpu" = ia64; then
4998 # AIX 5 now supports IA64 processor
4999 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5003 # FIXME: we need at least 68020 code to build shared libraries, but
5004 # adding the `-m68020' flag to GCC prevents building anything better,
5006 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5008 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5009 # PIC is the default for these OSes.
5011 mingw* | cygwin* | os2* | pw32*)
5012 # This hack is so that the source file can tell whether it is being
5013 # built for inclusion in a dll (and should export symbols for example).
5014 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5015 # (--disable-auto-import) libraries
5016 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5018 darwin* | rhapsody*)
5019 # PIC is the default on this platform
5020 # Common symbols not allowed in MH_DYLIB files
5021 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5024 # DJGPP does not support shared libraries at all
5025 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5028 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5029 # Instead, we relocate shared libraries at runtime.
5032 if test -d /usr/nec; then
5033 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5037 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5043 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5048 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5054 # All AIX code is PIC.
5055 if test "$host_cpu" = ia64; then
5056 # AIX 5 now supports IA64 processor
5057 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5059 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5063 case $cc_basename in
5065 # Green Hills C++ Compiler
5066 # _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"
5071 # PIC is the default on this platform
5072 # Common symbols not allowed in MH_DYLIB files
5073 case $cc_basename in
5075 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5076 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5081 case $cc_basename in
5083 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5086 # Green Hills C++ Compiler
5087 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5093 freebsd* | dragonfly*)
5094 # FreeBSD uses GNU C++
5096 hpux9* | hpux10* | hpux11*)
5097 case $cc_basename in
5099 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5100 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5101 if test "$host_cpu" != ia64; then
5102 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5106 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5107 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5122 # This is c89, which is MS Visual C++ (no shared libs)
5123 # Anyone wants to do a port?
5125 irix5* | irix6* | nonstopux*)
5126 case $cc_basename in
5128 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5129 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5130 # CC pic flag -KPIC is the default.
5136 linux* | k*bsd*-gnu)
5137 case $cc_basename in
5140 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5141 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5145 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5146 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5147 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5150 # Portland Group C++ compiler.
5151 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5152 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5153 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5157 # Make sure the PIC flag is empty. It appears that all Alpha
5158 # Linux and Compaq Tru64 Unix objects are PIC.
5159 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5160 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5163 case `$CC -V 2>&1 | sed 5q` in
5166 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5167 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5168 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5179 case $cc_basename in
5181 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5189 osf3* | osf4* | osf5*)
5190 case $cc_basename in
5192 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5195 # Rational C++ 2.4.1
5196 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5199 # Digital/Compaq C++
5200 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5201 # Make sure the PIC flag is empty. It appears that all Alpha
5202 # Linux and Compaq Tru64 Unix objects are PIC.
5203 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5204 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5213 case $cc_basename in
5215 # Sun C++ 4.2, 5.x and Centerline C++
5216 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5217 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5218 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5221 # Green Hills C++ Compiler
5222 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5229 case $cc_basename in
5232 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5233 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5237 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5244 case $cc_basename in
5246 # NonStop-UX NCC 3.20
5247 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5253 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5254 case $cc_basename in
5256 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5257 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5258 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5265 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5271 if test "$GCC" = yes; then
5272 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5273 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5277 # All AIX code is PIC.
5278 if test "$host_cpu" = ia64; then
5279 # AIX 5 now supports IA64 processor
5280 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5285 # FIXME: we need at least 68020 code to build shared libraries, but
5286 # adding the `-m68020' flag to GCC prevents building anything better,
5288 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5291 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5292 # PIC is the default for these OSes.
5295 mingw* | cygwin* | pw32* | os2*)
5296 # This hack is so that the source file can tell whether it is being
5297 # built for inclusion in a dll (and should export symbols for example).
5298 # Although the cygwin gcc ignores -fPIC, still need this for old-style
5299 # (--disable-auto-import) libraries
5300 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5303 darwin* | rhapsody*)
5304 # PIC is the default on this platform
5305 # Common symbols not allowed in MH_DYLIB files
5306 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5311 # Instead, we relocate shared libraries at runtime.
5315 # Just because we use GCC doesn't mean we suddenly get shared libraries
5316 # on systems that don't support them.
5317 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5322 if test -d /usr/nec; then
5323 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5328 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5335 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5341 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5345 # PORTME Check for flag to pass linker flags through the system compiler.
5348 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5349 if test "$host_cpu" = ia64; then
5350 # AIX 5 now supports IA64 processor
5351 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5353 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5357 # PIC is the default on this platform
5358 # Common symbols not allowed in MH_DYLIB files
5359 case $cc_basename in
5361 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5362 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5367 mingw* | cygwin* | pw32* | os2*)
5368 # This hack is so that the source file can tell whether it is being
5369 # built for inclusion in a dll (and should export symbols for example).
5370 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5373 hpux9* | hpux10* | hpux11*)
5374 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5375 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5382 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5385 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5386 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5389 irix5* | irix6* | nonstopux*)
5390 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5391 # PIC (with -KPIC) is the default.
5392 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5396 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5397 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5400 linux* | k*bsd*-gnu)
5401 case $cc_basename in
5403 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5404 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5405 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5407 pgcc* | pgf77* | pgf90* | pgf95*)
5408 # Portland Group compilers (*not* the Pentium gcc compiler,
5409 # which looks to be a dead project)
5410 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5411 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5412 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5415 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5416 # All Alpha code is PIC.
5417 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5420 case `$CC -V 2>&1 | sed 5q` in
5423 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5424 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5425 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5428 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5429 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5430 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5431 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5438 osf3* | osf4* | osf5*)
5439 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5440 # All OSF/1 code is PIC.
5441 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5445 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5449 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5450 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5451 case $cc_basename in
5453 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5455 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5460 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5461 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5462 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5465 sysv4 | sysv4.2uw2* | sysv4.3*)
5466 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5467 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5468 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5472 if test -d /usr/nec ;then
5473 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5474 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5478 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5479 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5480 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5481 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5485 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5486 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5490 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5491 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5495 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5500 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5503 # Check to make sure the PIC flag actually works.
5505 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5506 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5507 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5508 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5509 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5511 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5513 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5514 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5517 # For platforms which do not support PIC, -DPIC is meaningless:
5519 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5522 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5527 # Check to make sure the static flag actually works.
5529 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5530 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5531 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5532 $lt_tmp_static_flag,
5534 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5538 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5539 # ------------------------------------
5540 # See if the linker supports building shared libraries.
5541 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5542 [AC_REQUIRE([LT_AC_PROG_SED])dnl
5543 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5545 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5548 # If we're using GNU nm, then we don't want the "-C" option.
5549 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5550 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5551 _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'
5553 _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'
5557 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5560 _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'
5563 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5568 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5569 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5570 _LT_AC_TAGVAR(archive_cmds, $1)=
5571 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5572 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5573 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5574 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5575 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5576 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5577 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5578 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5579 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5580 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5581 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5582 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5583 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5584 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5585 _LT_AC_TAGVAR(module_cmds, $1)=
5586 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5587 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5588 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5589 # include_expsyms should be a list of space-separated symbols to be *always*
5590 # included in the symbol list
5591 _LT_AC_TAGVAR(include_expsyms, $1)=
5592 # exclude_expsyms can be an extended regexp of symbols to exclude
5593 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5594 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5595 # as well as any symbol that contains `d'.
5596 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5597 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5598 # platforms (ab)use it in PIC code, but their linkers get confused if
5599 # the symbol is explicitly referenced. Since portable code cannot
5600 # rely on this symbol name, it's probably fine to never include it in
5601 # preloaded symbol tables.
5602 extract_expsyms_cmds=
5603 # Just being paranoid about ensuring that cc_basename is set.
5604 _LT_CC_BASENAME([$compiler])
5606 cygwin* | mingw* | pw32*)
5607 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5608 # When not using gcc, we currently assume that we are using
5609 # Microsoft Visual C++.
5610 if test "$GCC" != yes; then
5615 # we just hope/assume this is gcc and not c89 (= MSVC++)
5623 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5624 if test "$with_gnu_ld" = yes; then
5625 # If archive_cmds runs LD, not CC, wlarc should be empty
5628 # Set some defaults for GNU ld with shared library support. These
5629 # are reset later if shared libraries are not supported. Putting them
5630 # here allows them to be overridden if necessary.
5631 runpath_var=LD_RUN_PATH
5632 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5633 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5634 # ancient GNU ld didn't support --whole-archive et. al.
5635 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5636 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5638 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5640 supports_anon_versioning=no
5641 case `$LD -v 2>/dev/null` in
5642 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5643 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5644 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5645 *\ 2.11.*) ;; # other 2.11 versions
5646 *) supports_anon_versioning=yes ;;
5649 # See if GNU ld supports shared libraries.
5651 aix3* | aix4* | aix5*)
5652 # On AIX/PPC, the GNU linker is very broken
5653 if test "$host_cpu" != ia64; then
5654 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5657 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5658 *** to be unable to reliably create shared libraries on AIX.
5659 *** Therefore, libtool is disabling shared libraries support. If you
5660 *** really care for shared libraries, you may want to modify your PATH
5661 *** so that a non-GNU linker is found, and then restart.
5668 _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)'
5669 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5670 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5672 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5673 # that the semantics of dynamic libraries on AmigaOS, at least up
5674 # to version 4, is to share data among multiple programs linked
5675 # with the same dynamic library. Since this doesn't match the
5676 # behavior of shared libraries on other platforms, we can't use
5678 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5682 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5683 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5684 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5685 # support --undefined. This deserves some investigation. FIXME
5686 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5688 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5692 cygwin* | mingw* | pw32*)
5693 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5694 # as there is no search path for DLLs.
5695 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5696 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5697 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5698 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5699 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5701 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5702 _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'
5703 # If the export-symbols file already is a .def file (1st line
5704 # is EXPORTS), use it as is; otherwise, prepend...
5705 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5706 cp $export_symbols $output_objdir/$soname.def;
5708 echo EXPORTS > $output_objdir/$soname.def;
5709 cat $export_symbols >> $output_objdir/$soname.def;
5711 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5713 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5718 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5719 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5720 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5721 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5722 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5723 # Instead, shared libraries are loaded at an image base (0x10000000 by
5724 # default) and relocated if they conflict, which is a slow very memory
5725 # consuming and fragmenting process. To avoid this, we pick a random,
5726 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5727 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5728 _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'
5729 _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'
5732 gnu* | linux* | k*bsd*-gnu)
5733 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5735 case $cc_basename,$host_cpu in
5736 pgcc*) # Portland Group C compiler
5737 _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'
5738 tmp_addflag=' $pic_flag'
5740 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5741 _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'
5742 tmp_addflag=' $pic_flag -Mnomain' ;;
5743 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5744 tmp_addflag=' -i_dynamic' ;;
5745 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5746 tmp_addflag=' -i_dynamic -nofor_main' ;;
5747 ifc* | ifort*) # Intel Fortran compiler
5748 tmp_addflag=' -nofor_main' ;;
5750 case `$CC -V 2>&1 | sed 5q` in
5751 *Sun\ C*) # Sun C 5.9
5752 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5753 tmp_sharedflag='-G' ;;
5754 *Sun\ F*) # Sun Fortran 8.3
5755 tmp_sharedflag='-G' ;;
5757 tmp_sharedflag='-shared' ;;
5759 _LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5761 if test $supports_anon_versioning = yes; then
5762 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5763 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5764 $echo "local: *; };" >> $output_objdir/$libname.ver~
5765 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5768 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5774 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5777 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5778 _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'
5783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5784 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5788 *** create shared libraries on Solaris systems. Therefore, libtool
5789 *** is disabling shared libraries support. We urge you to upgrade GNU
5790 *** binutils to release 2.9.1 or newer. Another option is to modify
5791 *** your PATH or compiler configuration so that the native linker is
5792 *** used, and then restart.
5795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5796 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797 _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'
5799 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5803 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5804 case `$LD -v 2>&1` in
5805 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5806 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5809 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5810 *** reliably create shared libraries on SCO systems. Therefore, libtool
5811 *** is disabling shared libraries support. We urge you to upgrade GNU
5812 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5813 *** your PATH or compiler configuration so that the native linker is
5814 *** used, and then restart.
5819 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5820 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5821 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5822 _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'
5824 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5831 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5833 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5834 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5839 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5840 _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'
5842 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5847 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5849 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5850 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5851 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5854 # PORTME fill in a description of your system's linker (not GNU ld)
5857 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5858 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5859 _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'
5860 # Note: this linker hardcodes the directories in LIBPATH if there
5861 # are no directories specified by -L.
5862 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5863 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5864 # Neither direct hardcoding nor static linking is supported with a
5866 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5871 if test "$host_cpu" = ia64; then
5872 # On IA64, the linker does run time linking by default, so we don't
5873 # have to do anything special.
5874 aix_use_runtimelinking=no
5875 exp_sym_flag='-Bexport'
5878 # If we're using GNU nm, then we don't want the "-C" option.
5879 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5880 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5881 _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'
5883 _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'
5885 aix_use_runtimelinking=no
5887 # Test if we are trying to use run time linking or normal
5888 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5889 # need to do runtime linking.
5890 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5891 for ld_flag in $LDFLAGS; do
5892 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5893 aix_use_runtimelinking=yes
5900 exp_sym_flag='-bexport'
5901 no_entry_flag='-bnoentry'
5904 # When large executables or shared objects are built, AIX ld can
5905 # have problems creating the table of contents. If linking a library
5906 # or program results in "error TOC overflow" add -mminimal-toc to
5907 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5908 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5910 _LT_AC_TAGVAR(archive_cmds, $1)=''
5911 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5912 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5913 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5915 if test "$GCC" = yes; then
5916 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5917 # We only want to do this on AIX 4.2 and lower, the check
5918 # below for broken collect2 doesn't work under 4.3+
5919 collect2name=`${CC} -print-prog-name=collect2`
5920 if test -f "$collect2name" && \
5921 strings "$collect2name" | grep resolve_lib_name >/dev/null
5923 # We have reworked collect2
5926 # We have old collect2
5927 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5928 # It fails to find uninstalled libraries when the uninstalled
5929 # path is not listed in the libpath. Setting hardcode_minus_L
5930 # to unsupported forces relinking
5931 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5932 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5933 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5937 shared_flag='-shared'
5938 if test "$aix_use_runtimelinking" = yes; then
5939 shared_flag="$shared_flag "'${wl}-G'
5943 if test "$host_cpu" = ia64; then
5944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5945 # chokes on -Wl,-G. The following line is correct:
5948 if test "$aix_use_runtimelinking" = yes; then
5949 shared_flag='${wl}-G'
5951 shared_flag='${wl}-bM:SRE'
5956 # It seems that -bexpall does not export symbols beginning with
5957 # underscore (_), so it is better to generate a list of symbols to export.
5958 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5959 if test "$aix_use_runtimelinking" = yes; then
5960 # Warning - without using the other runtime loading flags (-brtl),
5961 # -berok will link without error, but may produce a broken library.
5962 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5963 # Determine the default libpath from the value encoded in an empty executable.
5964 _LT_AC_SYS_LIBPATH_AIX
5965 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5966 _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"
5968 if test "$host_cpu" = ia64; then
5969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5970 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5971 _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"
5973 # Determine the default libpath from the value encoded in an empty executable.
5974 _LT_AC_SYS_LIBPATH_AIX
5975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5976 # Warning - without using the other run time loading flags,
5977 # -berok will link without error, but may produce a broken library.
5978 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5979 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5980 # Exported symbols can be pulled into shared objects from archives
5981 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5982 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5983 # This is similar to how AIX traditionally builds its shared libraries.
5984 _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'
5990 _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)'
5991 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5992 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5993 # see comment about different semantics on the GNU ld section
5994 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5998 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6001 cygwin* | mingw* | pw32*)
6002 # When not using gcc, we currently assume that we are using
6003 # Microsoft Visual C++.
6004 # hardcode_libdir_flag_spec is actually meaningless, as there is
6005 # no search path for DLLs.
6006 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6007 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6008 # Tell ltmain to make .lib files, not .a files.
6010 # Tell ltmain to make .dll files, not .so files.
6012 # FIXME: Setting linknames here is a bad hack.
6013 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6014 # The linker will automatically build a .lib file if we build a DLL.
6015 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6016 # FIXME: Should let the user specify the lib program.
6017 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6018 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6019 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6022 darwin* | rhapsody*)
6024 rhapsody* | darwin1.[[012]])
6025 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6028 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6029 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6031 case ${MACOSX_DEPLOYMENT_TARGET} in
6033 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6036 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6042 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6043 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6044 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6045 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6046 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6047 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6048 if test "$GCC" = yes ; then
6049 output_verbose_link_cmd='echo'
6050 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6051 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6052 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6053 _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}'
6054 _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}'
6056 case $cc_basename in
6058 output_verbose_link_cmd='echo'
6059 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6060 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6062 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6063 _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}'
6066 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6073 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6074 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6075 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6079 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6082 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6083 # support. Future versions do this automatically, but an explicit c++rt0.o
6084 # does not break anything, and helps significantly (at the cost of a little
6087 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6088 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6089 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6090 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6093 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6095 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6096 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6097 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6098 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6101 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6102 freebsd* | dragonfly*)
6103 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6104 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6105 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6106 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6110 if test "$GCC" = yes; then
6111 _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'
6113 _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'
6115 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6116 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6117 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6119 # hardcode_minus_L: Not really in the search PATH,
6120 # but as the default location of the library.
6121 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6122 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6126 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6127 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6129 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6131 if test "$with_gnu_ld" = no; then
6132 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6133 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6135 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6136 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6138 # hardcode_minus_L: Not really in the search PATH,
6139 # but as the default location of the library.
6140 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6145 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6148 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6151 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6154 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6160 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6163 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6166 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6170 if test "$with_gnu_ld" = no; then
6171 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6172 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6176 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6177 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6178 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6181 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6182 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6184 # hardcode_minus_L: Not really in the search PATH,
6185 # but as the default location of the library.
6186 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6192 irix5* | irix6* | nonstopux*)
6193 if test "$GCC" = yes; then
6194 _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'
6196 _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'
6197 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6199 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6200 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6201 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6205 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6206 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6208 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6210 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6211 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6212 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6216 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6217 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6218 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6219 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6220 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6224 if test -f /usr/libexec/ld.so; then
6225 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6226 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6227 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6228 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6229 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6230 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6231 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6234 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6235 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6239 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6240 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6245 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6250 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6251 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6252 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6253 _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'
6254 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6258 if test "$GCC" = yes; then
6259 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6260 _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'
6262 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6263 _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'
6265 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6266 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6269 osf4* | osf5*) # as osf3* with the addition of -msym flag
6270 if test "$GCC" = yes; then
6271 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6272 _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'
6273 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6275 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6276 _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'
6277 _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~
6278 $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'
6280 # Both c and cxx compiler support -rpath directly
6281 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6283 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6287 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6288 if test "$GCC" = yes; then
6290 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6291 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6292 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6295 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6296 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6297 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6299 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6300 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6302 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6304 # The compiler driver will combine and reorder linker options,
6305 # but understands `-z linker_flag'. GCC discards it without `$wl',
6306 # but is careful enough not to reorder.
6307 # Supported since Solaris 2.6 (maybe 2.5.1?)
6308 if test "$GCC" = yes; then
6309 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6311 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6315 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6319 if test "x$host_vendor" = xsequent; then
6320 # Use $CC to link under sequent, because it throws in some extra .o
6321 # files that make .init and .fini sections work.
6322 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6324 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6326 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6327 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6328 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6329 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6333 case $host_vendor in
6335 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6336 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6339 ## LD is ld it makes a PLAMLIB
6340 ## CC just makes a GrossModule.
6341 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6342 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6343 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6346 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6347 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6350 runpath_var='LD_RUN_PATH'
6351 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6355 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6356 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6357 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6361 if test -d /usr/nec; then
6362 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6363 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6364 runpath_var=LD_RUN_PATH
6365 hardcode_runpath_var=yes
6366 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6370 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6371 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6372 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6373 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6374 runpath_var='LD_RUN_PATH'
6376 if test "$GCC" = yes; then
6377 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6378 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6380 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6381 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6385 sysv5* | sco3.2v5* | sco5v6*)
6386 # Note: We can NOT use -z defs as we might desire, because we do not
6387 # link with -lc, and that would cause any symbols used from libc to
6388 # always be unresolved, which means just about no library would
6389 # ever link correctly. If we're not using GNU ld we use -z text
6390 # though, which does catch some bad symbols but isn't as heavy-handed
6392 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6393 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6394 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6395 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6397 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6398 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6399 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6400 runpath_var='LD_RUN_PATH'
6402 if test "$GCC" = yes; then
6403 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6404 _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'
6406 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6407 _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'
6412 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6413 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6414 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6418 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6423 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6424 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6427 # Do we need to explicitly link libc?
6429 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6431 # Assume -lc should be added
6432 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6434 if test "$enable_shared" = yes && test "$GCC" = yes; then
6435 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6437 # FIXME: we may have to deal with multi-command sequences.
6440 # Test whether the compiler implicitly links with -lc since on some
6441 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6442 # to ld, don't add -lc before -lgcc.
6443 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6445 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6447 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6450 libobjs=conftest.$ac_objext
6452 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6453 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6459 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6460 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6461 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6463 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6465 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6467 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6469 cat conftest.err 1>&5
6472 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6478 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6481 # _LT_AC_FILE_LTDLL_C
6482 # -------------------
6483 # Be careful that the start marker always follows a newline.
6484 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6485 # /* ltdll.c starts here */
6486 # #define WIN32_LEAN_AND_MEAN
6487 # #include <windows.h>
6488 # #undef WIN32_LEAN_AND_MEAN
6489 # #include <stdio.h>
6491 # #ifndef __CYGWIN__
6492 # # ifdef __CYGWIN32__
6493 # # define __CYGWIN__ __CYGWIN32__
6497 # #ifdef __cplusplus
6500 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6501 # #ifdef __cplusplus
6506 # #include <cygwin/cygwin_dll.h>
6507 # DECLARE_CYGWIN_DLL( DllMain );
6509 # HINSTANCE __hDllInstance_base;
6512 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6514 # __hDllInstance_base = hInst;
6517 # /* ltdll.c ends here */
6518 ])# _LT_AC_FILE_LTDLL_C
6521 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6522 # ---------------------------------
6523 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6527 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6528 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6529 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6530 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6531 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6532 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6533 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6535 # This is just to silence aclocal about the macro not being used
6536 ifelse([AC_DISABLE_FAST_INSTALL])
6538 AC_DEFUN([LT_AC_PROG_GCJ],
6539 [AC_CHECK_TOOL(GCJ, gcj, no)
6540 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6544 AC_DEFUN([LT_AC_PROG_RC],
6545 [AC_CHECK_TOOL(RC, windres, no)
6549 # Cheap backport of AS_EXECUTABLE_P and required macros
6550 # from Autoconf 2.59; we should not use $as_executable_p directly.
6554 m4_ifndef([_AS_TEST_PREPARE],
6555 [m4_defun([_AS_TEST_PREPARE],
6556 [if test -x / >/dev/null 2>&1; then
6557 as_executable_p='test -x'
6559 as_executable_p='test -f'
6561 ])])# _AS_TEST_PREPARE
6565 # Check whether a file is executable.
6566 m4_ifndef([AS_EXECUTABLE_P],
6567 [m4_defun([AS_EXECUTABLE_P],
6568 [AS_REQUIRE([_AS_TEST_PREPARE])dnl
6569 $as_executable_p $1[]dnl
6570 ])])# AS_EXECUTABLE_P
6572 # NOTE: This macro has been submitted for inclusion into #
6573 # GNU Autoconf as AC_PROG_SED. When it is available in #
6574 # a released version of Autoconf we should remove this #
6575 # macro and use it instead. #
6578 # Check for a fully-functional sed program, that truncates
6579 # as few characters as possible. Prefer GNU sed if found.
6580 AC_DEFUN([LT_AC_PROG_SED],
6581 [AC_MSG_CHECKING([for a sed that does not truncate output])
6582 AC_CACHE_VAL(lt_cv_path_SED,
6583 [# Loop through the user's path and test for sed and gsed.
6584 # Then use that list of sed's as ones to test for truncation.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for lt_ac_prog in sed gsed; do
6591 for ac_exec_ext in '' $ac_executable_extensions; do
6592 if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6593 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6601 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6602 # along with /bin/sed that truncates output.
6603 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6604 test ! -f $lt_ac_sed && continue
6605 cat /dev/null > conftest.in
6607 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6608 # Check for GNU sed and select it if it is found.
6609 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6610 lt_cv_path_SED=$lt_ac_sed
6614 cat conftest.in conftest.in >conftest.tmp
6615 mv conftest.tmp conftest.in
6616 cp conftest.in conftest.nl
6618 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6619 cmp -s conftest.out conftest.nl || break
6620 # 10000 chars as input seems more than enough
6621 test $lt_ac_count -gt 10 && break
6622 lt_ac_count=`expr $lt_ac_count + 1`
6623 if test $lt_ac_count -gt $lt_ac_max; then
6624 lt_ac_max=$lt_ac_count
6625 lt_cv_path_SED=$lt_ac_sed
6632 AC_MSG_RESULT([$SED])
6635 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6637 # This file is free software; the Free Software Foundation
6638 # gives unlimited permission to copy and/or distribute it,
6639 # with or without modifications, as long as this notice is preserved.
6641 # AM_AUTOMAKE_VERSION(VERSION)
6642 # ----------------------------
6643 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6644 # generated from the m4 files accompanying Automake X.Y.
6645 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6647 # AM_SET_CURRENT_AUTOMAKE_VERSION
6648 # -------------------------------
6649 # Call AM_AUTOMAKE_VERSION so it can be traced.
6650 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6651 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6652 [AM_AUTOMAKE_VERSION([1.9.6])])
6654 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6656 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6658 # This file is free software; the Free Software Foundation
6659 # gives unlimited permission to copy and/or distribute it,
6660 # with or without modifications, as long as this notice is preserved.
6662 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6663 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6664 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6666 # Of course, Automake must honor this variable whenever it calls a
6667 # tool from the auxiliary directory. The problem is that $srcdir (and
6668 # therefore $ac_aux_dir as well) can be either absolute or relative,
6669 # depending on how configure is run. This is pretty annoying, since
6670 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6671 # source directory, any form will work fine, but in subdirectories a
6672 # relative path needs to be adjusted first.
6674 # $ac_aux_dir/missing
6675 # fails when called from a subdirectory if $ac_aux_dir is relative
6676 # $top_srcdir/$ac_aux_dir/missing
6677 # fails if $ac_aux_dir is absolute,
6678 # fails when called from a subdirectory in a VPATH build with
6679 # a relative $ac_aux_dir
6681 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6682 # are both prefixed by $srcdir. In an in-source build this is usually
6683 # harmless because $srcdir is `.', but things will broke when you
6684 # start a VPATH build or use an absolute $srcdir.
6686 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6687 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6688 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6689 # and then we would define $MISSING as
6690 # MISSING="\${SHELL} $am_aux_dir/missing"
6691 # This will work as long as MISSING is not called from configure, because
6692 # unfortunately $(top_srcdir) has no meaning in configure.
6693 # However there are other variables, like CC, which are often used in
6694 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6696 # Another solution, used here, is to always expand $ac_aux_dir to an
6697 # absolute PATH. The drawback is that using absolute paths prevent a
6698 # configured tree to be moved without reconfiguration.
6700 AC_DEFUN([AM_AUX_DIR_EXPAND],
6701 [dnl Rely on autoconf to set up CDPATH properly.
6702 AC_PREREQ([2.50])dnl
6703 # expand $ac_aux_dir to an absolute path
6704 am_aux_dir=`cd $ac_aux_dir && pwd`
6707 # AM_CONDITIONAL -*- Autoconf -*-
6709 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6710 # Free Software Foundation, Inc.
6712 # This file is free software; the Free Software Foundation
6713 # gives unlimited permission to copy and/or distribute it,
6714 # with or without modifications, as long as this notice is preserved.
6718 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6719 # -------------------------------------
6720 # Define a conditional.
6721 AC_DEFUN([AM_CONDITIONAL],
6723 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6724 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6726 AC_SUBST([$1_FALSE])
6734 AC_CONFIG_COMMANDS_PRE(
6735 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6736 AC_MSG_ERROR([[conditional "$1" was never defined.
6737 Usually this means the macro was only invoked conditionally.]])
6741 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6742 # Free Software Foundation, Inc.
6744 # This file is free software; the Free Software Foundation
6745 # gives unlimited permission to copy and/or distribute it,
6746 # with or without modifications, as long as this notice is preserved.
6750 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6751 # written in clear, in which case automake, when reading aclocal.m4,
6752 # will think it sees a *use*, and therefore will trigger all it's
6753 # C support machinery. Also note that it means that autoscan, seeing
6754 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6757 # _AM_DEPENDENCIES(NAME)
6758 # ----------------------
6759 # See how the compiler implements dependency checking.
6760 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6761 # We try a few techniques and use that to set a single cache variable.
6763 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6764 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6765 # dependency, and given that the user is not expected to run this macro,
6766 # just rely on AC_PROG_CC.
6767 AC_DEFUN([_AM_DEPENDENCIES],
6768 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6769 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6770 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6771 AC_REQUIRE([AM_DEP_TRACK])dnl
6773 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6774 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6775 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6776 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6777 [depcc="$$1" am_compiler_list=])
6779 AC_CACHE_CHECK([dependency style of $depcc],
6780 [am_cv_$1_dependencies_compiler_type],
6781 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6782 # We make a subdir and do the tests there. Otherwise we can end up
6783 # making bogus files that we don't know about and never remove. For
6784 # instance it was reported that on HP-UX the gcc test will end up
6785 # making a dummy file named `D' -- because `-MD' means `put the output
6788 # Copy depcomp to subdir because otherwise we won't find it if we're
6789 # using a relative directory.
6790 cp "$am_depcomp" conftest.dir
6792 # We will build objects and dependencies in a subdirectory because
6793 # it helps to detect inapplicable dependency modes. For instance
6794 # both Tru64's cc and ICC support -MD to output dependencies as a
6795 # side effect of compilation, but ICC will put the dependencies in
6796 # the current directory while Tru64 will put them in the object
6800 am_cv_$1_dependencies_compiler_type=none
6801 if test "$am_compiler_list" = ""; then
6802 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6804 for depmode in $am_compiler_list; do
6805 # Setup a source with many dependencies, because some compilers
6806 # like to wrap large dependency lists on column 80 (with \), and
6807 # we should not choose a depcomp mode which is confused by this.
6809 # We need to recreate these files for each test, as the compiler may
6810 # overwrite some of them when testing with obscure command lines.
6811 # This happens at least with the AIX C compiler.
6813 for i in 1 2 3 4 5 6; do
6814 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6815 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6816 # Solaris 8's {/usr,}/bin/sh.
6817 touch sub/conftst$i.h
6819 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6823 # after this tag, mechanisms are not by side-effect, so they'll
6824 # only be used when explicitly requested
6825 if test "x$enable_dependency_tracking" = xyes; then
6833 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6834 # mode. It turns out that the SunPro C++ compiler does not properly
6835 # handle `-M -o', and we need to detect this.
6836 if depmode=$depmode \
6837 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6839 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6840 >/dev/null 2>conftest.err &&
6841 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6842 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6843 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6844 # icc doesn't choke on unknown options, it will just issue warnings
6845 # or remarks (even with -Werror). So we grep stderr for any message
6846 # that says an option was ignored or not supported.
6847 # When given -MP, icc 7.0 and 7.1 complain thusly:
6848 # icc: Command line warning: ignoring option '-M'; no argument required
6849 # The diagnosis changed in icc 8.0:
6850 # icc: Command line remark: option '-MP' not supported
6851 if (grep 'ignoring option' conftest.err ||
6852 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6853 am_cv_$1_dependencies_compiler_type=$depmode
6862 am_cv_$1_dependencies_compiler_type=none
6865 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6866 AM_CONDITIONAL([am__fastdep$1], [
6867 test "x$enable_dependency_tracking" != xno \
6868 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6874 # Choose a directory name for dependency files.
6875 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6876 AC_DEFUN([AM_SET_DEPDIR],
6877 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6878 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6884 AC_DEFUN([AM_DEP_TRACK],
6885 [AC_ARG_ENABLE(dependency-tracking,
6886 [ --disable-dependency-tracking speeds up one-time build
6887 --enable-dependency-tracking do not reject slow dependency extractors])
6888 if test "x$enable_dependency_tracking" != xno; then
6889 am_depcomp="$ac_aux_dir/depcomp"
6892 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6893 AC_SUBST([AMDEPBACKSLASH])
6896 # Generate code to set up dependency tracking. -*- Autoconf -*-
6898 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6899 # Free Software Foundation, Inc.
6901 # This file is free software; the Free Software Foundation
6902 # gives unlimited permission to copy and/or distribute it,
6903 # with or without modifications, as long as this notice is preserved.
6907 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6908 # ------------------------------
6909 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6910 [for mf in $CONFIG_FILES; do
6911 # Strip MF so we end up with the name of the file.
6912 mf=`echo "$mf" | sed -e 's/:.*$//'`
6913 # Check whether this is an Automake generated Makefile or not.
6914 # We used to match only the files named `Makefile.in', but
6915 # some people rename them; so instead we look at the file content.
6916 # Grep'ing the first line is not enough: some people post-process
6917 # each Makefile.in and add a new line on top of each file to say so.
6918 # So let's grep whole file.
6919 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6920 dirpart=`AS_DIRNAME("$mf")`
6924 # Extract the definition of DEPDIR, am__include, and am__quote
6925 # from the Makefile without running `make'.
6926 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6927 test -z "$DEPDIR" && continue
6928 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6929 test -z "am__include" && continue
6930 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6931 # When using ansi2knr, U may be empty or an underscore; expand it
6932 U=`sed -n 's/^U = //p' < "$mf"`
6933 # Find all dependency output files, they are included files with
6934 # $(DEPDIR) in their names. We invoke sed twice because it is the
6935 # simplest approach to changing $(DEPDIR) to its actual value in the
6937 for file in `sed -n "
6938 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6939 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6940 # Make sure the directory exists.
6941 test -f "$dirpart/$file" && continue
6942 fdir=`AS_DIRNAME(["$file"])`
6943 AS_MKDIR_P([$dirpart/$fdir])
6944 # echo "creating $dirpart/$file"
6945 echo '# dummy' > "$dirpart/$file"
6948 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6951 # AM_OUTPUT_DEPENDENCY_COMMANDS
6952 # -----------------------------
6953 # This macro should only be invoked once -- use via AC_REQUIRE.
6955 # This code is only required when automatic dependency tracking
6956 # is enabled. FIXME. This creates each `.P' file that we will
6957 # need in order to bootstrap the dependency handling code.
6958 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6959 [AC_CONFIG_COMMANDS([depfiles],
6960 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6961 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6964 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6965 # Free Software Foundation, Inc.
6967 # This file is free software; the Free Software Foundation
6968 # gives unlimited permission to copy and/or distribute it,
6969 # with or without modifications, as long as this notice is preserved.
6973 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6974 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6976 # Do all the work for Automake. -*- Autoconf -*-
6978 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6979 # Free Software Foundation, Inc.
6981 # This file is free software; the Free Software Foundation
6982 # gives unlimited permission to copy and/or distribute it,
6983 # with or without modifications, as long as this notice is preserved.
6987 # This macro actually does too much. Some checks are only needed if
6988 # your package does certain things. But this isn't really a big deal.
6990 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6991 # AM_INIT_AUTOMAKE([OPTIONS])
6992 # -----------------------------------------------
6993 # The call with PACKAGE and VERSION arguments is the old style
6994 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6995 # and VERSION should now be passed to AC_INIT and removed from
6996 # the call to AM_INIT_AUTOMAKE.
6997 # We support both call styles for the transition. After
6998 # the next Automake release, Autoconf can make the AC_INIT
6999 # arguments mandatory, and then we can depend on a new Autoconf
7000 # release and drop the old call support.
7001 AC_DEFUN([AM_INIT_AUTOMAKE],
7002 [AC_PREREQ([2.58])dnl
7003 dnl Autoconf wants to disallow AM_ names. We explicitly allow
7004 dnl the ones we care about.
7005 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7006 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7007 AC_REQUIRE([AC_PROG_INSTALL])dnl
7008 # test to see if srcdir already configured
7009 if test "`cd $srcdir && pwd`" != "`pwd`" &&
7010 test -f $srcdir/config.status; then
7011 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7014 # test whether we have cygpath
7015 if test -z "$CYGPATH_W"; then
7016 if (cygpath --version) >/dev/null 2>/dev/null; then
7017 CYGPATH_W='cygpath -w'
7022 AC_SUBST([CYGPATH_W])
7024 # Define the identity of the package.
7025 dnl Distinguish between old-style and new-style calls.
7027 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7028 AC_SUBST([PACKAGE], [$1])dnl
7029 AC_SUBST([VERSION], [$2])],
7030 [_AM_SET_OPTIONS([$1])dnl
7031 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7032 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7034 _AM_IF_OPTION([no-define],,
7035 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7036 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7038 # Some tools Automake needs.
7039 AC_REQUIRE([AM_SANITY_CHECK])dnl
7040 AC_REQUIRE([AC_ARG_PROGRAM])dnl
7041 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7042 AM_MISSING_PROG(AUTOCONF, autoconf)
7043 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7044 AM_MISSING_PROG(AUTOHEADER, autoheader)
7045 AM_MISSING_PROG(MAKEINFO, makeinfo)
7047 AM_PROG_INSTALL_STRIP
7048 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7049 # We need awk for the "check" target. The system "awk" is bad on
7051 AC_REQUIRE([AC_PROG_AWK])dnl
7052 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7053 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7054 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7055 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7056 [_AM_PROG_TAR([v7])])])
7057 _AM_IF_OPTION([no-dependencies],,
7058 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7059 [_AM_DEPENDENCIES(CC)],
7060 [define([AC_PROG_CC],
7061 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7062 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7063 [_AM_DEPENDENCIES(CXX)],
7064 [define([AC_PROG_CXX],
7065 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7070 # When config.status generates a header, we must update the stamp-h file.
7071 # This file resides in the same directory as the config header
7072 # that is generated. The stamp files are numbered to have different names.
7074 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7075 # loop where config.status creates the headers, so we can generate
7076 # our stamp files there.
7077 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7078 [# Compute $1's index in $config_headers.
7080 for _am_header in $config_headers :; do
7085 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7088 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7090 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7092 # This file is free software; the Free Software Foundation
7093 # gives unlimited permission to copy and/or distribute it,
7094 # with or without modifications, as long as this notice is preserved.
7096 # AM_PROG_INSTALL_SH
7097 # ------------------
7098 # Define $install_sh.
7099 AC_DEFUN([AM_PROG_INSTALL_SH],
7100 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7101 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7102 AC_SUBST(install_sh)])
7104 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7106 # This file is free software; the Free Software Foundation
7107 # gives unlimited permission to copy and/or distribute it,
7108 # with or without modifications, as long as this notice is preserved.
7112 # Check whether the underlying file-system supports filenames
7113 # with a leading dot. For instance MS-DOS doesn't.
7114 AC_DEFUN([AM_SET_LEADING_DOT],
7115 [rm -rf .tst 2>/dev/null
7116 mkdir .tst 2>/dev/null
7117 if test -d .tst; then
7122 rmdir .tst 2>/dev/null
7123 AC_SUBST([am__leading_dot])])
7125 # Check to see how 'make' treats includes. -*- Autoconf -*-
7127 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7129 # This file is free software; the Free Software Foundation
7130 # gives unlimited permission to copy and/or distribute it,
7131 # with or without modifications, as long as this notice is preserved.
7137 # Check to see how make treats includes.
7138 AC_DEFUN([AM_MAKE_INCLUDE],
7139 [am_make=${MAKE-make}
7140 cat > confinc << 'END'
7145 # If we don't find an include directive, just comment out the code.
7146 AC_MSG_CHECKING([for style of include used by $am_make])
7150 # First try GNU make style include.
7151 echo "include confinc" > confmf
7152 # We grep out `Entering directory' and `Leaving directory'
7153 # messages which can occur if `w' ends up in MAKEFLAGS.
7154 # In particular we don't look at `^make:' because GNU make might
7155 # be invoked under some other name (usually "gmake"), in which
7156 # case it prints its new name instead of `make'.
7157 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7162 # Now try BSD make style include.
7163 if test "$am__include" = "#"; then
7164 echo '.include "confinc"' > confmf
7165 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7166 am__include=.include
7171 AC_SUBST([am__include])
7172 AC_SUBST([am__quote])
7173 AC_MSG_RESULT([$_am_result])
7174 rm -f confinc confmf
7177 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7179 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7180 # Free Software Foundation, Inc.
7182 # This file is free software; the Free Software Foundation
7183 # gives unlimited permission to copy and/or distribute it,
7184 # with or without modifications, as long as this notice is preserved.
7188 # AM_MISSING_PROG(NAME, PROGRAM)
7189 # ------------------------------
7190 AC_DEFUN([AM_MISSING_PROG],
7191 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7192 $1=${$1-"${am_missing_run}$2"}
7196 # AM_MISSING_HAS_RUN
7197 # ------------------
7198 # Define MISSING if not defined so far and test if it supports --run.
7199 # If it does, set am_missing_run to use it, otherwise, to nothing.
7200 AC_DEFUN([AM_MISSING_HAS_RUN],
7201 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7202 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7203 # Use eval to expand $SHELL
7204 if eval "$MISSING --run true"; then
7205 am_missing_run="$MISSING --run "
7208 AC_MSG_WARN([`missing' script is too old or missing])
7212 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7214 # This file is free software; the Free Software Foundation
7215 # gives unlimited permission to copy and/or distribute it,
7216 # with or without modifications, as long as this notice is preserved.
7220 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7222 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7223 # created by `make install' are always world readable, even if the
7224 # installer happens to have an overly restrictive umask (e.g. 077).
7225 # This was a mistake. There are at least two reasons why we must not
7227 # - it causes special bits like SGID to be ignored,
7228 # - it may be too restrictive (some setups expect 775 directories).
7230 # Do not use -m 0755 and let people choose whatever they expect by
7233 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7234 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7235 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7236 # concurrently, both version can detect that a/ is missing, but only
7237 # one can create it and the other will error out. Consequently we
7238 # restrict ourselves to GNU make (using the --version option ensures
7240 AC_DEFUN([AM_PROG_MKDIR_P],
7241 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7242 # We used to keeping the `.' as first argument, in order to
7243 # allow $(mkdir_p) to be used without argument. As in
7244 # $(mkdir_p) $(somedir)
7245 # where $(somedir) is conditionally defined. However this is wrong
7247 # 1. if the package is installed by a user who cannot write `.'
7248 # make install will fail,
7249 # 2. the above comment should most certainly read
7250 # $(mkdir_p) $(DESTDIR)$(somedir)
7251 # so it does not work when $(somedir) is undefined and
7252 # $(DESTDIR) is not.
7253 # To support the latter case, we have to write
7254 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7255 # so the `.' trick is pointless.
7256 mkdir_p='mkdir -p --'
7258 # On NextStep and OpenStep, the `mkdir' command does not
7259 # recognize any option. It will interpret all options as
7260 # directories to create, and then abort because `.' already
7262 for d in ./-p ./--version;
7264 test -d $d && rmdir $d
7266 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7267 if test -f "$ac_aux_dir/mkinstalldirs"; then
7268 mkdir_p='$(mkinstalldirs)'
7270 mkdir_p='$(install_sh) -d'
7273 AC_SUBST([mkdir_p])])
7275 # Helper functions for option handling. -*- Autoconf -*-
7277 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7279 # This file is free software; the Free Software Foundation
7280 # gives unlimited permission to copy and/or distribute it,
7281 # with or without modifications, as long as this notice is preserved.
7285 # _AM_MANGLE_OPTION(NAME)
7286 # -----------------------
7287 AC_DEFUN([_AM_MANGLE_OPTION],
7288 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7290 # _AM_SET_OPTION(NAME)
7291 # ------------------------------
7292 # Set option NAME. Presently that only means defining a flag for this option.
7293 AC_DEFUN([_AM_SET_OPTION],
7294 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7296 # _AM_SET_OPTIONS(OPTIONS)
7297 # ----------------------------------
7298 # OPTIONS is a space-separated list of Automake options.
7299 AC_DEFUN([_AM_SET_OPTIONS],
7300 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7302 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7303 # -------------------------------------------
7304 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7305 AC_DEFUN([_AM_IF_OPTION],
7306 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7308 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7310 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7311 # Free Software Foundation, Inc.
7313 # This file is free software; the Free Software Foundation
7314 # gives unlimited permission to copy and/or distribute it,
7315 # with or without modifications, as long as this notice is preserved.
7321 AC_DEFUN([AM_SANITY_CHECK],
7322 [AC_MSG_CHECKING([whether build environment is sane])
7325 echo timestamp > conftest.file
7326 # Do `set' in a subshell so we don't clobber the current shell's
7327 # arguments. Must try -L first in case configure is actually a
7328 # symlink; some systems play weird games with the mod time of symlinks
7329 # (eg FreeBSD returns the mod time of the symlink's containing
7332 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7333 if test "$[*]" = "X"; then
7335 set X `ls -t $srcdir/configure conftest.file`
7338 if test "$[*]" != "X $srcdir/configure conftest.file" \
7339 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7341 # If neither matched, then we have a broken ls. This can happen
7342 # if, for instance, CONFIG_SHELL is bash and it inherits a
7343 # broken ls alias from the environment. This has actually
7344 # happened. Such a system could not be considered "sane".
7345 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7346 alias in your environment])
7349 test "$[2]" = conftest.file
7355 AC_MSG_ERROR([newly created file is older than distributed files!
7356 Check your system clock])
7358 AC_MSG_RESULT(yes)])
7360 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7362 # This file is free software; the Free Software Foundation
7363 # gives unlimited permission to copy and/or distribute it,
7364 # with or without modifications, as long as this notice is preserved.
7366 # AM_PROG_INSTALL_STRIP
7367 # ---------------------
7368 # One issue with vendor `install' (even GNU) is that you can't
7369 # specify the program used to strip binaries. This is especially
7370 # annoying in cross-compiling environments, where the build's strip
7371 # is unlikely to handle the host's binaries.
7372 # Fortunately install-sh will honor a STRIPPROG variable, so we
7373 # always use install-sh in `make install-strip', and initialize
7374 # STRIPPROG with the value of the STRIP variable (set by the user).
7375 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7376 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7377 # Installed binaries are usually stripped using `strip' when the user
7378 # run `make install-strip'. However `strip' might not be the right
7379 # tool to use in cross-compilation environments, therefore Automake
7380 # will honor the `STRIP' environment variable to overrule this program.
7381 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7382 if test "$cross_compiling" != no; then
7383 AC_CHECK_TOOL([STRIP], [strip], :)
7385 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7386 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7388 # Check how to create a tarball. -*- Autoconf -*-
7390 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7392 # This file is free software; the Free Software Foundation
7393 # gives unlimited permission to copy and/or distribute it,
7394 # with or without modifications, as long as this notice is preserved.
7398 # _AM_PROG_TAR(FORMAT)
7399 # --------------------
7400 # Check how to create a tarball in format FORMAT.
7401 # FORMAT should be one of `v7', `ustar', or `pax'.
7403 # Substitute a variable $(am__tar) that is a command
7404 # writing to stdout a FORMAT-tarball containing the directory
7406 # tardir=directory && $(am__tar) > result.tar
7408 # Substitute a variable $(am__untar) that extract such
7409 # a tarball read from stdin.
7410 # $(am__untar) < result.tar
7411 AC_DEFUN([_AM_PROG_TAR],
7412 [# Always define AMTAR for backward compatibility.
7413 AM_MISSING_PROG([AMTAR], [tar])
7415 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7416 [m4_case([$1], [ustar],, [pax],,
7417 [m4_fatal([Unknown tar format])])
7418 AC_MSG_CHECKING([how to create a $1 tar archive])
7419 # Loop over all known methods to create a tar archive until one works.
7420 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7421 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7422 # Do not fold the above two line into one, because Tru64 sh and
7423 # Solaris sh will not grok spaces in the rhs of `-'.
7424 for _am_tool in $_am_tools
7428 for _am_tar in tar gnutar gtar;
7430 AM_RUN_LOG([$_am_tar --version]) && break
7432 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7433 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7434 am__untar="$_am_tar -xf -"
7437 # Must skip GNU tar: if it does not support --format= it doesn't create
7438 # ustar tarball either.
7439 (tar --version) >/dev/null 2>&1 && continue
7440 am__tar='tar chf - "$$tardir"'
7441 am__tar_='tar chf - "$tardir"'
7442 am__untar='tar xf -'
7445 am__tar='pax -L -x $1 -w "$$tardir"'
7446 am__tar_='pax -L -x $1 -w "$tardir"'
7450 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7451 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7452 am__untar='cpio -i -H $1 -d'
7461 # If the value was cached, stop now. We just wanted to have am__tar
7462 # and am__untar set.
7463 test -n "${am_cv_prog_tar_$1}" && break
7465 # tar/untar a dummy directory, and stop if the command works
7468 echo GrepMe > conftest.dir/file
7469 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7471 if test -s conftest.tar; then
7472 AM_RUN_LOG([$am__untar <conftest.tar])
7473 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7478 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7479 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7481 AC_SUBST([am__untar])