1
# generated automatically by aclocal 1.10 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_if(m4_PACKAGE_VERSION, [2.61],,
15
[m4_fatal([this file was generated for autoconf 2.61.
16
You have another version of autoconf. If you want to use that,
17
you should regenerate the build system entirely.], [63])])
19
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
20
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
22
# This file is free software, distributed under the terms of the GNU
23
# General Public License. As a special exception to the GNU General
24
# Public License, this file may be distributed as part of a program
25
# that contains a configuration script generated by Autoconf, under
26
# the same distribution terms as the rest of that program.
28
# This file can be copied and used freely without restrictions. It can
29
# be used in projects which are not available under the GNU Public License
30
# but which still want to provide support for the GNU gettext functionality.
32
# Macro to add for using GNU gettext.
33
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
35
# Modified to never use included libintl.
36
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
38
# Major rework to remove unused code
39
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
41
# Added better handling of ALL_LINGUAS from GNU gettext version
42
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
44
# Modified to require ngettext
45
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
47
# We need this here as well, since someone might use autoconf-2.5x
48
# to configure GLib then an older version to configure a package
49
# using AM_GLIB_GNU_GETTEXT
53
dnl We go to great lengths to make sure that aclocal won't
54
dnl try to pull in the installed version of these macros
55
dnl when running aclocal in the glib directory.
57
m4_copy([AC_DEFUN],[glib_DEFUN])
58
m4_copy([AC_REQUIRE],[glib_REQUIRE])
60
dnl At the end, if we're not within glib, we'll define the public
61
dnl definitions in terms of our private definitions.
66
glib_DEFUN([GLIB_LC_MESSAGES],
67
[AC_CHECK_HEADERS([locale.h])
68
if test $ac_cv_header_locale_h = yes; then
69
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
70
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
71
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
72
if test $am_cv_val_LC_MESSAGES = yes; then
73
AC_DEFINE(HAVE_LC_MESSAGES, 1,
74
[Define if your <locale.h> file defines LC_MESSAGES.])
78
# GLIB_PATH_PROG_WITH_TEST
79
#----------------------------
80
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
81
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
82
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
83
[# Extract the first word of "$2", so it can be a program name with args.
84
set dummy $2; ac_word=[$]2
85
AC_MSG_CHECKING([for $ac_word])
86
AC_CACHE_VAL(ac_cv_path_$1,
89
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
92
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
93
for ac_dir in ifelse([$5], , $PATH, [$5]); do
94
test -z "$ac_dir" && ac_dir=.
95
if test -f $ac_dir/$ac_word; then
97
ac_cv_path_$1="$ac_dir/$ac_word"
103
dnl If no 4th arg is given, leave the cache variable unset,
104
dnl so AC_PATH_PROGS will keep looking.
105
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
110
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
120
glib_DEFUN([GLIB_WITH_NLS],
121
dnl NLS is obligatory
122
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
126
gt_cv_have_gettext=no
132
AC_CHECK_HEADER(libintl.h,
133
[gt_cv_func_dgettext_libintl="no"
134
libintl_extra_libs=""
137
# First check in libc
139
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
143
[return !ngettext ("","", 1)],
144
gt_cv_func_ngettext_libc=yes,
145
gt_cv_func_ngettext_libc=no)
148
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
149
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
153
[return !dgettext ("","")],
154
gt_cv_func_dgettext_libc=yes,
155
gt_cv_func_dgettext_libc=no)
159
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
160
AC_CHECK_FUNCS(bind_textdomain_codeset)
164
# If we don't have everything we want, check in libintl
166
if test "$gt_cv_func_dgettext_libc" != "yes" \
167
|| test "$gt_cv_func_ngettext_libc" != "yes" \
168
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
170
AC_CHECK_LIB(intl, bindtextdomain,
171
[AC_CHECK_LIB(intl, ngettext,
172
[AC_CHECK_LIB(intl, dgettext,
173
gt_cv_func_dgettext_libintl=yes)])])
175
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
176
AC_MSG_CHECKING([if -liconv is needed to use gettext])
178
AC_CHECK_LIB(intl, ngettext,
179
[AC_CHECK_LIB(intl, dcgettext,
180
[gt_cv_func_dgettext_libintl=yes
181
libintl_extra_libs=-liconv],
187
# If we found libintl, then check in it for bind_textdomain_codeset();
188
# we'll prefer libc if neither have bind_textdomain_codeset(),
189
# and both have dgettext and ngettext
191
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
192
glib_save_LIBS="$LIBS"
193
LIBS="$LIBS -lintl $libintl_extra_libs"
194
unset ac_cv_func_bind_textdomain_codeset
195
AC_CHECK_FUNCS(bind_textdomain_codeset)
196
LIBS="$glib_save_LIBS"
198
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
199
gt_cv_func_dgettext_libc=no
201
if test "$gt_cv_func_dgettext_libc" = "yes" \
202
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
203
gt_cv_func_dgettext_libintl=no
209
if test "$gt_cv_func_dgettext_libc" = "yes" \
210
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
211
gt_cv_have_gettext=yes
214
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
215
INTLLIBS="-lintl $libintl_extra_libs"
218
if test "$gt_cv_have_gettext" = "yes"; then
219
AC_DEFINE(HAVE_GETTEXT,1,
220
[Define if the GNU gettext() function is already present or preinstalled.])
221
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
222
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
223
if test "$MSGFMT" != "no"; then
224
glib_save_LIBS="$LIBS"
225
LIBS="$LIBS $INTLLIBS"
226
AC_CHECK_FUNCS(dcgettext)
228
AC_MSG_CHECKING([if msgfmt accepts -c])
229
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
232
"Content-Type: text/plain; charset=UTF-8\n"
233
"Project-Id-Version: test 1.0\n"
234
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
235
"Last-Translator: test <foo@bar.xx>\n"
236
"Language-Team: C <LL@li.org>\n"
237
"MIME-Version: 1.0\n"
238
"Content-Transfer-Encoding: 8bit\n"
239
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
240
AC_SUBST(MSGFMT_OPTS)
241
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
242
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
243
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
244
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
245
return _nl_msg_cat_cntr],
250
dnl On Solaris, if bind_textdomain_codeset is in libc,
251
dnl GNU format message catalog is always supported,
252
dnl since both are added to the libc all together.
253
dnl Hence, we'd like to go with DATADIRNAME=share and
254
dnl and CATOBJEXT=.gmo in this case.
255
AC_CHECK_FUNC(bind_textdomain_codeset,
266
LIBS="$glib_save_LIBS"
269
gt_cv_have_gettext=no
274
if test "$gt_cv_have_gettext" = "yes" ; then
275
AC_DEFINE(ENABLE_NLS, 1,
276
[always defined to indicate that i18n is enabled])
279
dnl Test whether we really found GNU xgettext.
280
if test "$XGETTEXT" != ":"; then
281
dnl If it is not GNU xgettext we define it as : so that the
282
dnl Makefiles still can work.
283
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
287
[found xgettext program is not GNU xgettext; ignore it])
292
# We need to process the po/ directory.
296
[case "$CONFIG_FILES" in *po/Makefile.in*)
297
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
300
dnl These rules are solely for the distribution goal. While doing this
301
dnl we only have to keep exactly one list of the available catalogs
303
for lang in $ALL_LINGUAS; do
304
GMOFILES="$GMOFILES $lang.gmo"
305
POFILES="$POFILES $lang.po"
308
dnl Make all variables we use known to autoconf.
311
AC_SUBST(DATADIRNAME)
315
AC_SUBST(PO_IN_DATADIR_TRUE)
316
AC_SUBST(PO_IN_DATADIR_FALSE)
321
# AM_GLIB_GNU_GETTEXT
322
# -------------------
323
# Do checks necessary for use of gettext. If a suitable implementation
324
# of gettext is found in either in libintl or in the C library,
325
# it will set INTLLIBS to the libraries needed for use of gettext
326
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
327
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
328
# on various variables needed by the Makefile.in.in installed by
331
glib_DEFUN([GLIB_GNU_GETTEXT],
332
[AC_REQUIRE([AC_PROG_CC])dnl
333
AC_REQUIRE([AC_HEADER_STDC])dnl
338
if test "$gt_cv_have_gettext" = "yes"; then
339
if test "x$ALL_LINGUAS" = "x"; then
342
AC_MSG_CHECKING(for catalogs to be installed)
344
for presentlang in $ALL_LINGUAS; do
346
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
347
desiredlanguages="$LINGUAS"
349
desiredlanguages="$ALL_LINGUAS"
351
for desiredlang in $desiredlanguages; do
352
# Use the presentlang catalog if desiredlang is
353
# a. equal to presentlang, or
354
# b. a variant of presentlang (because in this case,
355
# presentlang can be used as a fallback for messages
356
# which are not translated in the desiredlang catalog).
357
case "$desiredlang" in
358
"$presentlang"*) useit=yes;;
361
if test $useit = yes; then
362
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
366
AC_MSG_RESULT($LINGUAS)
369
dnl Construct list of names of catalog files to be constructed.
370
if test -n "$LINGUAS"; then
371
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
375
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
376
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
377
dnl Try to locate is.
379
if test -n "$ac_aux_dir"; then
380
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
382
if test -z "$MKINSTALLDIRS"; then
383
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
385
AC_SUBST(MKINSTALLDIRS)
387
dnl Generate list of files to be processed by xgettext which will
388
dnl be included in po/Makefile.
389
test -d po || mkdir po
390
if test "x$srcdir" != "x."; then
391
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
392
posrcprefix="$srcdir/"
394
posrcprefix="../$srcdir/"
400
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
401
< $srcdir/po/POTFILES.in > po/POTFILES
404
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
405
# -------------------------------
406
# Define VARIABLE to the location where catalog files will
407
# be installed by po/Makefile.
408
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
409
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
410
glib_save_prefix="$prefix"
411
glib_save_exec_prefix="$exec_prefix"
412
glib_save_datarootdir="$datarootdir"
413
test "x$prefix" = xNONE && prefix=$ac_default_prefix
414
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
415
datarootdir=`eval echo "${datarootdir}"`
416
if test "x$CATOBJEXT" = "x.mo" ; then
417
localedir=`eval echo "${libdir}/locale"`
419
localedir=`eval echo "${datadir}/locale"`
421
prefix="$glib_save_prefix"
422
exec_prefix="$glib_save_exec_prefix"
423
datarootdir="$glib_save_datarootdir"
424
AC_DEFINE_UNQUOTED($1, "$localedir",
425
[Define the location where the catalogs will be installed])
429
dnl Now the definitions that aclocal will find
431
ifdef(glib_configure_in,[],[
432
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
433
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
436
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
438
# Create a temporary file with TEST-FILE as its contents and pass the
439
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
440
# 0 and perform ACTION-IF-FAIL for any other exit status.
441
AC_DEFUN([GLIB_RUN_PROG],
442
[cat >conftest.foo <<_ACEOF
445
if AC_RUN_LOG([$1 conftest.foo]); then
446
m4_ifval([$3], [$3], [:])
447
m4_ifvaln([$4], [else $4])dnl
448
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
449
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
454
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
455
# serial 36 IT_PROG_INTLTOOL
456
AC_DEFUN([IT_PROG_INTLTOOL],
457
[AC_PREREQ([2.50])dnl
459
case "$am__api_version" in
461
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
467
if test -n "$1"; then
468
AC_MSG_CHECKING([for intltool >= $1])
470
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
471
INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { print $ 2; }' ${ac_aux_dir}/intltool-update.in`
472
[INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($ 2, VERSION, "."); print VERSION[1] * 1000 + VERSION[2] * 100 + VERSION[3];}' ${ac_aux_dir}/intltool-update.in`
474
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
475
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
476
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
479
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
480
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
481
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
482
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
483
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
484
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
485
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
486
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
487
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
488
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
489
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
490
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
491
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
492
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
493
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
494
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
495
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
496
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
497
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
499
AC_SUBST(INTLTOOL_DESKTOP_RULE)
500
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
501
AC_SUBST(INTLTOOL_KEYS_RULE)
502
AC_SUBST(INTLTOOL_PROP_RULE)
503
AC_SUBST(INTLTOOL_OAF_RULE)
504
AC_SUBST(INTLTOOL_PONG_RULE)
505
AC_SUBST(INTLTOOL_SERVER_RULE)
506
AC_SUBST(INTLTOOL_SHEET_RULE)
507
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
508
AC_SUBST(INTLTOOL_UI_RULE)
509
AC_SUBST(INTLTOOL_XAM_RULE)
510
AC_SUBST(INTLTOOL_KBD_RULE)
511
AC_SUBST(INTLTOOL_XML_RULE)
512
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
513
AC_SUBST(INTLTOOL_CAVES_RULE)
514
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
515
AC_SUBST(INTLTOOL_THEME_RULE)
516
AC_SUBST(INTLTOOL_SERVICE_RULE)
517
AC_SUBST(INTLTOOL_POLICY_RULE)
519
# Use the tools built into the package, not the ones that are installed.
520
AC_SUBST(INTLTOOL_EXTRACT, '$(top_builddir)/intltool-extract')
521
AC_SUBST(INTLTOOL_MERGE, '$(top_builddir)/intltool-merge')
522
AC_SUBST(INTLTOOL_UPDATE, '$(top_builddir)/intltool-update')
524
AC_PATH_PROG(INTLTOOL_PERL, perl)
525
if test -z "$INTLTOOL_PERL"; then
526
AC_MSG_ERROR([perl not found; required for intltool])
528
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
529
AC_MSG_ERROR([perl 5.x required for intltool])
531
if test "x$2" != "xno-xml"; then
532
AC_MSG_CHECKING([for XML::Parser])
533
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
536
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
540
# Substitute ALL_LINGUAS so we can use it in po/Makefile
541
AC_SUBST(ALL_LINGUAS)
543
# Set DATADIRNAME correctly if it is not set yet
544
# (copied from glib-gettext.m4)
545
if test -z "$DATADIRNAME"; then
547
[AC_LANG_PROGRAM([[]],
548
[[extern int _nl_msg_cat_cntr;
549
return _nl_msg_cat_cntr]])],
553
dnl On Solaris, if bind_textdomain_codeset is in libc,
554
dnl GNU format message catalog is always supported,
555
dnl since both are added to the libc all together.
556
dnl Hence, we'd like to go with DATADIRNAME=share
558
AC_CHECK_FUNC(bind_textdomain_codeset,
559
[DATADIRNAME=share], [DATADIRNAME=lib])
566
AC_SUBST(DATADIRNAME)
570
dnl The following is very similar to
572
dnl AC_CONFIG_FILES([intltool-extract intltool-merge intltool-update])
574
dnl with the following slight differences:
575
dnl - the *.in files are in ac_aux_dir,
576
dnl - if the file haven't changed upon reconfigure, it's not touched,
577
dnl - the evaluation of the third parameter enables a hack which computes
578
dnl the actual value of $libdir,
579
dnl - the user sees "executing intltool commands", instead of
580
dnl "creating intltool-extract" and such.
582
dnl Nothing crucial here, and we could use AC_CONFIG_FILES, if there were
585
AC_CONFIG_COMMANDS([intltool], [
587
for file in intltool-extract intltool-merge intltool-update; do
588
sed -e "s|@INTLTOOL_EXTRACT@|`pwd`/intltool-extract|g" \
589
-e "s|@INTLTOOL_LIBDIR@|${INTLTOOL_LIBDIR}|g" \
590
-e "s|@INTLTOOL_PERL@|${INTLTOOL_PERL}|g" \
591
< ${ac_aux_dir}/${file}.in > ${file}.out
592
if cmp -s ${file} ${file}.out 2>/dev/null; then
595
mv -f ${file}.out ${file}
602
[INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir='${ac_aux_dir}'
603
prefix="$prefix" exec_prefix="$exec_prefix" INTLTOOL_LIBDIR="$libdir"
604
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}'])
609
# IT_PO_SUBDIR(DIRNAME)
610
# ---------------------
611
# All po subdirs have to be declared with this macro; the subdir "po" is
612
# declared by IT_PROG_INTLTOOL.
614
AC_DEFUN([IT_PO_SUBDIR],
615
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
617
dnl The following CONFIG_COMMANDS should be exetuted at the very end
618
dnl of config.status.
619
AC_CONFIG_COMMANDS_PRE([
620
AC_CONFIG_COMMANDS([$1/stamp-it], [
621
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
626
'"s|^| $ac_top_srcdir/|" \
627
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
629
if test ! -f "$1/Makefile"; then
630
AC_MSG_ERROR([$1/Makefile is not ready.])
632
mv "$1/Makefile" "$1/Makefile.tmp"
633
[sed '/^POTFILES =/,/[^\\]$/ {
637
' "$1/Makefile.tmp" >"$1/Makefile"]
638
rm -f "$1/Makefile.tmp"
639
mv "$1/stamp-it.tmp" "$1/stamp-it"
646
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
647
# A hint is needed for aclocal from Automake <= 1.9.4:
648
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
651
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
653
# serial 51 Debian 1.5.24-1ubuntu1 AC_PROG_LIBTOOL
656
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
657
# -----------------------------------------------------------
658
# If this macro is not defined by Autoconf, define it here.
659
m4_ifdef([AC_PROVIDE_IFELSE],
661
[m4_define([AC_PROVIDE_IFELSE],
662
[m4_ifdef([AC_PROVIDE_$1],
668
AC_DEFUN([AC_PROG_LIBTOOL],
669
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
670
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
671
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
672
AC_PROVIDE_IFELSE([AC_PROG_CXX],
674
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
676
dnl And a similar setup for Fortran 77 support
677
AC_PROVIDE_IFELSE([AC_PROG_F77],
679
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
682
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
683
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
684
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
685
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
687
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
689
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
691
[ifdef([AC_PROG_GCJ],
692
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
693
ifdef([A][M_PROG_GCJ],
694
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
695
ifdef([LT_AC_PROG_GCJ],
696
[define([LT_AC_PROG_GCJ],
697
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
698
])])# AC_PROG_LIBTOOL
703
AC_DEFUN([_AC_PROG_LIBTOOL],
704
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
705
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
706
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
707
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
709
# This can be used to rebuild libtool when needed
710
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
712
# Always use our own libtool.
713
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
716
# Prevent multiple expansion
717
define([AC_PROG_LIBTOOL], [])
723
AC_DEFUN([AC_LIBTOOL_SETUP],
725
AC_REQUIRE([AC_ENABLE_SHARED])dnl
726
AC_REQUIRE([AC_ENABLE_STATIC])dnl
727
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
728
AC_REQUIRE([AC_CANONICAL_HOST])dnl
729
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
730
AC_REQUIRE([AC_PROG_CC])dnl
731
AC_REQUIRE([AC_PROG_LD])dnl
732
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
733
AC_REQUIRE([AC_PROG_NM])dnl
735
AC_REQUIRE([AC_PROG_LN_S])dnl
736
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
737
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
738
AC_REQUIRE([AC_OBJEXT])dnl
739
AC_REQUIRE([AC_EXEEXT])dnl
742
AC_LIBTOOL_SYS_MAX_CMD_LEN
743
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
746
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
747
_LT_AC_PROG_ECHO_BACKSLASH
751
# AIX sometimes has problems with the GCC collect2 program. For some
752
# reason, if we set the COLLECT_NAMES environment variable, the problems
753
# vanish in a puff of smoke.
754
if test "X${COLLECT_NAMES+set}" != Xset; then
761
# Sed substitution that helps us do robust quoting. It backslashifies
762
# metacharacters that are still active within double-quoted strings.
763
Xsed='sed -e 1s/^X//'
764
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
766
# Same as above, but do not quote variable references.
767
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
769
# Sed substitution to delay expansion of an escaped shell variable in a
770
# double_quote_subst'ed string.
771
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
773
# Sed substitution to avoid accidental globbing in evaled expressions
774
no_glob_subst='s/\*/\\\*/g'
780
default_ofile=libtool
783
# All known linkers require a `.a' archive for static linking (except MSVC,
784
# which needs '.lib').
786
ltmain="$ac_aux_dir/ltmain.sh"
787
ofile="$default_ofile"
788
with_gnu_ld="$lt_cv_prog_gnu_ld"
790
AC_CHECK_TOOL(AR, ar, false)
791
AC_CHECK_TOOL(RANLIB, ranlib, :)
792
AC_CHECK_TOOL(STRIP, strip, :)
797
# Set sane defaults for various variables
798
test -z "$AR" && AR=ar
799
test -z "$AR_FLAGS" && AR_FLAGS=cru
800
test -z "$AS" && AS=as
801
test -z "$CC" && CC=cc
802
test -z "$LTCC" && LTCC=$CC
803
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
804
test -z "$DLLTOOL" && DLLTOOL=dlltool
805
test -z "$LD" && LD=ld
806
test -z "$LN_S" && LN_S="ln -s"
807
test -z "$MAGIC_CMD" && MAGIC_CMD=file
808
test -z "$NM" && NM=nm
809
test -z "$SED" && SED=sed
810
test -z "$OBJDUMP" && OBJDUMP=objdump
811
test -z "$RANLIB" && RANLIB=:
812
test -z "$STRIP" && STRIP=:
813
test -z "$ac_objext" && ac_objext=o
815
# Determine commands to create old-style static archives.
816
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
817
old_postinstall_cmds='chmod 644 $oldlib'
818
old_postuninstall_cmds=
820
if test -n "$RANLIB"; then
823
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
826
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
829
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
832
_LT_CC_BASENAME([$compiler])
834
# Only perform the check for file, if the check method requires it
835
case $deplibs_check_method in
837
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
843
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
844
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
845
enable_win32_dll=yes, enable_win32_dll=no)
847
AC_ARG_ENABLE([libtool-lock],
848
[AC_HELP_STRING([--disable-libtool-lock],
849
[avoid locking (might break parallel builds)])])
850
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
853
[AC_HELP_STRING([--with-pic],
854
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
855
[pic_mode="$withval"],
857
test -z "$pic_mode" && pic_mode=default
859
# Use C for the default configuration in the libtool script
861
AC_LIBTOOL_LANG_C_CONFIG
866
# _LT_AC_SYS_COMPILER
867
# -------------------
868
AC_DEFUN([_LT_AC_SYS_COMPILER],
869
[AC_REQUIRE([AC_PROG_CC])dnl
871
# If no C compiler was specified, use CC.
874
# If no C compiler flags were specified, use CFLAGS.
875
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
877
# Allow CC to be a program name with arguments.
879
])# _LT_AC_SYS_COMPILER
882
# _LT_CC_BASENAME(CC)
883
# -------------------
884
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
885
AC_DEFUN([_LT_CC_BASENAME],
886
[for cc_temp in $1""; do
888
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
889
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
894
cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
898
# _LT_COMPILER_BOILERPLATE
899
# ------------------------
900
# Check for compiler boilerplate output or warnings with
901
# the simple compiler test code.
902
AC_DEFUN([_LT_COMPILER_BOILERPLATE],
903
[AC_REQUIRE([LT_AC_PROG_SED])dnl
904
ac_outfile=conftest.$ac_objext
905
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
906
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
907
_lt_compiler_boilerplate=`cat conftest.err`
909
])# _LT_COMPILER_BOILERPLATE
912
# _LT_LINKER_BOILERPLATE
913
# ----------------------
914
# Check for linker boilerplate output or warnings with
915
# the simple link test code.
916
AC_DEFUN([_LT_LINKER_BOILERPLATE],
917
[AC_REQUIRE([LT_AC_PROG_SED])dnl
918
ac_outfile=conftest.$ac_objext
919
echo "$lt_simple_link_test_code" >conftest.$ac_ext
920
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
921
_lt_linker_boilerplate=`cat conftest.err`
923
])# _LT_LINKER_BOILERPLATE
926
# _LT_AC_SYS_LIBPATH_AIX
927
# ----------------------
928
# Links a minimal program and checks the executable
929
# for the system default hardcoded library path. In most cases,
930
# this is /usr/lib:/lib, but when the MPI compilers are used
931
# the location of the communication and MPI libs are included too.
932
# If we don't find anything, use the default library path according
933
# to the aix ld manual.
934
AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
935
[AC_REQUIRE([LT_AC_PROG_SED])dnl
936
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
938
/Import File Strings/,/^$/ {
944
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
945
# Check for a 64-bit object if we didn't find anything.
946
if test -z "$aix_libpath"; then
947
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
950
])# _LT_AC_SYS_LIBPATH_AIX
953
# _LT_AC_SHELL_INIT(ARG)
954
# ----------------------
955
AC_DEFUN([_LT_AC_SHELL_INIT],
956
[ifdef([AC_DIVERSION_NOTICE],
957
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
958
[AC_DIVERT_PUSH(NOTICE)])
961
])# _LT_AC_SHELL_INIT
964
# _LT_AC_PROG_ECHO_BACKSLASH
965
# --------------------------
966
# Add some code to the start of the generated configure script which
967
# will find an echo command which doesn't interpret backslashes.
968
AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
970
# Check that we are running under the correct shell.
971
SHELL=${CONFIG_SHELL-/bin/sh}
975
# Remove one level of quotation (which was required for Make).
976
ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
981
if test "X[$]1" = X--no-reexec; then
982
# Discard the --no-reexec flag, and continue.
984
elif test "X[$]1" = X--fallback-echo; then
985
# Avoid inline document here, it may be left over
987
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
988
# Yippee, $echo works!
991
# Restart under the correct shell.
992
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
995
if test "X[$]1" = X--fallback-echo; then
996
# used as fallback echo
1004
# The HP-UX ksh and POSIX shell print the target directory to stdout
1006
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1008
if test -z "$ECHO"; then
1009
if test "X${echo_test_string+set}" != Xset; then
1010
# find a string as large as possible, as long as the shell can cope with it
1011
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1012
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1013
if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1014
echo_test_string=`eval $cmd` &&
1015
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1022
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1023
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1024
test "X$echo_testing_string" = "X$echo_test_string"; then
1027
# The Solaris, AIX, and Digital Unix default echo programs unquote
1028
# backslashes. This makes it impossible to quote backslashes using
1029
# echo "$something" | sed 's/\\/\\\\/g'
1031
# So, first we look for a working echo in the user's PATH.
1033
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1034
for dir in $PATH /usr/ucb; do
1036
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1037
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1038
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1039
test "X$echo_testing_string" = "X$echo_test_string"; then
1046
if test "X$echo" = Xecho; then
1047
# We didn't find a better echo, so look for alternatives.
1048
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1049
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1050
test "X$echo_testing_string" = "X$echo_test_string"; then
1051
# This shell has a builtin print -r that does the trick.
1053
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1054
test "X$CONFIG_SHELL" != X/bin/ksh; then
1055
# If we have ksh, try running configure again with it.
1056
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1057
export ORIGINAL_CONFIG_SHELL
1058
CONFIG_SHELL=/bin/ksh
1060
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1064
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1065
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1066
test "X$echo_testing_string" = "X$echo_test_string"; then
1067
# Cool, printf works
1069
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1070
test "X$echo_testing_string" = 'X\t' &&
1071
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1072
test "X$echo_testing_string" = "X$echo_test_string"; then
1073
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1075
SHELL="$CONFIG_SHELL"
1077
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1078
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1079
test "X$echo_testing_string" = 'X\t' &&
1080
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1081
test "X$echo_testing_string" = "X$echo_test_string"; then
1082
echo="$CONFIG_SHELL [$]0 --fallback-echo"
1084
# maybe with a smaller string...
1087
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1088
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1095
if test "$prev" != 'sed 50q "[$]0"'; then
1096
echo_test_string=`eval $prev`
1097
export echo_test_string
1098
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1100
# Oops. We lost completely, so just stick with echo.
1109
# Copy echo and quote the copy suitably for passing to libtool from
1110
# the Makefile, instead of quoting the original, which is used later.
1112
if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1113
ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1117
])])# _LT_AC_PROG_ECHO_BACKSLASH
1122
AC_DEFUN([_LT_AC_LOCK],
1123
[AC_ARG_ENABLE([libtool-lock],
1124
[AC_HELP_STRING([--disable-libtool-lock],
1125
[avoid locking (might break parallel builds)])])
1126
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1128
# Some flags need to be propagated to the compiler or linker for good
1132
# Find out which ABI we are using.
1133
echo 'int i;' > conftest.$ac_ext
1134
if AC_TRY_EVAL(ac_compile); then
1135
case `/usr/bin/file conftest.$ac_objext` in
1147
# Find out which ABI we are using.
1148
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1149
if AC_TRY_EVAL(ac_compile); then
1150
if test "$lt_cv_prog_gnu_ld" = yes; then
1151
case `/usr/bin/file conftest.$ac_objext` in
1153
LD="${LD-ld} -melf32bsmip"
1156
LD="${LD-ld} -melf32bmipn32"
1159
LD="${LD-ld} -melf64bmip"
1163
case `/usr/bin/file conftest.$ac_objext` in
1179
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1180
s390*-*linux*|sparc*-*linux*)
1181
# Find out which ABI we are using.
1182
echo 'int i;' > conftest.$ac_ext
1183
if AC_TRY_EVAL(ac_compile); then
1184
case `/usr/bin/file conftest.o` in
1187
x86_64-*kfreebsd*-gnu)
1188
LD="${LD-ld} -m elf_i386_fbsd"
1191
LD="${LD-ld} -m elf_i386"
1193
ppc64-*linux*|powerpc64-*linux*)
1194
LD="${LD-ld} -m elf32ppclinux"
1197
LD="${LD-ld} -m elf_s390"
1200
LD="${LD-ld} -m elf32_sparc"
1206
x86_64-*kfreebsd*-gnu)
1207
LD="${LD-ld} -m elf_x86_64_fbsd"
1210
LD="${LD-ld} -m elf_x86_64"
1212
ppc*-*linux*|powerpc*-*linux*)
1213
LD="${LD-ld} -m elf64ppc"
1216
LD="${LD-ld} -m elf64_s390"
1219
LD="${LD-ld} -m elf64_sparc"
1229
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1230
SAVE_CFLAGS="$CFLAGS"
1231
CFLAGS="$CFLAGS -belf"
1232
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1234
AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1236
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1237
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1238
CFLAGS="$SAVE_CFLAGS"
1242
# Find out which ABI we are using.
1243
echo 'int i;' > conftest.$ac_ext
1244
if AC_TRY_EVAL(ac_compile); then
1245
case `/usr/bin/file conftest.o` in
1247
case $lt_cv_prog_gnu_ld in
1248
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1249
*) LD="${LD-ld} -64" ;;
1257
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1258
[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
1259
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
1260
AC_CHECK_TOOL(AS, as, false)
1261
AC_CHECK_TOOL(OBJDUMP, objdump, false)
1266
need_locks="$enable_libtool_lock"
1271
# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1272
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1273
# ----------------------------------------------------------------
1274
# Check whether the given compiler option works
1275
AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
1276
[AC_REQUIRE([LT_AC_PROG_SED])
1277
AC_CACHE_CHECK([$1], [$2],
1279
ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1280
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1281
lt_compiler_flag="$3"
1282
# Insert the option either (1) after the last *FLAGS variable, or
1283
# (2) before a word containing "conftest.", or (3) at the end.
1284
# Note that $ac_compile itself does not contain backslashes and begins
1285
# with a dollar sign (not a hyphen), so the echo should work correctly.
1286
# The option is referenced via a variable to avoid confusing sed.
1287
lt_compile=`echo "$ac_compile" | $SED \
1288
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1289
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1290
-e 's:$: $lt_compiler_flag:'`
1291
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1292
(eval "$lt_compile" 2>conftest.err)
1294
cat conftest.err >&AS_MESSAGE_LOG_FD
1295
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1296
if (exit $ac_status) && test -s "$ac_outfile"; then
1297
# The compiler can only warn and ignore the option if not recognized
1298
# So say no if there are warnings other than the usual output.
1299
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
1300
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1301
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1308
if test x"[$]$2" = xyes; then
1309
ifelse([$5], , :, [$5])
1311
ifelse([$6], , :, [$6])
1313
])# AC_LIBTOOL_COMPILER_OPTION
1316
# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1317
# [ACTION-SUCCESS], [ACTION-FAILURE])
1318
# ------------------------------------------------------------
1319
# Check whether the given compiler option works
1320
AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
1321
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1322
AC_CACHE_CHECK([$1], [$2],
1324
save_LDFLAGS="$LDFLAGS"
1325
LDFLAGS="$LDFLAGS $3"
1326
echo "$lt_simple_link_test_code" > conftest.$ac_ext
1327
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1328
# The linker can only warn and ignore the option if not recognized
1329
# So say no if there are warnings
1330
if test -s conftest.err; then
1331
# Append any errors to the config.log.
1332
cat conftest.err 1>&AS_MESSAGE_LOG_FD
1333
$echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
1334
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1335
if diff conftest.exp conftest.er2 >/dev/null; then
1343
LDFLAGS="$save_LDFLAGS"
1346
if test x"[$]$2" = xyes; then
1347
ifelse([$4], , :, [$4])
1349
ifelse([$5], , :, [$5])
1351
])# AC_LIBTOOL_LINKER_OPTION
1354
# AC_LIBTOOL_SYS_MAX_CMD_LEN
1355
# --------------------------
1356
AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
1357
[# find the maximum length of command line arguments
1358
AC_MSG_CHECKING([the maximum length of command line arguments])
1359
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1365
# On DJGPP, this test can blow up pretty badly due to problems in libc
1366
# (any single argument exceeding 2000 bytes causes a buffer overrun
1367
# during glob expansion). Even if it were fixed, the result of this
1368
# check would be larger than it should be.
1369
lt_cv_sys_max_cmd_len=12288; # 12K is about right
1373
# Under GNU Hurd, this test is not required because there is
1374
# no limit to the length of command line arguments.
1375
# Libtool will interpret -1 as no limit whatsoever
1376
lt_cv_sys_max_cmd_len=-1;
1380
# On Win9x/ME, this test blows up -- it succeeds, but takes
1381
# about 5 minutes as the teststring grows exponentially.
1382
# Worse, since 9x/ME are not pre-emptively multitasking,
1383
# you end up with a "frozen" computer, even though with patience
1384
# the test eventually succeeds (with a max line length of 256k).
1385
# Instead, let's just punt: use the minimum linelength reported by
1386
# all of the supported platforms: 8192 (on NT/2K/XP).
1387
lt_cv_sys_max_cmd_len=8192;
1391
# On AmigaOS with pdksh, this test takes hours, literally.
1392
# So we just punt and use a minimum line length of 8192.
1393
lt_cv_sys_max_cmd_len=8192;
1396
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
1397
# This has been around since 386BSD, at least. Likely further.
1398
if test -x /sbin/sysctl; then
1399
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1400
elif test -x /usr/sbin/sysctl; then
1401
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1403
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1405
# And add a safety zone
1406
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1407
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1411
# We know the value 262144 and hardcode it with a safety zone (like BSD)
1412
lt_cv_sys_max_cmd_len=196608
1416
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1417
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1418
# nice to cause kernel panics so lets avoid the loop below.
1419
# First set a reasonable default.
1420
lt_cv_sys_max_cmd_len=16384
1422
if test -x /sbin/sysconfig; then
1423
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1424
*1*) lt_cv_sys_max_cmd_len=-1 ;;
1429
lt_cv_sys_max_cmd_len=102400
1431
sysv5* | sco5v6* | sysv4.2uw2*)
1432
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1433
if test -n "$kargmax"; then
1434
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1436
lt_cv_sys_max_cmd_len=32768
1440
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1441
if test -n "$lt_cv_sys_max_cmd_len"; then
1442
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1443
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1445
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1446
while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
1447
= "XX$teststring") >/dev/null 2>&1 &&
1448
new_result=`expr "X$teststring" : ".*" 2>&1` &&
1449
lt_cv_sys_max_cmd_len=$new_result &&
1450
test $i != 17 # 1/2 MB should be enough
1453
teststring=$teststring$teststring
1456
# Add a significant safety factor because C++ compilers can tack on massive
1457
# amounts of additional arguments before passing them to the linker.
1458
# It appears as though 1/2 is a usable value.
1459
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1464
if test -n $lt_cv_sys_max_cmd_len ; then
1465
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1469
])# AC_LIBTOOL_SYS_MAX_CMD_LEN
1472
# _LT_AC_CHECK_DLFCN
1473
# ------------------
1474
AC_DEFUN([_LT_AC_CHECK_DLFCN],
1475
[AC_CHECK_HEADERS(dlfcn.h)dnl
1476
])# _LT_AC_CHECK_DLFCN
1479
# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1480
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1481
# ---------------------------------------------------------------------
1482
AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
1483
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1484
if test "$cross_compiling" = yes; then :
1487
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1488
lt_status=$lt_dlunknown
1489
cat > conftest.$ac_ext <<EOF
1490
[#line __oline__ "configure"
1491
#include "confdefs.h"
1500
# define LT_DLGLOBAL RTLD_GLOBAL
1503
# define LT_DLGLOBAL DL_GLOBAL
1505
# define LT_DLGLOBAL 0
1509
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1510
find out it does not work in some platform. */
1511
#ifndef LT_DLLAZY_OR_NOW
1513
# define LT_DLLAZY_OR_NOW RTLD_LAZY
1516
# define LT_DLLAZY_OR_NOW DL_LAZY
1519
# define LT_DLLAZY_OR_NOW RTLD_NOW
1522
# define LT_DLLAZY_OR_NOW DL_NOW
1524
# define LT_DLLAZY_OR_NOW 0
1532
extern "C" void exit (int);
1535
void fnord() { int i=42;}
1538
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1539
int status = $lt_dlunknown;
1543
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1544
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1545
/* dlclose (self); */
1553
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
1554
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1557
x$lt_dlno_uscore) $1 ;;
1558
x$lt_dlneed_uscore) $2 ;;
1559
x$lt_dlunknown|x*) $3 ;;
1562
# compilation failed
1567
])# _LT_AC_TRY_DLOPEN_SELF
1570
# AC_LIBTOOL_DLOPEN_SELF
1571
# ----------------------
1572
AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
1573
[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
1574
if test "x$enable_dlopen" != xyes; then
1575
enable_dlopen=unknown
1576
enable_dlopen_self=unknown
1577
enable_dlopen_self_static=unknown
1584
lt_cv_dlopen="load_add_on"
1586
lt_cv_dlopen_self=yes
1590
lt_cv_dlopen="LoadLibrary"
1595
lt_cv_dlopen="dlopen"
1600
# if libdl is installed we need to link against it
1601
AC_CHECK_LIB([dl], [dlopen],
1602
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
1605
lt_cv_dlopen_self=yes
1610
AC_CHECK_FUNC([shl_load],
1611
[lt_cv_dlopen="shl_load"],
1612
[AC_CHECK_LIB([dld], [shl_load],
1613
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
1614
[AC_CHECK_FUNC([dlopen],
1615
[lt_cv_dlopen="dlopen"],
1616
[AC_CHECK_LIB([dl], [dlopen],
1617
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
1618
[AC_CHECK_LIB([svld], [dlopen],
1619
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
1620
[AC_CHECK_LIB([dld], [dld_link],
1621
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
1630
if test "x$lt_cv_dlopen" != xno; then
1636
case $lt_cv_dlopen in
1638
save_CPPFLAGS="$CPPFLAGS"
1639
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1641
save_LDFLAGS="$LDFLAGS"
1642
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1645
LIBS="$lt_cv_dlopen_libs $LIBS"
1647
AC_CACHE_CHECK([whether a program can dlopen itself],
1648
lt_cv_dlopen_self, [dnl
1649
_LT_AC_TRY_DLOPEN_SELF(
1650
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
1651
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
1654
if test "x$lt_cv_dlopen_self" = xyes; then
1655
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
1656
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
1657
lt_cv_dlopen_self_static, [dnl
1658
_LT_AC_TRY_DLOPEN_SELF(
1659
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1660
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1664
CPPFLAGS="$save_CPPFLAGS"
1665
LDFLAGS="$save_LDFLAGS"
1670
case $lt_cv_dlopen_self in
1671
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1672
*) enable_dlopen_self=unknown ;;
1675
case $lt_cv_dlopen_self_static in
1676
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1677
*) enable_dlopen_self_static=unknown ;;
1680
])# AC_LIBTOOL_DLOPEN_SELF
1683
# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1684
# ---------------------------------
1685
# Check to see if options -c and -o are simultaneously supported by compiler
1686
AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1687
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1688
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1689
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1690
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1691
[_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1692
$rm -r conftest 2>/dev/null
1696
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1698
lt_compiler_flag="-o out/conftest2.$ac_objext"
1699
# Insert the option either (1) after the last *FLAGS variable, or
1700
# (2) before a word containing "conftest.", or (3) at the end.
1701
# Note that $ac_compile itself does not contain backslashes and begins
1702
# with a dollar sign (not a hyphen), so the echo should work correctly.
1703
lt_compile=`echo "$ac_compile" | $SED \
1704
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1705
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1706
-e 's:$: $lt_compiler_flag:'`
1707
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1708
(eval "$lt_compile" 2>out/conftest.err)
1710
cat out/conftest.err >&AS_MESSAGE_LOG_FD
1711
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1712
if (exit $ac_status) && test -s out/conftest2.$ac_objext
1714
# The compiler can only warn and ignore the option if not recognized
1715
# So say no if there are warnings
1716
$echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1717
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1718
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1719
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1722
chmod u+w . 2>&AS_MESSAGE_LOG_FD
1724
# SGI C++ compiler will create directory out/ii_files/ for
1725
# template instantiation
1726
test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1727
$rm out/* && rmdir out
1732
])# AC_LIBTOOL_PROG_CC_C_O
1735
# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1736
# -----------------------------------------
1737
# Check to see if we can do hard links to lock some files if needed
1738
AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1739
[AC_REQUIRE([_LT_AC_LOCK])dnl
1741
hard_links="nottested"
1742
if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1743
# do not overwrite the value of need_locks provided by the user
1744
AC_MSG_CHECKING([if we can lock with hard links])
1747
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1749
ln conftest.a conftest.b 2>&5 || hard_links=no
1750
ln conftest.a conftest.b 2>/dev/null && hard_links=no
1751
AC_MSG_RESULT([$hard_links])
1752
if test "$hard_links" = no; then
1753
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1759
])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1764
AC_DEFUN([AC_LIBTOOL_OBJDIR],
1765
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1766
[rm -f .libs 2>/dev/null
1767
mkdir .libs 2>/dev/null
1768
if test -d .libs; then
1771
# MS-DOS does not allow filenames that begin with a dot.
1774
rmdir .libs 2>/dev/null])
1775
objdir=$lt_cv_objdir
1776
])# AC_LIBTOOL_OBJDIR
1779
# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1780
# ----------------------------------------------
1781
# Check hardcoding attributes.
1782
AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1783
[AC_MSG_CHECKING([how to hardcode library paths into programs])
1784
_LT_AC_TAGVAR(hardcode_action, $1)=
1785
if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1786
test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1787
test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1789
# We can hardcode non-existant directories.
1790
if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1791
# If the only mechanism to avoid hardcoding is shlibpath_var, we
1792
# have to relink, otherwise we might link with an installed library
1793
# when we should be linking with a yet-to-be-installed one
1794
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1795
test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1796
# Linking always hardcodes the temporary library directory.
1797
_LT_AC_TAGVAR(hardcode_action, $1)=relink
1799
# We can link without hardcoding, and we can hardcode nonexisting dirs.
1800
_LT_AC_TAGVAR(hardcode_action, $1)=immediate
1803
# We cannot hardcode anything, or else we can only hardcode existing
1805
_LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1807
AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1809
if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1810
# Fast installation is not supported
1811
enable_fast_install=no
1812
elif test "$shlibpath_overrides_runpath" = yes ||
1813
test "$enable_shared" = no; then
1814
# Fast installation is not necessary
1815
enable_fast_install=needless
1817
])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1820
# AC_LIBTOOL_SYS_LIB_STRIP
1821
# ------------------------
1822
AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1825
AC_MSG_CHECKING([whether stripping libraries is possible])
1826
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1827
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1828
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1829
AC_MSG_RESULT([yes])
1831
# FIXME - insert some real tests, host_os isn't really good enough
1834
if test -n "$STRIP" ; then
1835
striplib="$STRIP -x"
1836
old_striplib="$STRIP -S"
1837
AC_MSG_RESULT([yes])
1847
])# AC_LIBTOOL_SYS_LIB_STRIP
1850
# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1851
# -----------------------------
1852
# PORTME Fill in your ld.so characteristics
1853
AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1854
[AC_REQUIRE([LT_AC_PROG_SED])dnl
1855
AC_MSG_CHECKING([dynamic linker characteristics])
1857
libname_spec='lib$name'
1865
shlibpath_overrides_runpath=unknown
1867
dynamic_linker="$host_os ld.so"
1868
sys_lib_dlsearch_path_spec="/lib /usr/lib"
1870
if test "$GCC" = yes; then
1872
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
1873
*) lt_awk_arg="/^libraries:/" ;;
1875
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1876
if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
1877
# if the path contains ";" then we assume it to be the separator
1878
# otherwise default to the standard path separator (i.e. ":") - it is
1879
# assumed that no part of a normal pathname contains ";" but that should
1880
# okay in the real world where ";" in dirpaths is itself problematic.
1881
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
1883
lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1885
# Ok, now we have the path, separated by spaces, we can step through it
1886
# and add multilib dir if necessary.
1887
lt_tmp_lt_search_path_spec=
1888
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
1889
for lt_sys_path in $lt_search_path_spec; do
1890
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
1891
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
1893
test -d "$lt_sys_path" && \
1894
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
1897
lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
1898
BEGIN {RS=" "; FS="/|\n";} {
1901
for (lt_i = NF; lt_i > 0; lt_i--) {
1902
if ($lt_i != "" && $lt_i != ".") {
1903
if ($lt_i == "..") {
1906
if (lt_count == 0) {
1907
lt_foo="/" $lt_i lt_foo;
1914
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
1915
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
1917
sys_lib_search_path_spec=`echo $lt_search_path_spec`
1919
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1921
need_lib_prefix=unknown
1922
hardcode_into_libs=no
1924
# when you set need_version to no, make sure it does not cause -set_version
1925
# flags to be left without arguments
1926
need_version=unknown
1931
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1932
shlibpath_var=LIBPATH
1934
# AIX 3 has no versioning support, so we append a major version to the name.
1935
soname_spec='${libname}${release}${shared_ext}$major'
1942
hardcode_into_libs=yes
1943
if test "$host_cpu" = ia64; then
1944
# AIX 5 supports IA64
1945
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1946
shlibpath_var=LD_LIBRARY_PATH
1948
# With GCC up to 2.95.x, collect2 would create an import file
1949
# for dependence libraries. The import file would start with
1950
# the line `#! .'. This would cause the generated library to
1951
# depend on `.', always an invalid library. This was fixed in
1952
# development snapshots of GCC prior to 3.0.
1954
aix4 | aix4.[[01]] | aix4.[[01]].*)
1955
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1957
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1964
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1965
# soname into executable. Probably we can add versioning support to
1966
# collect2, so additional links can be useful in future.
1967
if test "$aix_use_runtimelinking" = yes; then
1968
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
1969
# instead of lib<name>.a to let people know that these are not
1970
# typical AIX shared libraries.
1971
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1973
# We preserve .a as extension for shared libraries through AIX4.2
1974
# and later when we are not doing run time linking.
1975
library_names_spec='${libname}${release}.a $libname.a'
1976
soname_spec='${libname}${release}${shared_ext}$major'
1978
shlibpath_var=LIBPATH
1983
library_names_spec='$libname.ixlibrary $libname.a'
1984
# Create ${libname}_ixlibrary.a entries in /sys/libs.
1985
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'
1989
library_names_spec='${libname}${shared_ext}'
1990
dynamic_linker="$host_os ld.so"
1991
shlibpath_var=LIBRARY_PATH
1997
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1998
soname_spec='${libname}${release}${shared_ext}$major'
1999
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2000
shlibpath_var=LD_LIBRARY_PATH
2001
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2002
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2003
# the default ld.so.conf also contains /usr/contrib/lib and
2004
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2005
# libtool to hard-code these into programs
2008
cygwin* | mingw* | pw32*)
2009
version_type=windows
2014
case $GCC,$host_os in
2015
yes,cygwin* | yes,mingw* | yes,pw32*)
2016
library_names_spec='$libname.dll.a'
2017
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2018
postinstall_cmds='base_file=`basename \${file}`~
2019
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2020
dldir=$destdir/`dirname \$dlpath`~
2021
test -d \$dldir || mkdir -p \$dldir~
2022
$install_prog $dir/$dlname \$dldir/$dlname~
2023
chmod a+x \$dldir/$dlname'
2024
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2025
dlpath=$dir/\$dldll~
2027
shlibpath_overrides_runpath=yes
2031
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2032
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2033
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2036
# MinGW DLLs use traditional 'lib' prefix
2037
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2038
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2039
if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2040
# It is most probably a Windows format PATH printed by
2041
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2042
# path with ; separators, and with drive letters. We can handle the
2043
# drive letters (cygwin fileutils understands them), so leave them,
2044
# especially as we might pass files found there to a mingw objdump,
2045
# which wouldn't understand a cygwinified path. Ahh.
2046
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2048
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2052
# pw32 DLLs use 'pw' prefix rather than 'lib'
2053
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2059
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2062
dynamic_linker='Win32 ld.exe'
2063
# FIXME: first we should search . and the directory the executable is in
2067
darwin* | rhapsody*)
2068
dynamic_linker="$host_os dyld"
2072
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2073
soname_spec='${libname}${release}${major}$shared_ext'
2074
shlibpath_overrides_runpath=yes
2075
shlibpath_var=DYLD_LIBRARY_PATH
2076
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2078
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2079
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2086
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2087
soname_spec='${libname}${release}${shared_ext}$major'
2088
shlibpath_var=LD_LIBRARY_PATH
2095
freebsd* | dragonfly*)
2096
# DragonFly does not have aout. When/if they implement a new
2097
# versioning mechanism, adjust this.
2098
if test -x /usr/bin/objformat; then
2099
objformat=`/usr/bin/objformat`
2102
freebsd[[123]]*) objformat=aout ;;
2106
version_type=freebsd-$objformat
2107
case $version_type in
2109
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2114
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2118
shlibpath_var=LD_LIBRARY_PATH
2121
shlibpath_overrides_runpath=yes
2123
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2124
shlibpath_overrides_runpath=yes
2125
hardcode_into_libs=yes
2127
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2128
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2129
shlibpath_overrides_runpath=no
2130
hardcode_into_libs=yes
2132
*) # from 4.6 on, and DragonFly
2133
shlibpath_overrides_runpath=yes
2134
hardcode_into_libs=yes
2143
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2144
soname_spec='${libname}${release}${shared_ext}$major'
2145
shlibpath_var=LD_LIBRARY_PATH
2146
hardcode_into_libs=yes
2149
hpux9* | hpux10* | hpux11*)
2150
# Give a soname corresponding to the major version so that dld.sl refuses to
2151
# link against other versions.
2158
hardcode_into_libs=yes
2159
dynamic_linker="$host_os dld.so"
2160
shlibpath_var=LD_LIBRARY_PATH
2161
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2163
soname_spec='${libname}${release}${shared_ext}$major'
2164
if test "X$HPUX_IA64_MODE" = X32; then
2165
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2167
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2169
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2173
hardcode_into_libs=yes
2174
dynamic_linker="$host_os dld.sl"
2175
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2176
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2177
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2178
soname_spec='${libname}${release}${shared_ext}$major'
2179
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2180
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2184
dynamic_linker="$host_os dld.sl"
2185
shlibpath_var=SHLIB_PATH
2186
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2187
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2188
soname_spec='${libname}${release}${shared_ext}$major'
2191
# HP-UX runs *really* slowly unless shared libraries are mode 555.
2192
postinstall_cmds='chmod 555 $lib'
2199
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2200
soname_spec='${libname}${release}${shared_ext}$major'
2201
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2202
shlibpath_var=LD_LIBRARY_PATH
2203
shlibpath_overrides_runpath=no
2204
hardcode_into_libs=yes
2207
irix5* | irix6* | nonstopux*)
2209
nonstopux*) version_type=nonstopux ;;
2211
if test "$lt_cv_prog_gnu_ld" = yes; then
2219
soname_spec='${libname}${release}${shared_ext}$major'
2220
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2222
irix5* | nonstopux*)
2226
case $LD in # libtool.m4 will add one of these switches to LD
2227
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2228
libsuff= shlibsuff= libmagic=32-bit;;
2229
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2230
libsuff=32 shlibsuff=N32 libmagic=N32;;
2231
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2232
libsuff=64 shlibsuff=64 libmagic=64-bit;;
2233
*) libsuff= shlibsuff= libmagic=never-match;;
2237
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2238
shlibpath_overrides_runpath=no
2239
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
2240
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
2241
hardcode_into_libs=yes
2244
# No shared lib support for Linux oldld, aout, or coff.
2245
linux*oldld* | linux*aout* | linux*coff*)
2249
# This must be Linux ELF.
2250
linux* | k*bsd*-gnu)
2254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2255
soname_spec='${libname}${release}${shared_ext}$major'
2256
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2257
shlibpath_var=LD_LIBRARY_PATH
2258
shlibpath_overrides_runpath=no
2259
# This implies no fast_install, which is unacceptable.
2260
# Some rework will be needed to allow for fast_install
2261
# before this can be enabled.
2262
hardcode_into_libs=yes
2264
# Append ld.so.conf contents to the search path
2265
if test -f /etc/ld.so.conf; then
2266
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
2267
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2270
# We used to test for /lib/ld.so.1 and disable shared libraries on
2271
# powerpc, because MkLinux only supported shared libraries with the
2272
# GNU dynamic linker. Since this was broken with cross compilers,
2273
# most powerpc-linux boxes support dynamic linking these days and
2274
# people can always --disable-shared, the test was removed, and we
2275
# assume the GNU/Linux dynamic linker is in use.
2276
dynamic_linker='GNU/Linux ld.so'
2283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2284
soname_spec='${libname}${release}${shared_ext}$major'
2285
shlibpath_var=LD_LIBRARY_PATH
2286
shlibpath_overrides_runpath=no
2287
hardcode_into_libs=yes
2288
dynamic_linker='NetBSD ld.elf_so'
2295
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
2296
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2297
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2298
dynamic_linker='NetBSD (a.out) ld.so'
2300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2301
soname_spec='${libname}${release}${shared_ext}$major'
2302
dynamic_linker='NetBSD ld.elf_so'
2304
shlibpath_var=LD_LIBRARY_PATH
2305
shlibpath_overrides_runpath=yes
2306
hardcode_into_libs=yes
2311
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2312
shlibpath_var=LD_LIBRARY_PATH
2313
shlibpath_overrides_runpath=yes
2320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2321
soname_spec='${libname}${release}${shared_ext}$major'
2322
shlibpath_var=LD_LIBRARY_PATH
2323
shlibpath_overrides_runpath=yes
2328
sys_lib_dlsearch_path_spec="/usr/lib"
2330
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
2332
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
2333
*) need_version=no ;;
2335
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2336
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2337
shlibpath_var=LD_LIBRARY_PATH
2338
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2340
openbsd2.[[89]] | openbsd2.[[89]].*)
2341
shlibpath_overrides_runpath=no
2344
shlibpath_overrides_runpath=yes
2348
shlibpath_overrides_runpath=yes
2353
libname_spec='$name'
2356
library_names_spec='$libname${shared_ext} $libname.a'
2357
dynamic_linker='OS/2 ld.exe'
2358
shlibpath_var=LIBPATH
2361
osf3* | osf4* | osf5*)
2365
soname_spec='${libname}${release}${shared_ext}$major'
2366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2367
shlibpath_var=LD_LIBRARY_PATH
2368
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2369
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
2380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2381
soname_spec='${libname}${release}${shared_ext}$major'
2382
shlibpath_var=LD_LIBRARY_PATH
2383
shlibpath_overrides_runpath=yes
2384
hardcode_into_libs=yes
2385
# ldd complains unless libraries are executable
2386
postinstall_cmds='chmod +x $lib'
2391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
2392
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
2393
shlibpath_var=LD_LIBRARY_PATH
2394
shlibpath_overrides_runpath=yes
2395
if test "$with_gnu_ld" = yes; then
2403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2404
soname_spec='${libname}${release}${shared_ext}$major'
2405
shlibpath_var=LD_LIBRARY_PATH
2406
case $host_vendor in
2408
shlibpath_overrides_runpath=no
2410
export_dynamic_flag_spec='${wl}-Blargedynsym'
2411
runpath_var=LD_RUN_PATH
2419
shlibpath_overrides_runpath=no
2420
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
2426
if test -d /usr/nec ;then
2428
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
2429
soname_spec='$libname${shared_ext}.$major'
2430
shlibpath_var=LD_LIBRARY_PATH
2434
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2435
version_type=freebsd-elf
2438
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2439
soname_spec='${libname}${release}${shared_ext}$major'
2440
shlibpath_var=LD_LIBRARY_PATH
2441
hardcode_into_libs=yes
2442
if test "$with_gnu_ld" = yes; then
2443
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
2444
shlibpath_overrides_runpath=no
2446
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
2447
shlibpath_overrides_runpath=yes
2450
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
2454
sys_lib_dlsearch_path_spec='/usr/lib'
2459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2460
soname_spec='${libname}${release}${shared_ext}$major'
2461
shlibpath_var=LD_LIBRARY_PATH
2468
AC_MSG_RESULT([$dynamic_linker])
2469
test "$dynamic_linker" = no && can_build_shared=no
2471
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
2472
if test "$GCC" = yes; then
2473
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
2475
])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2480
AC_DEFUN([_LT_AC_TAGCONFIG],
2481
[AC_REQUIRE([LT_AC_PROG_SED])dnl
2483
[AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
2484
[include additional configurations @<:@automatic@:>@])],
2485
[tagnames="$withval"])
2487
if test -f "$ltmain" && test -n "$tagnames"; then
2488
if test ! -f "${ofile}"; then
2489
AC_MSG_WARN([output file `$ofile' does not exist])
2492
if test -z "$LTCC"; then
2493
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
2494
if test -z "$LTCC"; then
2495
AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
2497
AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
2500
if test -z "$LTCFLAGS"; then
2501
eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
2504
# Extract list of available tagged configurations in $ofile.
2505
# Note that this assumes the entire list is on one line.
2506
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
2508
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2509
for tagname in $tagnames; do
2511
# Check whether tagname contains only valid characters
2512
case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
2514
*) AC_MSG_ERROR([invalid tag name: $tagname])
2518
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
2520
AC_MSG_ERROR([tag name \"$tagname\" already exists])
2523
# Update the list of available tags.
2524
if test -n "$tagname"; then
2525
echo appending configuration tag \"$tagname\" to $ofile
2529
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2530
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2531
(test "X$CXX" != "Xg++"))) ; then
2532
AC_LIBTOOL_LANG_CXX_CONFIG
2539
if test -n "$F77" && test "X$F77" != "Xno"; then
2540
AC_LIBTOOL_LANG_F77_CONFIG
2547
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
2548
AC_LIBTOOL_LANG_GCJ_CONFIG
2555
AC_LIBTOOL_LANG_RC_CONFIG
2559
AC_MSG_ERROR([Unsupported tag name: $tagname])
2563
# Append the new tag name to the list of available tags.
2564
if test -n "$tagname" ; then
2565
available_tags="$available_tags $tagname"
2571
# Now substitute the updated list of available tags.
2572
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
2573
mv "${ofile}T" "$ofile"
2577
AC_MSG_ERROR([unable to update list of available tagged configurations.])
2580
])# _LT_AC_TAGCONFIG
2585
# enable checks for dlopen support
2586
AC_DEFUN([AC_LIBTOOL_DLOPEN],
2587
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
2588
])# AC_LIBTOOL_DLOPEN
2591
# AC_LIBTOOL_WIN32_DLL
2592
# --------------------
2593
# declare package support for building win32 DLLs
2594
AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
2595
[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
2596
])# AC_LIBTOOL_WIN32_DLL
2599
# AC_ENABLE_SHARED([DEFAULT])
2600
# ---------------------------
2601
# implement the --enable-shared flag
2602
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2603
AC_DEFUN([AC_ENABLE_SHARED],
2604
[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
2605
AC_ARG_ENABLE([shared],
2606
[AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
2607
[build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
2608
[p=${PACKAGE-default}
2610
yes) enable_shared=yes ;;
2611
no) enable_shared=no ;;
2614
# Look at the argument we got. We use all the common list separators.
2615
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2616
for pkg in $enableval; do
2618
if test "X$pkg" = "X$p"; then
2625
[enable_shared=]AC_ENABLE_SHARED_DEFAULT)
2626
])# AC_ENABLE_SHARED
2631
# set the default shared flag to --disable-shared
2632
AC_DEFUN([AC_DISABLE_SHARED],
2633
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2634
AC_ENABLE_SHARED(no)
2635
])# AC_DISABLE_SHARED
2638
# AC_ENABLE_STATIC([DEFAULT])
2639
# ---------------------------
2640
# implement the --enable-static flag
2641
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2642
AC_DEFUN([AC_ENABLE_STATIC],
2643
[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
2644
AC_ARG_ENABLE([static],
2645
[AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
2646
[build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
2647
[p=${PACKAGE-default}
2649
yes) enable_static=yes ;;
2650
no) enable_static=no ;;
2653
# Look at the argument we got. We use all the common list separators.
2654
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2655
for pkg in $enableval; do
2657
if test "X$pkg" = "X$p"; then
2664
[enable_static=]AC_ENABLE_STATIC_DEFAULT)
2665
])# AC_ENABLE_STATIC
2670
# set the default static flag to --disable-static
2671
AC_DEFUN([AC_DISABLE_STATIC],
2672
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2673
AC_ENABLE_STATIC(no)
2674
])# AC_DISABLE_STATIC
2677
# AC_ENABLE_FAST_INSTALL([DEFAULT])
2678
# ---------------------------------
2679
# implement the --enable-fast-install flag
2680
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
2681
AC_DEFUN([AC_ENABLE_FAST_INSTALL],
2682
[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
2683
AC_ARG_ENABLE([fast-install],
2684
[AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
2685
[optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
2686
[p=${PACKAGE-default}
2688
yes) enable_fast_install=yes ;;
2689
no) enable_fast_install=no ;;
2691
enable_fast_install=no
2692
# Look at the argument we got. We use all the common list separators.
2693
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2694
for pkg in $enableval; do
2696
if test "X$pkg" = "X$p"; then
2697
enable_fast_install=yes
2703
[enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2704
])# AC_ENABLE_FAST_INSTALL
2707
# AC_DISABLE_FAST_INSTALL
2708
# -----------------------
2709
# set the default to --disable-fast-install
2710
AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2711
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2712
AC_ENABLE_FAST_INSTALL(no)
2713
])# AC_DISABLE_FAST_INSTALL
2716
# AC_LIBTOOL_PICMODE([MODE])
2717
# --------------------------
2718
# implement the --with-pic flag
2719
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2720
AC_DEFUN([AC_LIBTOOL_PICMODE],
2721
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2722
pic_mode=ifelse($#,1,$1,default)
2723
])# AC_LIBTOOL_PICMODE
2728
# This is predefined starting with Autoconf 2.54, so this conditional
2729
# definition can be removed once we require Autoconf 2.54 or later.
2730
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2731
[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2732
[if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2733
then ac_cv_prog_egrep='grep -E'
2734
else ac_cv_prog_egrep='egrep'
2736
EGREP=$ac_cv_prog_egrep
2741
# AC_PATH_TOOL_PREFIX
2742
# -------------------
2743
# find a file program which can recognize shared library
2744
AC_DEFUN([AC_PATH_TOOL_PREFIX],
2745
[AC_REQUIRE([AC_PROG_EGREP])dnl
2746
AC_MSG_CHECKING([for $1])
2747
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2749
[[\\/*] | ?:[\\/]*])
2750
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2753
lt_save_MAGIC_CMD="$MAGIC_CMD"
2754
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2755
dnl $ac_dummy forces splitting on constant user-supplied paths.
2756
dnl POSIX.2 word splitting is done only on the output of word expansions,
2757
dnl not every word. This closes a longstanding sh security hole.
2758
ac_dummy="ifelse([$2], , $PATH, [$2])"
2759
for ac_dir in $ac_dummy; do
2761
test -z "$ac_dir" && ac_dir=.
2762
if test -f $ac_dir/$1; then
2763
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2764
if test -n "$file_magic_test_file"; then
2765
case $deplibs_check_method in
2767
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2768
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2769
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2770
$EGREP "$file_magic_regex" > /dev/null; then
2775
*** Warning: the command libtool uses to detect shared libraries,
2776
*** $file_magic_cmd, produces output that libtool cannot recognize.
2777
*** The result is that libtool may fail to recognize shared libraries
2778
*** as such. This will affect the creation of libtool libraries that
2779
*** depend on shared libraries, but programs linked with such libtool
2780
*** libraries will work regardless of this problem. Nevertheless, you
2781
*** may want to report the problem to your system manager and/or to
2782
*** bug-libtool@gnu.org
2792
MAGIC_CMD="$lt_save_MAGIC_CMD"
2795
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2796
if test -n "$MAGIC_CMD"; then
2797
AC_MSG_RESULT($MAGIC_CMD)
2801
])# AC_PATH_TOOL_PREFIX
2806
# find a file program which can recognize a shared library
2807
AC_DEFUN([AC_PATH_MAGIC],
2808
[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2809
if test -z "$lt_cv_path_MAGIC_CMD"; then
2810
if test -n "$ac_tool_prefix"; then
2811
AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2821
# find the pathname to the GNU or non-GNU linker
2822
AC_DEFUN([AC_PROG_LD],
2823
[AC_ARG_WITH([gnu-ld],
2824
[AC_HELP_STRING([--with-gnu-ld],
2825
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
2826
[test "$withval" = no || with_gnu_ld=yes],
2828
AC_REQUIRE([LT_AC_PROG_SED])dnl
2829
AC_REQUIRE([AC_PROG_CC])dnl
2830
AC_REQUIRE([AC_CANONICAL_HOST])dnl
2831
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2833
if test "$GCC" = yes; then
2834
# Check if gcc -print-prog-name=ld gives a path.
2835
AC_MSG_CHECKING([for ld used by $CC])
2838
# gcc leaves a trailing carriage return which upsets mingw
2839
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2841
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2844
# Accept absolute paths.
2845
[[\\/]]* | ?:[[\\/]]*)
2846
re_direlt='/[[^/]][[^/]]*/\.\./'
2847
# Canonicalize the pathname of ld
2848
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2849
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2850
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2852
test -z "$LD" && LD="$ac_prog"
2855
# If it fails, then pretend we aren't using GCC.
2859
# If it is relative, then search for the first ld in PATH.
2863
elif test "$with_gnu_ld" = yes; then
2864
AC_MSG_CHECKING([for GNU ld])
2866
AC_MSG_CHECKING([for non-GNU ld])
2868
AC_CACHE_VAL(lt_cv_path_LD,
2869
[if test -z "$LD"; then
2870
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2871
for ac_dir in $PATH; do
2873
test -z "$ac_dir" && ac_dir=.
2874
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2875
lt_cv_path_LD="$ac_dir/$ac_prog"
2876
# Check to see if the program is GNU ld. I'd rather use --version,
2877
# but apparently some variants of GNU ld only accept -v.
2878
# Break only if it was the GNU/non-GNU ld that we prefer.
2879
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2880
*GNU* | *'with BFD'*)
2881
test "$with_gnu_ld" != no && break
2884
test "$with_gnu_ld" != yes && break
2891
lt_cv_path_LD="$LD" # Let the user override the test with a path.
2894
if test -n "$LD"; then
2899
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2906
AC_DEFUN([AC_PROG_LD_GNU],
2907
[AC_REQUIRE([AC_PROG_EGREP])dnl
2908
AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2909
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
2910
case `$LD -v 2>&1 </dev/null` in
2911
*GNU* | *'with BFD'*)
2912
lt_cv_prog_gnu_ld=yes
2915
lt_cv_prog_gnu_ld=no
2918
with_gnu_ld=$lt_cv_prog_gnu_ld
2922
# AC_PROG_LD_RELOAD_FLAG
2923
# ----------------------
2924
# find reload flag for linker
2925
# -- PORTME Some linkers may need a different reload flag.
2926
AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2927
[AC_CACHE_CHECK([for $LD option to reload object files],
2928
lt_cv_ld_reload_flag,
2929
[lt_cv_ld_reload_flag='-r'])
2930
reload_flag=$lt_cv_ld_reload_flag
2931
case $reload_flag in
2933
*) reload_flag=" $reload_flag" ;;
2935
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2938
if test "$GCC" = yes; then
2939
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2941
reload_cmds='$LD$reload_flag -o $output$reload_objs'
2945
])# AC_PROG_LD_RELOAD_FLAG
2948
# AC_DEPLIBS_CHECK_METHOD
2949
# -----------------------
2950
# how to check for library dependencies
2951
# -- PORTME fill in with the dynamic library characteristics
2952
AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2953
[AC_CACHE_CHECK([how to recognize dependent libraries],
2954
lt_cv_deplibs_check_method,
2955
[lt_cv_file_magic_cmd='$MAGIC_CMD'
2956
lt_cv_file_magic_test_file=
2957
lt_cv_deplibs_check_method='unknown'
2958
# Need to set the preceding variable on all platforms that support
2959
# interlibrary dependencies.
2960
# 'none' -- dependencies not supported.
2961
# `unknown' -- same as none, but documents that we really don't know.
2962
# 'pass_all' -- all dependencies passed with no checks.
2963
# 'test_compile' -- check by making test program.
2964
# 'file_magic [[regex]]' -- check by looking for files in library path
2965
# which responds to the $file_magic_cmd with a given extended regex.
2966
# If you have `file' or equivalent on your system and you're not sure
2967
# whether `pass_all' will *always* work, you probably want this one.
2971
lt_cv_deplibs_check_method=pass_all
2975
lt_cv_deplibs_check_method=pass_all
2979
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2980
lt_cv_file_magic_cmd='/usr/bin/file -L'
2981
lt_cv_file_magic_test_file=/shlib/libc.so
2985
# func_win32_libid is a shell function defined in ltmain.sh
2986
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2987
lt_cv_file_magic_cmd='func_win32_libid'
2991
# Base MSYS/MinGW do not provide the 'file' command needed by
2992
# func_win32_libid shell function, so use a weaker test based on 'objdump',
2993
# unless we find 'file', for example because we are cross-compiling.
2994
if ( file / ) >/dev/null 2>&1; then
2995
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2996
lt_cv_file_magic_cmd='func_win32_libid'
2998
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2999
lt_cv_file_magic_cmd='$OBJDUMP -f'
3003
darwin* | rhapsody*)
3004
lt_cv_deplibs_check_method=pass_all
3007
freebsd* | dragonfly*)
3008
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3011
# Not sure whether the presence of OpenBSD here was a mistake.
3012
# Let's accept both of them until this is cleared up.
3013
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3014
lt_cv_file_magic_cmd=/usr/bin/file
3015
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3019
lt_cv_deplibs_check_method=pass_all
3024
lt_cv_deplibs_check_method=pass_all
3027
hpux10.20* | hpux11*)
3028
lt_cv_file_magic_cmd=/usr/bin/file
3031
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3032
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3035
[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]']
3036
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3039
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3040
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3046
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3047
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3050
irix5* | irix6* | nonstopux*)
3052
*-32|*"-32 ") libmagic=32-bit;;
3053
*-n32|*"-n32 ") libmagic=N32;;
3054
*-64|*"-64 ") libmagic=64-bit;;
3055
*) libmagic=never-match;;
3057
lt_cv_deplibs_check_method=pass_all
3060
# This must be Linux ELF.
3061
linux* | k*bsd*-gnu)
3062
lt_cv_deplibs_check_method=pass_all
3065
netbsd* | netbsdelf*-gnu)
3066
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3067
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3069
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3074
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3075
lt_cv_file_magic_cmd=/usr/bin/file
3076
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3080
lt_cv_deplibs_check_method=unknown
3084
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3085
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3087
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3091
osf3* | osf4* | osf5*)
3092
lt_cv_deplibs_check_method=pass_all
3096
lt_cv_deplibs_check_method=pass_all
3100
lt_cv_deplibs_check_method=pass_all
3104
case $host_vendor in
3106
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]]'
3107
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3110
lt_cv_deplibs_check_method=pass_all
3113
lt_cv_file_magic_cmd='/bin/file'
3114
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3117
lt_cv_file_magic_cmd='/bin/file'
3118
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3119
lt_cv_file_magic_test_file=/lib/libc.so
3122
lt_cv_deplibs_check_method=pass_all
3125
lt_cv_deplibs_check_method=pass_all
3130
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3131
lt_cv_deplibs_check_method=pass_all
3135
file_magic_cmd=$lt_cv_file_magic_cmd
3136
deplibs_check_method=$lt_cv_deplibs_check_method
3137
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3138
])# AC_DEPLIBS_CHECK_METHOD
3143
# find the pathname to a BSD-compatible name lister
3144
AC_DEFUN([AC_PROG_NM],
3145
[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3146
[if test -n "$NM"; then
3147
# Let the user override the test.
3150
lt_nm_to_check="${ac_tool_prefix}nm"
3151
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3152
lt_nm_to_check="$lt_nm_to_check nm"
3154
for lt_tmp_nm in $lt_nm_to_check; do
3155
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3156
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3158
test -z "$ac_dir" && ac_dir=.
3159
tmp_nm="$ac_dir/$lt_tmp_nm"
3160
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3161
# Check to see if the nm accepts a BSD-compat flag.
3162
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3163
# nm: unknown option "B" ignored
3164
# Tru64's nm complains that /dev/null is an invalid object file
3165
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3166
*/dev/null* | *'Invalid file or object type'*)
3167
lt_cv_path_NM="$tmp_nm -B"
3171
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3173
lt_cv_path_NM="$tmp_nm -p"
3177
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3178
continue # so that we can try to find one that supports BSD flags
3187
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3195
# check for math library
3196
AC_DEFUN([AC_CHECK_LIBM],
3197
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3200
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3201
# These system don't have libm, or don't need it
3204
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3205
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3208
AC_CHECK_LIB(m, cos, LIBM="-lm")
3214
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3215
# -----------------------------------
3216
# sets LIBLTDL to the link flags for the libltdl convenience library and
3217
# LTDLINCL to the include flags for the libltdl header and adds
3218
# --enable-ltdl-convenience to the configure arguments. Note that
3219
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3220
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3221
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3222
# (note the single quotes!). If your package is not flat and you're not
3223
# using automake, define top_builddir and top_srcdir appropriately in
3225
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3226
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3227
case $enable_ltdl_convenience in
3228
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3229
"") enable_ltdl_convenience=yes
3230
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3232
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3233
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3234
# For backwards non-gettext consistent compatibility...
3236
])# AC_LIBLTDL_CONVENIENCE
3239
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3240
# -----------------------------------
3241
# sets LIBLTDL to the link flags for the libltdl installable library and
3242
# LTDLINCL to the include flags for the libltdl header and adds
3243
# --enable-ltdl-install to the configure arguments. Note that
3244
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3245
# and an installed libltdl is not found, it is assumed to be `libltdl'.
3246
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
3247
# '${top_srcdir}/' (note the single quotes!). If your package is not
3248
# flat and you're not using automake, define top_builddir and top_srcdir
3249
# appropriately in the Makefiles.
3250
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3251
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
3252
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3253
AC_CHECK_LIB(ltdl, lt_dlinit,
3254
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
3255
[if test x"$enable_ltdl_install" = xno; then
3256
AC_MSG_WARN([libltdl not installed, but installation disabled])
3258
enable_ltdl_install=yes
3261
if test x"$enable_ltdl_install" = x"yes"; then
3262
ac_configure_args="$ac_configure_args --enable-ltdl-install"
3263
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
3264
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3266
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3270
# For backwards non-gettext consistent compatibility...
3272
])# AC_LIBLTDL_INSTALLABLE
3277
# enable support for C++ libraries
3278
AC_DEFUN([AC_LIBTOOL_CXX],
3279
[AC_REQUIRE([_LT_AC_LANG_CXX])
3285
AC_DEFUN([_LT_AC_LANG_CXX],
3286
[AC_REQUIRE([AC_PROG_CXX])
3287
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3288
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
3291
# _LT_AC_PROG_CXXCPP
3292
# ------------------
3293
AC_DEFUN([_LT_AC_PROG_CXXCPP],
3295
AC_REQUIRE([AC_PROG_CXX])
3296
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3297
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3298
(test "X$CXX" != "Xg++"))) ; then
3301
])# _LT_AC_PROG_CXXCPP
3305
# enable support for Fortran 77 libraries
3306
AC_DEFUN([AC_LIBTOOL_F77],
3307
[AC_REQUIRE([_LT_AC_LANG_F77])
3313
AC_DEFUN([_LT_AC_LANG_F77],
3314
[AC_REQUIRE([AC_PROG_F77])
3315
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
3321
# enable support for GCJ libraries
3322
AC_DEFUN([AC_LIBTOOL_GCJ],
3323
[AC_REQUIRE([_LT_AC_LANG_GCJ])
3329
AC_DEFUN([_LT_AC_LANG_GCJ],
3330
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
3331
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
3332
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
3333
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
3334
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
3335
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
3336
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
3342
# enable support for Windows resource files
3343
AC_DEFUN([AC_LIBTOOL_RC],
3344
[AC_REQUIRE([LT_AC_PROG_RC])
3345
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
3349
# AC_LIBTOOL_LANG_C_CONFIG
3350
# ------------------------
3351
# Ensure that the configuration vars for the C compiler are
3352
# suitably defined. Those variables are subsequently used by
3353
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3354
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
3355
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
3359
# Source file extension for C test sources.
3362
# Object file extension for compiled C test sources.
3364
_LT_AC_TAGVAR(objext, $1)=$objext
3366
# Code to be used in simple compile tests
3367
lt_simple_compile_test_code="int some_variable = 0;"
3369
# Code to be used in simple link tests
3370
lt_simple_link_test_code='int main(){return(0);}'
3374
# save warnings/boilerplate of simple test code
3375
_LT_COMPILER_BOILERPLATE
3376
_LT_LINKER_BOILERPLATE
3378
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3379
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3380
AC_LIBTOOL_PROG_CC_C_O($1)
3381
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3382
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3383
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3384
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3385
AC_LIBTOOL_SYS_LIB_STRIP
3386
AC_LIBTOOL_DLOPEN_SELF
3388
# Report which library types will actually be built
3389
AC_MSG_CHECKING([if libtool supports shared libraries])
3390
AC_MSG_RESULT([$can_build_shared])
3392
AC_MSG_CHECKING([whether to build shared libraries])
3393
test "$can_build_shared" = "no" && enable_shared=no
3395
# On AIX, shared libraries and static libraries use the same namespace, and
3396
# are all built from PIC.
3399
test "$enable_shared" = yes && enable_static=no
3400
if test -n "$RANLIB"; then
3401
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3402
postinstall_cmds='$RANLIB $lib'
3407
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3408
test "$enable_shared" = yes && enable_static=no
3412
AC_MSG_RESULT([$enable_shared])
3414
AC_MSG_CHECKING([whether to build static libraries])
3415
# Make sure either enable_shared or enable_static is yes.
3416
test "$enable_shared" = yes || enable_static=yes
3417
AC_MSG_RESULT([$enable_static])
3419
AC_LIBTOOL_CONFIG($1)
3423
])# AC_LIBTOOL_LANG_C_CONFIG
3426
# AC_LIBTOOL_LANG_CXX_CONFIG
3427
# --------------------------
3428
# Ensure that the configuration vars for the C compiler are
3429
# suitably defined. Those variables are subsequently used by
3430
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3431
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3432
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3434
AC_REQUIRE([AC_PROG_CXX])
3435
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3437
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3438
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3439
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3440
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3441
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3442
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3443
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3444
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3445
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3446
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3447
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3448
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3449
_LT_AC_TAGVAR(module_cmds, $1)=
3450
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3451
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3452
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3453
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3454
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3455
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3457
# Dependencies to place before and after the object being linked:
3458
_LT_AC_TAGVAR(predep_objects, $1)=
3459
_LT_AC_TAGVAR(postdep_objects, $1)=
3460
_LT_AC_TAGVAR(predeps, $1)=
3461
_LT_AC_TAGVAR(postdeps, $1)=
3462
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3464
# Source file extension for C++ test sources.
3467
# Object file extension for compiled C++ test sources.
3469
_LT_AC_TAGVAR(objext, $1)=$objext
3471
# Code to be used in simple compile tests
3472
lt_simple_compile_test_code="int some_variable = 0;"
3474
# Code to be used in simple link tests
3475
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3477
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3480
# save warnings/boilerplate of simple test code
3481
_LT_COMPILER_BOILERPLATE
3482
_LT_LINKER_BOILERPLATE
3484
# Allow CC to be a program name with arguments.
3489
lt_save_with_gnu_ld=$with_gnu_ld
3490
lt_save_path_LD=$lt_cv_path_LD
3491
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3492
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3494
$as_unset lt_cv_prog_gnu_ld
3496
if test -n "${lt_cv_path_LDCXX+set}"; then
3497
lt_cv_path_LD=$lt_cv_path_LDCXX
3499
$as_unset lt_cv_path_LD
3501
test -z "${LDCXX+set}" || LD=$LDCXX
3504
_LT_AC_TAGVAR(compiler, $1)=$CC
3505
_LT_CC_BASENAME([$compiler])
3507
# We don't want -fno-exception wen compiling C++ code, so set the
3508
# no_builtin_flag separately
3509
if test "$GXX" = yes; then
3510
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3512
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3515
if test "$GXX" = yes; then
3516
# Set up default GNU C++ configuration
3520
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3521
# archiving commands below assume that GNU ld is being used.
3522
if test "$with_gnu_ld" = yes; then
3523
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3524
_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'
3526
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3527
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3529
# If archive_cmds runs LD, not CC, wlarc should be empty
3530
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3531
# investigate it a little bit more. (MM)
3534
# ancient GNU ld didn't support --whole-archive et. al.
3535
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3536
grep 'no-whole-archive' > /dev/null; then
3537
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3539
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3545
# A generic and very simple default shared library creation
3546
# command for GNU C++ for the case where it uses the native
3547
# linker, instead of GNU ld. If possible, this setting should
3548
# overridden to take advantage of the native linker features on
3549
# the platform it is being used on.
3550
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3553
# Commands to make compiler produce verbose output that lists
3554
# what "hidden" libraries, object files and flags are used when
3555
# linking a shared library.
3556
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3564
# PORTME: fill in a description of your system's C++ link characteristics
3565
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3566
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3569
# FIXME: insert proper C++ library support
3570
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3573
if test "$host_cpu" = ia64; then
3574
# On IA64, the linker does run time linking by default, so we don't
3575
# have to do anything special.
3576
aix_use_runtimelinking=no
3577
exp_sym_flag='-Bexport'
3580
aix_use_runtimelinking=no
3582
# Test if we are trying to use run time linking or normal
3583
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3584
# need to do runtime linking.
3585
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
3586
for ld_flag in $LDFLAGS; do
3589
aix_use_runtimelinking=yes
3597
exp_sym_flag='-bexport'
3598
no_entry_flag='-bnoentry'
3601
# When large executables or shared objects are built, AIX ld can
3602
# have problems creating the table of contents. If linking a library
3603
# or program results in "error TOC overflow" add -mminimal-toc to
3604
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3605
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3607
_LT_AC_TAGVAR(archive_cmds, $1)=''
3608
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3609
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3610
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3612
if test "$GXX" = yes; then
3613
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3614
# We only want to do this on AIX 4.2 and lower, the check
3615
# below for broken collect2 doesn't work under 4.3+
3616
collect2name=`${CC} -print-prog-name=collect2`
3617
if test -f "$collect2name" && \
3618
strings "$collect2name" | grep resolve_lib_name >/dev/null
3620
# We have reworked collect2
3623
# We have old collect2
3624
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3625
# It fails to find uninstalled libraries when the uninstalled
3626
# path is not listed in the libpath. Setting hardcode_minus_L
3627
# to unsupported forces relinking
3628
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3629
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3630
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3634
shared_flag='-shared'
3635
if test "$aix_use_runtimelinking" = yes; then
3636
shared_flag="$shared_flag "'${wl}-G'
3640
if test "$host_cpu" = ia64; then
3641
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3642
# chokes on -Wl,-G. The following line is correct:
3645
if test "$aix_use_runtimelinking" = yes; then
3646
shared_flag='${wl}-G'
3648
shared_flag='${wl}-bM:SRE'
3653
# It seems that -bexpall does not export symbols beginning with
3654
# underscore (_), so it is better to generate a list of symbols to export.
3655
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3656
if test "$aix_use_runtimelinking" = yes; then
3657
# Warning - without using the other runtime loading flags (-brtl),
3658
# -berok will link without error, but may produce a broken library.
3659
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3660
# Determine the default libpath from the value encoded in an empty executable.
3661
_LT_AC_SYS_LIBPATH_AIX
3662
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3664
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3666
if test "$host_cpu" = ia64; then
3667
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3668
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3669
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3671
# Determine the default libpath from the value encoded in an empty executable.
3672
_LT_AC_SYS_LIBPATH_AIX
3673
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3674
# Warning - without using the other run time loading flags,
3675
# -berok will link without error, but may produce a broken library.
3676
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3677
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3678
# Exported symbols can be pulled into shared objects from archives
3679
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3680
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3681
# This is similar to how AIX traditionally builds its shared libraries.
3682
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3688
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3689
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3690
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3691
# support --undefined. This deserves some investigation. FIXME
3692
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3694
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3699
case $cc_basename in
3701
# FIXME: insert proper C++ library support
3702
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3707
cygwin* | mingw* | pw32*)
3708
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3709
# as there is no search path for DLLs.
3710
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3711
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3712
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3713
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3715
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3716
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3717
# If the export-symbols file already is a .def file (1st line
3718
# is EXPORTS), use it as is; otherwise, prepend...
3719
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3720
cp $export_symbols $output_objdir/$soname.def;
3722
echo EXPORTS > $output_objdir/$soname.def;
3723
cat $export_symbols >> $output_objdir/$soname.def;
3725
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3727
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3730
darwin* | rhapsody*)
3732
rhapsody* | darwin1.[[012]])
3733
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3736
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3737
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3739
case ${MACOSX_DEPLOYMENT_TARGET} in
3741
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3744
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3750
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3751
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3752
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3753
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3754
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3755
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3757
if test "$GXX" = yes ; then
3758
lt_int_apple_cc_single_mod=no
3759
output_verbose_link_cmd='echo'
3760
if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3761
lt_int_apple_cc_single_mod=yes
3763
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3764
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3766
_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'
3768
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3769
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3770
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3771
_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}'
3773
_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}'
3775
_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}'
3777
case $cc_basename in
3779
output_verbose_link_cmd='echo'
3780
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3781
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3782
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3783
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3784
_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}'
3787
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3794
case $cc_basename in
3796
# FIXME: insert proper C++ library support
3797
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3800
# Green Hills C++ Compiler
3801
# FIXME: insert proper C++ library support
3802
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3805
# FIXME: insert proper C++ library support
3806
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3811
# C++ shared libraries reported to be fairly broken before switch to ELF
3812
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3815
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3817
freebsd* | dragonfly*)
3818
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3820
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3825
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3826
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3827
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3828
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3829
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3830
# but as the default
3831
# location of the library.
3833
case $cc_basename in
3835
# FIXME: insert proper C++ library support
3836
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3839
_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'
3840
# Commands to make compiler produce verbose output that lists
3841
# what "hidden" libraries, object files and flags are used when
3842
# linking a shared library.
3844
# There doesn't appear to be a way to prevent this compiler from
3845
# explicitly linking system object files so we need to strip them
3846
# from the output so that they don't get included in the library
3848
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'
3851
if test "$GXX" = yes; then
3852
_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'
3854
# FIXME: insert proper C++ library support
3855
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3861
if test $with_gnu_ld = no; then
3862
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3863
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3868
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3874
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3875
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3878
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3879
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3880
# but as the default
3881
# location of the library.
3885
case $cc_basename in
3887
# FIXME: insert proper C++ library support
3888
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3893
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3896
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3899
_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'
3902
# Commands to make compiler produce verbose output that lists
3903
# what "hidden" libraries, object files and flags are used when
3904
# linking a shared library.
3906
# There doesn't appear to be a way to prevent this compiler from
3907
# explicitly linking system object files so we need to strip them
3908
# from the output so that they don't get included in the library
3910
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'
3913
if test "$GXX" = yes; then
3914
if test $with_gnu_ld = no; then
3917
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3920
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3923
_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'
3928
# FIXME: insert proper C++ library support
3929
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3935
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3936
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3937
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3938
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3939
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3940
# Instead, shared libraries are loaded at an image base (0x10000000 by
3941
# default) and relocated if they conflict, which is a slow very memory
3942
# consuming and fragmenting process. To avoid this, we pick a random,
3943
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3944
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3945
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3946
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3949
case $cc_basename in
3952
_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'
3954
# Archives containing C++ object files must be created using
3955
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3956
# necessary to make sure instantiated templates are included
3958
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3961
if test "$GXX" = yes; then
3962
if test "$with_gnu_ld" = no; then
3963
_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'
3965
_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'
3968
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3971
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3972
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3974
linux* | k*bsd*-gnu)
3975
case $cc_basename in
3977
# Kuck and Associates, Inc. (KAI) C++ Compiler
3979
# KCC will only create a shared library if the output file
3980
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3981
# to its proper name (with version) after linking.
3982
_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'
3983
_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'
3984
# Commands to make compiler produce verbose output that lists
3985
# what "hidden" libraries, object files and flags are used when
3986
# linking a shared library.
3988
# There doesn't appear to be a way to prevent this compiler from
3989
# explicitly linking system object files so we need to strip them
3990
# from the output so that they don't get included in the library
3992
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'
3994
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3995
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3997
# Archives containing C++ object files must be created using
3998
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3999
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4004
# version 8.0 and above of icpc choke on multiply defined symbols
4005
# if we add $predep_objects and $postdep_objects, however 7.1 and
4006
# earlier do not add the objects themselves.
4007
case `$CC -V 2>&1` in
4009
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4010
_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'
4012
*) # Version 8.0 or newer
4015
ia64*) tmp_idyn=' -i_dynamic';;
4017
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4018
_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'
4021
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4022
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4023
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4024
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4027
# Portland Group C++ compiler
4028
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4029
_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'
4031
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4032
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4033
_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'
4037
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4038
_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'
4040
runpath_var=LD_RUN_PATH
4041
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4042
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4044
# Commands to make compiler produce verbose output that lists
4045
# what "hidden" libraries, object files and flags are used when
4046
# linking a shared library.
4048
# There doesn't appear to be a way to prevent this compiler from
4049
# explicitly linking system object files so we need to strip them
4050
# from the output so that they don't get included in the library
4052
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'
4055
case `$CC -V 2>&1 | sed 5q` in
4058
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4059
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4060
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
4061
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4062
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4064
# Not sure whether something based on
4065
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
4067
output_verbose_link_cmd='echo'
4069
# Archives containing C++ object files must be created using
4070
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4071
# necessary to make sure instantiated templates are included
4073
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4080
# FIXME: insert proper C++ library support
4081
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4084
# FIXME: insert proper C++ library support
4085
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4088
case $cc_basename in
4090
# FIXME: insert proper C++ library support
4091
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4094
# FIXME: insert proper C++ library support
4095
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4099
netbsd* | netbsdelf*-gnu)
4100
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4101
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4103
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4104
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4105
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4107
# Workaround some broken pre-1.5 toolchains
4108
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4111
# C++ shared libraries are fairly broken
4112
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4115
if test -f /usr/libexec/ld.so; then
4116
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
4117
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4118
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4119
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4120
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4121
_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'
4122
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4123
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4125
output_verbose_link_cmd='echo'
4127
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4131
case $cc_basename in
4133
# Kuck and Associates, Inc. (KAI) C++ Compiler
4135
# KCC will only create a shared library if the output file
4136
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4137
# to its proper name (with version) after linking.
4138
_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'
4140
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4141
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4143
# Archives containing C++ object files must be created using
4144
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
4145
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4149
# Rational C++ 2.4.1
4150
# FIXME: insert proper C++ library support
4151
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4154
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4155
_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'
4157
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4158
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4160
# Commands to make compiler produce verbose output that lists
4161
# what "hidden" libraries, object files and flags are used when
4162
# linking a shared library.
4164
# There doesn't appear to be a way to prevent this compiler from
4165
# explicitly linking system object files so we need to strip them
4166
# from the output so that they don't get included in the library
4168
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'
4171
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4172
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4173
_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'
4175
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4176
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4178
# Commands to make compiler produce verbose output that lists
4179
# what "hidden" libraries, object files and flags are used when
4180
# linking a shared library.
4181
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4184
# FIXME: insert proper C++ library support
4185
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4191
case $cc_basename in
4193
# Kuck and Associates, Inc. (KAI) C++ Compiler
4195
# KCC will only create a shared library if the output file
4196
# ends with ".so" (or ".sl" for HP-UX), so rename the library
4197
# to its proper name (with version) after linking.
4198
_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'
4200
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4201
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4203
# Archives containing C++ object files must be created using
4204
# the KAI C++ compiler.
4205
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4208
# Rational C++ 2.4.1
4209
# FIXME: insert proper C++ library support
4210
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4213
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4214
_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'
4215
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4216
echo "-hidden">> $lib.exp~
4217
$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~
4220
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4221
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4223
# Commands to make compiler produce verbose output that lists
4224
# what "hidden" libraries, object files and flags are used when
4225
# linking a shared library.
4227
# There doesn't appear to be a way to prevent this compiler from
4228
# explicitly linking system object files so we need to strip them
4229
# from the output so that they don't get included in the library
4231
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'
4234
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4235
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4236
_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'
4238
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4239
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4241
# Commands to make compiler produce verbose output that lists
4242
# what "hidden" libraries, object files and flags are used when
4243
# linking a shared library.
4244
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4247
# FIXME: insert proper C++ library support
4248
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4254
# FIXME: insert proper C++ library support
4255
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4258
case $cc_basename in
4261
# FIXME: insert proper C++ library support
4262
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4266
# FIXME: insert proper C++ library support
4267
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4270
# FIXME: insert proper C++ library support
4271
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4276
case $cc_basename in
4278
# Sun C++ 4.2, 5.x and Centerline C++
4279
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
4280
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
4281
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4282
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4283
$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'
4285
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4286
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4288
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4290
# The compiler driver will combine and reorder linker options,
4291
# but understands `-z linker_flag'.
4292
# Supported since Solaris 2.6 (maybe 2.5.1?)
4293
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
4296
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4298
output_verbose_link_cmd='echo'
4300
# Archives containing C++ object files must be created using
4301
# "CC -xar", where "CC" is the Sun C++ compiler. This is
4302
# necessary to make sure instantiated templates are included
4304
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
4307
# Green Hills C++ Compiler
4308
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4310
# The C++ compiler must be used to create the archive.
4311
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
4314
# GNU C++ compiler with Solaris linker
4315
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4316
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
4317
if $CC --version | grep -v '^2\.7' > /dev/null; then
4318
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4319
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4320
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4322
# Commands to make compiler produce verbose output that lists
4323
# what "hidden" libraries, object files and flags are used when
4324
# linking a shared library.
4325
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4327
# g++ 2.7 appears to require `-G' NOT `-shared' on this
4329
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
4330
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4331
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
4333
# Commands to make compiler produce verbose output that lists
4334
# what "hidden" libraries, object files and flags are used when
4335
# linking a shared library.
4336
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
4339
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
4341
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
4343
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
4350
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
4351
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4352
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4353
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4354
runpath_var='LD_RUN_PATH'
4356
case $cc_basename in
4358
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4359
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4362
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4363
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
4367
sysv5* | sco3.2v5* | sco5v6*)
4368
# Note: We can NOT use -z defs as we might desire, because we do not
4369
# link with -lc, and that would cause any symbols used from libc to
4370
# always be unresolved, which means just about no library would
4371
# ever link correctly. If we're not using GNU ld we use -z text
4372
# though, which does catch some bad symbols but isn't as heavy-handed
4374
# For security reasons, it is highly recommended that you always
4375
# use absolute paths for naming shared libraries, and exclude the
4376
# DT_RUNPATH tag from executables and libraries. But doing so
4377
# requires that you compile everything twice, which is a pain.
4378
# So that behaviour is only enabled if SCOABSPATH is set to a
4379
# non-empty value in the environment. Most likely only useful for
4380
# creating official distributions of packages.
4381
# This is a hack until libtool officially supports absolute path
4382
# names for shared libraries.
4383
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
4384
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
4385
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4386
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4387
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
4388
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4389
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4390
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
4391
runpath_var='LD_RUN_PATH'
4393
case $cc_basename in
4395
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4396
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4399
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4400
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4405
case $cc_basename in
4407
# NonStop-UX NCC 3.20
4408
# FIXME: insert proper C++ library support
4409
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4412
# FIXME: insert proper C++ library support
4413
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4418
# FIXME: insert proper C++ library support
4419
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4422
# FIXME: insert proper C++ library support
4423
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4426
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4427
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4429
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4430
_LT_AC_TAGVAR(LD, $1)="$LD"
4432
AC_LIBTOOL_POSTDEP_PREDEP($1)
4433
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4434
AC_LIBTOOL_PROG_CC_C_O($1)
4435
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4436
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4437
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4438
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4440
AC_LIBTOOL_CONFIG($1)
4447
with_gnu_ldcxx=$with_gnu_ld
4448
with_gnu_ld=$lt_save_with_gnu_ld
4449
lt_cv_path_LDCXX=$lt_cv_path_LD
4450
lt_cv_path_LD=$lt_save_path_LD
4451
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4452
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4453
])# AC_LIBTOOL_LANG_CXX_CONFIG
4455
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4456
# ------------------------------------
4457
# Figure out "hidden" library dependencies from verbose
4458
# compiler output when linking a shared library.
4459
# Parse the compiler output and extract the necessary
4460
# objects, libraries and library flags.
4461
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
4462
dnl we can't use the lt_simple_compile_test_code here,
4463
dnl because it contains code intended for an executable,
4464
dnl not a library. It's possible we should let each
4465
dnl tag define a new lt_????_link_test_code variable,
4466
dnl but it's only used here...
4467
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4469
void foo (void) { a = 0; }
4471
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4475
Foo (void) { a = 0; }
4480
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4488
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4491
public void bar (void) {
4497
dnl Parse the compiler output and extract the necessary
4498
dnl objects, libraries and library flags.
4499
if AC_TRY_EVAL(ac_compile); then
4500
# Parse the compiler output and extract the necessary
4501
# objects, libraries and library flags.
4503
# Sentinel used to keep track of whether or not we are before
4504
# the conftest object file.
4505
pre_test_object_deps_done=no
4507
# The `*' in the case matches for architectures that use `case' in
4508
# $output_verbose_cmd can trigger glob expansion during the loop
4509
# eval without this substitution.
4510
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4512
for p in `eval $output_verbose_link_cmd`; do
4516
# Some compilers place space between "-{L,R}" and the path.
4519
|| test $p = "-R"; then
4526
if test "$pre_test_object_deps_done" = no; then
4529
# Internal compiler library paths should come after those
4530
# provided the user. The postdeps already come after the
4531
# user supplied libs so there is no need to process them.
4532
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4533
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4535
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4538
# The "-l" case would never come before the object being
4539
# linked, so don't bother handling this case.
4542
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4543
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4545
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4551
# This assumes that the test object file only shows up
4552
# once in the compiler output.
4553
if test "$p" = "conftest.$objext"; then
4554
pre_test_object_deps_done=yes
4558
if test "$pre_test_object_deps_done" = no; then
4559
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4560
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4562
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4565
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4566
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4568
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4573
*) ;; # Ignore the rest.
4581
echo "libtool.m4: error: problem compiling $1 test program"
4584
$rm -f confest.$objext
4586
# PORTME: override above test on systems where it is broken
4590
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4591
# hack all around it, let's just trust "g++" to DTRT.
4592
_LT_AC_TAGVAR(predep_objects,$1)=
4593
_LT_AC_TAGVAR(postdep_objects,$1)=
4594
_LT_AC_TAGVAR(postdeps,$1)=
4598
case `$CC -V 2>&1 | sed 5q` in
4602
# The more standards-conforming stlport4 library is
4603
# incompatible with the Cstd library. Avoid specifying
4604
# it if it's in CXXFLAGS. Ignore libCrun as
4605
# -library=stlport4 depends on it.
4606
case " $CXX $CXXFLAGS " in
4607
*" -library=stlport4 "*)
4608
solaris_use_stlport4=yes
4611
if test "$solaris_use_stlport4" != yes; then
4612
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4619
case $cc_basename in
4621
# The more standards-conforming stlport4 library is
4622
# incompatible with the Cstd library. Avoid specifying
4623
# it if it's in CXXFLAGS. Ignore libCrun as
4624
# -library=stlport4 depends on it.
4625
case " $CXX $CXXFLAGS " in
4626
*" -library=stlport4 "*)
4627
solaris_use_stlport4=yes
4631
# Adding this requires a known-good setup of shared libraries for
4632
# Sun compiler versions before 5.6, else PIC objects from an old
4633
# archive will be linked into the output, leading to subtle bugs.
4634
if test "$solaris_use_stlport4" != yes; then
4635
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4643
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4644
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4646
])# AC_LIBTOOL_POSTDEP_PREDEP
4648
# AC_LIBTOOL_LANG_F77_CONFIG
4649
# --------------------------
4650
# Ensure that the configuration vars for the C compiler are
4651
# suitably defined. Those variables are subsequently used by
4652
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4653
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4654
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4655
[AC_REQUIRE([AC_PROG_F77])
4656
AC_LANG_PUSH(Fortran 77)
4658
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4659
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4660
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4661
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4662
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4663
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4664
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4666
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4667
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4668
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4669
_LT_AC_TAGVAR(module_cmds, $1)=
4670
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4671
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4672
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4673
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4674
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4675
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4677
# Source file extension for f77 test sources.
4680
# Object file extension for compiled f77 test sources.
4682
_LT_AC_TAGVAR(objext, $1)=$objext
4684
# Code to be used in simple compile tests
4685
lt_simple_compile_test_code="\
4691
# Code to be used in simple link tests
4692
lt_simple_link_test_code="\
4697
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4700
# save warnings/boilerplate of simple test code
4701
_LT_COMPILER_BOILERPLATE
4702
_LT_LINKER_BOILERPLATE
4704
# Allow CC to be a program name with arguments.
4708
_LT_AC_TAGVAR(compiler, $1)=$CC
4709
_LT_CC_BASENAME([$compiler])
4711
AC_MSG_CHECKING([if libtool supports shared libraries])
4712
AC_MSG_RESULT([$can_build_shared])
4714
AC_MSG_CHECKING([whether to build shared libraries])
4715
test "$can_build_shared" = "no" && enable_shared=no
4717
# On AIX, shared libraries and static libraries use the same namespace, and
4718
# are all built from PIC.
4721
test "$enable_shared" = yes && enable_static=no
4722
if test -n "$RANLIB"; then
4723
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4724
postinstall_cmds='$RANLIB $lib'
4728
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4729
test "$enable_shared" = yes && enable_static=no
4733
AC_MSG_RESULT([$enable_shared])
4735
AC_MSG_CHECKING([whether to build static libraries])
4736
# Make sure either enable_shared or enable_static is yes.
4737
test "$enable_shared" = yes || enable_static=yes
4738
AC_MSG_RESULT([$enable_static])
4740
_LT_AC_TAGVAR(GCC, $1)="$G77"
4741
_LT_AC_TAGVAR(LD, $1)="$LD"
4743
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4744
AC_LIBTOOL_PROG_CC_C_O($1)
4745
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4746
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4747
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4748
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4750
AC_LIBTOOL_CONFIG($1)
4754
])# AC_LIBTOOL_LANG_F77_CONFIG
4757
# AC_LIBTOOL_LANG_GCJ_CONFIG
4758
# --------------------------
4759
# Ensure that the configuration vars for the C compiler are
4760
# suitably defined. Those variables are subsequently used by
4761
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4762
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4763
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4766
# Source file extension for Java test sources.
4769
# Object file extension for compiled Java test sources.
4771
_LT_AC_TAGVAR(objext, $1)=$objext
4773
# Code to be used in simple compile tests
4774
lt_simple_compile_test_code="class foo {}"
4776
# Code to be used in simple link tests
4777
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4779
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4782
# save warnings/boilerplate of simple test code
4783
_LT_COMPILER_BOILERPLATE
4784
_LT_LINKER_BOILERPLATE
4786
# Allow CC to be a program name with arguments.
4790
_LT_AC_TAGVAR(compiler, $1)=$CC
4791
_LT_CC_BASENAME([$compiler])
4793
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4794
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4796
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4798
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4799
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4800
AC_LIBTOOL_PROG_CC_C_O($1)
4801
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4802
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4803
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4804
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4806
AC_LIBTOOL_CONFIG($1)
4810
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4813
# AC_LIBTOOL_LANG_RC_CONFIG
4814
# -------------------------
4815
# Ensure that the configuration vars for the Windows resource compiler are
4816
# suitably defined. Those variables are subsequently used by
4817
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4818
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4819
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4822
# Source file extension for RC test sources.
4825
# Object file extension for compiled RC test sources.
4827
_LT_AC_TAGVAR(objext, $1)=$objext
4829
# Code to be used in simple compile tests
4830
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4832
# Code to be used in simple link tests
4833
lt_simple_link_test_code="$lt_simple_compile_test_code"
4835
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4838
# save warnings/boilerplate of simple test code
4839
_LT_COMPILER_BOILERPLATE
4840
_LT_LINKER_BOILERPLATE
4842
# Allow CC to be a program name with arguments.
4846
_LT_AC_TAGVAR(compiler, $1)=$CC
4847
_LT_CC_BASENAME([$compiler])
4848
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4850
AC_LIBTOOL_CONFIG($1)
4854
])# AC_LIBTOOL_LANG_RC_CONFIG
4857
# AC_LIBTOOL_CONFIG([TAGNAME])
4858
# ----------------------------
4859
# If TAGNAME is not passed, then create an initial libtool script
4860
# with a default configuration from the untagged config vars. Otherwise
4861
# add code to config.status for appending the configuration named by
4862
# TAGNAME from the matching tagged config vars.
4863
AC_DEFUN([AC_LIBTOOL_CONFIG],
4864
[# The else clause should only fire when bootstrapping the
4865
# libtool distribution, otherwise you forgot to ship ltmain.sh
4866
# with your package, and you will get complaints that there are
4867
# no rules to generate ltmain.sh.
4868
if test -f "$ltmain"; then
4869
# See if we are running on zsh, and set the options which allow our commands through
4870
# without removal of \ escapes.
4871
if test -n "${ZSH_VERSION+set}" ; then
4872
setopt NO_GLOB_SUBST
4874
# Now quote all the things that may contain metacharacters while being
4875
# careful not to overquote the AC_SUBSTed values. We take copies of the
4876
# variables and quote the copies for generation of the libtool script.
4877
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4879
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4880
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4881
deplibs_check_method reload_flag reload_cmds need_locks \
4882
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4883
lt_cv_sys_global_symbol_to_c_name_address \
4884
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4885
old_postinstall_cmds old_postuninstall_cmds \
4886
_LT_AC_TAGVAR(compiler, $1) \
4887
_LT_AC_TAGVAR(CC, $1) \
4888
_LT_AC_TAGVAR(LD, $1) \
4889
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4890
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4891
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4892
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4893
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4894
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4895
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4896
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4897
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4898
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4899
_LT_AC_TAGVAR(predep_objects, $1) \
4900
_LT_AC_TAGVAR(postdep_objects, $1) \
4901
_LT_AC_TAGVAR(predeps, $1) \
4902
_LT_AC_TAGVAR(postdeps, $1) \
4903
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4904
_LT_AC_TAGVAR(archive_cmds, $1) \
4905
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4906
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4907
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4908
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4909
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4910
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4911
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4912
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4913
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4914
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4915
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4916
_LT_AC_TAGVAR(module_cmds, $1) \
4917
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4918
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4919
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4920
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4921
_LT_AC_TAGVAR(include_expsyms, $1); do
4924
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4925
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4926
_LT_AC_TAGVAR(archive_cmds, $1) | \
4927
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4928
_LT_AC_TAGVAR(module_cmds, $1) | \
4929
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4930
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4931
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4932
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4933
postinstall_cmds | postuninstall_cmds | \
4934
old_postinstall_cmds | old_postuninstall_cmds | \
4935
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4936
# Double-quote double-evaled strings.
4937
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4940
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4946
*'\[$]0 --fallback-echo"')
4947
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4952
[cfgfile="${ofile}T"
4953
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4955
AC_MSG_NOTICE([creating $ofile])],
4958
cat <<__EOF__ >> "$cfgfile"
4962
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4963
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4964
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4966
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
4967
# Free Software Foundation, Inc.
4969
# This file is part of GNU Libtool:
4970
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4972
# This program is free software; you can redistribute it and/or modify
4973
# it under the terms of the GNU General Public License as published by
4974
# the Free Software Foundation; either version 2 of the License, or
4975
# (at your option) any later version.
4977
# This program is distributed in the hope that it will be useful, but
4978
# WITHOUT ANY WARRANTY; without even the implied warranty of
4979
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4980
# General Public License for more details.
4982
# You should have received a copy of the GNU General Public License
4983
# along with this program; if not, write to the Free Software
4984
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4986
# As a special exception to the GNU General Public License, if you
4987
# distribute this file as part of a program that contains a
4988
# configuration script generated by Autoconf, you may include it under
4989
# the same distribution terms that you use for the rest of that program.
4991
# A sed program that does not truncate output.
4994
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4995
Xsed="$SED -e 1s/^X//"
4997
# The HP-UX ksh and POSIX shell print the target directory to stdout
4999
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5001
# The names of the tagged configurations supported by this script.
5004
# ### BEGIN LIBTOOL CONFIG],
5005
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5007
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5009
# Shell to use when invoking shell scripts.
5012
# Whether or not to build shared libraries.
5013
build_libtool_libs=$enable_shared
5015
# Whether or not to build static libraries.
5016
build_old_libs=$enable_static
5018
# Whether or not to add -lc for building shared libraries.
5019
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5021
# Whether or not to disallow shared libs when runtime libs are static
5022
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5024
# Whether or not to optimize for fast installation.
5025
fast_install=$enable_fast_install
5028
host_alias=$host_alias
5033
build_alias=$build_alias
5037
# An echo program that does not interpret backslashes.
5042
AR_FLAGS=$lt_AR_FLAGS
5047
# LTCC compiler flags.
5048
LTCFLAGS=$lt_LTCFLAGS
5050
# A language-specific compiler.
5051
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5053
# Is the compiler the GNU C compiler?
5054
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5059
# The linker used to build libraries.
5060
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5062
# Whether we need hard or soft links.
5065
# A BSD-compatible nm program.
5068
# A symbol stripping program
5071
# Used to examine libraries when file_magic_cmd begins "file"
5072
MAGIC_CMD=$MAGIC_CMD
5074
# Used on cygwin: DLL creation program.
5077
# Used on cygwin: object dumper.
5080
# Used on cygwin: assembler.
5083
# The name of the directory that contains temporary libtool files.
5086
# How to create reloadable object files.
5087
reload_flag=$lt_reload_flag
5088
reload_cmds=$lt_reload_cmds
5090
# How to pass a linker flag through the compiler.
5091
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5093
# Object file suffix (normally "o").
5096
# Old archive suffix (normally "a").
5099
# Shared library suffix (normally ".so").
5100
shrext_cmds='$shrext_cmds'
5102
# Executable file suffix (normally "").
5105
# Additional compiler flags for building library objects.
5106
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5109
# What is the maximum length of a command?
5110
max_cmd_len=$lt_cv_sys_max_cmd_len
5112
# Does compiler simultaneously support -c and -o options?
5113
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5115
# Must we lock files when doing compilation?
5116
need_locks=$lt_need_locks
5118
# Do we need the lib prefix for modules?
5119
need_lib_prefix=$need_lib_prefix
5121
# Do we need a version for libraries?
5122
need_version=$need_version
5124
# Whether dlopen is supported.
5125
dlopen_support=$enable_dlopen
5127
# Whether dlopen of programs is supported.
5128
dlopen_self=$enable_dlopen_self
5130
# Whether dlopen of statically linked programs is supported.
5131
dlopen_self_static=$enable_dlopen_self_static
5133
# Compiler flag to prevent dynamic linking.
5134
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5136
# Compiler flag to turn off builtin functions.
5137
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5139
# Compiler flag to allow reflexive dlopens.
5140
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5142
# Compiler flag to generate shared objects directly from archives.
5143
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5145
# Compiler flag to generate thread-safe objects.
5146
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5148
# Library versioning type.
5149
version_type=$version_type
5151
# Format of library name prefix.
5152
libname_spec=$lt_libname_spec
5154
# List of archive names. First name is the real one, the rest are links.
5155
# The last name is the one that the linker finds with -lNAME.
5156
library_names_spec=$lt_library_names_spec
5158
# The coded name of the library, if different from the real name.
5159
soname_spec=$lt_soname_spec
5161
# Commands used to build and install an old-style archive.
5163
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5164
old_postinstall_cmds=$lt_old_postinstall_cmds
5165
old_postuninstall_cmds=$lt_old_postuninstall_cmds
5167
# Create an old-style archive from a shared archive.
5168
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5170
# Create a temporary old-style archive to link instead of a shared archive.
5171
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5173
# Commands used to build and install a shared archive.
5174
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5175
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5176
postinstall_cmds=$lt_postinstall_cmds
5177
postuninstall_cmds=$lt_postuninstall_cmds
5179
# Commands used to build a loadable module (assumed same as above if empty)
5180
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5181
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5183
# Commands to strip libraries.
5184
old_striplib=$lt_old_striplib
5185
striplib=$lt_striplib
5187
# Dependencies to place before the objects being linked to create a
5189
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5191
# Dependencies to place after the objects being linked to create a
5193
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5195
# Dependencies to place before the objects being linked to create a
5197
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5199
# Dependencies to place after the objects being linked to create a
5201
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5203
# The library search path used internally by the compiler when linking
5205
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5207
# Method to check whether dependent libraries are shared objects.
5208
deplibs_check_method=$lt_deplibs_check_method
5210
# Command to use when deplibs_check_method == file_magic.
5211
file_magic_cmd=$lt_file_magic_cmd
5213
# Flag that allows shared libraries with undefined symbols to be built.
5214
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5216
# Flag that forces no undefined symbols.
5217
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5219
# Commands used to finish a libtool library installation in a directory.
5220
finish_cmds=$lt_finish_cmds
5222
# Same as above, but a single script fragment to be evaled but not shown.
5223
finish_eval=$lt_finish_eval
5225
# Take the output of nm and produce a listing of raw symbols and C names.
5226
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5228
# Transform the output of nm in a proper C declaration
5229
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5231
# Transform the output of nm in a C name address pair
5232
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5234
# This is the shared library runtime path variable.
5235
runpath_var=$runpath_var
5237
# This is the shared library path variable.
5238
shlibpath_var=$shlibpath_var
5240
# Is shlibpath searched before the hard-coded library search path?
5241
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5243
# How to hardcode a shared library path into an executable.
5244
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5246
# Whether we should hardcode library paths into libraries.
5247
hardcode_into_libs=$hardcode_into_libs
5249
# Flag to hardcode \$libdir into a binary during linking.
5250
# This must work even if \$libdir does not exist.
5251
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5253
# If ld is used when linking, flag to hardcode \$libdir into
5254
# a binary during linking. This must work even if \$libdir does
5256
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5258
# Whether we need a single -rpath flag with a separated argument.
5259
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5261
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5263
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5265
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5267
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5269
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5270
# the resulting binary.
5271
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5273
# Set to yes if building a shared library automatically hardcodes DIR into the library
5274
# and all subsequent libraries and executables linked against it.
5275
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5277
# Variables whose values should be saved in libtool wrapper scripts and
5278
# restored at relink time.
5279
variables_saved_for_relink="$variables_saved_for_relink"
5281
# Whether libtool must link a program against all its dependency libraries.
5282
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5284
# Compile-time system search path for libraries
5285
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5287
# Run-time system search path for libraries
5288
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5290
# Fix the shell variable \$srcfile for the compiler.
5291
fix_srcfile_path=$lt_fix_srcfile_path
5293
# Set to yes if exported symbols are required.
5294
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5296
# The commands to list exported symbols.
5297
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5299
# The commands to extract the exported symbol list from a shared archive.
5300
extract_expsyms_cmds=$lt_extract_expsyms_cmds
5302
# Symbols that should not be listed in the preloaded symbols.
5303
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5305
# Symbols that must always be exported.
5306
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5309
[# ### END LIBTOOL CONFIG],
5310
[# ### END LIBTOOL TAG CONFIG: $tagname])
5317
cat <<\EOF >> "$cfgfile"
5319
# AIX sometimes has problems with the GCC collect2 program. For some
5320
# reason, if we set the COLLECT_NAMES environment variable, the problems
5321
# vanish in a puff of smoke.
5322
if test "X${COLLECT_NAMES+set}" != Xset; then
5324
export COLLECT_NAMES
5330
# We use sed instead of cat because bash on DJGPP gets confused if
5331
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5332
# text mode, it properly converts lines to CR/LF. This bash problem
5333
# is reportedly fixed, but why not run on old versions too?
5334
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
5336
mv -f "$cfgfile" "$ofile" || \
5337
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
5341
# If there is no Makefile yet, we rely on a make rule to execute
5342
# `config.status --recheck' to rerun these tests and create the
5343
# libtool script then.
5344
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
5345
if test -f "$ltmain_in"; then
5346
test -f Makefile && make "$ltmain"
5349
])# AC_LIBTOOL_CONFIG
5352
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
5353
# -------------------------------------------
5354
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
5355
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
5357
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
5359
if test "$GCC" = yes; then
5360
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
5362
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
5363
lt_cv_prog_compiler_rtti_exceptions,
5364
[-fno-rtti -fno-exceptions], [],
5365
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
5367
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
5370
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5371
# ---------------------------------
5372
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
5373
[AC_REQUIRE([AC_CANONICAL_HOST])
5374
AC_REQUIRE([LT_AC_PROG_SED])
5375
AC_REQUIRE([AC_PROG_NM])
5376
AC_REQUIRE([AC_OBJEXT])
5377
# Check for command to grab the raw symbol name followed by C symbol from nm.
5378
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
5379
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5381
# These are sane defaults that work on at least a few old systems.
5382
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5384
# Character class describing NM global symbol codes.
5385
symcode='[[BCDEGRST]]'
5387
# Regexp to match symbols that can be accessed directly from C.
5388
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
5390
# Transform an extracted symbol line into a proper C declaration
5391
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5393
# Transform an extracted symbol line into symbol name and symbol address
5394
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'"
5396
# Define system-specific variables.
5401
cygwin* | mingw* | pw32*)
5402
symcode='[[ABCDGISTW]]'
5404
hpux*) # Its linker distinguishes data from code symbols
5405
if test "$host_cpu" = ia64; then
5406
symcode='[[ABCDEGRST]]'
5408
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5409
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'"
5411
linux* | k*bsd*-gnu)
5412
if test "$host_cpu" = ia64; then
5413
symcode='[[ABCDGIRSTW]]'
5414
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5415
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'"
5419
symcode='[[BCDEGRST]]'
5422
symcode='[[BCDEGQRST]]'
5433
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5437
symcode='[[DFNSTU]]'
5441
# Handle CRLF in mingw tool chain
5445
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5449
# If we're using GNU nm, then use its standard symbol codes.
5450
case `$NM -V 2>&1` in
5451
*GNU* | *'with BFD'*)
5452
symcode='[[ABCDGIRSTW]]' ;;
5455
# Try without a prefix undercore, then with it.
5456
for ac_symprfx in "" "_"; do
5458
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5459
symxfrm="\\1 $ac_symprfx\\2 \\2"
5461
# Write the raw and C identifiers.
5462
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5464
# Check to see that the pipe works correctly.
5468
cat > conftest.$ac_ext <<EOF
5473
void nm_test_func(){}
5477
int main(){nm_test_var='a';nm_test_func();return(0);}
5480
if AC_TRY_EVAL(ac_compile); then
5481
# Now try to grab the symbols.
5483
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
5484
# Try sorting and uniquifying the output.
5485
if sort "$nlist" | uniq > "$nlist"T; then
5486
mv -f "$nlist"T "$nlist"
5491
# Make sure that we snagged all the symbols we need.
5492
if grep ' nm_test_var$' "$nlist" >/dev/null; then
5493
if grep ' nm_test_func$' "$nlist" >/dev/null; then
5494
cat <<EOF > conftest.$ac_ext
5500
# Now generate the symbol file.
5501
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5503
cat <<EOF >> conftest.$ac_ext
5504
#if defined (__STDC__) && __STDC__
5505
# define lt_ptr_t void *
5507
# define lt_ptr_t char *
5511
/* The mapping between symbol names and symbols. */
5516
lt_preloaded_symbols[[]] =
5519
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5520
cat <<\EOF >> conftest.$ac_ext
5528
# Now try linking the two files.
5529
mv conftest.$ac_objext conftstm.$ac_objext
5530
lt_save_LIBS="$LIBS"
5531
lt_save_CFLAGS="$CFLAGS"
5532
LIBS="conftstm.$ac_objext"
5533
CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
5534
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
5537
LIBS="$lt_save_LIBS"
5538
CFLAGS="$lt_save_CFLAGS"
5540
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
5543
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
5546
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
5549
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
5550
cat conftest.$ac_ext >&5
5552
rm -f conftest* conftst*
5554
# Do not use the global_symbol_pipe unless it works.
5555
if test "$pipe_works" = yes; then
5558
lt_cv_sys_global_symbol_pipe=
5562
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5563
lt_cv_sys_global_symbol_to_cdecl=
5565
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5566
AC_MSG_RESULT(failed)
5570
]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
5573
# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
5574
# ---------------------------------------
5575
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
5576
[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
5577
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5578
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
5580
AC_MSG_CHECKING([for $compiler option to produce PIC])
5582
# C++ specific cases for pic, static, wl, etc.
5583
if test "$GXX" = yes; then
5584
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5585
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5589
# All AIX code is PIC.
5590
if test "$host_cpu" = ia64; then
5591
# AIX 5 now supports IA64 processor
5592
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5596
# FIXME: we need at least 68020 code to build shared libraries, but
5597
# adding the `-m68020' flag to GCC prevents building anything better,
5599
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5601
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5602
# PIC is the default for these OSes.
5604
mingw* | cygwin* | os2* | pw32*)
5605
# This hack is so that the source file can tell whether it is being
5606
# built for inclusion in a dll (and should export symbols for example).
5607
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5608
# (--disable-auto-import) libraries
5609
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5611
darwin* | rhapsody*)
5612
# PIC is the default on this platform
5613
# Common symbols not allowed in MH_DYLIB files
5614
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5617
# DJGPP does not support shared libraries at all
5618
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5621
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5622
# Instead, we relocate shared libraries at runtime.
5625
if test -d /usr/nec; then
5626
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5630
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5636
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5641
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5647
# All AIX code is PIC.
5648
if test "$host_cpu" = ia64; then
5649
# AIX 5 now supports IA64 processor
5650
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5652
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5656
case $cc_basename in
5658
# Green Hills C++ Compiler
5659
# _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"
5664
# PIC is the default on this platform
5665
# Common symbols not allowed in MH_DYLIB files
5666
case $cc_basename in
5668
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5669
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5674
case $cc_basename in
5676
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5679
# Green Hills C++ Compiler
5680
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5686
freebsd* | dragonfly*)
5687
# FreeBSD uses GNU C++
5689
hpux9* | hpux10* | hpux11*)
5690
case $cc_basename in
5692
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5693
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5694
if test "$host_cpu" != ia64; then
5695
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5699
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5700
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5706
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5715
# This is c89, which is MS Visual C++ (no shared libs)
5716
# Anyone wants to do a port?
5718
irix5* | irix6* | nonstopux*)
5719
case $cc_basename in
5721
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5722
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5723
# CC pic flag -KPIC is the default.
5729
linux* | k*bsd*-gnu)
5730
case $cc_basename in
5733
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5734
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5738
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5739
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5740
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5743
# Portland Group C++ compiler.
5744
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5745
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5746
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5750
# Make sure the PIC flag is empty. It appears that all Alpha
5751
# Linux and Compaq Tru64 Unix objects are PIC.
5752
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5753
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5756
case `$CC -V 2>&1 | sed 5q` in
5759
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5760
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5761
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5772
case $cc_basename in
5774
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
5780
netbsd* | netbsdelf*-gnu)
5782
osf3* | osf4* | osf5*)
5783
case $cc_basename in
5785
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
5788
# Rational C++ 2.4.1
5789
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5792
# Digital/Compaq C++
5793
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5794
# Make sure the PIC flag is empty. It appears that all Alpha
5795
# Linux and Compaq Tru64 Unix objects are PIC.
5796
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5797
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5806
case $cc_basename in
5808
# Sun C++ 4.2, 5.x and Centerline C++
5809
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5810
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5811
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5814
# Green Hills C++ Compiler
5815
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5822
case $cc_basename in
5825
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5826
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5830
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5837
case $cc_basename in
5839
# NonStop-UX NCC 3.20
5840
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5846
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5847
case $cc_basename in
5849
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5850
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5851
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5858
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5864
if test "$GCC" = yes; then
5865
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5866
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5870
# All AIX code is PIC.
5871
if test "$host_cpu" = ia64; then
5872
# AIX 5 now supports IA64 processor
5873
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5878
# FIXME: we need at least 68020 code to build shared libraries, but
5879
# adding the `-m68020' flag to GCC prevents building anything better,
5881
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5884
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5885
# PIC is the default for these OSes.
5888
mingw* | cygwin* | pw32* | os2*)
5889
# This hack is so that the source file can tell whether it is being
5890
# built for inclusion in a dll (and should export symbols for example).
5891
# Although the cygwin gcc ignores -fPIC, still need this for old-style
5892
# (--disable-auto-import) libraries
5893
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5896
darwin* | rhapsody*)
5897
# PIC is the default on this platform
5898
# Common symbols not allowed in MH_DYLIB files
5899
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5903
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
5904
# Instead, we relocate shared libraries at runtime.
5908
# Just because we use GCC doesn't mean we suddenly get shared libraries
5909
# on systems that don't support them.
5910
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5915
if test -d /usr/nec; then
5916
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5921
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5928
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5934
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5938
# PORTME Check for flag to pass linker flags through the system compiler.
5941
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5942
if test "$host_cpu" = ia64; then
5943
# AIX 5 now supports IA64 processor
5944
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5946
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5950
# PIC is the default on this platform
5951
# Common symbols not allowed in MH_DYLIB files
5952
case $cc_basename in
5954
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5955
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5960
mingw* | cygwin* | pw32* | os2*)
5961
# This hack is so that the source file can tell whether it is being
5962
# built for inclusion in a dll (and should export symbols for example).
5963
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5966
hpux9* | hpux10* | hpux11*)
5967
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5968
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5975
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5978
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5979
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5982
irix5* | irix6* | nonstopux*)
5983
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5984
# PIC (with -KPIC) is the default.
5985
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5989
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5990
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5993
linux* | k*bsd*-gnu)
5994
case $cc_basename in
5996
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5997
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5998
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6000
pgcc* | pgf77* | pgf90* | pgf95*)
6001
# Portland Group compilers (*not* the Pentium gcc compiler,
6002
# which looks to be a dead project)
6003
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6004
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6005
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6008
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6009
# All Alpha code is PIC.
6010
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6013
case `$CC -V 2>&1 | sed 5q` in
6016
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6017
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6018
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6021
# Sun Fortran 8.3 passes all unrecognized flags to the linker
6022
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6023
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6024
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
6031
osf3* | osf4* | osf5*)
6032
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6033
# All OSF/1 code is PIC.
6034
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6038
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6042
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6043
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6044
case $cc_basename in
6046
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6048
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6053
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6054
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6055
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6058
sysv4 | sysv4.2uw2* | sysv4.3*)
6059
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6060
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6061
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6065
if test -d /usr/nec ;then
6066
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6067
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6071
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6072
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6073
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6074
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6078
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6079
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6083
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6084
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6088
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6093
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6096
# Check to make sure the PIC flag actually works.
6098
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6099
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6100
_LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6101
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6102
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6104
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6106
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6107
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6110
# For platforms which do not support PIC, -DPIC is meaningless:
6112
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6115
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6120
# Check to make sure the static flag actually works.
6122
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6123
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6124
_LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6125
$lt_tmp_static_flag,
6127
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6131
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6132
# ------------------------------------
6133
# See if the linker supports building shared libraries.
6134
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6135
[AC_REQUIRE([LT_AC_PROG_SED])dnl
6136
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6138
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6141
# If we're using GNU nm, then we don't want the "-C" option.
6142
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6143
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6144
_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'
6146
_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'
6150
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6153
_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'
6155
linux* | k*bsd*-gnu)
6156
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6159
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6164
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6165
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6166
_LT_AC_TAGVAR(archive_cmds, $1)=
6167
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6168
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6169
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6170
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6171
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6172
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6173
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6174
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6175
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6176
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6177
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6178
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6179
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6180
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
6181
_LT_AC_TAGVAR(module_cmds, $1)=
6182
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
6183
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6184
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6185
# include_expsyms should be a list of space-separated symbols to be *always*
6186
# included in the symbol list
6187
_LT_AC_TAGVAR(include_expsyms, $1)=
6188
# exclude_expsyms can be an extended regexp of symbols to exclude
6189
# it will be wrapped by ` (' and `)$', so one must not match beginning or
6190
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6191
# as well as any symbol that contains `d'.
6192
_LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6193
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6194
# platforms (ab)use it in PIC code, but their linkers get confused if
6195
# the symbol is explicitly referenced. Since portable code cannot
6196
# rely on this symbol name, it's probably fine to never include it in
6197
# preloaded symbol tables.
6198
extract_expsyms_cmds=
6199
# Just being paranoid about ensuring that cc_basename is set.
6200
_LT_CC_BASENAME([$compiler])
6202
cygwin* | mingw* | pw32*)
6203
# FIXME: the MSVC++ port hasn't been tested in a loooong time
6204
# When not using gcc, we currently assume that we are using
6205
# Microsoft Visual C++.
6206
if test "$GCC" != yes; then
6211
# we just hope/assume this is gcc and not c89 (= MSVC++)
6219
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6220
if test "$with_gnu_ld" = yes; then
6221
# If archive_cmds runs LD, not CC, wlarc should be empty
6224
# Set some defaults for GNU ld with shared library support. These
6225
# are reset later if shared libraries are not supported. Putting them
6226
# here allows them to be overridden if necessary.
6227
runpath_var=LD_RUN_PATH
6228
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6229
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6230
# ancient GNU ld didn't support --whole-archive et. al.
6231
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6232
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6234
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6236
supports_anon_versioning=no
6237
case `$LD -v 2>/dev/null` in
6238
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6239
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6240
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6241
*\ 2.11.*) ;; # other 2.11 versions
6242
*) supports_anon_versioning=yes ;;
6245
# See if GNU ld supports shared libraries.
6247
aix3* | aix4* | aix5*)
6248
# On AIX/PPC, the GNU linker is very broken
6249
if test "$host_cpu" != ia64; then
6250
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6253
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6254
*** to be unable to reliably create shared libraries on AIX.
6255
*** Therefore, libtool is disabling shared libraries support. If you
6256
*** really care for shared libraries, you may want to modify your PATH
6257
*** so that a non-GNU linker is found, and then restart.
6264
_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)'
6265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6266
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6268
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6269
# that the semantics of dynamic libraries on AmigaOS, at least up
6270
# to version 4, is to share data among multiple programs linked
6271
# with the same dynamic library. Since this doesn't match the
6272
# behavior of shared libraries on other platforms, we can't use
6274
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6278
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6279
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6280
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6281
# support --undefined. This deserves some investigation. FIXME
6282
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6284
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6288
cygwin* | mingw* | pw32*)
6289
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6290
# as there is no search path for DLLs.
6291
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6292
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6293
_LT_AC_TAGVAR(always_export_symbols, $1)=no
6294
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6295
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
6297
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6298
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6299
# If the export-symbols file already is a .def file (1st line
6300
# is EXPORTS), use it as is; otherwise, prepend...
6301
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6302
cp $export_symbols $output_objdir/$soname.def;
6304
echo EXPORTS > $output_objdir/$soname.def;
6305
cat $export_symbols >> $output_objdir/$soname.def;
6307
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6309
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6314
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6315
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6316
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6317
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6318
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6319
# Instead, shared libraries are loaded at an image base (0x10000000 by
6320
# default) and relocated if they conflict, which is a slow very memory
6321
# consuming and fragmenting process. To avoid this, we pick a random,
6322
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6323
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6324
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6325
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6328
gnu* | linux* | k*bsd*-gnu)
6329
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6331
case $cc_basename,$host_cpu in
6332
pgcc*) # Portland Group C compiler
6333
_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'
6334
tmp_addflag=' $pic_flag'
6336
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6337
_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'
6338
tmp_addflag=' $pic_flag -Mnomain' ;;
6339
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6340
tmp_addflag=' -i_dynamic' ;;
6341
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6342
tmp_addflag=' -i_dynamic -nofor_main' ;;
6343
ifc* | ifort*) # Intel Fortran compiler
6344
tmp_addflag=' -nofor_main' ;;
6346
case `$CC -V 2>&1 | sed 5q` in
6347
*Sun\ C*) # Sun C 5.9
6348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6349
tmp_sharedflag='-G' ;;
6350
*Sun\ F*) # Sun Fortran 8.3
6351
tmp_sharedflag='-G' ;;
6353
tmp_sharedflag='-shared' ;;
6355
_LT_AC_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6357
if test $supports_anon_versioning = yes; then
6358
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
6359
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6360
$echo "local: *; };" >> $output_objdir/$libname.ver~
6361
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6363
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
6365
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6369
netbsd* | netbsdelf*-gnu)
6370
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6371
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6374
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6375
_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'
6380
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6381
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6384
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6385
*** create shared libraries on Solaris systems. Therefore, libtool
6386
*** is disabling shared libraries support. We urge you to upgrade GNU
6387
*** binutils to release 2.9.1 or newer. Another option is to modify
6388
*** your PATH or compiler configuration so that the native linker is
6389
*** used, and then restart.
6392
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6393
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6394
_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'
6396
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6400
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6401
case `$LD -v 2>&1` in
6402
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
6403
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6406
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6407
*** reliably create shared libraries on SCO systems. Therefore, libtool
6408
*** is disabling shared libraries support. We urge you to upgrade GNU
6409
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6410
*** your PATH or compiler configuration so that the native linker is
6411
*** used, and then restart.
6416
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6417
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6418
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6419
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6421
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6428
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6430
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6431
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6435
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6437
_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'
6439
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6444
if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
6446
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6447
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6448
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6451
# PORTME fill in a description of your system's linker (not GNU ld)
6454
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6455
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6456
_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'
6457
# Note: this linker hardcodes the directories in LIBPATH if there
6458
# are no directories specified by -L.
6459
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6460
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
6461
# Neither direct hardcoding nor static linking is supported with a
6463
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6468
if test "$host_cpu" = ia64; then
6469
# On IA64, the linker does run time linking by default, so we don't
6470
# have to do anything special.
6471
aix_use_runtimelinking=no
6472
exp_sym_flag='-Bexport'
6475
# If we're using GNU nm, then we don't want the "-C" option.
6476
# -C means demangle to AIX nm, but means don't demangle with GNU nm
6477
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6478
_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'
6480
_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'
6482
aix_use_runtimelinking=no
6484
# Test if we are trying to use run time linking or normal
6485
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6486
# need to do runtime linking.
6487
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
6488
for ld_flag in $LDFLAGS; do
6489
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6490
aix_use_runtimelinking=yes
6497
exp_sym_flag='-bexport'
6498
no_entry_flag='-bnoentry'
6501
# When large executables or shared objects are built, AIX ld can
6502
# have problems creating the table of contents. If linking a library
6503
# or program results in "error TOC overflow" add -mminimal-toc to
6504
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6505
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6507
_LT_AC_TAGVAR(archive_cmds, $1)=''
6508
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6509
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6510
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6512
if test "$GCC" = yes; then
6513
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6514
# We only want to do this on AIX 4.2 and lower, the check
6515
# below for broken collect2 doesn't work under 4.3+
6516
collect2name=`${CC} -print-prog-name=collect2`
6517
if test -f "$collect2name" && \
6518
strings "$collect2name" | grep resolve_lib_name >/dev/null
6520
# We have reworked collect2
6523
# We have old collect2
6524
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
6525
# It fails to find uninstalled libraries when the uninstalled
6526
# path is not listed in the libpath. Setting hardcode_minus_L
6527
# to unsupported forces relinking
6528
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6529
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6530
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6534
shared_flag='-shared'
6535
if test "$aix_use_runtimelinking" = yes; then
6536
shared_flag="$shared_flag "'${wl}-G'
6540
if test "$host_cpu" = ia64; then
6541
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6542
# chokes on -Wl,-G. The following line is correct:
6545
if test "$aix_use_runtimelinking" = yes; then
6546
shared_flag='${wl}-G'
6548
shared_flag='${wl}-bM:SRE'
6553
# It seems that -bexpall does not export symbols beginning with
6554
# underscore (_), so it is better to generate a list of symbols to export.
6555
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
6556
if test "$aix_use_runtimelinking" = yes; then
6557
# Warning - without using the other runtime loading flags (-brtl),
6558
# -berok will link without error, but may produce a broken library.
6559
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
6560
# Determine the default libpath from the value encoded in an empty executable.
6561
_LT_AC_SYS_LIBPATH_AIX
6562
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6563
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6565
if test "$host_cpu" = ia64; then
6566
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6567
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6568
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
6570
# Determine the default libpath from the value encoded in an empty executable.
6571
_LT_AC_SYS_LIBPATH_AIX
6572
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6573
# Warning - without using the other run time loading flags,
6574
# -berok will link without error, but may produce a broken library.
6575
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6576
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6577
# Exported symbols can be pulled into shared objects from archives
6578
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6579
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6580
# This is similar to how AIX traditionally builds its shared libraries.
6581
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6587
_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)'
6588
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6589
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6590
# see comment about different semantics on the GNU ld section
6591
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6595
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
6598
cygwin* | mingw* | pw32*)
6599
# When not using gcc, we currently assume that we are using
6600
# Microsoft Visual C++.
6601
# hardcode_libdir_flag_spec is actually meaningless, as there is
6602
# no search path for DLLs.
6603
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6604
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6605
# Tell ltmain to make .lib files, not .a files.
6607
# Tell ltmain to make .dll files, not .so files.
6609
# FIXME: Setting linknames here is a bad hack.
6610
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6611
# The linker will automatically build a .lib file if we build a DLL.
6612
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
6613
# FIXME: Should let the user specify the lib program.
6614
_LT_AC_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
6615
_LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
6616
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6619
darwin* | rhapsody*)
6621
rhapsody* | darwin1.[[012]])
6622
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
6625
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6626
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6628
case ${MACOSX_DEPLOYMENT_TARGET} in
6630
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6633
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
6639
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6640
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6641
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
6642
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6643
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
6644
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6645
if test "$GCC" = yes ; then
6646
output_verbose_link_cmd='echo'
6647
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6648
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6649
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6650
_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}'
6651
_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}'
6653
case $cc_basename in
6655
output_verbose_link_cmd='echo'
6656
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
6657
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6658
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
6659
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6660
_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}'
6663
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6670
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6671
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6672
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6676
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6679
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6680
# support. Future versions do this automatically, but an explicit c++rt0.o
6681
# does not break anything, and helps significantly (at the cost of a little
6684
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6685
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6686
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6687
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6690
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6692
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6693
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6694
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6695
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6698
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6699
freebsd* | dragonfly*)
6700
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6701
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6702
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6703
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6707
if test "$GCC" = yes; then
6708
_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'
6710
_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'
6712
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6713
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6714
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6716
# hardcode_minus_L: Not really in the search PATH,
6717
# but as the default location of the library.
6718
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6719
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6723
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6724
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6726
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6728
if test "$with_gnu_ld" = no; then
6729
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6730
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6732
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6733
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6735
# hardcode_minus_L: Not really in the search PATH,
6736
# but as the default location of the library.
6737
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6742
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6745
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6748
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6751
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6757
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6760
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
6763
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6767
if test "$with_gnu_ld" = no; then
6768
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6769
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6773
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
6774
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6775
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6778
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6779
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6781
# hardcode_minus_L: Not really in the search PATH,
6782
# but as the default location of the library.
6783
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6789
irix5* | irix6* | nonstopux*)
6790
if test "$GCC" = yes; then
6791
_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'
6793
_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'
6794
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
6796
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6797
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6798
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6801
netbsd* | netbsdelf*-gnu)
6802
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6803
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6805
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6807
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6808
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6809
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6813
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6814
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6815
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6816
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6817
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6821
if test -f /usr/libexec/ld.so; then
6822
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6823
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6824
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6825
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6826
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6827
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6828
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6831
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6832
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6833
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6836
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6837
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6842
_LT_AC_TAGVAR(ld_shlibs, $1)=no
6847
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6848
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6849
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6850
_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'
6851
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6855
if test "$GCC" = yes; then
6856
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6857
_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'
6859
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6860
_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'
6862
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6863
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6866
osf4* | osf5*) # as osf3* with the addition of -msym flag
6867
if test "$GCC" = yes; then
6868
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6869
_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'
6870
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6872
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6873
_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'
6874
_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~
6875
$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'
6877
# Both c and cxx compiler support -rpath directly
6878
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6880
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6884
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6885
if test "$GCC" = yes; then
6887
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6888
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6889
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6892
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6893
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6894
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6896
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6897
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6899
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6901
# The compiler driver will combine and reorder linker options,
6902
# but understands `-z linker_flag'. GCC discards it without `$wl',
6903
# but is careful enough not to reorder.
6904
# Supported since Solaris 2.6 (maybe 2.5.1?)
6905
if test "$GCC" = yes; then
6906
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6908
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6912
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6916
if test "x$host_vendor" = xsequent; then
6917
# Use $CC to link under sequent, because it throws in some extra .o
6918
# files that make .init and .fini sections work.
6919
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6921
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6923
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6924
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6925
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6926
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6930
case $host_vendor in
6932
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6933
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6936
## LD is ld it makes a PLAMLIB
6937
## CC just makes a GrossModule.
6938
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6939
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6940
_LT_AC_TAGVAR(hardcode_direct, $1)=no
6943
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6944
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6947
runpath_var='LD_RUN_PATH'
6948
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6952
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6953
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6954
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6958
if test -d /usr/nec; then
6959
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6960
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6961
runpath_var=LD_RUN_PATH
6962
hardcode_runpath_var=yes
6963
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
6967
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6968
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6969
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6970
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6971
runpath_var='LD_RUN_PATH'
6973
if test "$GCC" = yes; then
6974
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6975
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6977
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6978
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6982
sysv5* | sco3.2v5* | sco5v6*)
6983
# Note: We can NOT use -z defs as we might desire, because we do not
6984
# link with -lc, and that would cause any symbols used from libc to
6985
# always be unresolved, which means just about no library would
6986
# ever link correctly. If we're not using GNU ld we use -z text
6987
# though, which does catch some bad symbols but isn't as heavy-handed
6989
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6990
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6991
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6992
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6993
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6994
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6995
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6996
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6997
runpath_var='LD_RUN_PATH'
6999
if test "$GCC" = yes; then
7000
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7001
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7003
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7004
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7009
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7010
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7011
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7015
_LT_AC_TAGVAR(ld_shlibs, $1)=no
7020
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7021
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7024
# Do we need to explicitly link libc?
7026
case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7028
# Assume -lc should be added
7029
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7031
if test "$enable_shared" = yes && test "$GCC" = yes; then
7032
case $_LT_AC_TAGVAR(archive_cmds, $1) in
7034
# FIXME: we may have to deal with multi-command sequences.
7037
# Test whether the compiler implicitly links with -lc since on some
7038
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7039
# to ld, don't add -lc before -lgcc.
7040
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7042
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7044
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7047
libobjs=conftest.$ac_objext
7049
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7050
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7056
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7057
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
7058
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7060
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7062
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7064
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7066
cat conftest.err 1>&5
7069
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7075
])# AC_LIBTOOL_PROG_LD_SHLIBS
7078
# _LT_AC_FILE_LTDLL_C
7079
# -------------------
7080
# Be careful that the start marker always follows a newline.
7081
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7082
# /* ltdll.c starts here */
7083
# #define WIN32_LEAN_AND_MEAN
7084
# #include <windows.h>
7085
# #undef WIN32_LEAN_AND_MEAN
7086
# #include <stdio.h>
7088
# #ifndef __CYGWIN__
7089
# # ifdef __CYGWIN32__
7090
# # define __CYGWIN__ __CYGWIN32__
7094
# #ifdef __cplusplus
7097
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7098
# #ifdef __cplusplus
7103
# #include <cygwin/cygwin_dll.h>
7104
# DECLARE_CYGWIN_DLL( DllMain );
7106
# HINSTANCE __hDllInstance_base;
7109
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7111
# __hDllInstance_base = hInst;
7114
# /* ltdll.c ends here */
7115
])# _LT_AC_FILE_LTDLL_C
7118
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7119
# ---------------------------------
7120
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7124
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7125
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7126
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7127
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7128
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7129
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7130
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7132
# This is just to silence aclocal about the macro not being used
7133
ifelse([AC_DISABLE_FAST_INSTALL])
7135
AC_DEFUN([LT_AC_PROG_GCJ],
7136
[AC_CHECK_TOOL(GCJ, gcj, no)
7137
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7141
AC_DEFUN([LT_AC_PROG_RC],
7142
[AC_CHECK_TOOL(RC, windres, no)
7146
# Cheap backport of AS_EXECUTABLE_P and required macros
7147
# from Autoconf 2.59; we should not use $as_executable_p directly.
7151
m4_ifndef([_AS_TEST_PREPARE],
7152
[m4_defun([_AS_TEST_PREPARE],
7153
[if test -x / >/dev/null 2>&1; then
7154
as_executable_p='test -x'
7156
as_executable_p='test -f'
7158
])])# _AS_TEST_PREPARE
7162
# Check whether a file is executable.
7163
m4_ifndef([AS_EXECUTABLE_P],
7164
[m4_defun([AS_EXECUTABLE_P],
7165
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
7166
$as_executable_p $1[]dnl
7167
])])# AS_EXECUTABLE_P
7169
# NOTE: This macro has been submitted for inclusion into #
7170
# GNU Autoconf as AC_PROG_SED. When it is available in #
7171
# a released version of Autoconf we should remove this #
7172
# macro and use it instead. #
7175
# Check for a fully-functional sed program, that truncates
7176
# as few characters as possible. Prefer GNU sed if found.
7177
AC_DEFUN([LT_AC_PROG_SED],
7178
[AC_MSG_CHECKING([for a sed that does not truncate output])
7179
AC_CACHE_VAL(lt_cv_path_SED,
7180
[# Loop through the user's path and test for sed and gsed.
7181
# Then use that list of sed's as ones to test for truncation.
7182
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186
test -z "$as_dir" && as_dir=.
7187
for lt_ac_prog in sed gsed; do
7188
for ac_exec_ext in '' $ac_executable_extensions; do
7189
if AS_EXECUTABLE_P(["$as_dir/$lt_ac_prog$ac_exec_ext"]); then
7190
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7198
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7199
# along with /bin/sed that truncates output.
7200
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7201
test ! -f $lt_ac_sed && continue
7202
cat /dev/null > conftest.in
7204
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7205
# Check for GNU sed and select it if it is found.
7206
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7207
lt_cv_path_SED=$lt_ac_sed
7211
cat conftest.in conftest.in >conftest.tmp
7212
mv conftest.tmp conftest.in
7213
cp conftest.in conftest.nl
7215
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7216
cmp -s conftest.out conftest.nl || break
7217
# 10000 chars as input seems more than enough
7218
test $lt_ac_count -gt 10 && break
7219
lt_ac_count=`expr $lt_ac_count + 1`
7220
if test $lt_ac_count -gt $lt_ac_max; then
7221
lt_ac_max=$lt_ac_count
7222
lt_cv_path_SED=$lt_ac_sed
7229
AC_MSG_RESULT([$SED])
7232
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7234
# Copyright Ā© 2004 Scott James Remnant <scott@netsplit.com>.
7236
# This program is free software; you can redistribute it and/or modify
7237
# it under the terms of the GNU General Public License as published by
7238
# the Free Software Foundation; either version 2 of the License, or
7239
# (at your option) any later version.
7241
# This program is distributed in the hope that it will be useful, but
7242
# WITHOUT ANY WARRANTY; without even the implied warranty of
7243
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7244
# General Public License for more details.
7246
# You should have received a copy of the GNU General Public License
7247
# along with this program; if not, write to the Free Software
7248
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7250
# As a special exception to the GNU General Public License, if you
7251
# distribute this file as part of a program that contains a
7252
# configuration script generated by Autoconf, you may include it under
7253
# the same distribution terms that you use for the rest of that program.
7255
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
7256
# ----------------------------------
7257
AC_DEFUN([PKG_PROG_PKG_CONFIG],
7258
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
7259
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
7260
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
7261
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7262
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
7264
if test -n "$PKG_CONFIG"; then
7265
_pkg_min_version=m4_default([$1], [0.9.0])
7266
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
7267
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7268
AC_MSG_RESULT([yes])
7275
])# PKG_PROG_PKG_CONFIG
7277
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
7279
# Check to see whether a particular set of modules exists. Similar
7280
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
7283
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
7284
# this or PKG_CHECK_MODULES is called, or make sure to call
7285
# PKG_CHECK_EXISTS manually
7286
# --------------------------------------------------------------
7287
AC_DEFUN([PKG_CHECK_EXISTS],
7288
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7289
if test -n "$PKG_CONFIG" && \
7290
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
7291
m4_ifval([$2], [$2], [:])
7292
m4_ifvaln([$3], [else
7297
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
7298
# ---------------------------------------------
7299
m4_define([_PKG_CONFIG],
7300
[if test -n "$PKG_CONFIG"; then
7301
if test -n "$$1"; then
7304
PKG_CHECK_EXISTS([$3],
7305
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
7313
# _PKG_SHORT_ERRORS_SUPPORTED
7314
# -----------------------------
7315
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
7316
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
7317
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7318
_pkg_short_errors_supported=yes
7320
_pkg_short_errors_supported=no
7322
])# _PKG_SHORT_ERRORS_SUPPORTED
7325
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
7326
# [ACTION-IF-NOT-FOUND])
7329
# Note that if there is a possibility the first call to
7330
# PKG_CHECK_MODULES might not happen, you should be sure to include an
7331
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
7334
# --------------------------------------------------------------
7335
AC_DEFUN([PKG_CHECK_MODULES],
7336
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
7337
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
7338
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
7341
AC_MSG_CHECKING([for $1])
7343
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
7344
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
7346
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
7347
and $1[]_LIBS to avoid the need to call pkg-config.
7348
See the pkg-config man page for more details.])
7350
if test $pkg_failed = yes; then
7351
_PKG_SHORT_ERRORS_SUPPORTED
7352
if test $_pkg_short_errors_supported = yes; then
7353
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
7355
$1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
7357
# Put the nasty error message in config.log where it belongs
7358
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
7360
ifelse([$4], , [AC_MSG_ERROR(dnl
7361
[Package requirements ($2) were not met:
7365
Consider adjusting the PKG_CONFIG_PATH environment variable if you
7366
installed software in a non-standard prefix.
7370
[AC_MSG_RESULT([no])
7372
elif test $pkg_failed = untried; then
7373
ifelse([$4], , [AC_MSG_FAILURE(dnl
7374
[The pkg-config script could not be found or is too old. Make sure it
7375
is in your PATH or set the PKG_CONFIG environment variable to the full
7380
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
7383
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
7384
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
7385
AC_MSG_RESULT([yes])
7386
ifelse([$3], , :, [$3])
7388
])# PKG_CHECK_MODULES
7390
# Copyright (C) 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
7392
# This file is free software; the Free Software Foundation
7393
# gives unlimited permission to copy and/or distribute it,
7394
# with or without modifications, as long as this notice is preserved.
7396
# AM_AUTOMAKE_VERSION(VERSION)
7397
# ----------------------------
7398
# Automake X.Y traces this macro to ensure aclocal.m4 has been
7399
# generated from the m4 files accompanying Automake X.Y.
7400
# (This private macro should not be called outside this file.)
7401
AC_DEFUN([AM_AUTOMAKE_VERSION],
7402
[am__api_version='1.10'
7403
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
7404
dnl require some minimum version. Point them to the right macro.
7405
m4_if([$1], [1.10], [],
7406
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
7409
# _AM_AUTOCONF_VERSION(VERSION)
7410
# -----------------------------
7411
# aclocal traces this macro to find the Autoconf version.
7412
# This is a private macro too. Using m4_define simplifies
7413
# the logic in aclocal, which can simply ignore this definition.
7414
m4_define([_AM_AUTOCONF_VERSION], [])
7416
# AM_SET_CURRENT_AUTOMAKE_VERSION
7417
# -------------------------------
7418
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
7419
# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7420
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7421
[AM_AUTOMAKE_VERSION([1.10])dnl
7422
_AM_AUTOCONF_VERSION(m4_PACKAGE_VERSION)])
7424
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7426
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7428
# This file is free software; the Free Software Foundation
7429
# gives unlimited permission to copy and/or distribute it,
7430
# with or without modifications, as long as this notice is preserved.
7432
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7433
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7434
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7436
# Of course, Automake must honor this variable whenever it calls a
7437
# tool from the auxiliary directory. The problem is that $srcdir (and
7438
# therefore $ac_aux_dir as well) can be either absolute or relative,
7439
# depending on how configure is run. This is pretty annoying, since
7440
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7441
# source directory, any form will work fine, but in subdirectories a
7442
# relative path needs to be adjusted first.
7444
# $ac_aux_dir/missing
7445
# fails when called from a subdirectory if $ac_aux_dir is relative
7446
# $top_srcdir/$ac_aux_dir/missing
7447
# fails if $ac_aux_dir is absolute,
7448
# fails when called from a subdirectory in a VPATH build with
7449
# a relative $ac_aux_dir
7451
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7452
# are both prefixed by $srcdir. In an in-source build this is usually
7453
# harmless because $srcdir is `.', but things will broke when you
7454
# start a VPATH build or use an absolute $srcdir.
7456
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7457
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7458
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7459
# and then we would define $MISSING as
7460
# MISSING="\${SHELL} $am_aux_dir/missing"
7461
# This will work as long as MISSING is not called from configure, because
7462
# unfortunately $(top_srcdir) has no meaning in configure.
7463
# However there are other variables, like CC, which are often used in
7464
# configure, and could therefore not use this "fixed" $ac_aux_dir.
7466
# Another solution, used here, is to always expand $ac_aux_dir to an
7467
# absolute PATH. The drawback is that using absolute paths prevent a
7468
# configured tree to be moved without reconfiguration.
7470
AC_DEFUN([AM_AUX_DIR_EXPAND],
7471
[dnl Rely on autoconf to set up CDPATH properly.
7472
AC_PREREQ([2.50])dnl
7473
# expand $ac_aux_dir to an absolute path
7474
am_aux_dir=`cd $ac_aux_dir && pwd`
7478
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
7479
# Free Software Foundation, Inc.
7481
# This file is free software; the Free Software Foundation
7482
# gives unlimited permission to copy and/or distribute it,
7483
# with or without modifications, as long as this notice is preserved.
7487
# This was merged into AC_PROG_CC in Autoconf.
7489
AU_DEFUN([AM_PROG_CC_STDC],
7491
AC_DIAGNOSE([obsolete], [$0:
7492
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
7493
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
7494
you adjust the code. You can also remove the above call to
7495
AC_PROG_CC if you already called it elsewhere.])
7496
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
7498
AU_DEFUN([fp_PROG_CC_STDC])
7500
# AM_CONDITIONAL -*- Autoconf -*-
7502
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006
7503
# Free Software Foundation, Inc.
7505
# This file is free software; the Free Software Foundation
7506
# gives unlimited permission to copy and/or distribute it,
7507
# with or without modifications, as long as this notice is preserved.
7511
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7512
# -------------------------------------
7513
# Define a conditional.
7514
AC_DEFUN([AM_CONDITIONAL],
7516
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7517
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7518
AC_SUBST([$1_TRUE])dnl
7519
AC_SUBST([$1_FALSE])dnl
7520
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
7521
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
7529
AC_CONFIG_COMMANDS_PRE(
7530
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7531
AC_MSG_ERROR([[conditional "$1" was never defined.
7532
Usually this means the macro was only invoked conditionally.]])
7535
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
7536
# Free Software Foundation, Inc.
7538
# This file is free software; the Free Software Foundation
7539
# gives unlimited permission to copy and/or distribute it,
7540
# with or without modifications, as long as this notice is preserved.
7544
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7545
# written in clear, in which case automake, when reading aclocal.m4,
7546
# will think it sees a *use*, and therefore will trigger all it's
7547
# C support machinery. Also note that it means that autoscan, seeing
7548
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7551
# _AM_DEPENDENCIES(NAME)
7552
# ----------------------
7553
# See how the compiler implements dependency checking.
7554
# NAME is "CC", "CXX", "GCJ", or "OBJC".
7555
# We try a few techniques and use that to set a single cache variable.
7557
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7558
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7559
# dependency, and given that the user is not expected to run this macro,
7560
# just rely on AC_PROG_CC.
7561
AC_DEFUN([_AM_DEPENDENCIES],
7562
[AC_REQUIRE([AM_SET_DEPDIR])dnl
7563
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7564
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7565
AC_REQUIRE([AM_DEP_TRACK])dnl
7567
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7568
[$1], CXX, [depcc="$CXX" am_compiler_list=],
7569
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7570
[$1], UPC, [depcc="$UPC" am_compiler_list=],
7571
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7572
[depcc="$$1" am_compiler_list=])
7574
AC_CACHE_CHECK([dependency style of $depcc],
7575
[am_cv_$1_dependencies_compiler_type],
7576
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7577
# We make a subdir and do the tests there. Otherwise we can end up
7578
# making bogus files that we don't know about and never remove. For
7579
# instance it was reported that on HP-UX the gcc test will end up
7580
# making a dummy file named `D' -- because `-MD' means `put the output
7583
# Copy depcomp to subdir because otherwise we won't find it if we're
7584
# using a relative directory.
7585
cp "$am_depcomp" conftest.dir
7587
# We will build objects and dependencies in a subdirectory because
7588
# it helps to detect inapplicable dependency modes. For instance
7589
# both Tru64's cc and ICC support -MD to output dependencies as a
7590
# side effect of compilation, but ICC will put the dependencies in
7591
# the current directory while Tru64 will put them in the object
7595
am_cv_$1_dependencies_compiler_type=none
7596
if test "$am_compiler_list" = ""; then
7597
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
7599
for depmode in $am_compiler_list; do
7600
# Setup a source with many dependencies, because some compilers
7601
# like to wrap large dependency lists on column 80 (with \), and
7602
# we should not choose a depcomp mode which is confused by this.
7604
# We need to recreate these files for each test, as the compiler may
7605
# overwrite some of them when testing with obscure command lines.
7606
# This happens at least with the AIX C compiler.
7608
for i in 1 2 3 4 5 6; do
7609
echo '#include "conftst'$i'.h"' >> sub/conftest.c
7610
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7611
# Solaris 8's {/usr,}/bin/sh.
7612
touch sub/conftst$i.h
7614
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7618
# after this tag, mechanisms are not by side-effect, so they'll
7619
# only be used when explicitly requested
7620
if test "x$enable_dependency_tracking" = xyes; then
7628
# We check with `-c' and `-o' for the sake of the "dashmstdout"
7629
# mode. It turns out that the SunPro C++ compiler does not properly
7630
# handle `-M -o', and we need to detect this.
7631
if depmode=$depmode \
7632
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
7633
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7634
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
7635
>/dev/null 2>conftest.err &&
7636
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7637
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7638
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
7639
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7640
# icc doesn't choke on unknown options, it will just issue warnings
7641
# or remarks (even with -Werror). So we grep stderr for any message
7642
# that says an option was ignored or not supported.
7643
# When given -MP, icc 7.0 and 7.1 complain thusly:
7644
# icc: Command line warning: ignoring option '-M'; no argument required
7645
# The diagnosis changed in icc 8.0:
7646
# icc: Command line remark: option '-MP' not supported
7647
if (grep 'ignoring option' conftest.err ||
7648
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7649
am_cv_$1_dependencies_compiler_type=$depmode
7658
am_cv_$1_dependencies_compiler_type=none
7661
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
7662
AM_CONDITIONAL([am__fastdep$1], [
7663
test "x$enable_dependency_tracking" != xno \
7664
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
7670
# Choose a directory name for dependency files.
7671
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
7672
AC_DEFUN([AM_SET_DEPDIR],
7673
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7674
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
7680
AC_DEFUN([AM_DEP_TRACK],
7681
[AC_ARG_ENABLE(dependency-tracking,
7682
[ --disable-dependency-tracking speeds up one-time build
7683
--enable-dependency-tracking do not reject slow dependency extractors])
7684
if test "x$enable_dependency_tracking" != xno; then
7685
am_depcomp="$ac_aux_dir/depcomp"
7688
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
7689
AC_SUBST([AMDEPBACKSLASH])dnl
7690
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
7693
# Generate code to set up dependency tracking. -*- Autoconf -*-
7695
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7696
# Free Software Foundation, Inc.
7698
# This file is free software; the Free Software Foundation
7699
# gives unlimited permission to copy and/or distribute it,
7700
# with or without modifications, as long as this notice is preserved.
7704
# _AM_OUTPUT_DEPENDENCY_COMMANDS
7705
# ------------------------------
7706
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
7707
[for mf in $CONFIG_FILES; do
7708
# Strip MF so we end up with the name of the file.
7709
mf=`echo "$mf" | sed -e 's/:.*$//'`
7710
# Check whether this is an Automake generated Makefile or not.
7711
# We used to match only the files named `Makefile.in', but
7712
# some people rename them; so instead we look at the file content.
7713
# Grep'ing the first line is not enough: some people post-process
7714
# each Makefile.in and add a new line on top of each file to say so.
7715
# Grep'ing the whole file is not good either: AIX grep has a line
7716
# limit of 2048, but all sed's we know have understand at least 4000.
7717
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
7718
dirpart=`AS_DIRNAME("$mf")`
7722
# Extract the definition of DEPDIR, am__include, and am__quote
7723
# from the Makefile without running `make'.
7724
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
7725
test -z "$DEPDIR" && continue
7726
am__include=`sed -n 's/^am__include = //p' < "$mf"`
7727
test -z "am__include" && continue
7728
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
7729
# When using ansi2knr, U may be empty or an underscore; expand it
7730
U=`sed -n 's/^U = //p' < "$mf"`
7731
# Find all dependency output files, they are included files with
7732
# $(DEPDIR) in their names. We invoke sed twice because it is the
7733
# simplest approach to changing $(DEPDIR) to its actual value in the
7735
for file in `sed -n "
7736
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7737
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7738
# Make sure the directory exists.
7739
test -f "$dirpart/$file" && continue
7740
fdir=`AS_DIRNAME(["$file"])`
7741
AS_MKDIR_P([$dirpart/$fdir])
7742
# echo "creating $dirpart/$file"
7743
echo '# dummy' > "$dirpart/$file"
7746
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
7749
# AM_OUTPUT_DEPENDENCY_COMMANDS
7750
# -----------------------------
7751
# This macro should only be invoked once -- use via AC_REQUIRE.
7753
# This code is only required when automatic dependency tracking
7754
# is enabled. FIXME. This creates each `.P' file that we will
7755
# need in order to bootstrap the dependency handling code.
7756
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
7757
[AC_CONFIG_COMMANDS([depfiles],
7758
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
7759
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
7762
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7763
# Free Software Foundation, Inc.
7765
# This file is free software; the Free Software Foundation
7766
# gives unlimited permission to copy and/or distribute it,
7767
# with or without modifications, as long as this notice is preserved.
7771
# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
7772
AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
7774
# Do all the work for Automake. -*- Autoconf -*-
7776
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
7777
# 2005, 2006 Free Software Foundation, Inc.
7779
# This file is free software; the Free Software Foundation
7780
# gives unlimited permission to copy and/or distribute it,
7781
# with or without modifications, as long as this notice is preserved.
7785
# This macro actually does too much. Some checks are only needed if
7786
# your package does certain things. But this isn't really a big deal.
7788
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
7789
# AM_INIT_AUTOMAKE([OPTIONS])
7790
# -----------------------------------------------
7791
# The call with PACKAGE and VERSION arguments is the old style
7792
# call (pre autoconf-2.50), which is being phased out. PACKAGE
7793
# and VERSION should now be passed to AC_INIT and removed from
7794
# the call to AM_INIT_AUTOMAKE.
7795
# We support both call styles for the transition. After
7796
# the next Automake release, Autoconf can make the AC_INIT
7797
# arguments mandatory, and then we can depend on a new Autoconf
7798
# release and drop the old call support.
7799
AC_DEFUN([AM_INIT_AUTOMAKE],
7800
[AC_PREREQ([2.60])dnl
7801
dnl Autoconf wants to disallow AM_ names. We explicitly allow
7802
dnl the ones we care about.
7803
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
7804
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
7805
AC_REQUIRE([AC_PROG_INSTALL])dnl
7806
if test "`cd $srcdir && pwd`" != "`pwd`"; then
7807
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
7808
# is not polluted with repeated "-I."
7809
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
7810
# test to see if srcdir already configured
7811
if test -f $srcdir/config.status; then
7812
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
7816
# test whether we have cygpath
7817
if test -z "$CYGPATH_W"; then
7818
if (cygpath --version) >/dev/null 2>/dev/null; then
7819
CYGPATH_W='cygpath -w'
7824
AC_SUBST([CYGPATH_W])
7826
# Define the identity of the package.
7827
dnl Distinguish between old-style and new-style calls.
7829
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
7830
AC_SUBST([PACKAGE], [$1])dnl
7831
AC_SUBST([VERSION], [$2])],
7832
[_AM_SET_OPTIONS([$1])dnl
7833
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
7834
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
7835
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
7836
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
7837
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
7839
_AM_IF_OPTION([no-define],,
7840
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
7841
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
7843
# Some tools Automake needs.
7844
AC_REQUIRE([AM_SANITY_CHECK])dnl
7845
AC_REQUIRE([AC_ARG_PROGRAM])dnl
7846
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
7847
AM_MISSING_PROG(AUTOCONF, autoconf)
7848
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
7849
AM_MISSING_PROG(AUTOHEADER, autoheader)
7850
AM_MISSING_PROG(MAKEINFO, makeinfo)
7852
AM_PROG_INSTALL_STRIP
7853
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
7854
# We need awk for the "check" target. The system "awk" is bad on
7856
AC_REQUIRE([AC_PROG_AWK])dnl
7857
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
7858
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
7859
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
7860
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
7861
[_AM_PROG_TAR([v7])])])
7862
_AM_IF_OPTION([no-dependencies],,
7863
[AC_PROVIDE_IFELSE([AC_PROG_CC],
7864
[_AM_DEPENDENCIES(CC)],
7865
[define([AC_PROG_CC],
7866
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
7867
AC_PROVIDE_IFELSE([AC_PROG_CXX],
7868
[_AM_DEPENDENCIES(CXX)],
7869
[define([AC_PROG_CXX],
7870
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
7871
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
7872
[_AM_DEPENDENCIES(OBJC)],
7873
[define([AC_PROG_OBJC],
7874
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
7879
# When config.status generates a header, we must update the stamp-h file.
7880
# This file resides in the same directory as the config header
7881
# that is generated. The stamp files are numbered to have different names.
7883
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
7884
# loop where config.status creates the headers, so we can generate
7885
# our stamp files there.
7886
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
7887
[# Compute $1's index in $config_headers.
7889
for _am_header in $config_headers :; do
7894
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
7897
echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
7899
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7901
# This file is free software; the Free Software Foundation
7902
# gives unlimited permission to copy and/or distribute it,
7903
# with or without modifications, as long as this notice is preserved.
7905
# AM_PROG_INSTALL_SH
7906
# ------------------
7907
# Define $install_sh.
7908
AC_DEFUN([AM_PROG_INSTALL_SH],
7909
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
7910
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
7911
AC_SUBST(install_sh)])
7913
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
7915
# This file is free software; the Free Software Foundation
7916
# gives unlimited permission to copy and/or distribute it,
7917
# with or without modifications, as long as this notice is preserved.
7921
# Check whether the underlying file-system supports filenames
7922
# with a leading dot. For instance MS-DOS doesn't.
7923
AC_DEFUN([AM_SET_LEADING_DOT],
7924
[rm -rf .tst 2>/dev/null
7925
mkdir .tst 2>/dev/null
7926
if test -d .tst; then
7931
rmdir .tst 2>/dev/null
7932
AC_SUBST([am__leading_dot])])
7934
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
7937
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
7938
# Free Software Foundation, Inc.
7940
# This file is free software; the Free Software Foundation
7941
# gives unlimited permission to copy and/or distribute it,
7942
# with or without modifications, as long as this notice is preserved.
7946
AC_DEFUN([AM_MAINTAINER_MODE],
7947
[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
7948
dnl maintainer-mode is disabled by default
7949
AC_ARG_ENABLE(maintainer-mode,
7950
[ --enable-maintainer-mode enable make rules and dependencies not useful
7951
(and sometimes confusing) to the casual installer],
7952
USE_MAINTAINER_MODE=$enableval,
7953
USE_MAINTAINER_MODE=no)
7954
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
7955
AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
7956
MAINT=$MAINTAINER_MODE_TRUE
7961
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
7963
# Check to see how 'make' treats includes. -*- Autoconf -*-
7965
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7967
# This file is free software; the Free Software Foundation
7968
# gives unlimited permission to copy and/or distribute it,
7969
# with or without modifications, as long as this notice is preserved.
7975
# Check to see how make treats includes.
7976
AC_DEFUN([AM_MAKE_INCLUDE],
7977
[am_make=${MAKE-make}
7978
cat > confinc << 'END'
7983
# If we don't find an include directive, just comment out the code.
7984
AC_MSG_CHECKING([for style of include used by $am_make])
7988
# First try GNU make style include.
7989
echo "include confinc" > confmf
7990
# We grep out `Entering directory' and `Leaving directory'
7991
# messages which can occur if `w' ends up in MAKEFLAGS.
7992
# In particular we don't look at `^make:' because GNU make might
7993
# be invoked under some other name (usually "gmake"), in which
7994
# case it prints its new name instead of `make'.
7995
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8000
# Now try BSD make style include.
8001
if test "$am__include" = "#"; then
8002
echo '.include "confinc"' > confmf
8003
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8004
am__include=.include
8009
AC_SUBST([am__include])
8010
AC_SUBST([am__quote])
8011
AC_MSG_RESULT([$_am_result])
8012
rm -f confinc confmf
8015
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8017
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005
8018
# Free Software Foundation, Inc.
8020
# This file is free software; the Free Software Foundation
8021
# gives unlimited permission to copy and/or distribute it,
8022
# with or without modifications, as long as this notice is preserved.
8026
# AM_MISSING_PROG(NAME, PROGRAM)
8027
# ------------------------------
8028
AC_DEFUN([AM_MISSING_PROG],
8029
[AC_REQUIRE([AM_MISSING_HAS_RUN])
8030
$1=${$1-"${am_missing_run}$2"}
8034
# AM_MISSING_HAS_RUN
8035
# ------------------
8036
# Define MISSING if not defined so far and test if it supports --run.
8037
# If it does, set am_missing_run to use it, otherwise, to nothing.
8038
AC_DEFUN([AM_MISSING_HAS_RUN],
8039
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8040
AC_REQUIRE_AUX_FILE([missing])dnl
8041
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8042
# Use eval to expand $SHELL
8043
if eval "$MISSING --run true"; then
8044
am_missing_run="$MISSING --run "
8047
AC_MSG_WARN([`missing' script is too old or missing])
8051
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
8053
# This file is free software; the Free Software Foundation
8054
# gives unlimited permission to copy and/or distribute it,
8055
# with or without modifications, as long as this notice is preserved.
8059
# Check for `mkdir -p'.
8060
AC_DEFUN([AM_PROG_MKDIR_P],
8061
[AC_PREREQ([2.60])dnl
8062
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
8063
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
8064
dnl while keeping a definition of mkdir_p for backward compatibility.
8065
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
8066
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
8067
dnl Makefile.ins that do not define MKDIR_P, so we do our own
8068
dnl adjustment using top_builddir (which is defined more often than
8070
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
8072
[[\\/$]]* | ?:[[\\/]]*) ;;
8073
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
8077
# Helper functions for option handling. -*- Autoconf -*-
8079
# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8081
# This file is free software; the Free Software Foundation
8082
# gives unlimited permission to copy and/or distribute it,
8083
# with or without modifications, as long as this notice is preserved.
8087
# _AM_MANGLE_OPTION(NAME)
8088
# -----------------------
8089
AC_DEFUN([_AM_MANGLE_OPTION],
8090
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8092
# _AM_SET_OPTION(NAME)
8093
# ------------------------------
8094
# Set option NAME. Presently that only means defining a flag for this option.
8095
AC_DEFUN([_AM_SET_OPTION],
8096
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8098
# _AM_SET_OPTIONS(OPTIONS)
8099
# ----------------------------------
8100
# OPTIONS is a space-separated list of Automake options.
8101
AC_DEFUN([_AM_SET_OPTIONS],
8102
[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8104
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8105
# -------------------------------------------
8106
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8107
AC_DEFUN([_AM_IF_OPTION],
8108
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8110
# Check to make sure that the build environment is sane. -*- Autoconf -*-
8112
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8113
# Free Software Foundation, Inc.
8115
# This file is free software; the Free Software Foundation
8116
# gives unlimited permission to copy and/or distribute it,
8117
# with or without modifications, as long as this notice is preserved.
8123
AC_DEFUN([AM_SANITY_CHECK],
8124
[AC_MSG_CHECKING([whether build environment is sane])
8127
echo timestamp > conftest.file
8128
# Do `set' in a subshell so we don't clobber the current shell's
8129
# arguments. Must try -L first in case configure is actually a
8130
# symlink; some systems play weird games with the mod time of symlinks
8131
# (eg FreeBSD returns the mod time of the symlink's containing
8134
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8135
if test "$[*]" = "X"; then
8137
set X `ls -t $srcdir/configure conftest.file`
8140
if test "$[*]" != "X $srcdir/configure conftest.file" \
8141
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
8143
# If neither matched, then we have a broken ls. This can happen
8144
# if, for instance, CONFIG_SHELL is bash and it inherits a
8145
# broken ls alias from the environment. This has actually
8146
# happened. Such a system could not be considered "sane".
8147
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8148
alias in your environment])
8151
test "$[2]" = conftest.file
8157
AC_MSG_ERROR([newly created file is older than distributed files!
8158
Check your system clock])
8160
AC_MSG_RESULT(yes)])
8162
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8164
# This file is free software; the Free Software Foundation
8165
# gives unlimited permission to copy and/or distribute it,
8166
# with or without modifications, as long as this notice is preserved.
8168
# AM_PROG_INSTALL_STRIP
8169
# ---------------------
8170
# One issue with vendor `install' (even GNU) is that you can't
8171
# specify the program used to strip binaries. This is especially
8172
# annoying in cross-compiling environments, where the build's strip
8173
# is unlikely to handle the host's binaries.
8174
# Fortunately install-sh will honor a STRIPPROG variable, so we
8175
# always use install-sh in `make install-strip', and initialize
8176
# STRIPPROG with the value of the STRIP variable (set by the user).
8177
AC_DEFUN([AM_PROG_INSTALL_STRIP],
8178
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8179
# Installed binaries are usually stripped using `strip' when the user
8180
# run `make install-strip'. However `strip' might not be the right
8181
# tool to use in cross-compilation environments, therefore Automake
8182
# will honor the `STRIP' environment variable to overrule this program.
8183
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8184
if test "$cross_compiling" != no; then
8185
AC_CHECK_TOOL([STRIP], [strip], :)
8187
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
8188
AC_SUBST([INSTALL_STRIP_PROGRAM])])
8190
# Copyright (C) 2006 Free Software Foundation, Inc.
8192
# This file is free software; the Free Software Foundation
8193
# gives unlimited permission to copy and/or distribute it,
8194
# with or without modifications, as long as this notice is preserved.
8196
# _AM_SUBST_NOTMAKE(VARIABLE)
8197
# ---------------------------
8198
# Prevent Automake from outputing VARIABLE = @VARIABLE@ in Makefile.in.
8199
# This macro is traced by Automake.
8200
AC_DEFUN([_AM_SUBST_NOTMAKE])
8202
# Check how to create a tarball. -*- Autoconf -*-
8204
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8206
# This file is free software; the Free Software Foundation
8207
# gives unlimited permission to copy and/or distribute it,
8208
# with or without modifications, as long as this notice is preserved.
8212
# _AM_PROG_TAR(FORMAT)
8213
# --------------------
8214
# Check how to create a tarball in format FORMAT.
8215
# FORMAT should be one of `v7', `ustar', or `pax'.
8217
# Substitute a variable $(am__tar) that is a command
8218
# writing to stdout a FORMAT-tarball containing the directory
8220
# tardir=directory && $(am__tar) > result.tar
8222
# Substitute a variable $(am__untar) that extract such
8223
# a tarball read from stdin.
8224
# $(am__untar) < result.tar
8225
AC_DEFUN([_AM_PROG_TAR],
8226
[# Always define AMTAR for backward compatibility.
8227
AM_MISSING_PROG([AMTAR], [tar])
8229
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8230
[m4_case([$1], [ustar],, [pax],,
8231
[m4_fatal([Unknown tar format])])
8232
AC_MSG_CHECKING([how to create a $1 tar archive])
8233
# Loop over all known methods to create a tar archive until one works.
8234
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8235
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8236
# Do not fold the above two line into one, because Tru64 sh and
8237
# Solaris sh will not grok spaces in the rhs of `-'.
8238
for _am_tool in $_am_tools
8242
for _am_tar in tar gnutar gtar;
8244
AM_RUN_LOG([$_am_tar --version]) && break
8246
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8247
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8248
am__untar="$_am_tar -xf -"
8251
# Must skip GNU tar: if it does not support --format= it doesn't create
8252
# ustar tarball either.
8253
(tar --version) >/dev/null 2>&1 && continue
8254
am__tar='tar chf - "$$tardir"'
8255
am__tar_='tar chf - "$tardir"'
8256
am__untar='tar xf -'
8259
am__tar='pax -L -x $1 -w "$$tardir"'
8260
am__tar_='pax -L -x $1 -w "$tardir"'
8264
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8265
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8266
am__untar='cpio -i -H $1 -d'
8275
# If the value was cached, stop now. We just wanted to have am__tar
8276
# and am__untar set.
8277
test -n "${am_cv_prog_tar_$1}" && break
8279
# tar/untar a dummy directory, and stop if the command works
8282
echo GrepMe > conftest.dir/file
8283
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8285
if test -s conftest.tar; then
8286
AM_RUN_LOG([$am__untar <conftest.tar])
8287
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8292
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8293
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8295
AC_SUBST([am__untar])