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 # /***********************************************************************
15 # // standard ACC macros
16 # ************************************************************************/
18 AC_DEFUN([mfx_ACC_CHECK_ENDIAN], [
19 AC_C_BIGENDIAN([AC_DEFINE(ACC_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(ACC_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])])
22 AC_DEFUN([mfx_ACC_CHECK_HEADERS], [
24 AC_CHECK_HEADERS([assert.h ctype.h dirent.h errno.h fcntl.h float.h limits.h malloc.h memory.h setjmp.h signal.h stdarg.h stddef.h stdint.h stdio.h stdlib.h string.h strings.h time.h unistd.h utime.h sys/mman.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/wait.h])
27 AC_DEFUN([mfx_ACC_CHECK_FUNCS], [
28 AC_CHECK_FUNCS(access alloca atexit atoi atol chmod chown clock_getcpuclockid clock_getres clock_gettime ctime difftime fstat getenv getpagesize getrusage gettimeofday gmtime isatty localtime longjmp lstat memcmp memcpy memmove memset mkdir mktime mmap mprotect munmap qsort raise rmdir setjmp signal snprintf strcasecmp strchr strdup strerror strftime stricmp strncasecmp strnicmp strrchr strstr time umask utime vsnprintf)
32 AC_DEFUN([mfx_ACC_CHECK_SIZEOF], [
33 AC_CHECK_SIZEOF(short)
37 AC_CHECK_SIZEOF(long long)
38 AC_CHECK_SIZEOF(__int16)
39 AC_CHECK_SIZEOF(__int32)
40 AC_CHECK_SIZEOF(__int64)
42 AC_CHECK_SIZEOF(void *)
43 AC_CHECK_SIZEOF(size_t)
44 AC_CHECK_SIZEOF(ptrdiff_t)
48 # /***********************************************************************
49 # // Check for ACC_conformance
50 # ************************************************************************/
52 AC_DEFUN([mfx_ACC_ACCCHK], [
54 mfx_save_CPPFLAGS=$CPPFLAGS
55 dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here
56 test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS"
58 AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
60 AC_LANG_CONFTEST([AC_LANG_PROGRAM(
61 [[#define ACC_CONFIG_NO_HEADER 1
63 #include "acc/acc_incd.h"
65 #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
66 #include "acc/acc_chk.ch"
68 static void test_acc_compile_time_assert(void) {
69 #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
70 #include "acc/acc_chk.ch"
75 static int test_acc_run_time_assert(int r) {
76 #define ACCCHK_ASSERT(expr) assert(expr);
77 #include "acc/acc_chk.ch"
82 test_acc_compile_time_assert();
83 if (test_acc_run_time_assert(1) != 1) return 1;
88 _AC_COMPILE_IFELSE([], [mfx_tmp=yes])
89 rm -f conftest.$ac_ext conftest.$ac_objext
91 CPPFLAGS=$mfx_save_CPPFLAGS
93 AC_MSG_RESULT([$mfx_tmp])
98 AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ])
99 AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending])
100 AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.])
101 AC_MSG_NOTICE([Thanks for your support.])
103 AC_MSG_ERROR([ACC conformance test failed. Stop.])
110 # /***********************************************************************
111 # // Check for ACC_conformance
112 # ************************************************************************/
114 AC_DEFUN([mfx_MINIACC_ACCCHK], [
116 mfx_save_CPPFLAGS=$CPPFLAGS
117 dnl in Makefile.in $(INCLUDES) will be before $(CPPFLAGS), so we mimic this here
118 test "X$mfx_tmp" = "X" || CPPFLAGS="$mfx_tmp $CPPFLAGS"
120 AC_MSG_CHECKING([whether your compiler passes the ACC conformance test])
122 AC_LANG_CONFTEST([AC_LANG_PROGRAM(
123 [[#define ACC_CONFIG_NO_HEADER 1
124 #define ACC_WANT_ACC_INCD_H 1
127 #define ACC_WANT_ACC_CHK_CH 1
129 #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT_HEADER(expr)
132 #define ACC_WANT_ACC_CHK_CH 1
134 #define ACCCHK_ASSERT(expr) ACC_COMPILE_TIME_ASSERT(expr)
135 static void test_acc_compile_time_assert(void) {
141 #define ACC_WANT_ACC_CHK_CH 1
143 #define ACCCHK_ASSERT(expr) assert(expr);
144 static int test_acc_run_time_assert(int r) {
149 test_acc_compile_time_assert();
150 if (test_acc_run_time_assert(1) != 1) return 1;
155 _AC_COMPILE_IFELSE([], [mfx_tmp=yes])
156 rm -f conftest.$ac_ext conftest.$ac_objext
158 CPPFLAGS=$mfx_save_CPPFLAGS
160 AC_MSG_RESULT([$mfx_tmp])
165 AC_MSG_NOTICE([Your compiler failed the ACC conformance test - for details see ])
166 AC_MSG_NOTICE([`config.log'. Please check that log file and consider sending])
167 AC_MSG_NOTICE([a patch or bug-report to <${PACKAGE_BUGREPORT}>.])
168 AC_MSG_NOTICE([Thanks for your support.])
170 AC_MSG_ERROR([ACC conformance test failed. Stop.])
174 ])# mfx_MINIACC_ACCCHK
180 AC_DEFUN([mfx_PROG_CPPFLAGS], [
181 AC_MSG_CHECKING([whether the C preprocessor needs special flags])
183 AC_LANG_CONFTEST([AC_LANG_PROGRAM(
184 [[#include <limits.h>
185 #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
186 # include "your C preprocessor is broken 1"
187 #elif (0xffffu == 0xfffffffful)
188 # include "your C preprocessor is broken 2"
189 #elif (32767 >= ULONG_MAX) || (65535u >= ULONG_MAX)
190 # include "your C preprocessor is broken 3"
195 mfx_save_CPPFLAGS=$CPPFLAGS
197 for mfx_arg in "" -no-cpp-precomp
199 CPPFLAGS="$mfx_arg $mfx_save_CPPFLAGS"
200 _AC_COMPILE_IFELSE([],
204 CPPFLAGS=$mfx_save_CPPFLAGS
205 rm -f conftest.$ac_ext conftest.$ac_objext
208 AC_MSG_RESULT([none needed]) ;;
210 AC_MSG_RESULT([ERROR])
211 AC_MSG_ERROR([your C preprocessor is broken - for details see config.log])
214 AC_MSG_RESULT([$mfx_tmp])
215 CPPFLAGS="$mfx_tmp $CPPFLAGS"
218 ])# mfx_PROG_CPPFLAGS
221 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
223 # serial 48 AC_PROG_LIBTOOL
226 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
227 # -----------------------------------------------------------
228 # If this macro is not defined by Autoconf, define it here.
229 m4_ifdef([AC_PROVIDE_IFELSE],
231 [m4_define([AC_PROVIDE_IFELSE],
232 [m4_ifdef([AC_PROVIDE_$1],
238 AC_DEFUN([AC_PROG_LIBTOOL],
239 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
240 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
241 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
242 AC_PROVIDE_IFELSE([AC_PROG_CXX],
244 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
246 dnl And a similar setup for Fortran 77 support
247 AC_PROVIDE_IFELSE([AC_PROG_F77],
249 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
252 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
253 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
254 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
255 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
257 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
259 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
261 [ifdef([AC_PROG_GCJ],
262 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
263 ifdef([A][M_PROG_GCJ],
264 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
265 ifdef([LT_AC_PROG_GCJ],
266 [define([LT_AC_PROG_GCJ],
267 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
268 ])])# AC_PROG_LIBTOOL
273 AC_DEFUN([_AC_PROG_LIBTOOL],
274 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
275 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
276 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
277 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
279 # This can be used to rebuild libtool when needed
280 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
282 # Always use our own libtool.
283 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
286 # Prevent multiple expansion
287 define([AC_PROG_LIBTOOL], [])
293 AC_DEFUN([AC_LIBTOOL_SETUP],
295 AC_REQUIRE([AC_ENABLE_SHARED])dnl
296 AC_REQUIRE([AC_ENABLE_STATIC])dnl
297 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
298 AC_REQUIRE([AC_CANONICAL_HOST])dnl
299 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
300 AC_REQUIRE([AC_PROG_CC])dnl
301 AC_REQUIRE([AC_PROG_LD])dnl
302 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
303 AC_REQUIRE([AC_PROG_NM])dnl
305 AC_REQUIRE([AC_PROG_LN_S])dnl
306 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
307 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
308 AC_REQUIRE([AC_OBJEXT])dnl
309 AC_REQUIRE([AC_EXEEXT])dnl
312 AC_LIBTOOL_SYS_MAX_CMD_LEN
313 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
316 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
317 _LT_AC_PROG_ECHO_BACKSLASH
321 # AIX sometimes has problems with the GCC collect2 program. For some
322 # reason, if we set the COLLECT_NAMES environment variable, the problems
323 # vanish in a puff of smoke.
324 if test "X${COLLECT_NAMES+set}" != Xset; then
331 # Sed substitution that helps us do robust quoting. It backslashifies
332 # metacharacters that are still active within double-quoted strings.
333 Xsed='sed -e 1s/^X//'
334 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
336 # Same as above, but do not quote variable references.
337 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
339 # Sed substitution to delay expansion of an escaped shell variable in a
340 # double_quote_subst'ed string.
341 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
343 # Sed substitution to avoid accidental globbing in evaled expressions
344 no_glob_subst='s/\*/\\\*/g'
350 default_ofile=libtool
353 # All known linkers require a `.a' archive for static linking (except MSVC,
354 # which needs '.lib').
356 ltmain="$ac_aux_dir/ltmain.sh"
357 ofile="$default_ofile"
358 with_gnu_ld="$lt_cv_prog_gnu_ld"
360 AC_CHECK_TOOL(AR, ar, false)
361 AC_CHECK_TOOL(RANLIB, ranlib, :)
362 AC_CHECK_TOOL(STRIP, strip, :)
367 # Set sane defaults for various variables
368 test -z "$AR" && AR=ar
369 test -z "$AR_FLAGS" && AR_FLAGS=cru
370 test -z "$AS" && AS=as
371 test -z "$CC" && CC=cc
372 test -z "$LTCC" && LTCC=$CC
373 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
374 test -z "$DLLTOOL" && DLLTOOL=dlltool
375 test -z "$LD" && LD=ld
376 test -z "$LN_S" && LN_S="ln -s"
377 test -z "$MAGIC_CMD" && MAGIC_CMD=file
378 test -z "$NM" && NM=nm
379 test -z "$SED" && SED=sed
380 test -z "$OBJDUMP" && OBJDUMP=objdump
381 test -z "$RANLIB" && RANLIB=:
382 test -z "$STRIP" && STRIP=:
383 test -z "$ac_objext" && ac_objext=o
385 # Determine commands to create old-style static archives.
386 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
387 old_postinstall_cmds='chmod 644 $oldlib'
388 old_postuninstall_cmds=
390 if test -n "$RANLIB"; then
393 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
396 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
399 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
402 _LT_CC_BASENAME([$compiler])
404 # Only perform the check for file, if the check method requires it
405 case $deplibs_check_method in
407 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
413 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
414 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
415 enable_win32_dll=yes, enable_win32_dll=no)
417 AC_ARG_ENABLE([libtool-lock],
418 [AC_HELP_STRING([--disable-libtool-lock],
419 [avoid locking (might break parallel builds)])])
420 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
423 [AC_HELP_STRING([--with-pic],
424 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
425 [pic_mode="$withval"],
427 test -z "$pic_mode" && pic_mode=default
429 # Use C for the default configuration in the libtool script
431 AC_LIBTOOL_LANG_C_CONFIG
436 # _LT_AC_SYS_COMPILER
437 # -------------------
438 AC_DEFUN([_LT_AC_SYS_COMPILER],
439 [AC_REQUIRE([AC_PROG_CC])dnl
441 # If no C compiler was specified, use CC.
444 # If no C compiler flags were specified, use CFLAGS.
445 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
447 # Allow CC to be a program name with arguments.
449 ])# _LT_AC_SYS_COMPILER
452 # _LT_CC_BASENAME(CC)
453 # -------------------
454 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
455 AC_DEFUN([_LT_CC_BASENAME],
456 [for cc_temp in $1""; do
458 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
459 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
464 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
468 # _LT_COMPILER_BOILERPLATE
469 # ------------------------
470 # Check for compiler boilerplate output or warnings with
471 # the simple compiler test code.
472 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
473 [ac_outfile=conftest.$ac_objext
474 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
475 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
476 _lt_compiler_boilerplate=`cat conftest.err`
478 ])# _LT_COMPILER_BOILERPLATE
481 # _LT_LINKER_BOILERPLATE
482 # ----------------------
483 # Check for linker boilerplate output or warnings with
484 # the simple link test code.
485 AC_DEFUN([_LT_LINKER_BOILERPLATE],
486 [ac_outfile=conftest.$ac_objext
487 printf "$lt_simple_link_test_code" >conftest.$ac_ext
488 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
489 _lt_linker_boilerplate=`cat conftest.err`
491 ])# _LT_LINKER_BOILERPLATE
494 # _LT_AC_SYS_LIBPATH_AIX
495 # ----------------------
496 # Links a minimal program and checks the executable
497 # for the system default hardcoded library path. In most cases,
498 # this is /usr/lib:/lib, but when the MPI compilers are used
499 # the location of the communication and MPI libs are included too.
500 # If we don't find anything, use the default library path according
501 # to the aix ld manual.
502 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
503 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
504 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
506 # Check for a 64-bit object if we didn't find anything.
507 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
509 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
510 ])# _LT_AC_SYS_LIBPATH_AIX
513 # _LT_AC_SHELL_INIT(ARG)
514 # ----------------------
515 AC_DEFUN([_LT_AC_SHELL_INIT],
516 [ifdef([AC_DIVERSION_NOTICE],
517 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
518 [AC_DIVERT_PUSH(NOTICE)])
521 ])# _LT_AC_SHELL_INIT
524 # _LT_AC_PROG_ECHO_BACKSLASH
525 # --------------------------
526 # Add some code to the start of the generated configure script which
527 # will find an echo command which doesn't interpret backslashes.
528 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
541 if test "X[$]1" = X--no-reexec; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X[$]1" = X--fallback-echo; then
545 # Avoid inline document here, it may be left over
547 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $echo works!
551 # Restart under the correct shell.
552 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
555 if test "X[$]1" = X--fallback-echo; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568 if test -z "$ECHO"; then
569 if test "X${echo_test_string+set}" != Xset; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
574 echo_test_string=`eval $cmd` &&
575 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
582 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
583 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
584 test "X$echo_testing_string" = "X$echo_test_string"; then
587 # The Solaris, AIX, and Digital Unix default echo programs unquote
588 # backslashes. This makes it impossible to quote backslashes using
589 # echo "$something" | sed 's/\\/\\\\/g'
591 # So, first we look for a working echo in the user's PATH.
593 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
594 for dir in $PATH /usr/ucb; do
596 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
597 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
598 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
599 test "X$echo_testing_string" = "X$echo_test_string"; then
606 if test "X$echo" = Xecho; then
607 # We didn't find a better echo, so look for alternatives.
608 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
609 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
610 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # This shell has a builtin print -r that does the trick.
613 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
614 test "X$CONFIG_SHELL" != X/bin/ksh; then
615 # If we have ksh, try running configure again with it.
616 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
617 export ORIGINAL_CONFIG_SHELL
618 CONFIG_SHELL=/bin/ksh
620 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
624 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
625 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
626 test "X$echo_testing_string" = "X$echo_test_string"; then
629 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
630 test "X$echo_testing_string" = 'X\t' &&
631 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
635 SHELL="$CONFIG_SHELL"
637 echo="$CONFIG_SHELL [$]0 --fallback-echo"
638 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
639 test "X$echo_testing_string" = 'X\t' &&
640 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 echo="$CONFIG_SHELL [$]0 --fallback-echo"
644 # maybe with a smaller string...
647 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
648 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
655 if test "$prev" != 'sed 50q "[$]0"'; then
656 echo_test_string=`eval $prev`
657 export echo_test_string
658 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
660 # Oops. We lost completely, so just stick with echo.
669 # Copy echo and quote the copy suitably for passing to libtool from
670 # the Makefile, instead of quoting the original, which is used later.
672 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
673 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
677 ])])# _LT_AC_PROG_ECHO_BACKSLASH
682 AC_DEFUN([_LT_AC_LOCK],
683 [AC_ARG_ENABLE([libtool-lock],
684 [AC_HELP_STRING([--disable-libtool-lock],
685 [avoid locking (might break parallel builds)])])
686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
688 # Some flags need to be propagated to the compiler or linker for good
692 # Find out which ABI we are using.
693 echo 'int i;' > conftest.$ac_ext
694 if AC_TRY_EVAL(ac_compile); then
695 case `/usr/bin/file conftest.$ac_objext` in
707 # Find out which ABI we are using.
708 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
709 if AC_TRY_EVAL(ac_compile); then
710 if test "$lt_cv_prog_gnu_ld" = yes; then
711 case `/usr/bin/file conftest.$ac_objext` in
713 LD="${LD-ld} -melf32bsmip"
716 LD="${LD-ld} -melf32bmipn32"
719 LD="${LD-ld} -melf64bmip"
723 case `/usr/bin/file conftest.$ac_objext` in
739 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
740 # Find out which ABI we are using.
741 echo 'int i;' > conftest.$ac_ext
742 if AC_TRY_EVAL(ac_compile); then
743 case `/usr/bin/file conftest.o` in
747 LD="${LD-ld} -m elf_i386"
749 ppc64-*linux*|powerpc64-*linux*)
750 LD="${LD-ld} -m elf32ppclinux"
753 LD="${LD-ld} -m elf_s390"
756 LD="${LD-ld} -m elf32_sparc"
763 LD="${LD-ld} -m elf_x86_64"
765 ppc*-*linux*|powerpc*-*linux*)
766 LD="${LD-ld} -m elf64ppc"
769 LD="${LD-ld} -m elf64_s390"
772 LD="${LD-ld} -m elf64_sparc"
782 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
783 SAVE_CFLAGS="$CFLAGS"
784 CFLAGS="$CFLAGS -belf"
785 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
787 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
789 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
790 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
791 CFLAGS="$SAVE_CFLAGS"
795 # Find out which ABI we are using.
796 echo 'int i;' > conftest.$ac_ext
797 if AC_TRY_EVAL(ac_compile); then
798 case `/usr/bin/file conftest.o` in
800 case $lt_cv_prog_gnu_ld in
801 yes*) LD="${LD-ld} -m elf64_sparc" ;;
802 *) LD="${LD-ld} -64" ;;
810 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
811 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
812 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
813 AC_CHECK_TOOL(AS, as, false)
814 AC_CHECK_TOOL(OBJDUMP, objdump, false)
819 need_locks="$enable_libtool_lock"
824 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
825 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
826 # ----------------------------------------------------------------
827 # Check whether the given compiler option works
828 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
829 [AC_REQUIRE([LT_AC_PROG_SED])
830 AC_CACHE_CHECK([$1], [$2],
832 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
833 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
834 lt_compiler_flag="$3"
835 # Insert the option either (1) after the last *FLAGS variable, or
836 # (2) before a word containing "conftest.", or (3) at the end.
837 # Note that $ac_compile itself does not contain backslashes and begins
838 # with a dollar sign (not a hyphen), so the echo should work correctly.
839 # The option is referenced via a variable to avoid confusing sed.
840 lt_compile=`echo "$ac_compile" | $SED \
841 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
842 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
843 -e 's:$: $lt_compiler_flag:'`
844 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
845 (eval "$lt_compile" 2>conftest.err)
847 cat conftest.err >&AS_MESSAGE_LOG_FD
848 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
849 if (exit $ac_status) && test -s "$ac_outfile"; then
850 # The compiler can only warn and ignore the option if not recognized
851 # So say no if there are warnings other than the usual output.
852 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
853 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
854 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
861 if test x"[$]$2" = xyes; then
862 ifelse([$5], , :, [$5])
864 ifelse([$6], , :, [$6])
866 ])# AC_LIBTOOL_COMPILER_OPTION
869 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
870 # [ACTION-SUCCESS], [ACTION-FAILURE])
871 # ------------------------------------------------------------
872 # Check whether the given compiler option works
873 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
874 [AC_CACHE_CHECK([$1], [$2],
876 save_LDFLAGS="$LDFLAGS"
877 LDFLAGS="$LDFLAGS $3"
878 printf "$lt_simple_link_test_code" > conftest.$ac_ext
879 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
880 # The linker can only warn and ignore the option if not recognized
881 # So say no if there are warnings
882 if test -s conftest.err; then
883 # Append any errors to the config.log.
884 cat conftest.err 1>&AS_MESSAGE_LOG_FD
885 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
886 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
887 if diff conftest.exp conftest.er2 >/dev/null; then
895 LDFLAGS="$save_LDFLAGS"
898 if test x"[$]$2" = xyes; then
899 ifelse([$4], , :, [$4])
901 ifelse([$5], , :, [$5])
903 ])# AC_LIBTOOL_LINKER_OPTION
906 # AC_LIBTOOL_SYS_MAX_CMD_LEN
907 # --------------------------
908 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
909 [# find the maximum length of command line arguments
910 AC_MSG_CHECKING([the maximum length of command line arguments])
911 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
917 # On DJGPP, this test can blow up pretty badly due to problems in libc
918 # (any single argument exceeding 2000 bytes causes a buffer overrun
919 # during glob expansion). Even if it were fixed, the result of this
920 # check would be larger than it should be.
921 lt_cv_sys_max_cmd_len=12288; # 12K is about right
925 # Under GNU Hurd, this test is not required because there is
926 # no limit to the length of command line arguments.
927 # Libtool will interpret -1 as no limit whatsoever
928 lt_cv_sys_max_cmd_len=-1;
932 # On Win9x/ME, this test blows up -- it succeeds, but takes
933 # about 5 minutes as the teststring grows exponentially.
934 # Worse, since 9x/ME are not pre-emptively multitasking,
935 # you end up with a "frozen" computer, even though with patience
936 # the test eventually succeeds (with a max line length of 256k).
937 # Instead, let's just punt: use the minimum linelength reported by
938 # all of the supported platforms: 8192 (on NT/2K/XP).
939 lt_cv_sys_max_cmd_len=8192;
943 # On AmigaOS with pdksh, this test takes hours, literally.
944 # So we just punt and use a minimum line length of 8192.
945 lt_cv_sys_max_cmd_len=8192;
948 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
949 # This has been around since 386BSD, at least. Likely further.
950 if test -x /sbin/sysctl; then
951 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
952 elif test -x /usr/sbin/sysctl; then
953 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
955 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
957 # And add a safety zone
958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
963 # We know the value 262144 and hardcode it with a safety zone (like BSD)
964 lt_cv_sys_max_cmd_len=196608
968 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
969 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
970 # nice to cause kernel panics so lets avoid the loop below.
971 # First set a reasonable default.
972 lt_cv_sys_max_cmd_len=16384
974 if test -x /sbin/sysconfig; then
975 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
976 *1*) lt_cv_sys_max_cmd_len=-1 ;;
981 lt_cv_sys_max_cmd_len=102400
983 sysv5* | sco5v6* | sysv4.2uw2*)
984 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
985 if test -n "$kargmax"; then
986 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
988 lt_cv_sys_max_cmd_len=32768
992 # If test is not a shell built-in, we'll probably end up computing a
993 # maximum length that is only half of the actual maximum length, but
995 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
996 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
997 = "XX$teststring") >/dev/null 2>&1 &&
998 new_result=`expr "X$teststring" : ".*" 2>&1` &&
999 lt_cv_sys_max_cmd_len=$new_result &&
1000 test $i != 17 # 1/2 MB should be enough
1003 teststring=$teststring$teststring
1006 # Add a significant safety factor because C++ compilers can tack on massive
1007 # amounts of additional arguments before passing them to the linker.
1008 # It appears as though 1/2 is a usable value.
1009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1013 if test -n $lt_cv_sys_max_cmd_len ; then
1014 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1018 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1021 # _LT_AC_CHECK_DLFCN
1022 # ------------------
1023 AC_DEFUN([_LT_AC_CHECK_DLFCN],
1024 [AC_CHECK_HEADERS(dlfcn.h)dnl
1025 ])# _LT_AC_CHECK_DLFCN
1028 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1029 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1030 # ---------------------------------------------------------------------
1031 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1032 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1033 if test "$cross_compiling" = yes; then :
1036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1037 lt_status=$lt_dlunknown
1038 cat > conftest.$ac_ext <<EOF
1039 [#line __oline__ "configure"
1040 #include "confdefs.h"
1049 # define LT_DLGLOBAL RTLD_GLOBAL
1052 # define LT_DLGLOBAL DL_GLOBAL
1054 # define LT_DLGLOBAL 0
1058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1059 find out it does not work in some platform. */
1060 #ifndef LT_DLLAZY_OR_NOW
1062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1065 # define LT_DLLAZY_OR_NOW DL_LAZY
1068 # define LT_DLLAZY_OR_NOW RTLD_NOW
1071 # define LT_DLLAZY_OR_NOW DL_NOW
1073 # define LT_DLLAZY_OR_NOW 0
1081 extern "C" void exit (int);
1084 void fnord() { int i=42;}
1087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1088 int status = $lt_dlunknown;
1092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1094 /* dlclose (self); */
1102 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1103 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1106 x$lt_dlno_uscore) $1 ;;
1107 x$lt_dlneed_uscore) $2 ;;
1108 x$lt_dlunknown|x*) $3 ;;
1111 # compilation failed
1116 ])# _LT_AC_TRY_DLOPEN_SELF
1119 # AC_LIBTOOL_DLOPEN_SELF
1120 # ----------------------
1121 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1122 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1123 if test "x$enable_dlopen" != xyes; then
1124 enable_dlopen=unknown
1125 enable_dlopen_self=unknown
1126 enable_dlopen_self_static=unknown
1133 lt_cv_dlopen="load_add_on"
1135 lt_cv_dlopen_self=yes
1139 lt_cv_dlopen="LoadLibrary"
1144 lt_cv_dlopen="dlopen"
1149 # if libdl is installed we need to link against it
1150 AC_CHECK_LIB([dl], [dlopen],
1151 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1154 lt_cv_dlopen_self=yes
1159 AC_CHECK_FUNC([shl_load],
1160 [lt_cv_dlopen="shl_load"],
1161 [AC_CHECK_LIB([dld], [shl_load],
1162 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1163 [AC_CHECK_FUNC([dlopen],
1164 [lt_cv_dlopen="dlopen"],
1165 [AC_CHECK_LIB([dl], [dlopen],
1166 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1167 [AC_CHECK_LIB([svld], [dlopen],
1168 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1169 [AC_CHECK_LIB([dld], [dld_link],
1170 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1179 if test "x$lt_cv_dlopen" != xno; then
1185 case $lt_cv_dlopen in
1187 save_CPPFLAGS="$CPPFLAGS"
1188 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1190 save_LDFLAGS="$LDFLAGS"
1191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1194 LIBS="$lt_cv_dlopen_libs $LIBS"
1196 AC_CACHE_CHECK([whether a program can dlopen itself],
1197 lt_cv_dlopen_self, [dnl
1198 _LT_AC_TRY_DLOPEN_SELF(
1199 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1200 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1203 if test "x$lt_cv_dlopen_self" = xyes; then
1204 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1205 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1206 lt_cv_dlopen_self_static, [dnl
1207 _LT_AC_TRY_DLOPEN_SELF(
1208 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1209 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1213 CPPFLAGS="$save_CPPFLAGS"
1214 LDFLAGS="$save_LDFLAGS"
1219 case $lt_cv_dlopen_self in
1220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1221 *) enable_dlopen_self=unknown ;;
1224 case $lt_cv_dlopen_self_static in
1225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1226 *) enable_dlopen_self_static=unknown ;;
1229 ])# AC_LIBTOOL_DLOPEN_SELF
1232 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1233 # ---------------------------------
1234 # Check to see if options -c and -o are simultaneously supported by compiler
1235 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1236 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1237 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1238 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1239 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1240 $rm -r conftest 2>/dev/null
1244 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1246 lt_compiler_flag="-o out/conftest2.$ac_objext"
1247 # Insert the option either (1) after the last *FLAGS variable, or
1248 # (2) before a word containing "conftest.", or (3) at the end.
1249 # Note that $ac_compile itself does not contain backslashes and begins
1250 # with a dollar sign (not a hyphen), so the echo should work correctly.
1251 lt_compile=`echo "$ac_compile" | $SED \
1252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1253 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1254 -e 's:$: $lt_compiler_flag:'`
1255 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1256 (eval "$lt_compile" 2>out/conftest.err)
1258 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1259 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1262 # The compiler can only warn and ignore the option if not recognized
1263 # So say no if there are warnings
1264 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1267 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1270 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1272 # SGI C++ compiler will create directory out/ii_files/ for
1273 # template instantiation
1274 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1275 $rm out/* && rmdir out
1280 ])# AC_LIBTOOL_PROG_CC_C_O
1283 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1284 # -----------------------------------------
1285 # Check to see if we can do hard links to lock some files if needed
1286 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1287 [AC_REQUIRE([_LT_AC_LOCK])dnl
1289 hard_links="nottested"
1290 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1291 # do not overwrite the value of need_locks provided by the user
1292 AC_MSG_CHECKING([if we can lock with hard links])
1295 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1297 ln conftest.a conftest.b 2>&5 || hard_links=no
1298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1299 AC_MSG_RESULT([$hard_links])
1300 if test "$hard_links" = no; then
1301 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1307 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1312 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1313 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1314 [rm -f .libs 2>/dev/null
1315 mkdir .libs 2>/dev/null
1316 if test -d .libs; then
1319 # MS-DOS does not allow filenames that begin with a dot.
1322 rmdir .libs 2>/dev/null])
1323 objdir=$lt_cv_objdir
1324 ])# AC_LIBTOOL_OBJDIR
1327 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1328 # ----------------------------------------------
1329 # Check hardcoding attributes.
1330 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1331 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1332 _LT_AC_TAGVAR(hardcode_action, $1)=
1333 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1334 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1335 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1337 # We can hardcode non-existant directories.
1338 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1339 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1340 # have to relink, otherwise we might link with an installed library
1341 # when we should be linking with a yet-to-be-installed one
1342 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1343 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1344 # Linking always hardcodes the temporary library directory.
1345 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1347 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1348 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1351 # We cannot hardcode anything, or else we can only hardcode existing
1353 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1355 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1357 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1358 # Fast installation is not supported
1359 enable_fast_install=no
1360 elif test "$shlibpath_overrides_runpath" = yes ||
1361 test "$enable_shared" = no; then
1362 # Fast installation is not necessary
1363 enable_fast_install=needless
1365 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1368 # AC_LIBTOOL_SYS_LIB_STRIP
1369 # ------------------------
1370 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1373 AC_MSG_CHECKING([whether stripping libraries is possible])
1374 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1375 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1376 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1377 AC_MSG_RESULT([yes])
1379 # FIXME - insert some real tests, host_os isn't really good enough
1382 if test -n "$STRIP" ; then
1383 striplib="$STRIP -x"
1384 AC_MSG_RESULT([yes])
1394 ])# AC_LIBTOOL_SYS_LIB_STRIP
1397 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1398 # -----------------------------
1399 # PORTME Fill in your ld.so characteristics
1400 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1401 [AC_MSG_CHECKING([dynamic linker characteristics])
1403 libname_spec='lib$name'
1411 shlibpath_overrides_runpath=unknown
1413 dynamic_linker="$host_os ld.so"
1414 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1415 if test "$GCC" = yes; then
1416 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1417 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1418 # if the path contains ";" then we assume it to be the separator
1419 # otherwise default to the standard path separator (i.e. ":") - it is
1420 # assumed that no part of a normal pathname contains ";" but that should
1421 # okay in the real world where ";" in dirpaths is itself problematic.
1422 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1424 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1427 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1429 need_lib_prefix=unknown
1430 hardcode_into_libs=no
1432 # when you set need_version to no, make sure it does not cause -set_version
1433 # flags to be left without arguments
1434 need_version=unknown
1439 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1440 shlibpath_var=LIBPATH
1442 # AIX 3 has no versioning support, so we append a major version to the name.
1443 soname_spec='${libname}${release}${shared_ext}$major'
1450 hardcode_into_libs=yes
1451 if test "$host_cpu" = ia64; then
1452 # AIX 5 supports IA64
1453 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1454 shlibpath_var=LD_LIBRARY_PATH
1456 # With GCC up to 2.95.x, collect2 would create an import file
1457 # for dependence libraries. The import file would start with
1458 # the line `#! .'. This would cause the generated library to
1459 # depend on `.', always an invalid library. This was fixed in
1460 # development snapshots of GCC prior to 3.0.
1462 aix4 | aix4.[[01]] | aix4.[[01]].*)
1463 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1465 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1472 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1473 # soname into executable. Probably we can add versioning support to
1474 # collect2, so additional links can be useful in future.
1475 if test "$aix_use_runtimelinking" = yes; then
1476 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1477 # instead of lib<name>.a to let people know that these are not
1478 # typical AIX shared libraries.
1479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1481 # We preserve .a as extension for shared libraries through AIX4.2
1482 # and later when we are not doing run time linking.
1483 library_names_spec='${libname}${release}.a $libname.a'
1484 soname_spec='${libname}${release}${shared_ext}$major'
1486 shlibpath_var=LIBPATH
1491 library_names_spec='$libname.ixlibrary $libname.a'
1492 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1493 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'
1497 library_names_spec='${libname}${shared_ext}'
1498 dynamic_linker="$host_os ld.so"
1499 shlibpath_var=LIBRARY_PATH
1505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1506 soname_spec='${libname}${release}${shared_ext}$major'
1507 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1508 shlibpath_var=LD_LIBRARY_PATH
1509 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1510 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1511 # the default ld.so.conf also contains /usr/contrib/lib and
1512 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1513 # libtool to hard-code these into programs
1516 cygwin* | mingw* | pw32*)
1517 version_type=windows
1522 case $GCC,$host_os in
1523 yes,cygwin* | yes,mingw* | yes,pw32*)
1524 library_names_spec='$libname.dll.a'
1525 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1526 postinstall_cmds='base_file=`basename \${file}`~
1527 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1528 dldir=$destdir/`dirname \$dlpath`~
1529 test -d \$dldir || mkdir -p \$dldir~
1530 $install_prog $dir/$dlname \$dldir/$dlname~
1531 chmod a+x \$dldir/$dlname'
1532 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1533 dlpath=$dir/\$dldll~
1535 shlibpath_overrides_runpath=yes
1539 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1540 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1541 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1544 # MinGW DLLs use traditional 'lib' prefix
1545 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1546 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1547 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1548 # It is most probably a Windows format PATH printed by
1549 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1550 # path with ; separators, and with drive letters. We can handle the
1551 # drive letters (cygwin fileutils understands them), so leave them,
1552 # especially as we might pass files found there to a mingw objdump,
1553 # which wouldn't understand a cygwinified path. Ahh.
1554 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1556 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1560 # pw32 DLLs use 'pw' prefix rather than 'lib'
1561 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1567 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1570 dynamic_linker='Win32 ld.exe'
1571 # FIXME: first we should search . and the directory the executable is in
1575 darwin* | rhapsody*)
1576 dynamic_linker="$host_os dyld"
1580 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1581 soname_spec='${libname}${release}${major}$shared_ext'
1582 shlibpath_overrides_runpath=yes
1583 shlibpath_var=DYLD_LIBRARY_PATH
1584 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1585 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1586 if test "$GCC" = yes; then
1587 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1589 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1591 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1599 soname_spec='${libname}${release}${shared_ext}$major'
1600 shlibpath_var=LD_LIBRARY_PATH
1611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1612 soname_spec='${libname}${release}${shared_ext}$major'
1613 shlibpath_var=LD_LIBRARY_PATH
1614 shlibpath_overrides_runpath=no
1615 hardcode_into_libs=yes
1616 dynamic_linker='GNU ld.so'
1619 freebsd* | dragonfly*)
1620 # DragonFly does not have aout. When/if they implement a new
1621 # versioning mechanism, adjust this.
1622 if test -x /usr/bin/objformat; then
1623 objformat=`/usr/bin/objformat`
1626 freebsd[[123]]*) objformat=aout ;;
1630 version_type=freebsd-$objformat
1631 case $version_type in
1633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1642 shlibpath_var=LD_LIBRARY_PATH
1645 shlibpath_overrides_runpath=yes
1647 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1648 shlibpath_overrides_runpath=yes
1649 hardcode_into_libs=yes
1651 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1652 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1653 shlibpath_overrides_runpath=no
1654 hardcode_into_libs=yes
1656 freebsd*) # from 4.6 on
1657 shlibpath_overrides_runpath=yes
1658 hardcode_into_libs=yes
1667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1668 soname_spec='${libname}${release}${shared_ext}$major'
1669 shlibpath_var=LD_LIBRARY_PATH
1670 hardcode_into_libs=yes
1673 hpux9* | hpux10* | hpux11*)
1674 # Give a soname corresponding to the major version so that dld.sl refuses to
1675 # link against other versions.
1682 hardcode_into_libs=yes
1683 dynamic_linker="$host_os dld.so"
1684 shlibpath_var=LD_LIBRARY_PATH
1685 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1687 soname_spec='${libname}${release}${shared_ext}$major'
1688 if test "X$HPUX_IA64_MODE" = X32; then
1689 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1691 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1693 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1697 hardcode_into_libs=yes
1698 dynamic_linker="$host_os dld.sl"
1699 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1700 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1702 soname_spec='${libname}${release}${shared_ext}$major'
1703 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1708 dynamic_linker="$host_os dld.sl"
1709 shlibpath_var=SHLIB_PATH
1710 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1712 soname_spec='${libname}${release}${shared_ext}$major'
1715 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1716 postinstall_cmds='chmod 555 $lib'
1723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1724 soname_spec='${libname}${release}${shared_ext}$major'
1725 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1726 shlibpath_var=LD_LIBRARY_PATH
1727 shlibpath_overrides_runpath=no
1728 hardcode_into_libs=yes
1731 irix5* | irix6* | nonstopux*)
1733 nonstopux*) version_type=nonstopux ;;
1735 if test "$lt_cv_prog_gnu_ld" = yes; then
1743 soname_spec='${libname}${release}${shared_ext}$major'
1744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1746 irix5* | nonstopux*)
1750 case $LD in # libtool.m4 will add one of these switches to LD
1751 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1752 libsuff= shlibsuff= libmagic=32-bit;;
1753 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1754 libsuff=32 shlibsuff=N32 libmagic=N32;;
1755 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1756 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1757 *) libsuff= shlibsuff= libmagic=never-match;;
1761 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1762 shlibpath_overrides_runpath=no
1763 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1764 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1765 hardcode_into_libs=yes
1768 # No shared lib support for Linux oldld, aout, or coff.
1769 linux*oldld* | linux*aout* | linux*coff*)
1773 # This must be Linux ELF.
1778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1779 soname_spec='${libname}${release}${shared_ext}$major'
1780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1781 shlibpath_var=LD_LIBRARY_PATH
1782 shlibpath_overrides_runpath=no
1783 # This implies no fast_install, which is unacceptable.
1784 # Some rework will be needed to allow for fast_install
1785 # before this can be enabled.
1786 hardcode_into_libs=yes
1788 # find out which ABI we are using
1791 x86_64*|s390x*|powerpc64*)
1792 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1793 if AC_TRY_EVAL(ac_compile); then
1794 case `/usr/bin/file conftest.$ac_objext` in
1797 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
1805 # Append ld.so.conf contents to the search path
1806 if test -f /etc/ld.so.conf; then
1807 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1808 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
1811 # We used to test for /lib/ld.so.1 and disable shared libraries on
1812 # powerpc, because MkLinux only supported shared libraries with the
1813 # GNU dynamic linker. Since this was broken with cross compilers,
1814 # most powerpc-linux boxes support dynamic linking these days and
1815 # people can always --disable-shared, the test was removed, and we
1816 # assume the GNU/Linux dynamic linker is in use.
1817 dynamic_linker='GNU/Linux ld.so'
1824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1825 soname_spec='${libname}${release}${shared_ext}$major'
1826 shlibpath_var=LD_LIBRARY_PATH
1827 shlibpath_overrides_runpath=no
1828 hardcode_into_libs=yes
1829 dynamic_linker='GNU ld.so'
1836 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1839 dynamic_linker='NetBSD (a.out) ld.so'
1841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1842 soname_spec='${libname}${release}${shared_ext}$major'
1843 dynamic_linker='NetBSD ld.elf_so'
1845 shlibpath_var=LD_LIBRARY_PATH
1846 shlibpath_overrides_runpath=yes
1847 hardcode_into_libs=yes
1852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1853 shlibpath_var=LD_LIBRARY_PATH
1854 shlibpath_overrides_runpath=yes
1861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1862 soname_spec='${libname}${release}${shared_ext}$major'
1863 shlibpath_var=LD_LIBRARY_PATH
1864 shlibpath_overrides_runpath=yes
1869 sys_lib_dlsearch_path_spec="/usr/lib"
1871 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1873 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1874 *) need_version=no ;;
1876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1877 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1878 shlibpath_var=LD_LIBRARY_PATH
1879 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1881 openbsd2.[[89]] | openbsd2.[[89]].*)
1882 shlibpath_overrides_runpath=no
1885 shlibpath_overrides_runpath=yes
1889 shlibpath_overrides_runpath=yes
1894 libname_spec='$name'
1897 library_names_spec='$libname${shared_ext} $libname.a'
1898 dynamic_linker='OS/2 ld.exe'
1899 shlibpath_var=LIBPATH
1902 osf3* | osf4* | osf5*)
1906 soname_spec='${libname}${release}${shared_ext}$major'
1907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1908 shlibpath_var=LD_LIBRARY_PATH
1909 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1910 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1918 soname_spec='${libname}${release}${shared_ext}$major'
1919 shlibpath_var=LD_LIBRARY_PATH
1920 shlibpath_overrides_runpath=yes
1921 hardcode_into_libs=yes
1922 # ldd complains unless libraries are executable
1923 postinstall_cmds='chmod +x $lib'
1928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1929 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1930 shlibpath_var=LD_LIBRARY_PATH
1931 shlibpath_overrides_runpath=yes
1932 if test "$with_gnu_ld" = yes; then
1940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1941 soname_spec='${libname}${release}${shared_ext}$major'
1942 shlibpath_var=LD_LIBRARY_PATH
1943 case $host_vendor in
1945 shlibpath_overrides_runpath=no
1947 export_dynamic_flag_spec='${wl}-Blargedynsym'
1948 runpath_var=LD_RUN_PATH
1956 shlibpath_overrides_runpath=no
1957 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1963 if test -d /usr/nec ;then
1965 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1966 soname_spec='$libname${shared_ext}.$major'
1967 shlibpath_var=LD_LIBRARY_PATH
1971 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1972 version_type=freebsd-elf
1975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1976 soname_spec='${libname}${release}${shared_ext}$major'
1977 shlibpath_var=LD_LIBRARY_PATH
1978 hardcode_into_libs=yes
1979 if test "$with_gnu_ld" = yes; then
1980 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1981 shlibpath_overrides_runpath=no
1983 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1984 shlibpath_overrides_runpath=yes
1987 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1991 sys_lib_dlsearch_path_spec='/usr/lib'
1996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1997 soname_spec='${libname}${release}${shared_ext}$major'
1998 shlibpath_var=LD_LIBRARY_PATH
2005 AC_MSG_RESULT([$dynamic_linker])
2006 test "$dynamic_linker" = no && can_build_shared=no
2008 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2009 if test "$GCC" = yes; then
2010 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2012 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2017 AC_DEFUN([_LT_AC_TAGCONFIG],
2018 [AC_ARG_WITH([tags],
2019 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2020 [include additional configurations @<:@automatic@:>@])],
2021 [tagnames="$withval"])
2023 if test -f "$ltmain" && test -n "$tagnames"; then
2024 if test ! -f "${ofile}"; then
2025 AC_MSG_WARN([output file `$ofile' does not exist])
2028 if test -z "$LTCC"; then
2029 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2030 if test -z "$LTCC"; then
2031 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2033 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2036 if test -z "$LTCFLAGS"; then
2037 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2040 # Extract list of available tagged configurations in $ofile.
2041 # Note that this assumes the entire list is on one line.
2042 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2045 for tagname in $tagnames; do
2047 # Check whether tagname contains only valid characters
2048 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2050 *) AC_MSG_ERROR([invalid tag name: $tagname])
2054 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2056 AC_MSG_ERROR([tag name \"$tagname\" already exists])
2059 # Update the list of available tags.
2060 if test -n "$tagname"; then
2061 echo appending configuration tag \"$tagname\" to $ofile
2065 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2066 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2067 (test "X$CXX" != "Xg++"))) ; then
2068 AC_LIBTOOL_LANG_CXX_CONFIG
2075 if test -n "$F77" && test "X$F77" != "Xno"; then
2076 AC_LIBTOOL_LANG_F77_CONFIG
2083 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2084 AC_LIBTOOL_LANG_GCJ_CONFIG
2091 AC_LIBTOOL_LANG_RC_CONFIG
2095 AC_MSG_ERROR([Unsupported tag name: $tagname])
2099 # Append the new tag name to the list of available tags.
2100 if test -n "$tagname" ; then
2101 available_tags="$available_tags $tagname"
2107 # Now substitute the updated list of available tags.
2108 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2109 mv "${ofile}T" "$ofile"
2113 AC_MSG_ERROR([unable to update list of available tagged configurations.])
2116 ])# _LT_AC_TAGCONFIG
2121 # enable checks for dlopen support
2122 AC_DEFUN([AC_LIBTOOL_DLOPEN],
2123 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2124 ])# AC_LIBTOOL_DLOPEN
2127 # AC_LIBTOOL_WIN32_DLL
2128 # --------------------
2129 # declare package support for building win32 DLLs
2130 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2131 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2132 ])# AC_LIBTOOL_WIN32_DLL
2135 # AC_ENABLE_SHARED([DEFAULT])
2136 # ---------------------------
2137 # implement the --enable-shared flag
2138 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2139 AC_DEFUN([AC_ENABLE_SHARED],
2140 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2141 AC_ARG_ENABLE([shared],
2142 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2143 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2144 [p=${PACKAGE-default}
2146 yes) enable_shared=yes ;;
2147 no) enable_shared=no ;;
2150 # Look at the argument we got. We use all the common list separators.
2151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2152 for pkg in $enableval; do
2154 if test "X$pkg" = "X$p"; then
2161 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2162 ])# AC_ENABLE_SHARED
2167 # set the default shared flag to --disable-shared
2168 AC_DEFUN([AC_DISABLE_SHARED],
2169 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2170 AC_ENABLE_SHARED(no)
2171 ])# AC_DISABLE_SHARED
2174 # AC_ENABLE_STATIC([DEFAULT])
2175 # ---------------------------
2176 # implement the --enable-static flag
2177 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2178 AC_DEFUN([AC_ENABLE_STATIC],
2179 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2180 AC_ARG_ENABLE([static],
2181 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2182 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2183 [p=${PACKAGE-default}
2185 yes) enable_static=yes ;;
2186 no) enable_static=no ;;
2189 # Look at the argument we got. We use all the common list separators.
2190 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2191 for pkg in $enableval; do
2193 if test "X$pkg" = "X$p"; then
2200 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
2201 ])# AC_ENABLE_STATIC
2206 # set the default static flag to --disable-static
2207 AC_DEFUN([AC_DISABLE_STATIC],
2208 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2209 AC_ENABLE_STATIC(no)
2210 ])# AC_DISABLE_STATIC
2213 # AC_ENABLE_FAST_INSTALL([DEFAULT])
2214 # ---------------------------------
2215 # implement the --enable-fast-install flag
2216 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2217 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2218 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2219 AC_ARG_ENABLE([fast-install],
2220 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2221 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2222 [p=${PACKAGE-default}
2224 yes) enable_fast_install=yes ;;
2225 no) enable_fast_install=no ;;
2227 enable_fast_install=no
2228 # Look at the argument we got. We use all the common list separators.
2229 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2230 for pkg in $enableval; do
2232 if test "X$pkg" = "X$p"; then
2233 enable_fast_install=yes
2239 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2240 ])# AC_ENABLE_FAST_INSTALL
2243 # AC_DISABLE_FAST_INSTALL
2244 # -----------------------
2245 # set the default to --disable-fast-install
2246 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2247 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2248 AC_ENABLE_FAST_INSTALL(no)
2249 ])# AC_DISABLE_FAST_INSTALL
2252 # AC_LIBTOOL_PICMODE([MODE])
2253 # --------------------------
2254 # implement the --with-pic flag
2255 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2256 AC_DEFUN([AC_LIBTOOL_PICMODE],
2257 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2258 pic_mode=ifelse($#,1,$1,default)
2259 ])# AC_LIBTOOL_PICMODE
2264 # This is predefined starting with Autoconf 2.54, so this conditional
2265 # definition can be removed once we require Autoconf 2.54 or later.
2266 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2267 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2268 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2269 then ac_cv_prog_egrep='grep -E'
2270 else ac_cv_prog_egrep='egrep'
2272 EGREP=$ac_cv_prog_egrep
2277 # AC_PATH_TOOL_PREFIX
2278 # -------------------
2279 # find a file program which can recognise shared library
2280 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2281 [AC_REQUIRE([AC_PROG_EGREP])dnl
2282 AC_MSG_CHECKING([for $1])
2283 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2285 [[\\/*] | ?:[\\/]*])
2286 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2289 lt_save_MAGIC_CMD="$MAGIC_CMD"
2290 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2291 dnl $ac_dummy forces splitting on constant user-supplied paths.
2292 dnl POSIX.2 word splitting is done only on the output of word expansions,
2293 dnl not every word. This closes a longstanding sh security hole.
2294 ac_dummy="ifelse([$2], , $PATH, [$2])"
2295 for ac_dir in $ac_dummy; do
2297 test -z "$ac_dir" && ac_dir=.
2298 if test -f $ac_dir/$1; then
2299 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2300 if test -n "$file_magic_test_file"; then
2301 case $deplibs_check_method in
2303 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2304 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2305 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2306 $EGREP "$file_magic_regex" > /dev/null; then
2311 *** Warning: the command libtool uses to detect shared libraries,
2312 *** $file_magic_cmd, produces output that libtool cannot recognize.
2313 *** The result is that libtool may fail to recognize shared libraries
2314 *** as such. This will affect the creation of libtool libraries that
2315 *** depend on shared libraries, but programs linked with such libtool
2316 *** libraries will work regardless of this problem. Nevertheless, you
2317 *** may want to report the problem to your system manager and/or to
2318 *** bug-libtool@gnu.org
2328 MAGIC_CMD="$lt_save_MAGIC_CMD"
2331 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2332 if test -n "$MAGIC_CMD"; then
2333 AC_MSG_RESULT($MAGIC_CMD)
2337 ])# AC_PATH_TOOL_PREFIX
2342 # find a file program which can recognise a shared library
2343 AC_DEFUN([AC_PATH_MAGIC],
2344 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2345 if test -z "$lt_cv_path_MAGIC_CMD"; then
2346 if test -n "$ac_tool_prefix"; then
2347 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2357 # find the pathname to the GNU or non-GNU linker
2358 AC_DEFUN([AC_PROG_LD],
2359 [AC_ARG_WITH([gnu-ld],
2360 [AC_HELP_STRING([--with-gnu-ld],
2361 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2362 [test "$withval" = no || with_gnu_ld=yes],
2364 AC_REQUIRE([LT_AC_PROG_SED])dnl
2365 AC_REQUIRE([AC_PROG_CC])dnl
2366 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2367 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2369 if test "$GCC" = yes; then
2370 # Check if gcc -print-prog-name=ld gives a path.
2371 AC_MSG_CHECKING([for ld used by $CC])
2374 # gcc leaves a trailing carriage return which upsets mingw
2375 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2377 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2380 # Accept absolute paths.
2381 [[\\/]]* | ?:[[\\/]]*)
2382 re_direlt='/[[^/]][[^/]]*/\.\./'
2383 # Canonicalize the pathname of ld
2384 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2385 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2386 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2388 test -z "$LD" && LD="$ac_prog"
2391 # If it fails, then pretend we aren't using GCC.
2395 # If it is relative, then search for the first ld in PATH.
2399 elif test "$with_gnu_ld" = yes; then
2400 AC_MSG_CHECKING([for GNU ld])
2402 AC_MSG_CHECKING([for non-GNU ld])
2404 AC_CACHE_VAL(lt_cv_path_LD,
2405 [if test -z "$LD"; then
2406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2407 for ac_dir in $PATH; do
2409 test -z "$ac_dir" && ac_dir=.
2410 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2411 lt_cv_path_LD="$ac_dir/$ac_prog"
2412 # Check to see if the program is GNU ld. I'd rather use --version,
2413 # but apparently some variants of GNU ld only accept -v.
2414 # Break only if it was the GNU/non-GNU ld that we prefer.
2415 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2416 *GNU* | *'with BFD'*)
2417 test "$with_gnu_ld" != no && break
2420 test "$with_gnu_ld" != yes && break
2427 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2430 if test -n "$LD"; then
2435 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2442 AC_DEFUN([AC_PROG_LD_GNU],
2443 [AC_REQUIRE([AC_PROG_EGREP])dnl
2444 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2445 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2446 case `$LD -v 2>&1 </dev/null` in
2447 *GNU* | *'with BFD'*)
2448 lt_cv_prog_gnu_ld=yes
2451 lt_cv_prog_gnu_ld=no
2454 with_gnu_ld=$lt_cv_prog_gnu_ld
2458 # AC_PROG_LD_RELOAD_FLAG
2459 # ----------------------
2460 # find reload flag for linker
2461 # -- PORTME Some linkers may need a different reload flag.
2462 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2463 [AC_CACHE_CHECK([for $LD option to reload object files],
2464 lt_cv_ld_reload_flag,
2465 [lt_cv_ld_reload_flag='-r'])
2466 reload_flag=$lt_cv_ld_reload_flag
2467 case $reload_flag in
2469 *) reload_flag=" $reload_flag" ;;
2471 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2474 if test "$GCC" = yes; then
2475 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2477 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2481 ])# AC_PROG_LD_RELOAD_FLAG
2484 # AC_DEPLIBS_CHECK_METHOD
2485 # -----------------------
2486 # how to check for library dependencies
2487 # -- PORTME fill in with the dynamic library characteristics
2488 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2489 [AC_CACHE_CHECK([how to recognise dependent libraries],
2490 lt_cv_deplibs_check_method,
2491 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2492 lt_cv_file_magic_test_file=
2493 lt_cv_deplibs_check_method='unknown'
2494 # Need to set the preceding variable on all platforms that support
2495 # interlibrary dependencies.
2496 # 'none' -- dependencies not supported.
2497 # `unknown' -- same as none, but documents that we really don't know.
2498 # 'pass_all' -- all dependencies passed with no checks.
2499 # 'test_compile' -- check by making test program.
2500 # 'file_magic [[regex]]' -- check by looking for files in library path
2501 # which responds to the $file_magic_cmd with a given extended regex.
2502 # If you have `file' or equivalent on your system and you're not sure
2503 # whether `pass_all' will *always* work, you probably want this one.
2507 lt_cv_deplibs_check_method=pass_all
2511 lt_cv_deplibs_check_method=pass_all
2515 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2516 lt_cv_file_magic_cmd='/usr/bin/file -L'
2517 lt_cv_file_magic_test_file=/shlib/libc.so
2521 # func_win32_libid is a shell function defined in ltmain.sh
2522 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2523 lt_cv_file_magic_cmd='func_win32_libid'
2527 # Base MSYS/MinGW do not provide the 'file' command needed by
2528 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2529 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2530 lt_cv_file_magic_cmd='$OBJDUMP -f'
2533 darwin* | rhapsody*)
2534 lt_cv_deplibs_check_method=pass_all
2537 freebsd* | kfreebsd*-gnu | dragonfly*)
2538 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2541 # Not sure whether the presence of OpenBSD here was a mistake.
2542 # Let's accept both of them until this is cleared up.
2543 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2544 lt_cv_file_magic_cmd=/usr/bin/file
2545 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2549 lt_cv_deplibs_check_method=pass_all
2554 lt_cv_deplibs_check_method=pass_all
2557 hpux10.20* | hpux11*)
2558 lt_cv_file_magic_cmd=/usr/bin/file
2561 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2562 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2565 [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]']
2566 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2569 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2570 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2576 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2577 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2580 irix5* | irix6* | nonstopux*)
2582 *-32|*"-32 ") libmagic=32-bit;;
2583 *-n32|*"-n32 ") libmagic=N32;;
2584 *-64|*"-64 ") libmagic=64-bit;;
2585 *) libmagic=never-match;;
2587 lt_cv_deplibs_check_method=pass_all
2590 # This must be Linux ELF.
2592 lt_cv_deplibs_check_method=pass_all
2596 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2597 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2599 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2604 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2605 lt_cv_file_magic_cmd=/usr/bin/file
2606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2610 lt_cv_deplibs_check_method=unknown
2614 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2615 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2617 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2621 osf3* | osf4* | osf5*)
2622 lt_cv_deplibs_check_method=pass_all
2626 lt_cv_deplibs_check_method=pass_all
2630 case $host_vendor in
2632 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]]'
2633 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2636 lt_cv_deplibs_check_method=pass_all
2639 lt_cv_file_magic_cmd='/bin/file'
2640 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2643 lt_cv_file_magic_cmd='/bin/file'
2644 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2645 lt_cv_file_magic_test_file=/lib/libc.so
2648 lt_cv_deplibs_check_method=pass_all
2651 lt_cv_deplibs_check_method=pass_all
2656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2657 lt_cv_deplibs_check_method=pass_all
2661 file_magic_cmd=$lt_cv_file_magic_cmd
2662 deplibs_check_method=$lt_cv_deplibs_check_method
2663 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2664 ])# AC_DEPLIBS_CHECK_METHOD
2669 # find the pathname to a BSD-compatible name lister
2670 AC_DEFUN([AC_PROG_NM],
2671 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2672 [if test -n "$NM"; then
2673 # Let the user override the test.
2676 lt_nm_to_check="${ac_tool_prefix}nm"
2677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2678 lt_nm_to_check="$lt_nm_to_check nm"
2680 for lt_tmp_nm in $lt_nm_to_check; do
2681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2684 test -z "$ac_dir" && ac_dir=.
2685 tmp_nm="$ac_dir/$lt_tmp_nm"
2686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2687 # Check to see if the nm accepts a BSD-compat flag.
2688 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2689 # nm: unknown option "B" ignored
2690 # Tru64's nm complains that /dev/null is an invalid object file
2691 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2692 */dev/null* | *'Invalid file or object type'*)
2693 lt_cv_path_NM="$tmp_nm -B"
2697 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2699 lt_cv_path_NM="$tmp_nm -p"
2703 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2704 continue # so that we can try to find one that supports BSD flags
2713 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2721 # check for math library
2722 AC_DEFUN([AC_CHECK_LIBM],
2723 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2726 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2727 # These system don't have libm, or don't need it
2730 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2731 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2734 AC_CHECK_LIB(m, cos, LIBM="-lm")
2740 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2741 # -----------------------------------
2742 # sets LIBLTDL to the link flags for the libltdl convenience library and
2743 # LTDLINCL to the include flags for the libltdl header and adds
2744 # --enable-ltdl-convenience to the configure arguments. Note that
2745 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2746 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2747 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2748 # (note the single quotes!). If your package is not flat and you're not
2749 # using automake, define top_builddir and top_srcdir appropriately in
2751 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2752 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2753 case $enable_ltdl_convenience in
2754 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2755 "") enable_ltdl_convenience=yes
2756 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2758 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2759 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2760 # For backwards non-gettext consistent compatibility...
2762 ])# AC_LIBLTDL_CONVENIENCE
2765 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2766 # -----------------------------------
2767 # sets LIBLTDL to the link flags for the libltdl installable library and
2768 # LTDLINCL to the include flags for the libltdl header and adds
2769 # --enable-ltdl-install to the configure arguments. Note that
2770 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2771 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2772 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2773 # '${top_srcdir}/' (note the single quotes!). If your package is not
2774 # flat and you're not using automake, define top_builddir and top_srcdir
2775 # appropriately in the Makefiles.
2776 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2777 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2778 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2779 AC_CHECK_LIB(ltdl, lt_dlinit,
2780 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2781 [if test x"$enable_ltdl_install" = xno; then
2782 AC_MSG_WARN([libltdl not installed, but installation disabled])
2784 enable_ltdl_install=yes
2787 if test x"$enable_ltdl_install" = x"yes"; then
2788 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2789 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2790 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2792 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2796 # For backwards non-gettext consistent compatibility...
2798 ])# AC_LIBLTDL_INSTALLABLE
2803 # enable support for C++ libraries
2804 AC_DEFUN([AC_LIBTOOL_CXX],
2805 [AC_REQUIRE([_LT_AC_LANG_CXX])
2811 AC_DEFUN([_LT_AC_LANG_CXX],
2812 [AC_REQUIRE([AC_PROG_CXX])
2813 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2814 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2817 # _LT_AC_PROG_CXXCPP
2818 # ------------------
2819 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2821 AC_REQUIRE([AC_PROG_CXX])
2822 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2823 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2824 (test "X$CXX" != "Xg++"))) ; then
2827 ])# _LT_AC_PROG_CXXCPP
2831 # enable support for Fortran 77 libraries
2832 AC_DEFUN([AC_LIBTOOL_F77],
2833 [AC_REQUIRE([_LT_AC_LANG_F77])
2839 AC_DEFUN([_LT_AC_LANG_F77],
2840 [AC_REQUIRE([AC_PROG_F77])
2841 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2847 # enable support for GCJ libraries
2848 AC_DEFUN([AC_LIBTOOL_GCJ],
2849 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2855 AC_DEFUN([_LT_AC_LANG_GCJ],
2856 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2857 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2858 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2859 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2860 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2861 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2862 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2868 # enable support for Windows resource files
2869 AC_DEFUN([AC_LIBTOOL_RC],
2870 [AC_REQUIRE([LT_AC_PROG_RC])
2871 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2875 # AC_LIBTOOL_LANG_C_CONFIG
2876 # ------------------------
2877 # Ensure that the configuration vars for the C compiler are
2878 # suitably defined. Those variables are subsequently used by
2879 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2880 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2881 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2885 # Source file extension for C test sources.
2888 # Object file extension for compiled C test sources.
2890 _LT_AC_TAGVAR(objext, $1)=$objext
2892 # Code to be used in simple compile tests
2893 lt_simple_compile_test_code="int some_variable = 0;\n"
2895 # Code to be used in simple link tests
2896 lt_simple_link_test_code='int main(){return(0);}\n'
2900 # save warnings/boilerplate of simple test code
2901 _LT_COMPILER_BOILERPLATE
2902 _LT_LINKER_BOILERPLATE
2904 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2905 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2906 AC_LIBTOOL_PROG_CC_C_O($1)
2907 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2908 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2909 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2910 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2911 AC_LIBTOOL_SYS_LIB_STRIP
2912 AC_LIBTOOL_DLOPEN_SELF
2914 # Report which library types will actually be built
2915 AC_MSG_CHECKING([if libtool supports shared libraries])
2916 AC_MSG_RESULT([$can_build_shared])
2918 AC_MSG_CHECKING([whether to build shared libraries])
2919 test "$can_build_shared" = "no" && enable_shared=no
2921 # On AIX, shared libraries and static libraries use the same namespace, and
2922 # are all built from PIC.
2925 test "$enable_shared" = yes && enable_static=no
2926 if test -n "$RANLIB"; then
2927 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2928 postinstall_cmds='$RANLIB $lib'
2933 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2934 test "$enable_shared" = yes && enable_static=no
2938 AC_MSG_RESULT([$enable_shared])
2940 AC_MSG_CHECKING([whether to build static libraries])
2941 # Make sure either enable_shared or enable_static is yes.
2942 test "$enable_shared" = yes || enable_static=yes
2943 AC_MSG_RESULT([$enable_static])
2945 AC_LIBTOOL_CONFIG($1)
2949 ])# AC_LIBTOOL_LANG_C_CONFIG
2952 # AC_LIBTOOL_LANG_CXX_CONFIG
2953 # --------------------------
2954 # Ensure that the configuration vars for the C compiler are
2955 # suitably defined. Those variables are subsequently used by
2956 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2957 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2958 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2960 AC_REQUIRE([AC_PROG_CXX])
2961 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2963 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2964 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2965 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2966 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2967 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2968 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2969 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2970 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2971 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2972 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2973 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2974 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2975 _LT_AC_TAGVAR(module_cmds, $1)=
2976 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2977 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2978 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2979 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2980 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2981 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2983 # Dependencies to place before and after the object being linked:
2984 _LT_AC_TAGVAR(predep_objects, $1)=
2985 _LT_AC_TAGVAR(postdep_objects, $1)=
2986 _LT_AC_TAGVAR(predeps, $1)=
2987 _LT_AC_TAGVAR(postdeps, $1)=
2988 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2990 # Source file extension for C++ test sources.
2993 # Object file extension for compiled C++ test sources.
2995 _LT_AC_TAGVAR(objext, $1)=$objext
2997 # Code to be used in simple compile tests
2998 lt_simple_compile_test_code="int some_variable = 0;\n"
3000 # Code to be used in simple link tests
3001 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
3003 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3006 # save warnings/boilerplate of simple test code
3007 _LT_COMPILER_BOILERPLATE
3008 _LT_LINKER_BOILERPLATE
3010 # Allow CC to be a program name with arguments.
3015 lt_save_with_gnu_ld=$with_gnu_ld
3016 lt_save_path_LD=$lt_cv_path_LD
3017 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3018 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3020 $as_unset lt_cv_prog_gnu_ld
3022 if test -n "${lt_cv_path_LDCXX+set}"; then
3023 lt_cv_path_LD=$lt_cv_path_LDCXX
3025 $as_unset lt_cv_path_LD
3027 test -z "${LDCXX+set}" || LD=$LDCXX
3030 _LT_AC_TAGVAR(compiler, $1)=$CC
3031 _LT_CC_BASENAME([$compiler])
3033 # We don't want -fno-exception wen compiling C++ code, so set the
3034 # no_builtin_flag separately
3035 if test "$GXX" = yes; then
3036 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3038 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3041 if test "$GXX" = yes; then
3042 # Set up default GNU C++ configuration
3046 # Check if GNU C++ uses GNU ld as the underlying linker, since the
3047 # archiving commands below assume that GNU ld is being used.
3048 if test "$with_gnu_ld" = yes; then
3049 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3050 _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'
3052 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3053 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3055 # If archive_cmds runs LD, not CC, wlarc should be empty
3056 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3057 # investigate it a little bit more. (MM)
3060 # ancient GNU ld didn't support --whole-archive et. al.
3061 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3062 grep 'no-whole-archive' > /dev/null; then
3063 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3065 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3071 # A generic and very simple default shared library creation
3072 # command for GNU C++ for the case where it uses the native
3073 # linker, instead of GNU ld. If possible, this setting should
3074 # overridden to take advantage of the native linker features on
3075 # the platform it is being used on.
3076 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3079 # Commands to make compiler produce verbose output that lists
3080 # what "hidden" libraries, object files and flags are used when
3081 # linking a shared library.
3082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3090 # PORTME: fill in a description of your system's C++ link characteristics
3091 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3092 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3095 # FIXME: insert proper C++ library support
3096 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3099 if test "$host_cpu" = ia64; then
3100 # On IA64, the linker does run time linking by default, so we don't
3101 # have to do anything special.
3102 aix_use_runtimelinking=no
3103 exp_sym_flag='-Bexport'
3106 aix_use_runtimelinking=no
3108 # Test if we are trying to use run time linking or normal
3109 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
3110 # need to do runtime linking.
3111 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3112 for ld_flag in $LDFLAGS; do
3115 aix_use_runtimelinking=yes
3123 exp_sym_flag='-bexport'
3124 no_entry_flag='-bnoentry'
3127 # When large executables or shared objects are built, AIX ld can
3128 # have problems creating the table of contents. If linking a library
3129 # or program results in "error TOC overflow" add -mminimal-toc to
3130 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3131 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3133 _LT_AC_TAGVAR(archive_cmds, $1)=''
3134 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3135 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3136 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3138 if test "$GXX" = yes; then
3139 case $host_os in aix4.[[012]]|aix4.[[012]].*)
3140 # We only want to do this on AIX 4.2 and lower, the check
3141 # below for broken collect2 doesn't work under 4.3+
3142 collect2name=`${CC} -print-prog-name=collect2`
3143 if test -f "$collect2name" && \
3144 strings "$collect2name" | grep resolve_lib_name >/dev/null
3146 # We have reworked collect2
3147 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3149 # We have old collect2
3150 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3151 # It fails to find uninstalled libraries when the uninstalled
3152 # path is not listed in the libpath. Setting hardcode_minus_L
3153 # to unsupported forces relinking
3154 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3155 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3156 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3160 shared_flag='-shared'
3161 if test "$aix_use_runtimelinking" = yes; then
3162 shared_flag="$shared_flag "'${wl}-G'
3166 if test "$host_cpu" = ia64; then
3167 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3168 # chokes on -Wl,-G. The following line is correct:
3171 if test "$aix_use_runtimelinking" = yes; then
3172 shared_flag='${wl}-G'
3174 shared_flag='${wl}-bM:SRE'
3179 # It seems that -bexpall does not export symbols beginning with
3180 # underscore (_), so it is better to generate a list of symbols to export.
3181 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
3182 if test "$aix_use_runtimelinking" = yes; then
3183 # Warning - without using the other runtime loading flags (-brtl),
3184 # -berok will link without error, but may produce a broken library.
3185 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3186 # Determine the default libpath from the value encoded in an empty executable.
3187 _LT_AC_SYS_LIBPATH_AIX
3188 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3190 _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"
3192 if test "$host_cpu" = ia64; then
3193 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3194 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3195 _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"
3197 # Determine the default libpath from the value encoded in an empty executable.
3198 _LT_AC_SYS_LIBPATH_AIX
3199 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3200 # Warning - without using the other run time loading flags,
3201 # -berok will link without error, but may produce a broken library.
3202 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3203 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3204 # Exported symbols can be pulled into shared objects from archives
3205 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3206 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3207 # This is similar to how AIX traditionally builds its shared libraries.
3208 _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'
3214 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3215 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3216 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3217 # support --undefined. This deserves some investigation. FIXME
3218 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3220 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3225 case $cc_basename in
3227 # FIXME: insert proper C++ library support
3228 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3233 cygwin* | mingw* | pw32*)
3234 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3235 # as there is no search path for DLLs.
3236 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3237 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3238 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3239 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3241 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3242 _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'
3243 # If the export-symbols file already is a .def file (1st line
3244 # is EXPORTS), use it as is; otherwise, prepend...
3245 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3246 cp $export_symbols $output_objdir/$soname.def;
3248 echo EXPORTS > $output_objdir/$soname.def;
3249 cat $export_symbols >> $output_objdir/$soname.def;
3251 $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'
3253 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3256 darwin* | rhapsody*)
3258 rhapsody* | darwin1.[[012]])
3259 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3262 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3263 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3265 case ${MACOSX_DEPLOYMENT_TARGET} in
3267 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3270 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3276 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3277 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3278 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3279 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3280 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3281 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3283 if test "$GXX" = yes ; then
3284 lt_int_apple_cc_single_mod=no
3285 output_verbose_link_cmd='echo'
3286 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3287 lt_int_apple_cc_single_mod=yes
3289 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3290 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3292 _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'
3294 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3295 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3296 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3297 _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}'
3299 _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}'
3301 _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}'
3303 case $cc_basename in
3305 output_verbose_link_cmd='echo'
3306 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3307 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3308 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3309 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3310 _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}'
3313 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3320 case $cc_basename in
3322 # FIXME: insert proper C++ library support
3323 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3326 # Green Hills C++ Compiler
3327 # FIXME: insert proper C++ library support
3328 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3331 # FIXME: insert proper C++ library support
3332 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3337 # C++ shared libraries reported to be fairly broken before switch to ELF
3338 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3341 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3343 freebsd* | kfreebsd*-gnu | dragonfly*)
3344 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3346 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3351 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3352 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3354 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3355 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3356 # but as the default
3357 # location of the library.
3359 case $cc_basename in
3361 # FIXME: insert proper C++ library support
3362 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3365 _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'
3366 # Commands to make compiler produce verbose output that lists
3367 # what "hidden" libraries, object files and flags are used when
3368 # linking a shared library.
3370 # There doesn't appear to be a way to prevent this compiler from
3371 # explicitly linking system object files so we need to strip them
3372 # from the output so that they don't get included in the library
3374 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'
3377 if test "$GXX" = yes; then
3378 _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'
3380 # FIXME: insert proper C++ library support
3381 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3387 if test $with_gnu_ld = no; then
3388 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3389 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3393 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3396 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3402 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3403 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3406 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3407 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3408 # but as the default
3409 # location of the library.
3413 case $cc_basename in
3415 # FIXME: insert proper C++ library support
3416 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3421 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3424 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3427 _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'
3430 # Commands to make compiler produce verbose output that lists
3431 # what "hidden" libraries, object files and flags are used when
3432 # linking a shared library.
3434 # There doesn't appear to be a way to prevent this compiler from
3435 # explicitly linking system object files so we need to strip them
3436 # from the output so that they don't get included in the library
3438 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'
3441 if test "$GXX" = yes; then
3442 if test $with_gnu_ld = no; then
3445 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3448 _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'
3451 _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'
3456 # FIXME: insert proper C++ library support
3457 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3463 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3464 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3465 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3466 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3467 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3468 # Instead, shared libraries are loaded at an image base (0x10000000 by
3469 # default) and relocated if they conflict, which is a slow very memory
3470 # consuming and fragmenting process. To avoid this, we pick a random,
3471 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3472 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3473 _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'
3474 _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'
3477 case $cc_basename in
3480 _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'
3482 # Archives containing C++ object files must be created using
3483 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3484 # necessary to make sure instantiated templates are included
3486 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3489 if test "$GXX" = yes; then
3490 if test "$with_gnu_ld" = no; then
3491 _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'
3493 _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'
3496 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3499 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3500 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3503 case $cc_basename in
3505 # Kuck and Associates, Inc. (KAI) C++ Compiler
3507 # KCC will only create a shared library if the output file
3508 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3509 # to its proper name (with version) after linking.
3510 _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'
3511 _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'
3512 # Commands to make compiler produce verbose output that lists
3513 # what "hidden" libraries, object files and flags are used when
3514 # linking a shared library.
3516 # There doesn't appear to be a way to prevent this compiler from
3517 # explicitly linking system object files so we need to strip them
3518 # from the output so that they don't get included in the library
3520 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'
3522 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3523 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3525 # Archives containing C++ object files must be created using
3526 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3527 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3532 # version 8.0 and above of icpc choke on multiply defined symbols
3533 # if we add $predep_objects and $postdep_objects, however 7.1 and
3534 # earlier do not add the objects themselves.
3535 case `$CC -V 2>&1` in
3537 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3538 _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'
3540 *) # Version 8.0 or newer
3543 ia64*) tmp_idyn=' -i_dynamic';;
3545 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3546 _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'
3549 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3550 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3551 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3552 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3555 # Portland Group C++ compiler
3556 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3557 _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'
3559 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3560 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3561 _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'
3565 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3566 _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'
3568 runpath_var=LD_RUN_PATH
3569 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3570 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3572 # Commands to make compiler produce verbose output that lists
3573 # what "hidden" libraries, object files and flags are used when
3574 # linking a shared library.
3576 # There doesn't appear to be a way to prevent this compiler from
3577 # explicitly linking system object files so we need to strip them
3578 # from the output so that they don't get included in the library
3580 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'
3585 # FIXME: insert proper C++ library support
3586 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3589 # FIXME: insert proper C++ library support
3590 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3593 case $cc_basename in
3595 # FIXME: insert proper C++ library support
3596 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3599 # FIXME: insert proper C++ library support
3600 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3605 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3606 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3608 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3609 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3610 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3612 # Workaround some broken pre-1.5 toolchains
3613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3616 # C++ shared libraries are fairly broken
3617 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3620 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3621 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3622 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3623 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3624 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3625 _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'
3626 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3627 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3629 output_verbose_link_cmd='echo'
3632 case $cc_basename in
3634 # Kuck and Associates, Inc. (KAI) C++ Compiler
3636 # KCC will only create a shared library if the output file
3637 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3638 # to its proper name (with version) after linking.
3639 _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'
3641 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3642 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3644 # Archives containing C++ object files must be created using
3645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3646 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3650 # Rational C++ 2.4.1
3651 # FIXME: insert proper C++ library support
3652 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3655 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3656 _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'
3658 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3659 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3661 # Commands to make compiler produce verbose output that lists
3662 # what "hidden" libraries, object files and flags are used when
3663 # linking a shared library.
3665 # There doesn't appear to be a way to prevent this compiler from
3666 # explicitly linking system object files so we need to strip them
3667 # from the output so that they don't get included in the library
3669 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'
3672 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3673 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3674 _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'
3676 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3677 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3679 # Commands to make compiler produce verbose output that lists
3680 # what "hidden" libraries, object files and flags are used when
3681 # linking a shared library.
3682 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3685 # FIXME: insert proper C++ library support
3686 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3692 case $cc_basename in
3694 # Kuck and Associates, Inc. (KAI) C++ Compiler
3696 # KCC will only create a shared library if the output file
3697 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3698 # to its proper name (with version) after linking.
3699 _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'
3701 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3702 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3704 # Archives containing C++ object files must be created using
3705 # the KAI C++ compiler.
3706 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3709 # Rational C++ 2.4.1
3710 # FIXME: insert proper C++ library support
3711 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3714 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3715 _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'
3716 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3717 echo "-hidden">> $lib.exp~
3718 $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~
3721 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3722 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3724 # Commands to make compiler produce verbose output that lists
3725 # what "hidden" libraries, object files and flags are used when
3726 # linking a shared library.
3728 # There doesn't appear to be a way to prevent this compiler from
3729 # explicitly linking system object files so we need to strip them
3730 # from the output so that they don't get included in the library
3732 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'
3735 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3736 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3737 _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'
3739 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3740 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3742 # Commands to make compiler produce verbose output that lists
3743 # what "hidden" libraries, object files and flags are used when
3744 # linking a shared library.
3745 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3748 # FIXME: insert proper C++ library support
3749 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3755 # FIXME: insert proper C++ library support
3756 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3759 case $cc_basename in
3762 # FIXME: insert proper C++ library support
3763 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3767 # FIXME: insert proper C++ library support
3768 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3771 # FIXME: insert proper C++ library support
3772 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3777 case $cc_basename in
3779 # Sun C++ 4.2, 5.x and Centerline C++
3780 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3781 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3782 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3783 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3784 $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'
3786 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3787 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3789 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3791 # The C++ compiler is used as linker so we must use $wl
3792 # flag to pass the commands to the underlying system
3793 # linker. We must also pass each convience library through
3794 # to the system linker between allextract/defaultextract.
3795 # The C++ compiler will combine linker options so we
3796 # cannot just pass the convience library names through
3798 # Supported since Solaris 2.6 (maybe 2.5.1?)
3799 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3802 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3804 output_verbose_link_cmd='echo'
3806 # Archives containing C++ object files must be created using
3807 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3808 # necessary to make sure instantiated templates are included
3810 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3813 # Green Hills C++ Compiler
3814 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3816 # The C++ compiler must be used to create the archive.
3817 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3820 # GNU C++ compiler with Solaris linker
3821 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3822 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3823 if $CC --version | grep -v '^2\.7' > /dev/null; then
3824 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3825 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3826 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3828 # Commands to make compiler produce verbose output that lists
3829 # what "hidden" libraries, object files and flags are used when
3830 # linking a shared library.
3831 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3833 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3835 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3836 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3837 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3839 # Commands to make compiler produce verbose output that lists
3840 # what "hidden" libraries, object files and flags are used when
3841 # linking a shared library.
3842 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3845 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3851 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3852 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3853 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3854 runpath_var='LD_RUN_PATH'
3856 case $cc_basename in
3858 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3859 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3862 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3863 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3867 sysv5* | sco3.2v5* | sco5v6*)
3868 # Note: We can NOT use -z defs as we might desire, because we do not
3869 # link with -lc, and that would cause any symbols used from libc to
3870 # always be unresolved, which means just about no library would
3871 # ever link correctly. If we're not using GNU ld we use -z text
3872 # though, which does catch some bad symbols but isn't as heavy-handed
3874 # For security reasons, it is highly recommended that you always
3875 # use absolute paths for naming shared libraries, and exclude the
3876 # DT_RUNPATH tag from executables and libraries. But doing so
3877 # requires that you compile everything twice, which is a pain.
3878 # So that behaviour is only enabled if SCOABSPATH is set to a
3879 # non-empty value in the environment. Most likely only useful for
3880 # creating official distributions of packages.
3881 # This is a hack until libtool officially supports absolute path
3882 # names for shared libraries.
3883 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3884 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3885 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3886 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3887 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3888 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3889 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3890 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3891 runpath_var='LD_RUN_PATH'
3893 case $cc_basename in
3895 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3896 _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'
3899 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3900 _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'
3905 case $cc_basename in
3907 # NonStop-UX NCC 3.20
3908 # FIXME: insert proper C++ library support
3909 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3912 # FIXME: insert proper C++ library support
3913 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3918 # FIXME: insert proper C++ library support
3919 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3922 # FIXME: insert proper C++ library support
3923 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3926 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3927 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3929 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3930 _LT_AC_TAGVAR(LD, $1)="$LD"
3932 AC_LIBTOOL_POSTDEP_PREDEP($1)
3933 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3934 AC_LIBTOOL_PROG_CC_C_O($1)
3935 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3936 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3937 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3938 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3940 AC_LIBTOOL_CONFIG($1)
3947 with_gnu_ldcxx=$with_gnu_ld
3948 with_gnu_ld=$lt_save_with_gnu_ld
3949 lt_cv_path_LDCXX=$lt_cv_path_LD
3950 lt_cv_path_LD=$lt_save_path_LD
3951 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3952 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3953 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3955 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3956 # ------------------------------------
3957 # Figure out "hidden" library dependencies from verbose
3958 # compiler output when linking a shared library.
3959 # Parse the compiler output and extract the necessary
3960 # objects, libraries and library flags.
3961 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3962 dnl we can't use the lt_simple_compile_test_code here,
3963 dnl because it contains code intended for an executable,
3964 dnl not a library. It's possible we should let each
3965 dnl tag define a new lt_????_link_test_code variable,
3966 dnl but it's only used here...
3967 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3969 void foo (void) { a = 0; }
3971 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3975 Foo (void) { a = 0; }
3980 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3988 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3991 public void bar (void) {
3997 dnl Parse the compiler output and extract the necessary
3998 dnl objects, libraries and library flags.
3999 if AC_TRY_EVAL(ac_compile); then
4000 # Parse the compiler output and extract the necessary
4001 # objects, libraries and library flags.
4003 # Sentinel used to keep track of whether or not we are before
4004 # the conftest object file.
4005 pre_test_object_deps_done=no
4007 # The `*' in the case matches for architectures that use `case' in
4008 # $output_verbose_cmd can trigger glob expansion during the loop
4009 # eval without this substitution.
4010 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4012 for p in `eval $output_verbose_link_cmd`; do
4016 # Some compilers place space between "-{L,R}" and the path.
4019 || test $p = "-R"; then
4026 if test "$pre_test_object_deps_done" = no; then
4029 # Internal compiler library paths should come after those
4030 # provided the user. The postdeps already come after the
4031 # user supplied libs so there is no need to process them.
4032 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4033 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4035 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4038 # The "-l" case would never come before the object being
4039 # linked, so don't bother handling this case.
4042 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4043 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4045 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4051 # This assumes that the test object file only shows up
4052 # once in the compiler output.
4053 if test "$p" = "conftest.$objext"; then
4054 pre_test_object_deps_done=yes
4058 if test "$pre_test_object_deps_done" = no; then
4059 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4060 _LT_AC_TAGVAR(predep_objects, $1)="$p"
4062 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4065 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4066 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
4068 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4073 *) ;; # Ignore the rest.
4081 echo "libtool.m4: error: problem compiling $1 test program"
4084 $rm -f confest.$objext
4086 # PORTME: override above test on systems where it is broken
4090 # Interix 3.5 installs completely hosed .la files for C++, so rather than
4091 # hack all around it, let's just trust "g++" to DTRT.
4092 _LT_AC_TAGVAR(predep_objects,$1)=
4093 _LT_AC_TAGVAR(postdep_objects,$1)=
4094 _LT_AC_TAGVAR(postdeps,$1)=
4098 case $cc_basename in
4100 # Adding this requires a known-good setup of shared libraries for
4101 # Sun compiler versions before 5.6, else PIC objects from an old
4102 # archive will be linked into the output, leading to subtle bugs.
4103 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
4110 case " $_LT_AC_TAGVAR(postdeps, $1) " in
4111 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4113 ])# AC_LIBTOOL_POSTDEP_PREDEP
4115 # AC_LIBTOOL_LANG_F77_CONFIG
4116 # --------------------------
4117 # Ensure that the configuration vars for the C compiler are
4118 # suitably defined. Those variables are subsequently used by
4119 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4120 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4121 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4122 [AC_REQUIRE([AC_PROG_F77])
4123 AC_LANG_PUSH(Fortran 77)
4125 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4126 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
4127 _LT_AC_TAGVAR(always_export_symbols, $1)=no
4128 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4129 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4130 _LT_AC_TAGVAR(hardcode_direct, $1)=no
4131 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4132 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4133 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4134 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4135 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
4136 _LT_AC_TAGVAR(module_cmds, $1)=
4137 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
4138 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4139 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4140 _LT_AC_TAGVAR(no_undefined_flag, $1)=
4141 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4142 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4144 # Source file extension for f77 test sources.
4147 # Object file extension for compiled f77 test sources.
4149 _LT_AC_TAGVAR(objext, $1)=$objext
4151 # Code to be used in simple compile tests
4152 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
4154 # Code to be used in simple link tests
4155 lt_simple_link_test_code=" program t\n end\n"
4157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4160 # save warnings/boilerplate of simple test code
4161 _LT_COMPILER_BOILERPLATE
4162 _LT_LINKER_BOILERPLATE
4164 # Allow CC to be a program name with arguments.
4168 _LT_AC_TAGVAR(compiler, $1)=$CC
4169 _LT_CC_BASENAME([$compiler])
4171 AC_MSG_CHECKING([if libtool supports shared libraries])
4172 AC_MSG_RESULT([$can_build_shared])
4174 AC_MSG_CHECKING([whether to build shared libraries])
4175 test "$can_build_shared" = "no" && enable_shared=no
4177 # On AIX, shared libraries and static libraries use the same namespace, and
4178 # are all built from PIC.
4181 test "$enable_shared" = yes && enable_static=no
4182 if test -n "$RANLIB"; then
4183 archive_cmds="$archive_cmds~\$RANLIB \$lib"
4184 postinstall_cmds='$RANLIB $lib'
4188 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4189 test "$enable_shared" = yes && enable_static=no
4193 AC_MSG_RESULT([$enable_shared])
4195 AC_MSG_CHECKING([whether to build static libraries])
4196 # Make sure either enable_shared or enable_static is yes.
4197 test "$enable_shared" = yes || enable_static=yes
4198 AC_MSG_RESULT([$enable_static])
4200 _LT_AC_TAGVAR(GCC, $1)="$G77"
4201 _LT_AC_TAGVAR(LD, $1)="$LD"
4203 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4204 AC_LIBTOOL_PROG_CC_C_O($1)
4205 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4206 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4207 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4208 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4210 AC_LIBTOOL_CONFIG($1)
4214 ])# AC_LIBTOOL_LANG_F77_CONFIG
4217 # AC_LIBTOOL_LANG_GCJ_CONFIG
4218 # --------------------------
4219 # Ensure that the configuration vars for the C compiler are
4220 # suitably defined. Those variables are subsequently used by
4221 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4222 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4223 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4226 # Source file extension for Java test sources.
4229 # Object file extension for compiled Java test sources.
4231 _LT_AC_TAGVAR(objext, $1)=$objext
4233 # Code to be used in simple compile tests
4234 lt_simple_compile_test_code="class foo {}\n"
4236 # Code to be used in simple link tests
4237 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4239 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4242 # save warnings/boilerplate of simple test code
4243 _LT_COMPILER_BOILERPLATE
4244 _LT_LINKER_BOILERPLATE
4246 # Allow CC to be a program name with arguments.
4250 _LT_AC_TAGVAR(compiler, $1)=$CC
4251 _LT_CC_BASENAME([$compiler])
4253 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4254 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4256 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4258 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4259 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4260 AC_LIBTOOL_PROG_CC_C_O($1)
4261 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4262 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4263 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4264 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4266 AC_LIBTOOL_CONFIG($1)
4270 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4273 # AC_LIBTOOL_LANG_RC_CONFIG
4274 # -------------------------
4275 # Ensure that the configuration vars for the Windows resource compiler are
4276 # suitably defined. Those variables are subsequently used by
4277 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4278 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4279 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4282 # Source file extension for RC test sources.
4285 # Object file extension for compiled RC test sources.
4287 _LT_AC_TAGVAR(objext, $1)=$objext
4289 # Code to be used in simple compile tests
4290 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4292 # Code to be used in simple link tests
4293 lt_simple_link_test_code="$lt_simple_compile_test_code"
4295 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4298 # save warnings/boilerplate of simple test code
4299 _LT_COMPILER_BOILERPLATE
4300 _LT_LINKER_BOILERPLATE
4302 # Allow CC to be a program name with arguments.
4306 _LT_AC_TAGVAR(compiler, $1)=$CC
4307 _LT_CC_BASENAME([$compiler])
4308 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4310 AC_LIBTOOL_CONFIG($1)
4314 ])# AC_LIBTOOL_LANG_RC_CONFIG
4317 # AC_LIBTOOL_CONFIG([TAGNAME])
4318 # ----------------------------
4319 # If TAGNAME is not passed, then create an initial libtool script
4320 # with a default configuration from the untagged config vars. Otherwise
4321 # add code to config.status for appending the configuration named by
4322 # TAGNAME from the matching tagged config vars.
4323 AC_DEFUN([AC_LIBTOOL_CONFIG],
4324 [# The else clause should only fire when bootstrapping the
4325 # libtool distribution, otherwise you forgot to ship ltmain.sh
4326 # with your package, and you will get complaints that there are
4327 # no rules to generate ltmain.sh.
4328 if test -f "$ltmain"; then
4329 # See if we are running on zsh, and set the options which allow our commands through
4330 # without removal of \ escapes.
4331 if test -n "${ZSH_VERSION+set}" ; then
4332 setopt NO_GLOB_SUBST
4334 # Now quote all the things that may contain metacharacters while being
4335 # careful not to overquote the AC_SUBSTed values. We take copies of the
4336 # variables and quote the copies for generation of the libtool script.
4337 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4339 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4340 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4341 deplibs_check_method reload_flag reload_cmds need_locks \
4342 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4343 lt_cv_sys_global_symbol_to_c_name_address \
4344 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4345 old_postinstall_cmds old_postuninstall_cmds \
4346 _LT_AC_TAGVAR(compiler, $1) \
4347 _LT_AC_TAGVAR(CC, $1) \
4348 _LT_AC_TAGVAR(LD, $1) \
4349 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4350 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4351 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4352 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4353 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4354 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4355 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4356 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4357 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4358 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4359 _LT_AC_TAGVAR(predep_objects, $1) \
4360 _LT_AC_TAGVAR(postdep_objects, $1) \
4361 _LT_AC_TAGVAR(predeps, $1) \
4362 _LT_AC_TAGVAR(postdeps, $1) \
4363 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4364 _LT_AC_TAGVAR(archive_cmds, $1) \
4365 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4366 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4367 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4368 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4369 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4370 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4371 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4372 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4373 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4374 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4375 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4376 _LT_AC_TAGVAR(module_cmds, $1) \
4377 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4378 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4379 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4380 _LT_AC_TAGVAR(include_expsyms, $1); do
4383 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4384 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4385 _LT_AC_TAGVAR(archive_cmds, $1) | \
4386 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4387 _LT_AC_TAGVAR(module_cmds, $1) | \
4388 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4389 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4390 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4391 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4392 postinstall_cmds | postuninstall_cmds | \
4393 old_postinstall_cmds | old_postuninstall_cmds | \
4394 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4395 # Double-quote double-evaled strings.
4396 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4399 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4405 *'\[$]0 --fallback-echo"')
4406 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4411 [cfgfile="${ofile}T"
4412 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4414 AC_MSG_NOTICE([creating $ofile])],
4417 cat <<__EOF__ >> "$cfgfile"
4421 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4422 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4423 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4425 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4426 # Free Software Foundation, Inc.
4428 # This file is part of GNU Libtool:
4429 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4431 # This program is free software; you can redistribute it and/or modify
4432 # it under the terms of the GNU General Public License as published by
4433 # the Free Software Foundation; either version 2 of the License, or
4434 # (at your option) any later version.
4436 # This program is distributed in the hope that it will be useful, but
4437 # WITHOUT ANY WARRANTY; without even the implied warranty of
4438 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4439 # General Public License for more details.
4441 # You should have received a copy of the GNU General Public License
4442 # along with this program; if not, write to the Free Software
4443 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4445 # As a special exception to the GNU General Public License, if you
4446 # distribute this file as part of a program that contains a
4447 # configuration script generated by Autoconf, you may include it under
4448 # the same distribution terms that you use for the rest of that program.
4450 # A sed program that does not truncate output.
4453 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4454 Xsed="$SED -e 1s/^X//"
4456 # The HP-UX ksh and POSIX shell print the target directory to stdout
4458 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4460 # The names of the tagged configurations supported by this script.
4463 # ### BEGIN LIBTOOL CONFIG],
4464 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4466 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4468 # Shell to use when invoking shell scripts.
4471 # Whether or not to build shared libraries.
4472 build_libtool_libs=$enable_shared
4474 # Whether or not to build static libraries.
4475 build_old_libs=$enable_static
4477 # Whether or not to add -lc for building shared libraries.
4478 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4480 # Whether or not to disallow shared libs when runtime libs are static
4481 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4483 # Whether or not to optimize for fast installation.
4484 fast_install=$enable_fast_install
4487 host_alias=$host_alias
4492 build_alias=$build_alias
4496 # An echo program that does not interpret backslashes.
4501 AR_FLAGS=$lt_AR_FLAGS
4506 # LTCC compiler flags.
4507 LTCFLAGS=$lt_LTCFLAGS
4509 # A language-specific compiler.
4510 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4512 # Is the compiler the GNU C compiler?
4513 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4518 # The linker used to build libraries.
4519 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4521 # Whether we need hard or soft links.
4524 # A BSD-compatible nm program.
4527 # A symbol stripping program
4530 # Used to examine libraries when file_magic_cmd begins "file"
4531 MAGIC_CMD=$MAGIC_CMD
4533 # Used on cygwin: DLL creation program.
4536 # Used on cygwin: object dumper.
4539 # Used on cygwin: assembler.
4542 # The name of the directory that contains temporary libtool files.
4545 # How to create reloadable object files.
4546 reload_flag=$lt_reload_flag
4547 reload_cmds=$lt_reload_cmds
4549 # How to pass a linker flag through the compiler.
4550 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4552 # Object file suffix (normally "o").
4555 # Old archive suffix (normally "a").
4558 # Shared library suffix (normally ".so").
4559 shrext_cmds='$shrext_cmds'
4561 # Executable file suffix (normally "").
4564 # Additional compiler flags for building library objects.
4565 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4568 # What is the maximum length of a command?
4569 max_cmd_len=$lt_cv_sys_max_cmd_len
4571 # Does compiler simultaneously support -c and -o options?
4572 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4574 # Must we lock files when doing compilation?
4575 need_locks=$lt_need_locks
4577 # Do we need the lib prefix for modules?
4578 need_lib_prefix=$need_lib_prefix
4580 # Do we need a version for libraries?
4581 need_version=$need_version
4583 # Whether dlopen is supported.
4584 dlopen_support=$enable_dlopen
4586 # Whether dlopen of programs is supported.
4587 dlopen_self=$enable_dlopen_self
4589 # Whether dlopen of statically linked programs is supported.
4590 dlopen_self_static=$enable_dlopen_self_static
4592 # Compiler flag to prevent dynamic linking.
4593 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4595 # Compiler flag to turn off builtin functions.
4596 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4598 # Compiler flag to allow reflexive dlopens.
4599 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4601 # Compiler flag to generate shared objects directly from archives.
4602 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4604 # Compiler flag to generate thread-safe objects.
4605 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4607 # Library versioning type.
4608 version_type=$version_type
4610 # Format of library name prefix.
4611 libname_spec=$lt_libname_spec
4613 # List of archive names. First name is the real one, the rest are links.
4614 # The last name is the one that the linker finds with -lNAME.
4615 library_names_spec=$lt_library_names_spec
4617 # The coded name of the library, if different from the real name.
4618 soname_spec=$lt_soname_spec
4620 # Commands used to build and install an old-style archive.
4622 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4623 old_postinstall_cmds=$lt_old_postinstall_cmds
4624 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4626 # Create an old-style archive from a shared archive.
4627 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4629 # Create a temporary old-style archive to link instead of a shared archive.
4630 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4632 # Commands used to build and install a shared archive.
4633 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4634 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4635 postinstall_cmds=$lt_postinstall_cmds
4636 postuninstall_cmds=$lt_postuninstall_cmds
4638 # Commands used to build a loadable module (assumed same as above if empty)
4639 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4640 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4642 # Commands to strip libraries.
4643 old_striplib=$lt_old_striplib
4644 striplib=$lt_striplib
4646 # Dependencies to place before the objects being linked to create a
4648 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4650 # Dependencies to place after the objects being linked to create a
4652 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4654 # Dependencies to place before the objects being linked to create a
4656 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4658 # Dependencies to place after the objects being linked to create a
4660 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4662 # The library search path used internally by the compiler when linking
4664 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4666 # Method to check whether dependent libraries are shared objects.
4667 deplibs_check_method=$lt_deplibs_check_method
4669 # Command to use when deplibs_check_method == file_magic.
4670 file_magic_cmd=$lt_file_magic_cmd
4672 # Flag that allows shared libraries with undefined symbols to be built.
4673 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4675 # Flag that forces no undefined symbols.
4676 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4678 # Commands used to finish a libtool library installation in a directory.
4679 finish_cmds=$lt_finish_cmds
4681 # Same as above, but a single script fragment to be evaled but not shown.
4682 finish_eval=$lt_finish_eval
4684 # Take the output of nm and produce a listing of raw symbols and C names.
4685 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4687 # Transform the output of nm in a proper C declaration
4688 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4690 # Transform the output of nm in a C name address pair
4691 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4693 # This is the shared library runtime path variable.
4694 runpath_var=$runpath_var
4696 # This is the shared library path variable.
4697 shlibpath_var=$shlibpath_var
4699 # Is shlibpath searched before the hard-coded library search path?
4700 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4702 # How to hardcode a shared library path into an executable.
4703 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4705 # Whether we should hardcode library paths into libraries.
4706 hardcode_into_libs=$hardcode_into_libs
4708 # Flag to hardcode \$libdir into a binary during linking.
4709 # This must work even if \$libdir does not exist.
4710 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4712 # If ld is used when linking, flag to hardcode \$libdir into
4713 # a binary during linking. This must work even if \$libdir does
4715 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4717 # Whether we need a single -rpath flag with a separated argument.
4718 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4720 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4722 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4724 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4726 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4728 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4729 # the resulting binary.
4730 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4732 # Set to yes if building a shared library automatically hardcodes DIR into the library
4733 # and all subsequent libraries and executables linked against it.
4734 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4736 # Variables whose values should be saved in libtool wrapper scripts and
4737 # restored at relink time.
4738 variables_saved_for_relink="$variables_saved_for_relink"
4740 # Whether libtool must link a program against all its dependency libraries.
4741 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4743 # Compile-time system search path for libraries
4744 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4746 # Run-time system search path for libraries
4747 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4749 # Fix the shell variable \$srcfile for the compiler.
4750 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4752 # Set to yes if exported symbols are required.
4753 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4755 # The commands to list exported symbols.
4756 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4758 # The commands to extract the exported symbol list from a shared archive.
4759 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4761 # Symbols that should not be listed in the preloaded symbols.
4762 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4764 # Symbols that must always be exported.
4765 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4768 [# ### END LIBTOOL CONFIG],
4769 [# ### END LIBTOOL TAG CONFIG: $tagname])
4776 cat <<\EOF >> "$cfgfile"
4778 # AIX sometimes has problems with the GCC collect2 program. For some
4779 # reason, if we set the COLLECT_NAMES environment variable, the problems
4780 # vanish in a puff of smoke.
4781 if test "X${COLLECT_NAMES+set}" != Xset; then
4783 export COLLECT_NAMES
4789 # We use sed instead of cat because bash on DJGPP gets confused if
4790 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4791 # text mode, it properly converts lines to CR/LF. This bash problem
4792 # is reportedly fixed, but why not run on old versions too?
4793 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4795 mv -f "$cfgfile" "$ofile" || \
4796 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4800 # If there is no Makefile yet, we rely on a make rule to execute
4801 # `config.status --recheck' to rerun these tests and create the
4802 # libtool script then.
4803 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4804 if test -f "$ltmain_in"; then
4805 test -f Makefile && make "$ltmain"
4808 ])# AC_LIBTOOL_CONFIG
4811 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4812 # -------------------------------------------
4813 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4814 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4816 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4818 if test "$GCC" = yes; then
4819 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4821 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4822 lt_cv_prog_compiler_rtti_exceptions,
4823 [-fno-rtti -fno-exceptions], [],
4824 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4826 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4829 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4830 # ---------------------------------
4831 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4832 [AC_REQUIRE([AC_CANONICAL_HOST])
4833 AC_REQUIRE([AC_PROG_NM])
4834 AC_REQUIRE([AC_OBJEXT])
4835 # Check for command to grab the raw symbol name followed by C symbol from nm.
4836 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4837 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4839 # These are sane defaults that work on at least a few old systems.
4840 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4842 # Character class describing NM global symbol codes.
4843 symcode='[[BCDEGRST]]'
4845 # Regexp to match symbols that can be accessed directly from C.
4846 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4848 # Transform an extracted symbol line into a proper C declaration
4849 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4851 # Transform an extracted symbol line into symbol name and symbol address
4852 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'"
4854 # Define system-specific variables.
4859 cygwin* | mingw* | pw32*)
4860 symcode='[[ABCDGISTW]]'
4862 hpux*) # Its linker distinguishes data from code symbols
4863 if test "$host_cpu" = ia64; then
4864 symcode='[[ABCDEGRST]]'
4866 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4867 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'"
4870 if test "$host_cpu" = ia64; then
4871 symcode='[[ABCDGIRSTW]]'
4872 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4873 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'"
4877 symcode='[[BCDEGRST]]'
4880 symcode='[[BCDEGQRST]]'
4891 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4895 symcode='[[DFNSTU]]'
4899 # Handle CRLF in mingw tool chain
4903 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4907 # If we're using GNU nm, then use its standard symbol codes.
4908 case `$NM -V 2>&1` in
4909 *GNU* | *'with BFD'*)
4910 symcode='[[ABCDGIRSTW]]' ;;
4913 # Try without a prefix undercore, then with it.
4914 for ac_symprfx in "" "_"; do
4916 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4917 symxfrm="\\1 $ac_symprfx\\2 \\2"
4919 # Write the raw and C identifiers.
4920 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4922 # Check to see that the pipe works correctly.
4926 cat > conftest.$ac_ext <<EOF
4931 void nm_test_func(){}
4935 int main(){nm_test_var='a';nm_test_func();return(0);}
4938 if AC_TRY_EVAL(ac_compile); then
4939 # Now try to grab the symbols.
4941 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4942 # Try sorting and uniquifying the output.
4943 if sort "$nlist" | uniq > "$nlist"T; then
4944 mv -f "$nlist"T "$nlist"
4949 # Make sure that we snagged all the symbols we need.
4950 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4951 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4952 cat <<EOF > conftest.$ac_ext
4958 # Now generate the symbol file.
4959 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4961 cat <<EOF >> conftest.$ac_ext
4962 #if defined (__STDC__) && __STDC__
4963 # define lt_ptr_t void *
4965 # define lt_ptr_t char *
4969 /* The mapping between symbol names and symbols. */
4974 lt_preloaded_symbols[[]] =
4977 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4978 cat <<\EOF >> conftest.$ac_ext
4986 # Now try linking the two files.
4987 mv conftest.$ac_objext conftstm.$ac_objext
4988 lt_save_LIBS="$LIBS"
4989 lt_save_CFLAGS="$CFLAGS"
4990 LIBS="conftstm.$ac_objext"
4991 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4992 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4995 LIBS="$lt_save_LIBS"
4996 CFLAGS="$lt_save_CFLAGS"
4998 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5001 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5004 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5007 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5008 cat conftest.$ac_ext >&5
5010 rm -f conftest* conftst*
5012 # Do not use the global_symbol_pipe unless it works.
5013 if test "$pipe_works" = yes; then
5016 lt_cv_sys_global_symbol_pipe=
5020 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5021 lt_cv_sys_global_symbol_to_cdecl=
5023 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5024 AC_MSG_RESULT(failed)
5028 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5031 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5032 # ---------------------------------------
5033 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5034 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5035 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5036 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5038 AC_MSG_CHECKING([for $compiler option to produce PIC])
5040 # C++ specific cases for pic, static, wl, etc.
5041 if test "$GXX" = yes; then
5042 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5043 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5047 # All AIX code is PIC.
5048 if test "$host_cpu" = ia64; then
5049 # AIX 5 now supports IA64 processor
5050 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5054 # FIXME: we need at least 68020 code to build shared libraries, but
5055 # adding the `-m68020' flag to GCC prevents building anything better,
5057 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5059 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5060 # PIC is the default for these OSes.
5062 mingw* | os2* | pw32*)
5063 # This hack is so that the source file can tell whether it is being
5064 # built for inclusion in a dll (and should export symbols for example).
5065 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5067 darwin* | rhapsody*)
5068 # PIC is the default on this platform
5069 # Common symbols not allowed in MH_DYLIB files
5070 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5073 # DJGPP does not support shared libraries at all
5074 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5077 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5078 # Instead, we relocate shared libraries at runtime.
5081 if test -d /usr/nec; then
5082 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5086 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5097 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5103 # All AIX code is PIC.
5104 if test "$host_cpu" = ia64; then
5105 # AIX 5 now supports IA64 processor
5106 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5108 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5112 case $cc_basename in
5114 # Green Hills C++ Compiler
5115 # _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"
5120 # PIC is the default on this platform
5121 # Common symbols not allowed in MH_DYLIB files
5122 case $cc_basename in
5124 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5125 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5130 case $cc_basename in
5132 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5135 # Green Hills C++ Compiler
5136 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5142 freebsd* | kfreebsd*-gnu | dragonfly*)
5143 # FreeBSD uses GNU C++
5145 hpux9* | hpux10* | hpux11*)
5146 case $cc_basename in
5148 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5149 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5150 if test "$host_cpu" != ia64; then
5151 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5155 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5156 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5162 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5171 # This is c89, which is MS Visual C++ (no shared libs)
5172 # Anyone wants to do a port?
5174 irix5* | irix6* | nonstopux*)
5175 case $cc_basename in
5177 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5178 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5179 # CC pic flag -KPIC is the default.
5186 case $cc_basename in
5189 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5190 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5194 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5195 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5196 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5199 # Portland Group C++ compiler.
5200 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5201 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5202 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5206 # Make sure the PIC flag is empty. It appears that all Alpha
5207 # Linux and Compaq Tru64 Unix objects are PIC.
5208 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5209 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5220 case $cc_basename in
5222 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5230 osf3* | osf4* | osf5*)
5231 case $cc_basename in
5233 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5236 # Rational C++ 2.4.1
5237 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5240 # Digital/Compaq C++
5241 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5242 # Make sure the PIC flag is empty. It appears that all Alpha
5243 # Linux and Compaq Tru64 Unix objects are PIC.
5244 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5245 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5254 case $cc_basename in
5256 # Sun C++ 4.2, 5.x and Centerline C++
5257 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5258 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5259 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5262 # Green Hills C++ Compiler
5263 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5270 case $cc_basename in
5273 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5274 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5278 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5285 case $cc_basename in
5287 # NonStop-UX NCC 3.20
5288 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5294 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5295 case $cc_basename in
5297 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5298 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5299 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5306 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5312 if test "$GCC" = yes; then
5313 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5314 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5318 # All AIX code is PIC.
5319 if test "$host_cpu" = ia64; then
5320 # AIX 5 now supports IA64 processor
5321 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5326 # FIXME: we need at least 68020 code to build shared libraries, but
5327 # adding the `-m68020' flag to GCC prevents building anything better,
5329 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5333 # PIC is the default for these OSes.
5336 mingw* | pw32* | os2*)
5337 # This hack is so that the source file can tell whether it is being
5338 # built for inclusion in a dll (and should export symbols for example).
5339 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5342 darwin* | rhapsody*)
5343 # PIC is the default on this platform
5344 # Common symbols not allowed in MH_DYLIB files
5345 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5350 # Instead, we relocate shared libraries at runtime.
5354 # Just because we use GCC doesn't mean we suddenly get shared libraries
5355 # on systems that don't support them.
5356 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5361 if test -d /usr/nec; then
5362 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5374 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5380 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5384 # PORTME Check for flag to pass linker flags through the system compiler.
5387 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5388 if test "$host_cpu" = ia64; then
5389 # AIX 5 now supports IA64 processor
5390 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5392 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5396 # PIC is the default on this platform
5397 # Common symbols not allowed in MH_DYLIB files
5398 case $cc_basename in
5400 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5401 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5406 mingw* | pw32* | os2*)
5407 # This hack is so that the source file can tell whether it is being
5408 # built for inclusion in a dll (and should export symbols for example).
5409 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5412 hpux9* | hpux10* | hpux11*)
5413 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5421 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5424 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5425 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5428 irix5* | irix6* | nonstopux*)
5429 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5430 # PIC (with -KPIC) is the default.
5431 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5435 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5436 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5440 case $cc_basename in
5442 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5443 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5444 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5446 pgcc* | pgf77* | pgf90* | pgf95*)
5447 # Portland Group compilers (*not* the Pentium gcc compiler,
5448 # which looks to be a dead project)
5449 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5450 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5451 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5454 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5455 # All Alpha code is PIC.
5456 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5461 osf3* | osf4* | osf5*)
5462 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5463 # All OSF/1 code is PIC.
5464 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5468 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5469 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5470 case $cc_basename in
5472 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5474 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5479 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5480 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5481 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484 sysv4 | sysv4.2uw2* | sysv4.3*)
5485 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5486 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5487 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5491 if test -d /usr/nec ;then
5492 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5493 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5498 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5499 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5500 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5504 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5505 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5509 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5510 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5514 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5519 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5522 # Check to make sure the PIC flag actually works.
5524 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5525 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5526 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5527 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5528 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5530 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5532 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5533 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5536 # For platforms which do not support PIC, -DPIC is meaningless:
5538 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5541 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5546 # Check to make sure the static flag actually works.
5548 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5549 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5550 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5551 $lt_tmp_static_flag,
5553 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5557 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5558 # ------------------------------------
5559 # See if the linker supports building shared libraries.
5560 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5561 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5563 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5566 # If we're using GNU nm, then we don't want the "-C" option.
5567 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5568 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5569 _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'
5571 _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'
5575 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5578 _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'
5581 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5586 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5587 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5588 _LT_AC_TAGVAR(archive_cmds, $1)=
5589 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5590 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5591 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5592 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5593 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5594 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5595 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5597 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5598 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5599 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5600 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5601 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5602 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5603 _LT_AC_TAGVAR(module_cmds, $1)=
5604 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5605 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5606 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5607 # include_expsyms should be a list of space-separated symbols to be *always*
5608 # included in the symbol list
5609 _LT_AC_TAGVAR(include_expsyms, $1)=
5610 # exclude_expsyms can be an extended regexp of symbols to exclude
5611 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5612 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5613 # as well as any symbol that contains `d'.
5614 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5615 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5616 # platforms (ab)use it in PIC code, but their linkers get confused if
5617 # the symbol is explicitly referenced. Since portable code cannot
5618 # rely on this symbol name, it's probably fine to never include it in
5619 # preloaded symbol tables.
5620 extract_expsyms_cmds=
5621 # Just being paranoid about ensuring that cc_basename is set.
5622 _LT_CC_BASENAME([$compiler])
5624 cygwin* | mingw* | pw32*)
5625 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5626 # When not using gcc, we currently assume that we are using
5627 # Microsoft Visual C++.
5628 if test "$GCC" != yes; then
5633 # we just hope/assume this is gcc and not c89 (= MSVC++)
5641 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5642 if test "$with_gnu_ld" = yes; then
5643 # If archive_cmds runs LD, not CC, wlarc should be empty
5646 # Set some defaults for GNU ld with shared library support. These
5647 # are reset later if shared libraries are not supported. Putting them
5648 # here allows them to be overridden if necessary.
5649 runpath_var=LD_RUN_PATH
5650 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5651 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5652 # ancient GNU ld didn't support --whole-archive et. al.
5653 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5654 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5656 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5658 supports_anon_versioning=no
5659 case `$LD -v 2>/dev/null` in
5660 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5661 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5662 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5663 *\ 2.11.*) ;; # other 2.11 versions
5664 *) supports_anon_versioning=yes ;;
5667 # See if GNU ld supports shared libraries.
5669 aix3* | aix4* | aix5*)
5670 # On AIX/PPC, the GNU linker is very broken
5671 if test "$host_cpu" != ia64; then
5672 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5675 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5676 *** to be unable to reliably create shared libraries on AIX.
5677 *** Therefore, libtool is disabling shared libraries support. If you
5678 *** really care for shared libraries, you may want to modify your PATH
5679 *** so that a non-GNU linker is found, and then restart.
5686 _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)'
5687 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5688 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5690 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5691 # that the semantics of dynamic libraries on AmigaOS, at least up
5692 # to version 4, is to share data among multiple programs linked
5693 # with the same dynamic library. Since this doesn't match the
5694 # behavior of shared libraries on other platforms, we can't use
5696 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5700 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5701 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5702 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5703 # support --undefined. This deserves some investigation. FIXME
5704 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5706 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5710 cygwin* | mingw* | pw32*)
5711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5712 # as there is no search path for DLLs.
5713 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5714 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5715 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5716 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5717 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5719 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5720 _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'
5721 # If the export-symbols file already is a .def file (1st line
5722 # is EXPORTS), use it as is; otherwise, prepend...
5723 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5724 cp $export_symbols $output_objdir/$soname.def;
5726 echo EXPORTS > $output_objdir/$soname.def;
5727 cat $export_symbols >> $output_objdir/$soname.def;
5729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5731 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5736 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5737 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5738 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5739 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5740 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5741 # Instead, shared libraries are loaded at an image base (0x10000000 by
5742 # default) and relocated if they conflict, which is a slow very memory
5743 # consuming and fragmenting process. To avoid this, we pick a random,
5744 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5745 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5746 _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'
5747 _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'
5751 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5753 case $cc_basename,$host_cpu in
5754 pgcc*) # Portland Group C compiler
5755 _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'
5756 tmp_addflag=' $pic_flag'
5758 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5759 _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'
5760 tmp_addflag=' $pic_flag -Mnomain' ;;
5761 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5762 tmp_addflag=' -i_dynamic' ;;
5763 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5764 tmp_addflag=' -i_dynamic -nofor_main' ;;
5765 ifc* | ifort*) # Intel Fortran compiler
5766 tmp_addflag=' -nofor_main' ;;
5768 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5770 if test $supports_anon_versioning = yes; then
5771 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5772 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5773 $echo "local: *; };" >> $output_objdir/$libname.ver~
5774 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5777 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5783 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5786 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5787 _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'
5792 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5793 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5796 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5797 *** create shared libraries on Solaris systems. Therefore, libtool
5798 *** is disabling shared libraries support. We urge you to upgrade GNU
5799 *** binutils to release 2.9.1 or newer. Another option is to modify
5800 *** your PATH or compiler configuration so that the native linker is
5801 *** used, and then restart.
5804 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5805 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5806 _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'
5808 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5813 case `$LD -v 2>&1` in
5814 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5815 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5818 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5819 *** reliably create shared libraries on SCO systems. Therefore, libtool
5820 *** is disabling shared libraries support. We urge you to upgrade GNU
5821 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5822 *** your PATH or compiler configuration so that the native linker is
5823 *** used, and then restart.
5828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5829 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5830 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5831 _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'
5833 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5840 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5842 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5843 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5847 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5848 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5849 _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'
5851 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5856 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5858 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5859 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5860 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5863 # PORTME fill in a description of your system's linker (not GNU ld)
5866 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5867 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5868 _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'
5869 # Note: this linker hardcodes the directories in LIBPATH if there
5870 # are no directories specified by -L.
5871 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5872 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5873 # Neither direct hardcoding nor static linking is supported with a
5875 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5880 if test "$host_cpu" = ia64; then
5881 # On IA64, the linker does run time linking by default, so we don't
5882 # have to do anything special.
5883 aix_use_runtimelinking=no
5884 exp_sym_flag='-Bexport'
5887 # If we're using GNU nm, then we don't want the "-C" option.
5888 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5889 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5890 _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'
5892 _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'
5894 aix_use_runtimelinking=no
5896 # Test if we are trying to use run time linking or normal
5897 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5898 # need to do runtime linking.
5899 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5900 for ld_flag in $LDFLAGS; do
5901 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5902 aix_use_runtimelinking=yes
5909 exp_sym_flag='-bexport'
5910 no_entry_flag='-bnoentry'
5913 # When large executables or shared objects are built, AIX ld can
5914 # have problems creating the table of contents. If linking a library
5915 # or program results in "error TOC overflow" add -mminimal-toc to
5916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5919 _LT_AC_TAGVAR(archive_cmds, $1)=''
5920 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5921 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5922 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5924 if test "$GCC" = yes; then
5925 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5926 # We only want to do this on AIX 4.2 and lower, the check
5927 # below for broken collect2 doesn't work under 4.3+
5928 collect2name=`${CC} -print-prog-name=collect2`
5929 if test -f "$collect2name" && \
5930 strings "$collect2name" | grep resolve_lib_name >/dev/null
5932 # We have reworked collect2
5933 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5935 # We have old collect2
5936 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5937 # It fails to find uninstalled libraries when the uninstalled
5938 # path is not listed in the libpath. Setting hardcode_minus_L
5939 # to unsupported forces relinking
5940 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5941 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5942 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5946 shared_flag='-shared'
5947 if test "$aix_use_runtimelinking" = yes; then
5948 shared_flag="$shared_flag "'${wl}-G'
5952 if test "$host_cpu" = ia64; then
5953 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5954 # chokes on -Wl,-G. The following line is correct:
5957 if test "$aix_use_runtimelinking" = yes; then
5958 shared_flag='${wl}-G'
5960 shared_flag='${wl}-bM:SRE'
5965 # It seems that -bexpall does not export symbols beginning with
5966 # underscore (_), so it is better to generate a list of symbols to export.
5967 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5968 if test "$aix_use_runtimelinking" = yes; then
5969 # Warning - without using the other runtime loading flags (-brtl),
5970 # -berok will link without error, but may produce a broken library.
5971 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5972 # Determine the default libpath from the value encoded in an empty executable.
5973 _LT_AC_SYS_LIBPATH_AIX
5974 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5975 _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"
5977 if test "$host_cpu" = ia64; then
5978 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5979 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5980 _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"
5982 # Determine the default libpath from the value encoded in an empty executable.
5983 _LT_AC_SYS_LIBPATH_AIX
5984 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5985 # Warning - without using the other run time loading flags,
5986 # -berok will link without error, but may produce a broken library.
5987 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5988 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5989 # Exported symbols can be pulled into shared objects from archives
5990 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5991 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5992 # This is similar to how AIX traditionally builds its shared libraries.
5993 _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'
5999 _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)'
6000 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6001 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6002 # see comment about different semantics on the GNU ld section
6003 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6007 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6010 cygwin* | mingw* | pw32*)
6011 # When not using gcc, we currently assume that we are using
6012 # Microsoft Visual C++.
6013 # hardcode_libdir_flag_spec is actually meaningless, as there is
6014 # no search path for DLLs.
6015 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6016 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6017 # Tell ltmain to make .lib files, not .a files.
6019 # Tell ltmain to make .dll files, not .so files.
6021 # FIXME: Setting linknames here is a bad hack.
6022 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6023 # The linker will automatically build a .lib file if we build a DLL.
6024 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6025 # FIXME: Should let the user specify the lib program.
6026 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
6027 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6028 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6031 darwin* | rhapsody*)
6033 rhapsody* | darwin1.[[012]])
6034 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6037 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6038 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6040 case ${MACOSX_DEPLOYMENT_TARGET} in
6042 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6045 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6051 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6052 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6053 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6054 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6055 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6056 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6057 if test "$GCC" = yes ; then
6058 output_verbose_link_cmd='echo'
6059 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
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 -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~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}'
6065 case $cc_basename in
6067 output_verbose_link_cmd='echo'
6068 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6069 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6071 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6072 _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}'
6075 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6082 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6083 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6084 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6088 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6091 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6092 # support. Future versions do this automatically, but an explicit c++rt0.o
6093 # does not break anything, and helps significantly (at the cost of a little
6096 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6097 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6098 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6099 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6102 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6104 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6105 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6106 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6107 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6110 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6111 freebsd* | kfreebsd*-gnu | dragonfly*)
6112 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6113 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6114 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6115 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6119 if test "$GCC" = yes; then
6120 _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'
6122 _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'
6124 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6125 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6126 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6128 # hardcode_minus_L: Not really in the search PATH,
6129 # but as the default location of the library.
6130 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6131 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6135 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6136 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6138 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6140 if test "$with_gnu_ld" = no; then
6141 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6142 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6144 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6145 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6147 # hardcode_minus_L: Not really in the search PATH,
6148 # but as the default location of the library.
6149 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6154 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6157 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6160 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6163 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6169 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6172 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6175 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6179 if test "$with_gnu_ld" = no; then
6180 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6181 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6185 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6186 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6187 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6190 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6191 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6193 # hardcode_minus_L: Not really in the search PATH,
6194 # but as the default location of the library.
6195 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6201 irix5* | irix6* | nonstopux*)
6202 if test "$GCC" = yes; then
6203 _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'
6205 _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'
6206 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6208 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6209 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6210 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6214 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6215 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6217 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6219 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6220 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6221 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6225 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6226 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6227 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6228 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6229 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6233 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6234 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6235 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6236 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6237 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6238 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6239 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6242 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6243 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6244 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6247 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6248 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6255 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6256 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6257 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6258 _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'
6259 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6263 if test "$GCC" = yes; then
6264 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6265 _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'
6267 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6268 _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'
6270 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6271 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6274 osf4* | osf5*) # as osf3* with the addition of -msym flag
6275 if test "$GCC" = yes; then
6276 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6277 _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'
6278 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6280 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6281 _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'
6282 _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~
6283 $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'
6285 # Both c and cxx compiler support -rpath directly
6286 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6288 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6292 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6293 if test "$GCC" = yes; then
6295 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_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 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6300 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6301 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6302 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6304 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6305 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6307 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6309 # The compiler driver will combine linker options so we
6310 # cannot just pass the convience library names through
6311 # without $wl, iff we do not link with $LD.
6312 # Luckily, gcc supports the same syntax we need for Sun Studio.
6313 # Supported since Solaris 2.6 (maybe 2.5.1?)
6316 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6318 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
6321 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6325 if test "x$host_vendor" = xsequent; then
6326 # Use $CC to link under sequent, because it throws in some extra .o
6327 # files that make .init and .fini sections work.
6328 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6330 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6332 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6333 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6334 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6335 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6339 case $host_vendor in
6341 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6342 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6345 ## LD is ld it makes a PLAMLIB
6346 ## CC just makes a GrossModule.
6347 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6348 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6349 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6352 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6353 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6356 runpath_var='LD_RUN_PATH'
6357 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6361 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6362 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6363 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6367 if test -d /usr/nec; then
6368 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6369 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6370 runpath_var=LD_RUN_PATH
6371 hardcode_runpath_var=yes
6372 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6376 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6377 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6378 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6379 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6380 runpath_var='LD_RUN_PATH'
6382 if test "$GCC" = yes; then
6383 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6384 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6386 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6387 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6391 sysv5* | sco3.2v5* | sco5v6*)
6392 # Note: We can NOT use -z defs as we might desire, because we do not
6393 # link with -lc, and that would cause any symbols used from libc to
6394 # always be unresolved, which means just about no library would
6395 # ever link correctly. If we're not using GNU ld we use -z text
6396 # though, which does catch some bad symbols but isn't as heavy-handed
6398 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6399 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6400 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6401 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6402 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6403 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6404 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6405 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6406 runpath_var='LD_RUN_PATH'
6408 if test "$GCC" = yes; then
6409 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6410 _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'
6412 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6413 _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'
6418 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6419 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6420 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6424 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6429 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6430 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6433 # Do we need to explicitly link libc?
6435 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6437 # Assume -lc should be added
6438 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6440 if test "$enable_shared" = yes && test "$GCC" = yes; then
6441 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6443 # FIXME: we may have to deal with multi-command sequences.
6446 # Test whether the compiler implicitly links with -lc since on some
6447 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6448 # to ld, don't add -lc before -lgcc.
6449 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6451 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6453 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6456 libobjs=conftest.$ac_objext
6458 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6459 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6465 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6466 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6467 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6469 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6471 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6473 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6475 cat conftest.err 1>&5
6478 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6484 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6487 # _LT_AC_FILE_LTDLL_C
6488 # -------------------
6489 # Be careful that the start marker always follows a newline.
6490 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6491 # /* ltdll.c starts here */
6492 # #define WIN32_LEAN_AND_MEAN
6493 # #include <windows.h>
6494 # #undef WIN32_LEAN_AND_MEAN
6495 # #include <stdio.h>
6497 # #ifndef __CYGWIN__
6498 # # ifdef __CYGWIN32__
6499 # # define __CYGWIN__ __CYGWIN32__
6503 # #ifdef __cplusplus
6506 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6507 # #ifdef __cplusplus
6512 # #include <cygwin/cygwin_dll.h>
6513 # DECLARE_CYGWIN_DLL( DllMain );
6515 # HINSTANCE __hDllInstance_base;
6518 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6520 # __hDllInstance_base = hInst;
6523 # /* ltdll.c ends here */
6524 ])# _LT_AC_FILE_LTDLL_C
6527 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6528 # ---------------------------------
6529 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6533 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6534 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6535 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6536 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6537 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6538 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6539 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6541 # This is just to silence aclocal about the macro not being used
6542 ifelse([AC_DISABLE_FAST_INSTALL])
6544 AC_DEFUN([LT_AC_PROG_GCJ],
6545 [AC_CHECK_TOOL(GCJ, gcj, no)
6546 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6550 AC_DEFUN([LT_AC_PROG_RC],
6551 [AC_CHECK_TOOL(RC, windres, no)
6554 # NOTE: This macro has been submitted for inclusion into #
6555 # GNU Autoconf as AC_PROG_SED. When it is available in #
6556 # a released version of Autoconf we should remove this #
6557 # macro and use it instead. #
6560 # Check for a fully-functional sed program, that truncates
6561 # as few characters as possible. Prefer GNU sed if found.
6562 AC_DEFUN([LT_AC_PROG_SED],
6563 [AC_MSG_CHECKING([for a sed that does not truncate output])
6564 AC_CACHE_VAL(lt_cv_path_SED,
6565 [# Loop through the user's path and test for sed and gsed.
6566 # Then use that list of sed's as ones to test for truncation.
6567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571 test -z "$as_dir" && as_dir=.
6572 for lt_ac_prog in sed gsed; do
6573 for ac_exec_ext in '' $ac_executable_extensions; do
6574 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6575 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6582 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6583 # along with /bin/sed that truncates output.
6584 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6585 test ! -f $lt_ac_sed && continue
6586 cat /dev/null > conftest.in
6588 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6589 # Check for GNU sed and select it if it is found.
6590 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6591 lt_cv_path_SED=$lt_ac_sed
6595 cat conftest.in conftest.in >conftest.tmp
6596 mv conftest.tmp conftest.in
6597 cp conftest.in conftest.nl
6599 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6600 cmp -s conftest.out conftest.nl || break
6601 # 10000 chars as input seems more than enough
6602 test $lt_ac_count -gt 10 && break
6603 lt_ac_count=`expr $lt_ac_count + 1`
6604 if test $lt_ac_count -gt $lt_ac_max; then
6605 lt_ac_max=$lt_ac_count
6606 lt_cv_path_SED=$lt_ac_sed
6612 AC_MSG_RESULT([$SED])
6618 AC_DEFUN([mfx_CHECK_HEADER_SANE_LIMITS_H], [
6619 AC_CACHE_CHECK([whether limits.h is sane],
6620 mfx_cv_header_sane_limits_h,
6621 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <limits.h>
6622 #if (32767 >= 4294967295ul) || (65535u >= 4294967295ul)
6623 # if defined(__APPLE__) && defined(__GNUC__)
6624 # error "your preprocessor is broken - use compiler option -no-cpp-precomp"
6626 # include "your preprocessor is broken"
6629 #define MFX_0xffff 0xffff
6630 #define MFX_0xffffffffL 4294967295ul
6631 #if !defined(CHAR_BIT) || (CHAR_BIT != 8)
6632 # include "error CHAR_BIT"
6634 #if !defined(UCHAR_MAX)
6635 # include "error UCHAR_MAX 1"
6637 #if !defined(USHRT_MAX)
6638 # include "error USHRT_MAX 1"
6640 #if !defined(UINT_MAX)
6641 # include "error UINT_MAX 1"
6643 #if !defined(ULONG_MAX)
6644 # include "error ULONG_MAX 1"
6646 #if !defined(SHRT_MAX)
6647 # include "error SHRT_MAX 1"
6649 #if !defined(INT_MAX)
6650 # include "error INT_MAX 1"
6652 #if !defined(LONG_MAX)
6653 # include "error LONG_MAX 1"
6656 # include "error UCHAR_MAX 2"
6659 # include "error USHRT_MAX 2"
6662 # include "error UINT_MAX 2"
6665 # include "error ULONG_MAX 2"
6667 #if (UCHAR_MAX < 0xff)
6668 # include "error UCHAR_MAX 3"
6670 #if (USHRT_MAX < MFX_0xffff)
6671 # include "error USHRT_MAX 3"
6673 #if (UINT_MAX < MFX_0xffff)
6674 # include "error UINT_MAX 3"
6676 #if (ULONG_MAX < MFX_0xffffffffL)
6677 # include "error ULONG_MAX 3"
6679 #if (USHRT_MAX > UINT_MAX)
6680 # include "error USHRT_MAX vs UINT_MAX"
6682 #if (UINT_MAX > ULONG_MAX)
6683 # include "error UINT_MAX vs ULONG_MAX"
6686 #if (USHRT_MAX == MFX_0xffff)
6687 { typedef char a_short2a[1 - 2 * !(sizeof(short) == 2)]; }
6688 #elif (USHRT_MAX >= MFX_0xffff)
6689 { typedef char a_short2b[1 - 2 * !(sizeof(short) > 2)]; }
6691 #if (UINT_MAX == MFX_0xffff)
6692 { typedef char a_int2a[1 - 2 * !(sizeof(int) == 2)]; }
6693 #elif (UINT_MAX >= MFX_0xffff)
6694 { typedef char a_int2b[1 - 2 * !(sizeof(int) > 2)]; }
6696 #if (ULONG_MAX == MFX_0xffff)
6697 { typedef char a_long2a[1 - 2 * !(sizeof(long) == 2)]; }
6698 #elif (ULONG_MAX >= MFX_0xffff)
6699 { typedef char a_long2b[1 - 2 * !(sizeof(long) > 2)]; }
6701 #if !defined(_CRAY1) /* CRAY PVP systems */
6702 #if (USHRT_MAX == MFX_0xffffffffL)
6703 { typedef char a_short4a[1 - 2 * !(sizeof(short) == 4)]; }
6704 #elif (USHRT_MAX >= MFX_0xffffffffL)
6705 { typedef char a_short4b[1 - 2 * !(sizeof(short) > 4)]; }
6708 #if (UINT_MAX == MFX_0xffffffffL)
6709 { typedef char a_int4a[1 - 2 * !(sizeof(int) == 4)]; }
6710 #elif (UINT_MAX >= MFX_0xffffffffL)
6711 { typedef char a_int4b[1 - 2 * !(sizeof(int) > 4)]; }
6713 #if (ULONG_MAX == MFX_0xffffffffL)
6714 { typedef char a_long4a[1 - 2 * !(sizeof(long) == 4)]; }
6715 #elif (ULONG_MAX >= MFX_0xffffffffL)
6716 { typedef char a_long4b[1 - 2 * !(sizeof(long) > 4)]; }
6719 [mfx_cv_header_sane_limits_h=yes],
6720 [mfx_cv_header_sane_limits_h=no])])
6723 # /***********************************************************************
6725 # ************************************************************************/
6727 AC_DEFUN([mfx_LZO_CHECK_ENDIAN], [
6728 AC_C_BIGENDIAN([AC_DEFINE(LZO_ABI_BIG_ENDIAN,1,[Define to 1 if your machine is big endian.])],[AC_DEFINE(LZO_ABI_LITTLE_ENDIAN,1,[Define to 1 if your machine is little endian.])])
6732 # /***********************************************************************
6734 # ************************************************************************/
6736 dnl more types which are not yet covered by ACC
6738 AC_DEFUN([mfx_CHECK_SIZEOF], [
6739 AC_CHECK_SIZEOF(__int32)
6740 AC_CHECK_SIZEOF(intmax_t)
6741 AC_CHECK_SIZEOF(uintmax_t)
6742 AC_CHECK_SIZEOF(intptr_t)
6743 AC_CHECK_SIZEOF(uintptr_t)
6745 AC_CHECK_SIZEOF(float)
6746 AC_CHECK_SIZEOF(double)
6747 AC_CHECK_SIZEOF(long double)
6749 AC_CHECK_SIZEOF(dev_t)
6750 AC_CHECK_SIZEOF(fpos_t)
6751 AC_CHECK_SIZEOF(mode_t)
6752 AC_CHECK_SIZEOF(off_t)
6753 AC_CHECK_SIZEOF(ssize_t)
6754 AC_CHECK_SIZEOF(time_t)
6759 AC_DEFUN([mfx_CHECK_LIB_WINMM], [
6760 if test "X$GCC" = Xyes; then
6762 cygwin* | mingw* | pw32*)
6763 test "X$LIBS" != "X" && LIBS="$LIBS "
6764 LIBS="${LIBS}-lwinmm" ;;
6772 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6774 # This file is free software; the Free Software Foundation
6775 # gives unlimited permission to copy and/or distribute it,
6776 # with or without modifications, as long as this notice is preserved.
6778 # AM_AUTOMAKE_VERSION(VERSION)
6779 # ----------------------------
6780 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6781 # generated from the m4 files accompanying Automake X.Y.
6782 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6784 # AM_SET_CURRENT_AUTOMAKE_VERSION
6785 # -------------------------------
6786 # Call AM_AUTOMAKE_VERSION so it can be traced.
6787 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6788 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6789 [AM_AUTOMAKE_VERSION([1.9.6])])
6791 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6793 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6795 # This file is free software; the Free Software Foundation
6796 # gives unlimited permission to copy and/or distribute it,
6797 # with or without modifications, as long as this notice is preserved.
6799 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6800 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6801 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6803 # Of course, Automake must honor this variable whenever it calls a
6804 # tool from the auxiliary directory. The problem is that $srcdir (and
6805 # therefore $ac_aux_dir as well) can be either absolute or relative,
6806 # depending on how configure is run. This is pretty annoying, since
6807 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6808 # source directory, any form will work fine, but in subdirectories a
6809 # relative path needs to be adjusted first.
6811 # $ac_aux_dir/missing
6812 # fails when called from a subdirectory if $ac_aux_dir is relative
6813 # $top_srcdir/$ac_aux_dir/missing
6814 # fails if $ac_aux_dir is absolute,
6815 # fails when called from a subdirectory in a VPATH build with
6816 # a relative $ac_aux_dir
6818 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6819 # are both prefixed by $srcdir. In an in-source build this is usually
6820 # harmless because $srcdir is `.', but things will broke when you
6821 # start a VPATH build or use an absolute $srcdir.
6823 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6824 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6825 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6826 # and then we would define $MISSING as
6827 # MISSING="\${SHELL} $am_aux_dir/missing"
6828 # This will work as long as MISSING is not called from configure, because
6829 # unfortunately $(top_srcdir) has no meaning in configure.
6830 # However there are other variables, like CC, which are often used in
6831 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6833 # Another solution, used here, is to always expand $ac_aux_dir to an
6834 # absolute PATH. The drawback is that using absolute paths prevent a
6835 # configured tree to be moved without reconfiguration.
6837 AC_DEFUN([AM_AUX_DIR_EXPAND],
6838 [dnl Rely on autoconf to set up CDPATH properly.
6839 AC_PREREQ([2.50])dnl
6840 # expand $ac_aux_dir to an absolute path
6841 am_aux_dir=`cd $ac_aux_dir && pwd`
6844 # AM_CONDITIONAL -*- Autoconf -*-
6846 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6847 # Free Software Foundation, Inc.
6849 # This file is free software; the Free Software Foundation
6850 # gives unlimited permission to copy and/or distribute it,
6851 # with or without modifications, as long as this notice is preserved.
6855 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6856 # -------------------------------------
6857 # Define a conditional.
6858 AC_DEFUN([AM_CONDITIONAL],
6860 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6861 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6863 AC_SUBST([$1_FALSE])
6871 AC_CONFIG_COMMANDS_PRE(
6872 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6873 AC_MSG_ERROR([[conditional "$1" was never defined.
6874 Usually this means the macro was only invoked conditionally.]])
6878 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6879 # Free Software Foundation, Inc.
6881 # This file is free software; the Free Software Foundation
6882 # gives unlimited permission to copy and/or distribute it,
6883 # with or without modifications, as long as this notice is preserved.
6887 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6888 # written in clear, in which case automake, when reading aclocal.m4,
6889 # will think it sees a *use*, and therefore will trigger all it's
6890 # C support machinery. Also note that it means that autoscan, seeing
6891 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6894 # _AM_DEPENDENCIES(NAME)
6895 # ----------------------
6896 # See how the compiler implements dependency checking.
6897 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6898 # We try a few techniques and use that to set a single cache variable.
6900 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6901 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6902 # dependency, and given that the user is not expected to run this macro,
6903 # just rely on AC_PROG_CC.
6904 AC_DEFUN([_AM_DEPENDENCIES],
6905 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6906 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6907 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6908 AC_REQUIRE([AM_DEP_TRACK])dnl
6910 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6911 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6912 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6913 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6914 [depcc="$$1" am_compiler_list=])
6916 AC_CACHE_CHECK([dependency style of $depcc],
6917 [am_cv_$1_dependencies_compiler_type],
6918 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6919 # We make a subdir and do the tests there. Otherwise we can end up
6920 # making bogus files that we don't know about and never remove. For
6921 # instance it was reported that on HP-UX the gcc test will end up
6922 # making a dummy file named `D' -- because `-MD' means `put the output
6925 # Copy depcomp to subdir because otherwise we won't find it if we're
6926 # using a relative directory.
6927 cp "$am_depcomp" conftest.dir
6929 # We will build objects and dependencies in a subdirectory because
6930 # it helps to detect inapplicable dependency modes. For instance
6931 # both Tru64's cc and ICC support -MD to output dependencies as a
6932 # side effect of compilation, but ICC will put the dependencies in
6933 # the current directory while Tru64 will put them in the object
6937 am_cv_$1_dependencies_compiler_type=none
6938 if test "$am_compiler_list" = ""; then
6939 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6941 for depmode in $am_compiler_list; do
6942 # Setup a source with many dependencies, because some compilers
6943 # like to wrap large dependency lists on column 80 (with \), and
6944 # we should not choose a depcomp mode which is confused by this.
6946 # We need to recreate these files for each test, as the compiler may
6947 # overwrite some of them when testing with obscure command lines.
6948 # This happens at least with the AIX C compiler.
6950 for i in 1 2 3 4 5 6; do
6951 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6952 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6953 # Solaris 8's {/usr,}/bin/sh.
6954 touch sub/conftst$i.h
6956 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6960 # after this tag, mechanisms are not by side-effect, so they'll
6961 # only be used when explicitly requested
6962 if test "x$enable_dependency_tracking" = xyes; then
6970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6971 # mode. It turns out that the SunPro C++ compiler does not properly
6972 # handle `-M -o', and we need to detect this.
6973 if depmode=$depmode \
6974 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6975 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6976 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6977 >/dev/null 2>conftest.err &&
6978 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6979 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6980 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6981 # icc doesn't choke on unknown options, it will just issue warnings
6982 # or remarks (even with -Werror). So we grep stderr for any message
6983 # that says an option was ignored or not supported.
6984 # When given -MP, icc 7.0 and 7.1 complain thusly:
6985 # icc: Command line warning: ignoring option '-M'; no argument required
6986 # The diagnosis changed in icc 8.0:
6987 # icc: Command line remark: option '-MP' not supported
6988 if (grep 'ignoring option' conftest.err ||
6989 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6990 am_cv_$1_dependencies_compiler_type=$depmode
6999 am_cv_$1_dependencies_compiler_type=none
7002 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7003 AM_CONDITIONAL([am__fastdep$1], [
7004 test "x$enable_dependency_tracking" != xno \
7005 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7011 # Choose a directory name for dependency files.
7012 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
7013 AC_DEFUN([AM_SET_DEPDIR],
7014 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7015 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7021 AC_DEFUN([AM_DEP_TRACK],
7022 [AC_ARG_ENABLE(dependency-tracking,
7023 [ --disable-dependency-tracking speeds up one-time build
7024 --enable-dependency-tracking do not reject slow dependency extractors])
7025 if test "x$enable_dependency_tracking" != xno; then
7026 am_depcomp="$ac_aux_dir/depcomp"
7029 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7030 AC_SUBST([AMDEPBACKSLASH])
7033 # Generate code to set up dependency tracking. -*- Autoconf -*-
7035 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7036 # Free Software Foundation, Inc.
7038 # This file is free software; the Free Software Foundation
7039 # gives unlimited permission to copy and/or distribute it,
7040 # with or without modifications, as long as this notice is preserved.
7044 # _AM_OUTPUT_DEPENDENCY_COMMANDS
7045 # ------------------------------
7046 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7047 [for mf in $CONFIG_FILES; do
7048 # Strip MF so we end up with the name of the file.
7049 mf=`echo "$mf" | sed -e 's/:.*$//'`
7050 # Check whether this is an Automake generated Makefile or not.
7051 # We used to match only the files named `Makefile.in', but
7052 # some people rename them; so instead we look at the file content.
7053 # Grep'ing the first line is not enough: some people post-process
7054 # each Makefile.in and add a new line on top of each file to say so.
7055 # So let's grep whole file.
7056 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
7057 dirpart=`AS_DIRNAME("$mf")`
7061 # Extract the definition of DEPDIR, am__include, and am__quote
7062 # from the Makefile without running `make'.
7063 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7064 test -z "$DEPDIR" && continue
7065 am__include=`sed -n 's/^am__include = //p' < "$mf"`
7066 test -z "am__include" && continue
7067 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7068 # When using ansi2knr, U may be empty or an underscore; expand it
7069 U=`sed -n 's/^U = //p' < "$mf"`
7070 # Find all dependency output files, they are included files with
7071 # $(DEPDIR) in their names. We invoke sed twice because it is the
7072 # simplest approach to changing $(DEPDIR) to its actual value in the
7074 for file in `sed -n "
7075 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7076 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7077 # Make sure the directory exists.
7078 test -f "$dirpart/$file" && continue
7079 fdir=`AS_DIRNAME(["$file"])`
7080 AS_MKDIR_P([$dirpart/$fdir])
7081 # echo "creating $dirpart/$file"
7082 echo '# dummy' > "$dirpart/$file"
7085 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7088 # AM_OUTPUT_DEPENDENCY_COMMANDS
7089 # -----------------------------
7090 # This macro should only be invoked once -- use via AC_REQUIRE.
7092 # This code is only required when automatic dependency tracking
7093 # is enabled. FIXME. This creates each `.P' file that we will
7094 # need in order to bootstrap the dependency handling code.
7095 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7096 [AC_CONFIG_COMMANDS([depfiles],
7097 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7098 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7101 # Do all the work for Automake. -*- Autoconf -*-
7103 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
7104 # 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 # This macro actually does too much. Some checks are only needed if
7113 # your package does certain things. But this isn't really a big deal.
7115 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7116 # AM_INIT_AUTOMAKE([OPTIONS])
7117 # -----------------------------------------------
7118 # The call with PACKAGE and VERSION arguments is the old style
7119 # call (pre autoconf-2.50), which is being phased out. PACKAGE
7120 # and VERSION should now be passed to AC_INIT and removed from
7121 # the call to AM_INIT_AUTOMAKE.
7122 # We support both call styles for the transition. After
7123 # the next Automake release, Autoconf can make the AC_INIT
7124 # arguments mandatory, and then we can depend on a new Autoconf
7125 # release and drop the old call support.
7126 AC_DEFUN([AM_INIT_AUTOMAKE],
7127 [AC_PREREQ([2.58])dnl
7128 dnl Autoconf wants to disallow AM_ names. We explicitly allow
7129 dnl the ones we care about.
7130 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7131 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7132 AC_REQUIRE([AC_PROG_INSTALL])dnl
7133 # test to see if srcdir already configured
7134 if test "`cd $srcdir && pwd`" != "`pwd`" &&
7135 test -f $srcdir/config.status; then
7136 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7139 # test whether we have cygpath
7140 if test -z "$CYGPATH_W"; then
7141 if (cygpath --version) >/dev/null 2>/dev/null; then
7142 CYGPATH_W='cygpath -w'
7147 AC_SUBST([CYGPATH_W])
7149 # Define the identity of the package.
7150 dnl Distinguish between old-style and new-style calls.
7152 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7153 AC_SUBST([PACKAGE], [$1])dnl
7154 AC_SUBST([VERSION], [$2])],
7155 [_AM_SET_OPTIONS([$1])dnl
7156 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7157 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7159 _AM_IF_OPTION([no-define],,
7160 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7161 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7163 # Some tools Automake needs.
7164 AC_REQUIRE([AM_SANITY_CHECK])dnl
7165 AC_REQUIRE([AC_ARG_PROGRAM])dnl
7166 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7167 AM_MISSING_PROG(AUTOCONF, autoconf)
7168 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7169 AM_MISSING_PROG(AUTOHEADER, autoheader)
7170 AM_MISSING_PROG(MAKEINFO, makeinfo)
7172 AM_PROG_INSTALL_STRIP
7173 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7174 # We need awk for the "check" target. The system "awk" is bad on
7176 AC_REQUIRE([AC_PROG_AWK])dnl
7177 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7178 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7179 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7180 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7181 [_AM_PROG_TAR([v7])])])
7182 _AM_IF_OPTION([no-dependencies],,
7183 [AC_PROVIDE_IFELSE([AC_PROG_CC],
7184 [_AM_DEPENDENCIES(CC)],
7185 [define([AC_PROG_CC],
7186 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7187 AC_PROVIDE_IFELSE([AC_PROG_CXX],
7188 [_AM_DEPENDENCIES(CXX)],
7189 [define([AC_PROG_CXX],
7190 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7195 # When config.status generates a header, we must update the stamp-h file.
7196 # This file resides in the same directory as the config header
7197 # that is generated. The stamp files are numbered to have different names.
7199 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7200 # loop where config.status creates the headers, so we can generate
7201 # our stamp files there.
7202 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7203 [# Compute $1's index in $config_headers.
7205 for _am_header in $config_headers :; do
7210 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
7213 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7215 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7217 # This file is free software; the Free Software Foundation
7218 # gives unlimited permission to copy and/or distribute it,
7219 # with or without modifications, as long as this notice is preserved.
7221 # AM_PROG_INSTALL_SH
7222 # ------------------
7223 # Define $install_sh.
7224 AC_DEFUN([AM_PROG_INSTALL_SH],
7225 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7226 install_sh=${install_sh-"$am_aux_dir/install-sh"}
7227 AC_SUBST(install_sh)])
7229 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7231 # This file is free software; the Free Software Foundation
7232 # gives unlimited permission to copy and/or distribute it,
7233 # with or without modifications, as long as this notice is preserved.
7237 # Check whether the underlying file-system supports filenames
7238 # with a leading dot. For instance MS-DOS doesn't.
7239 AC_DEFUN([AM_SET_LEADING_DOT],
7240 [rm -rf .tst 2>/dev/null
7241 mkdir .tst 2>/dev/null
7242 if test -d .tst; then
7247 rmdir .tst 2>/dev/null
7248 AC_SUBST([am__leading_dot])])
7250 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7253 # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7254 # Free Software Foundation, Inc.
7256 # This file is free software; the Free Software Foundation
7257 # gives unlimited permission to copy and/or distribute it,
7258 # with or without modifications, as long as this notice is preserved.
7262 AC_DEFUN([AM_MAINTAINER_MODE],
7263 [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7264 dnl maintainer-mode is disabled by default
7265 AC_ARG_ENABLE(maintainer-mode,
7266 [ --enable-maintainer-mode enable make rules and dependencies not useful
7267 (and sometimes confusing) to the casual installer],
7268 USE_MAINTAINER_MODE=$enableval,
7269 USE_MAINTAINER_MODE=no)
7270 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7271 AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7272 MAINT=$MAINTAINER_MODE_TRUE
7277 AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7279 # Check to see how 'make' treats includes. -*- Autoconf -*-
7281 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7283 # This file is free software; the Free Software Foundation
7284 # gives unlimited permission to copy and/or distribute it,
7285 # with or without modifications, as long as this notice is preserved.
7291 # Check to see how make treats includes.
7292 AC_DEFUN([AM_MAKE_INCLUDE],
7293 [am_make=${MAKE-make}
7294 cat > confinc << 'END'
7299 # If we don't find an include directive, just comment out the code.
7300 AC_MSG_CHECKING([for style of include used by $am_make])
7304 # First try GNU make style include.
7305 echo "include confinc" > confmf
7306 # We grep out `Entering directory' and `Leaving directory'
7307 # messages which can occur if `w' ends up in MAKEFLAGS.
7308 # In particular we don't look at `^make:' because GNU make might
7309 # be invoked under some other name (usually "gmake"), in which
7310 # case it prints its new name instead of `make'.
7311 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
7316 # Now try BSD make style include.
7317 if test "$am__include" = "#"; then
7318 echo '.include "confinc"' > confmf
7319 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
7320 am__include=.include
7325 AC_SUBST([am__include])
7326 AC_SUBST([am__quote])
7327 AC_MSG_RESULT([$_am_result])
7328 rm -f confinc confmf
7331 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7333 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
7334 # Free Software Foundation, Inc.
7336 # This file is free software; the Free Software Foundation
7337 # gives unlimited permission to copy and/or distribute it,
7338 # with or without modifications, as long as this notice is preserved.
7342 # AM_MISSING_PROG(NAME, PROGRAM)
7343 # ------------------------------
7344 AC_DEFUN([AM_MISSING_PROG],
7345 [AC_REQUIRE([AM_MISSING_HAS_RUN])
7346 $1=${$1-"${am_missing_run}$2"}
7350 # AM_MISSING_HAS_RUN
7351 # ------------------
7352 # Define MISSING if not defined so far and test if it supports --run.
7353 # If it does, set am_missing_run to use it, otherwise, to nothing.
7354 AC_DEFUN([AM_MISSING_HAS_RUN],
7355 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7356 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
7357 # Use eval to expand $SHELL
7358 if eval "$MISSING --run true"; then
7359 am_missing_run="$MISSING --run "
7362 AC_MSG_WARN([`missing' script is too old or missing])
7366 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
7368 # This file is free software; the Free Software Foundation
7369 # gives unlimited permission to copy and/or distribute it,
7370 # with or without modifications, as long as this notice is preserved.
7374 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
7376 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
7377 # created by `make install' are always world readable, even if the
7378 # installer happens to have an overly restrictive umask (e.g. 077).
7379 # This was a mistake. There are at least two reasons why we must not
7381 # - it causes special bits like SGID to be ignored,
7382 # - it may be too restrictive (some setups expect 775 directories).
7384 # Do not use -m 0755 and let people choose whatever they expect by
7387 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7388 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7389 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7390 # concurrently, both version can detect that a/ is missing, but only
7391 # one can create it and the other will error out. Consequently we
7392 # restrict ourselves to GNU make (using the --version option ensures
7394 AC_DEFUN([AM_PROG_MKDIR_P],
7395 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7396 # We used to keeping the `.' as first argument, in order to
7397 # allow $(mkdir_p) to be used without argument. As in
7398 # $(mkdir_p) $(somedir)
7399 # where $(somedir) is conditionally defined. However this is wrong
7401 # 1. if the package is installed by a user who cannot write `.'
7402 # make install will fail,
7403 # 2. the above comment should most certainly read
7404 # $(mkdir_p) $(DESTDIR)$(somedir)
7405 # so it does not work when $(somedir) is undefined and
7406 # $(DESTDIR) is not.
7407 # To support the latter case, we have to write
7408 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7409 # so the `.' trick is pointless.
7410 mkdir_p='mkdir -p --'
7412 # On NextStep and OpenStep, the `mkdir' command does not
7413 # recognize any option. It will interpret all options as
7414 # directories to create, and then abort because `.' already
7416 for d in ./-p ./--version;
7418 test -d $d && rmdir $d
7420 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7421 if test -f "$ac_aux_dir/mkinstalldirs"; then
7422 mkdir_p='$(mkinstalldirs)'
7424 mkdir_p='$(install_sh) -d'
7427 AC_SUBST([mkdir_p])])
7429 # Helper functions for option handling. -*- Autoconf -*-
7431 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7433 # This file is free software; the Free Software Foundation
7434 # gives unlimited permission to copy and/or distribute it,
7435 # with or without modifications, as long as this notice is preserved.
7439 # _AM_MANGLE_OPTION(NAME)
7440 # -----------------------
7441 AC_DEFUN([_AM_MANGLE_OPTION],
7442 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7444 # _AM_SET_OPTION(NAME)
7445 # ------------------------------
7446 # Set option NAME. Presently that only means defining a flag for this option.
7447 AC_DEFUN([_AM_SET_OPTION],
7448 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7450 # _AM_SET_OPTIONS(OPTIONS)
7451 # ----------------------------------
7452 # OPTIONS is a space-separated list of Automake options.
7453 AC_DEFUN([_AM_SET_OPTIONS],
7454 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7456 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7457 # -------------------------------------------
7458 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7459 AC_DEFUN([_AM_IF_OPTION],
7460 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7462 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7464 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7465 # Free Software Foundation, Inc.
7467 # This file is free software; the Free Software Foundation
7468 # gives unlimited permission to copy and/or distribute it,
7469 # with or without modifications, as long as this notice is preserved.
7475 AC_DEFUN([AM_SANITY_CHECK],
7476 [AC_MSG_CHECKING([whether build environment is sane])
7479 echo timestamp > conftest.file
7480 # Do `set' in a subshell so we don't clobber the current shell's
7481 # arguments. Must try -L first in case configure is actually a
7482 # symlink; some systems play weird games with the mod time of symlinks
7483 # (eg FreeBSD returns the mod time of the symlink's containing
7486 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7487 if test "$[*]" = "X"; then
7489 set X `ls -t $srcdir/configure conftest.file`
7492 if test "$[*]" != "X $srcdir/configure conftest.file" \
7493 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7495 # If neither matched, then we have a broken ls. This can happen
7496 # if, for instance, CONFIG_SHELL is bash and it inherits a
7497 # broken ls alias from the environment. This has actually
7498 # happened. Such a system could not be considered "sane".
7499 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7500 alias in your environment])
7503 test "$[2]" = conftest.file
7509 AC_MSG_ERROR([newly created file is older than distributed files!
7510 Check your system clock])
7512 AC_MSG_RESULT(yes)])
7514 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7516 # This file is free software; the Free Software Foundation
7517 # gives unlimited permission to copy and/or distribute it,
7518 # with or without modifications, as long as this notice is preserved.
7520 # AM_PROG_INSTALL_STRIP
7521 # ---------------------
7522 # One issue with vendor `install' (even GNU) is that you can't
7523 # specify the program used to strip binaries. This is especially
7524 # annoying in cross-compiling environments, where the build's strip
7525 # is unlikely to handle the host's binaries.
7526 # Fortunately install-sh will honor a STRIPPROG variable, so we
7527 # always use install-sh in `make install-strip', and initialize
7528 # STRIPPROG with the value of the STRIP variable (set by the user).
7529 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7530 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7531 # Installed binaries are usually stripped using `strip' when the user
7532 # run `make install-strip'. However `strip' might not be the right
7533 # tool to use in cross-compilation environments, therefore Automake
7534 # will honor the `STRIP' environment variable to overrule this program.
7535 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7536 if test "$cross_compiling" != no; then
7537 AC_CHECK_TOOL([STRIP], [strip], :)
7539 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7540 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7542 # Check how to create a tarball. -*- Autoconf -*-
7544 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7546 # This file is free software; the Free Software Foundation
7547 # gives unlimited permission to copy and/or distribute it,
7548 # with or without modifications, as long as this notice is preserved.
7552 # _AM_PROG_TAR(FORMAT)
7553 # --------------------
7554 # Check how to create a tarball in format FORMAT.
7555 # FORMAT should be one of `v7', `ustar', or `pax'.
7557 # Substitute a variable $(am__tar) that is a command
7558 # writing to stdout a FORMAT-tarball containing the directory
7560 # tardir=directory && $(am__tar) > result.tar
7562 # Substitute a variable $(am__untar) that extract such
7563 # a tarball read from stdin.
7564 # $(am__untar) < result.tar
7565 AC_DEFUN([_AM_PROG_TAR],
7566 [# Always define AMTAR for backward compatibility.
7567 AM_MISSING_PROG([AMTAR], [tar])
7569 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7570 [m4_case([$1], [ustar],, [pax],,
7571 [m4_fatal([Unknown tar format])])
7572 AC_MSG_CHECKING([how to create a $1 tar archive])
7573 # Loop over all known methods to create a tar archive until one works.
7574 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7575 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7576 # Do not fold the above two line into one, because Tru64 sh and
7577 # Solaris sh will not grok spaces in the rhs of `-'.
7578 for _am_tool in $_am_tools
7582 for _am_tar in tar gnutar gtar;
7584 AM_RUN_LOG([$_am_tar --version]) && break
7586 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7587 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7588 am__untar="$_am_tar -xf -"
7591 # Must skip GNU tar: if it does not support --format= it doesn't create
7592 # ustar tarball either.
7593 (tar --version) >/dev/null 2>&1 && continue
7594 am__tar='tar chf - "$$tardir"'
7595 am__tar_='tar chf - "$tardir"'
7596 am__untar='tar xf -'
7599 am__tar='pax -L -x $1 -w "$$tardir"'
7600 am__tar_='pax -L -x $1 -w "$tardir"'
7604 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7605 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7606 am__untar='cpio -i -H $1 -d'
7615 # If the value was cached, stop now. We just wanted to have am__tar
7616 # and am__untar set.
7617 test -n "${am_cv_prog_tar_$1}" && break
7619 # tar/untar a dummy directory, and stop if the command works
7622 echo GrepMe > conftest.dir/file
7623 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7625 if test -s conftest.tar; then
7626 AM_RUN_LOG([$am__untar <conftest.tar])
7627 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7632 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7633 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7635 AC_SUBST([am__untar])