1
# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
dnl -*- mode: autoconf -*-
19
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
20
AC_DEFUN([GTK_DOC_CHECK],
22
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
23
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
24
dnl for overriding the documentation installation directory
26
AC_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
27
[with_html_dir='${datadir}/gtk-doc/html'])
28
HTML_DIR="$with_html_dir"
31
dnl enable/disable documentation building
32
AC_ARG_ENABLE(gtk-doc,
33
AC_HELP_STRING([--enable-gtk-doc],
34
[use gtk-doc to build documentation [default=no]]),,
38
if test x$enable_gtk_doc = xyes; then
39
if test -z "$PKG_CONFIG"; then
40
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
42
if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
46
dnl do we want to do a version check?
48
[gtk_doc_min_version=$1
49
if test "$have_gtk_doc" = yes; then
50
AC_MSG_CHECKING([gtk-doc version >= $gtk_doc_min_version])
51
if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
59
if test "$have_gtk_doc" != yes; then
64
AM_CONDITIONAL(ENABLE_GTK_DOC, test x$enable_gtk_doc = xyes)
65
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, test -n "$LIBTOOL")
68
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
70
# serial 47 Debian 1.5.20-2 AC_PROG_LIBTOOL
73
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
74
# -----------------------------------------------------------
75
# If this macro is not defined by Autoconf, define it here.
76
m4_ifdef([AC_PROVIDE_IFELSE],
78
[m4_define([AC_PROVIDE_IFELSE],
79
[m4_ifdef([AC_PROVIDE_$1],
85
AC_DEFUN([AC_PROG_LIBTOOL],
86
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
87
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
88
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
89
AC_PROVIDE_IFELSE([AC_PROG_CXX],
91
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
93
dnl And a similar setup for Fortran 77 support
94
AC_PROVIDE_IFELSE([AC_PROG_F77],
96
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
99
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
100
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
101
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
102
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
104
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
106
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
108
[ifdef([AC_PROG_GCJ],
109
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
110
ifdef([A][M_PROG_GCJ],
111
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
112
ifdef([LT_AC_PROG_GCJ],
113
[define([LT_AC_PROG_GCJ],
114
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
115
])])# AC_PROG_LIBTOOL
120
AC_DEFUN([_AC_PROG_LIBTOOL],
121
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
122
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
123
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
124
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
126
# This can be used to rebuild libtool when needed
127
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
129
# Always use our own libtool.
130
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
133
# Prevent multiple expansion
134
define([AC_PROG_LIBTOOL], [])
140
AC_DEFUN([AC_LIBTOOL_SETUP],
142
AC_REQUIRE([AC_ENABLE_SHARED])dnl
143
AC_REQUIRE([AC_ENABLE_STATIC])dnl
144
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
145
AC_REQUIRE([AC_CANONICAL_HOST])dnl
146
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
147
AC_REQUIRE([AC_PROG_CC])dnl
148
AC_REQUIRE([AC_PROG_LD])dnl
149
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
150
AC_REQUIRE([AC_PROG_NM])dnl
152
AC_REQUIRE([AC_PROG_LN_S])dnl
153
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
154
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
155
AC_REQUIRE([AC_OBJEXT])dnl
156
AC_REQUIRE([AC_EXEEXT])dnl
159
AC_LIBTOOL_SYS_MAX_CMD_LEN
160
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
163
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
164
_LT_AC_PROG_ECHO_BACKSLASH
168
# AIX sometimes has problems with the GCC collect2 program. For some
169
# reason, if we set the COLLECT_NAMES environment variable, the problems
170
# vanish in a puff of smoke.
171
if test "X${COLLECT_NAMES+set}" != Xset; then
178
# Sed substitution that helps us do robust quoting. It backslashifies
179
# metacharacters that are still active within double-quoted strings.
180
Xsed='sed -e 1s/^X//'
181
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
183
# Same as above, but do not quote variable references.
184
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
186
# Sed substitution to delay expansion of an escaped shell variable in a
187
# double_quote_subst'ed string.
188
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
190
# Sed substitution to avoid accidental globbing in evaled expressions
191
no_glob_subst='s/\*/\\\*/g'
197
default_ofile=libtool
200
# All known linkers require a `.a' archive for static linking (except MSVC,
201
# which needs '.lib').
203
ltmain="$ac_aux_dir/ltmain.sh"
204
ofile="$default_ofile"
205
with_gnu_ld="$lt_cv_prog_gnu_ld"
207
AC_CHECK_TOOL(AR, ar, false)
208
AC_CHECK_TOOL(RANLIB, ranlib, :)
209
AC_CHECK_TOOL(STRIP, strip, :)
214
# Set sane defaults for various variables
215
test -z "$AR" && AR=ar
216
test -z "$AR_FLAGS" && AR_FLAGS=cru
217
test -z "$AS" && AS=as
218
test -z "$CC" && CC=cc
219
test -z "$LTCC" && LTCC=$CC
220
test -z "$DLLTOOL" && DLLTOOL=dlltool
221
test -z "$LD" && LD=ld
222
test -z "$LN_S" && LN_S="ln -s"
223
test -z "$MAGIC_CMD" && MAGIC_CMD=file
224
test -z "$NM" && NM=nm
225
test -z "$SED" && SED=sed
226
test -z "$OBJDUMP" && OBJDUMP=objdump
227
test -z "$RANLIB" && RANLIB=:
228
test -z "$STRIP" && STRIP=:
229
test -z "$ac_objext" && ac_objext=o
231
# Determine commands to create old-style static archives.
232
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
233
old_postinstall_cmds='chmod 644 $oldlib'
234
old_postuninstall_cmds=
236
if test -n "$RANLIB"; then
239
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
242
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
245
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
248
_LT_CC_BASENAME([$compiler])
250
# Only perform the check for file, if the check method requires it
251
case $deplibs_check_method in
253
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
259
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
260
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
261
enable_win32_dll=yes, enable_win32_dll=no)
263
AC_ARG_ENABLE([libtool-lock],
264
[AC_HELP_STRING([--disable-libtool-lock],
265
[avoid locking (might break parallel builds)])])
266
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
269
[AC_HELP_STRING([--with-pic],
270
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
271
[pic_mode="$withval"],
273
test -z "$pic_mode" && pic_mode=default
275
# Use C for the default configuration in the libtool script
277
AC_LIBTOOL_LANG_C_CONFIG
282
# _LT_AC_SYS_COMPILER
283
# -------------------
284
AC_DEFUN([_LT_AC_SYS_COMPILER],
285
[AC_REQUIRE([AC_PROG_CC])dnl
287
# If no C compiler was specified, use CC.
290
# Allow CC to be a program name with arguments.
292
])# _LT_AC_SYS_COMPILER
295
# _LT_CC_BASENAME(CC)
296
# -------------------
297
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
298
AC_DEFUN([_LT_CC_BASENAME],
299
[for cc_temp in $1""; do
301
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
302
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
307
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
311
# _LT_COMPILER_BOILERPLATE
312
# ------------------------
313
# Check for compiler boilerplate output or warnings with
314
# the simple compiler test code.
315
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
316
[ac_outfile=conftest.$ac_objext
317
printf "$lt_simple_compile_test_code" >conftest.$ac_ext
318
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
319
_lt_compiler_boilerplate=`cat conftest.err`
321
])# _LT_COMPILER_BOILERPLATE
324
# _LT_LINKER_BOILERPLATE
325
# ----------------------
326
# Check for linker boilerplate output or warnings with
327
# the simple link test code.
328
AC_DEFUN([_LT_LINKER_BOILERPLATE],
329
[ac_outfile=conftest.$ac_objext
330
printf "$lt_simple_link_test_code" >conftest.$ac_ext
331
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
332
_lt_linker_boilerplate=`cat conftest.err`
334
])# _LT_LINKER_BOILERPLATE
337
# _LT_AC_SYS_LIBPATH_AIX
338
# ----------------------
339
# Links a minimal program and checks the executable
340
# for the system default hardcoded library path. In most cases,
341
# this is /usr/lib:/lib, but when the MPI compilers are used
342
# the location of the communication and MPI libs are included too.
343
# If we don't find anything, use the default library path according
344
# to the aix ld manual.
345
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
346
[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
347
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
349
# Check for a 64-bit object if we didn't find anything.
350
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
352
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
353
])# _LT_AC_SYS_LIBPATH_AIX
356
# _LT_AC_SHELL_INIT(ARG)
357
# ----------------------
358
AC_DEFUN([_LT_AC_SHELL_INIT],
359
[ifdef([AC_DIVERSION_NOTICE],
360
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
361
[AC_DIVERT_PUSH(NOTICE)])
364
])# _LT_AC_SHELL_INIT
367
# _LT_AC_PROG_ECHO_BACKSLASH
368
# --------------------------
369
# Add some code to the start of the generated configure script which
370
# will find an echo command which doesn't interpret backslashes.
371
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
373
# Check that we are running under the correct shell.
374
SHELL=${CONFIG_SHELL-/bin/sh}
378
# Remove one level of quotation (which was required for Make).
379
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
384
if test "X[$]1" = X--no-reexec; then
385
# Discard the --no-reexec flag, and continue.
387
elif test "X[$]1" = X--fallback-echo; then
388
# Avoid inline document here, it may be left over
390
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
391
# Yippee, $echo works!
394
# Restart under the correct shell.
395
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
398
if test "X[$]1" = X--fallback-echo; then
399
# used as fallback echo
407
# The HP-UX ksh and POSIX shell print the target directory to stdout
409
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
411
if test -z "$ECHO"; then
412
if test "X${echo_test_string+set}" != Xset; then
413
# find a string as large as possible, as long as the shell can cope with it
414
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
415
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
416
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
417
echo_test_string=`eval $cmd` &&
418
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
425
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
426
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
427
test "X$echo_testing_string" = "X$echo_test_string"; then
430
# The Solaris, AIX, and Digital Unix default echo programs unquote
431
# backslashes. This makes it impossible to quote backslashes using
432
# echo "$something" | sed 's/\\/\\\\/g'
434
# So, first we look for a working echo in the user's PATH.
436
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
437
for dir in $PATH /usr/ucb; do
439
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
440
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
441
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
442
test "X$echo_testing_string" = "X$echo_test_string"; then
449
if test "X$echo" = Xecho; then
450
# We didn't find a better echo, so look for alternatives.
451
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
452
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
453
test "X$echo_testing_string" = "X$echo_test_string"; then
454
# This shell has a builtin print -r that does the trick.
456
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
457
test "X$CONFIG_SHELL" != X/bin/ksh; then
458
# If we have ksh, try running configure again with it.
459
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
460
export ORIGINAL_CONFIG_SHELL
461
CONFIG_SHELL=/bin/ksh
463
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
467
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
468
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
469
test "X$echo_testing_string" = "X$echo_test_string"; then
472
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
473
test "X$echo_testing_string" = 'X\t' &&
474
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
475
test "X$echo_testing_string" = "X$echo_test_string"; then
476
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
478
SHELL="$CONFIG_SHELL"
480
echo="$CONFIG_SHELL [$]0 --fallback-echo"
481
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
482
test "X$echo_testing_string" = 'X\t' &&
483
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
484
test "X$echo_testing_string" = "X$echo_test_string"; then
485
echo="$CONFIG_SHELL [$]0 --fallback-echo"
487
# maybe with a smaller string...
490
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
491
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
498
if test "$prev" != 'sed 50q "[$]0"'; then
499
echo_test_string=`eval $prev`
500
export echo_test_string
501
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
503
# Oops. We lost completely, so just stick with echo.
512
# Copy echo and quote the copy suitably for passing to libtool from
513
# the Makefile, instead of quoting the original, which is used later.
515
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
516
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
520
])])# _LT_AC_PROG_ECHO_BACKSLASH
525
AC_DEFUN([_LT_AC_LOCK],
526
[AC_ARG_ENABLE([libtool-lock],
527
[AC_HELP_STRING([--disable-libtool-lock],
528
[avoid locking (might break parallel builds)])])
529
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
531
# Some flags need to be propagated to the compiler or linker for good
535
# Find out which ABI we are using.
536
echo 'int i;' > conftest.$ac_ext
537
if AC_TRY_EVAL(ac_compile); then
538
case `/usr/bin/file conftest.$ac_objext` in
550
# Find out which ABI we are using.
551
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
552
if AC_TRY_EVAL(ac_compile); then
553
if test "$lt_cv_prog_gnu_ld" = yes; then
554
case `/usr/bin/file conftest.$ac_objext` in
556
LD="${LD-ld} -melf32bsmip"
559
LD="${LD-ld} -melf32bmipn32"
562
LD="${LD-ld} -melf64bmip"
566
case `/usr/bin/file conftest.$ac_objext` in
582
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
583
# Find out which ABI we are using.
584
echo 'int i;' > conftest.$ac_ext
585
if AC_TRY_EVAL(ac_compile); then
586
case `/usr/bin/file conftest.o` in
590
LD="${LD-ld} -m elf_i386"
592
ppc64-*linux*|powerpc64-*linux*)
593
LD="${LD-ld} -m elf32ppclinux"
596
LD="${LD-ld} -m elf_s390"
599
LD="${LD-ld} -m elf32_sparc"
606
LD="${LD-ld} -m elf_x86_64"
608
ppc*-*linux*|powerpc*-*linux*)
609
LD="${LD-ld} -m elf64ppc"
612
LD="${LD-ld} -m elf64_s390"
615
LD="${LD-ld} -m elf64_sparc"
625
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
626
SAVE_CFLAGS="$CFLAGS"
627
CFLAGS="$CFLAGS -belf"
628
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
630
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
632
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
633
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
634
CFLAGS="$SAVE_CFLAGS"
637
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
638
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
639
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
640
AC_CHECK_TOOL(AS, as, false)
641
AC_CHECK_TOOL(OBJDUMP, objdump, false)
646
need_locks="$enable_libtool_lock"
651
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
652
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
653
# ----------------------------------------------------------------
654
# Check whether the given compiler option works
655
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
656
[AC_REQUIRE([LT_AC_PROG_SED])
657
AC_CACHE_CHECK([$1], [$2],
659
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
660
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
661
lt_compiler_flag="$3"
662
# Insert the option either (1) after the last *FLAGS variable, or
663
# (2) before a word containing "conftest.", or (3) at the end.
664
# Note that $ac_compile itself does not contain backslashes and begins
665
# with a dollar sign (not a hyphen), so the echo should work correctly.
666
# The option is referenced via a variable to avoid confusing sed.
667
lt_compile=`echo "$ac_compile" | $SED \
668
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
669
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
670
-e 's:$: $lt_compiler_flag:'`
671
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
672
(eval "$lt_compile" 2>conftest.err)
674
cat conftest.err >&AS_MESSAGE_LOG_FD
675
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
676
if (exit $ac_status) && test -s "$ac_outfile"; then
677
# The compiler can only warn and ignore the option if not recognized
678
# So say no if there are warnings other than the usual output.
679
$echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
680
$SED '/^$/d' conftest.err >conftest.er2
681
if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
688
if test x"[$]$2" = xyes; then
689
ifelse([$5], , :, [$5])
691
ifelse([$6], , :, [$6])
693
])# AC_LIBTOOL_COMPILER_OPTION
696
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
697
# [ACTION-SUCCESS], [ACTION-FAILURE])
698
# ------------------------------------------------------------
699
# Check whether the given compiler option works
700
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
701
[AC_CACHE_CHECK([$1], [$2],
703
save_LDFLAGS="$LDFLAGS"
704
LDFLAGS="$LDFLAGS $3"
705
printf "$lt_simple_link_test_code" > conftest.$ac_ext
706
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
707
# The linker can only warn and ignore the option if not recognized
708
# So say no if there are warnings
709
if test -s conftest.err; then
710
# Append any errors to the config.log.
711
cat conftest.err 1>&AS_MESSAGE_LOG_FD
712
$echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
713
$SED '/^$/d' conftest.err >conftest.er2
714
if diff conftest.exp conftest.er2 >/dev/null; then
722
LDFLAGS="$save_LDFLAGS"
725
if test x"[$]$2" = xyes; then
726
ifelse([$4], , :, [$4])
728
ifelse([$5], , :, [$5])
730
])# AC_LIBTOOL_LINKER_OPTION
733
# AC_LIBTOOL_SYS_MAX_CMD_LEN
734
# --------------------------
735
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
736
[# find the maximum length of command line arguments
737
AC_MSG_CHECKING([the maximum length of command line arguments])
738
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
744
# On DJGPP, this test can blow up pretty badly due to problems in libc
745
# (any single argument exceeding 2000 bytes causes a buffer overrun
746
# during glob expansion). Even if it were fixed, the result of this
747
# check would be larger than it should be.
748
lt_cv_sys_max_cmd_len=12288; # 12K is about right
752
# Under GNU Hurd, this test is not required because there is
753
# no limit to the length of command line arguments.
754
# Libtool will interpret -1 as no limit whatsoever
755
lt_cv_sys_max_cmd_len=-1;
759
# On Win9x/ME, this test blows up -- it succeeds, but takes
760
# about 5 minutes as the teststring grows exponentially.
761
# Worse, since 9x/ME are not pre-emptively multitasking,
762
# you end up with a "frozen" computer, even though with patience
763
# the test eventually succeeds (with a max line length of 256k).
764
# Instead, let's just punt: use the minimum linelength reported by
765
# all of the supported platforms: 8192 (on NT/2K/XP).
766
lt_cv_sys_max_cmd_len=8192;
770
# On AmigaOS with pdksh, this test takes hours, literally.
771
# So we just punt and use a minimum line length of 8192.
772
lt_cv_sys_max_cmd_len=8192;
775
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
776
# This has been around since 386BSD, at least. Likely further.
777
if test -x /sbin/sysctl; then
778
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
779
elif test -x /usr/sbin/sysctl; then
780
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
782
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
784
# And add a safety zone
785
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
786
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
789
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
790
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
791
# nice to cause kernel panics so lets avoid the loop below.
792
# First set a reasonable default.
793
lt_cv_sys_max_cmd_len=16384
795
if test -x /sbin/sysconfig; then
796
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
797
*1*) lt_cv_sys_max_cmd_len=-1 ;;
802
# If test is not a shell built-in, we'll probably end up computing a
803
# maximum length that is only half of the actual maximum length, but
805
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
806
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
807
= "XX$teststring") >/dev/null 2>&1 &&
808
new_result=`expr "X$teststring" : ".*" 2>&1` &&
809
lt_cv_sys_max_cmd_len=$new_result &&
810
test $i != 17 # 1/2 MB should be enough
813
teststring=$teststring$teststring
816
# Add a significant safety factor because C++ compilers can tack on massive
817
# amounts of additional arguments before passing them to the linker.
818
# It appears as though 1/2 is a usable value.
819
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
823
if test -n $lt_cv_sys_max_cmd_len ; then
824
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
828
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
832
# --------------------
833
AC_DEFUN([_LT_AC_CHECK_DLFCN],
834
[AC_CHECK_HEADERS(dlfcn.h)dnl
835
])# _LT_AC_CHECK_DLFCN
838
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
839
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
840
# ------------------------------------------------------------------
841
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
842
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
843
if test "$cross_compiling" = yes; then :
846
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
847
lt_status=$lt_dlunknown
848
cat > conftest.$ac_ext <<EOF
849
[#line __oline__ "configure"
850
#include "confdefs.h"
859
# define LT_DLGLOBAL RTLD_GLOBAL
862
# define LT_DLGLOBAL DL_GLOBAL
864
# define LT_DLGLOBAL 0
868
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
869
find out it does not work in some platform. */
870
#ifndef LT_DLLAZY_OR_NOW
872
# define LT_DLLAZY_OR_NOW RTLD_LAZY
875
# define LT_DLLAZY_OR_NOW DL_LAZY
878
# define LT_DLLAZY_OR_NOW RTLD_NOW
881
# define LT_DLLAZY_OR_NOW DL_NOW
883
# define LT_DLLAZY_OR_NOW 0
891
extern "C" void exit (int);
894
void fnord() { int i=42;}
897
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
898
int status = $lt_dlunknown;
902
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
903
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
904
/* dlclose (self); */
910
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
911
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
914
x$lt_dlno_uscore) $1 ;;
915
x$lt_dlneed_uscore) $2 ;;
916
x$lt_unknown|x*) $3 ;;
924
])# _LT_AC_TRY_DLOPEN_SELF
927
# AC_LIBTOOL_DLOPEN_SELF
928
# -------------------
929
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
930
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
931
if test "x$enable_dlopen" != xyes; then
932
enable_dlopen=unknown
933
enable_dlopen_self=unknown
934
enable_dlopen_self_static=unknown
941
lt_cv_dlopen="load_add_on"
943
lt_cv_dlopen_self=yes
947
lt_cv_dlopen="LoadLibrary"
952
lt_cv_dlopen="dlopen"
957
# if libdl is installed we need to link against it
958
AC_CHECK_LIB([dl], [dlopen],
959
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
962
lt_cv_dlopen_self=yes
967
AC_CHECK_FUNC([shl_load],
968
[lt_cv_dlopen="shl_load"],
969
[AC_CHECK_LIB([dld], [shl_load],
970
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
971
[AC_CHECK_FUNC([dlopen],
972
[lt_cv_dlopen="dlopen"],
973
[AC_CHECK_LIB([dl], [dlopen],
974
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
975
[AC_CHECK_LIB([svld], [dlopen],
976
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
977
[AC_CHECK_LIB([dld], [dld_link],
978
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
987
if test "x$lt_cv_dlopen" != xno; then
993
case $lt_cv_dlopen in
995
save_CPPFLAGS="$CPPFLAGS"
996
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
998
save_LDFLAGS="$LDFLAGS"
999
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1002
LIBS="$lt_cv_dlopen_libs $LIBS"
1004
AC_CACHE_CHECK([whether a program can dlopen itself],
1005
lt_cv_dlopen_self, [dnl
1006
_LT_AC_TRY_DLOPEN_SELF(
1007
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1008
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1011
if test "x$lt_cv_dlopen_self" = xyes; then
1012
LDFLAGS="$LDFLAGS $link_static_flag"
1013
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1014
lt_cv_dlopen_self_static, [dnl
1015
_LT_AC_TRY_DLOPEN_SELF(
1016
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1017
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1021
CPPFLAGS="$save_CPPFLAGS"
1022
LDFLAGS="$save_LDFLAGS"
1027
case $lt_cv_dlopen_self in
1028
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1029
*) enable_dlopen_self=unknown ;;
1032
case $lt_cv_dlopen_self_static in
1033
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1034
*) enable_dlopen_self_static=unknown ;;
1037
])# AC_LIBTOOL_DLOPEN_SELF
1040
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1041
# ---------------------------------
1042
# Check to see if options -c and -o are simultaneously supported by compiler
1043
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1044
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1045
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1046
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1047
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1048
$rm -r conftest 2>/dev/null
1052
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1054
lt_compiler_flag="-o out/conftest2.$ac_objext"
1055
# Insert the option either (1) after the last *FLAGS variable, or
1056
# (2) before a word containing "conftest.", or (3) at the end.
1057
# Note that $ac_compile itself does not contain backslashes and begins
1058
# with a dollar sign (not a hyphen), so the echo should work correctly.
1059
lt_compile=`echo "$ac_compile" | $SED \
1060
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1061
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1062
-e 's:$: $lt_compiler_flag:'`
1063
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1064
(eval "$lt_compile" 2>out/conftest.err)
1066
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1067
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1068
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1070
# The compiler can only warn and ignore the option if not recognized
1071
# So say no if there are warnings
1072
$echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
1073
$SED '/^$/d' out/conftest.err >out/conftest.er2
1074
if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1075
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1078
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1080
# SGI C++ compiler will create directory out/ii_files/ for
1081
# template instantiation
1082
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1083
$rm out/* && rmdir out
1088
])# AC_LIBTOOL_PROG_CC_C_O
1091
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1092
# -----------------------------------------
1093
# Check to see if we can do hard links to lock some files if needed
1094
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1095
[AC_REQUIRE([_LT_AC_LOCK])dnl
1097
hard_links="nottested"
1098
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1099
# do not overwrite the value of need_locks provided by the user
1100
AC_MSG_CHECKING([if we can lock with hard links])
1103
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1105
ln conftest.a conftest.b 2>&5 || hard_links=no
1106
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1107
AC_MSG_RESULT([$hard_links])
1108
if test "$hard_links" = no; then
1109
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1115
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1120
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1121
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1122
[rm -f .libs 2>/dev/null
1123
mkdir .libs 2>/dev/null
1124
if test -d .libs; then
1127
# MS-DOS does not allow filenames that begin with a dot.
1130
rmdir .libs 2>/dev/null])
1131
objdir=$lt_cv_objdir
1132
])# AC_LIBTOOL_OBJDIR
1135
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1136
# ----------------------------------------------
1137
# Check hardcoding attributes.
1138
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1139
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1140
_LT_AC_TAGVAR(hardcode_action, $1)=
1141
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1142
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1143
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1145
# We can hardcode non-existant directories.
1146
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1147
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1148
# have to relink, otherwise we might link with an installed library
1149
# when we should be linking with a yet-to-be-installed one
1150
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1151
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1152
# Linking always hardcodes the temporary library directory.
1153
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1155
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1156
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1159
# We cannot hardcode anything, or else we can only hardcode existing
1161
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1163
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1165
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1166
# Fast installation is not supported
1167
enable_fast_install=no
1168
elif test "$shlibpath_overrides_runpath" = yes ||
1169
test "$enable_shared" = no; then
1170
# Fast installation is not necessary
1171
enable_fast_install=needless
1173
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1176
# AC_LIBTOOL_SYS_LIB_STRIP
1177
# ------------------------
1178
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1181
AC_MSG_CHECKING([whether stripping libraries is possible])
1182
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1183
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1184
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1185
AC_MSG_RESULT([yes])
1187
# FIXME - insert some real tests, host_os isn't really good enough
1190
if test -n "$STRIP" ; then
1191
striplib="$STRIP -x"
1192
AC_MSG_RESULT([yes])
1202
])# AC_LIBTOOL_SYS_LIB_STRIP
1205
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1206
# -----------------------------
1207
# PORTME Fill in your ld.so characteristics
1208
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1209
[AC_MSG_CHECKING([dynamic linker characteristics])
1211
libname_spec='lib$name'
1219
shlibpath_overrides_runpath=unknown
1221
dynamic_linker="$host_os ld.so"
1222
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1223
if test "$GCC" = yes; then
1224
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1225
if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1226
# if the path contains ";" then we assume it to be the separator
1227
# otherwise default to the standard path separator (i.e. ":") - it is
1228
# assumed that no part of a normal pathname contains ";" but that should
1229
# okay in the real world where ";" in dirpaths is itself problematic.
1230
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1232
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1235
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1237
need_lib_prefix=unknown
1238
hardcode_into_libs=no
1240
# when you set need_version to no, make sure it does not cause -set_version
1241
# flags to be left without arguments
1242
need_version=unknown
1247
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1248
shlibpath_var=LIBPATH
1250
# AIX 3 has no versioning support, so we append a major version to the name.
1251
soname_spec='${libname}${release}${shared_ext}$major'
1258
hardcode_into_libs=yes
1259
if test "$host_cpu" = ia64; then
1260
# AIX 5 supports IA64
1261
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1262
shlibpath_var=LD_LIBRARY_PATH
1264
# With GCC up to 2.95.x, collect2 would create an import file
1265
# for dependence libraries. The import file would start with
1266
# the line `#! .'. This would cause the generated library to
1267
# depend on `.', always an invalid library. This was fixed in
1268
# development snapshots of GCC prior to 3.0.
1270
aix4 | aix4.[[01]] | aix4.[[01]].*)
1271
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1273
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1280
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1281
# soname into executable. Probably we can add versioning support to
1282
# collect2, so additional links can be useful in future.
1283
if test "$aix_use_runtimelinking" = yes; then
1284
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1285
# instead of lib<name>.a to let people know that these are not
1286
# typical AIX shared libraries.
1287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1289
# We preserve .a as extension for shared libraries through AIX4.2
1290
# and later when we are not doing run time linking.
1291
library_names_spec='${libname}${release}.a $libname.a'
1292
soname_spec='${libname}${release}${shared_ext}$major'
1294
shlibpath_var=LIBPATH
1299
library_names_spec='$libname.ixlibrary $libname.a'
1300
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1301
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'
1305
library_names_spec='${libname}${shared_ext}'
1306
dynamic_linker="$host_os ld.so"
1307
shlibpath_var=LIBRARY_PATH
1313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1314
soname_spec='${libname}${release}${shared_ext}$major'
1315
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1316
shlibpath_var=LD_LIBRARY_PATH
1317
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1318
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1319
# the default ld.so.conf also contains /usr/contrib/lib and
1320
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1321
# libtool to hard-code these into programs
1324
cygwin* | mingw* | pw32*)
1325
version_type=windows
1330
case $GCC,$host_os in
1331
yes,cygwin* | yes,mingw* | yes,pw32*)
1332
library_names_spec='$libname.dll.a'
1333
# DLL is installed to $(libdir)/../bin by postinstall_cmds
1334
postinstall_cmds='base_file=`basename \${file}`~
1335
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1336
dldir=$destdir/`dirname \$dlpath`~
1337
test -d \$dldir || mkdir -p \$dldir~
1338
$install_prog $dir/$dlname \$dldir/$dlname~
1339
chmod a+x \$dldir/$dlname'
1340
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1341
dlpath=$dir/\$dldll~
1343
shlibpath_overrides_runpath=yes
1347
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
1348
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1349
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1352
# MinGW DLLs use traditional 'lib' prefix
1353
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1354
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1355
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1356
# It is most probably a Windows format PATH printed by
1357
# mingw gcc, but we are running on Cygwin. Gcc prints its search
1358
# path with ; separators, and with drive letters. We can handle the
1359
# drive letters (cygwin fileutils understands them), so leave them,
1360
# especially as we might pass files found there to a mingw objdump,
1361
# which wouldn't understand a cygwinified path. Ahh.
1362
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1364
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1368
# pw32 DLLs use 'pw' prefix rather than 'lib'
1369
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1375
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1378
dynamic_linker='Win32 ld.exe'
1379
# FIXME: first we should search . and the directory the executable is in
1383
darwin* | rhapsody*)
1384
dynamic_linker="$host_os dyld"
1388
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1389
soname_spec='${libname}${release}${major}$shared_ext'
1390
shlibpath_overrides_runpath=yes
1391
shlibpath_var=DYLD_LIBRARY_PATH
1392
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1393
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1394
if test "$GCC" = yes; then
1395
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
1397
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1399
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1406
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1407
soname_spec='${libname}${release}${shared_ext}$major'
1408
shlibpath_var=LD_LIBRARY_PATH
1419
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1420
soname_spec='${libname}${release}${shared_ext}$major'
1421
shlibpath_var=LD_LIBRARY_PATH
1422
shlibpath_overrides_runpath=no
1423
hardcode_into_libs=yes
1424
dynamic_linker='GNU ld.so'
1427
freebsd* | dragonfly*)
1428
# DragonFly does not have aout. When/if they implement a new
1429
# versioning mechanism, adjust this.
1430
if test -x /usr/bin/objformat; then
1431
objformat=`/usr/bin/objformat`
1434
freebsd[[123]]*) objformat=aout ;;
1438
version_type=freebsd-$objformat
1439
case $version_type in
1441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1446
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1450
shlibpath_var=LD_LIBRARY_PATH
1453
shlibpath_overrides_runpath=yes
1455
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1456
shlibpath_overrides_runpath=yes
1457
hardcode_into_libs=yes
1460
shlibpath_overrides_runpath=no
1461
hardcode_into_libs=yes
1470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1471
soname_spec='${libname}${release}${shared_ext}$major'
1472
shlibpath_var=LD_LIBRARY_PATH
1473
hardcode_into_libs=yes
1476
hpux9* | hpux10* | hpux11*)
1477
# Give a soname corresponding to the major version so that dld.sl refuses to
1478
# link against other versions.
1485
hardcode_into_libs=yes
1486
dynamic_linker="$host_os dld.so"
1487
shlibpath_var=LD_LIBRARY_PATH
1488
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1489
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1490
soname_spec='${libname}${release}${shared_ext}$major'
1491
if test "X$HPUX_IA64_MODE" = X32; then
1492
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1494
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1496
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1500
hardcode_into_libs=yes
1501
dynamic_linker="$host_os dld.sl"
1502
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1503
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1505
soname_spec='${libname}${release}${shared_ext}$major'
1506
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1507
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1511
dynamic_linker="$host_os dld.sl"
1512
shlibpath_var=SHLIB_PATH
1513
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1515
soname_spec='${libname}${release}${shared_ext}$major'
1518
# HP-UX runs *really* slowly unless shared libraries are mode 555.
1519
postinstall_cmds='chmod 555 $lib'
1522
irix5* | irix6* | nonstopux*)
1524
nonstopux*) version_type=nonstopux ;;
1526
if test "$lt_cv_prog_gnu_ld" = yes; then
1534
soname_spec='${libname}${release}${shared_ext}$major'
1535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1537
irix5* | nonstopux*)
1541
case $LD in # libtool.m4 will add one of these switches to LD
1542
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1543
libsuff= shlibsuff= libmagic=32-bit;;
1544
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1545
libsuff=32 shlibsuff=N32 libmagic=N32;;
1546
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1547
libsuff=64 shlibsuff=64 libmagic=64-bit;;
1548
*) libsuff= shlibsuff= libmagic=never-match;;
1552
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1553
shlibpath_overrides_runpath=no
1554
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1555
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1556
hardcode_into_libs=yes
1559
# No shared lib support for Linux oldld, aout, or coff.
1560
linux*oldld* | linux*aout* | linux*coff*)
1564
# This must be Linux ELF.
1569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1570
soname_spec='${libname}${release}${shared_ext}$major'
1571
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1572
shlibpath_var=LD_LIBRARY_PATH
1573
shlibpath_overrides_runpath=no
1574
# This implies no fast_install, which is unacceptable.
1575
# Some rework will be needed to allow for fast_install
1576
# before this can be enabled.
1577
hardcode_into_libs=yes
1579
# Append ld.so.conf contents to the search path
1580
if test -f /etc/ld.so.conf; then
1581
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1582
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1585
# We used to test for /lib/ld.so.1 and disable shared libraries on
1586
# powerpc, because MkLinux only supported shared libraries with the
1587
# GNU dynamic linker. Since this was broken with cross compilers,
1588
# most powerpc-linux boxes support dynamic linking these days and
1589
# people can always --disable-shared, the test was removed, and we
1590
# assume the GNU/Linux dynamic linker is in use.
1591
dynamic_linker='GNU/Linux ld.so'
1598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1599
soname_spec='${libname}${release}${shared_ext}$major'
1600
shlibpath_var=LD_LIBRARY_PATH
1601
shlibpath_overrides_runpath=no
1602
hardcode_into_libs=yes
1603
dynamic_linker='NetBSD ld.elf_so'
1610
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1611
soname_spec='${libname}${release}${shared_ext}$major'
1612
shlibpath_var=LD_LIBRARY_PATH
1613
shlibpath_overrides_runpath=no
1614
hardcode_into_libs=yes
1615
dynamic_linker='GNU ld.so'
1622
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1623
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1624
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1625
dynamic_linker='NetBSD (a.out) ld.so'
1627
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1628
soname_spec='${libname}${release}${shared_ext}$major'
1629
dynamic_linker='NetBSD ld.elf_so'
1631
shlibpath_var=LD_LIBRARY_PATH
1632
shlibpath_overrides_runpath=yes
1633
hardcode_into_libs=yes
1638
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1639
shlibpath_var=LD_LIBRARY_PATH
1640
shlibpath_overrides_runpath=yes
1647
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1648
soname_spec='${libname}${release}${shared_ext}$major'
1649
shlibpath_var=LD_LIBRARY_PATH
1650
shlibpath_overrides_runpath=yes
1656
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1658
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1659
*) need_version=no ;;
1661
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1662
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1663
shlibpath_var=LD_LIBRARY_PATH
1664
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1666
openbsd2.[[89]] | openbsd2.[[89]].*)
1667
shlibpath_overrides_runpath=no
1670
shlibpath_overrides_runpath=yes
1674
shlibpath_overrides_runpath=yes
1679
libname_spec='$name'
1682
library_names_spec='$libname${shared_ext} $libname.a'
1683
dynamic_linker='OS/2 ld.exe'
1684
shlibpath_var=LIBPATH
1687
osf3* | osf4* | osf5*)
1691
soname_spec='${libname}${release}${shared_ext}$major'
1692
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1693
shlibpath_var=LD_LIBRARY_PATH
1694
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1695
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1700
soname_spec='${libname}${release}${shared_ext}$major'
1701
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1702
shlibpath_var=LD_LIBRARY_PATH
1709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1710
soname_spec='${libname}${release}${shared_ext}$major'
1711
shlibpath_var=LD_LIBRARY_PATH
1712
shlibpath_overrides_runpath=yes
1713
hardcode_into_libs=yes
1714
# ldd complains unless libraries are executable
1715
postinstall_cmds='chmod +x $lib'
1720
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1721
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1722
shlibpath_var=LD_LIBRARY_PATH
1723
shlibpath_overrides_runpath=yes
1724
if test "$with_gnu_ld" = yes; then
1730
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1732
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1733
soname_spec='${libname}${release}${shared_ext}$major'
1734
shlibpath_var=LD_LIBRARY_PATH
1735
case $host_vendor in
1737
shlibpath_overrides_runpath=no
1739
export_dynamic_flag_spec='${wl}-Blargedynsym'
1740
runpath_var=LD_RUN_PATH
1748
shlibpath_overrides_runpath=no
1749
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1755
if test -d /usr/nec ;then
1757
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1758
soname_spec='$libname${shared_ext}.$major'
1759
shlibpath_var=LD_LIBRARY_PATH
1765
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1766
soname_spec='${libname}${release}${shared_ext}$major'
1767
shlibpath_var=LD_LIBRARY_PATH
1774
AC_MSG_RESULT([$dynamic_linker])
1775
test "$dynamic_linker" = no && can_build_shared=no
1776
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1781
AC_DEFUN([_LT_AC_TAGCONFIG],
1782
[AC_ARG_WITH([tags],
1783
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1784
[include additional configurations @<:@automatic@:>@])],
1785
[tagnames="$withval"])
1787
if test -f "$ltmain" && test -n "$tagnames"; then
1788
if test ! -f "${ofile}"; then
1789
AC_MSG_WARN([output file `$ofile' does not exist])
1792
if test -z "$LTCC"; then
1793
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1794
if test -z "$LTCC"; then
1795
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1797
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1801
# Extract list of available tagged configurations in $ofile.
1802
# Note that this assumes the entire list is on one line.
1803
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1805
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1806
for tagname in $tagnames; do
1808
# Check whether tagname contains only valid characters
1809
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1811
*) AC_MSG_ERROR([invalid tag name: $tagname])
1815
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1817
AC_MSG_ERROR([tag name \"$tagname\" already exists])
1820
# Update the list of available tags.
1821
if test -n "$tagname"; then
1822
echo appending configuration tag \"$tagname\" to $ofile
1826
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1827
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1828
(test "X$CXX" != "Xg++"))) ; then
1829
AC_LIBTOOL_LANG_CXX_CONFIG
1836
if test -n "$F77" && test "X$F77" != "Xno"; then
1837
AC_LIBTOOL_LANG_F77_CONFIG
1844
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1845
AC_LIBTOOL_LANG_GCJ_CONFIG
1852
AC_LIBTOOL_LANG_RC_CONFIG
1856
AC_MSG_ERROR([Unsupported tag name: $tagname])
1860
# Append the new tag name to the list of available tags.
1861
if test -n "$tagname" ; then
1862
available_tags="$available_tags $tagname"
1868
# Now substitute the updated list of available tags.
1869
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1870
mv "${ofile}T" "$ofile"
1874
AC_MSG_ERROR([unable to update list of available tagged configurations.])
1877
])# _LT_AC_TAGCONFIG
1882
# enable checks for dlopen support
1883
AC_DEFUN([AC_LIBTOOL_DLOPEN],
1884
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1885
])# AC_LIBTOOL_DLOPEN
1888
# AC_LIBTOOL_WIN32_DLL
1889
# --------------------
1890
# declare package support for building win32 DLLs
1891
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1892
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1893
])# AC_LIBTOOL_WIN32_DLL
1896
# AC_ENABLE_SHARED([DEFAULT])
1897
# ---------------------------
1898
# implement the --enable-shared flag
1899
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1900
AC_DEFUN([AC_ENABLE_SHARED],
1901
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1902
AC_ARG_ENABLE([shared],
1903
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1904
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1905
[p=${PACKAGE-default}
1907
yes) enable_shared=yes ;;
1908
no) enable_shared=no ;;
1911
# Look at the argument we got. We use all the common list separators.
1912
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1913
for pkg in $enableval; do
1915
if test "X$pkg" = "X$p"; then
1922
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1923
])# AC_ENABLE_SHARED
1928
#- set the default shared flag to --disable-shared
1929
AC_DEFUN([AC_DISABLE_SHARED],
1930
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1931
AC_ENABLE_SHARED(no)
1932
])# AC_DISABLE_SHARED
1935
# AC_ENABLE_STATIC([DEFAULT])
1936
# ---------------------------
1937
# implement the --enable-static flag
1938
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1939
AC_DEFUN([AC_ENABLE_STATIC],
1940
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1941
AC_ARG_ENABLE([static],
1942
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1943
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1944
[p=${PACKAGE-default}
1946
yes) enable_static=yes ;;
1947
no) enable_static=no ;;
1950
# Look at the argument we got. We use all the common list separators.
1951
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1952
for pkg in $enableval; do
1954
if test "X$pkg" = "X$p"; then
1961
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
1962
])# AC_ENABLE_STATIC
1967
# set the default static flag to --disable-static
1968
AC_DEFUN([AC_DISABLE_STATIC],
1969
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1970
AC_ENABLE_STATIC(no)
1971
])# AC_DISABLE_STATIC
1974
# AC_ENABLE_FAST_INSTALL([DEFAULT])
1975
# ---------------------------------
1976
# implement the --enable-fast-install flag
1977
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1978
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1979
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1980
AC_ARG_ENABLE([fast-install],
1981
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1982
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1983
[p=${PACKAGE-default}
1985
yes) enable_fast_install=yes ;;
1986
no) enable_fast_install=no ;;
1988
enable_fast_install=no
1989
# Look at the argument we got. We use all the common list separators.
1990
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1991
for pkg in $enableval; do
1993
if test "X$pkg" = "X$p"; then
1994
enable_fast_install=yes
2000
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2001
])# AC_ENABLE_FAST_INSTALL
2004
# AC_DISABLE_FAST_INSTALL
2005
# -----------------------
2006
# set the default to --disable-fast-install
2007
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2008
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2009
AC_ENABLE_FAST_INSTALL(no)
2010
])# AC_DISABLE_FAST_INSTALL
2013
# AC_LIBTOOL_PICMODE([MODE])
2014
# --------------------------
2015
# implement the --with-pic flag
2016
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2017
AC_DEFUN([AC_LIBTOOL_PICMODE],
2018
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2019
pic_mode=ifelse($#,1,$1,default)
2020
])# AC_LIBTOOL_PICMODE
2025
# This is predefined starting with Autoconf 2.54, so this conditional
2026
# definition can be removed once we require Autoconf 2.54 or later.
2027
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2028
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2029
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2030
then ac_cv_prog_egrep='grep -E'
2031
else ac_cv_prog_egrep='egrep'
2033
EGREP=$ac_cv_prog_egrep
2038
# AC_PATH_TOOL_PREFIX
2039
# -------------------
2040
# find a file program which can recognise shared library
2041
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2042
[AC_REQUIRE([AC_PROG_EGREP])dnl
2043
AC_MSG_CHECKING([for $1])
2044
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2046
[[\\/*] | ?:[\\/]*])
2047
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2050
lt_save_MAGIC_CMD="$MAGIC_CMD"
2051
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2052
dnl $ac_dummy forces splitting on constant user-supplied paths.
2053
dnl POSIX.2 word splitting is done only on the output of word expansions,
2054
dnl not every word. This closes a longstanding sh security hole.
2055
ac_dummy="ifelse([$2], , $PATH, [$2])"
2056
for ac_dir in $ac_dummy; do
2058
test -z "$ac_dir" && ac_dir=.
2059
if test -f $ac_dir/$1; then
2060
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2061
if test -n "$file_magic_test_file"; then
2062
case $deplibs_check_method in
2064
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2065
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2066
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2067
$EGREP "$file_magic_regex" > /dev/null; then
2072
*** Warning: the command libtool uses to detect shared libraries,
2073
*** $file_magic_cmd, produces output that libtool cannot recognize.
2074
*** The result is that libtool may fail to recognize shared libraries
2075
*** as such. This will affect the creation of libtool libraries that
2076
*** depend on shared libraries, but programs linked with such libtool
2077
*** libraries will work regardless of this problem. Nevertheless, you
2078
*** may want to report the problem to your system manager and/or to
2079
*** bug-libtool@gnu.org
2089
MAGIC_CMD="$lt_save_MAGIC_CMD"
2092
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2093
if test -n "$MAGIC_CMD"; then
2094
AC_MSG_RESULT($MAGIC_CMD)
2098
])# AC_PATH_TOOL_PREFIX
2103
# find a file program which can recognise a shared library
2104
AC_DEFUN([AC_PATH_MAGIC],
2105
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2106
if test -z "$lt_cv_path_MAGIC_CMD"; then
2107
if test -n "$ac_tool_prefix"; then
2108
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2118
# find the pathname to the GNU or non-GNU linker
2119
AC_DEFUN([AC_PROG_LD],
2120
[AC_ARG_WITH([gnu-ld],
2121
[AC_HELP_STRING([--with-gnu-ld],
2122
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2123
[test "$withval" = no || with_gnu_ld=yes],
2125
AC_REQUIRE([LT_AC_PROG_SED])dnl
2126
AC_REQUIRE([AC_PROG_CC])dnl
2127
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2128
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2130
if test "$GCC" = yes; then
2131
# Check if gcc -print-prog-name=ld gives a path.
2132
AC_MSG_CHECKING([for ld used by $CC])
2135
# gcc leaves a trailing carriage return which upsets mingw
2136
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2138
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2141
# Accept absolute paths.
2142
[[\\/]]* | ?:[[\\/]]*)
2143
re_direlt='/[[^/]][[^/]]*/\.\./'
2144
# Canonicalize the pathname of ld
2145
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2146
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2147
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2149
test -z "$LD" && LD="$ac_prog"
2152
# If it fails, then pretend we aren't using GCC.
2156
# If it is relative, then search for the first ld in PATH.
2160
elif test "$with_gnu_ld" = yes; then
2161
AC_MSG_CHECKING([for GNU ld])
2163
AC_MSG_CHECKING([for non-GNU ld])
2165
AC_CACHE_VAL(lt_cv_path_LD,
2166
[if test -z "$LD"; then
2167
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2168
for ac_dir in $PATH; do
2170
test -z "$ac_dir" && ac_dir=.
2171
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2172
lt_cv_path_LD="$ac_dir/$ac_prog"
2173
# Check to see if the program is GNU ld. I'd rather use --version,
2174
# but apparently some variants of GNU ld only accept -v.
2175
# Break only if it was the GNU/non-GNU ld that we prefer.
2176
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2177
*GNU* | *'with BFD'*)
2178
test "$with_gnu_ld" != no && break
2181
test "$with_gnu_ld" != yes && break
2188
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2191
if test -n "$LD"; then
2196
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2203
AC_DEFUN([AC_PROG_LD_GNU],
2204
[AC_REQUIRE([AC_PROG_EGREP])dnl
2205
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2206
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2207
case `$LD -v 2>&1 </dev/null` in
2208
*GNU* | *'with BFD'*)
2209
lt_cv_prog_gnu_ld=yes
2212
lt_cv_prog_gnu_ld=no
2215
with_gnu_ld=$lt_cv_prog_gnu_ld
2219
# AC_PROG_LD_RELOAD_FLAG
2220
# ----------------------
2221
# find reload flag for linker
2222
# -- PORTME Some linkers may need a different reload flag.
2223
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2224
[AC_CACHE_CHECK([for $LD option to reload object files],
2225
lt_cv_ld_reload_flag,
2226
[lt_cv_ld_reload_flag='-r'])
2227
reload_flag=$lt_cv_ld_reload_flag
2228
case $reload_flag in
2230
*) reload_flag=" $reload_flag" ;;
2232
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2235
if test "$GCC" = yes; then
2236
reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2238
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2242
])# AC_PROG_LD_RELOAD_FLAG
2245
# AC_DEPLIBS_CHECK_METHOD
2246
# -----------------------
2247
# how to check for library dependencies
2248
# -- PORTME fill in with the dynamic library characteristics
2249
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2250
[AC_CACHE_CHECK([how to recognise dependent libraries],
2251
lt_cv_deplibs_check_method,
2252
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2253
lt_cv_file_magic_test_file=
2254
lt_cv_deplibs_check_method='unknown'
2255
# Need to set the preceding variable on all platforms that support
2256
# interlibrary dependencies.
2257
# 'none' -- dependencies not supported.
2258
# `unknown' -- same as none, but documents that we really don't know.
2259
# 'pass_all' -- all dependencies passed with no checks.
2260
# 'test_compile' -- check by making test program.
2261
# 'file_magic [[regex]]' -- check by looking for files in library path
2262
# which responds to the $file_magic_cmd with a given extended regex.
2263
# If you have `file' or equivalent on your system and you're not sure
2264
# whether `pass_all' will *always* work, you probably want this one.
2268
lt_cv_deplibs_check_method=pass_all
2272
lt_cv_deplibs_check_method=pass_all
2276
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2277
lt_cv_file_magic_cmd='/usr/bin/file -L'
2278
lt_cv_file_magic_test_file=/shlib/libc.so
2282
# func_win32_libid is a shell function defined in ltmain.sh
2283
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2284
lt_cv_file_magic_cmd='func_win32_libid'
2288
# Base MSYS/MinGW do not provide the 'file' command needed by
2289
# func_win32_libid shell function, so use a weaker test based on 'objdump'.
2290
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2291
lt_cv_file_magic_cmd='$OBJDUMP -f'
2294
darwin* | rhapsody*)
2295
lt_cv_deplibs_check_method=pass_all
2298
freebsd* | kfreebsd*-gnu | dragonfly*)
2299
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2302
# Not sure whether the presence of OpenBSD here was a mistake.
2303
# Let's accept both of them until this is cleared up.
2304
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2305
lt_cv_file_magic_cmd=/usr/bin/file
2306
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2310
lt_cv_deplibs_check_method=pass_all
2315
lt_cv_deplibs_check_method=pass_all
2318
hpux10.20* | hpux11*)
2319
lt_cv_file_magic_cmd=/usr/bin/file
2322
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2323
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2326
[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]']
2327
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2330
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2331
lt_cv_file_magic_test_file=/usr/lib/libc.sl
2336
irix5* | irix6* | nonstopux*)
2338
*-32|*"-32 ") libmagic=32-bit;;
2339
*-n32|*"-n32 ") libmagic=N32;;
2340
*-64|*"-64 ") libmagic=64-bit;;
2341
*) libmagic=never-match;;
2343
lt_cv_deplibs_check_method=pass_all
2346
# This must be Linux ELF.
2348
lt_cv_deplibs_check_method=pass_all
2351
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
2352
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2353
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2355
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2360
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2361
lt_cv_file_magic_cmd=/usr/bin/file
2362
lt_cv_file_magic_test_file=/usr/lib/libnls.so
2366
lt_cv_deplibs_check_method=unknown
2370
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2371
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2373
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2377
osf3* | osf4* | osf5*)
2378
lt_cv_deplibs_check_method=pass_all
2382
lt_cv_deplibs_check_method=pass_all
2386
lt_cv_deplibs_check_method=pass_all
2389
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2390
case $host_vendor in
2392
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]]'
2393
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2396
lt_cv_deplibs_check_method=pass_all
2399
lt_cv_file_magic_cmd='/bin/file'
2400
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2403
lt_cv_file_magic_cmd='/bin/file'
2404
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2405
lt_cv_file_magic_test_file=/lib/libc.so
2408
lt_cv_deplibs_check_method=pass_all
2413
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
2414
lt_cv_deplibs_check_method=pass_all
2418
file_magic_cmd=$lt_cv_file_magic_cmd
2419
deplibs_check_method=$lt_cv_deplibs_check_method
2420
test -z "$deplibs_check_method" && deplibs_check_method=unknown
2421
])# AC_DEPLIBS_CHECK_METHOD
2426
# find the pathname to a BSD-compatible name lister
2427
AC_DEFUN([AC_PROG_NM],
2428
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2429
[if test -n "$NM"; then
2430
# Let the user override the test.
2433
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2434
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2436
test -z "$ac_dir" && ac_dir=.
2437
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2438
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2439
# Check to see if the nm accepts a BSD-compat flag.
2440
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
2441
# nm: unknown option "B" ignored
2442
# Tru64's nm complains that /dev/null is an invalid object file
2443
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2444
*/dev/null* | *'Invalid file or object type'*)
2445
lt_cv_path_NM="$tmp_nm -B"
2449
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2451
lt_cv_path_NM="$tmp_nm -p"
2455
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2456
continue # so that we can try to find one that supports BSD flags
2463
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2471
# check for math library
2472
AC_DEFUN([AC_CHECK_LIBM],
2473
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2476
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2477
# These system don't have libm, or don't need it
2480
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2481
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2484
AC_CHECK_LIB(m, cos, LIBM="-lm")
2490
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2491
# -----------------------------------
2492
# sets LIBLTDL to the link flags for the libltdl convenience library and
2493
# LTDLINCL to the include flags for the libltdl header and adds
2494
# --enable-ltdl-convenience to the configure arguments. Note that
2495
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2496
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2497
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2498
# (note the single quotes!). If your package is not flat and you're not
2499
# using automake, define top_builddir and top_srcdir appropriately in
2501
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2502
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2503
case $enable_ltdl_convenience in
2504
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2505
"") enable_ltdl_convenience=yes
2506
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2508
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2509
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2510
# For backwards non-gettext consistent compatibility...
2512
])# AC_LIBLTDL_CONVENIENCE
2515
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2516
# -----------------------------------
2517
# sets LIBLTDL to the link flags for the libltdl installable library and
2518
# LTDLINCL to the include flags for the libltdl header and adds
2519
# --enable-ltdl-install to the configure arguments. Note that
2520
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2521
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2522
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2523
# '${top_srcdir}/' (note the single quotes!). If your package is not
2524
# flat and you're not using automake, define top_builddir and top_srcdir
2525
# appropriately in the Makefiles.
2526
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2527
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2528
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2529
AC_CHECK_LIB(ltdl, lt_dlinit,
2530
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2531
[if test x"$enable_ltdl_install" = xno; then
2532
AC_MSG_WARN([libltdl not installed, but installation disabled])
2534
enable_ltdl_install=yes
2537
if test x"$enable_ltdl_install" = x"yes"; then
2538
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2539
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2540
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2542
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2546
# For backwards non-gettext consistent compatibility...
2548
])# AC_LIBLTDL_INSTALLABLE
2553
# enable support for C++ libraries
2554
AC_DEFUN([AC_LIBTOOL_CXX],
2555
[AC_REQUIRE([_LT_AC_LANG_CXX])
2561
AC_DEFUN([_LT_AC_LANG_CXX],
2562
[AC_REQUIRE([AC_PROG_CXX])
2563
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2564
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2567
# _LT_AC_PROG_CXXCPP
2569
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2571
AC_REQUIRE([AC_PROG_CXX])
2572
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2573
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2574
(test "X$CXX" != "Xg++"))) ; then
2577
])# _LT_AC_PROG_CXXCPP
2581
# enable support for Fortran 77 libraries
2582
AC_DEFUN([AC_LIBTOOL_F77],
2583
[AC_REQUIRE([_LT_AC_LANG_F77])
2589
AC_DEFUN([_LT_AC_LANG_F77],
2590
[AC_REQUIRE([AC_PROG_F77])
2591
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2597
# enable support for GCJ libraries
2598
AC_DEFUN([AC_LIBTOOL_GCJ],
2599
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2605
AC_DEFUN([_LT_AC_LANG_GCJ],
2606
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2607
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2608
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2609
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2610
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2611
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2612
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2618
# enable support for Windows resource files
2619
AC_DEFUN([AC_LIBTOOL_RC],
2620
[AC_REQUIRE([LT_AC_PROG_RC])
2621
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2625
# AC_LIBTOOL_LANG_C_CONFIG
2626
# ------------------------
2627
# Ensure that the configuration vars for the C compiler are
2628
# suitably defined. Those variables are subsequently used by
2629
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2630
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2631
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2635
# Source file extension for C test sources.
2638
# Object file extension for compiled C test sources.
2640
_LT_AC_TAGVAR(objext, $1)=$objext
2642
# Code to be used in simple compile tests
2643
lt_simple_compile_test_code="int some_variable = 0;\n"
2645
# Code to be used in simple link tests
2646
lt_simple_link_test_code='int main(){return(0);}\n'
2650
# save warnings/boilerplate of simple test code
2651
_LT_COMPILER_BOILERPLATE
2652
_LT_LINKER_BOILERPLATE
2655
# Check for any special shared library compilation flags.
2657
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
2658
if test "$GCC" = no; then
2661
_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
2665
if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
2666
AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
2667
if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
2669
AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
2670
_LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
2676
# Check to make sure the static flag actually works.
2678
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
2679
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
2680
$_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
2682
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
2685
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2686
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2687
AC_LIBTOOL_PROG_CC_C_O($1)
2688
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2689
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2690
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2691
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2692
AC_LIBTOOL_SYS_LIB_STRIP
2693
AC_LIBTOOL_DLOPEN_SELF($1)
2695
# Report which librarie types wil actually be built
2696
AC_MSG_CHECKING([if libtool supports shared libraries])
2697
AC_MSG_RESULT([$can_build_shared])
2699
AC_MSG_CHECKING([whether to build shared libraries])
2700
test "$can_build_shared" = "no" && enable_shared=no
2702
# On AIX, shared libraries and static libraries use the same namespace, and
2703
# are all built from PIC.
2706
test "$enable_shared" = yes && enable_static=no
2707
if test -n "$RANLIB"; then
2708
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2709
postinstall_cmds='$RANLIB $lib'
2714
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2715
test "$enable_shared" = yes && enable_static=no
2719
AC_MSG_RESULT([$enable_shared])
2721
AC_MSG_CHECKING([whether to build static libraries])
2722
# Make sure either enable_shared or enable_static is yes.
2723
test "$enable_shared" = yes || enable_static=yes
2724
AC_MSG_RESULT([$enable_static])
2726
AC_LIBTOOL_CONFIG($1)
2730
])# AC_LIBTOOL_LANG_C_CONFIG
2733
# AC_LIBTOOL_LANG_CXX_CONFIG
2734
# --------------------------
2735
# Ensure that the configuration vars for the C compiler are
2736
# suitably defined. Those variables are subsequently used by
2737
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2738
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2739
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2741
AC_REQUIRE([AC_PROG_CXX])
2742
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2744
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2745
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2746
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2747
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2748
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2749
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2750
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2751
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2752
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2753
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2754
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2755
_LT_AC_TAGVAR(module_cmds, $1)=
2756
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2757
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2758
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2759
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2760
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2761
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2763
# Dependencies to place before and after the object being linked:
2764
_LT_AC_TAGVAR(predep_objects, $1)=
2765
_LT_AC_TAGVAR(postdep_objects, $1)=
2766
_LT_AC_TAGVAR(predeps, $1)=
2767
_LT_AC_TAGVAR(postdeps, $1)=
2768
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2770
# Source file extension for C++ test sources.
2773
# Object file extension for compiled C++ test sources.
2775
_LT_AC_TAGVAR(objext, $1)=$objext
2777
# Code to be used in simple compile tests
2778
lt_simple_compile_test_code="int some_variable = 0;\n"
2780
# Code to be used in simple link tests
2781
lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
2783
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2786
# save warnings/boilerplate of simple test code
2787
_LT_COMPILER_BOILERPLATE
2788
_LT_LINKER_BOILERPLATE
2790
# Allow CC to be a program name with arguments.
2795
lt_save_with_gnu_ld=$with_gnu_ld
2796
lt_save_path_LD=$lt_cv_path_LD
2797
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2798
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2800
unset lt_cv_prog_gnu_ld
2802
if test -n "${lt_cv_path_LDCXX+set}"; then
2803
lt_cv_path_LD=$lt_cv_path_LDCXX
2807
test -z "${LDCXX+set}" || LD=$LDCXX
2810
_LT_AC_TAGVAR(compiler, $1)=$CC
2811
_LT_CC_BASENAME([$compiler])
2813
# We don't want -fno-exception wen compiling C++ code, so set the
2814
# no_builtin_flag separately
2815
if test "$GXX" = yes; then
2816
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2818
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2821
if test "$GXX" = yes; then
2822
# Set up default GNU C++ configuration
2826
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2827
# archiving commands below assume that GNU ld is being used.
2828
if test "$with_gnu_ld" = yes; then
2829
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2830
_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'
2832
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2833
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2835
# If archive_cmds runs LD, not CC, wlarc should be empty
2836
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2837
# investigate it a little bit more. (MM)
2840
# ancient GNU ld didn't support --whole-archive et. al.
2841
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2842
grep 'no-whole-archive' > /dev/null; then
2843
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2845
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2851
# A generic and very simple default shared library creation
2852
# command for GNU C++ for the case where it uses the native
2853
# linker, instead of GNU ld. If possible, this setting should
2854
# overridden to take advantage of the native linker features on
2855
# the platform it is being used on.
2856
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2859
# Commands to make compiler produce verbose output that lists
2860
# what "hidden" libraries, object files and flags are used when
2861
# linking a shared library.
2862
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2870
# PORTME: fill in a description of your system's C++ link characteristics
2871
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2872
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
2875
# FIXME: insert proper C++ library support
2876
_LT_AC_TAGVAR(ld_shlibs, $1)=no
2879
if test "$host_cpu" = ia64; then
2880
# On IA64, the linker does run time linking by default, so we don't
2881
# have to do anything special.
2882
aix_use_runtimelinking=no
2883
exp_sym_flag='-Bexport'
2886
aix_use_runtimelinking=no
2888
# Test if we are trying to use run time linking or normal
2889
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
2890
# need to do runtime linking.
2891
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2892
for ld_flag in $LDFLAGS; do
2895
aix_use_runtimelinking=yes
2902
exp_sym_flag='-bexport'
2903
no_entry_flag='-bnoentry'
2906
# When large executables or shared objects are built, AIX ld can
2907
# have problems creating the table of contents. If linking a library
2908
# or program results in "error TOC overflow" add -mminimal-toc to
2909
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2910
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2912
_LT_AC_TAGVAR(archive_cmds, $1)=''
2913
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2914
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2915
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2917
if test "$GXX" = yes; then
2918
case $host_os in aix4.[[012]]|aix4.[[012]].*)
2919
# We only want to do this on AIX 4.2 and lower, the check
2920
# below for broken collect2 doesn't work under 4.3+
2921
collect2name=`${CC} -print-prog-name=collect2`
2922
if test -f "$collect2name" && \
2923
strings "$collect2name" | grep resolve_lib_name >/dev/null
2925
# We have reworked collect2
2926
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
2928
# We have old collect2
2929
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2930
# It fails to find uninstalled libraries when the uninstalled
2931
# path is not listed in the libpath. Setting hardcode_minus_L
2932
# to unsupported forces relinking
2933
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2934
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2935
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2938
shared_flag='-shared'
2939
if test "$aix_use_runtimelinking" = yes; then
2940
shared_flag="$shared_flag "'${wl}-G'
2944
if test "$host_cpu" = ia64; then
2945
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2946
# chokes on -Wl,-G. The following line is correct:
2949
if test "$aix_use_runtimelinking" = yes; then
2950
shared_flag='${wl}-G'
2952
shared_flag='${wl}-bM:SRE'
2957
# It seems that -bexpall does not export symbols beginning with
2958
# underscore (_), so it is better to generate a list of symbols to export.
2959
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2960
if test "$aix_use_runtimelinking" = yes; then
2961
# Warning - without using the other runtime loading flags (-brtl),
2962
# -berok will link without error, but may produce a broken library.
2963
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2964
# Determine the default libpath from the value encoded in an empty executable.
2965
_LT_AC_SYS_LIBPATH_AIX
2966
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2968
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2970
if test "$host_cpu" = ia64; then
2971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2972
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2973
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
2975
# Determine the default libpath from the value encoded in an empty executable.
2976
_LT_AC_SYS_LIBPATH_AIX
2977
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2978
# Warning - without using the other run time loading flags,
2979
# -berok will link without error, but may produce a broken library.
2980
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2981
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2982
# -bexpall does not export symbols beginning with underscore (_)
2983
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
2984
# Exported symbols can be pulled into shared objects from archives
2985
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
2986
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2987
# This is similar to how AIX traditionally builds its shared libraries.
2988
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2993
case $cc_basename in
2995
# FIXME: insert proper C++ library support
2996
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3002
cygwin* | mingw* | pw32*)
3003
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3004
# as there is no search path for DLLs.
3005
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3006
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3007
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3008
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3010
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3011
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3012
# If the export-symbols file already is a .def file (1st line
3013
# is EXPORTS), use it as is; otherwise, prepend...
3014
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3015
cp $export_symbols $output_objdir/$soname.def;
3017
echo EXPORTS > $output_objdir/$soname.def;
3018
cat $export_symbols >> $output_objdir/$soname.def;
3020
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
3022
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3025
darwin* | rhapsody*)
3027
rhapsody* | darwin1.[[012]])
3028
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3031
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3032
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3034
case ${MACOSX_DEPLOYMENT_TARGET} in
3036
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3039
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3045
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3046
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3047
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3048
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3049
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3050
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3052
if test "$GXX" = yes ; then
3053
lt_int_apple_cc_single_mod=no
3054
output_verbose_link_cmd='echo'
3055
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3056
lt_int_apple_cc_single_mod=yes
3058
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3059
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3061
_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'
3063
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3064
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3065
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3066
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3068
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3070
_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}'
3072
case $cc_basename in
3074
output_verbose_link_cmd='echo'
3075
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
3076
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3077
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3078
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3079
_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}'
3082
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3089
case $cc_basename in
3091
# FIXME: insert proper C++ library support
3092
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3095
# Green Hills C++ Compiler
3096
# FIXME: insert proper C++ library support
3097
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3100
# FIXME: insert proper C++ library support
3101
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3106
# C++ shared libraries reported to be fairly broken before switch to ELF
3107
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3110
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3112
freebsd* | kfreebsd*-gnu | dragonfly*)
3113
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3115
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3120
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3121
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3122
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3123
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3124
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3125
# but as the default
3126
# location of the library.
3128
case $cc_basename in
3130
# FIXME: insert proper C++ library support
3131
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3134
_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'
3135
# Commands to make compiler produce verbose output that lists
3136
# what "hidden" libraries, object files and flags are used when
3137
# linking a shared library.
3139
# There doesn't appear to be a way to prevent this compiler from
3140
# explicitly linking system object files so we need to strip them
3141
# from the output so that they don't get included in the library
3143
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'
3146
if test "$GXX" = yes; then
3147
_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'
3149
# FIXME: insert proper C++ library support
3150
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3156
if test $with_gnu_ld = no; then
3159
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3160
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3161
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3164
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3167
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3168
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3169
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3175
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3176
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3179
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3180
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3181
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3182
# but as the default
3183
# location of the library.
3186
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3187
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3188
# but as the default
3189
# location of the library.
3193
case $cc_basename in
3195
# FIXME: insert proper C++ library support
3196
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3201
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3204
_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'
3207
# Commands to make compiler produce verbose output that lists
3208
# what "hidden" libraries, object files and flags are used when
3209
# linking a shared library.
3211
# There doesn't appear to be a way to prevent this compiler from
3212
# explicitly linking system object files so we need to strip them
3213
# from the output so that they don't get included in the library
3215
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'
3218
if test "$GXX" = yes; then
3219
if test $with_gnu_ld = no; then
3222
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
3225
_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'
3230
# FIXME: insert proper C++ library support
3231
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3237
case $cc_basename in
3240
_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'
3242
# Archives containing C++ object files must be created using
3243
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3244
# necessary to make sure instantiated templates are included
3246
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3249
if test "$GXX" = yes; then
3250
if test "$with_gnu_ld" = no; then
3251
_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'
3253
_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'
3256
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3259
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3260
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3263
case $cc_basename in
3265
# Kuck and Associates, Inc. (KAI) C++ Compiler
3267
# KCC will only create a shared library if the output file
3268
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3269
# to its proper name (with version) after linking.
3270
_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'
3271
_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'
3272
# Commands to make compiler produce verbose output that lists
3273
# what "hidden" libraries, object files and flags are used when
3274
# linking a shared library.
3276
# There doesn't appear to be a way to prevent this compiler from
3277
# explicitly linking system object files so we need to strip them
3278
# from the output so that they don't get included in the library
3280
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'
3282
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3283
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3285
# Archives containing C++ object files must be created using
3286
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3287
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3292
# version 8.0 and above of icpc choke on multiply defined symbols
3293
# if we add $predep_objects and $postdep_objects, however 7.1 and
3294
# earlier do not add the objects themselves.
3295
case `$CC -V 2>&1` in
3297
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3298
_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'
3300
*) # Version 8.0 or newer
3303
ia64*) tmp_idyn=' -i_dynamic';;
3305
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3306
_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'
3309
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3310
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3311
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3312
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3315
# Portland Group C++ compiler
3316
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3317
_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'
3319
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3320
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3321
_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'
3325
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3326
_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'
3328
runpath_var=LD_RUN_PATH
3329
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3330
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3332
# Commands to make compiler produce verbose output that lists
3333
# what "hidden" libraries, object files and flags are used when
3334
# linking a shared library.
3336
# There doesn't appear to be a way to prevent this compiler from
3337
# explicitly linking system object files so we need to strip them
3338
# from the output so that they don't get included in the library
3340
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'
3345
# FIXME: insert proper C++ library support
3346
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3349
# FIXME: insert proper C++ library support
3350
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3353
case $cc_basename in
3355
# FIXME: insert proper C++ library support
3356
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3359
# FIXME: insert proper C++ library support
3360
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3364
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3365
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3366
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3368
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3369
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3370
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3372
# Workaround some broken pre-1.5 toolchains
3373
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3376
# C++ shared libraries are fairly broken
3377
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3380
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3381
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3382
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3383
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3384
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3385
_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'
3386
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3387
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3389
output_verbose_link_cmd='echo'
3392
case $cc_basename in
3394
# Kuck and Associates, Inc. (KAI) C++ Compiler
3396
# KCC will only create a shared library if the output file
3397
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3398
# to its proper name (with version) after linking.
3399
_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'
3401
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3402
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3404
# Archives containing C++ object files must be created using
3405
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3406
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3410
# Rational C++ 2.4.1
3411
# FIXME: insert proper C++ library support
3412
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3415
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3416
_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'
3418
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3419
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3421
# Commands to make compiler produce verbose output that lists
3422
# what "hidden" libraries, object files and flags are used when
3423
# linking a shared library.
3425
# There doesn't appear to be a way to prevent this compiler from
3426
# explicitly linking system object files so we need to strip them
3427
# from the output so that they don't get included in the library
3429
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'
3432
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3433
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3434
_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'
3436
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3437
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3439
# Commands to make compiler produce verbose output that lists
3440
# what "hidden" libraries, object files and flags are used when
3441
# linking a shared library.
3442
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3445
# FIXME: insert proper C++ library support
3446
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3452
case $cc_basename in
3454
# Kuck and Associates, Inc. (KAI) C++ Compiler
3456
# KCC will only create a shared library if the output file
3457
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3458
# to its proper name (with version) after linking.
3459
_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'
3461
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3462
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3464
# Archives containing C++ object files must be created using
3465
# the KAI C++ compiler.
3466
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3469
# Rational C++ 2.4.1
3470
# FIXME: insert proper C++ library support
3471
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3474
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3475
_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'
3476
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3477
echo "-hidden">> $lib.exp~
3478
$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~
3481
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3482
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3484
# Commands to make compiler produce verbose output that lists
3485
# what "hidden" libraries, object files and flags are used when
3486
# linking a shared library.
3488
# There doesn't appear to be a way to prevent this compiler from
3489
# explicitly linking system object files so we need to strip them
3490
# from the output so that they don't get included in the library
3492
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'
3495
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3496
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3497
_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'
3499
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3500
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3502
# Commands to make compiler produce verbose output that lists
3503
# what "hidden" libraries, object files and flags are used when
3504
# linking a shared library.
3505
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3508
# FIXME: insert proper C++ library support
3509
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3515
# FIXME: insert proper C++ library support
3516
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3519
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3520
case $cc_basename in
3522
# FIXME: insert proper C++ library support
3523
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3526
# FIXME: insert proper C++ library support
3527
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3532
case $cc_basename in
3535
# FIXME: insert proper C++ library support
3536
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3540
# FIXME: insert proper C++ library support
3541
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3544
# FIXME: insert proper C++ library support
3545
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3550
case $cc_basename in
3552
# Sun C++ 4.2, 5.x and Centerline C++
3553
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3554
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3555
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3556
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3557
$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'
3559
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3560
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3562
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3564
# The C++ compiler is used as linker so we must use $wl
3565
# flag to pass the commands to the underlying system
3566
# linker. We must also pass each convience library through
3567
# to the system linker between allextract/defaultextract.
3568
# The C++ compiler will combine linker options so we
3569
# cannot just pass the convience library names through
3571
# Supported since Solaris 2.6 (maybe 2.5.1?)
3572
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
3575
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3577
output_verbose_link_cmd='echo'
3579
# Archives containing C++ object files must be created using
3580
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3581
# necessary to make sure instantiated templates are included
3583
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3586
# Green Hills C++ Compiler
3587
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3589
# The C++ compiler must be used to create the archive.
3590
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3593
# GNU C++ compiler with Solaris linker
3594
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3595
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3596
if $CC --version | grep -v '^2\.7' > /dev/null; then
3597
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3598
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3599
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3601
# Commands to make compiler produce verbose output that lists
3602
# what "hidden" libraries, object files and flags are used when
3603
# linking a shared library.
3604
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3606
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3608
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3609
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3610
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3612
# Commands to make compiler produce verbose output that lists
3613
# what "hidden" libraries, object files and flags are used when
3614
# linking a shared library.
3615
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3618
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3623
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
3624
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3627
case $cc_basename in
3629
# NonStop-UX NCC 3.20
3630
# FIXME: insert proper C++ library support
3631
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3634
# FIXME: insert proper C++ library support
3635
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3640
# FIXME: insert proper C++ library support
3641
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3644
# FIXME: insert proper C++ library support
3645
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3648
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3649
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3651
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3652
_LT_AC_TAGVAR(LD, $1)="$LD"
3654
AC_LIBTOOL_POSTDEP_PREDEP($1)
3655
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3656
AC_LIBTOOL_PROG_CC_C_O($1)
3657
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3658
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3659
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3660
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3661
AC_LIBTOOL_SYS_LIB_STRIP
3662
AC_LIBTOOL_DLOPEN_SELF($1)
3664
AC_LIBTOOL_CONFIG($1)
3671
with_gnu_ldcxx=$with_gnu_ld
3672
with_gnu_ld=$lt_save_with_gnu_ld
3673
lt_cv_path_LDCXX=$lt_cv_path_LD
3674
lt_cv_path_LD=$lt_save_path_LD
3675
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3676
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3677
])# AC_LIBTOOL_LANG_CXX_CONFIG
3679
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3680
# ------------------------
3681
# Figure out "hidden" library dependencies from verbose
3682
# compiler output when linking a shared library.
3683
# Parse the compiler output and extract the necessary
3684
# objects, libraries and library flags.
3685
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3686
dnl we can't use the lt_simple_compile_test_code here,
3687
dnl because it contains code intended for an executable,
3688
dnl not a library. It's possible we should let each
3689
dnl tag define a new lt_????_link_test_code variable,
3690
dnl but it's only used here...
3691
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3693
void foo (void) { a = 0; }
3695
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3699
Foo (void) { a = 0; }
3704
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3712
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3715
public void bar (void) {
3721
dnl Parse the compiler output and extract the necessary
3722
dnl objects, libraries and library flags.
3723
if AC_TRY_EVAL(ac_compile); then
3724
# Parse the compiler output and extract the necessary
3725
# objects, libraries and library flags.
3727
# Sentinel used to keep track of whether or not we are before
3728
# the conftest object file.
3729
pre_test_object_deps_done=no
3731
# The `*' in the case matches for architectures that use `case' in
3732
# $output_verbose_cmd can trigger glob expansion during the loop
3733
# eval without this substitution.
3734
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3736
for p in `eval $output_verbose_link_cmd`; do
3740
# Some compilers place space between "-{L,R}" and the path.
3743
|| test $p = "-R"; then
3750
if test "$pre_test_object_deps_done" = no; then
3753
# Internal compiler library paths should come after those
3754
# provided the user. The postdeps already come after the
3755
# user supplied libs so there is no need to process them.
3756
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3757
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3759
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3762
# The "-l" case would never come before the object being
3763
# linked, so don't bother handling this case.
3766
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3767
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3769
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3775
# This assumes that the test object file only shows up
3776
# once in the compiler output.
3777
if test "$p" = "conftest.$objext"; then
3778
pre_test_object_deps_done=yes
3782
if test "$pre_test_object_deps_done" = no; then
3783
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3784
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3786
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3789
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3790
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3792
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3797
*) ;; # Ignore the rest.
3805
echo "libtool.m4: error: problem compiling $1 test program"
3808
$rm -f confest.$objext
3810
# PORTME: override above test on systems where it is broken
3814
case $cc_basename in
3816
# Adding this requires a known-good setup of shared libraries for
3817
# Sun compiler versions before 5.6, else PIC objects from an old
3818
# archive will be linked into the output, leading to subtle bugs.
3819
_LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3825
case " $_LT_AC_TAGVAR(postdeps, $1) " in
3826
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3828
])# AC_LIBTOOL_POSTDEP_PREDEP
3830
# AC_LIBTOOL_LANG_F77_CONFIG
3831
# ------------------------
3832
# Ensure that the configuration vars for the C compiler are
3833
# suitably defined. Those variables are subsequently used by
3834
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3835
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3836
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3837
[AC_REQUIRE([AC_PROG_F77])
3838
AC_LANG_PUSH(Fortran 77)
3840
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3841
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3842
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3843
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3844
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3845
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3846
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3847
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3848
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3849
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3850
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3851
_LT_AC_TAGVAR(module_cmds, $1)=
3852
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3853
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3854
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3855
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3856
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3857
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3859
# Source file extension for f77 test sources.
3862
# Object file extension for compiled f77 test sources.
3864
_LT_AC_TAGVAR(objext, $1)=$objext
3866
# Code to be used in simple compile tests
3867
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3869
# Code to be used in simple link tests
3870
lt_simple_link_test_code=" program t\n end\n"
3872
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3875
# save warnings/boilerplate of simple test code
3876
_LT_COMPILER_BOILERPLATE
3877
_LT_LINKER_BOILERPLATE
3879
# Allow CC to be a program name with arguments.
3883
_LT_AC_TAGVAR(compiler, $1)=$CC
3884
_LT_CC_BASENAME([$compiler])
3886
AC_MSG_CHECKING([if libtool supports shared libraries])
3887
AC_MSG_RESULT([$can_build_shared])
3889
AC_MSG_CHECKING([whether to build shared libraries])
3890
test "$can_build_shared" = "no" && enable_shared=no
3892
# On AIX, shared libraries and static libraries use the same namespace, and
3893
# are all built from PIC.
3896
test "$enable_shared" = yes && enable_static=no
3897
if test -n "$RANLIB"; then
3898
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3899
postinstall_cmds='$RANLIB $lib'
3903
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3904
test "$enable_shared" = yes && enable_static=no
3908
AC_MSG_RESULT([$enable_shared])
3910
AC_MSG_CHECKING([whether to build static libraries])
3911
# Make sure either enable_shared or enable_static is yes.
3912
test "$enable_shared" = yes || enable_static=yes
3913
AC_MSG_RESULT([$enable_static])
3915
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3917
_LT_AC_TAGVAR(GCC, $1)="$G77"
3918
_LT_AC_TAGVAR(LD, $1)="$LD"
3920
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3921
AC_LIBTOOL_PROG_CC_C_O($1)
3922
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3923
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3924
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3925
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3926
AC_LIBTOOL_SYS_LIB_STRIP
3929
AC_LIBTOOL_CONFIG($1)
3933
])# AC_LIBTOOL_LANG_F77_CONFIG
3936
# AC_LIBTOOL_LANG_GCJ_CONFIG
3937
# --------------------------
3938
# Ensure that the configuration vars for the C compiler are
3939
# suitably defined. Those variables are subsequently used by
3940
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3941
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3942
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3945
# Source file extension for Java test sources.
3948
# Object file extension for compiled Java test sources.
3950
_LT_AC_TAGVAR(objext, $1)=$objext
3952
# Code to be used in simple compile tests
3953
lt_simple_compile_test_code="class foo {}\n"
3955
# Code to be used in simple link tests
3956
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
3958
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3961
# save warnings/boilerplate of simple test code
3962
_LT_COMPILER_BOILERPLATE
3963
_LT_LINKER_BOILERPLATE
3965
# Allow CC to be a program name with arguments.
3969
_LT_AC_TAGVAR(compiler, $1)=$CC
3970
_LT_CC_BASENAME([$compiler])
3972
# GCJ did not exist at the time GCC didn't implicitly link libc in.
3973
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3975
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3977
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3978
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3979
AC_LIBTOOL_PROG_CC_C_O($1)
3980
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3981
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3982
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3983
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3984
AC_LIBTOOL_SYS_LIB_STRIP
3985
AC_LIBTOOL_DLOPEN_SELF($1)
3987
AC_LIBTOOL_CONFIG($1)
3991
])# AC_LIBTOOL_LANG_GCJ_CONFIG
3994
# AC_LIBTOOL_LANG_RC_CONFIG
3995
# --------------------------
3996
# Ensure that the configuration vars for the Windows resource compiler are
3997
# suitably defined. Those variables are subsequently used by
3998
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3999
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4000
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4003
# Source file extension for RC test sources.
4006
# Object file extension for compiled RC test sources.
4008
_LT_AC_TAGVAR(objext, $1)=$objext
4010
# Code to be used in simple compile tests
4011
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4013
# Code to be used in simple link tests
4014
lt_simple_link_test_code="$lt_simple_compile_test_code"
4016
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4019
# save warnings/boilerplate of simple test code
4020
_LT_COMPILER_BOILERPLATE
4021
_LT_LINKER_BOILERPLATE
4023
# Allow CC to be a program name with arguments.
4027
_LT_AC_TAGVAR(compiler, $1)=$CC
4028
_LT_CC_BASENAME([$compiler])
4029
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4031
AC_LIBTOOL_CONFIG($1)
4035
])# AC_LIBTOOL_LANG_RC_CONFIG
4038
# AC_LIBTOOL_CONFIG([TAGNAME])
4039
# ----------------------------
4040
# If TAGNAME is not passed, then create an initial libtool script
4041
# with a default configuration from the untagged config vars. Otherwise
4042
# add code to config.status for appending the configuration named by
4043
# TAGNAME from the matching tagged config vars.
4044
AC_DEFUN([AC_LIBTOOL_CONFIG],
4045
[# The else clause should only fire when bootstrapping the
4046
# libtool distribution, otherwise you forgot to ship ltmain.sh
4047
# with your package, and you will get complaints that there are
4048
# no rules to generate ltmain.sh.
4049
if test -f "$ltmain"; then
4050
# See if we are running on zsh, and set the options which allow our commands through
4051
# without removal of \ escapes.
4052
if test -n "${ZSH_VERSION+set}" ; then
4053
setopt NO_GLOB_SUBST
4055
# Now quote all the things that may contain metacharacters while being
4056
# careful not to overquote the AC_SUBSTed values. We take copies of the
4057
# variables and quote the copies for generation of the libtool script.
4058
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
4060
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4061
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4062
deplibs_check_method reload_flag reload_cmds need_locks \
4063
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4064
lt_cv_sys_global_symbol_to_c_name_address \
4065
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4066
old_postinstall_cmds old_postuninstall_cmds \
4067
_LT_AC_TAGVAR(compiler, $1) \
4068
_LT_AC_TAGVAR(CC, $1) \
4069
_LT_AC_TAGVAR(LD, $1) \
4070
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4071
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4072
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4073
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4074
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4075
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4076
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4077
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4078
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4079
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4080
_LT_AC_TAGVAR(predep_objects, $1) \
4081
_LT_AC_TAGVAR(postdep_objects, $1) \
4082
_LT_AC_TAGVAR(predeps, $1) \
4083
_LT_AC_TAGVAR(postdeps, $1) \
4084
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4085
_LT_AC_TAGVAR(archive_cmds, $1) \
4086
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4087
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4088
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4089
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4090
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4091
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4092
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4093
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4094
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4095
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4096
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4097
_LT_AC_TAGVAR(module_cmds, $1) \
4098
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4099
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4100
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4101
_LT_AC_TAGVAR(include_expsyms, $1); do
4104
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4105
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4106
_LT_AC_TAGVAR(archive_cmds, $1) | \
4107
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4108
_LT_AC_TAGVAR(module_cmds, $1) | \
4109
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4110
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4111
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4112
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4113
postinstall_cmds | postuninstall_cmds | \
4114
old_postinstall_cmds | old_postuninstall_cmds | \
4115
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4116
# Double-quote double-evaled strings.
4117
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4120
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4126
*'\[$]0 --fallback-echo"')
4127
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4132
[cfgfile="${ofile}T"
4133
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4135
AC_MSG_NOTICE([creating $ofile])],
4138
cat <<__EOF__ >> "$cfgfile"
4142
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4143
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4144
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4146
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4147
# Free Software Foundation, Inc.
4149
# This file is part of GNU Libtool:
4150
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4152
# This program is free software; you can redistribute it and/or modify
4153
# it under the terms of the GNU General Public License as published by
4154
# the Free Software Foundation; either version 2 of the License, or
4155
# (at your option) any later version.
4157
# This program is distributed in the hope that it will be useful, but
4158
# WITHOUT ANY WARRANTY; without even the implied warranty of
4159
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4160
# General Public License for more details.
4162
# You should have received a copy of the GNU General Public License
4163
# along with this program; if not, write to the Free Software
4164
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4166
# As a special exception to the GNU General Public License, if you
4167
# distribute this file as part of a program that contains a
4168
# configuration script generated by Autoconf, you may include it under
4169
# the same distribution terms that you use for the rest of that program.
4171
# A sed program that does not truncate output.
4174
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4175
Xsed="$SED -e 1s/^X//"
4177
# The HP-UX ksh and POSIX shell print the target directory to stdout
4179
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4181
# The names of the tagged configurations supported by this script.
4184
# ### BEGIN LIBTOOL CONFIG],
4185
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4187
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4189
# Shell to use when invoking shell scripts.
4192
# Whether or not to build shared libraries.
4193
build_libtool_libs=$enable_shared
4195
# Whether or not to build static libraries.
4196
build_old_libs=$enable_static
4198
# Whether or not to add -lc for building shared libraries.
4199
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4201
# Whether or not to disallow shared libs when runtime libs are static
4202
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4204
# Whether or not to optimize for fast installation.
4205
fast_install=$enable_fast_install
4208
host_alias=$host_alias
4213
build_alias=$build_alias
4217
# An echo program that does not interpret backslashes.
4222
AR_FLAGS=$lt_AR_FLAGS
4227
# A language-specific compiler.
4228
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4230
# Is the compiler the GNU C compiler?
4231
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4236
# The linker used to build libraries.
4237
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4239
# Whether we need hard or soft links.
4242
# A BSD-compatible nm program.
4245
# A symbol stripping program
4248
# Used to examine libraries when file_magic_cmd begins "file"
4249
MAGIC_CMD=$MAGIC_CMD
4251
# Used on cygwin: DLL creation program.
4254
# Used on cygwin: object dumper.
4257
# Used on cygwin: assembler.
4260
# The name of the directory that contains temporary libtool files.
4263
# How to create reloadable object files.
4264
reload_flag=$lt_reload_flag
4265
reload_cmds=$lt_reload_cmds
4267
# How to pass a linker flag through the compiler.
4268
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4270
# Object file suffix (normally "o").
4273
# Old archive suffix (normally "a").
4276
# Shared library suffix (normally ".so").
4277
shrext_cmds='$shrext_cmds'
4279
# Executable file suffix (normally "").
4282
# Additional compiler flags for building library objects.
4283
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4286
# What is the maximum length of a command?
4287
max_cmd_len=$lt_cv_sys_max_cmd_len
4289
# Does compiler simultaneously support -c and -o options?
4290
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4292
# Must we lock files when doing compilation?
4293
need_locks=$lt_need_locks
4295
# Do we need the lib prefix for modules?
4296
need_lib_prefix=$need_lib_prefix
4298
# Do we need a version for libraries?
4299
need_version=$need_version
4301
# Whether dlopen is supported.
4302
dlopen_support=$enable_dlopen
4304
# Whether dlopen of programs is supported.
4305
dlopen_self=$enable_dlopen_self
4307
# Whether dlopen of statically linked programs is supported.
4308
dlopen_self_static=$enable_dlopen_self_static
4310
# Compiler flag to prevent dynamic linking.
4311
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4313
# Compiler flag to turn off builtin functions.
4314
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4316
# Compiler flag to allow reflexive dlopens.
4317
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4319
# Compiler flag to generate shared objects directly from archives.
4320
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4322
# Compiler flag to generate thread-safe objects.
4323
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4325
# Library versioning type.
4326
version_type=$version_type
4328
# Format of library name prefix.
4329
libname_spec=$lt_libname_spec
4331
# List of archive names. First name is the real one, the rest are links.
4332
# The last name is the one that the linker finds with -lNAME.
4333
library_names_spec=$lt_library_names_spec
4335
# The coded name of the library, if different from the real name.
4336
soname_spec=$lt_soname_spec
4338
# Commands used to build and install an old-style archive.
4340
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4341
old_postinstall_cmds=$lt_old_postinstall_cmds
4342
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4344
# Create an old-style archive from a shared archive.
4345
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4347
# Create a temporary old-style archive to link instead of a shared archive.
4348
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4350
# Commands used to build and install a shared archive.
4351
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4352
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4353
postinstall_cmds=$lt_postinstall_cmds
4354
postuninstall_cmds=$lt_postuninstall_cmds
4356
# Commands used to build a loadable module (assumed same as above if empty)
4357
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4358
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4360
# Commands to strip libraries.
4361
old_striplib=$lt_old_striplib
4362
striplib=$lt_striplib
4364
# Dependencies to place before the objects being linked to create a
4366
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4368
# Dependencies to place after the objects being linked to create a
4370
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4372
# Dependencies to place before the objects being linked to create a
4374
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4376
# Dependencies to place after the objects being linked to create a
4378
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4380
# The library search path used internally by the compiler when linking
4382
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4384
# Method to check whether dependent libraries are shared objects.
4385
deplibs_check_method=$lt_deplibs_check_method
4387
# Command to use when deplibs_check_method == file_magic.
4388
file_magic_cmd=$lt_file_magic_cmd
4390
# Flag that allows shared libraries with undefined symbols to be built.
4391
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4393
# Flag that forces no undefined symbols.
4394
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4396
# Commands used to finish a libtool library installation in a directory.
4397
finish_cmds=$lt_finish_cmds
4399
# Same as above, but a single script fragment to be evaled but not shown.
4400
finish_eval=$lt_finish_eval
4402
# Take the output of nm and produce a listing of raw symbols and C names.
4403
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4405
# Transform the output of nm in a proper C declaration
4406
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4408
# Transform the output of nm in a C name address pair
4409
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4411
# This is the shared library runtime path variable.
4412
runpath_var=$runpath_var
4414
# This is the shared library path variable.
4415
shlibpath_var=$shlibpath_var
4417
# Is shlibpath searched before the hard-coded library search path?
4418
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4420
# How to hardcode a shared library path into an executable.
4421
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4423
# Whether we should hardcode library paths into libraries.
4424
hardcode_into_libs=$hardcode_into_libs
4426
# Flag to hardcode \$libdir into a binary during linking.
4427
# This must work even if \$libdir does not exist.
4428
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4430
# If ld is used when linking, flag to hardcode \$libdir into
4431
# a binary during linking. This must work even if \$libdir does
4433
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4435
# Whether we need a single -rpath flag with a separated argument.
4436
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4438
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4440
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4442
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4444
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4446
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4447
# the resulting binary.
4448
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4450
# Set to yes if building a shared library automatically hardcodes DIR into the library
4451
# and all subsequent libraries and executables linked against it.
4452
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4454
# Variables whose values should be saved in libtool wrapper scripts and
4455
# restored at relink time.
4456
variables_saved_for_relink="$variables_saved_for_relink"
4458
# Whether libtool must link a program against all its dependency libraries.
4459
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4461
# Compile-time system search path for libraries
4462
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4464
# Run-time system search path for libraries
4465
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4467
# Fix the shell variable \$srcfile for the compiler.
4468
fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4470
# Set to yes if exported symbols are required.
4471
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4473
# The commands to list exported symbols.
4474
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4476
# The commands to extract the exported symbol list from a shared archive.
4477
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4479
# Symbols that should not be listed in the preloaded symbols.
4480
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4482
# Symbols that must always be exported.
4483
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4486
[# ### END LIBTOOL CONFIG],
4487
[# ### END LIBTOOL TAG CONFIG: $tagname])
4494
cat <<\EOF >> "$cfgfile"
4496
# AIX sometimes has problems with the GCC collect2 program. For some
4497
# reason, if we set the COLLECT_NAMES environment variable, the problems
4498
# vanish in a puff of smoke.
4499
if test "X${COLLECT_NAMES+set}" != Xset; then
4501
export COLLECT_NAMES
4507
# We use sed instead of cat because bash on DJGPP gets confused if
4508
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4509
# text mode, it properly converts lines to CR/LF. This bash problem
4510
# is reportedly fixed, but why not run on old versions too?
4511
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4513
mv -f "$cfgfile" "$ofile" || \
4514
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4518
# If there is no Makefile yet, we rely on a make rule to execute
4519
# `config.status --recheck' to rerun these tests and create the
4520
# libtool script then.
4521
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4522
if test -f "$ltmain_in"; then
4523
test -f Makefile && make "$ltmain"
4526
])# AC_LIBTOOL_CONFIG
4529
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4530
# -------------------------------------------
4531
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4532
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4534
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4536
if test "$GCC" = yes; then
4537
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4539
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4540
lt_cv_prog_compiler_rtti_exceptions,
4541
[-fno-rtti -fno-exceptions], [],
4542
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4544
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4547
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4548
# ---------------------------------
4549
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4550
[AC_REQUIRE([AC_CANONICAL_HOST])
4551
AC_REQUIRE([AC_PROG_NM])
4552
AC_REQUIRE([AC_OBJEXT])
4553
# Check for command to grab the raw symbol name followed by C symbol from nm.
4554
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4555
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4557
# These are sane defaults that work on at least a few old systems.
4558
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4560
# Character class describing NM global symbol codes.
4561
symcode='[[BCDEGRST]]'
4563
# Regexp to match symbols that can be accessed directly from C.
4564
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4566
# Transform an extracted symbol line into a proper C declaration
4567
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4569
# Transform an extracted symbol line into symbol name and symbol address
4570
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'"
4572
# Define system-specific variables.
4577
cygwin* | mingw* | pw32*)
4578
symcode='[[ABCDGISTW]]'
4580
hpux*) # Its linker distinguishes data from code symbols
4581
if test "$host_cpu" = ia64; then
4582
symcode='[[ABCDEGRST]]'
4584
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4585
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'"
4588
if test "$host_cpu" = ia64; then
4589
symcode='[[ABCDGIRSTW]]'
4590
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4591
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'"
4595
symcode='[[BCDEGRST]]'
4598
symcode='[[BCDEGQRST]]'
4604
symcode='[[DFNSTU]]'
4608
# Handle CRLF in mingw tool chain
4612
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4616
# If we're using GNU nm, then use its standard symbol codes.
4617
case `$NM -V 2>&1` in
4618
*GNU* | *'with BFD'*)
4619
symcode='[[ABCDGIRSTW]]' ;;
4622
# Try without a prefix undercore, then with it.
4623
for ac_symprfx in "" "_"; do
4625
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4626
symxfrm="\\1 $ac_symprfx\\2 \\2"
4628
# Write the raw and C identifiers.
4629
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4631
# Check to see that the pipe works correctly.
4635
cat > conftest.$ac_ext <<EOF
4640
void nm_test_func(){}
4644
int main(){nm_test_var='a';nm_test_func();return(0);}
4647
if AC_TRY_EVAL(ac_compile); then
4648
# Now try to grab the symbols.
4650
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4651
# Try sorting and uniquifying the output.
4652
if sort "$nlist" | uniq > "$nlist"T; then
4653
mv -f "$nlist"T "$nlist"
4658
# Make sure that we snagged all the symbols we need.
4659
if grep ' nm_test_var$' "$nlist" >/dev/null; then
4660
if grep ' nm_test_func$' "$nlist" >/dev/null; then
4661
cat <<EOF > conftest.$ac_ext
4667
# Now generate the symbol file.
4668
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4670
cat <<EOF >> conftest.$ac_ext
4671
#if defined (__STDC__) && __STDC__
4672
# define lt_ptr_t void *
4674
# define lt_ptr_t char *
4678
/* The mapping between symbol names and symbols. */
4683
lt_preloaded_symbols[[]] =
4686
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4687
cat <<\EOF >> conftest.$ac_ext
4695
# Now try linking the two files.
4696
mv conftest.$ac_objext conftstm.$ac_objext
4697
lt_save_LIBS="$LIBS"
4698
lt_save_CFLAGS="$CFLAGS"
4699
LIBS="conftstm.$ac_objext"
4700
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4701
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4704
LIBS="$lt_save_LIBS"
4705
CFLAGS="$lt_save_CFLAGS"
4707
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4710
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4713
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4716
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4717
cat conftest.$ac_ext >&5
4719
rm -f conftest* conftst*
4721
# Do not use the global_symbol_pipe unless it works.
4722
if test "$pipe_works" = yes; then
4725
lt_cv_sys_global_symbol_pipe=
4729
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4730
lt_cv_sys_global_symbol_to_cdecl=
4732
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4733
AC_MSG_RESULT(failed)
4737
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4740
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4741
# ---------------------------------------
4742
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4743
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4744
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4745
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4747
AC_MSG_CHECKING([for $compiler option to produce PIC])
4749
# C++ specific cases for pic, static, wl, etc.
4750
if test "$GXX" = yes; then
4751
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4752
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4756
# All AIX code is PIC.
4757
if test "$host_cpu" = ia64; then
4758
# AIX 5 now supports IA64 processor
4759
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4763
# FIXME: we need at least 68020 code to build shared libraries, but
4764
# adding the `-m68020' flag to GCC prevents building anything better,
4766
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4768
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4769
# PIC is the default for these OSes.
4771
mingw* | os2* | pw32*)
4772
# This hack is so that the source file can tell whether it is being
4773
# built for inclusion in a dll (and should export symbols for example).
4774
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4776
darwin* | rhapsody*)
4777
# PIC is the default on this platform
4778
# Common symbols not allowed in MH_DYLIB files
4779
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4782
# DJGPP does not support shared libraries at all
4783
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4786
if test -d /usr/nec; then
4787
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4791
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4797
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4802
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4808
# All AIX code is PIC.
4809
if test "$host_cpu" = ia64; then
4810
# AIX 5 now supports IA64 processor
4811
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4813
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4817
case $cc_basename in
4819
# Green Hills C++ Compiler
4820
# _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"
4825
# PIC is the default on this platform
4826
# Common symbols not allowed in MH_DYLIB files
4827
case $cc_basename in
4829
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4830
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4835
case $cc_basename in
4837
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4840
# Green Hills C++ Compiler
4841
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4847
freebsd* | kfreebsd*-gnu | dragonfly*)
4848
# FreeBSD uses GNU C++
4850
hpux9* | hpux10* | hpux11*)
4851
case $cc_basename in
4853
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4854
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4855
if test "$host_cpu" != ia64; then
4856
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4860
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4861
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
4867
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4875
irix5* | irix6* | nonstopux*)
4876
case $cc_basename in
4878
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4879
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4880
# CC pic flag -KPIC is the default.
4887
case $cc_basename in
4890
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4891
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4895
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4896
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4897
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4900
# Portland Group C++ compiler.
4901
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4902
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4903
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4907
# Make sure the PIC flag is empty. It appears that all Alpha
4908
# Linux and Compaq Tru64 Unix objects are PIC.
4909
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4910
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4921
case $cc_basename in
4923
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4929
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4931
osf3* | osf4* | osf5*)
4932
case $cc_basename in
4934
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4937
# Rational C++ 2.4.1
4938
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4941
# Digital/Compaq C++
4942
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4943
# Make sure the PIC flag is empty. It appears that all Alpha
4944
# Linux and Compaq Tru64 Unix objects are PIC.
4945
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4946
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4955
case $cc_basename in
4957
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4964
case $cc_basename in
4966
# Sun C++ 4.2, 5.x and Centerline C++
4967
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4968
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4969
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4972
# Green Hills C++ Compiler
4973
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4980
case $cc_basename in
4983
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4984
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4988
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4995
case $cc_basename in
4997
# NonStop-UX NCC 3.20
4998
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5009
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5015
if test "$GCC" = yes; then
5016
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5017
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5021
# All AIX code is PIC.
5022
if test "$host_cpu" = ia64; then
5023
# AIX 5 now supports IA64 processor
5024
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5029
# FIXME: we need at least 68020 code to build shared libraries, but
5030
# adding the `-m68020' flag to GCC prevents building anything better,
5032
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5035
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5036
# PIC is the default for these OSes.
5039
mingw* | pw32* | os2*)
5040
# This hack is so that the source file can tell whether it is being
5041
# built for inclusion in a dll (and should export symbols for example).
5042
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5045
darwin* | rhapsody*)
5046
# PIC is the default on this platform
5047
# Common symbols not allowed in MH_DYLIB files
5048
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5052
# Just because we use GCC doesn't mean we suddenly get shared libraries
5053
# on systems that don't support them.
5054
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5059
if test -d /usr/nec; then
5060
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5065
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5072
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5078
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5082
# PORTME Check for flag to pass linker flags through the system compiler.
5085
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5086
if test "$host_cpu" = ia64; then
5087
# AIX 5 now supports IA64 processor
5088
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5090
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5094
# PIC is the default on this platform
5095
# Common symbols not allowed in MH_DYLIB files
5096
case $cc_basename in
5098
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5099
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5104
mingw* | pw32* | os2*)
5105
# This hack is so that the source file can tell whether it is being
5106
# built for inclusion in a dll (and should export symbols for example).
5107
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5110
hpux9* | hpux10* | hpux11*)
5111
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5112
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5119
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5122
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5123
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5126
irix5* | irix6* | nonstopux*)
5127
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5128
# PIC (with -KPIC) is the default.
5129
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5133
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5134
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5138
case $cc_basename in
5140
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5141
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5142
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5144
pgcc* | pgf77* | pgf90* | pgf95*)
5145
# Portland Group compilers (*not* the Pentium gcc compiler,
5146
# which looks to be a dead project)
5147
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5148
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5149
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5152
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5153
# All Alpha code is PIC.
5154
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5159
osf3* | osf4* | osf5*)
5160
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5161
# All OSF/1 code is PIC.
5162
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5166
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
5167
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
5171
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5172
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5173
case $cc_basename in
5175
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5177
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5182
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5183
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5184
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5187
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5188
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5189
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5190
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5194
if test -d /usr/nec ;then
5195
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5196
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5201
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5202
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5206
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5207
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5211
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5216
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5219
# Check to make sure the PIC flag actually works.
5221
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5222
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5223
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5224
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5225
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5227
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5229
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5230
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5233
# For platforms which do not support PIC, -DPIC is meaningless:
5235
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5238
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5244
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5245
# ------------------------------------
5246
# See if the linker supports building shared libraries.
5247
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5248
[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5250
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5253
# If we're using GNU nm, then we don't want the "-C" option.
5254
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5255
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5256
_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'
5258
_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'
5262
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5265
_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'
5268
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5271
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5276
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5277
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5278
_LT_AC_TAGVAR(archive_cmds, $1)=
5279
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5280
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5281
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5282
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5283
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5284
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5285
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5286
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5287
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5288
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5289
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5290
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5291
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5292
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5293
_LT_AC_TAGVAR(module_cmds, $1)=
5294
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5295
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5296
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5297
# include_expsyms should be a list of space-separated symbols to be *always*
5298
# included in the symbol list
5299
_LT_AC_TAGVAR(include_expsyms, $1)=
5300
# exclude_expsyms can be an extended regexp of symbols to exclude
5301
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5302
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5303
# as well as any symbol that contains `d'.
5304
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5305
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5306
# platforms (ab)use it in PIC code, but their linkers get confused if
5307
# the symbol is explicitly referenced. Since portable code cannot
5308
# rely on this symbol name, it's probably fine to never include it in
5309
# preloaded symbol tables.
5310
extract_expsyms_cmds=
5311
# Just being paranoid about ensuring that cc_basename is set.
5312
_LT_CC_BASENAME([$compiler])
5314
cygwin* | mingw* | pw32*)
5315
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5316
# When not using gcc, we currently assume that we are using
5317
# Microsoft Visual C++.
5318
if test "$GCC" != yes; then
5327
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5328
if test "$with_gnu_ld" = yes; then
5329
# If archive_cmds runs LD, not CC, wlarc should be empty
5332
# Set some defaults for GNU ld with shared library support. These
5333
# are reset later if shared libraries are not supported. Putting them
5334
# here allows them to be overridden if necessary.
5335
runpath_var=LD_RUN_PATH
5336
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5337
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5338
# ancient GNU ld didn't support --whole-archive et. al.
5339
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5340
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5342
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5344
supports_anon_versioning=no
5345
case `$LD -v 2>/dev/null` in
5346
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5347
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5348
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5349
*\ 2.11.*) ;; # other 2.11 versions
5350
*) supports_anon_versioning=yes ;;
5353
# See if GNU ld supports shared libraries.
5355
aix3* | aix4* | aix5*)
5356
# On AIX/PPC, the GNU linker is very broken
5357
if test "$host_cpu" != ia64; then
5358
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5361
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5362
*** to be unable to reliably create shared libraries on AIX.
5363
*** Therefore, libtool is disabling shared libraries support. If you
5364
*** really care for shared libraries, you may want to modify your PATH
5365
*** so that a non-GNU linker is found, and then restart.
5372
_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)'
5373
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5374
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5376
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5377
# that the semantics of dynamic libraries on AmigaOS, at least up
5378
# to version 4, is to share data among multiple programs linked
5379
# with the same dynamic library. Since this doesn't match the
5380
# behavior of shared libraries on other platforms, we can't use
5382
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5386
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5387
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5388
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5389
# support --undefined. This deserves some investigation. FIXME
5390
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5392
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5396
cygwin* | mingw* | pw32*)
5397
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5398
# as there is no search path for DLLs.
5399
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5400
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5401
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5402
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5403
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5405
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5406
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5407
# If the export-symbols file already is a .def file (1st line
5408
# is EXPORTS), use it as is; otherwise, prepend...
5409
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5410
cp $export_symbols $output_objdir/$soname.def;
5412
echo EXPORTS > $output_objdir/$soname.def;
5413
cat $export_symbols >> $output_objdir/$soname.def;
5415
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
5417
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5422
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5424
case $cc_basename,$host_cpu in
5425
pgcc*) # Portland Group C compiler
5426
_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'
5427
tmp_addflag=' $pic_flag'
5429
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5430
_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'
5431
tmp_addflag=' $pic_flag -Mnomain' ;;
5432
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5433
tmp_addflag=' -i_dynamic' ;;
5434
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5435
tmp_addflag=' -i_dynamic -nofor_main' ;;
5436
ifc* | ifort*) # Intel Fortran compiler
5437
tmp_addflag=' -nofor_main' ;;
5439
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5441
if test $supports_anon_versioning = yes; then
5442
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5443
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5444
$echo "local: *; };" >> $output_objdir/$libname.ver~
5445
$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5447
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5449
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5453
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5454
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5455
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5458
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5459
_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'
5464
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5465
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5468
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5469
*** create shared libraries on Solaris systems. Therefore, libtool
5470
*** is disabling shared libraries support. We urge you to upgrade GNU
5471
*** binutils to release 2.9.1 or newer. Another option is to modify
5472
*** your PATH or compiler configuration so that the native linker is
5473
*** used, and then restart.
5476
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5477
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5478
_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'
5480
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5485
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5487
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5488
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5492
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5493
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5494
_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'
5496
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5501
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5503
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5504
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5505
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5508
# PORTME fill in a description of your system's linker (not GNU ld)
5511
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5512
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5513
_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'
5514
# Note: this linker hardcodes the directories in LIBPATH if there
5515
# are no directories specified by -L.
5516
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5517
if test "$GCC" = yes && test -z "$link_static_flag"; then
5518
# Neither direct hardcoding nor static linking is supported with a
5520
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5525
if test "$host_cpu" = ia64; then
5526
# On IA64, the linker does run time linking by default, so we don't
5527
# have to do anything special.
5528
aix_use_runtimelinking=no
5529
exp_sym_flag='-Bexport'
5532
# If we're using GNU nm, then we don't want the "-C" option.
5533
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5534
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5535
_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'
5537
_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'
5539
aix_use_runtimelinking=no
5541
# Test if we are trying to use run time linking or normal
5542
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5543
# need to do runtime linking.
5544
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5545
for ld_flag in $LDFLAGS; do
5546
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5547
aix_use_runtimelinking=yes
5553
exp_sym_flag='-bexport'
5554
no_entry_flag='-bnoentry'
5557
# When large executables or shared objects are built, AIX ld can
5558
# have problems creating the table of contents. If linking a library
5559
# or program results in "error TOC overflow" add -mminimal-toc to
5560
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5561
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5563
_LT_AC_TAGVAR(archive_cmds, $1)=''
5564
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5565
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5566
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5568
if test "$GCC" = yes; then
5569
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5570
# We only want to do this on AIX 4.2 and lower, the check
5571
# below for broken collect2 doesn't work under 4.3+
5572
collect2name=`${CC} -print-prog-name=collect2`
5573
if test -f "$collect2name" && \
5574
strings "$collect2name" | grep resolve_lib_name >/dev/null
5576
# We have reworked collect2
5577
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5579
# We have old collect2
5580
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5581
# It fails to find uninstalled libraries when the uninstalled
5582
# path is not listed in the libpath. Setting hardcode_minus_L
5583
# to unsupported forces relinking
5584
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5585
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5586
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5589
shared_flag='-shared'
5590
if test "$aix_use_runtimelinking" = yes; then
5591
shared_flag="$shared_flag "'${wl}-G'
5595
if test "$host_cpu" = ia64; then
5596
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5597
# chokes on -Wl,-G. The following line is correct:
5600
if test "$aix_use_runtimelinking" = yes; then
5601
shared_flag='${wl}-G'
5603
shared_flag='${wl}-bM:SRE'
5608
# It seems that -bexpall does not export symbols beginning with
5609
# underscore (_), so it is better to generate a list of symbols to export.
5610
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5611
if test "$aix_use_runtimelinking" = yes; then
5612
# Warning - without using the other runtime loading flags (-brtl),
5613
# -berok will link without error, but may produce a broken library.
5614
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5615
# Determine the default libpath from the value encoded in an empty executable.
5616
_LT_AC_SYS_LIBPATH_AIX
5617
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5618
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5620
if test "$host_cpu" = ia64; then
5621
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5622
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5623
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5625
# Determine the default libpath from the value encoded in an empty executable.
5626
_LT_AC_SYS_LIBPATH_AIX
5627
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5628
# Warning - without using the other run time loading flags,
5629
# -berok will link without error, but may produce a broken library.
5630
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5631
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5632
# -bexpall does not export symbols beginning with underscore (_)
5633
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
5634
# Exported symbols can be pulled into shared objects from archives
5635
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
5636
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5637
# This is similar to how AIX traditionally builds its shared libraries.
5638
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5644
_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)'
5645
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5646
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5647
# see comment about different semantics on the GNU ld section
5648
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5652
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5655
cygwin* | mingw* | pw32*)
5656
# When not using gcc, we currently assume that we are using
5657
# Microsoft Visual C++.
5658
# hardcode_libdir_flag_spec is actually meaningless, as there is
5659
# no search path for DLLs.
5660
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5661
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5662
# Tell ltmain to make .lib files, not .a files.
5664
# Tell ltmain to make .dll files, not .so files.
5666
# FIXME: Setting linknames here is a bad hack.
5667
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5668
# The linker will automatically build a .lib file if we build a DLL.
5669
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5670
# FIXME: Should let the user specify the lib program.
5671
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5672
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5673
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5676
darwin* | rhapsody*)
5678
rhapsody* | darwin1.[[012]])
5679
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5682
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5683
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5685
case ${MACOSX_DEPLOYMENT_TARGET} in
5687
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5690
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5696
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5697
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5698
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5699
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5700
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5701
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5702
if test "$GCC" = yes ; then
5703
output_verbose_link_cmd='echo'
5704
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5705
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5706
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5707
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5708
_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}'
5710
case $cc_basename in
5712
output_verbose_link_cmd='echo'
5713
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5714
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5715
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5716
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5717
_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}'
5720
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5727
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5728
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5729
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5733
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5736
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5737
# support. Future versions do this automatically, but an explicit c++rt0.o
5738
# does not break anything, and helps significantly (at the cost of a little
5741
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5742
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5743
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5744
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5747
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5749
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5750
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5751
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5752
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5755
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5756
freebsd* | kfreebsd*-gnu | dragonfly*)
5757
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5758
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5759
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5760
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5764
if test "$GCC" = yes; then
5765
_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'
5767
_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'
5769
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5770
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5771
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5773
# hardcode_minus_L: Not really in the search PATH,
5774
# but as the default location of the library.
5775
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5776
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5780
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5783
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5786
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5792
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
5795
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5799
if test "$with_gnu_ld" = no; then
5802
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5803
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5804
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5805
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5806
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5809
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5810
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5811
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5813
# hardcode_minus_L: Not really in the search PATH,
5814
# but as the default location of the library.
5815
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5818
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5819
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5820
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5821
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5823
# hardcode_minus_L: Not really in the search PATH,
5824
# but as the default location of the library.
5825
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5831
irix5* | irix6* | nonstopux*)
5832
if test "$GCC" = yes; then
5833
_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'
5835
_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'
5836
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5838
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5839
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5840
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5843
netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
5844
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5845
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5847
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5849
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5850
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5851
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5855
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5856
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5857
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5858
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5859
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5863
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5864
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5865
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5866
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5867
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5868
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5869
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5872
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5873
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5874
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5877
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5885
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5886
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5887
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5888
_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'
5889
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5893
if test "$GCC" = yes; then
5894
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5895
_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'
5897
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5898
_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'
5900
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5901
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5904
osf4* | osf5*) # as osf3* with the addition of -msym flag
5905
if test "$GCC" = yes; then
5906
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5907
_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'
5908
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5910
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5911
_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'
5912
_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~
5913
$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'
5915
# Both c and cxx compiler support -rpath directly
5916
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5918
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5922
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5923
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5924
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5925
runpath_var=LD_RUN_PATH
5926
hardcode_runpath_var=yes
5930
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5931
if test "$GCC" = yes; then
5933
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5934
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5935
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5938
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5940
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5942
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5943
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5945
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5947
# The compiler driver will combine linker options so we
5948
# cannot just pass the convience library names through
5949
# without $wl, iff we do not link with $LD.
5950
# Luckily, gcc supports the same syntax we need for Sun Studio.
5951
# Supported since Solaris 2.6 (maybe 2.5.1?)
5954
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
5956
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
5959
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5963
if test "x$host_vendor" = xsequent; then
5964
# Use $CC to link under sequent, because it throws in some extra .o
5965
# files that make .init and .fini sections work.
5966
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5968
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5970
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5971
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
5972
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5973
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5977
case $host_vendor in
5979
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5980
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5983
## LD is ld it makes a PLAMLIB
5984
## CC just makes a GrossModule.
5985
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5986
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5987
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5990
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5991
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5994
runpath_var='LD_RUN_PATH'
5995
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5999
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6000
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6001
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6005
if test -d /usr/nec; then
6006
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6007
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6008
runpath_var=LD_RUN_PATH
6009
hardcode_runpath_var=yes
6010
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6015
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6016
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6017
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6018
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6019
hardcode_runpath_var=yes
6020
runpath_var=LD_RUN_PATH
6023
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
6024
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
6025
if test "$GCC" = yes; then
6026
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6028
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6030
runpath_var='LD_RUN_PATH'
6031
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6035
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6036
# $CC -shared without GNU ld will not create a library from C++
6037
# object files and a static libstdc++, better avoid it by now
6038
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6039
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6040
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6041
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6042
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6043
runpath_var='LD_RUN_PATH'
6047
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6048
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6049
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6053
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6058
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6059
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6061
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6062
if test "$GCC" = yes; then
6063
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6067
# Do we need to explicitly link libc?
6069
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6071
# Assume -lc should be added
6072
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6074
if test "$enable_shared" = yes && test "$GCC" = yes; then
6075
case $_LT_AC_TAGVAR(archive_cmds, $1) in
6077
# FIXME: we may have to deal with multi-command sequences.
6080
# Test whether the compiler implicitly links with -lc since on some
6081
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6082
# to ld, don't add -lc before -lgcc.
6083
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6085
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6087
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6090
libobjs=conftest.$ac_objext
6092
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6098
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6099
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6100
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6102
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6104
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6106
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6108
cat conftest.err 1>&5
6111
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6117
])# AC_LIBTOOL_PROG_LD_SHLIBS
6120
# _LT_AC_FILE_LTDLL_C
6121
# -------------------
6122
# Be careful that the start marker always follows a newline.
6123
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6124
# /* ltdll.c starts here */
6125
# #define WIN32_LEAN_AND_MEAN
6126
# #include <windows.h>
6127
# #undef WIN32_LEAN_AND_MEAN
6128
# #include <stdio.h>
6130
# #ifndef __CYGWIN__
6131
# # ifdef __CYGWIN32__
6132
# # define __CYGWIN__ __CYGWIN32__
6136
# #ifdef __cplusplus
6139
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6140
# #ifdef __cplusplus
6145
# #include <cygwin/cygwin_dll.h>
6146
# DECLARE_CYGWIN_DLL( DllMain );
6148
# HINSTANCE __hDllInstance_base;
6151
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6153
# __hDllInstance_base = hInst;
6156
# /* ltdll.c ends here */
6157
])# _LT_AC_FILE_LTDLL_C
6160
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6161
# ---------------------------------
6162
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6166
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6167
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6168
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6169
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6170
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6171
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6172
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6174
# This is just to silence aclocal about the macro not being used
6175
ifelse([AC_DISABLE_FAST_INSTALL])
6177
AC_DEFUN([LT_AC_PROG_GCJ],
6178
[AC_CHECK_TOOL(GCJ, gcj, no)
6179
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6183
AC_DEFUN([LT_AC_PROG_RC],
6184
[AC_CHECK_TOOL(RC, windres, no)
6187
# NOTE: This macro has been submitted for inclusion into #
6188
# GNU Autoconf as AC_PROG_SED. When it is available in #
6189
# a released version of Autoconf we should remove this #
6190
# macro and use it instead. #
6193
# Check for a fully-functional sed program, that truncates
6194
# as few characters as possible. Prefer GNU sed if found.
6195
AC_DEFUN([LT_AC_PROG_SED],
6196
[AC_MSG_CHECKING([for a sed that does not truncate output])
6197
AC_CACHE_VAL(lt_cv_path_SED,
6198
[# Loop through the user's path and test for sed and gsed.
6199
# Then use that list of sed's as ones to test for truncation.
6200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6204
test -z "$as_dir" && as_dir=.
6205
for lt_ac_prog in sed gsed; do
6206
for ac_exec_ext in '' $ac_executable_extensions; do
6207
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6208
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6215
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
6216
# along with /bin/sed that truncates output.
6217
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6218
test ! -f $lt_ac_sed && continue
6219
cat /dev/null > conftest.in
6221
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6222
# Check for GNU sed and select it if it is found.
6223
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6224
lt_cv_path_SED=$lt_ac_sed
6228
cat conftest.in conftest.in >conftest.tmp
6229
mv conftest.tmp conftest.in
6230
cp conftest.in conftest.nl
6232
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6233
cmp -s conftest.out conftest.nl || break
6234
# 10000 chars as input seems more than enough
6235
test $lt_ac_count -gt 10 && break
6236
lt_ac_count=`expr $lt_ac_count + 1`
6237
if test $lt_ac_count -gt $lt_ac_max; then
6238
lt_ac_max=$lt_ac_count
6239
lt_cv_path_SED=$lt_ac_sed
6245
AC_MSG_RESULT([$SED])
6248
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6250
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
6252
# This program is free software; you can redistribute it and/or modify
6253
# it under the terms of the GNU General Public License as published by
6254
# the Free Software Foundation; either version 2 of the License, or
6255
# (at your option) any later version.
6257
# This program is distributed in the hope that it will be useful, but
6258
# WITHOUT ANY WARRANTY; without even the implied warranty of
6259
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6260
# General Public License for more details.
6262
# You should have received a copy of the GNU General Public License
6263
# along with this program; if not, write to the Free Software
6264
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6266
# As a special exception to the GNU General Public License, if you
6267
# distribute this file as part of a program that contains a
6268
# configuration script generated by Autoconf, you may include it under
6269
# the same distribution terms that you use for the rest of that program.
6271
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
6272
# ----------------------------------
6273
AC_DEFUN([PKG_PROG_PKG_CONFIG],
6274
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
6275
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
6276
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
6277
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6278
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
6280
if test -n "$PKG_CONFIG"; then
6281
_pkg_min_version=m4_default([$1], [0.9.0])
6282
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
6283
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6284
AC_MSG_RESULT([yes])
6291
])# PKG_PROG_PKG_CONFIG
6293
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6295
# Check to see whether a particular set of modules exists. Similar
6296
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
6299
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
6300
# this or PKG_CHECK_MODULES is called, or make sure to call
6301
# PKG_CHECK_EXISTS manually
6302
# --------------------------------------------------------------
6303
AC_DEFUN([PKG_CHECK_EXISTS],
6304
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6305
if test -n "$PKG_CONFIG" && \
6306
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
6307
m4_ifval([$2], [$2], [:])
6308
m4_ifvaln([$3], [else
6313
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6314
# ---------------------------------------------
6315
m4_define([_PKG_CONFIG],
6316
[if test -n "$PKG_CONFIG"; then
6317
if test -n "$$1"; then
6320
PKG_CHECK_EXISTS([$3],
6321
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
6329
# _PKG_SHORT_ERRORS_SUPPORTED
6330
# -----------------------------
6331
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
6332
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
6333
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6334
_pkg_short_errors_supported=yes
6336
_pkg_short_errors_supported=no
6338
])# _PKG_SHORT_ERRORS_SUPPORTED
6341
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
6342
# [ACTION-IF-NOT-FOUND])
6345
# Note that if there is a possibility the first call to
6346
# PKG_CHECK_MODULES might not happen, you should be sure to include an
6347
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
6350
# --------------------------------------------------------------
6351
AC_DEFUN([PKG_CHECK_MODULES],
6352
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6353
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
6354
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
6357
AC_MSG_CHECKING([for $1])
6359
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
6360
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
6362
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
6363
and $1[]_LIBS to avoid the need to call pkg-config.
6364
See the pkg-config man page for more details.])
6366
if test $pkg_failed = yes; then
6367
_PKG_SHORT_ERRORS_SUPPORTED
6368
if test $_pkg_short_errors_supported = yes; then
6369
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
6371
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
6373
# Put the nasty error message in config.log where it belongs
6374
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
6376
ifelse([$4], , [AC_MSG_ERROR(dnl
6377
[Package requirements ($2) were not met:
6381
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6382
installed software in a non-standard prefix.
6387
elif test $pkg_failed = untried; then
6388
ifelse([$4], , [AC_MSG_FAILURE(dnl
6389
[The pkg-config script could not be found or is too old. Make sure it
6390
is in your PATH or set the PKG_CONFIG environment variable to the full
6395
To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.])],
6398
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6399
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
6400
AC_MSG_RESULT([yes])
6401
ifelse([$3], , :, [$3])
6403
])# PKG_CHECK_MODULES
6405
# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6407
# This file is free software; the Free Software Foundation
6408
# gives unlimited permission to copy and/or distribute it,
6409
# with or without modifications, as long as this notice is preserved.
6411
# AM_AUTOMAKE_VERSION(VERSION)
6412
# ----------------------------
6413
# Automake X.Y traces this macro to ensure aclocal.m4 has been
6414
# generated from the m4 files accompanying Automake X.Y.
6415
AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6417
# AM_SET_CURRENT_AUTOMAKE_VERSION
6418
# -------------------------------
6419
# Call AM_AUTOMAKE_VERSION so it can be traced.
6420
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6421
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6422
[AM_AUTOMAKE_VERSION([1.9.6])])
6424
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6426
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6428
# This file is free software; the Free Software Foundation
6429
# gives unlimited permission to copy and/or distribute it,
6430
# with or without modifications, as long as this notice is preserved.
6432
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6433
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6434
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6436
# Of course, Automake must honor this variable whenever it calls a
6437
# tool from the auxiliary directory. The problem is that $srcdir (and
6438
# therefore $ac_aux_dir as well) can be either absolute or relative,
6439
# depending on how configure is run. This is pretty annoying, since
6440
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
6441
# source directory, any form will work fine, but in subdirectories a
6442
# relative path needs to be adjusted first.
6444
# $ac_aux_dir/missing
6445
# fails when called from a subdirectory if $ac_aux_dir is relative
6446
# $top_srcdir/$ac_aux_dir/missing
6447
# fails if $ac_aux_dir is absolute,
6448
# fails when called from a subdirectory in a VPATH build with
6449
# a relative $ac_aux_dir
6451
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6452
# are both prefixed by $srcdir. In an in-source build this is usually
6453
# harmless because $srcdir is `.', but things will broke when you
6454
# start a VPATH build or use an absolute $srcdir.
6456
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6457
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6458
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6459
# and then we would define $MISSING as
6460
# MISSING="\${SHELL} $am_aux_dir/missing"
6461
# This will work as long as MISSING is not called from configure, because
6462
# unfortunately $(top_srcdir) has no meaning in configure.
6463
# However there are other variables, like CC, which are often used in
6464
# configure, and could therefore not use this "fixed" $ac_aux_dir.
6466
# Another solution, used here, is to always expand $ac_aux_dir to an
6467
# absolute PATH. The drawback is that using absolute paths prevent a
6468
# configured tree to be moved without reconfiguration.
6470
AC_DEFUN([AM_AUX_DIR_EXPAND],
6471
[dnl Rely on autoconf to set up CDPATH properly.
6472
AC_PREREQ([2.50])dnl
6473
# expand $ac_aux_dir to an absolute path
6474
am_aux_dir=`cd $ac_aux_dir && pwd`
6477
# AM_CONDITIONAL -*- Autoconf -*-
6479
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6480
# Free Software Foundation, Inc.
6482
# This file is free software; the Free Software Foundation
6483
# gives unlimited permission to copy and/or distribute it,
6484
# with or without modifications, as long as this notice is preserved.
6488
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
6489
# -------------------------------------
6490
# Define a conditional.
6491
AC_DEFUN([AM_CONDITIONAL],
6493
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6494
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6496
AC_SUBST([$1_FALSE])
6504
AC_CONFIG_COMMANDS_PRE(
6505
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6506
AC_MSG_ERROR([[conditional "$1" was never defined.
6507
Usually this means the macro was only invoked conditionally.]])
6511
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6512
# Free Software Foundation, Inc.
6514
# This file is free software; the Free Software Foundation
6515
# gives unlimited permission to copy and/or distribute it,
6516
# with or without modifications, as long as this notice is preserved.
6520
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6521
# written in clear, in which case automake, when reading aclocal.m4,
6522
# will think it sees a *use*, and therefore will trigger all it's
6523
# C support machinery. Also note that it means that autoscan, seeing
6524
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6527
# _AM_DEPENDENCIES(NAME)
6528
# ----------------------
6529
# See how the compiler implements dependency checking.
6530
# NAME is "CC", "CXX", "GCJ", or "OBJC".
6531
# We try a few techniques and use that to set a single cache variable.
6533
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6534
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6535
# dependency, and given that the user is not expected to run this macro,
6536
# just rely on AC_PROG_CC.
6537
AC_DEFUN([_AM_DEPENDENCIES],
6538
[AC_REQUIRE([AM_SET_DEPDIR])dnl
6539
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6540
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6541
AC_REQUIRE([AM_DEP_TRACK])dnl
6543
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6544
[$1], CXX, [depcc="$CXX" am_compiler_list=],
6545
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6546
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6547
[depcc="$$1" am_compiler_list=])
6549
AC_CACHE_CHECK([dependency style of $depcc],
6550
[am_cv_$1_dependencies_compiler_type],
6551
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6552
# We make a subdir and do the tests there. Otherwise we can end up
6553
# making bogus files that we don't know about and never remove. For
6554
# instance it was reported that on HP-UX the gcc test will end up
6555
# making a dummy file named `D' -- because `-MD' means `put the output
6558
# Copy depcomp to subdir because otherwise we won't find it if we're
6559
# using a relative directory.
6560
cp "$am_depcomp" conftest.dir
6562
# We will build objects and dependencies in a subdirectory because
6563
# it helps to detect inapplicable dependency modes. For instance
6564
# both Tru64's cc and ICC support -MD to output dependencies as a
6565
# side effect of compilation, but ICC will put the dependencies in
6566
# the current directory while Tru64 will put them in the object
6570
am_cv_$1_dependencies_compiler_type=none
6571
if test "$am_compiler_list" = ""; then
6572
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6574
for depmode in $am_compiler_list; do
6575
# Setup a source with many dependencies, because some compilers
6576
# like to wrap large dependency lists on column 80 (with \), and
6577
# we should not choose a depcomp mode which is confused by this.
6579
# We need to recreate these files for each test, as the compiler may
6580
# overwrite some of them when testing with obscure command lines.
6581
# This happens at least with the AIX C compiler.
6583
for i in 1 2 3 4 5 6; do
6584
echo '#include "conftst'$i'.h"' >> sub/conftest.c
6585
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6586
# Solaris 8's {/usr,}/bin/sh.
6587
touch sub/conftst$i.h
6589
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6593
# after this tag, mechanisms are not by side-effect, so they'll
6594
# only be used when explicitly requested
6595
if test "x$enable_dependency_tracking" = xyes; then
6603
# We check with `-c' and `-o' for the sake of the "dashmstdout"
6604
# mode. It turns out that the SunPro C++ compiler does not properly
6605
# handle `-M -o', and we need to detect this.
6606
if depmode=$depmode \
6607
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6608
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6609
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6610
>/dev/null 2>conftest.err &&
6611
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6612
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6613
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6614
# icc doesn't choke on unknown options, it will just issue warnings
6615
# or remarks (even with -Werror). So we grep stderr for any message
6616
# that says an option was ignored or not supported.
6617
# When given -MP, icc 7.0 and 7.1 complain thusly:
6618
# icc: Command line warning: ignoring option '-M'; no argument required
6619
# The diagnosis changed in icc 8.0:
6620
# icc: Command line remark: option '-MP' not supported
6621
if (grep 'ignoring option' conftest.err ||
6622
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6623
am_cv_$1_dependencies_compiler_type=$depmode
6632
am_cv_$1_dependencies_compiler_type=none
6635
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6636
AM_CONDITIONAL([am__fastdep$1], [
6637
test "x$enable_dependency_tracking" != xno \
6638
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6644
# Choose a directory name for dependency files.
6645
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
6646
AC_DEFUN([AM_SET_DEPDIR],
6647
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6648
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6654
AC_DEFUN([AM_DEP_TRACK],
6655
[AC_ARG_ENABLE(dependency-tracking,
6656
[ --disable-dependency-tracking speeds up one-time build
6657
--enable-dependency-tracking do not reject slow dependency extractors])
6658
if test "x$enable_dependency_tracking" != xno; then
6659
am_depcomp="$ac_aux_dir/depcomp"
6662
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6663
AC_SUBST([AMDEPBACKSLASH])
6666
# Generate code to set up dependency tracking. -*- Autoconf -*-
6668
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6669
# Free Software Foundation, Inc.
6671
# This file is free software; the Free Software Foundation
6672
# gives unlimited permission to copy and/or distribute it,
6673
# with or without modifications, as long as this notice is preserved.
6677
# _AM_OUTPUT_DEPENDENCY_COMMANDS
6678
# ------------------------------
6679
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6680
[for mf in $CONFIG_FILES; do
6681
# Strip MF so we end up with the name of the file.
6682
mf=`echo "$mf" | sed -e 's/:.*$//'`
6683
# Check whether this is an Automake generated Makefile or not.
6684
# We used to match only the files named `Makefile.in', but
6685
# some people rename them; so instead we look at the file content.
6686
# Grep'ing the first line is not enough: some people post-process
6687
# each Makefile.in and add a new line on top of each file to say so.
6688
# So let's grep whole file.
6689
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6690
dirpart=`AS_DIRNAME("$mf")`
6694
# Extract the definition of DEPDIR, am__include, and am__quote
6695
# from the Makefile without running `make'.
6696
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6697
test -z "$DEPDIR" && continue
6698
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6699
test -z "am__include" && continue
6700
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6701
# When using ansi2knr, U may be empty or an underscore; expand it
6702
U=`sed -n 's/^U = //p' < "$mf"`
6703
# Find all dependency output files, they are included files with
6704
# $(DEPDIR) in their names. We invoke sed twice because it is the
6705
# simplest approach to changing $(DEPDIR) to its actual value in the
6707
for file in `sed -n "
6708
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6709
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6710
# Make sure the directory exists.
6711
test -f "$dirpart/$file" && continue
6712
fdir=`AS_DIRNAME(["$file"])`
6713
AS_MKDIR_P([$dirpart/$fdir])
6714
# echo "creating $dirpart/$file"
6715
echo '# dummy' > "$dirpart/$file"
6718
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6721
# AM_OUTPUT_DEPENDENCY_COMMANDS
6722
# -----------------------------
6723
# This macro should only be invoked once -- use via AC_REQUIRE.
6725
# This code is only required when automatic dependency tracking
6726
# is enabled. FIXME. This creates each `.P' file that we will
6727
# need in order to bootstrap the dependency handling code.
6728
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6729
[AC_CONFIG_COMMANDS([depfiles],
6730
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6731
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6734
# Do all the work for Automake. -*- Autoconf -*-
6736
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6737
# Free Software Foundation, Inc.
6739
# This file is free software; the Free Software Foundation
6740
# gives unlimited permission to copy and/or distribute it,
6741
# with or without modifications, as long as this notice is preserved.
6745
# This macro actually does too much. Some checks are only needed if
6746
# your package does certain things. But this isn't really a big deal.
6748
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6749
# AM_INIT_AUTOMAKE([OPTIONS])
6750
# -----------------------------------------------
6751
# The call with PACKAGE and VERSION arguments is the old style
6752
# call (pre autoconf-2.50), which is being phased out. PACKAGE
6753
# and VERSION should now be passed to AC_INIT and removed from
6754
# the call to AM_INIT_AUTOMAKE.
6755
# We support both call styles for the transition. After
6756
# the next Automake release, Autoconf can make the AC_INIT
6757
# arguments mandatory, and then we can depend on a new Autoconf
6758
# release and drop the old call support.
6759
AC_DEFUN([AM_INIT_AUTOMAKE],
6760
[AC_PREREQ([2.58])dnl
6761
dnl Autoconf wants to disallow AM_ names. We explicitly allow
6762
dnl the ones we care about.
6763
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6764
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6765
AC_REQUIRE([AC_PROG_INSTALL])dnl
6766
# test to see if srcdir already configured
6767
if test "`cd $srcdir && pwd`" != "`pwd`" &&
6768
test -f $srcdir/config.status; then
6769
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6772
# test whether we have cygpath
6773
if test -z "$CYGPATH_W"; then
6774
if (cygpath --version) >/dev/null 2>/dev/null; then
6775
CYGPATH_W='cygpath -w'
6780
AC_SUBST([CYGPATH_W])
6782
# Define the identity of the package.
6783
dnl Distinguish between old-style and new-style calls.
6785
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6786
AC_SUBST([PACKAGE], [$1])dnl
6787
AC_SUBST([VERSION], [$2])],
6788
[_AM_SET_OPTIONS([$1])dnl
6789
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6790
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6792
_AM_IF_OPTION([no-define],,
6793
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6794
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6796
# Some tools Automake needs.
6797
AC_REQUIRE([AM_SANITY_CHECK])dnl
6798
AC_REQUIRE([AC_ARG_PROGRAM])dnl
6799
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6800
AM_MISSING_PROG(AUTOCONF, autoconf)
6801
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6802
AM_MISSING_PROG(AUTOHEADER, autoheader)
6803
AM_MISSING_PROG(MAKEINFO, makeinfo)
6805
AM_PROG_INSTALL_STRIP
6806
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6807
# We need awk for the "check" target. The system "awk" is bad on
6809
AC_REQUIRE([AC_PROG_AWK])dnl
6810
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6811
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6812
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6813
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6814
[_AM_PROG_TAR([v7])])])
6815
_AM_IF_OPTION([no-dependencies],,
6816
[AC_PROVIDE_IFELSE([AC_PROG_CC],
6817
[_AM_DEPENDENCIES(CC)],
6818
[define([AC_PROG_CC],
6819
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6820
AC_PROVIDE_IFELSE([AC_PROG_CXX],
6821
[_AM_DEPENDENCIES(CXX)],
6822
[define([AC_PROG_CXX],
6823
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6828
# When config.status generates a header, we must update the stamp-h file.
6829
# This file resides in the same directory as the config header
6830
# that is generated. The stamp files are numbered to have different names.
6832
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6833
# loop where config.status creates the headers, so we can generate
6834
# our stamp files there.
6835
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6836
[# Compute $1's index in $config_headers.
6838
for _am_header in $config_headers :; do
6843
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6846
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6848
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6850
# This file is free software; the Free Software Foundation
6851
# gives unlimited permission to copy and/or distribute it,
6852
# with or without modifications, as long as this notice is preserved.
6854
# AM_PROG_INSTALL_SH
6855
# ------------------
6856
# Define $install_sh.
6857
AC_DEFUN([AM_PROG_INSTALL_SH],
6858
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6859
install_sh=${install_sh-"$am_aux_dir/install-sh"}
6860
AC_SUBST(install_sh)])
6862
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6864
# This file is free software; the Free Software Foundation
6865
# gives unlimited permission to copy and/or distribute it,
6866
# with or without modifications, as long as this notice is preserved.
6870
# Check whether the underlying file-system supports filenames
6871
# with a leading dot. For instance MS-DOS doesn't.
6872
AC_DEFUN([AM_SET_LEADING_DOT],
6873
[rm -rf .tst 2>/dev/null
6874
mkdir .tst 2>/dev/null
6875
if test -d .tst; then
6880
rmdir .tst 2>/dev/null
6881
AC_SUBST([am__leading_dot])])
6883
# Check to see how 'make' treats includes. -*- Autoconf -*-
6885
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6887
# This file is free software; the Free Software Foundation
6888
# gives unlimited permission to copy and/or distribute it,
6889
# with or without modifications, as long as this notice is preserved.
6895
# Check to see how make treats includes.
6896
AC_DEFUN([AM_MAKE_INCLUDE],
6897
[am_make=${MAKE-make}
6898
cat > confinc << 'END'
6903
# If we don't find an include directive, just comment out the code.
6904
AC_MSG_CHECKING([for style of include used by $am_make])
6908
# First try GNU make style include.
6909
echo "include confinc" > confmf
6910
# We grep out `Entering directory' and `Leaving directory'
6911
# messages which can occur if `w' ends up in MAKEFLAGS.
6912
# In particular we don't look at `^make:' because GNU make might
6913
# be invoked under some other name (usually "gmake"), in which
6914
# case it prints its new name instead of `make'.
6915
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6920
# Now try BSD make style include.
6921
if test "$am__include" = "#"; then
6922
echo '.include "confinc"' > confmf
6923
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6924
am__include=.include
6929
AC_SUBST([am__include])
6930
AC_SUBST([am__quote])
6931
AC_MSG_RESULT([$_am_result])
6932
rm -f confinc confmf
6935
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6937
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
6938
# Free Software Foundation, Inc.
6940
# This file is free software; the Free Software Foundation
6941
# gives unlimited permission to copy and/or distribute it,
6942
# with or without modifications, as long as this notice is preserved.
6946
# AM_MISSING_PROG(NAME, PROGRAM)
6947
# ------------------------------
6948
AC_DEFUN([AM_MISSING_PROG],
6949
[AC_REQUIRE([AM_MISSING_HAS_RUN])
6950
$1=${$1-"${am_missing_run}$2"}
6954
# AM_MISSING_HAS_RUN
6955
# ------------------
6956
# Define MISSING if not defined so far and test if it supports --run.
6957
# If it does, set am_missing_run to use it, otherwise, to nothing.
6958
AC_DEFUN([AM_MISSING_HAS_RUN],
6959
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6960
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6961
# Use eval to expand $SHELL
6962
if eval "$MISSING --run true"; then
6963
am_missing_run="$MISSING --run "
6966
AC_MSG_WARN([`missing' script is too old or missing])
6970
# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
6972
# This file is free software; the Free Software Foundation
6973
# gives unlimited permission to copy and/or distribute it,
6974
# with or without modifications, as long as this notice is preserved.
6978
# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6980
# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6981
# created by `make install' are always world readable, even if the
6982
# installer happens to have an overly restrictive umask (e.g. 077).
6983
# This was a mistake. There are at least two reasons why we must not
6985
# - it causes special bits like SGID to be ignored,
6986
# - it may be too restrictive (some setups expect 775 directories).
6988
# Do not use -m 0755 and let people choose whatever they expect by
6991
# We cannot accept any implementation of `mkdir' that recognizes `-p'.
6992
# Some implementations (such as Solaris 8's) are not thread-safe: if a
6993
# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
6994
# concurrently, both version can detect that a/ is missing, but only
6995
# one can create it and the other will error out. Consequently we
6996
# restrict ourselves to GNU make (using the --version option ensures
6998
AC_DEFUN([AM_PROG_MKDIR_P],
6999
[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7000
# We used to keeping the `.' as first argument, in order to
7001
# allow $(mkdir_p) to be used without argument. As in
7002
# $(mkdir_p) $(somedir)
7003
# where $(somedir) is conditionally defined. However this is wrong
7005
# 1. if the package is installed by a user who cannot write `.'
7006
# make install will fail,
7007
# 2. the above comment should most certainly read
7008
# $(mkdir_p) $(DESTDIR)$(somedir)
7009
# so it does not work when $(somedir) is undefined and
7010
# $(DESTDIR) is not.
7011
# To support the latter case, we have to write
7012
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7013
# so the `.' trick is pointless.
7014
mkdir_p='mkdir -p --'
7016
# On NextStep and OpenStep, the `mkdir' command does not
7017
# recognize any option. It will interpret all options as
7018
# directories to create, and then abort because `.' already
7020
for d in ./-p ./--version;
7022
test -d $d && rmdir $d
7024
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7025
if test -f "$ac_aux_dir/mkinstalldirs"; then
7026
mkdir_p='$(mkinstalldirs)'
7028
mkdir_p='$(install_sh) -d'
7031
AC_SUBST([mkdir_p])])
7033
# Helper functions for option handling. -*- Autoconf -*-
7035
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7037
# This file is free software; the Free Software Foundation
7038
# gives unlimited permission to copy and/or distribute it,
7039
# with or without modifications, as long as this notice is preserved.
7043
# _AM_MANGLE_OPTION(NAME)
7044
# -----------------------
7045
AC_DEFUN([_AM_MANGLE_OPTION],
7046
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7048
# _AM_SET_OPTION(NAME)
7049
# ------------------------------
7050
# Set option NAME. Presently that only means defining a flag for this option.
7051
AC_DEFUN([_AM_SET_OPTION],
7052
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7054
# _AM_SET_OPTIONS(OPTIONS)
7055
# ----------------------------------
7056
# OPTIONS is a space-separated list of Automake options.
7057
AC_DEFUN([_AM_SET_OPTIONS],
7058
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7060
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7061
# -------------------------------------------
7062
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7063
AC_DEFUN([_AM_IF_OPTION],
7064
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7066
# Check to make sure that the build environment is sane. -*- Autoconf -*-
7068
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7069
# Free Software Foundation, Inc.
7071
# This file is free software; the Free Software Foundation
7072
# gives unlimited permission to copy and/or distribute it,
7073
# with or without modifications, as long as this notice is preserved.
7079
AC_DEFUN([AM_SANITY_CHECK],
7080
[AC_MSG_CHECKING([whether build environment is sane])
7083
echo timestamp > conftest.file
7084
# Do `set' in a subshell so we don't clobber the current shell's
7085
# arguments. Must try -L first in case configure is actually a
7086
# symlink; some systems play weird games with the mod time of symlinks
7087
# (eg FreeBSD returns the mod time of the symlink's containing
7090
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7091
if test "$[*]" = "X"; then
7093
set X `ls -t $srcdir/configure conftest.file`
7096
if test "$[*]" != "X $srcdir/configure conftest.file" \
7097
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
7099
# If neither matched, then we have a broken ls. This can happen
7100
# if, for instance, CONFIG_SHELL is bash and it inherits a
7101
# broken ls alias from the environment. This has actually
7102
# happened. Such a system could not be considered "sane".
7103
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7104
alias in your environment])
7107
test "$[2]" = conftest.file
7113
AC_MSG_ERROR([newly created file is older than distributed files!
7114
Check your system clock])
7116
AC_MSG_RESULT(yes)])
7118
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7120
# This file is free software; the Free Software Foundation
7121
# gives unlimited permission to copy and/or distribute it,
7122
# with or without modifications, as long as this notice is preserved.
7124
# AM_PROG_INSTALL_STRIP
7125
# ---------------------
7126
# One issue with vendor `install' (even GNU) is that you can't
7127
# specify the program used to strip binaries. This is especially
7128
# annoying in cross-compiling environments, where the build's strip
7129
# is unlikely to handle the host's binaries.
7130
# Fortunately install-sh will honor a STRIPPROG variable, so we
7131
# always use install-sh in `make install-strip', and initialize
7132
# STRIPPROG with the value of the STRIP variable (set by the user).
7133
AC_DEFUN([AM_PROG_INSTALL_STRIP],
7134
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7135
# Installed binaries are usually stripped using `strip' when the user
7136
# run `make install-strip'. However `strip' might not be the right
7137
# tool to use in cross-compilation environments, therefore Automake
7138
# will honor the `STRIP' environment variable to overrule this program.
7139
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7140
if test "$cross_compiling" != no; then
7141
AC_CHECK_TOOL([STRIP], [strip], :)
7143
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7144
AC_SUBST([INSTALL_STRIP_PROGRAM])])
7146
# Check how to create a tarball. -*- Autoconf -*-
7148
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7150
# This file is free software; the Free Software Foundation
7151
# gives unlimited permission to copy and/or distribute it,
7152
# with or without modifications, as long as this notice is preserved.
7156
# _AM_PROG_TAR(FORMAT)
7157
# --------------------
7158
# Check how to create a tarball in format FORMAT.
7159
# FORMAT should be one of `v7', `ustar', or `pax'.
7161
# Substitute a variable $(am__tar) that is a command
7162
# writing to stdout a FORMAT-tarball containing the directory
7164
# tardir=directory && $(am__tar) > result.tar
7166
# Substitute a variable $(am__untar) that extract such
7167
# a tarball read from stdin.
7168
# $(am__untar) < result.tar
7169
AC_DEFUN([_AM_PROG_TAR],
7170
[# Always define AMTAR for backward compatibility.
7171
AM_MISSING_PROG([AMTAR], [tar])
7173
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7174
[m4_case([$1], [ustar],, [pax],,
7175
[m4_fatal([Unknown tar format])])
7176
AC_MSG_CHECKING([how to create a $1 tar archive])
7177
# Loop over all known methods to create a tar archive until one works.
7178
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7179
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
7180
# Do not fold the above two line into one, because Tru64 sh and
7181
# Solaris sh will not grok spaces in the rhs of `-'.
7182
for _am_tool in $_am_tools
7186
for _am_tar in tar gnutar gtar;
7188
AM_RUN_LOG([$_am_tar --version]) && break
7190
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7191
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7192
am__untar="$_am_tar -xf -"
7195
# Must skip GNU tar: if it does not support --format= it doesn't create
7196
# ustar tarball either.
7197
(tar --version) >/dev/null 2>&1 && continue
7198
am__tar='tar chf - "$$tardir"'
7199
am__tar_='tar chf - "$tardir"'
7200
am__untar='tar xf -'
7203
am__tar='pax -L -x $1 -w "$$tardir"'
7204
am__tar_='pax -L -x $1 -w "$tardir"'
7208
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7209
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7210
am__untar='cpio -i -H $1 -d'
7219
# If the value was cached, stop now. We just wanted to have am__tar
7220
# and am__untar set.
7221
test -n "${am_cv_prog_tar_$1}" && break
7223
# tar/untar a dummy directory, and stop if the command works
7226
echo GrepMe > conftest.dir/file
7227
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7229
if test -s conftest.tar; then
7230
AM_RUN_LOG([$am__untar <conftest.tar])
7231
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7236
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7237
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7239
AC_SUBST([am__untar])