1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 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
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
19
# serial 52 AC_PROG_LIBTOOL
22
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
23
# -----------------------------------------------------------
24
# If this macro is not defined by Autoconf, define it here.
25
m4_ifdef([AC_PROVIDE_IFELSE],
27
[m4_define([AC_PROVIDE_IFELSE],
28
[m4_ifdef([AC_PROVIDE_$1],
34
AC_DEFUN([AC_PROG_LIBTOOL],
35
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
36
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
37
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
38
AC_PROVIDE_IFELSE([AC_PROG_CXX],
40
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
42
dnl And a similar setup for Fortran 77 support
43
AC_PROVIDE_IFELSE([AC_PROG_F77],
45
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
48
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
49
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
50
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
51
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
53
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
55
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
58
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
59
ifdef([A][M_PROG_GCJ],
60
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
61
ifdef([LT_AC_PROG_GCJ],
62
[define([LT_AC_PROG_GCJ],
63
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
69
AC_DEFUN([_AC_PROG_LIBTOOL],
70
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
71
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
72
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
73
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
75
# This can be used to rebuild libtool when needed
76
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
78
# Always use our own libtool.
79
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
82
# Prevent multiple expansion
83
define([AC_PROG_LIBTOOL], [])
89
AC_DEFUN([AC_LIBTOOL_SETUP],
91
AC_REQUIRE([AC_ENABLE_SHARED])dnl
92
AC_REQUIRE([AC_ENABLE_STATIC])dnl
93
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
94
AC_REQUIRE([AC_CANONICAL_HOST])dnl
95
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
96
AC_REQUIRE([AC_PROG_CC])dnl
97
AC_REQUIRE([AC_PROG_LD])dnl
98
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
99
AC_REQUIRE([AC_PROG_NM])dnl
101
AC_REQUIRE([AC_PROG_LN_S])dnl
102
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
103
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
104
AC_REQUIRE([AC_OBJEXT])dnl
105
AC_REQUIRE([AC_EXEEXT])dnl
107
AC_LIBTOOL_SYS_MAX_CMD_LEN
108
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
111
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
112
_LT_AC_PROG_ECHO_BACKSLASH
116
# AIX sometimes has problems with the GCC collect2 program. For some
117
# reason, if we set the COLLECT_NAMES environment variable, the problems
118
# vanish in a puff of smoke.
119
if test "X${COLLECT_NAMES+set}" != Xset; then
126
# Sed substitution that helps us do robust quoting. It backslashifies
127
# metacharacters that are still active within double-quoted strings.
128
Xsed='sed -e 1s/^X//'
129
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
131
# Same as above, but do not quote variable references.
132
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
134
# Sed substitution to delay expansion of an escaped shell variable in a
135
# double_quote_subst'ed string.
136
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
138
# Sed substitution to avoid accidental globbing in evaled expressions
139
no_glob_subst='s/\*/\\\*/g'
145
default_ofile=libtool
148
# All known linkers require a `.a' archive for static linking (except MSVC,
149
# which needs '.lib').
151
ltmain="$ac_aux_dir/ltmain.sh"
152
ofile="$default_ofile"
153
with_gnu_ld="$lt_cv_prog_gnu_ld"
155
AC_CHECK_TOOL(AR, ar, false)
156
AC_CHECK_TOOL(RANLIB, ranlib, :)
157
AC_CHECK_TOOL(STRIP, strip, :)
162
# Set sane defaults for various variables
163
test -z "$AR" && AR=ar
164
test -z "$AR_FLAGS" && AR_FLAGS=cru
165
test -z "$AS" && AS=as
166
test -z "$CC" && CC=cc
167
test -z "$LTCC" && LTCC=$CC
168
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
169
test -z "$DLLTOOL" && DLLTOOL=dlltool
170
test -z "$LD" && LD=ld
171
test -z "$LN_S" && LN_S="ln -s"
172
test -z "$MAGIC_CMD" && MAGIC_CMD=file
173
test -z "$NM" && NM=nm
174
test -z "$SED" && SED=sed
175
test -z "$OBJDUMP" && OBJDUMP=objdump
176
test -z "$RANLIB" && RANLIB=:
177
test -z "$STRIP" && STRIP=:
178
test -z "$ac_objext" && ac_objext=o
180
# Determine commands to create old-style static archives.
181
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
182
old_postinstall_cmds='chmod 644 $oldlib'
183
old_postuninstall_cmds=
185
if test -n "$RANLIB"; then
188
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
191
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
194
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
197
_LT_CC_BASENAME([$compiler])
199
# Only perform the check for file, if the check method requires it
200
case $deplibs_check_method in
202
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
208
_LT_REQUIRED_DARWIN_CHECKS
210
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
211
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
212
enable_win32_dll=yes, enable_win32_dll=no)
214
AC_ARG_ENABLE([libtool-lock],
215
[AC_HELP_STRING([--disable-libtool-lock],
216
[avoid locking (might break parallel builds)])])
217
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
220
[AC_HELP_STRING([--with-pic],
221
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
222
[pic_mode="$withval"],
224
test -z "$pic_mode" && pic_mode=default
226
# Use C for the default configuration in the libtool script
228
AC_LIBTOOL_LANG_C_CONFIG
233
# _LT_AC_SYS_COMPILER
234
# -------------------
235
AC_DEFUN([_LT_AC_SYS_COMPILER],
236
[AC_REQUIRE([AC_PROG_CC])dnl
238
# If no C compiler was specified, use CC.
241
# If no C compiler flags were specified, use CFLAGS.
242
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
244
# Allow CC to be a program name with arguments.
246
])# _LT_AC_SYS_COMPILER
249
# _LT_CC_BASENAME(CC)
250
# -------------------
251
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
252
AC_DEFUN([_LT_CC_BASENAME],
253
[for cc_temp in $1""; do
255
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
256
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
261
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
265
# _LT_COMPILER_BOILERPLATE
266
# ------------------------
267
# Check for compiler boilerplate output or warnings with
268
# the simple compiler test code.
269
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
270
[AC_REQUIRE([LT_AC_PROG_SED])dnl
271
ac_outfile=conftest.$ac_objext
272
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
273
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
274
_lt_compiler_boilerplate=`cat conftest.err`
276
])# _LT_COMPILER_BOILERPLATE
279
# _LT_LINKER_BOILERPLATE
280
# ----------------------
281
# Check for linker boilerplate output or warnings with
282
# the simple link test code.
283
AC_DEFUN([_LT_LINKER_BOILERPLATE],
284
[AC_REQUIRE([LT_AC_PROG_SED])dnl
285
ac_outfile=conftest.$ac_objext
286
echo "$lt_simple_link_test_code" >conftest.$ac_ext
287
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
288
_lt_linker_boilerplate=`cat conftest.err`
290
])# _LT_LINKER_BOILERPLATE
292
# _LT_REQUIRED_DARWIN_CHECKS
293
# --------------------------
294
# Check for some things on darwin
295
AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[
298
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
299
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
301
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
302
[lt_cv_apple_cc_single_mod=no
303
if test -z "${LT_MULTI_MODULE}"; then
304
# By default we will add the -single_module flag. You can override
305
# by either setting the environment variable LT_MULTI_MODULE
306
# non-empty at configure time, or by adding -multi_module to the
308
echo "int foo(void){return 1;}" > conftest.c
309
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
310
-dynamiclib ${wl}-single_module conftest.c
311
if test -f libconftest.dylib; then
312
lt_cv_apple_cc_single_mod=yes
313
rm -rf libconftest.dylib*
317
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
318
[lt_cv_ld_exported_symbols_list],
319
[lt_cv_ld_exported_symbols_list=no
320
save_LDFLAGS=$LDFLAGS
321
echo "_main" > conftest.sym
322
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
323
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
324
[lt_cv_ld_exported_symbols_list=yes],
325
[lt_cv_ld_exported_symbols_list=no])
326
LDFLAGS="$save_LDFLAGS"
329
rhapsody* | darwin1.[[0123]])
330
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
332
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
334
# if running on 10.5 or later, the deployment target defaults
335
# to the OS version, if on x86, and 10.4, the deployment
336
# target defaults to 10.4. Don't you love it?
337
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
338
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
339
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
341
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
343
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
347
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
348
_lt_dar_single_mod='$single_module'
350
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
351
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
353
_lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
355
if test "$DSYMUTIL" != ":"; then
356
_lt_dsymutil="~$DSYMUTIL \$lib || :"
364
# _LT_AC_SYS_LIBPATH_AIX
365
# ----------------------
366
# Links a minimal program and checks the executable
367
# for the system default hardcoded library path. In most cases,
368
# this is /usr/lib:/lib, but when the MPI compilers are used
369
# the location of the communication and MPI libs are included too.
370
# If we don't find anything, use the default library path according
371
# to the aix ld manual.
372
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
373
[AC_REQUIRE([LT_AC_PROG_SED])dnl
374
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
376
/Import File Strings/,/^$/ {
382
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
383
# Check for a 64-bit object if we didn't find anything.
384
if test -z "$aix_libpath"; then
385
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
387
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
388
])# _LT_AC_SYS_LIBPATH_AIX
391
# _LT_AC_SHELL_INIT(ARG)
392
# ----------------------
393
AC_DEFUN([_LT_AC_SHELL_INIT],
394
[ifdef([AC_DIVERSION_NOTICE],
395
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
396
[AC_DIVERT_PUSH(NOTICE)])
399
])# _LT_AC_SHELL_INIT
402
# _LT_AC_PROG_ECHO_BACKSLASH
403
# --------------------------
404
# Add some code to the start of the generated configure script which
405
# will find an echo command which doesn't interpret backslashes.
406
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
408
# Check that we are running under the correct shell.
409
SHELL=${CONFIG_SHELL-/bin/sh}
413
# Remove one level of quotation (which was required for Make).
414
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
419
if test "X[$]1" = X--no-reexec; then
420
# Discard the --no-reexec flag, and continue.
422
elif test "X[$]1" = X--fallback-echo; then
423
# Avoid inline document here, it may be left over
425
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
426
# Yippee, $echo works!
429
# Restart under the correct shell.
430
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
433
if test "X[$]1" = X--fallback-echo; then
434
# used as fallback echo
442
# The HP-UX ksh and POSIX shell print the target directory to stdout
444
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
446
if test -z "$ECHO"; then
447
if test "X${echo_test_string+set}" != Xset; then
448
# find a string as large as possible, as long as the shell can cope with it
449
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
450
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
451
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
452
echo_test_string=`eval $cmd` &&
453
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
460
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
461
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
462
test "X$echo_testing_string" = "X$echo_test_string"; then
465
# The Solaris, AIX, and Digital Unix default echo programs unquote
466
# backslashes. This makes it impossible to quote backslashes using
467
# echo "$something" | sed 's/\\/\\\\/g'
469
# So, first we look for a working echo in the user's PATH.
471
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
472
for dir in $PATH /usr/ucb; do
474
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
475
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
476
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
477
test "X$echo_testing_string" = "X$echo_test_string"; then
484
if test "X$echo" = Xecho; then
485
# We didn't find a better echo, so look for alternatives.
486
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
487
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
488
test "X$echo_testing_string" = "X$echo_test_string"; then
489
# This shell has a builtin print -r that does the trick.
491
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
492
test "X$CONFIG_SHELL" != X/bin/ksh; then
493
# If we have ksh, try running configure again with it.
494
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
495
export ORIGINAL_CONFIG_SHELL
496
CONFIG_SHELL=/bin/ksh
498
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
502
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
503
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
504
test "X$echo_testing_string" = "X$echo_test_string"; then
507
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
508
test "X$echo_testing_string" = 'X\t' &&
509
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
510
test "X$echo_testing_string" = "X$echo_test_string"; then
511
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
513
SHELL="$CONFIG_SHELL"
515
echo="$CONFIG_SHELL [$]0 --fallback-echo"
516
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
517
test "X$echo_testing_string" = 'X\t' &&
518
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
519
test "X$echo_testing_string" = "X$echo_test_string"; then
520
echo="$CONFIG_SHELL [$]0 --fallback-echo"
522
# maybe with a smaller string...
525
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
526
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
533
if test "$prev" != 'sed 50q "[$]0"'; then
534
echo_test_string=`eval $prev`
535
export echo_test_string
536
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
538
# Oops. We lost completely, so just stick with echo.
547
# Copy echo and quote the copy suitably for passing to libtool from
548
# the Makefile, instead of quoting the original, which is used later.
550
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
551
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
555
])])# _LT_AC_PROG_ECHO_BACKSLASH
560
AC_DEFUN([_LT_AC_LOCK],
561
[AC_ARG_ENABLE([libtool-lock],
562
[AC_HELP_STRING([--disable-libtool-lock],
563
[avoid locking (might break parallel builds)])])
564
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
566
# Some flags need to be propagated to the compiler or linker for good
570
# Find out which ABI we are using.
571
echo 'int i;' > conftest.$ac_ext
572
if AC_TRY_EVAL(ac_compile); then
573
case `/usr/bin/file conftest.$ac_objext` in
585
# Find out which ABI we are using.
586
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
587
if AC_TRY_EVAL(ac_compile); then
588
if test "$lt_cv_prog_gnu_ld" = yes; then
589
case `/usr/bin/file conftest.$ac_objext` in
591
LD="${LD-ld} -melf32bsmip"
594
LD="${LD-ld} -melf32bmipn32"
597
LD="${LD-ld} -melf64bmip"
601
case `/usr/bin/file conftest.$ac_objext` in
617
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
618
s390*-*linux*|sparc*-*linux*)
619
# Find out which ABI we are using.
620
echo 'int i;' > conftest.$ac_ext
621
if AC_TRY_EVAL(ac_compile); then
622
case `/usr/bin/file conftest.o` in
625
x86_64-*kfreebsd*-gnu)
626
LD="${LD-ld} -m elf_i386_fbsd"
629
LD="${LD-ld} -m elf_i386"
631
ppc64-*linux*|powerpc64-*linux*)
632
LD="${LD-ld} -m elf32ppclinux"
635
LD="${LD-ld} -m elf_s390"
638
LD="${LD-ld} -m elf32_sparc"
644
x86_64-*kfreebsd*-gnu)
645
LD="${LD-ld} -m elf_x86_64_fbsd"
648
LD="${LD-ld} -m elf_x86_64"
650
ppc*-*linux*|powerpc*-*linux*)
651
LD="${LD-ld} -m elf64ppc"
654
LD="${LD-ld} -m elf64_s390"
657
LD="${LD-ld} -m elf64_sparc"
667
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
668
SAVE_CFLAGS="$CFLAGS"
669
CFLAGS="$CFLAGS -belf"
670
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
672
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
674
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
675
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
676
CFLAGS="$SAVE_CFLAGS"
680
# Find out which ABI we are using.
681
echo 'int i;' > conftest.$ac_ext
682
if AC_TRY_EVAL(ac_compile); then
683
case `/usr/bin/file conftest.o` in
685
case $lt_cv_prog_gnu_ld in
686
yes*) LD="${LD-ld} -m elf64_sparc" ;;
688
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
699
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
700
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
701
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
702
AC_CHECK_TOOL(AS, as, false)
703
AC_CHECK_TOOL(OBJDUMP, objdump, false)
708
need_locks="$enable_libtool_lock"
713
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
714
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
715
# ----------------------------------------------------------------
716
# Check whether the given compiler option works
717
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
718
[AC_REQUIRE([LT_AC_PROG_SED])
719
AC_CACHE_CHECK([$1], [$2],
721
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
722
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
723
lt_compiler_flag="$3"
724
# Insert the option either (1) after the last *FLAGS variable, or
725
# (2) before a word containing "conftest.", or (3) at the end.
726
# Note that $ac_compile itself does not contain backslashes and begins
727
# with a dollar sign (not a hyphen), so the echo should work correctly.
728
# The option is referenced via a variable to avoid confusing sed.
729
lt_compile=`echo "$ac_compile" | $SED \
730
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
731
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
732
-e 's:$: $lt_compiler_flag:'`
733
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
734
(eval "$lt_compile" 2>conftest.err)
736
cat conftest.err >&AS_MESSAGE_LOG_FD
737
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
738
if (exit $ac_status) && test -s "$ac_outfile"; then
739
# The compiler can only warn and ignore the option if not recognized
740
# So say no if there are warnings other than the usual output.
741
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
742
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
743
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
750
if test x"[$]$2" = xyes; then
751
ifelse([$5], , :, [$5])
753
ifelse([$6], , :, [$6])
755
])# AC_LIBTOOL_COMPILER_OPTION
758
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
759
# [ACTION-SUCCESS], [ACTION-FAILURE])
760
# ------------------------------------------------------------
761
# Check whether the given compiler option works
762
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
763
[AC_REQUIRE([LT_AC_PROG_SED])dnl
764
AC_CACHE_CHECK([$1], [$2],
766
save_LDFLAGS="$LDFLAGS"
767
LDFLAGS="$LDFLAGS $3"
768
echo "$lt_simple_link_test_code" > conftest.$ac_ext
769
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
770
# The linker can only warn and ignore the option if not recognized
771
# So say no if there are warnings
772
if test -s conftest.err; then
773
# Append any errors to the config.log.
774
cat conftest.err 1>&AS_MESSAGE_LOG_FD
775
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
776
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
777
if diff conftest.exp conftest.er2 >/dev/null; then
785
LDFLAGS="$save_LDFLAGS"
788
if test x"[$]$2" = xyes; then
789
ifelse([$4], , :, [$4])
791
ifelse([$5], , :, [$5])
793
])# AC_LIBTOOL_LINKER_OPTION
796
# AC_LIBTOOL_SYS_MAX_CMD_LEN
797
# --------------------------
798
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
799
[# find the maximum length of command line arguments
800
AC_MSG_CHECKING([the maximum length of command line arguments])
801
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
807
# On DJGPP, this test can blow up pretty badly due to problems in libc
808
# (any single argument exceeding 2000 bytes causes a buffer overrun
809
# during glob expansion). Even if it were fixed, the result of this
810
# check would be larger than it should be.
811
lt_cv_sys_max_cmd_len=12288; # 12K is about right
815
# Under GNU Hurd, this test is not required because there is
816
# no limit to the length of command line arguments.
817
# Libtool will interpret -1 as no limit whatsoever
818
lt_cv_sys_max_cmd_len=-1;
822
# On Win9x/ME, this test blows up -- it succeeds, but takes
823
# about 5 minutes as the teststring grows exponentially.
824
# Worse, since 9x/ME are not pre-emptively multitasking,
825
# you end up with a "frozen" computer, even though with patience
826
# the test eventually succeeds (with a max line length of 256k).
827
# Instead, let's just punt: use the minimum linelength reported by
828
# all of the supported platforms: 8192 (on NT/2K/XP).
829
lt_cv_sys_max_cmd_len=8192;
833
# On AmigaOS with pdksh, this test takes hours, literally.
834
# So we just punt and use a minimum line length of 8192.
835
lt_cv_sys_max_cmd_len=8192;
838
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
839
# This has been around since 386BSD, at least. Likely further.
840
if test -x /sbin/sysctl; then
841
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
842
elif test -x /usr/sbin/sysctl; then
843
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
845
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
847
# And add a safety zone
848
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
849
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
853
# We know the value 262144 and hardcode it with a safety zone (like BSD)
854
lt_cv_sys_max_cmd_len=196608
858
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
859
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
860
# nice to cause kernel panics so lets avoid the loop below.
861
# First set a reasonable default.
862
lt_cv_sys_max_cmd_len=16384
864
if test -x /sbin/sysconfig; then
865
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
866
*1*) lt_cv_sys_max_cmd_len=-1 ;;
871
lt_cv_sys_max_cmd_len=102400
873
sysv5* | sco5v6* | sysv4.2uw2*)
874
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
875
if test -n "$kargmax"; then
876
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
878
lt_cv_sys_max_cmd_len=32768
882
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
883
if test -n "$lt_cv_sys_max_cmd_len"; then
884
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
885
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
887
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
888
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
889
= "XX$teststring") >/dev/null 2>&1 &&
890
new_result=`expr "X$teststring" : ".*" 2>&1` &&
891
lt_cv_sys_max_cmd_len=$new_result &&
892
test $i != 17 # 1/2 MB should be enough
895
teststring=$teststring$teststring
898
# Add a significant safety factor because C++ compilers can tack on massive
899
# amounts of additional arguments before passing them to the linker.
900
# It appears as though 1/2 is a usable value.
901
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
906
if test -n $lt_cv_sys_max_cmd_len ; then
907
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
911
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
916
AC_DEFUN([_LT_AC_CHECK_DLFCN],
917
[AC_CHECK_HEADERS(dlfcn.h)dnl
918
])# _LT_AC_CHECK_DLFCN
921
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
922
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
923
# ---------------------------------------------------------------------
924
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
925
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
926
if test "$cross_compiling" = yes; then :
929
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
930
lt_status=$lt_dlunknown
931
cat > conftest.$ac_ext <<EOF
932
[#line __oline__ "configure"
933
#include "confdefs.h"
942
# define LT_DLGLOBAL RTLD_GLOBAL
945
# define LT_DLGLOBAL DL_GLOBAL
947
# define LT_DLGLOBAL 0
951
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
952
find out it does not work in some platform. */
953
#ifndef LT_DLLAZY_OR_NOW
955
# define LT_DLLAZY_OR_NOW RTLD_LAZY
958
# define LT_DLLAZY_OR_NOW DL_LAZY
961
# define LT_DLLAZY_OR_NOW RTLD_NOW
964
# define LT_DLLAZY_OR_NOW DL_NOW
966
# define LT_DLLAZY_OR_NOW 0
974
extern "C" void exit (int);
977
void fnord() { int i=42;}
980
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
981
int status = $lt_dlunknown;
985
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
986
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
987
/* dlclose (self); */
995
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
996
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
999
x$lt_dlno_uscore) $1 ;;
1000
x$lt_dlneed_uscore) $2 ;;
1001
x$lt_dlunknown|x*) $3 ;;
1004
# compilation failed
1009
])# _LT_AC_TRY_DLOPEN_SELF
1012
# AC_LIBTOOL_DLOPEN_SELF
1013
# ----------------------
1014
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1015
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1016
if test "x$enable_dlopen" != xyes; then
1017
enable_dlopen=unknown
1018
enable_dlopen_self=unknown
1019
enable_dlopen_self_static=unknown
1026
lt_cv_dlopen="load_add_on"
1028
lt_cv_dlopen_self=yes
1032
lt_cv_dlopen="LoadLibrary"
1037
lt_cv_dlopen="dlopen"
1042
# if libdl is installed we need to link against it
1043
AC_CHECK_LIB([dl], [dlopen],
1044
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1047
lt_cv_dlopen_self=yes
1052
AC_CHECK_FUNC([shl_load],
1053
[lt_cv_dlopen="shl_load"],
1054
[AC_CHECK_LIB([dld], [shl_load],
1055
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
1056
[AC_CHECK_FUNC([dlopen],
1057
[lt_cv_dlopen="dlopen"],
1058
[AC_CHECK_LIB([dl], [dlopen],
1059
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1060
[AC_CHECK_LIB([svld], [dlopen],
1061
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1062
[AC_CHECK_LIB([dld], [dld_link],
1063
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
1072
if test "x$lt_cv_dlopen" != xno; then
1078
case $lt_cv_dlopen in
1080
save_CPPFLAGS="$CPPFLAGS"
1081
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1083
save_LDFLAGS="$LDFLAGS"
1084
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1087
LIBS="$lt_cv_dlopen_libs $LIBS"
1089
AC_CACHE_CHECK([whether a program can dlopen itself],
1090
lt_cv_dlopen_self, [dnl
1091
_LT_AC_TRY_DLOPEN_SELF(
1092
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1093
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1096
if test "x$lt_cv_dlopen_self" = xyes; then
1097
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1098
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1099
lt_cv_dlopen_self_static, [dnl
1100
_LT_AC_TRY_DLOPEN_SELF(
1101
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1102
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1106
CPPFLAGS="$save_CPPFLAGS"
1107
LDFLAGS="$save_LDFLAGS"
1112
case $lt_cv_dlopen_self in
1113
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1114
*) enable_dlopen_self=unknown ;;
1117
case $lt_cv_dlopen_self_static in
1118
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1119
*) enable_dlopen_self_static=unknown ;;
1122
])# AC_LIBTOOL_DLOPEN_SELF
1125
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1126
# ---------------------------------
1127
# Check to see if options -c and -o are simultaneously supported by compiler
1128
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1129
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1130
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1131
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1132
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1133
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1134
$rm -r conftest 2>/dev/null
1138
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1140
lt_compiler_flag="-o out/conftest2.$ac_objext"
1141
# Insert the option either (1) after the last *FLAGS variable, or
1142
# (2) before a word containing "conftest.", or (3) at the end.
1143
# Note that $ac_compile itself does not contain backslashes and begins
1144
# with a dollar sign (not a hyphen), so the echo should work correctly.
1145
lt_compile=`echo "$ac_compile" | $SED \
1146
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1147
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1148
-e 's:$: $lt_compiler_flag:'`
1149
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1150
(eval "$lt_compile" 2>out/conftest.err)
1152
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1153
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1154
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1156
# The compiler can only warn and ignore the option if not recognized
1157
# So say no if there are warnings
1158
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1159
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1160
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1161
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1164
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1166
# SGI C++ compiler will create directory out/ii_files/ for
1167
# template instantiation
1168
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1169
$rm out/* && rmdir out
1174
])# AC_LIBTOOL_PROG_CC_C_O
1177
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1178
# -----------------------------------------
1179
# Check to see if we can do hard links to lock some files if needed
1180
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1181
[AC_REQUIRE([_LT_AC_LOCK])dnl
1183
hard_links="nottested"
1184
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1185
# do not overwrite the value of need_locks provided by the user
1186
AC_MSG_CHECKING([if we can lock with hard links])
1189
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1191
ln conftest.a conftest.b 2>&5 || hard_links=no
1192
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1193
AC_MSG_RESULT([$hard_links])
1194
if test "$hard_links" = no; then
1195
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1201
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1206
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1207
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1208
[rm -f .libs 2>/dev/null
1209
mkdir .libs 2>/dev/null
1210
if test -d .libs; then
1213
# MS-DOS does not allow filenames that begin with a dot.
1216
rmdir .libs 2>/dev/null])
1217
objdir=$lt_cv_objdir
1218
])# AC_LIBTOOL_OBJDIR
1221
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1222
# ----------------------------------------------
1223
# Check hardcoding attributes.
1224
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1225
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1226
_LT_AC_TAGVAR(hardcode_action, $1)=
1227
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1228
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1229
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1231
# We can hardcode non-existant directories.
1232
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1233
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1234
# have to relink, otherwise we might link with an installed library
1235
# when we should be linking with a yet-to-be-installed one
1236
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1237
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1238
# Linking always hardcodes the temporary library directory.
1239
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1241
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1242
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1245
# We cannot hardcode anything, or else we can only hardcode existing
1247
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1249
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1251
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1252
# Fast installation is not supported
1253
enable_fast_install=no
1254
elif test "$shlibpath_overrides_runpath" = yes ||
1255
test "$enable_shared" = no; then
1256
# Fast installation is not necessary
1257
enable_fast_install=needless
1259
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1262
# AC_LIBTOOL_SYS_LIB_STRIP
1263
# ------------------------
1264
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1267
AC_MSG_CHECKING([whether stripping libraries is possible])
1268
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1269
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1270
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1271
AC_MSG_RESULT([yes])
1273
# FIXME - insert some real tests, host_os isn't really good enough
1276
if test -n "$STRIP" ; then
1277
striplib="$STRIP -x"
1278
old_striplib="$STRIP -S"
1279
AC_MSG_RESULT([yes])
1289
])# AC_LIBTOOL_SYS_LIB_STRIP
1292
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1293
# -----------------------------
1294
# PORTME Fill in your ld.so characteristics
1295
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1296
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1297
AC_MSG_CHECKING([dynamic linker characteristics])
1299
libname_spec='lib$name'
1307
shlibpath_overrides_runpath=unknown
1309
dynamic_linker="$host_os ld.so"
1310
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1312
if test "$GCC" = yes; then
1314
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1315
*) lt_awk_arg="/^libraries:/" ;;
1317
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1318
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1319
# if the path contains ";" then we assume it to be the separator
1320
# otherwise default to the standard path separator (i.e. ":") - it is
1321
# assumed that no part of a normal pathname contains ";" but that should
1322
# okay in the real world where ";" in dirpaths is itself problematic.
1323
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1325
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1327
# Ok, now we have the path, separated by spaces, we can step through it
1328
# and add multilib dir if necessary.
1329
lt_tmp_lt_search_path_spec=
1330
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1331
for lt_sys_path in $lt_search_path_spec; do
1332
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1333
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1335
test -d "$lt_sys_path" && \
1336
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1339
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1340
BEGIN {RS=" "; FS="/|\n";} {
1343
for (lt_i = NF; lt_i > 0; lt_i--) {
1344
if ($lt_i != "" && $lt_i != ".") {
1345
if ($lt_i == "..") {
1348
if (lt_count == 0) {
1349
lt_foo="/" $lt_i lt_foo;
1356
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1357
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1359
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1361
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1363
need_lib_prefix=unknown
1364
hardcode_into_libs=no
1366
# when you set need_version to no, make sure it does not cause -set_version
1367
# flags to be left without arguments
1368
need_version=unknown
1373
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1374
shlibpath_var=LIBPATH
1376
# AIX 3 has no versioning support, so we append a major version to the name.
1377
soname_spec='${libname}${release}${shared_ext}$major'
1384
hardcode_into_libs=yes
1385
if test "$host_cpu" = ia64; then
1386
# AIX 5 supports IA64
1387
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1388
shlibpath_var=LD_LIBRARY_PATH
1390
# With GCC up to 2.95.x, collect2 would create an import file
1391
# for dependence libraries. The import file would start with
1392
# the line `#! .'. This would cause the generated library to
1393
# depend on `.', always an invalid library. This was fixed in
1394
# development snapshots of GCC prior to 3.0.
1396
aix4 | aix4.[[01]] | aix4.[[01]].*)
1397
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1399
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1406
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1407
# soname into executable. Probably we can add versioning support to
1408
# collect2, so additional links can be useful in future.
1409
if test "$aix_use_runtimelinking" = yes; then
1410
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1411
# instead of lib<name>.a to let people know that these are not
1412
# typical AIX shared libraries.
1413
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1415
# We preserve .a as extension for shared libraries through AIX4.2
1416
# and later when we are not doing run time linking.
1417
library_names_spec='${libname}${release}.a $libname.a'
1418
soname_spec='${libname}${release}${shared_ext}$major'
1420
shlibpath_var=LIBPATH
1425
library_names_spec='$libname.ixlibrary $libname.a'
1426
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1427
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'
1431
library_names_spec='${libname}${shared_ext}'
1432
dynamic_linker="$host_os ld.so"
1433
shlibpath_var=LIBRARY_PATH
1439
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1440
soname_spec='${libname}${release}${shared_ext}$major'
1441
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1442
shlibpath_var=LD_LIBRARY_PATH
1443
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1444
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1445
# the default ld.so.conf also contains /usr/contrib/lib and
1446
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1447
# libtool to hard-code these into programs
1450
cygwin* | mingw* | pw32*)
1451
version_type=windows
1456
case $GCC,$host_os in
1457
yes,cygwin* | yes,mingw* | yes,pw32*)
1458
library_names_spec='$libname.dll.a'
1459
# DLL is installed to $(libdir)/../bin by postinstall_cmds
1460
postinstall_cmds='base_file=`basename \${file}`~
1461
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1462
dldir=$destdir/`dirname \$dlpath`~
1463
test -d \$dldir || mkdir -p \$dldir~
1464
$install_prog $dir/$dlname \$dldir/$dlname~
1465
chmod a+x \$dldir/$dlname'
1466
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1467
dlpath=$dir/\$dldll~
1469
shlibpath_overrides_runpath=yes
1473
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
1474
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1475
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1478
# MinGW DLLs use traditional 'lib' prefix
1479
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1480
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1481
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1482
# It is most probably a Windows format PATH printed by
1483
# mingw gcc, but we are running on Cygwin. Gcc prints its search
1484
# path with ; separators, and with drive letters. We can handle the
1485
# drive letters (cygwin fileutils understands them), so leave them,
1486
# especially as we might pass files found there to a mingw objdump,
1487
# which wouldn't understand a cygwinified path. Ahh.
1488
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1490
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1494
# pw32 DLLs use 'pw' prefix rather than 'lib'
1495
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1501
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1504
dynamic_linker='Win32 ld.exe'
1505
# FIXME: first we should search . and the directory the executable is in
1509
darwin* | rhapsody*)
1510
dynamic_linker="$host_os dyld"
1514
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1515
soname_spec='${libname}${release}${major}$shared_ext'
1516
shlibpath_overrides_runpath=yes
1517
shlibpath_var=DYLD_LIBRARY_PATH
1518
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1520
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
1521
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1528
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1529
soname_spec='${libname}${release}${shared_ext}$major'
1530
shlibpath_var=LD_LIBRARY_PATH
1537
freebsd* | dragonfly*)
1538
# DragonFly does not have aout. When/if they implement a new
1539
# versioning mechanism, adjust this.
1540
if test -x /usr/bin/objformat; then
1541
objformat=`/usr/bin/objformat`
1544
freebsd[[123]]*) objformat=aout ;;
1548
version_type=freebsd-$objformat
1549
case $version_type in
1551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1556
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1560
shlibpath_var=LD_LIBRARY_PATH
1563
shlibpath_overrides_runpath=yes
1565
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1566
shlibpath_overrides_runpath=yes
1567
hardcode_into_libs=yes
1569
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1570
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1571
shlibpath_overrides_runpath=no
1572
hardcode_into_libs=yes
1574
*) # from 4.6 on, and DragonFly
1575
shlibpath_overrides_runpath=yes
1576
hardcode_into_libs=yes
1585
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1586
soname_spec='${libname}${release}${shared_ext}$major'
1587
shlibpath_var=LD_LIBRARY_PATH
1588
hardcode_into_libs=yes
1591
hpux9* | hpux10* | hpux11*)
1592
# Give a soname corresponding to the major version so that dld.sl refuses to
1593
# link against other versions.
1600
hardcode_into_libs=yes
1601
dynamic_linker="$host_os dld.so"
1602
shlibpath_var=LD_LIBRARY_PATH
1603
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1604
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1605
soname_spec='${libname}${release}${shared_ext}$major'
1606
if test "X$HPUX_IA64_MODE" = X32; then
1607
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1609
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1611
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1615
hardcode_into_libs=yes
1616
dynamic_linker="$host_os dld.sl"
1617
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1618
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1619
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1620
soname_spec='${libname}${release}${shared_ext}$major'
1621
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1622
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1626
dynamic_linker="$host_os dld.sl"
1627
shlibpath_var=SHLIB_PATH
1628
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1629
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1630
soname_spec='${libname}${release}${shared_ext}$major'
1633
# HP-UX runs *really* slowly unless shared libraries are mode 555.
1634
postinstall_cmds='chmod 555 $lib'
1641
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1642
soname_spec='${libname}${release}${shared_ext}$major'
1643
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1644
shlibpath_var=LD_LIBRARY_PATH
1645
shlibpath_overrides_runpath=no
1646
hardcode_into_libs=yes
1649
irix5* | irix6* | nonstopux*)
1651
nonstopux*) version_type=nonstopux ;;
1653
if test "$lt_cv_prog_gnu_ld" = yes; then
1661
soname_spec='${libname}${release}${shared_ext}$major'
1662
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1664
irix5* | nonstopux*)
1668
case $LD in # libtool.m4 will add one of these switches to LD
1669
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1670
libsuff= shlibsuff= libmagic=32-bit;;
1671
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1672
libsuff=32 shlibsuff=N32 libmagic=N32;;
1673
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1674
libsuff=64 shlibsuff=64 libmagic=64-bit;;
1675
*) libsuff= shlibsuff= libmagic=never-match;;
1679
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1680
shlibpath_overrides_runpath=no
1681
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1682
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1683
hardcode_into_libs=yes
1686
# No shared lib support for Linux oldld, aout, or coff.
1687
linux*oldld* | linux*aout* | linux*coff*)
1691
# This must be Linux ELF.
1692
linux* | k*bsd*-gnu)
1696
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1697
soname_spec='${libname}${release}${shared_ext}$major'
1698
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1699
shlibpath_var=LD_LIBRARY_PATH
1700
shlibpath_overrides_runpath=no
1701
# This implies no fast_install, which is unacceptable.
1702
# Some rework will be needed to allow for fast_install
1703
# before this can be enabled.
1704
hardcode_into_libs=yes
1706
# Append ld.so.conf contents to the search path
1707
if test -f /etc/ld.so.conf; then
1708
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1709
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1712
# We used to test for /lib/ld.so.1 and disable shared libraries on
1713
# powerpc, because MkLinux only supported shared libraries with the
1714
# GNU dynamic linker. Since this was broken with cross compilers,
1715
# most powerpc-linux boxes support dynamic linking these days and
1716
# people can always --disable-shared, the test was removed, and we
1717
# assume the GNU/Linux dynamic linker is in use.
1718
dynamic_linker='GNU/Linux ld.so'
1725
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1726
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1727
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1728
dynamic_linker='NetBSD (a.out) ld.so'
1730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1731
soname_spec='${libname}${release}${shared_ext}$major'
1732
dynamic_linker='NetBSD ld.elf_so'
1734
shlibpath_var=LD_LIBRARY_PATH
1735
shlibpath_overrides_runpath=yes
1736
hardcode_into_libs=yes
1741
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1742
shlibpath_var=LD_LIBRARY_PATH
1743
shlibpath_overrides_runpath=yes
1750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1751
soname_spec='${libname}${release}${shared_ext}$major'
1752
shlibpath_var=LD_LIBRARY_PATH
1753
shlibpath_overrides_runpath=yes
1758
sys_lib_dlsearch_path_spec="/usr/lib"
1760
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1762
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1763
*) need_version=no ;;
1765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1766
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1767
shlibpath_var=LD_LIBRARY_PATH
1768
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1770
openbsd2.[[89]] | openbsd2.[[89]].*)
1771
shlibpath_overrides_runpath=no
1774
shlibpath_overrides_runpath=yes
1778
shlibpath_overrides_runpath=yes
1783
libname_spec='$name'
1786
library_names_spec='$libname${shared_ext} $libname.a'
1787
dynamic_linker='OS/2 ld.exe'
1788
shlibpath_var=LIBPATH
1791
osf3* | osf4* | osf5*)
1795
soname_spec='${libname}${release}${shared_ext}$major'
1796
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1797
shlibpath_var=LD_LIBRARY_PATH
1798
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1799
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1810
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1811
soname_spec='${libname}${release}${shared_ext}$major'
1812
shlibpath_var=LD_LIBRARY_PATH
1813
shlibpath_overrides_runpath=yes
1814
hardcode_into_libs=yes
1815
# ldd complains unless libraries are executable
1816
postinstall_cmds='chmod +x $lib'
1821
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1822
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1823
shlibpath_var=LD_LIBRARY_PATH
1824
shlibpath_overrides_runpath=yes
1825
if test "$with_gnu_ld" = yes; then
1833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1834
soname_spec='${libname}${release}${shared_ext}$major'
1835
shlibpath_var=LD_LIBRARY_PATH
1836
case $host_vendor in
1838
shlibpath_overrides_runpath=no
1840
export_dynamic_flag_spec='${wl}-Blargedynsym'
1841
runpath_var=LD_RUN_PATH
1849
shlibpath_overrides_runpath=no
1850
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1856
if test -d /usr/nec ;then
1858
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1859
soname_spec='$libname${shared_ext}.$major'
1860
shlibpath_var=LD_LIBRARY_PATH
1864
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1865
version_type=freebsd-elf
1868
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1869
soname_spec='${libname}${release}${shared_ext}$major'
1870
shlibpath_var=LD_LIBRARY_PATH
1871
hardcode_into_libs=yes
1872
if test "$with_gnu_ld" = yes; then
1873
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1874
shlibpath_overrides_runpath=no
1876
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1877
shlibpath_overrides_runpath=yes
1880
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1884
sys_lib_dlsearch_path_spec='/usr/lib'
1889
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1890
soname_spec='${libname}${release}${shared_ext}$major'
1891
shlibpath_var=LD_LIBRARY_PATH
1898
AC_MSG_RESULT([$dynamic_linker])
1899
test "$dynamic_linker" = no && can_build_shared=no
1901
AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec],
1902
[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"])
1903
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
1904
AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec],
1905
[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"])
1906
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
1908
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1909
if test "$GCC" = yes; then
1910
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1912
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1917
AC_DEFUN([_LT_AC_TAGCONFIG],
1918
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1920
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1921
[include additional configurations @<:@automatic@:>@])],
1922
[tagnames="$withval"])
1924
if test -f "$ltmain" && test -n "$tagnames"; then
1925
if test ! -f "${ofile}"; then
1926
AC_MSG_WARN([output file `$ofile' does not exist])
1929
if test -z "$LTCC"; then
1930
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1931
if test -z "$LTCC"; then
1932
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1934
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1937
if test -z "$LTCFLAGS"; then
1938
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1941
# Extract list of available tagged configurations in $ofile.
1942
# Note that this assumes the entire list is on one line.
1943
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1945
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1946
for tagname in $tagnames; do
1948
# Check whether tagname contains only valid characters
1949
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1951
*) AC_MSG_ERROR([invalid tag name: $tagname])
1955
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1957
AC_MSG_ERROR([tag name \"$tagname\" already exists])
1960
# Update the list of available tags.
1961
if test -n "$tagname"; then
1962
echo appending configuration tag \"$tagname\" to $ofile
1966
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1967
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1968
(test "X$CXX" != "Xg++"))) ; then
1969
AC_LIBTOOL_LANG_CXX_CONFIG
1976
if test -n "$F77" && test "X$F77" != "Xno"; then
1977
AC_LIBTOOL_LANG_F77_CONFIG
1984
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1985
AC_LIBTOOL_LANG_GCJ_CONFIG
1992
AC_LIBTOOL_LANG_RC_CONFIG
1996
AC_MSG_ERROR([Unsupported tag name: $tagname])
2000
# Append the new tag name to the list of available tags.
2001
if test -n "$tagname" ; then
2002
available_tags="$available_tags $tagname"
2008
# Now substitute the updated list of available tags.
2009
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2010
mv "${ofile}T" "$ofile"
2014
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2017
])# _LT_AC_TAGCONFIG
2022
# enable checks for dlopen support
2023
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2024
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2025
])# AC_LIBTOOL_DLOPEN
2028
# AC_LIBTOOL_WIN32_DLL
2029
# --------------------
2030
# declare package support for building win32 DLLs
2031
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2032
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2033
])# AC_LIBTOOL_WIN32_DLL
2036
# AC_ENABLE_SHARED([DEFAULT])
2037
# ---------------------------
2038
# implement the --enable-shared flag
2039
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2040
AC_DEFUN([AC_ENABLE_SHARED],
2041
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2042
AC_ARG_ENABLE([shared],
2043
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2044
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2045
[p=${PACKAGE-default}
2047
yes) enable_shared=yes ;;
2048
no) enable_shared=no ;;
2051
# Look at the argument we got. We use all the common list separators.
2052
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2053
for pkg in $enableval; do
2055
if test "X$pkg" = "X$p"; then
2062
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2063
])# AC_ENABLE_SHARED
2068
# set the default shared flag to --disable-shared
2069
AC_DEFUN([AC_DISABLE_SHARED],
2070
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2071
AC_ENABLE_SHARED(no)
2072
])# AC_DISABLE_SHARED
2075
# AC_ENABLE_STATIC([DEFAULT])
2076
# ---------------------------
2077
# implement the --enable-static flag
2078
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2079
AC_DEFUN([AC_ENABLE_STATIC],
2080
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2081
AC_ARG_ENABLE([static],
2082
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2083
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2084
[p=${PACKAGE-default}
2086
yes) enable_static=yes ;;
2087
no) enable_static=no ;;
2090
# Look at the argument we got. We use all the common list separators.
2091
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2092
for pkg in $enableval; do
2094
if test "X$pkg" = "X$p"; then
2101
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2102
])# AC_ENABLE_STATIC
2107
# set the default static flag to --disable-static
2108
AC_DEFUN([AC_DISABLE_STATIC],
2109
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2110
AC_ENABLE_STATIC(no)
2111
])# AC_DISABLE_STATIC
2114
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2115
# ---------------------------------
2116
# implement the --enable-fast-install flag
2117
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2118
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2119
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2120
AC_ARG_ENABLE([fast-install],
2121
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2122
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2123
[p=${PACKAGE-default}
2125
yes) enable_fast_install=yes ;;
2126
no) enable_fast_install=no ;;
2128
enable_fast_install=no
2129
# Look at the argument we got. We use all the common list separators.
2130
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2131
for pkg in $enableval; do
2133
if test "X$pkg" = "X$p"; then
2134
enable_fast_install=yes
2140
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2141
])# AC_ENABLE_FAST_INSTALL
2144
# AC_DISABLE_FAST_INSTALL
2145
# -----------------------
2146
# set the default to --disable-fast-install
2147
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2148
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2149
AC_ENABLE_FAST_INSTALL(no)
2150
])# AC_DISABLE_FAST_INSTALL
2153
# AC_LIBTOOL_PICMODE([MODE])
2154
# --------------------------
2155
# implement the --with-pic flag
2156
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2157
AC_DEFUN([AC_LIBTOOL_PICMODE],
2158
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2159
pic_mode=ifelse($#,1,$1,default)
2160
])# AC_LIBTOOL_PICMODE
2165
# This is predefined starting with Autoconf 2.54, so this conditional
2166
# definition can be removed once we require Autoconf 2.54 or later.
2167
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2168
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2169
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2170
then ac_cv_prog_egrep='grep -E'
2171
else ac_cv_prog_egrep='egrep'
2173
EGREP=$ac_cv_prog_egrep
2178
# AC_PATH_TOOL_PREFIX
2179
# -------------------
2180
# find a file program which can recognize shared library
2181
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2182
[AC_REQUIRE([AC_PROG_EGREP])dnl
2183
AC_MSG_CHECKING([for $1])
2184
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2186
[[\\/*] | ?:[\\/]*])
2187
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2190
lt_save_MAGIC_CMD="$MAGIC_CMD"
2191
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2192
dnl $ac_dummy forces splitting on constant user-supplied paths.
2193
dnl POSIX.2 word splitting is done only on the output of word expansions,
2194
dnl not every word. This closes a longstanding sh security hole.
2195
ac_dummy="ifelse([$2], , $PATH, [$2])"
2196
for ac_dir in $ac_dummy; do
2198
test -z "$ac_dir" && ac_dir=.
2199
if test -f $ac_dir/$1; then
2200
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2201
if test -n "$file_magic_test_file"; then
2202
case $deplibs_check_method in
2204
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2205
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2206
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2207
$EGREP "$file_magic_regex" > /dev/null; then
2212
*** Warning: the command libtool uses to detect shared libraries,
2213
*** $file_magic_cmd, produces output that libtool cannot recognize.
2214
*** The result is that libtool may fail to recognize shared libraries
2215
*** as such. This will affect the creation of libtool libraries that
2216
*** depend on shared libraries, but programs linked with such libtool
2217
*** libraries will work regardless of this problem. Nevertheless, you
2218
*** may want to report the problem to your system manager and/or to
2219
*** bug-libtool@gnu.org
2229
MAGIC_CMD="$lt_save_MAGIC_CMD"
2232
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2233
if test -n "$MAGIC_CMD"; then
2234
AC_MSG_RESULT($MAGIC_CMD)
2238
])# AC_PATH_TOOL_PREFIX
2243
# find a file program which can recognize a shared library
2244
AC_DEFUN([AC_PATH_MAGIC],
2245
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2246
if test -z "$lt_cv_path_MAGIC_CMD"; then
2247
if test -n "$ac_tool_prefix"; then
2248
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2258
# find the pathname to the GNU or non-GNU linker
2259
AC_DEFUN([AC_PROG_LD],
2260
[AC_ARG_WITH([gnu-ld],
2261
[AC_HELP_STRING([--with-gnu-ld],
2262
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2263
[test "$withval" = no || with_gnu_ld=yes],
2265
AC_REQUIRE([LT_AC_PROG_SED])dnl
2266
AC_REQUIRE([AC_PROG_CC])dnl
2267
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2268
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2270
if test "$GCC" = yes; then
2271
# Check if gcc -print-prog-name=ld gives a path.
2272
AC_MSG_CHECKING([for ld used by $CC])
2275
# gcc leaves a trailing carriage return which upsets mingw
2276
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2278
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2281
# Accept absolute paths.
2282
[[\\/]]* | ?:[[\\/]]*)
2283
re_direlt='/[[^/]][[^/]]*/\.\./'
2284
# Canonicalize the pathname of ld
2285
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2286
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2287
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2289
test -z "$LD" && LD="$ac_prog"
2292
# If it fails, then pretend we aren't using GCC.
2296
# If it is relative, then search for the first ld in PATH.
2300
elif test "$with_gnu_ld" = yes; then
2301
AC_MSG_CHECKING([for GNU ld])
2303
AC_MSG_CHECKING([for non-GNU ld])
2305
AC_CACHE_VAL(lt_cv_path_LD,
2306
[if test -z "$LD"; then
2307
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2308
for ac_dir in $PATH; do
2310
test -z "$ac_dir" && ac_dir=.
2311
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2312
lt_cv_path_LD="$ac_dir/$ac_prog"
2313
# Check to see if the program is GNU ld. I'd rather use --version,
2314
# but apparently some variants of GNU ld only accept -v.
2315
# Break only if it was the GNU/non-GNU ld that we prefer.
2316
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2317
*GNU* | *'with BFD'*)
2318
test "$with_gnu_ld" != no && break
2321
test "$with_gnu_ld" != yes && break
2328
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2331
if test -n "$LD"; then
2336
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2343
AC_DEFUN([AC_PROG_LD_GNU],
2344
[AC_REQUIRE([AC_PROG_EGREP])dnl
2345
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2346
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2347
case `$LD -v 2>&1 </dev/null` in
2348
*GNU* | *'with BFD'*)
2349
lt_cv_prog_gnu_ld=yes
2352
lt_cv_prog_gnu_ld=no
2355
with_gnu_ld=$lt_cv_prog_gnu_ld
2359
# AC_PROG_LD_RELOAD_FLAG
2360
# ----------------------
2361
# find reload flag for linker
2362
# -- PORTME Some linkers may need a different reload flag.
2363
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2364
[AC_CACHE_CHECK([for $LD option to reload object files],
2365
lt_cv_ld_reload_flag,
2366
[lt_cv_ld_reload_flag='-r'])
2367
reload_flag=$lt_cv_ld_reload_flag
2368
case $reload_flag in
2370
*) reload_flag=" $reload_flag" ;;
2372
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2375
if test "$GCC" = yes; then
2376
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2378
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2382
])# AC_PROG_LD_RELOAD_FLAG
2385
# AC_DEPLIBS_CHECK_METHOD
2386
# -----------------------
2387
# how to check for library dependencies
2388
# -- PORTME fill in with the dynamic library characteristics
2389
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2390
[AC_CACHE_CHECK([how to recognize dependent libraries],
2391
lt_cv_deplibs_check_method,
2392
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2393
lt_cv_file_magic_test_file=
2394
lt_cv_deplibs_check_method='unknown'
2395
# Need to set the preceding variable on all platforms that support
2396
# interlibrary dependencies.
2397
# 'none' -- dependencies not supported.
2398
# `unknown' -- same as none, but documents that we really don't know.
2399
# 'pass_all' -- all dependencies passed with no checks.
2400
# 'test_compile' -- check by making test program.
2401
# 'file_magic [[regex]]' -- check by looking for files in library path
2402
# which responds to the $file_magic_cmd with a given extended regex.
2403
# If you have `file' or equivalent on your system and you're not sure
2404
# whether `pass_all' will *always* work, you probably want this one.
2408
lt_cv_deplibs_check_method=pass_all
2412
lt_cv_deplibs_check_method=pass_all
2416
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2417
lt_cv_file_magic_cmd='/usr/bin/file -L'
2418
lt_cv_file_magic_test_file=/shlib/libc.so
2422
# func_win32_libid is a shell function defined in ltmain.sh
2423
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2424
lt_cv_file_magic_cmd='func_win32_libid'
2428
# Base MSYS/MinGW do not provide the 'file' command needed by
2429
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2430
# unless we find 'file', for example because we are cross-compiling.
2431
if ( file / ) >/dev/null 2>&1; then
2432
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2433
lt_cv_file_magic_cmd='func_win32_libid'
2435
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2436
lt_cv_file_magic_cmd='$OBJDUMP -f'
2440
darwin* | rhapsody*)
2441
lt_cv_deplibs_check_method=pass_all
2444
freebsd* | dragonfly*)
2445
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2448
# Not sure whether the presence of OpenBSD here was a mistake.
2449
# Let's accept both of them until this is cleared up.
2450
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2451
lt_cv_file_magic_cmd=/usr/bin/file
2452
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2456
lt_cv_deplibs_check_method=pass_all
2461
lt_cv_deplibs_check_method=pass_all
2464
hpux10.20* | hpux11*)
2465
lt_cv_file_magic_cmd=/usr/bin/file
2468
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2469
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2472
[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]']
2473
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2476
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2477
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2483
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2484
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2487
irix5* | irix6* | nonstopux*)
2489
*-32|*"-32 ") libmagic=32-bit;;
2490
*-n32|*"-n32 ") libmagic=N32;;
2491
*-64|*"-64 ") libmagic=64-bit;;
2492
*) libmagic=never-match;;
2494
lt_cv_deplibs_check_method=pass_all
2497
# This must be Linux ELF.
2498
linux* | k*bsd*-gnu)
2499
lt_cv_deplibs_check_method=pass_all
2503
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2504
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2506
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2511
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2512
lt_cv_file_magic_cmd=/usr/bin/file
2513
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2517
lt_cv_deplibs_check_method=unknown
2521
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2522
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2524
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2528
osf3* | osf4* | osf5*)
2529
lt_cv_deplibs_check_method=pass_all
2533
lt_cv_deplibs_check_method=pass_all
2537
lt_cv_deplibs_check_method=pass_all
2541
case $host_vendor in
2543
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]]'
2544
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2547
lt_cv_deplibs_check_method=pass_all
2550
lt_cv_file_magic_cmd='/bin/file'
2551
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2554
lt_cv_file_magic_cmd='/bin/file'
2555
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2556
lt_cv_file_magic_test_file=/lib/libc.so
2559
lt_cv_deplibs_check_method=pass_all
2562
lt_cv_deplibs_check_method=pass_all
2567
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2568
lt_cv_deplibs_check_method=pass_all
2572
file_magic_cmd=$lt_cv_file_magic_cmd
2573
deplibs_check_method=$lt_cv_deplibs_check_method
2574
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2575
])# AC_DEPLIBS_CHECK_METHOD
2580
# find the pathname to a BSD-compatible name lister
2581
AC_DEFUN([AC_PROG_NM],
2582
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2583
[if test -n "$NM"; then
2584
# Let the user override the test.
2587
lt_nm_to_check="${ac_tool_prefix}nm"
2588
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2589
lt_nm_to_check="$lt_nm_to_check nm"
2591
for lt_tmp_nm in $lt_nm_to_check; do
2592
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2593
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2595
test -z "$ac_dir" && ac_dir=.
2596
tmp_nm="$ac_dir/$lt_tmp_nm"
2597
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2598
# Check to see if the nm accepts a BSD-compat flag.
2599
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2600
# nm: unknown option "B" ignored
2601
# Tru64's nm complains that /dev/null is an invalid object file
2602
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2603
*/dev/null* | *'Invalid file or object type'*)
2604
lt_cv_path_NM="$tmp_nm -B"
2608
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2610
lt_cv_path_NM="$tmp_nm -p"
2614
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2615
continue # so that we can try to find one that supports BSD flags
2624
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2632
# check for math library
2633
AC_DEFUN([AC_CHECK_LIBM],
2634
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2637
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2638
# These system don't have libm, or don't need it
2641
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2642
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2645
AC_CHECK_LIB(m, cos, LIBM="-lm")
2651
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2652
# -----------------------------------
2653
# sets LIBLTDL to the link flags for the libltdl convenience library and
2654
# LTDLINCL to the include flags for the libltdl header and adds
2655
# --enable-ltdl-convenience to the configure arguments. Note that
2656
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2657
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2658
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2659
# (note the single quotes!). If your package is not flat and you're not
2660
# using automake, define top_builddir and top_srcdir appropriately in
2662
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2663
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2664
case $enable_ltdl_convenience in
2665
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2666
"") enable_ltdl_convenience=yes
2667
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2669
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2670
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2671
# For backwards non-gettext consistent compatibility...
2673
])# AC_LIBLTDL_CONVENIENCE
2676
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2677
# -----------------------------------
2678
# sets LIBLTDL to the link flags for the libltdl installable library and
2679
# LTDLINCL to the include flags for the libltdl header and adds
2680
# --enable-ltdl-install to the configure arguments. Note that
2681
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2682
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2683
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2684
# '${top_srcdir}/' (note the single quotes!). If your package is not
2685
# flat and you're not using automake, define top_builddir and top_srcdir
2686
# appropriately in the Makefiles.
2687
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2688
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2689
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2690
AC_CHECK_LIB(ltdl, lt_dlinit,
2691
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2692
[if test x"$enable_ltdl_install" = xno; then
2693
AC_MSG_WARN([libltdl not installed, but installation disabled])
2695
enable_ltdl_install=yes
2698
if test x"$enable_ltdl_install" = x"yes"; then
2699
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2700
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2701
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2703
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2707
# For backwards non-gettext consistent compatibility...
2709
])# AC_LIBLTDL_INSTALLABLE
2714
# enable support for C++ libraries
2715
AC_DEFUN([AC_LIBTOOL_CXX],
2716
[AC_REQUIRE([_LT_AC_LANG_CXX])
2722
AC_DEFUN([_LT_AC_LANG_CXX],
2723
[AC_REQUIRE([AC_PROG_CXX])
2724
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2725
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2728
# _LT_AC_PROG_CXXCPP
2729
# ------------------
2730
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2732
AC_REQUIRE([AC_PROG_CXX])
2733
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2734
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2735
(test "X$CXX" != "Xg++"))) ; then
2738
])# _LT_AC_PROG_CXXCPP
2742
# enable support for Fortran 77 libraries
2743
AC_DEFUN([AC_LIBTOOL_F77],
2744
[AC_REQUIRE([_LT_AC_LANG_F77])
2750
AC_DEFUN([_LT_AC_LANG_F77],
2751
[AC_REQUIRE([AC_PROG_F77])
2752
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2758
# enable support for GCJ libraries
2759
AC_DEFUN([AC_LIBTOOL_GCJ],
2760
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2766
AC_DEFUN([_LT_AC_LANG_GCJ],
2767
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2768
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2769
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2770
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2771
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2772
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2773
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2779
# enable support for Windows resource files
2780
AC_DEFUN([AC_LIBTOOL_RC],
2781
[AC_REQUIRE([LT_AC_PROG_RC])
2782
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2786
# AC_LIBTOOL_LANG_C_CONFIG
2787
# ------------------------
2788
# Ensure that the configuration vars for the C compiler are
2789
# suitably defined. Those variables are subsequently used by
2790
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2791
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2792
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2796
# Source file extension for C test sources.
2799
# Object file extension for compiled C test sources.
2801
_LT_AC_TAGVAR(objext, $1)=$objext
2803
# Code to be used in simple compile tests
2804
lt_simple_compile_test_code="int some_variable = 0;"
2806
# Code to be used in simple link tests
2807
lt_simple_link_test_code='int main(){return(0);}'
2811
# save warnings/boilerplate of simple test code
2812
_LT_COMPILER_BOILERPLATE
2813
_LT_LINKER_BOILERPLATE
2815
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2816
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2817
AC_LIBTOOL_PROG_CC_C_O($1)
2818
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2819
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2820
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2821
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2822
AC_LIBTOOL_SYS_LIB_STRIP
2823
AC_LIBTOOL_DLOPEN_SELF
2825
# Report which library types will actually be built
2826
AC_MSG_CHECKING([if libtool supports shared libraries])
2827
AC_MSG_RESULT([$can_build_shared])
2829
AC_MSG_CHECKING([whether to build shared libraries])
2830
test "$can_build_shared" = "no" && enable_shared=no
2832
# On AIX, shared libraries and static libraries use the same namespace, and
2833
# are all built from PIC.
2836
test "$enable_shared" = yes && enable_static=no
2837
if test -n "$RANLIB"; then
2838
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2839
postinstall_cmds='$RANLIB $lib'
2844
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2845
test "$enable_shared" = yes && enable_static=no
2849
AC_MSG_RESULT([$enable_shared])
2851
AC_MSG_CHECKING([whether to build static libraries])
2852
# Make sure either enable_shared or enable_static is yes.
2853
test "$enable_shared" = yes || enable_static=yes
2854
AC_MSG_RESULT([$enable_static])
2856
AC_LIBTOOL_CONFIG($1)
2860
])# AC_LIBTOOL_LANG_C_CONFIG
2863
# AC_LIBTOOL_LANG_CXX_CONFIG
2864
# --------------------------
2865
# Ensure that the configuration vars for the C compiler are
2866
# suitably defined. Those variables are subsequently used by
2867
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2868
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2869
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2871
AC_REQUIRE([AC_PROG_CXX])
2872
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2874
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2875
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2876
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2877
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2878
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2879
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2880
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2882
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2883
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2884
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2885
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2886
_LT_AC_TAGVAR(module_cmds, $1)=
2887
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2888
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2889
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2890
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2891
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2892
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2894
# Dependencies to place before and after the object being linked:
2895
_LT_AC_TAGVAR(predep_objects, $1)=
2896
_LT_AC_TAGVAR(postdep_objects, $1)=
2897
_LT_AC_TAGVAR(predeps, $1)=
2898
_LT_AC_TAGVAR(postdeps, $1)=
2899
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2900
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2902
# Source file extension for C++ test sources.
2905
# Object file extension for compiled C++ test sources.
2907
_LT_AC_TAGVAR(objext, $1)=$objext
2909
# Code to be used in simple compile tests
2910
lt_simple_compile_test_code="int some_variable = 0;"
2912
# Code to be used in simple link tests
2913
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2915
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2918
# save warnings/boilerplate of simple test code
2919
_LT_COMPILER_BOILERPLATE
2920
_LT_LINKER_BOILERPLATE
2922
# Allow CC to be a program name with arguments.
2927
lt_save_with_gnu_ld=$with_gnu_ld
2928
lt_save_path_LD=$lt_cv_path_LD
2929
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2930
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2932
$as_unset lt_cv_prog_gnu_ld
2934
if test -n "${lt_cv_path_LDCXX+set}"; then
2935
lt_cv_path_LD=$lt_cv_path_LDCXX
2937
$as_unset lt_cv_path_LD
2939
test -z "${LDCXX+set}" || LD=$LDCXX
2942
_LT_AC_TAGVAR(compiler, $1)=$CC
2943
_LT_CC_BASENAME([$compiler])
2945
# We don't want -fno-exception wen compiling C++ code, so set the
2946
# no_builtin_flag separately
2947
if test "$GXX" = yes; then
2948
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2950
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2953
if test "$GXX" = yes; then
2954
# Set up default GNU C++ configuration
2958
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2959
# archiving commands below assume that GNU ld is being used.
2960
if test "$with_gnu_ld" = yes; then
2961
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2962
_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'
2964
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2965
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2967
# If archive_cmds runs LD, not CC, wlarc should be empty
2968
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2969
# investigate it a little bit more. (MM)
2972
# ancient GNU ld didn't support --whole-archive et. al.
2973
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2974
grep 'no-whole-archive' > /dev/null; then
2975
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2977
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2983
# A generic and very simple default shared library creation
2984
# command for GNU C++ for the case where it uses the native
2985
# linker, instead of GNU ld. If possible, this setting should
2986
# overridden to take advantage of the native linker features on
2987
# the platform it is being used on.
2988
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2991
# Commands to make compiler produce verbose output that lists
2992
# what "hidden" libraries, object files and flags are used when
2993
# linking a shared library.
2994
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3002
# PORTME: fill in a description of your system's C++ link characteristics
3003
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3004
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3007
# FIXME: insert proper C++ library support
3008
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3011
if test "$host_cpu" = ia64; then
3012
# On IA64, the linker does run time linking by default, so we don't
3013
# have to do anything special.
3014
aix_use_runtimelinking=no
3015
exp_sym_flag='-Bexport'
3018
aix_use_runtimelinking=no
3020
# Test if we are trying to use run time linking or normal
3021
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3022
# need to do runtime linking.
3023
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3024
for ld_flag in $LDFLAGS; do
3027
aix_use_runtimelinking=yes
3035
exp_sym_flag='-bexport'
3036
no_entry_flag='-bnoentry'
3039
# When large executables or shared objects are built, AIX ld can
3040
# have problems creating the table of contents. If linking a library
3041
# or program results in "error TOC overflow" add -mminimal-toc to
3042
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3043
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3045
_LT_AC_TAGVAR(archive_cmds, $1)=''
3046
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3047
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3048
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3050
if test "$GXX" = yes; then
3051
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3052
# We only want to do this on AIX 4.2 and lower, the check
3053
# below for broken collect2 doesn't work under 4.3+
3054
collect2name=`${CC} -print-prog-name=collect2`
3055
if test -f "$collect2name" && \
3056
strings "$collect2name" | grep resolve_lib_name >/dev/null
3058
# We have reworked collect2
3061
# We have old collect2
3062
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3063
# It fails to find uninstalled libraries when the uninstalled
3064
# path is not listed in the libpath. Setting hardcode_minus_L
3065
# to unsupported forces relinking
3066
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3067
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3068
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3072
shared_flag='-shared'
3073
if test "$aix_use_runtimelinking" = yes; then
3074
shared_flag="$shared_flag "'${wl}-G'
3078
if test "$host_cpu" = ia64; then
3079
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3080
# chokes on -Wl,-G. The following line is correct:
3083
if test "$aix_use_runtimelinking" = yes; then
3084
shared_flag='${wl}-G'
3086
shared_flag='${wl}-bM:SRE'
3091
# It seems that -bexpall does not export symbols beginning with
3092
# underscore (_), so it is better to generate a list of symbols to export.
3093
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3094
if test "$aix_use_runtimelinking" = yes; then
3095
# Warning - without using the other runtime loading flags (-brtl),
3096
# -berok will link without error, but may produce a broken library.
3097
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3098
# Determine the default libpath from the value encoded in an empty executable.
3099
_LT_AC_SYS_LIBPATH_AIX
3100
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3102
_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"
3104
if test "$host_cpu" = ia64; then
3105
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3106
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3107
_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"
3109
# Determine the default libpath from the value encoded in an empty executable.
3110
_LT_AC_SYS_LIBPATH_AIX
3111
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3112
# Warning - without using the other run time loading flags,
3113
# -berok will link without error, but may produce a broken library.
3114
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3115
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3116
# Exported symbols can be pulled into shared objects from archives
3117
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3118
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3119
# This is similar to how AIX traditionally builds its shared libraries.
3120
_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'
3126
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3127
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3128
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3129
# support --undefined. This deserves some investigation. FIXME
3130
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3132
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3137
case $cc_basename in
3139
# FIXME: insert proper C++ library support
3140
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3145
cygwin* | mingw* | pw32*)
3146
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3147
# as there is no search path for DLLs.
3148
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3149
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3150
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3151
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3153
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3154
_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'
3155
# If the export-symbols file already is a .def file (1st line
3156
# is EXPORTS), use it as is; otherwise, prepend...
3157
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3158
cp $export_symbols $output_objdir/$soname.def;
3160
echo EXPORTS > $output_objdir/$soname.def;
3161
cat $export_symbols >> $output_objdir/$soname.def;
3163
$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'
3165
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3168
darwin* | rhapsody*)
3169
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3170
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3171
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3172
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3173
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3174
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3175
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3176
if test "$GXX" = yes ; then
3177
output_verbose_link_cmd='echo'
3178
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3179
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3180
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3181
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3182
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3183
_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${_lt_dsymutil}"
3184
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed '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${_lt_dar_export_syms}${_lt_dsymutil}"
3187
case $cc_basename in
3189
output_verbose_link_cmd='echo'
3190
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3191
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3192
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3193
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3194
_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}'
3197
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3204
case $cc_basename in
3206
# FIXME: insert proper C++ library support
3207
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3210
# Green Hills C++ Compiler
3211
# FIXME: insert proper C++ library support
3212
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3215
# FIXME: insert proper C++ library support
3216
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3221
# C++ shared libraries reported to be fairly broken before switch to ELF
3222
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3225
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3227
freebsd* | dragonfly*)
3228
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3230
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3235
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3236
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3237
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3238
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3239
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3240
# but as the default
3241
# location of the library.
3243
case $cc_basename in
3245
# FIXME: insert proper C++ library support
3246
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3249
_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'
3250
# Commands to make compiler produce verbose output that lists
3251
# what "hidden" libraries, object files and flags are used when
3252
# linking a shared library.
3254
# There doesn't appear to be a way to prevent this compiler from
3255
# explicitly linking system object files so we need to strip them
3256
# from the output so that they don't get included in the library
3258
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'
3261
if test "$GXX" = yes; then
3262
_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'
3264
# FIXME: insert proper C++ library support
3265
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3271
if test $with_gnu_ld = no; then
3272
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3273
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3278
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3284
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3285
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3288
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3289
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3290
# but as the default
3291
# location of the library.
3295
case $cc_basename in
3297
# FIXME: insert proper C++ library support
3298
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3303
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3306
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3309
_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'
3312
# Commands to make compiler produce verbose output that lists
3313
# what "hidden" libraries, object files and flags are used when
3314
# linking a shared library.
3316
# There doesn't appear to be a way to prevent this compiler from
3317
# explicitly linking system object files so we need to strip them
3318
# from the output so that they don't get included in the library
3320
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'
3323
if test "$GXX" = yes; then
3324
if test $with_gnu_ld = no; then
3327
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3330
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3333
_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'
3338
# FIXME: insert proper C++ library support
3339
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3345
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3346
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3347
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3348
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3349
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3350
# Instead, shared libraries are loaded at an image base (0x10000000 by
3351
# default) and relocated if they conflict, which is a slow very memory
3352
# consuming and fragmenting process. To avoid this, we pick a random,
3353
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3354
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3355
_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'
3356
_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'
3359
case $cc_basename in
3362
_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'
3364
# Archives containing C++ object files must be created using
3365
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3366
# necessary to make sure instantiated templates are included
3368
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3371
if test "$GXX" = yes; then
3372
if test "$with_gnu_ld" = no; then
3373
_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'
3375
_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'
3378
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3381
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3382
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3384
linux* | k*bsd*-gnu)
3385
case $cc_basename in
3387
# Kuck and Associates, Inc. (KAI) C++ Compiler
3389
# KCC will only create a shared library if the output file
3390
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3391
# to its proper name (with version) after linking.
3392
_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'
3393
_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'
3394
# Commands to make compiler produce verbose output that lists
3395
# what "hidden" libraries, object files and flags are used when
3396
# linking a shared library.
3398
# There doesn't appear to be a way to prevent this compiler from
3399
# explicitly linking system object files so we need to strip them
3400
# from the output so that they don't get included in the library
3402
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'
3404
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3405
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3407
# Archives containing C++ object files must be created using
3408
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3409
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3414
# version 8.0 and above of icpc choke on multiply defined symbols
3415
# if we add $predep_objects and $postdep_objects, however 7.1 and
3416
# earlier do not add the objects themselves.
3417
case `$CC -V 2>&1` in
3419
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3420
_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'
3422
*) # Version 8.0 or newer
3425
ia64*) tmp_idyn=' -i_dynamic';;
3427
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3428
_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'
3431
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3432
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3433
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3434
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3437
# Portland Group C++ compiler
3438
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3439
_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'
3441
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3442
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3443
_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'
3447
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3448
_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'
3450
runpath_var=LD_RUN_PATH
3451
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3452
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3454
# Commands to make compiler produce verbose output that lists
3455
# what "hidden" libraries, object files and flags are used when
3456
# linking a shared library.
3458
# There doesn't appear to be a way to prevent this compiler from
3459
# explicitly linking system object files so we need to strip them
3460
# from the output so that they don't get included in the library
3462
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'
3465
case `$CC -V 2>&1 | sed 5q` in
3468
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3469
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3470
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3471
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3472
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3474
# Not sure whether something based on
3475
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3477
output_verbose_link_cmd='echo'
3479
# Archives containing C++ object files must be created using
3480
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3481
# necessary to make sure instantiated templates are included
3483
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3490
# FIXME: insert proper C++ library support
3491
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3494
# FIXME: insert proper C++ library support
3495
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3498
case $cc_basename in
3500
# FIXME: insert proper C++ library support
3501
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3504
# FIXME: insert proper C++ library support
3505
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3510
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3511
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3513
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3514
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3515
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3517
# Workaround some broken pre-1.5 toolchains
3518
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3521
# C++ shared libraries are fairly broken
3522
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3525
if test -f /usr/libexec/ld.so; then
3526
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3527
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3528
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3529
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3530
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3531
_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'
3532
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3533
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3535
output_verbose_link_cmd='echo'
3537
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3541
case $cc_basename in
3543
# Kuck and Associates, Inc. (KAI) C++ Compiler
3545
# KCC will only create a shared library if the output file
3546
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3547
# to its proper name (with version) after linking.
3548
_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'
3550
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3551
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3553
# Archives containing C++ object files must be created using
3554
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3555
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3559
# Rational C++ 2.4.1
3560
# FIXME: insert proper C++ library support
3561
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3564
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3565
_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'
3567
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3568
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3570
# Commands to make compiler produce verbose output that lists
3571
# what "hidden" libraries, object files and flags are used when
3572
# linking a shared library.
3574
# There doesn't appear to be a way to prevent this compiler from
3575
# explicitly linking system object files so we need to strip them
3576
# from the output so that they don't get included in the library
3578
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'
3581
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3582
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3583
_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'
3585
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3586
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3588
# Commands to make compiler produce verbose output that lists
3589
# what "hidden" libraries, object files and flags are used when
3590
# linking a shared library.
3591
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3594
# FIXME: insert proper C++ library support
3595
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3601
case $cc_basename in
3603
# Kuck and Associates, Inc. (KAI) C++ Compiler
3605
# KCC will only create a shared library if the output file
3606
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3607
# to its proper name (with version) after linking.
3608
_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'
3610
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3611
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3613
# Archives containing C++ object files must be created using
3614
# the KAI C++ compiler.
3615
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3618
# Rational C++ 2.4.1
3619
# FIXME: insert proper C++ library support
3620
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3623
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3624
_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'
3625
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3626
echo "-hidden">> $lib.exp~
3627
$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~
3630
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3631
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3633
# Commands to make compiler produce verbose output that lists
3634
# what "hidden" libraries, object files and flags are used when
3635
# linking a shared library.
3637
# There doesn't appear to be a way to prevent this compiler from
3638
# explicitly linking system object files so we need to strip them
3639
# from the output so that they don't get included in the library
3641
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'
3644
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3645
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3646
_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'
3648
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3649
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3651
# Commands to make compiler produce verbose output that lists
3652
# what "hidden" libraries, object files and flags are used when
3653
# linking a shared library.
3654
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3657
# FIXME: insert proper C++ library support
3658
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3664
# FIXME: insert proper C++ library support
3665
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3668
case $cc_basename in
3671
# FIXME: insert proper C++ library support
3672
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3676
# FIXME: insert proper C++ library support
3677
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3680
# FIXME: insert proper C++ library support
3681
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3686
case $cc_basename in
3688
# Sun C++ 4.2, 5.x and Centerline C++
3689
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3690
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3691
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3692
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3693
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3695
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3696
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3698
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3700
# The compiler driver will combine and reorder linker options,
3701
# but understands `-z linker_flag'.
3702
# Supported since Solaris 2.6 (maybe 2.5.1?)
3703
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3706
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3708
output_verbose_link_cmd='echo'
3710
# Archives containing C++ object files must be created using
3711
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3712
# necessary to make sure instantiated templates are included
3714
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3717
# Green Hills C++ Compiler
3718
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3720
# The C++ compiler must be used to create the archive.
3721
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3724
# GNU C++ compiler with Solaris linker
3725
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3726
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3727
if $CC --version | grep -v '^2\.7' > /dev/null; then
3728
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3729
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3730
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3732
# Commands to make compiler produce verbose output that lists
3733
# what "hidden" libraries, object files and flags are used when
3734
# linking a shared library.
3735
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3737
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3739
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3740
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3741
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3743
# Commands to make compiler produce verbose output that lists
3744
# what "hidden" libraries, object files and flags are used when
3745
# linking a shared library.
3746
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3749
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3751
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3753
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3760
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3761
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3762
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3763
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3764
runpath_var='LD_RUN_PATH'
3766
case $cc_basename in
3768
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3769
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3772
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3773
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3777
sysv5* | sco3.2v5* | sco5v6*)
3778
# Note: We can NOT use -z defs as we might desire, because we do not
3779
# link with -lc, and that would cause any symbols used from libc to
3780
# always be unresolved, which means just about no library would
3781
# ever link correctly. If we're not using GNU ld we use -z text
3782
# though, which does catch some bad symbols but isn't as heavy-handed
3784
# For security reasons, it is highly recommended that you always
3785
# use absolute paths for naming shared libraries, and exclude the
3786
# DT_RUNPATH tag from executables and libraries. But doing so
3787
# requires that you compile everything twice, which is a pain.
3788
# So that behaviour is only enabled if SCOABSPATH is set to a
3789
# non-empty value in the environment. Most likely only useful for
3790
# creating official distributions of packages.
3791
# This is a hack until libtool officially supports absolute path
3792
# names for shared libraries.
3793
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3794
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3795
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3796
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3797
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3798
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3799
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3800
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3801
runpath_var='LD_RUN_PATH'
3803
case $cc_basename in
3805
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3806
_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'
3809
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3810
_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'
3815
case $cc_basename in
3817
# NonStop-UX NCC 3.20
3818
# FIXME: insert proper C++ library support
3819
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3822
# FIXME: insert proper C++ library support
3823
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3828
# FIXME: insert proper C++ library support
3829
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3832
# FIXME: insert proper C++ library support
3833
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3836
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3837
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3839
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3840
_LT_AC_TAGVAR(LD, $1)="$LD"
3842
AC_LIBTOOL_POSTDEP_PREDEP($1)
3843
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3844
AC_LIBTOOL_PROG_CC_C_O($1)
3845
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3846
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3847
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3848
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3850
AC_LIBTOOL_CONFIG($1)
3857
with_gnu_ldcxx=$with_gnu_ld
3858
with_gnu_ld=$lt_save_with_gnu_ld
3859
lt_cv_path_LDCXX=$lt_cv_path_LD
3860
lt_cv_path_LD=$lt_save_path_LD
3861
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3862
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3863
])# AC_LIBTOOL_LANG_CXX_CONFIG
3865
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3866
# ------------------------------------
3867
# Figure out "hidden" library dependencies from verbose
3868
# compiler output when linking a shared library.
3869
# Parse the compiler output and extract the necessary
3870
# objects, libraries and library flags.
3871
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3872
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3873
dnl we can't use the lt_simple_compile_test_code here,
3874
dnl because it contains code intended for an executable,
3875
dnl not a library. It's possible we should let each
3876
dnl tag define a new lt_????_link_test_code variable,
3877
dnl but it's only used here...
3878
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3880
void foo (void) { a = 0; }
3882
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3886
Foo (void) { a = 0; }
3891
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3899
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3902
public void bar (void) {
3908
dnl Parse the compiler output and extract the necessary
3909
dnl objects, libraries and library flags.
3910
if AC_TRY_EVAL(ac_compile); then
3911
# Parse the compiler output and extract the necessary
3912
# objects, libraries and library flags.
3914
# Sentinel used to keep track of whether or not we are before
3915
# the conftest object file.
3916
pre_test_object_deps_done=no
3918
# The `*' in the case matches for architectures that use `case' in
3919
# $output_verbose_cmd can trigger glob expansion during the loop
3920
# eval without this substitution.
3921
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3923
for p in `eval $output_verbose_link_cmd`; do
3927
# Some compilers place space between "-{L,R}" and the path.
3930
|| test $p = "-R"; then
3937
if test "$pre_test_object_deps_done" = no; then
3940
# Internal compiler library paths should come after those
3941
# provided the user. The postdeps already come after the
3942
# user supplied libs so there is no need to process them.
3943
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3944
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3946
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3949
# The "-l" case would never come before the object being
3950
# linked, so don't bother handling this case.
3953
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3954
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3956
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3962
# This assumes that the test object file only shows up
3963
# once in the compiler output.
3964
if test "$p" = "conftest.$objext"; then
3965
pre_test_object_deps_done=yes
3969
if test "$pre_test_object_deps_done" = no; then
3970
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3971
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3973
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3976
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3977
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3979
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3984
*) ;; # Ignore the rest.
3992
echo "libtool.m4: error: problem compiling $1 test program"
3995
$rm -f confest.$objext
3997
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3998
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3999
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4002
# PORTME: override above test on systems where it is broken
4006
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4007
# hack all around it, let's just trust "g++" to DTRT.
4008
_LT_AC_TAGVAR(predep_objects,$1)=
4009
_LT_AC_TAGVAR(postdep_objects,$1)=
4010
_LT_AC_TAGVAR(postdeps,$1)=
4014
case `$CC -V 2>&1 | sed 5q` in
4018
# The more standards-conforming stlport4 library is
4019
# incompatible with the Cstd library. Avoid specifying
4020
# it if it's in CXXFLAGS. Ignore libCrun as
4021
# -library=stlport4 depends on it.
4022
case " $CXX $CXXFLAGS " in
4023
*" -library=stlport4 "*)
4024
solaris_use_stlport4=yes
4027
if test "$solaris_use_stlport4" != yes; then
4028
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4035
case $cc_basename in
4037
# The more standards-conforming stlport4 library is
4038
# incompatible with the Cstd library. Avoid specifying
4039
# it if it's in CXXFLAGS. Ignore libCrun as
4040
# -library=stlport4 depends on it.
4041
case " $CXX $CXXFLAGS " in
4042
*" -library=stlport4 "*)
4043
solaris_use_stlport4=yes
4047
# Adding this requires a known-good setup of shared libraries for
4048
# Sun compiler versions before 5.6, else PIC objects from an old
4049
# archive will be linked into the output, leading to subtle bugs.
4050
if test "$solaris_use_stlport4" != yes; then
4051
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4058
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4059
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4061
])# AC_LIBTOOL_POSTDEP_PREDEP
4063
# AC_LIBTOOL_LANG_F77_CONFIG
4064
# --------------------------
4065
# Ensure that the configuration vars for the C compiler are
4066
# suitably defined. Those variables are subsequently used by
4067
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4068
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4069
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4070
[AC_REQUIRE([AC_PROG_F77])
4071
AC_LANG_PUSH(Fortran 77)
4073
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4074
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4075
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4076
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4077
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4078
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4079
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4080
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4081
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4082
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4083
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4084
_LT_AC_TAGVAR(module_cmds, $1)=
4085
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4086
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4087
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4088
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4089
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4090
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4092
# Source file extension for f77 test sources.
4095
# Object file extension for compiled f77 test sources.
4097
_LT_AC_TAGVAR(objext, $1)=$objext
4099
# Code to be used in simple compile tests
4100
lt_simple_compile_test_code="\
4106
# Code to be used in simple link tests
4107
lt_simple_link_test_code="\
4112
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4115
# save warnings/boilerplate of simple test code
4116
_LT_COMPILER_BOILERPLATE
4117
_LT_LINKER_BOILERPLATE
4119
# Allow CC to be a program name with arguments.
4123
_LT_AC_TAGVAR(compiler, $1)=$CC
4124
_LT_CC_BASENAME([$compiler])
4126
AC_MSG_CHECKING([if libtool supports shared libraries])
4127
AC_MSG_RESULT([$can_build_shared])
4129
AC_MSG_CHECKING([whether to build shared libraries])
4130
test "$can_build_shared" = "no" && enable_shared=no
4132
# On AIX, shared libraries and static libraries use the same namespace, and
4133
# are all built from PIC.
4136
test "$enable_shared" = yes && enable_static=no
4137
if test -n "$RANLIB"; then
4138
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4139
postinstall_cmds='$RANLIB $lib'
4143
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4144
test "$enable_shared" = yes && enable_static=no
4148
AC_MSG_RESULT([$enable_shared])
4150
AC_MSG_CHECKING([whether to build static libraries])
4151
# Make sure either enable_shared or enable_static is yes.
4152
test "$enable_shared" = yes || enable_static=yes
4153
AC_MSG_RESULT([$enable_static])
4155
_LT_AC_TAGVAR(GCC, $1)="$G77"
4156
_LT_AC_TAGVAR(LD, $1)="$LD"
4158
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4159
AC_LIBTOOL_PROG_CC_C_O($1)
4160
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4161
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4162
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4163
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4165
AC_LIBTOOL_CONFIG($1)
4169
])# AC_LIBTOOL_LANG_F77_CONFIG
4172
# AC_LIBTOOL_LANG_GCJ_CONFIG
4173
# --------------------------
4174
# Ensure that the configuration vars for the C compiler are
4175
# suitably defined. Those variables are subsequently used by
4176
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4177
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4178
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4181
# Source file extension for Java test sources.
4184
# Object file extension for compiled Java test sources.
4186
_LT_AC_TAGVAR(objext, $1)=$objext
4188
# Code to be used in simple compile tests
4189
lt_simple_compile_test_code="class foo {}"
4191
# Code to be used in simple link tests
4192
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4194
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4197
# save warnings/boilerplate of simple test code
4198
_LT_COMPILER_BOILERPLATE
4199
_LT_LINKER_BOILERPLATE
4201
# Allow CC to be a program name with arguments.
4205
_LT_AC_TAGVAR(compiler, $1)=$CC
4206
_LT_CC_BASENAME([$compiler])
4208
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4209
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4211
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4213
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4214
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4215
AC_LIBTOOL_PROG_CC_C_O($1)
4216
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4217
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4218
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4219
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4221
AC_LIBTOOL_CONFIG($1)
4225
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4228
# AC_LIBTOOL_LANG_RC_CONFIG
4229
# -------------------------
4230
# Ensure that the configuration vars for the Windows resource compiler are
4231
# suitably defined. Those variables are subsequently used by
4232
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4233
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4234
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4237
# Source file extension for RC test sources.
4240
# Object file extension for compiled RC test sources.
4242
_LT_AC_TAGVAR(objext, $1)=$objext
4244
# Code to be used in simple compile tests
4245
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4247
# Code to be used in simple link tests
4248
lt_simple_link_test_code="$lt_simple_compile_test_code"
4250
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4253
# save warnings/boilerplate of simple test code
4254
_LT_COMPILER_BOILERPLATE
4255
_LT_LINKER_BOILERPLATE
4257
# Allow CC to be a program name with arguments.
4261
_LT_AC_TAGVAR(compiler, $1)=$CC
4262
_LT_CC_BASENAME([$compiler])
4263
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4265
AC_LIBTOOL_CONFIG($1)
4269
])# AC_LIBTOOL_LANG_RC_CONFIG
4272
# AC_LIBTOOL_CONFIG([TAGNAME])
4273
# ----------------------------
4274
# If TAGNAME is not passed, then create an initial libtool script
4275
# with a default configuration from the untagged config vars. Otherwise
4276
# add code to config.status for appending the configuration named by
4277
# TAGNAME from the matching tagged config vars.
4278
AC_DEFUN([AC_LIBTOOL_CONFIG],
4279
[# The else clause should only fire when bootstrapping the
4280
# libtool distribution, otherwise you forgot to ship ltmain.sh
4281
# with your package, and you will get complaints that there are
4282
# no rules to generate ltmain.sh.
4283
if test -f "$ltmain"; then
4284
# See if we are running on zsh, and set the options which allow our commands through
4285
# without removal of \ escapes.
4286
if test -n "${ZSH_VERSION+set}" ; then
4287
setopt NO_GLOB_SUBST
4289
# Now quote all the things that may contain metacharacters while being
4290
# careful not to overquote the AC_SUBSTed values. We take copies of the
4291
# variables and quote the copies for generation of the libtool script.
4292
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4294
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4295
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4296
deplibs_check_method reload_flag reload_cmds need_locks \
4297
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4298
lt_cv_sys_global_symbol_to_c_name_address \
4299
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4300
old_postinstall_cmds old_postuninstall_cmds \
4301
_LT_AC_TAGVAR(compiler, $1) \
4302
_LT_AC_TAGVAR(CC, $1) \
4303
_LT_AC_TAGVAR(LD, $1) \
4304
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4305
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4306
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4307
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4308
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4309
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4310
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4311
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4312
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4313
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4314
_LT_AC_TAGVAR(predep_objects, $1) \
4315
_LT_AC_TAGVAR(postdep_objects, $1) \
4316
_LT_AC_TAGVAR(predeps, $1) \
4317
_LT_AC_TAGVAR(postdeps, $1) \
4318
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4319
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4320
_LT_AC_TAGVAR(archive_cmds, $1) \
4321
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4322
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4323
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4324
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4325
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4326
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4327
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4328
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4329
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4330
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4331
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4332
_LT_AC_TAGVAR(module_cmds, $1) \
4333
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4334
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4335
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4336
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4337
_LT_AC_TAGVAR(include_expsyms, $1); do
4340
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4341
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4342
_LT_AC_TAGVAR(archive_cmds, $1) | \
4343
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4344
_LT_AC_TAGVAR(module_cmds, $1) | \
4345
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4346
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4347
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4348
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4349
postinstall_cmds | postuninstall_cmds | \
4350
old_postinstall_cmds | old_postuninstall_cmds | \
4351
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4352
# Double-quote double-evaled strings.
4353
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4356
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4362
*'\[$]0 --fallback-echo"')
4363
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4368
[cfgfile="${ofile}T"
4369
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4371
AC_MSG_NOTICE([creating $ofile])],
4374
cat <<__EOF__ >> "$cfgfile"
4378
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4379
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4380
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4382
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4383
# Free Software Foundation, Inc.
4385
# This file is part of GNU Libtool:
4386
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4388
# This program is free software; you can redistribute it and/or modify
4389
# it under the terms of the GNU General Public License as published by
4390
# the Free Software Foundation; either version 2 of the License, or
4391
# (at your option) any later version.
4393
# This program is distributed in the hope that it will be useful, but
4394
# WITHOUT ANY WARRANTY; without even the implied warranty of
4395
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4396
# General Public License for more details.
4398
# You should have received a copy of the GNU General Public License
4399
# along with this program; if not, write to the Free Software
4400
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4402
# As a special exception to the GNU General Public License, if you
4403
# distribute this file as part of a program that contains a
4404
# configuration script generated by Autoconf, you may include it under
4405
# the same distribution terms that you use for the rest of that program.
4407
# A sed program that does not truncate output.
4410
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4411
Xsed="$SED -e 1s/^X//"
4413
# The HP-UX ksh and POSIX shell print the target directory to stdout
4415
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4417
# The names of the tagged configurations supported by this script.
4420
# ### BEGIN LIBTOOL CONFIG],
4421
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4423
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4425
# Shell to use when invoking shell scripts.
4428
# Whether or not to build shared libraries.
4429
build_libtool_libs=$enable_shared
4431
# Whether or not to build static libraries.
4432
build_old_libs=$enable_static
4434
# Whether or not to add -lc for building shared libraries.
4435
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4437
# Whether or not to disallow shared libs when runtime libs are static
4438
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4440
# Whether or not to optimize for fast installation.
4441
fast_install=$enable_fast_install
4444
host_alias=$host_alias
4449
build_alias=$build_alias
4453
# An echo program that does not interpret backslashes.
4458
AR_FLAGS=$lt_AR_FLAGS
4463
# LTCC compiler flags.
4464
LTCFLAGS=$lt_LTCFLAGS
4466
# A language-specific compiler.
4467
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4469
# Is the compiler the GNU C compiler?
4470
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4475
# The linker used to build libraries.
4476
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4478
# Whether we need hard or soft links.
4481
# A BSD-compatible nm program.
4484
# A symbol stripping program
4487
# Used to examine libraries when file_magic_cmd begins "file"
4488
MAGIC_CMD=$MAGIC_CMD
4490
# Used on cygwin: DLL creation program.
4493
# Used on cygwin: object dumper.
4496
# Used on cygwin: assembler.
4499
# The name of the directory that contains temporary libtool files.
4502
# How to create reloadable object files.
4503
reload_flag=$lt_reload_flag
4504
reload_cmds=$lt_reload_cmds
4506
# How to pass a linker flag through the compiler.
4507
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4509
# Object file suffix (normally "o").
4512
# Old archive suffix (normally "a").
4515
# Shared library suffix (normally ".so").
4516
shrext_cmds='$shrext_cmds'
4518
# Executable file suffix (normally "").
4521
# Additional compiler flags for building library objects.
4522
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4525
# What is the maximum length of a command?
4526
max_cmd_len=$lt_cv_sys_max_cmd_len
4528
# Does compiler simultaneously support -c and -o options?
4529
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4531
# Must we lock files when doing compilation?
4532
need_locks=$lt_need_locks
4534
# Do we need the lib prefix for modules?
4535
need_lib_prefix=$need_lib_prefix
4537
# Do we need a version for libraries?
4538
need_version=$need_version
4540
# Whether dlopen is supported.
4541
dlopen_support=$enable_dlopen
4543
# Whether dlopen of programs is supported.
4544
dlopen_self=$enable_dlopen_self
4546
# Whether dlopen of statically linked programs is supported.
4547
dlopen_self_static=$enable_dlopen_self_static
4549
# Compiler flag to prevent dynamic linking.
4550
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4552
# Compiler flag to turn off builtin functions.
4553
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4555
# Compiler flag to allow reflexive dlopens.
4556
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4558
# Compiler flag to generate shared objects directly from archives.
4559
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4561
# Compiler flag to generate thread-safe objects.
4562
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4564
# Library versioning type.
4565
version_type=$version_type
4567
# Format of library name prefix.
4568
libname_spec=$lt_libname_spec
4570
# List of archive names. First name is the real one, the rest are links.
4571
# The last name is the one that the linker finds with -lNAME.
4572
library_names_spec=$lt_library_names_spec
4574
# The coded name of the library, if different from the real name.
4575
soname_spec=$lt_soname_spec
4577
# Commands used to build and install an old-style archive.
4579
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4580
old_postinstall_cmds=$lt_old_postinstall_cmds
4581
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4583
# Create an old-style archive from a shared archive.
4584
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4586
# Create a temporary old-style archive to link instead of a shared archive.
4587
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4589
# Commands used to build and install a shared archive.
4590
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4591
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4592
postinstall_cmds=$lt_postinstall_cmds
4593
postuninstall_cmds=$lt_postuninstall_cmds
4595
# Commands used to build a loadable module (assumed same as above if empty)
4596
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4597
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4599
# Commands to strip libraries.
4600
old_striplib=$lt_old_striplib
4601
striplib=$lt_striplib
4603
# Dependencies to place before the objects being linked to create a
4605
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4607
# Dependencies to place after the objects being linked to create a
4609
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4611
# Dependencies to place before the objects being linked to create a
4613
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4615
# Dependencies to place after the objects being linked to create a
4617
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4619
# The directories searched by this compiler when creating a shared
4621
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4623
# The library search path used internally by the compiler when linking
4625
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4627
# Method to check whether dependent libraries are shared objects.
4628
deplibs_check_method=$lt_deplibs_check_method
4630
# Command to use when deplibs_check_method == file_magic.
4631
file_magic_cmd=$lt_file_magic_cmd
4633
# Flag that allows shared libraries with undefined symbols to be built.
4634
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4636
# Flag that forces no undefined symbols.
4637
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4639
# Commands used to finish a libtool library installation in a directory.
4640
finish_cmds=$lt_finish_cmds
4642
# Same as above, but a single script fragment to be evaled but not shown.
4643
finish_eval=$lt_finish_eval
4645
# Take the output of nm and produce a listing of raw symbols and C names.
4646
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4648
# Transform the output of nm in a proper C declaration
4649
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4651
# Transform the output of nm in a C name address pair
4652
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4654
# This is the shared library runtime path variable.
4655
runpath_var=$runpath_var
4657
# This is the shared library path variable.
4658
shlibpath_var=$shlibpath_var
4660
# Is shlibpath searched before the hard-coded library search path?
4661
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4663
# How to hardcode a shared library path into an executable.
4664
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4666
# Whether we should hardcode library paths into libraries.
4667
hardcode_into_libs=$hardcode_into_libs
4669
# Flag to hardcode \$libdir into a binary during linking.
4670
# This must work even if \$libdir does not exist.
4671
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4673
# If ld is used when linking, flag to hardcode \$libdir into
4674
# a binary during linking. This must work even if \$libdir does
4676
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4678
# Whether we need a single -rpath flag with a separated argument.
4679
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4681
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4683
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4685
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4687
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4689
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4690
# the resulting binary.
4691
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4693
# Set to yes if building a shared library automatically hardcodes DIR into the library
4694
# and all subsequent libraries and executables linked against it.
4695
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4697
# Variables whose values should be saved in libtool wrapper scripts and
4698
# restored at relink time.
4699
variables_saved_for_relink="$variables_saved_for_relink"
4701
# Whether libtool must link a program against all its dependency libraries.
4702
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4704
# Compile-time system search path for libraries
4705
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4707
# Run-time system search path for libraries
4708
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4710
# Fix the shell variable \$srcfile for the compiler.
4711
fix_srcfile_path=$lt_fix_srcfile_path
4713
# Set to yes if exported symbols are required.
4714
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4716
# The commands to list exported symbols.
4717
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4719
# The commands to extract the exported symbol list from a shared archive.
4720
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4722
# Symbols that should not be listed in the preloaded symbols.
4723
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4725
# Symbols that must always be exported.
4726
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4729
[# ### END LIBTOOL CONFIG],
4730
[# ### END LIBTOOL TAG CONFIG: $tagname])
4737
cat <<\EOF >> "$cfgfile"
4739
# AIX sometimes has problems with the GCC collect2 program. For some
4740
# reason, if we set the COLLECT_NAMES environment variable, the problems
4741
# vanish in a puff of smoke.
4742
if test "X${COLLECT_NAMES+set}" != Xset; then
4744
export COLLECT_NAMES
4750
# We use sed instead of cat because bash on DJGPP gets confused if
4751
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4752
# text mode, it properly converts lines to CR/LF. This bash problem
4753
# is reportedly fixed, but why not run on old versions too?
4754
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4756
mv -f "$cfgfile" "$ofile" || \
4757
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4761
# If there is no Makefile yet, we rely on a make rule to execute
4762
# `config.status --recheck' to rerun these tests and create the
4763
# libtool script then.
4764
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4765
if test -f "$ltmain_in"; then
4766
test -f Makefile && make "$ltmain"
4769
])# AC_LIBTOOL_CONFIG
4772
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4773
# -------------------------------------------
4774
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4775
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4777
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4779
if test "$GCC" = yes; then
4780
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4782
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4783
lt_cv_prog_compiler_rtti_exceptions,
4784
[-fno-rtti -fno-exceptions], [],
4785
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4787
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4790
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4791
# ---------------------------------
4792
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4793
[AC_REQUIRE([AC_CANONICAL_HOST])
4794
AC_REQUIRE([LT_AC_PROG_SED])
4795
AC_REQUIRE([AC_PROG_NM])
4796
AC_REQUIRE([AC_OBJEXT])
4797
# Check for command to grab the raw symbol name followed by C symbol from nm.
4798
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4799
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4801
# These are sane defaults that work on at least a few old systems.
4802
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4804
# Character class describing NM global symbol codes.
4805
symcode='[[BCDEGRST]]'
4807
# Regexp to match symbols that can be accessed directly from C.
4808
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4810
# Transform an extracted symbol line into a proper C declaration
4811
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4813
# Transform an extracted symbol line into symbol name and symbol address
4814
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'"
4816
# Define system-specific variables.
4821
cygwin* | mingw* | pw32*)
4822
symcode='[[ABCDGISTW]]'
4824
hpux*) # Its linker distinguishes data from code symbols
4825
if test "$host_cpu" = ia64; then
4826
symcode='[[ABCDEGRST]]'
4828
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4829
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'"
4831
linux* | k*bsd*-gnu)
4832
if test "$host_cpu" = ia64; then
4833
symcode='[[ABCDGIRSTW]]'
4834
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4835
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'"
4839
symcode='[[BCDEGRST]]'
4842
symcode='[[BCDEGQRST]]'
4853
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4857
symcode='[[DFNSTU]]'
4861
# Handle CRLF in mingw tool chain
4865
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4869
# If we're using GNU nm, then use its standard symbol codes.
4870
case `$NM -V 2>&1` in
4871
*GNU* | *'with BFD'*)
4872
symcode='[[ABCDGIRSTW]]' ;;
4875
# Try without a prefix undercore, then with it.
4876
for ac_symprfx in "" "_"; do
4878
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4879
symxfrm="\\1 $ac_symprfx\\2 \\2"
4881
# Write the raw and C identifiers.
4882
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4884
# Check to see that the pipe works correctly.
4888
cat > conftest.$ac_ext <<EOF
4893
void nm_test_func(){}
4897
int main(){nm_test_var='a';nm_test_func();return(0);}
4900
if AC_TRY_EVAL(ac_compile); then
4901
# Now try to grab the symbols.
4903
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4904
# Try sorting and uniquifying the output.
4905
if sort "$nlist" | uniq > "$nlist"T; then
4906
mv -f "$nlist"T "$nlist"
4911
# Make sure that we snagged all the symbols we need.
4912
if grep ' nm_test_var$' "$nlist" >/dev/null; then
4913
if grep ' nm_test_func$' "$nlist" >/dev/null; then
4914
cat <<EOF > conftest.$ac_ext
4920
# Now generate the symbol file.
4921
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4923
cat <<EOF >> conftest.$ac_ext
4924
#if defined (__STDC__) && __STDC__
4925
# define lt_ptr_t void *
4927
# define lt_ptr_t char *
4931
/* The mapping between symbol names and symbols. */
4936
lt_preloaded_symbols[[]] =
4939
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4940
cat <<\EOF >> conftest.$ac_ext
4948
# Now try linking the two files.
4949
mv conftest.$ac_objext conftstm.$ac_objext
4950
lt_save_LIBS="$LIBS"
4951
lt_save_CFLAGS="$CFLAGS"
4952
LIBS="conftstm.$ac_objext"
4953
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4954
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4957
LIBS="$lt_save_LIBS"
4958
CFLAGS="$lt_save_CFLAGS"
4960
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4963
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4966
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4969
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4970
cat conftest.$ac_ext >&5
4972
rm -rf conftest* conftst*
4974
# Do not use the global_symbol_pipe unless it works.
4975
if test "$pipe_works" = yes; then
4978
lt_cv_sys_global_symbol_pipe=
4982
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4983
lt_cv_sys_global_symbol_to_cdecl=
4985
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4986
AC_MSG_RESULT(failed)
4990
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4993
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4994
# ---------------------------------------
4995
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4996
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4997
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4998
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5000
AC_MSG_CHECKING([for $compiler option to produce PIC])
5002
# C++ specific cases for pic, static, wl, etc.
5003
if test "$GXX" = yes; then
5004
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5005
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5009
# All AIX code is PIC.
5010
if test "$host_cpu" = ia64; then
5011
# AIX 5 now supports IA64 processor
5012
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5016
# FIXME: we need at least 68020 code to build shared libraries, but
5017
# adding the `-m68020' flag to GCC prevents building anything better,
5019
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5021
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5022
# PIC is the default for these OSes.
5024
mingw* | cygwin* | os2* | pw32*)
5025
# This hack is so that the source file can tell whether it is being
5026
# built for inclusion in a dll (and should export symbols for example).
5027
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5028
# (--disable-auto-import) libraries
5029
m4_if([$1], [GCJ], [],
5030
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5032
darwin* | rhapsody*)
5033
# PIC is the default on this platform
5034
# Common symbols not allowed in MH_DYLIB files
5035
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5038
# DJGPP does not support shared libraries at all
5039
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5042
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5043
# Instead, we relocate shared libraries at runtime.
5046
if test -d /usr/nec; then
5047
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5051
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5057
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5062
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5068
# All AIX code is PIC.
5069
if test "$host_cpu" = ia64; then
5070
# AIX 5 now supports IA64 processor
5071
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5073
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5077
case $cc_basename in
5079
# Green Hills C++ Compiler
5080
# _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"
5085
# PIC is the default on this platform
5086
# Common symbols not allowed in MH_DYLIB files
5087
case $cc_basename in
5089
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5090
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5095
case $cc_basename in
5097
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5100
# Green Hills C++ Compiler
5101
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5107
freebsd* | dragonfly*)
5108
# FreeBSD uses GNU C++
5110
hpux9* | hpux10* | hpux11*)
5111
case $cc_basename in
5113
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5114
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5115
if test "$host_cpu" != ia64; then
5116
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5120
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5121
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5127
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5136
# This is c89, which is MS Visual C++ (no shared libs)
5137
# Anyone wants to do a port?
5139
irix5* | irix6* | nonstopux*)
5140
case $cc_basename in
5142
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5143
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5144
# CC pic flag -KPIC is the default.
5150
linux* | k*bsd*-gnu)
5151
case $cc_basename in
5154
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5155
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5159
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5160
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5161
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5164
# Portland Group C++ compiler.
5165
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5166
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5167
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5171
# Make sure the PIC flag is empty. It appears that all Alpha
5172
# Linux and Compaq Tru64 Unix objects are PIC.
5173
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5174
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5177
case `$CC -V 2>&1 | sed 5q` in
5180
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5181
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5182
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5193
case $cc_basename in
5195
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5203
osf3* | osf4* | osf5*)
5204
case $cc_basename in
5206
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5209
# Rational C++ 2.4.1
5210
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5213
# Digital/Compaq C++
5214
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5215
# Make sure the PIC flag is empty. It appears that all Alpha
5216
# Linux and Compaq Tru64 Unix objects are PIC.
5217
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5218
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5227
case $cc_basename in
5229
# Sun C++ 4.2, 5.x and Centerline C++
5230
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5231
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5232
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5235
# Green Hills C++ Compiler
5236
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5243
case $cc_basename in
5246
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5247
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5251
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5258
case $cc_basename in
5260
# NonStop-UX NCC 3.20
5261
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5267
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5268
case $cc_basename in
5270
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5271
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5272
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5279
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5285
if test "$GCC" = yes; then
5286
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5287
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5291
# All AIX code is PIC.
5292
if test "$host_cpu" = ia64; then
5293
# AIX 5 now supports IA64 processor
5294
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5299
# FIXME: we need at least 68020 code to build shared libraries, but
5300
# adding the `-m68020' flag to GCC prevents building anything better,
5302
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5305
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5306
# PIC is the default for these OSes.
5309
mingw* | cygwin* | pw32* | os2*)
5310
# This hack is so that the source file can tell whether it is being
5311
# built for inclusion in a dll (and should export symbols for example).
5312
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5313
# (--disable-auto-import) libraries
5314
m4_if([$1], [GCJ], [],
5315
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5318
darwin* | rhapsody*)
5319
# PIC is the default on this platform
5320
# Common symbols not allowed in MH_DYLIB files
5321
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5325
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5326
# Instead, we relocate shared libraries at runtime.
5330
# Just because we use GCC doesn't mean we suddenly get shared libraries
5331
# on systems that don't support them.
5332
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5337
if test -d /usr/nec; then
5338
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5343
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5350
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5356
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5360
# PORTME Check for flag to pass linker flags through the system compiler.
5363
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5364
if test "$host_cpu" = ia64; then
5365
# AIX 5 now supports IA64 processor
5366
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5368
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5372
# PIC is the default on this platform
5373
# Common symbols not allowed in MH_DYLIB files
5374
case $cc_basename in
5376
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5377
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5382
mingw* | cygwin* | pw32* | os2*)
5383
# This hack is so that the source file can tell whether it is being
5384
# built for inclusion in a dll (and should export symbols for example).
5385
m4_if([$1], [GCJ], [],
5386
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
5389
hpux9* | hpux10* | hpux11*)
5390
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5391
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5398
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5401
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5402
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5405
irix5* | irix6* | nonstopux*)
5406
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5407
# PIC (with -KPIC) is the default.
5408
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5412
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5413
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5416
linux* | k*bsd*-gnu)
5417
case $cc_basename in
5419
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5420
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5421
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5423
pgcc* | pgf77* | pgf90* | pgf95*)
5424
# Portland Group compilers (*not* the Pentium gcc compiler,
5425
# which looks to be a dead project)
5426
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5427
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5428
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5431
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5432
# All Alpha code is PIC.
5433
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5436
case `$CC -V 2>&1 | sed 5q` in
5439
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5440
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5441
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5445
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5446
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5447
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
5454
osf3* | osf4* | osf5*)
5455
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5456
# All OSF/1 code is PIC.
5457
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5461
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5465
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5466
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5467
case $cc_basename in
5469
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5471
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5476
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5477
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5478
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5481
sysv4 | sysv4.2uw2* | sysv4.3*)
5482
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5483
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5484
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5488
if test -d /usr/nec ;then
5489
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5490
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5494
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5495
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5496
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5497
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5501
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5502
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5506
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5507
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5511
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5516
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5519
# Check to make sure the PIC flag actually works.
5521
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5522
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5523
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5524
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5525
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5527
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5529
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5530
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5533
# For platforms which do not support PIC, -DPIC is meaningless:
5535
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5538
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5543
# Check to make sure the static flag actually works.
5545
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5546
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5547
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5548
$lt_tmp_static_flag,
5550
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5554
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5555
# ------------------------------------
5556
# See if the linker supports building shared libraries.
5557
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5558
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5559
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5561
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5564
# If we're using GNU nm, then we don't want the "-C" option.
5565
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5566
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5567
_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'
5569
_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'
5573
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5576
_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'
5579
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5582
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5585
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5586
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5587
_LT_AC_TAGVAR(archive_cmds, $1)=
5588
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5589
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5590
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5591
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5592
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5593
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5594
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5595
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5596
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5597
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5598
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5599
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5600
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5601
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5602
_LT_AC_TAGVAR(module_cmds, $1)=
5603
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5604
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5605
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5606
# include_expsyms should be a list of space-separated symbols to be *always*
5607
# included in the symbol list
5608
_LT_AC_TAGVAR(include_expsyms, $1)=
5609
# exclude_expsyms can be an extended regexp of symbols to exclude
5610
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5611
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5612
# as well as any symbol that contains `d'.
5613
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5614
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5615
# platforms (ab)use it in PIC code, but their linkers get confused if
5616
# the symbol is explicitly referenced. Since portable code cannot
5617
# rely on this symbol name, it's probably fine to never include it in
5618
# preloaded symbol tables.
5619
# Exclude shared library initialization/finalization symbols.
5620
dnl Note also adjust exclude_expsyms for C++ above.
5621
extract_expsyms_cmds=
5622
# Just being paranoid about ensuring that cc_basename is set.
5623
_LT_CC_BASENAME([$compiler])
5625
cygwin* | mingw* | pw32*)
5626
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5627
# When not using gcc, we currently assume that we are using
5628
# Microsoft Visual C++.
5629
if test "$GCC" != yes; then
5634
# we just hope/assume this is gcc and not c89 (= MSVC++)
5642
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5643
if test "$with_gnu_ld" = yes; then
5644
# If archive_cmds runs LD, not CC, wlarc should be empty
5647
# Set some defaults for GNU ld with shared library support. These
5648
# are reset later if shared libraries are not supported. Putting them
5649
# here allows them to be overridden if necessary.
5650
runpath_var=LD_RUN_PATH
5651
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5652
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5653
# ancient GNU ld didn't support --whole-archive et. al.
5654
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5655
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5657
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5659
supports_anon_versioning=no
5660
case `$LD -v 2>/dev/null` in
5661
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5662
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5663
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5664
*\ 2.11.*) ;; # other 2.11 versions
5665
*) supports_anon_versioning=yes ;;
5668
# See if GNU ld supports shared libraries.
5671
# On AIX/PPC, the GNU linker is very broken
5672
if test "$host_cpu" != ia64; then
5673
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5676
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5677
*** to be unable to reliably create shared libraries on AIX.
5678
*** Therefore, libtool is disabling shared libraries support. If you
5679
*** really care for shared libraries, you may want to modify your PATH
5680
*** so that a non-GNU linker is found, and then restart.
5687
_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)'
5688
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5689
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5691
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5692
# that the semantics of dynamic libraries on AmigaOS, at least up
5693
# to version 4, is to share data among multiple programs linked
5694
# with the same dynamic library. Since this doesn't match the
5695
# behavior of shared libraries on other platforms, we can't use
5697
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5701
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5702
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5703
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5704
# support --undefined. This deserves some investigation. FIXME
5705
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5707
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5711
cygwin* | mingw* | pw32*)
5712
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5713
# as there is no search path for DLLs.
5714
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5715
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5716
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5717
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5718
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5720
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5721
_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'
5722
# If the export-symbols file already is a .def file (1st line
5723
# is EXPORTS), use it as is; otherwise, prepend...
5724
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5725
cp $export_symbols $output_objdir/$soname.def;
5727
echo EXPORTS > $output_objdir/$soname.def;
5728
cat $export_symbols >> $output_objdir/$soname.def;
5730
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5732
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5737
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5738
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5739
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5740
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5741
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5742
# Instead, shared libraries are loaded at an image base (0x10000000 by
5743
# default) and relocated if they conflict, which is a slow very memory
5744
# consuming and fragmenting process. To avoid this, we pick a random,
5745
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5746
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5747
_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'
5748
_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
gnu* | linux* | k*bsd*-gnu)
5752
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5754
case $cc_basename,$host_cpu in
5755
pgcc*) # Portland Group C compiler
5756
_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'
5757
tmp_addflag=' $pic_flag'
5759
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5760
_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'
5761
tmp_addflag=' $pic_flag -Mnomain' ;;
5762
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5763
tmp_addflag=' -i_dynamic' ;;
5764
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5765
tmp_addflag=' -i_dynamic -nofor_main' ;;
5766
ifc* | ifort*) # Intel Fortran compiler
5767
tmp_addflag=' -nofor_main' ;;
5769
case `$CC -V 2>&1 | sed 5q` in
5770
*Sun\ C*) # Sun C 5.9
5771
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5772
tmp_sharedflag='-G' ;;
5773
*Sun\ F*) # Sun Fortran 8.3
5774
tmp_sharedflag='-G' ;;
5776
tmp_sharedflag='-shared' ;;
5778
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5780
if test $supports_anon_versioning = yes; then
5781
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5782
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5783
$echo "local: *; };" >> $output_objdir/$libname.ver~
5784
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5787
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5792
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5793
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5796
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5797
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5802
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5803
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5806
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5807
*** create shared libraries on Solaris systems. Therefore, libtool
5808
*** is disabling shared libraries support. We urge you to upgrade GNU
5809
*** binutils to release 2.9.1 or newer. Another option is to modify
5810
*** your PATH or compiler configuration so that the native linker is
5811
*** used, and then restart.
5814
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5815
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5816
_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'
5818
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5822
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5823
case `$LD -v 2>&1` in
5824
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5825
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5828
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5829
*** reliably create shared libraries on SCO systems. Therefore, libtool
5830
*** is disabling shared libraries support. We urge you to upgrade GNU
5831
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5832
*** your PATH or compiler configuration so that the native linker is
5833
*** used, and then restart.
5838
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5839
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5840
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5841
_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'
5843
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5850
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5852
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5853
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5857
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5858
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5859
_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'
5861
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5866
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5868
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5869
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5870
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5873
# PORTME fill in a description of your system's linker (not GNU ld)
5876
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5877
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5878
_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'
5879
# Note: this linker hardcodes the directories in LIBPATH if there
5880
# are no directories specified by -L.
5881
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5882
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5883
# Neither direct hardcoding nor static linking is supported with a
5885
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5890
if test "$host_cpu" = ia64; then
5891
# On IA64, the linker does run time linking by default, so we don't
5892
# have to do anything special.
5893
aix_use_runtimelinking=no
5894
exp_sym_flag='-Bexport'
5897
# If we're using GNU nm, then we don't want the "-C" option.
5898
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5899
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5900
_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'
5902
_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'
5904
aix_use_runtimelinking=no
5906
# Test if we are trying to use run time linking or normal
5907
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5908
# need to do runtime linking.
5909
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5910
for ld_flag in $LDFLAGS; do
5911
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5912
aix_use_runtimelinking=yes
5919
exp_sym_flag='-bexport'
5920
no_entry_flag='-bnoentry'
5923
# When large executables or shared objects are built, AIX ld can
5924
# have problems creating the table of contents. If linking a library
5925
# or program results in "error TOC overflow" add -mminimal-toc to
5926
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5927
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5929
_LT_AC_TAGVAR(archive_cmds, $1)=''
5930
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5931
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5932
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5934
if test "$GCC" = yes; then
5935
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5936
# We only want to do this on AIX 4.2 and lower, the check
5937
# below for broken collect2 doesn't work under 4.3+
5938
collect2name=`${CC} -print-prog-name=collect2`
5939
if test -f "$collect2name" && \
5940
strings "$collect2name" | grep resolve_lib_name >/dev/null
5942
# We have reworked collect2
5945
# We have old collect2
5946
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5947
# It fails to find uninstalled libraries when the uninstalled
5948
# path is not listed in the libpath. Setting hardcode_minus_L
5949
# to unsupported forces relinking
5950
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5951
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5952
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5956
shared_flag='-shared'
5957
if test "$aix_use_runtimelinking" = yes; then
5958
shared_flag="$shared_flag "'${wl}-G'
5962
if test "$host_cpu" = ia64; then
5963
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5964
# chokes on -Wl,-G. The following line is correct:
5967
if test "$aix_use_runtimelinking" = yes; then
5968
shared_flag='${wl}-G'
5970
shared_flag='${wl}-bM:SRE'
5975
# It seems that -bexpall does not export symbols beginning with
5976
# underscore (_), so it is better to generate a list of symbols to export.
5977
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5978
if test "$aix_use_runtimelinking" = yes; then
5979
# Warning - without using the other runtime loading flags (-brtl),
5980
# -berok will link without error, but may produce a broken library.
5981
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
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
_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"
5987
if test "$host_cpu" = ia64; then
5988
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5989
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5990
_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"
5992
# Determine the default libpath from the value encoded in an empty executable.
5993
_LT_AC_SYS_LIBPATH_AIX
5994
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5995
# Warning - without using the other run time loading flags,
5996
# -berok will link without error, but may produce a broken library.
5997
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5998
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5999
# Exported symbols can be pulled into shared objects from archives
6000
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6001
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6002
# This is similar to how AIX traditionally builds its shared libraries.
6003
_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'
6009
_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)'
6010
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6011
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6012
# see comment about different semantics on the GNU ld section
6013
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6017
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6020
cygwin* | mingw* | pw32*)
6021
# When not using gcc, we currently assume that we are using
6022
# Microsoft Visual C++.
6023
# hardcode_libdir_flag_spec is actually meaningless, as there is
6024
# no search path for DLLs.
6025
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6026
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6027
# Tell ltmain to make .lib files, not .a files.
6029
# Tell ltmain to make .dll files, not .so files.
6031
# FIXME: Setting linknames here is a bad hack.
6032
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6033
# The linker will automatically build a .lib file if we build a DLL.
6034
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6035
# FIXME: Should let the user specify the lib program.
6036
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6037
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6038
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6041
darwin* | rhapsody*)
6043
rhapsody* | darwin1.[[012]])
6044
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6047
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6048
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6050
case ${MACOSX_DEPLOYMENT_TARGET} in
6052
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6055
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6061
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6062
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6063
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6064
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6065
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6066
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6067
if test "$GCC" = yes ; then
6068
output_verbose_link_cmd='echo'
6069
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
6070
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
6071
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
6072
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
6074
case $cc_basename in
6076
output_verbose_link_cmd='echo'
6077
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6078
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6079
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6080
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6081
_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}'
6084
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6091
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6092
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6093
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6097
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6100
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6101
# support. Future versions do this automatically, but an explicit c++rt0.o
6102
# does not break anything, and helps significantly (at the cost of a little
6105
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6106
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6107
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6108
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6111
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6113
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6114
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6115
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6116
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6119
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6120
freebsd* | dragonfly*)
6121
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6122
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6123
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6124
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6128
if test "$GCC" = yes; then
6129
_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'
6131
_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'
6133
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6134
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6135
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6137
# hardcode_minus_L: Not really in the search PATH,
6138
# but as the default location of the library.
6139
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6140
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6144
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6145
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6147
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6149
if test "$with_gnu_ld" = no; then
6150
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6151
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6153
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6154
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6156
# hardcode_minus_L: Not really in the search PATH,
6157
# but as the default location of the library.
6158
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6163
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6166
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6169
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6172
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6178
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6184
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6188
if test "$with_gnu_ld" = no; then
6189
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6190
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6194
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6195
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6196
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6199
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6200
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6202
# hardcode_minus_L: Not really in the search PATH,
6203
# but as the default location of the library.
6204
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6210
irix5* | irix6* | nonstopux*)
6211
if test "$GCC" = yes; then
6212
_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'
6214
_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'
6215
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6217
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6218
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6219
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6223
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6224
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6226
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6228
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6229
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6230
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6234
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6235
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6236
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6237
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6238
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6242
if test -f /usr/libexec/ld.so; then
6243
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6244
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6245
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6246
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6247
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6248
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6249
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6252
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6253
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6254
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6257
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6258
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6263
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6268
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6269
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6270
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6271
_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'
6272
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6276
if test "$GCC" = yes; then
6277
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6278
_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'
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 -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6283
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6284
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6287
osf4* | osf5*) # as osf3* with the addition of -msym flag
6288
if test "$GCC" = yes; then
6289
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6290
_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'
6291
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6293
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6294
_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'
6295
_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~
6296
$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'
6298
# Both c and cxx compiler support -rpath directly
6299
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6301
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6305
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6306
if test "$GCC" = yes; then
6308
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6309
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6310
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6313
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6314
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6315
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6317
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6318
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6320
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6322
# The compiler driver will combine and reorder linker options,
6323
# but understands `-z linker_flag'. GCC discards it without `$wl',
6324
# but is careful enough not to reorder.
6325
# Supported since Solaris 2.6 (maybe 2.5.1?)
6326
if test "$GCC" = yes; then
6327
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6329
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6333
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6337
if test "x$host_vendor" = xsequent; then
6338
# Use $CC to link under sequent, because it throws in some extra .o
6339
# files that make .init and .fini sections work.
6340
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6342
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6344
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6345
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6346
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6347
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6351
case $host_vendor in
6353
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6354
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6357
## LD is ld it makes a PLAMLIB
6358
## CC just makes a GrossModule.
6359
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6360
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6361
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6364
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6365
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6368
runpath_var='LD_RUN_PATH'
6369
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6373
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6374
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6375
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6379
if test -d /usr/nec; then
6380
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6381
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6382
runpath_var=LD_RUN_PATH
6383
hardcode_runpath_var=yes
6384
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6388
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6389
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6390
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6391
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6392
runpath_var='LD_RUN_PATH'
6394
if test "$GCC" = yes; then
6395
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6398
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6399
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6403
sysv5* | sco3.2v5* | sco5v6*)
6404
# Note: We can NOT use -z defs as we might desire, because we do not
6405
# link with -lc, and that would cause any symbols used from libc to
6406
# always be unresolved, which means just about no library would
6407
# ever link correctly. If we're not using GNU ld we use -z text
6408
# though, which does catch some bad symbols but isn't as heavy-handed
6410
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6412
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6413
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6414
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6415
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6416
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6417
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6418
runpath_var='LD_RUN_PATH'
6420
if test "$GCC" = yes; then
6421
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6422
_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'
6424
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6425
_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'
6430
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6431
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6432
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6436
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6441
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6442
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6445
# Do we need to explicitly link libc?
6447
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6449
# Assume -lc should be added
6450
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6452
if test "$enable_shared" = yes && test "$GCC" = yes; then
6453
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6455
# FIXME: we may have to deal with multi-command sequences.
6458
# Test whether the compiler implicitly links with -lc since on some
6459
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6460
# to ld, don't add -lc before -lgcc.
6461
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6463
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6465
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6468
libobjs=conftest.$ac_objext
6470
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6471
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6477
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6478
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6479
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6481
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6483
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6485
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6487
cat conftest.err 1>&5
6490
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6496
])# AC_LIBTOOL_PROG_LD_SHLIBS
6499
# _LT_AC_FILE_LTDLL_C
6500
# -------------------
6501
# Be careful that the start marker always follows a newline.
6502
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6503
# /* ltdll.c starts here */
6504
# #define WIN32_LEAN_AND_MEAN
6505
# #include <windows.h>
6506
# #undef WIN32_LEAN_AND_MEAN
6507
# #include <stdio.h>
6509
# #ifndef __CYGWIN__
6510
# # ifdef __CYGWIN32__
6511
# # define __CYGWIN__ __CYGWIN32__
6515
# #ifdef __cplusplus
6518
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6519
# #ifdef __cplusplus
6524
# #include <cygwin/cygwin_dll.h>
6525
# DECLARE_CYGWIN_DLL( DllMain );
6527
# HINSTANCE __hDllInstance_base;
6530
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6532
# __hDllInstance_base = hInst;
6535
# /* ltdll.c ends here */
6536
])# _LT_AC_FILE_LTDLL_C
6539
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6540
# ---------------------------------
6541
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6545
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6546
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6547
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6548
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6549
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6550
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6551
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6553
# This is just to silence aclocal about the macro not being used
6554
ifelse([AC_DISABLE_FAST_INSTALL])
6556
AC_DEFUN([LT_AC_PROG_GCJ],
6557
[AC_CHECK_TOOL(GCJ, gcj, no)
6558
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6562
AC_DEFUN([LT_AC_PROG_RC],
6563
[AC_CHECK_TOOL(RC, windres, no)
6567
# Cheap backport of AS_EXECUTABLE_P and required macros
6568
# from Autoconf 2.59; we should not use $as_executable_p directly.
6572
m4_ifndef([_AS_TEST_PREPARE],
6573
[m4_defun([_AS_TEST_PREPARE],
6574
[if test -x / >/dev/null 2>&1; then
6575
as_executable_p='test -x'
6577
as_executable_p='test -f'
6579
])])# _AS_TEST_PREPARE
6583
# Check whether a file is executable.
6584
m4_ifndef([AS_EXECUTABLE_P],
6585
[m4_defun([AS_EXECUTABLE_P],
6586
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6587
$as_executable_p $1[]dnl
6588
])])# AS_EXECUTABLE_P
6590
# NOTE: This macro has been submitted for inclusion into #
6591
# GNU Autoconf as AC_PROG_SED. When it is available in #
6592
# a released version of Autoconf we should remove this #
6593
# macro and use it instead. #
6596
# Check for a fully-functional sed program, that truncates
6597
# as few characters as possible. Prefer GNU sed if found.
6598
AC_DEFUN([LT_AC_PROG_SED],
6599
[AC_MSG_CHECKING([for a sed that does not truncate output])
6600
AC_CACHE_VAL(lt_cv_path_SED,
6601
[# Loop through the user's path and test for sed and gsed.
6602
# Then use that list of sed's as ones to test for truncation.
6603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6607
test -z "$as_dir" && as_dir=.
6608
for lt_ac_prog in sed gsed; do
6609
for ac_exec_ext in '' $ac_executable_extensions; do
6610
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
6611
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6619
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6620
# along with /bin/sed that truncates output.
6621
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6622
test ! -f $lt_ac_sed && continue
6623
cat /dev/null > conftest.in
6625
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6626
# Check for GNU sed and select it if it is found.
6627
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6628
lt_cv_path_SED=$lt_ac_sed
6632
cat conftest.in conftest.in >conftest.tmp
6633
mv conftest.tmp conftest.in
6634
cp conftest.in conftest.nl
6636
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6637
cmp -s conftest.out conftest.nl || break
6638
# 10000 chars as input seems more than enough
6639
test $lt_ac_count -gt 10 && break
6640
lt_ac_count=`expr $lt_ac_count + 1`
6641
if test $lt_ac_count -gt $lt_ac_max; then
6642
lt_ac_max=$lt_ac_count
6643
lt_cv_path_SED=$lt_ac_sed
6650
AC_MSG_RESULT([$SED])
6653
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
6655
# This file is free software; the Free Software Foundation
6656
# gives unlimited permission to copy and/or distribute it,
6657
# with or without modifications, as long as this notice is preserved.
6659
# AM_AUTOMAKE_VERSION(VERSION)
6660
# ----------------------------
6661
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6662
# generated from the m4 files accompanying Automake X.Y.
6663
# (This private macro should not be called outside this file.)
6664
AC_DEFUN([AM_AUTOMAKE_VERSION],
6665
[am__api_version='1.11'
6666
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
6667
dnl require some minimum version. Point them to the right macro.
6668
m4_if([$1], [1.11.1], [],
6669
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
6672
# _AM_AUTOCONF_VERSION(VERSION)
6673
# -----------------------------
6674
# aclocal traces this macro to find the Autoconf version.
6675
# This is a private macro too. Using m4_define simplifies
6676
# the logic in aclocal, which can simply ignore this definition.
6677
m4_define([_AM_AUTOCONF_VERSION], [])
6679
# AM_SET_CURRENT_AUTOMAKE_VERSION
6680
# -------------------------------
6681
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
6682
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
6683
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6684
[AM_AUTOMAKE_VERSION([1.11.1])dnl
6685
m4_ifndef([AC_AUTOCONF_VERSION],
6686
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
6687
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
6689
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6691
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6693
# This file is free software; the Free Software Foundation
6694
# gives unlimited permission to copy and/or distribute it,
6695
# with or without modifications, as long as this notice is preserved.
6697
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6698
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6699
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6701
# Of course, Automake must honor this variable whenever it calls a
6702
# tool from the auxiliary directory. The problem is that $srcdir (and
6703
# therefore $ac_aux_dir as well) can be either absolute or relative,
6704
# depending on how configure is run. This is pretty annoying, since
6705
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6706
# source directory, any form will work fine, but in subdirectories a
6707
# relative path needs to be adjusted first.
6709
# $ac_aux_dir/missing
6710
# fails when called from a subdirectory if $ac_aux_dir is relative
6711
# $top_srcdir/$ac_aux_dir/missing
6712
# fails if $ac_aux_dir is absolute,
6713
# fails when called from a subdirectory in a VPATH build with
6714
# a relative $ac_aux_dir
6716
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6717
# are both prefixed by $srcdir. In an in-source build this is usually
6718
# harmless because $srcdir is `.', but things will broke when you
6719
# start a VPATH build or use an absolute $srcdir.
6721
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6722
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6723
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6724
# and then we would define $MISSING as
6725
# MISSING="\${SHELL} $am_aux_dir/missing"
6726
# This will work as long as MISSING is not called from configure, because
6727
# unfortunately $(top_srcdir) has no meaning in configure.
6728
# However there are other variables, like CC, which are often used in
6729
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6731
# Another solution, used here, is to always expand $ac_aux_dir to an
6732
# absolute PATH. The drawback is that using absolute paths prevent a
6733
# configured tree to be moved without reconfiguration.
6735
AC_DEFUN([AM_AUX_DIR_EXPAND],
6736
[dnl Rely on autoconf to set up CDPATH properly.
6737
AC_PREREQ([2.50])dnl
6738
# expand $ac_aux_dir to an absolute path
6739
am_aux_dir=`cd $ac_aux_dir && pwd`
6742
# AM_CONDITIONAL -*- Autoconf -*-
6744
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
6745
# Free Software Foundation, Inc.
6747
# This file is free software; the Free Software Foundation
6748
# gives unlimited permission to copy and/or distribute it,
6749
# with or without modifications, as long as this notice is preserved.
6753
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6754
# -------------------------------------
6755
# Define a conditional.
6756
AC_DEFUN([AM_CONDITIONAL],
6758
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6759
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6760
AC_SUBST([$1_TRUE])dnl
6761
AC_SUBST([$1_FALSE])dnl
6762
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
6763
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
6764
m4_define([_AM_COND_VALUE_$1], [$2])dnl
6772
AC_CONFIG_COMMANDS_PRE(
6773
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6774
AC_MSG_ERROR([[conditional "$1" was never defined.
6775
Usually this means the macro was only invoked conditionally.]])
6778
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
6779
# Free Software Foundation, Inc.
6781
# This file is free software; the Free Software Foundation
6782
# gives unlimited permission to copy and/or distribute it,
6783
# with or without modifications, as long as this notice is preserved.
6787
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6788
# written in clear, in which case automake, when reading aclocal.m4,
6789
# will think it sees a *use*, and therefore will trigger all it's
6790
# C support machinery. Also note that it means that autoscan, seeing
6791
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6794
# _AM_DEPENDENCIES(NAME)
6795
# ----------------------
6796
# See how the compiler implements dependency checking.
6797
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6798
# We try a few techniques and use that to set a single cache variable.
6800
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6801
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6802
# dependency, and given that the user is not expected to run this macro,
6803
# just rely on AC_PROG_CC.
6804
AC_DEFUN([_AM_DEPENDENCIES],
6805
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6806
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6807
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6808
AC_REQUIRE([AM_DEP_TRACK])dnl
6810
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6811
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6812
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6813
[$1], UPC, [depcc="$UPC" am_compiler_list=],
6814
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6815
[depcc="$$1" am_compiler_list=])
6817
AC_CACHE_CHECK([dependency style of $depcc],
6818
[am_cv_$1_dependencies_compiler_type],
6819
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6820
# We make a subdir and do the tests there. Otherwise we can end up
6821
# making bogus files that we don't know about and never remove. For
6822
# instance it was reported that on HP-UX the gcc test will end up
6823
# making a dummy file named `D' -- because `-MD' means `put the output
6826
# Copy depcomp to subdir because otherwise we won't find it if we're
6827
# using a relative directory.
6828
cp "$am_depcomp" conftest.dir
6830
# We will build objects and dependencies in a subdirectory because
6831
# it helps to detect inapplicable dependency modes. For instance
6832
# both Tru64's cc and ICC support -MD to output dependencies as a
6833
# side effect of compilation, but ICC will put the dependencies in
6834
# the current directory while Tru64 will put them in the object
6838
am_cv_$1_dependencies_compiler_type=none
6839
if test "$am_compiler_list" = ""; then
6840
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6844
[case " $depcc " in #(
6845
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6848
[case " $depcc " in #(
6849
*\ -arch\ *\ -arch\ *) am__universal=true ;;
6852
for depmode in $am_compiler_list; do
6853
# Setup a source with many dependencies, because some compilers
6854
# like to wrap large dependency lists on column 80 (with \), and
6855
# we should not choose a depcomp mode which is confused by this.
6857
# We need to recreate these files for each test, as the compiler may
6858
# overwrite some of them when testing with obscure command lines.
6859
# This happens at least with the AIX C compiler.
6861
for i in 1 2 3 4 5 6; do
6862
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6863
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6864
# Solaris 8's {/usr,}/bin/sh.
6865
touch sub/conftst$i.h
6867
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6869
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6870
# mode. It turns out that the SunPro C++ compiler does not properly
6871
# handle `-M -o', and we need to detect this. Also, some Intel
6872
# versions had trouble with output in subdirs
6873
am__obj=sub/conftest.${OBJEXT-o}
6874
am__minus_obj="-o $am__obj"
6877
# This depmode causes a compiler race in universal mode.
6878
test "$am__universal" = false || continue
6881
# after this tag, mechanisms are not by side-effect, so they'll
6882
# only be used when explicitly requested
6883
if test "x$enable_dependency_tracking" = xyes; then
6889
msvisualcpp | msvcmsys)
6890
# This compiler won't grok `-c -o', but also, the minuso test has
6891
# not run yet. These depmodes are late enough in the game, and
6892
# so weak that their functioning should not be impacted.
6893
am__obj=conftest.${OBJEXT-o}
6898
if depmode=$depmode \
6899
source=sub/conftest.c object=$am__obj \
6900
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6901
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6902
>/dev/null 2>conftest.err &&
6903
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6904
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6905
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6906
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6907
# icc doesn't choke on unknown options, it will just issue warnings
6908
# or remarks (even with -Werror). So we grep stderr for any message
6909
# that says an option was ignored or not supported.
6910
# When given -MP, icc 7.0 and 7.1 complain thusly:
6911
# icc: Command line warning: ignoring option '-M'; no argument required
6912
# The diagnosis changed in icc 8.0:
6913
# icc: Command line remark: option '-MP' not supported
6914
if (grep 'ignoring option' conftest.err ||
6915
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6916
am_cv_$1_dependencies_compiler_type=$depmode
6925
am_cv_$1_dependencies_compiler_type=none
6928
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6929
AM_CONDITIONAL([am__fastdep$1], [
6930
test "x$enable_dependency_tracking" != xno \
6931
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6937
# Choose a directory name for dependency files.
6938
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6939
AC_DEFUN([AM_SET_DEPDIR],
6940
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6941
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6947
AC_DEFUN([AM_DEP_TRACK],
6948
[AC_ARG_ENABLE(dependency-tracking,
6949
[ --disable-dependency-tracking speeds up one-time build
6950
--enable-dependency-tracking do not reject slow dependency extractors])
6951
if test "x$enable_dependency_tracking" != xno; then
6952
am_depcomp="$ac_aux_dir/depcomp"
6955
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6956
AC_SUBST([AMDEPBACKSLASH])dnl
6957
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
6960
# Generate code to set up dependency tracking. -*- Autoconf -*-
6962
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
6963
# Free Software Foundation, Inc.
6965
# This file is free software; the Free Software Foundation
6966
# gives unlimited permission to copy and/or distribute it,
6967
# with or without modifications, as long as this notice is preserved.
6971
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6972
# ------------------------------
6973
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6975
# Autoconf 2.62 quotes --file arguments for eval, but not when files
6976
# are listed without --file. Let's play safe and only enable the eval
6977
# if we detect the quoting.
6978
case $CONFIG_FILES in
6979
*\'*) eval set x "$CONFIG_FILES" ;;
6980
*) set x $CONFIG_FILES ;;
6985
# Strip MF so we end up with the name of the file.
6986
mf=`echo "$mf" | sed -e 's/:.*$//'`
6987
# Check whether this is an Automake generated Makefile or not.
6988
# We used to match only the files named `Makefile.in', but
6989
# some people rename them; so instead we look at the file content.
6990
# Grep'ing the first line is not enough: some people post-process
6991
# each Makefile.in and add a new line on top of each file to say so.
6992
# Grep'ing the whole file is not good either: AIX grep has a line
6993
# limit of 2048, but all sed's we know have understand at least 4000.
6994
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6995
dirpart=`AS_DIRNAME("$mf")`
6999
# Extract the definition of DEPDIR, am__include, and am__quote
7000
# from the Makefile without running `make'.
7001
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7002
test -z "$DEPDIR" && continue
7003
am__include=`sed -n 's/^am__include = //p' < "$mf"`
7004
test -z "am__include" && continue
7005
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7006
# When using ansi2knr, U may be empty or an underscore; expand it
7007
U=`sed -n 's/^U = //p' < "$mf"`
7008
# Find all dependency output files, they are included files with
7009
# $(DEPDIR) in their names. We invoke sed twice because it is the
7010
# simplest approach to changing $(DEPDIR) to its actual value in the
7012
for file in `sed -n "
7013
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7014
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7015
# Make sure the directory exists.
7016
test -f "$dirpart/$file" && continue
7017
fdir=`AS_DIRNAME(["$file"])`
7018
AS_MKDIR_P([$dirpart/$fdir])
7019
# echo "creating $dirpart/$file"
7020
echo '# dummy' > "$dirpart/$file"
7024
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7027
# AM_OUTPUT_DEPENDENCY_COMMANDS
7028
# -----------------------------
7029
# This macro should only be invoked once -- use via AC_REQUIRE.
7031
# This code is only required when automatic dependency tracking
7032
# is enabled. FIXME. This creates each `.P' file that we will
7033
# need in order to bootstrap the dependency handling code.
7034
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7035
[AC_CONFIG_COMMANDS([depfiles],
7036
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7037
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7040
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7041
# Free Software Foundation, Inc.
7043
# This file is free software; the Free Software Foundation
7044
# gives unlimited permission to copy and/or distribute it,
7045
# with or without modifications, as long as this notice is preserved.
7049
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7050
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7052
# Do all the work for Automake. -*- Autoconf -*-
7054
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7055
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
7057
# This file is free software; the Free Software Foundation
7058
# gives unlimited permission to copy and/or distribute it,
7059
# with or without modifications, as long as this notice is preserved.
7063
# This macro actually does too much. Some checks are only needed if
7064
# your package does certain things. But this isn't really a big deal.
7066
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7067
# AM_INIT_AUTOMAKE([OPTIONS])
7068
# -----------------------------------------------
7069
# The call with PACKAGE and VERSION arguments is the old style
7070
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7071
# and VERSION should now be passed to AC_INIT and removed from
7072
# the call to AM_INIT_AUTOMAKE.
7073
# We support both call styles for the transition. After
7074
# the next Automake release, Autoconf can make the AC_INIT
7075
# arguments mandatory, and then we can depend on a new Autoconf
7076
# release and drop the old call support.
7077
AC_DEFUN([AM_INIT_AUTOMAKE],
7078
[AC_PREREQ([2.62])dnl
7079
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7080
dnl the ones we care about.
7081
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7082
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7083
AC_REQUIRE([AC_PROG_INSTALL])dnl
7084
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7085
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7086
# is not polluted with repeated "-I."
7087
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7088
# test to see if srcdir already configured
7089
if test -f $srcdir/config.status; then
7090
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7094
# test whether we have cygpath
7095
if test -z "$CYGPATH_W"; then
7096
if (cygpath --version) >/dev/null 2>/dev/null; then
7097
CYGPATH_W='cygpath -w'
7102
AC_SUBST([CYGPATH_W])
7104
# Define the identity of the package.
7105
dnl Distinguish between old-style and new-style calls.
7107
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7108
AC_SUBST([PACKAGE], [$1])dnl
7109
AC_SUBST([VERSION], [$2])],
7110
[_AM_SET_OPTIONS([$1])dnl
7111
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7112
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7113
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7114
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7115
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7117
_AM_IF_OPTION([no-define],,
7118
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7119
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7121
# Some tools Automake needs.
7122
AC_REQUIRE([AM_SANITY_CHECK])dnl
7123
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7124
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7125
AM_MISSING_PROG(AUTOCONF, autoconf)
7126
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7127
AM_MISSING_PROG(AUTOHEADER, autoheader)
7128
AM_MISSING_PROG(MAKEINFO, makeinfo)
7129
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7130
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
7131
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7132
# We need awk for the "check" target. The system "awk" is bad on
7134
AC_REQUIRE([AC_PROG_AWK])dnl
7135
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7136
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7137
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7138
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7139
[_AM_PROG_TAR([v7])])])
7140
_AM_IF_OPTION([no-dependencies],,
7141
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7142
[_AM_DEPENDENCIES(CC)],
7143
[define([AC_PROG_CC],
7144
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7145
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7146
[_AM_DEPENDENCIES(CXX)],
7147
[define([AC_PROG_CXX],
7148
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7149
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7150
[_AM_DEPENDENCIES(OBJC)],
7151
[define([AC_PROG_OBJC],
7152
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7154
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
7155
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
7156
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
7157
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
7158
AC_CONFIG_COMMANDS_PRE(dnl
7159
[m4_provide_if([_AM_COMPILER_EXEEXT],
7160
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
7163
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
7164
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
7165
dnl mangled by Autoconf and run in a shell conditional statement.
7166
m4_define([_AC_COMPILER_EXEEXT],
7167
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
7170
# When config.status generates a header, we must update the stamp-h file.
7171
# This file resides in the same directory as the config header
7172
# that is generated. The stamp files are numbered to have different names.
7174
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7175
# loop where config.status creates the headers, so we can generate
7176
# our stamp files there.
7177
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7178
[# Compute $1's index in $config_headers.
7181
for _am_header in $config_headers :; do
7183
$_am_arg | $_am_arg:* )
7186
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7189
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
7191
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
7193
# This file is free software; the Free Software Foundation
7194
# gives unlimited permission to copy and/or distribute it,
7195
# with or without modifications, as long as this notice is preserved.
7197
# AM_PROG_INSTALL_SH
7198
# ------------------
7199
# Define $install_sh.
7200
AC_DEFUN([AM_PROG_INSTALL_SH],
7201
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7202
if test x"${install_sh}" != xset; then
7205
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
7207
install_sh="\${SHELL} $am_aux_dir/install-sh"
7210
AC_SUBST(install_sh)])
7212
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7214
# This file is free software; the Free Software Foundation
7215
# gives unlimited permission to copy and/or distribute it,
7216
# with or without modifications, as long as this notice is preserved.
7220
# Check whether the underlying file-system supports filenames
7221
# with a leading dot. For instance MS-DOS doesn't.
7222
AC_DEFUN([AM_SET_LEADING_DOT],
7223
[rm -rf .tst 2>/dev/null
7224
mkdir .tst 2>/dev/null
7225
if test -d .tst; then
7230
rmdir .tst 2>/dev/null
7231
AC_SUBST([am__leading_dot])])
7233
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
7234
# 2006 Free Software Foundation, Inc.
7236
# This file is free software; the Free Software Foundation
7237
# gives unlimited permission to copy and/or distribute it,
7238
# with or without modifications, as long as this notice is preserved.
7244
AC_DEFUN([AM_PATH_LISPDIR],
7245
[AC_PREREQ([2.60])dnl
7246
# If set to t, that means we are running in a shell under Emacs.
7247
# If you have an Emacs named "t", then use the full path.
7248
test x"$EMACS" = xt && EMACS=
7249
AC_CHECK_PROGS([EMACS], [emacs xemacs], [no])
7250
AC_ARG_VAR([EMACS], [the Emacs editor command])
7251
AC_ARG_VAR([EMACSLOADPATH], [the Emacs library search path])
7252
AC_ARG_WITH([lispdir],
7253
[ --with-lispdir override the default lisp directory],
7254
[ lispdir="$withval"
7255
AC_MSG_CHECKING([where .elc files should go])
7256
AC_MSG_RESULT([$lispdir])],
7258
AC_CACHE_CHECK([where .elc files should go], [am_cv_lispdir], [
7259
if test $EMACS != "no"; then
7260
if test x${lispdir+set} != xset; then
7261
# If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
7262
# Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
7263
# which is non-obvious for non-emacs users.
7264
# Redirecting /dev/null should help a bit; pity we can't detect "broken"
7265
# emacsen earlier and avoid running this altogether.
7266
AC_RUN_LOG([$EMACS -batch -q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out])
7267
am_cv_lispdir=`sed -n \
7269
-e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
7270
-e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
7275
test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
7277
lispdir="$am_cv_lispdir"
7282
AU_DEFUN([ud_PATH_LISPDIR], [AM_PATH_LISPDIR])
7284
# Check to see how 'make' treats includes. -*- Autoconf -*-
7286
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
7288
# This file is free software; the Free Software Foundation
7289
# gives unlimited permission to copy and/or distribute it,
7290
# with or without modifications, as long as this notice is preserved.
7296
# Check to see how make treats includes.
7297
AC_DEFUN([AM_MAKE_INCLUDE],
7298
[am_make=${MAKE-make}
7299
cat > confinc << 'END'
7301
@echo this is the am__doit target
7304
# If we don't find an include directive, just comment out the code.
7305
AC_MSG_CHECKING([for style of include used by $am_make])
7309
# First try GNU make style include.
7310
echo "include confinc" > confmf
7311
# Ignore all kinds of additional output from `make'.
7312
case `$am_make -s -f confmf 2> /dev/null` in #(
7313
*the\ am__doit\ target*)
7319
# Now try BSD make style include.
7320
if test "$am__include" = "#"; then
7321
echo '.include "confinc"' > confmf
7322
case `$am_make -s -f confmf 2> /dev/null` in #(
7323
*the\ am__doit\ target*)
7324
am__include=.include
7330
AC_SUBST([am__include])
7331
AC_SUBST([am__quote])
7332
AC_MSG_RESULT([$_am_result])
7333
rm -f confinc confmf
7336
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
7337
# Free Software Foundation, Inc.
7339
# This file is free software; the Free Software Foundation
7340
# gives unlimited permission to copy and/or distribute it,
7341
# with or without modifications, as long as this notice is preserved.
7347
# Like AC_PROG_CC_C_O, but changed for automake.
7348
AC_DEFUN([AM_PROG_CC_C_O],
7349
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
7350
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7351
AC_REQUIRE_AUX_FILE([compile])dnl
7352
# FIXME: we rely on the cache variable name because
7353
# there is no other way.
7355
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
7356
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7357
if test "$am_t" != yes; then
7358
# Losing compiler, so override with the script.
7359
# FIXME: It is wrong to rewrite CC.
7360
# But if we don't then we get into trouble of one sort or another.
7361
# A longer-term fix would be to have automake use am__CC in this case,
7362
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7363
CC="$am_aux_dir/compile $CC"
7365
dnl Make sure AC_PROG_CC is never called again, or it will override our
7367
m4_define([AC_PROG_CC],
7368
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
7371
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
7373
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
7374
# Free Software Foundation, Inc.
7376
# This file is free software; the Free Software Foundation
7377
# gives unlimited permission to copy and/or distribute it,
7378
# with or without modifications, as long as this notice is preserved.
7382
# AM_MISSING_PROG(NAME, PROGRAM)
7383
# ------------------------------
7384
AC_DEFUN([AM_MISSING_PROG],
7385
[AC_REQUIRE([AM_MISSING_HAS_RUN])
7386
$1=${$1-"${am_missing_run}$2"}
7390
# AM_MISSING_HAS_RUN
7391
# ------------------
7392
# Define MISSING if not defined so far and test if it supports --run.
7393
# If it does, set am_missing_run to use it, otherwise, to nothing.
7394
AC_DEFUN([AM_MISSING_HAS_RUN],
7395
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7396
AC_REQUIRE_AUX_FILE([missing])dnl
7397
if test x"${MISSING+set}" != xset; then
7400
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
7402
MISSING="\${SHELL} $am_aux_dir/missing" ;;
7405
# Use eval to expand $SHELL
7406
if eval "$MISSING --run true"; then
7407
am_missing_run="$MISSING --run "
7410
AC_MSG_WARN([`missing' script is too old or missing])
7414
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7416
# This file is free software; the Free Software Foundation
7417
# gives unlimited permission to copy and/or distribute it,
7418
# with or without modifications, as long as this notice is preserved.
7422
# Check for `mkdir -p'.
7423
AC_DEFUN([AM_PROG_MKDIR_P],
7424
[AC_PREREQ([2.60])dnl
7425
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
7426
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
7427
dnl while keeping a definition of mkdir_p for backward compatibility.
7428
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
7429
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
7430
dnl Makefile.ins that do not define MKDIR_P, so we do our own
7431
dnl adjustment using top_builddir (which is defined more often than
7433
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
7435
[[\\/$]]* | ?:[[\\/]]*) ;;
7436
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
7440
# Helper functions for option handling. -*- Autoconf -*-
7442
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
7444
# This file is free software; the Free Software Foundation
7445
# gives unlimited permission to copy and/or distribute it,
7446
# with or without modifications, as long as this notice is preserved.
7450
# _AM_MANGLE_OPTION(NAME)
7451
# -----------------------
7452
AC_DEFUN([_AM_MANGLE_OPTION],
7453
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7455
# _AM_SET_OPTION(NAME)
7456
# ------------------------------
7457
# Set option NAME. Presently that only means defining a flag for this option.
7458
AC_DEFUN([_AM_SET_OPTION],
7459
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7461
# _AM_SET_OPTIONS(OPTIONS)
7462
# ----------------------------------
7463
# OPTIONS is a space-separated list of Automake options.
7464
AC_DEFUN([_AM_SET_OPTIONS],
7465
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7467
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7468
# -------------------------------------------
7469
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7470
AC_DEFUN([_AM_IF_OPTION],
7471
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7473
# Check to make sure that the build environment is sane. -*- Autoconf -*-
7475
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
7476
# Free Software Foundation, Inc.
7478
# This file is free software; the Free Software Foundation
7479
# gives unlimited permission to copy and/or distribute it,
7480
# with or without modifications, as long as this notice is preserved.
7486
AC_DEFUN([AM_SANITY_CHECK],
7487
[AC_MSG_CHECKING([whether build environment is sane])
7490
echo timestamp > conftest.file
7491
# Reject unsafe characters in $srcdir or the absolute working directory
7492
# name. Accept space and tab only in the latter.
7496
*[[\\\"\#\$\&\'\`$am_lf]]*)
7497
AC_MSG_ERROR([unsafe absolute working directory name]);;
7500
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
7501
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
7504
# Do `set' in a subshell so we don't clobber the current shell's
7505
# arguments. Must try -L first in case configure is actually a
7506
# symlink; some systems play weird games with the mod time of symlinks
7507
# (eg FreeBSD returns the mod time of the symlink's containing
7510
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
7511
if test "$[*]" = "X"; then
7513
set X `ls -t "$srcdir/configure" conftest.file`
7516
if test "$[*]" != "X $srcdir/configure conftest.file" \
7517
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
7519
# If neither matched, then we have a broken ls. This can happen
7520
# if, for instance, CONFIG_SHELL is bash and it inherits a
7521
# broken ls alias from the environment. This has actually
7522
# happened. Such a system could not be considered "sane".
7523
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7524
alias in your environment])
7527
test "$[2]" = conftest.file
7533
AC_MSG_ERROR([newly created file is older than distributed files!
7534
Check your system clock])
7536
AC_MSG_RESULT(yes)])
7538
# Copyright (C) 2009 Free Software Foundation, Inc.
7540
# This file is free software; the Free Software Foundation
7541
# gives unlimited permission to copy and/or distribute it,
7542
# with or without modifications, as long as this notice is preserved.
7546
# AM_SILENT_RULES([DEFAULT])
7547
# --------------------------
7548
# Enable less verbose build rules; with the default set to DEFAULT
7549
# (`yes' being less verbose, `no' or empty being verbose).
7550
AC_DEFUN([AM_SILENT_RULES],
7551
[AC_ARG_ENABLE([silent-rules],
7552
[ --enable-silent-rules less verbose build output (undo: `make V=1')
7553
--disable-silent-rules verbose build output (undo: `make V=0')])
7554
case $enable_silent_rules in
7555
yes) AM_DEFAULT_VERBOSITY=0;;
7556
no) AM_DEFAULT_VERBOSITY=1;;
7557
*) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
7559
AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
7561
AC_SUBST([AM_BACKSLASH])dnl
7562
_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
7565
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7567
# This file is free software; the Free Software Foundation
7568
# gives unlimited permission to copy and/or distribute it,
7569
# with or without modifications, as long as this notice is preserved.
7571
# AM_PROG_INSTALL_STRIP
7572
# ---------------------
7573
# One issue with vendor `install' (even GNU) is that you can't
7574
# specify the program used to strip binaries. This is especially
7575
# annoying in cross-compiling environments, where the build's strip
7576
# is unlikely to handle the host's binaries.
7577
# Fortunately install-sh will honor a STRIPPROG variable, so we
7578
# always use install-sh in `make install-strip', and initialize
7579
# STRIPPROG with the value of the STRIP variable (set by the user).
7580
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7581
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7582
# Installed binaries are usually stripped using `strip' when the user
7583
# run `make install-strip'. However `strip' might not be the right
7584
# tool to use in cross-compilation environments, therefore Automake
7585
# will honor the `STRIP' environment variable to overrule this program.
7586
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7587
if test "$cross_compiling" != no; then
7588
AC_CHECK_TOOL([STRIP], [strip], :)
7590
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
7591
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7593
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
7595
# This file is free software; the Free Software Foundation
7596
# gives unlimited permission to copy and/or distribute it,
7597
# with or without modifications, as long as this notice is preserved.
7601
# _AM_SUBST_NOTMAKE(VARIABLE)
7602
# ---------------------------
7603
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
7604
# This macro is traced by Automake.
7605
AC_DEFUN([_AM_SUBST_NOTMAKE])
7607
# AM_SUBST_NOTMAKE(VARIABLE)
7608
# ---------------------------
7609
# Public sister of _AM_SUBST_NOTMAKE.
7610
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
7612
# Check how to create a tarball. -*- Autoconf -*-
7614
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7616
# This file is free software; the Free Software Foundation
7617
# gives unlimited permission to copy and/or distribute it,
7618
# with or without modifications, as long as this notice is preserved.
7622
# _AM_PROG_TAR(FORMAT)
7623
# --------------------
7624
# Check how to create a tarball in format FORMAT.
7625
# FORMAT should be one of `v7', `ustar', or `pax'.
7627
# Substitute a variable $(am__tar) that is a command
7628
# writing to stdout a FORMAT-tarball containing the directory
7630
# tardir=directory && $(am__tar) > result.tar
7632
# Substitute a variable $(am__untar) that extract such
7633
# a tarball read from stdin.
7634
# $(am__untar) < result.tar
7635
AC_DEFUN([_AM_PROG_TAR],
7636
[# Always define AMTAR for backward compatibility.
7637
AM_MISSING_PROG([AMTAR], [tar])
7639
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7640
[m4_case([$1], [ustar],, [pax],,
7641
[m4_fatal([Unknown tar format])])
7642
AC_MSG_CHECKING([how to create a $1 tar archive])
7643
# Loop over all known methods to create a tar archive until one works.
7644
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7645
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7646
# Do not fold the above two line into one, because Tru64 sh and
7647
# Solaris sh will not grok spaces in the rhs of `-'.
7648
for _am_tool in $_am_tools
7652
for _am_tar in tar gnutar gtar;
7654
AM_RUN_LOG([$_am_tar --version]) && break
7656
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7657
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7658
am__untar="$_am_tar -xf -"
7661
# Must skip GNU tar: if it does not support --format= it doesn't create
7662
# ustar tarball either.
7663
(tar --version) >/dev/null 2>&1 && continue
7664
am__tar='tar chf - "$$tardir"'
7665
am__tar_='tar chf - "$tardir"'
7666
am__untar='tar xf -'
7669
am__tar='pax -L -x $1 -w "$$tardir"'
7670
am__tar_='pax -L -x $1 -w "$tardir"'
7674
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7675
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7676
am__untar='cpio -i -H $1 -d'
7685
# If the value was cached, stop now. We just wanted to have am__tar
7686
# and am__untar set.
7687
test -n "${am_cv_prog_tar_$1}" && break
7689
# tar/untar a dummy directory, and stop if the command works
7692
echo GrepMe > conftest.dir/file
7693
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7695
if test -s conftest.tar; then
7696
AM_RUN_LOG([$am__untar <conftest.tar])
7697
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7702
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7703
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7705
AC_SUBST([am__untar])
7708
m4_include([libgettextpo/gnulib-m4/gnulib-comp.m4])
7709
m4_include([gnulib-m4/00gnulib.m4])
7710
m4_include([gnulib-m4/absolute-header.m4])
7711
m4_include([gnulib-m4/acl.m4])
7712
m4_include([gnulib-m4/alloca.m4])
7713
m4_include([gnulib-m4/argmatch.m4])
7714
m4_include([gnulib-m4/atexit.m4])
7715
m4_include([gnulib-m4/backupfile.m4])
7716
m4_include([gnulib-m4/bison-i18n.m4])
7717
m4_include([gnulib-m4/byteswap.m4])
7718
m4_include([gnulib-m4/canonicalize.m4])
7719
m4_include([gnulib-m4/cloexec.m4])
7720
m4_include([gnulib-m4/copy-file.m4])
7721
m4_include([gnulib-m4/csharp.m4])
7722
m4_include([gnulib-m4/csharpcomp.m4])
7723
m4_include([gnulib-m4/csharpexec.m4])
7724
m4_include([gnulib-m4/curses.m4])
7725
m4_include([gnulib-m4/dos.m4])
7726
m4_include([gnulib-m4/double-slash-root.m4])
7727
m4_include([gnulib-m4/dup2.m4])
7728
m4_include([gnulib-m4/eaccess.m4])
7729
m4_include([gnulib-m4/eealloc.m4])
7730
m4_include([gnulib-m4/environ.m4])
7731
m4_include([gnulib-m4/errno_h.m4])
7732
m4_include([gnulib-m4/error.m4])
7733
m4_include([gnulib-m4/execute.m4])
7734
m4_include([gnulib-m4/extensions.m4])
7735
m4_include([gnulib-m4/fatal-signal.m4])
7736
m4_include([gnulib-m4/fcntl.m4])
7737
m4_include([gnulib-m4/fcntl_h.m4])
7738
m4_include([gnulib-m4/findprog.m4])
7739
m4_include([gnulib-m4/float_h.m4])
7740
m4_include([gnulib-m4/fnmatch.m4])
7741
m4_include([gnulib-m4/fopen.m4])
7742
m4_include([gnulib-m4/gcj.m4])
7743
m4_include([gnulib-m4/getdelim.m4])
7744
m4_include([gnulib-m4/getdtablesize.m4])
7745
m4_include([gnulib-m4/getline.m4])
7746
m4_include([gnulib-m4/getopt.m4])
7747
m4_include([gnulib-m4/getpagesize.m4])
7748
m4_include([gnulib-m4/gettimeofday.m4])
7749
m4_include([gnulib-m4/gl_list.m4])
7750
m4_include([gnulib-m4/gnulib-common.m4])
7751
m4_include([gnulib-m4/gnulib-comp.m4])
7752
m4_include([gnulib-m4/hard-locale.m4])
7753
m4_include([gnulib-m4/iconv_h.m4])
7754
m4_include([gnulib-m4/iconv_open.m4])
7755
m4_include([gnulib-m4/include_next.m4])
7756
m4_include([gnulib-m4/inline.m4])
7757
m4_include([gnulib-m4/intmax_t.m4])
7758
m4_include([gnulib-m4/java.m4])
7759
m4_include([gnulib-m4/javacomp.m4])
7760
m4_include([gnulib-m4/javaexec.m4])
7761
m4_include([gnulib-m4/lib-ld.m4])
7762
m4_include([gnulib-m4/lib-link.m4])
7763
m4_include([gnulib-m4/lib-prefix.m4])
7764
m4_include([gnulib-m4/libcroco.m4])
7765
m4_include([gnulib-m4/libglib.m4])
7766
m4_include([gnulib-m4/libxml.m4])
7767
m4_include([gnulib-m4/localcharset.m4])
7768
m4_include([gnulib-m4/locale-fr.m4])
7769
m4_include([gnulib-m4/locale-ja.m4])
7770
m4_include([gnulib-m4/locale-tr.m4])
7771
m4_include([gnulib-m4/locale-zh.m4])
7772
m4_include([gnulib-m4/locale_h.m4])
7773
m4_include([gnulib-m4/localename.m4])
7774
m4_include([gnulib-m4/lstat.m4])
7775
m4_include([gnulib-m4/malloc.m4])
7776
m4_include([gnulib-m4/malloca.m4])
7777
m4_include([gnulib-m4/mbchar.m4])
7778
m4_include([gnulib-m4/mbiter.m4])
7779
m4_include([gnulib-m4/mbrtowc.m4])
7780
m4_include([gnulib-m4/mbsinit.m4])
7781
m4_include([gnulib-m4/mbslen.m4])
7782
m4_include([gnulib-m4/mbsrtowcs.m4])
7783
m4_include([gnulib-m4/mbstate_t.m4])
7784
m4_include([gnulib-m4/mbswidth.m4])
7785
m4_include([gnulib-m4/memchr.m4])
7786
m4_include([gnulib-m4/memmove.m4])
7787
m4_include([gnulib-m4/memset.m4])
7788
m4_include([gnulib-m4/minmax.m4])
7789
m4_include([gnulib-m4/mkdtemp.m4])
7790
m4_include([gnulib-m4/mmap-anon.m4])
7791
m4_include([gnulib-m4/mode_t.m4])
7792
m4_include([gnulib-m4/moo.m4])
7793
m4_include([gnulib-m4/multiarch.m4])
7794
m4_include([gnulib-m4/no-c++.m4])
7795
m4_include([gnulib-m4/onceonly.m4])
7796
m4_include([gnulib-m4/open.m4])
7797
m4_include([gnulib-m4/pathmax.m4])
7798
m4_include([gnulib-m4/pipe.m4])
7799
m4_include([gnulib-m4/pipe2.m4])
7800
m4_include([gnulib-m4/posix_spawn.m4])
7801
m4_include([gnulib-m4/printf.m4])
7802
m4_include([gnulib-m4/putenv.m4])
7803
m4_include([gnulib-m4/quote.m4])
7804
m4_include([gnulib-m4/quotearg.m4])
7805
m4_include([gnulib-m4/rawmemchr.m4])
7806
m4_include([gnulib-m4/read-file.m4])
7807
m4_include([gnulib-m4/readlink.m4])
7808
m4_include([gnulib-m4/realloc.m4])
7809
m4_include([gnulib-m4/relocatable-lib.m4])
7810
m4_include([gnulib-m4/relocatable.m4])
7811
m4_include([gnulib-m4/rmdir.m4])
7812
m4_include([gnulib-m4/safe-read.m4])
7813
m4_include([gnulib-m4/safe-write.m4])
7814
m4_include([gnulib-m4/sched_h.m4])
7815
m4_include([gnulib-m4/setenv.m4])
7816
m4_include([gnulib-m4/sig_atomic_t.m4])
7817
m4_include([gnulib-m4/sigaction.m4])
7818
m4_include([gnulib-m4/signal_h.m4])
7819
m4_include([gnulib-m4/signalblocking.m4])
7820
m4_include([gnulib-m4/sigpipe.m4])
7821
m4_include([gnulib-m4/snprintf.m4])
7822
m4_include([gnulib-m4/spawn_h.m4])
7823
m4_include([gnulib-m4/ssize_t.m4])
7824
m4_include([gnulib-m4/stat.m4])
7825
m4_include([gnulib-m4/stdarg.m4])
7826
m4_include([gnulib-m4/stdbool.m4])
7827
m4_include([gnulib-m4/stddef_h.m4])
7828
m4_include([gnulib-m4/stdint.m4])
7829
m4_include([gnulib-m4/stdio_h.m4])
7830
m4_include([gnulib-m4/stdlib_h.m4])
7831
m4_include([gnulib-m4/stpcpy.m4])
7832
m4_include([gnulib-m4/stpncpy.m4])
7833
m4_include([gnulib-m4/strchrnul.m4])
7834
m4_include([gnulib-m4/strcspn.m4])
7835
m4_include([gnulib-m4/strerror.m4])
7836
m4_include([gnulib-m4/string_h.m4])
7837
m4_include([gnulib-m4/strnlen.m4])
7838
m4_include([gnulib-m4/strpbrk.m4])
7839
m4_include([gnulib-m4/strstr.m4])
7840
m4_include([gnulib-m4/strtol.m4])
7841
m4_include([gnulib-m4/strtoul.m4])
7842
m4_include([gnulib-m4/symlink.m4])
7843
m4_include([gnulib-m4/sys_select_h.m4])
7844
m4_include([gnulib-m4/sys_socket_h.m4])
7845
m4_include([gnulib-m4/sys_stat_h.m4])
7846
m4_include([gnulib-m4/sys_time_h.m4])
7847
m4_include([gnulib-m4/sys_wait_h.m4])
7848
m4_include([gnulib-m4/tempname.m4])
7849
m4_include([gnulib-m4/term-ostream.m4])
7850
m4_include([gnulib-m4/terminfo.m4])
7851
m4_include([gnulib-m4/thread.m4])
7852
m4_include([gnulib-m4/time_h.m4])
7853
m4_include([gnulib-m4/tls.m4])
7854
m4_include([gnulib-m4/tmpdir.m4])
7855
m4_include([gnulib-m4/unionwait.m4])
7856
m4_include([gnulib-m4/unistd-safer.m4])
7857
m4_include([gnulib-m4/unistd_h.m4])
7858
m4_include([gnulib-m4/unlocked-io.m4])
7859
m4_include([gnulib-m4/vasnprintf.m4])
7860
m4_include([gnulib-m4/vasprintf.m4])
7861
m4_include([gnulib-m4/vsnprintf.m4])
7862
m4_include([gnulib-m4/wait-process.m4])
7863
m4_include([gnulib-m4/warn-on-use.m4])
7864
m4_include([gnulib-m4/wchar_h.m4])
7865
m4_include([gnulib-m4/wctob.m4])
7866
m4_include([gnulib-m4/wctype_h.m4])
7867
m4_include([gnulib-m4/wcwidth.m4])
7868
m4_include([gnulib-m4/write.m4])
7869
m4_include([gnulib-m4/xvasprintf.m4])
7870
m4_include([gnulib-m4/yield.m4])
7871
m4_include([../m4/fixautomake.m4])
7872
m4_include([../m4/init-package-version.m4])
7873
m4_include([../m4/libtool.m4])
7874
m4_include([../m4/ltoptions.m4])
7875
m4_include([../m4/ltsugar.m4])
7876
m4_include([../m4/ltversion.m4])
7877
m4_include([../m4/lt~obsolete.m4])
7878
m4_include([../m4/woe32-dll.m4])
7879
m4_include([../gettext-runtime/m4/ansi-c++.m4])
7880
m4_include([../gettext-runtime/m4/codeset.m4])
7881
m4_include([../gettext-runtime/m4/fcntl-o.m4])
7882
m4_include([../gettext-runtime/m4/gettext.m4])
7883
m4_include([../gettext-runtime/m4/glibc2.m4])
7884
m4_include([../gettext-runtime/m4/glibc21.m4])
7885
m4_include([../gettext-runtime/m4/iconv.m4])
7886
m4_include([../gettext-runtime/m4/intdiv0.m4])
7887
m4_include([../gettext-runtime/m4/intl.m4])
7888
m4_include([../gettext-runtime/m4/intlmacosx.m4])
7889
m4_include([../gettext-runtime/m4/intmax.m4])
7890
m4_include([../gettext-runtime/m4/inttypes-pri.m4])
7891
m4_include([../gettext-runtime/m4/inttypes_h.m4])
7892
m4_include([../gettext-runtime/m4/lcmessage.m4])
7893
m4_include([../gettext-runtime/m4/lock.m4])
7894
m4_include([../gettext-runtime/m4/longlong.m4])
7895
m4_include([../gettext-runtime/m4/nls.m4])
7896
m4_include([../gettext-runtime/m4/po.m4])
7897
m4_include([../gettext-runtime/m4/printf-posix.m4])
7898
m4_include([../gettext-runtime/m4/progtest.m4])
7899
m4_include([../gettext-runtime/m4/size_max.m4])
7900
m4_include([../gettext-runtime/m4/stdint_h.m4])
7901
m4_include([../gettext-runtime/m4/threadlib.m4])
7902
m4_include([../gettext-runtime/m4/uintmax_t.m4])
7903
m4_include([../gettext-runtime/m4/visibility.m4])
7904
m4_include([../gettext-runtime/m4/wchar_t.m4])
7905
m4_include([../gettext-runtime/m4/wint_t.m4])
7906
m4_include([../gettext-runtime/m4/xsize.m4])
7907
m4_include([m4/exported.m4])
7908
m4_include([m4/hostname.m4])
7909
m4_include([m4/libgrep.m4])
7910
m4_include([m4/regex.m4])
7911
m4_include([m4/setlocale.m4])
7912
m4_include([m4/siginfo.m4])