1
# generated automatically by aclocal 1.11 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
If you have problems, you may need to regenerate the build system entirely.
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
25
# This file is free software, distributed under the terms of the GNU
26
# General Public License. As a special exception to the GNU General
27
# Public License, this file may be distributed as part of a program
28
# that contains a configuration script generated by Autoconf, under
29
# the same distribution terms as the rest of that program.
31
# This file can be copied and used freely without restrictions. It can
32
# be used in projects which are not available under the GNU Public License
33
# but which still want to provide support for the GNU gettext functionality.
35
# Macro to add for using GNU gettext.
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
38
# Modified to never use included libintl.
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
41
# Major rework to remove unused code
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
44
# Added better handling of ALL_LINGUAS from GNU gettext version
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
47
# Modified to require ngettext
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
50
# We need this here as well, since someone might use autoconf-2.5x
51
# to configure GLib then an older version to configure a package
52
# using AM_GLIB_GNU_GETTEXT
56
dnl We go to great lengths to make sure that aclocal won't
57
dnl try to pull in the installed version of these macros
58
dnl when running aclocal in the glib directory.
60
m4_copy([AC_DEFUN],[glib_DEFUN])
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
63
dnl At the end, if we're not within glib, we'll define the public
64
dnl definitions in terms of our private definitions.
69
glib_DEFUN([GLIB_LC_MESSAGES],
70
[AC_CHECK_HEADERS([locale.h])
71
if test $ac_cv_header_locale_h = yes; then
72
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75
if test $am_cv_val_LC_MESSAGES = yes; then
76
AC_DEFINE(HAVE_LC_MESSAGES, 1,
77
[Define if your <locale.h> file defines LC_MESSAGES.])
81
# GLIB_PATH_PROG_WITH_TEST
82
#----------------------------
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86
[# Extract the first word of "$2", so it can be a program name with args.
87
set dummy $2; ac_word=[$]2
88
AC_MSG_CHECKING([for $ac_word])
89
AC_CACHE_VAL(ac_cv_path_$1,
92
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
95
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96
for ac_dir in ifelse([$5], , $PATH, [$5]); do
97
test -z "$ac_dir" && ac_dir=.
98
if test -f $ac_dir/$ac_word; then
100
ac_cv_path_$1="$ac_dir/$ac_word"
106
dnl If no 4th arg is given, leave the cache variable unset,
107
dnl so AC_PATH_PROGS will keep looking.
108
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
123
glib_DEFUN([GLIB_WITH_NLS],
124
dnl NLS is obligatory
128
gt_cv_have_gettext=no
134
AC_CHECK_HEADER(libintl.h,
135
[gt_cv_func_dgettext_libintl="no"
136
libintl_extra_libs=""
139
# First check in libc
141
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
145
[return !ngettext ("","", 1)],
146
gt_cv_func_ngettext_libc=yes,
147
gt_cv_func_ngettext_libc=no)
150
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
155
[return !dgettext ("","")],
156
gt_cv_func_dgettext_libc=yes,
157
gt_cv_func_dgettext_libc=no)
161
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162
AC_CHECK_FUNCS(bind_textdomain_codeset)
166
# If we don't have everything we want, check in libintl
168
if test "$gt_cv_func_dgettext_libc" != "yes" \
169
|| test "$gt_cv_func_ngettext_libc" != "yes" \
170
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
172
AC_CHECK_LIB(intl, bindtextdomain,
173
[AC_CHECK_LIB(intl, ngettext,
174
[AC_CHECK_LIB(intl, dgettext,
175
gt_cv_func_dgettext_libintl=yes)])])
177
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178
AC_MSG_CHECKING([if -liconv is needed to use gettext])
180
AC_CHECK_LIB(intl, ngettext,
181
[AC_CHECK_LIB(intl, dcgettext,
182
[gt_cv_func_dgettext_libintl=yes
183
libintl_extra_libs=-liconv],
189
# If we found libintl, then check in it for bind_textdomain_codeset();
190
# we'll prefer libc if neither have bind_textdomain_codeset(),
191
# and both have dgettext and ngettext
193
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194
glib_save_LIBS="$LIBS"
195
LIBS="$LIBS -lintl $libintl_extra_libs"
196
unset ac_cv_func_bind_textdomain_codeset
197
AC_CHECK_FUNCS(bind_textdomain_codeset)
198
LIBS="$glib_save_LIBS"
200
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201
gt_cv_func_dgettext_libc=no
203
if test "$gt_cv_func_dgettext_libc" = "yes" \
204
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
205
gt_cv_func_dgettext_libintl=no
211
if test "$gt_cv_func_dgettext_libc" = "yes" \
212
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
213
gt_cv_have_gettext=yes
216
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217
INTLLIBS="-lintl $libintl_extra_libs"
220
if test "$gt_cv_have_gettext" = "yes"; then
221
AC_DEFINE(HAVE_GETTEXT,1,
222
[Define if the GNU gettext() function is already present or preinstalled.])
223
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225
if test "$MSGFMT" != "no"; then
226
glib_save_LIBS="$LIBS"
227
LIBS="$LIBS $INTLLIBS"
228
AC_CHECK_FUNCS(dcgettext)
230
AC_MSG_CHECKING([if msgfmt accepts -c])
231
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
234
"Content-Type: text/plain; charset=UTF-8\n"
235
"Project-Id-Version: test 1.0\n"
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237
"Last-Translator: test <foo@bar.xx>\n"
238
"Language-Team: C <LL@li.org>\n"
239
"MIME-Version: 1.0\n"
240
"Content-Transfer-Encoding: 8bit\n"
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242
AC_SUBST(MSGFMT_OPTS)
243
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247
return _nl_msg_cat_cntr],
252
dnl On Solaris, if bind_textdomain_codeset is in libc,
253
dnl GNU format message catalog is always supported,
254
dnl since both are added to the libc all together.
255
dnl Hence, we'd like to go with DATADIRNAME=share and
256
dnl and CATOBJEXT=.gmo in this case.
257
AC_CHECK_FUNC(bind_textdomain_codeset,
268
LIBS="$glib_save_LIBS"
271
gt_cv_have_gettext=no
276
if test "$gt_cv_have_gettext" = "yes" ; then
277
AC_DEFINE(ENABLE_NLS, 1,
278
[always defined to indicate that i18n is enabled])
281
dnl Test whether we really found GNU xgettext.
282
if test "$XGETTEXT" != ":"; then
283
dnl If it is not GNU xgettext we define it as : so that the
284
dnl Makefiles still can work.
285
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
289
[found xgettext program is not GNU xgettext; ignore it])
294
# We need to process the po/ directory.
298
[case "$CONFIG_FILES" in *po/Makefile.in*)
299
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
302
dnl These rules are solely for the distribution goal. While doing this
303
dnl we only have to keep exactly one list of the available catalogs
305
for lang in $ALL_LINGUAS; do
306
GMOFILES="$GMOFILES $lang.gmo"
307
POFILES="$POFILES $lang.po"
310
dnl Make all variables we use known to autoconf.
313
AC_SUBST(DATADIRNAME)
317
AC_SUBST(PO_IN_DATADIR_TRUE)
318
AC_SUBST(PO_IN_DATADIR_FALSE)
323
# AM_GLIB_GNU_GETTEXT
324
# -------------------
325
# Do checks necessary for use of gettext. If a suitable implementation
326
# of gettext is found in either in libintl or in the C library,
327
# it will set INTLLIBS to the libraries needed for use of gettext
328
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330
# on various variables needed by the Makefile.in.in installed by
333
glib_DEFUN([GLIB_GNU_GETTEXT],
334
[AC_REQUIRE([AC_PROG_CC])dnl
335
AC_REQUIRE([AC_HEADER_STDC])dnl
340
if test "$gt_cv_have_gettext" = "yes"; then
341
if test "x$ALL_LINGUAS" = "x"; then
344
AC_MSG_CHECKING(for catalogs to be installed)
346
for presentlang in $ALL_LINGUAS; do
348
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349
desiredlanguages="$LINGUAS"
351
desiredlanguages="$ALL_LINGUAS"
353
for desiredlang in $desiredlanguages; do
354
# Use the presentlang catalog if desiredlang is
355
# a. equal to presentlang, or
356
# b. a variant of presentlang (because in this case,
357
# presentlang can be used as a fallback for messages
358
# which are not translated in the desiredlang catalog).
359
case "$desiredlang" in
360
"$presentlang"*) useit=yes;;
363
if test $useit = yes; then
364
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
368
AC_MSG_RESULT($LINGUAS)
371
dnl Construct list of names of catalog files to be constructed.
372
if test -n "$LINGUAS"; then
373
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
377
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379
dnl Try to locate is.
381
if test -n "$ac_aux_dir"; then
382
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
384
if test -z "$MKINSTALLDIRS"; then
385
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
387
AC_SUBST(MKINSTALLDIRS)
389
dnl Generate list of files to be processed by xgettext which will
390
dnl be included in po/Makefile.
391
test -d po || mkdir po
392
if test "x$srcdir" != "x."; then
393
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394
posrcprefix="$srcdir/"
396
posrcprefix="../$srcdir/"
402
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403
< $srcdir/po/POTFILES.in > po/POTFILES
406
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407
# -------------------------------
408
# Define VARIABLE to the location where catalog files will
409
# be installed by po/Makefile.
410
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412
glib_save_prefix="$prefix"
413
glib_save_exec_prefix="$exec_prefix"
414
glib_save_datarootdir="$datarootdir"
415
test "x$prefix" = xNONE && prefix=$ac_default_prefix
416
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417
datarootdir=`eval echo "${datarootdir}"`
418
if test "x$CATOBJEXT" = "x.mo" ; then
419
localedir=`eval echo "${libdir}/locale"`
421
localedir=`eval echo "${datadir}/locale"`
423
prefix="$glib_save_prefix"
424
exec_prefix="$glib_save_exec_prefix"
425
datarootdir="$glib_save_datarootdir"
426
AC_DEFINE_UNQUOTED($1, "$localedir",
427
[Define the location where the catalogs will be installed])
431
dnl Now the definitions that aclocal will find
433
ifdef(glib_configure_in,[],[
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
438
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
440
# Create a temporary file with TEST-FILE as its contents and pass the
441
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
442
# 0 and perform ACTION-IF-FAIL for any other exit status.
443
AC_DEFUN([GLIB_RUN_PROG],
444
[cat >conftest.foo <<_ACEOF
447
if AC_RUN_LOG([$1 conftest.foo]); then
448
m4_ifval([$3], [$3], [:])
449
m4_ifvaln([$4], [else $4])dnl
450
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
456
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
457
# serial 40 IT_PROG_INTLTOOL
458
AC_DEFUN([IT_PROG_INTLTOOL], [
460
AC_REQUIRE([AM_NLS])dnl
462
case "$am__api_version" in
464
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
470
if test -n "$1"; then
471
AC_MSG_CHECKING([for intltool >= $1])
473
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
474
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
475
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
477
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
478
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
479
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
482
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
483
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
484
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
485
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
486
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
489
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 $< [$]@'
490
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 $< [$]@'
491
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 $< [$]@'
492
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 $< [$]@'
493
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
494
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 $< [$]@'
495
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 $< [$]@'
496
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 $< [$]@'
497
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 $< [$]@'
498
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 $< [$]@'
499
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 $< [$]@'
500
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
501
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 $< [$]@'
502
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 $< [$]@'
503
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 $< [$]@'
504
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 $< [$]@'
505
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 $< [$]@'
506
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 $< [$]@'
507
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 $< [$]@'
509
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
510
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
511
_IT_SUBST(INTLTOOL_KEYS_RULE)
512
_IT_SUBST(INTLTOOL_PROP_RULE)
513
_IT_SUBST(INTLTOOL_OAF_RULE)
514
_IT_SUBST(INTLTOOL_PONG_RULE)
515
_IT_SUBST(INTLTOOL_SERVER_RULE)
516
_IT_SUBST(INTLTOOL_SHEET_RULE)
517
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
518
_IT_SUBST(INTLTOOL_UI_RULE)
519
_IT_SUBST(INTLTOOL_XAM_RULE)
520
_IT_SUBST(INTLTOOL_KBD_RULE)
521
_IT_SUBST(INTLTOOL_XML_RULE)
522
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
523
_IT_SUBST(INTLTOOL_CAVES_RULE)
524
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
525
_IT_SUBST(INTLTOOL_THEME_RULE)
526
_IT_SUBST(INTLTOOL_SERVICE_RULE)
527
_IT_SUBST(INTLTOOL_POLICY_RULE)
529
# Check the gettext tools to make sure they are GNU
530
AC_PATH_PROG(XGETTEXT, xgettext)
531
AC_PATH_PROG(MSGMERGE, msgmerge)
532
AC_PATH_PROG(MSGFMT, msgfmt)
533
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
534
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
535
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
537
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
538
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
539
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
540
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
541
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
544
AC_PATH_PROG(INTLTOOL_PERL, perl)
545
if test -z "$INTLTOOL_PERL"; then
546
AC_MSG_ERROR([perl not found])
548
AC_MSG_CHECKING([for perl >= 5.8.1])
549
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
550
if test $? -ne 0; then
551
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
553
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
554
AC_MSG_RESULT([$IT_PERL_VERSION])
556
if test "x$2" != "xno-xml"; then
557
AC_MSG_CHECKING([for XML::Parser])
558
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
561
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
565
# Substitute ALL_LINGUAS so we can use it in po/Makefile
566
AC_SUBST(ALL_LINGUAS)
568
# Set DATADIRNAME correctly if it is not set yet
569
# (copied from glib-gettext.m4)
570
if test -z "$DATADIRNAME"; then
572
[AC_LANG_PROGRAM([[]],
573
[[extern int _nl_msg_cat_cntr;
574
return _nl_msg_cat_cntr]])],
578
dnl On Solaris, if bind_textdomain_codeset is in libc,
579
dnl GNU format message catalog is always supported,
580
dnl since both are added to the libc all together.
581
dnl Hence, we'd like to go with DATADIRNAME=share
583
AC_CHECK_FUNC(bind_textdomain_codeset,
584
[DATADIRNAME=share], [DATADIRNAME=lib])
591
AC_SUBST(DATADIRNAME)
598
# IT_PO_SUBDIR(DIRNAME)
599
# ---------------------
600
# All po subdirs have to be declared with this macro; the subdir "po" is
601
# declared by IT_PROG_INTLTOOL.
603
AC_DEFUN([IT_PO_SUBDIR],
604
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
606
dnl The following CONFIG_COMMANDS should be exetuted at the very end
607
dnl of config.status.
608
AC_CONFIG_COMMANDS_PRE([
609
AC_CONFIG_COMMANDS([$1/stamp-it], [
610
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
611
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
613
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
618
'"s|^| $ac_top_srcdir/|" \
619
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
621
[sed '/^POTFILES =/,/[^\\]$/ {
625
' "$1/Makefile.in" >"$1/Makefile"]
626
rm -f "$1/Makefile.tmp"
627
mv "$1/stamp-it.tmp" "$1/stamp-it"
632
# _IT_SUBST(VARIABLE)
633
# -------------------
634
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
636
AC_DEFUN([_IT_SUBST],
639
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
644
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
645
# A hint is needed for aclocal from Automake <= 1.9.4:
646
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
649
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
651
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
652
# 2006, 2007, 2008 Free Software Foundation, Inc.
653
# Written by Gordon Matzigkeit, 1996
655
# This file is free software; the Free Software Foundation gives
656
# unlimited permission to copy and/or distribute it, with or without
657
# modifications, as long as this notice is preserved.
659
m4_define([_LT_COPYING], [dnl
660
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
661
# 2006, 2007, 2008 Free Software Foundation, Inc.
662
# Written by Gordon Matzigkeit, 1996
664
# This file is part of GNU Libtool.
666
# GNU Libtool is free software; you can redistribute it and/or
667
# modify it under the terms of the GNU General Public License as
668
# published by the Free Software Foundation; either version 2 of
669
# the License, or (at your option) any later version.
671
# As a special exception to the GNU General Public License,
672
# if you distribute this file as part of a program or library that
673
# is built using GNU Libtool, you may include this file under the
674
# same distribution terms that you use for the rest of that program.
676
# GNU Libtool is distributed in the hope that it will be useful,
677
# but WITHOUT ANY WARRANTY; without even the implied warranty of
678
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
679
# GNU General Public License for more details.
681
# You should have received a copy of the GNU General Public License
682
# along with GNU Libtool; see the file COPYING. If not, a copy
683
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
684
# obtained by writing to the Free Software Foundation, Inc.,
685
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
693
# Complain and exit if this libtool version is less that VERSION.
694
m4_defun([LT_PREREQ],
695
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
697
[m4_fatal([Libtool version $1 or higher is required],
704
# Complain if the absolute build directory name contains unusual characters
705
m4_defun([_LT_CHECK_BUILDDIR],
708
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
716
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
717
AC_BEFORE([$0], [LT_LANG])dnl
718
AC_BEFORE([$0], [LT_OUTPUT])dnl
719
AC_BEFORE([$0], [LTDL_INIT])dnl
720
m4_require([_LT_CHECK_BUILDDIR])dnl
722
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
723
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
724
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
725
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
726
dnl unless we require an AC_DEFUNed macro:
727
AC_REQUIRE([LTOPTIONS_VERSION])dnl
728
AC_REQUIRE([LTSUGAR_VERSION])dnl
729
AC_REQUIRE([LTVERSION_VERSION])dnl
730
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
731
m4_require([_LT_PROG_LTMAIN])dnl
734
_LT_SET_OPTIONS([$0], [$1])
736
# This can be used to rebuild libtool when needed
737
LIBTOOL_DEPS="$ltmain"
739
# Always use our own libtool.
740
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
750
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
751
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
752
dnl aclocal-1.4 backwards compatibility:
753
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
754
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
757
# _LT_CC_BASENAME(CC)
758
# -------------------
759
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
760
m4_defun([_LT_CC_BASENAME],
761
[for cc_temp in $1""; do
763
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
764
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
769
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
773
# _LT_FILEUTILS_DEFAULTS
774
# ----------------------
775
# It is okay to use these file commands and assume they have been set
776
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
777
m4_defun([_LT_FILEUTILS_DEFAULTS],
781
])# _LT_FILEUTILS_DEFAULTS
786
m4_defun([_LT_SETUP],
787
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
788
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
789
_LT_DECL([], [host_alias], [0], [The host system])dnl
790
_LT_DECL([], [host], [0])dnl
791
_LT_DECL([], [host_os], [0])dnl
793
_LT_DECL([], [build_alias], [0], [The build system])dnl
794
_LT_DECL([], [build], [0])dnl
795
_LT_DECL([], [build_os], [0])dnl
797
AC_REQUIRE([AC_PROG_CC])dnl
798
AC_REQUIRE([LT_PATH_LD])dnl
799
AC_REQUIRE([LT_PATH_NM])dnl
801
AC_REQUIRE([AC_PROG_LN_S])dnl
802
test -z "$LN_S" && LN_S="ln -s"
803
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
805
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
806
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
807
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
809
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
810
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
811
m4_require([_LT_CMD_RELOAD])dnl
812
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
813
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
814
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
816
_LT_CONFIG_LIBTOOL_INIT([
817
# See if we are running on zsh, and set the options which allow our
818
# commands through without removal of \ escapes INIT.
819
if test -n "\${ZSH_VERSION+set}" ; then
823
if test -n "${ZSH_VERSION+set}" ; then
829
m4_require([_LT_TAG_COMPILER])dnl
830
_LT_PROG_ECHO_BACKSLASH
834
# AIX sometimes has problems with the GCC collect2 program. For some
835
# reason, if we set the COLLECT_NAMES environment variable, the problems
836
# vanish in a puff of smoke.
837
if test "X${COLLECT_NAMES+set}" != Xset; then
844
# Sed substitution that helps us do robust quoting. It backslashifies
845
# metacharacters that are still active within double-quoted strings.
846
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
848
# Same as above, but do not quote variable references.
849
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
851
# Sed substitution to delay expansion of an escaped shell variable in a
852
# double_quote_subst'ed string.
853
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
855
# Sed substitution to delay expansion of an escaped single quote.
856
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
858
# Sed substitution to avoid accidental globbing in evaled expressions
859
no_glob_subst='s/\*/\\\*/g'
865
# All known linkers require a `.a' archive for static linking (except MSVC,
866
# which needs '.lib').
869
with_gnu_ld="$lt_cv_prog_gnu_ld"
874
# Set sane defaults for various variables
875
test -z "$CC" && CC=cc
876
test -z "$LTCC" && LTCC=$CC
877
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
878
test -z "$LD" && LD=ld
879
test -z "$ac_objext" && ac_objext=o
881
_LT_CC_BASENAME([$compiler])
883
# Only perform the check for file, if the check method requires it
884
test -z "$MAGIC_CMD" && MAGIC_CMD=file
885
case $deplibs_check_method in
887
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
893
# Use C for the default configuration in the libtool script
894
LT_SUPPORTED_TAG([CC])
896
_LT_LANG_DEFAULT_CONFIG
903
# Note that this code is called both from `configure', and `config.status'
904
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
905
# `config.status' has no value for ac_aux_dir unless we are using Automake,
906
# so we pass a copy along to make sure it has a sensible value anyway.
907
m4_defun([_LT_PROG_LTMAIN],
908
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
909
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
910
ltmain="$ac_aux_dir/ltmain.sh"
915
# So that we can recreate a full libtool script including additional
916
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
917
# in macros and then make a single call at the end using the `libtool'
921
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
922
# ----------------------------------------
923
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
924
m4_define([_LT_CONFIG_LIBTOOL_INIT],
926
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
931
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
934
# _LT_CONFIG_LIBTOOL([COMMANDS])
935
# ------------------------------
936
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
937
m4_define([_LT_CONFIG_LIBTOOL],
939
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
944
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
947
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
948
# -----------------------------------------------------
949
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
950
[_LT_CONFIG_LIBTOOL([$1])
951
_LT_CONFIG_LIBTOOL_INIT([$2])
955
# _LT_FORMAT_COMMENT([COMMENT])
956
# -----------------------------
957
# Add leading comment marks to the start of each line, and a trailing
958
# full-stop to the whole comment if one is not present already.
959
m4_define([_LT_FORMAT_COMMENT],
961
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
962
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
969
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
970
# -------------------------------------------------------------------
971
# CONFIGNAME is the name given to the value in the libtool script.
972
# VARNAME is the (base) name used in the configure script.
973
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
974
# VARNAME. Any other value will be used directly.
975
m4_define([_LT_DECL],
976
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
977
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
978
[m4_ifval([$1], [$1], [$2])])
979
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
981
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
982
lt_dict_add_subkey([lt_decl_dict], [$2],
983
[tagged?], [m4_ifval([$5], [yes], [no])])])
987
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
988
# --------------------------------------------------------
989
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
992
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
993
# ------------------------------------------------
994
m4_define([lt_decl_tag_varnames],
995
[_lt_decl_filter([tagged?], [yes], $@)])
998
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
999
# ---------------------------------------------------------
1000
m4_define([_lt_decl_filter],
1002
[0], [m4_fatal([$0: too few arguments: $#])],
1003
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1004
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1005
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1006
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1010
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1011
# --------------------------------------------------
1012
m4_define([lt_decl_quote_varnames],
1013
[_lt_decl_filter([value], [1], $@)])
1016
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1017
# ---------------------------------------------------
1018
m4_define([lt_decl_dquote_varnames],
1019
[_lt_decl_filter([value], [2], $@)])
1022
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1023
# ---------------------------------------------------
1024
m4_define([lt_decl_varnames_tagged],
1025
[m4_assert([$# <= 2])dnl
1026
_$0(m4_quote(m4_default([$1], [[, ]])),
1027
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1028
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1029
m4_define([_lt_decl_varnames_tagged],
1030
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1033
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1034
# ------------------------------------------------
1035
m4_define([lt_decl_all_varnames],
1036
[_$0(m4_quote(m4_default([$1], [[, ]])),
1038
m4_quote(lt_decl_varnames),
1039
m4_quote(m4_shift($@))))[]dnl
1041
m4_define([_lt_decl_all_varnames],
1042
[lt_join($@, lt_decl_varnames_tagged([$1],
1043
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1047
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1048
# ------------------------------------
1049
# Quote a variable value, and forward it to `config.status' so that its
1050
# declaration there will have the same value as in `configure'. VARNAME
1051
# must have a single quote delimited value for this to work.
1052
m4_define([_LT_CONFIG_STATUS_DECLARE],
1053
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1056
# _LT_CONFIG_STATUS_DECLARATIONS
1057
# ------------------------------
1058
# We delimit libtool config variables with single quotes, so when
1059
# we write them to config.status, we have to be sure to quote all
1060
# embedded single quotes properly. In configure, this macro expands
1061
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1063
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1064
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1065
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1066
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1071
# Output comment and list of tags supported by the script
1072
m4_defun([_LT_LIBTOOL_TAGS],
1073
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1074
available_tags="_LT_TAGS"dnl
1078
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1079
# -----------------------------------
1080
# Extract the dictionary values for VARNAME (optionally with TAG) and
1081
# expand to a commented shell variable setting:
1083
# # Some comment about what VAR is for.
1084
# visible_name=$lt_internal_name
1085
m4_define([_LT_LIBTOOL_DECLARE],
1086
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1087
[description])))[]dnl
1088
m4_pushdef([_libtool_name],
1089
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1090
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1091
[0], [_libtool_name=[$]$1],
1092
[1], [_libtool_name=$lt_[]$1],
1093
[2], [_libtool_name=$lt_[]$1],
1094
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1095
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1099
# _LT_LIBTOOL_CONFIG_VARS
1100
# -----------------------
1101
# Produce commented declarations of non-tagged libtool config variables
1102
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1103
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1104
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1105
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1106
[m4_foreach([_lt_var],
1107
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1108
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1111
# _LT_LIBTOOL_TAG_VARS(TAG)
1112
# -------------------------
1113
m4_define([_LT_LIBTOOL_TAG_VARS],
1114
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1115
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1118
# _LT_TAGVAR(VARNAME, [TAGNAME])
1119
# ------------------------------
1120
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1123
# _LT_CONFIG_COMMANDS
1124
# -------------------
1125
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1126
# variables for single and double quote escaping we saved from calls
1127
# to _LT_DECL, we can put quote escaped variables declarations
1128
# into `config.status', and then the shell code to quote escape them in
1129
# for loops in `config.status'. Finally, any additional code accumulated
1130
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1131
m4_defun([_LT_CONFIG_COMMANDS],
1132
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1133
dnl If the libtool generation code has been placed in $CONFIG_LT,
1134
dnl instead of duplicating it all over again into config.status,
1135
dnl then we will have config.status run $CONFIG_LT later, so it
1136
dnl needs to know what name is stored there:
1137
[AC_CONFIG_COMMANDS([libtool],
1138
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1139
dnl If the libtool generation code is destined for config.status,
1140
dnl expand the accumulated commands and init code now:
1141
[AC_CONFIG_COMMANDS([libtool],
1142
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1143
])#_LT_CONFIG_COMMANDS
1147
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1150
# The HP-UX ksh and POSIX shell print the target directory to stdout
1152
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1154
sed_quote_subst='$sed_quote_subst'
1155
double_quote_subst='$double_quote_subst'
1156
delay_variable_subst='$delay_variable_subst'
1157
_LT_CONFIG_STATUS_DECLARATIONS
1159
LTCFLAGS='$LTCFLAGS'
1160
compiler='$compiler_DEFAULT'
1162
# Quote evaled strings.
1163
for var in lt_decl_all_varnames([[ \
1164
]], lt_decl_quote_varnames); do
1165
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1166
*[[\\\\\\\`\\"\\\$]]*)
1167
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1170
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1175
# Double-quote double-evaled strings.
1176
for var in lt_decl_all_varnames([[ \
1177
]], lt_decl_dquote_varnames); do
1178
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1179
*[[\\\\\\\`\\"\\\$]]*)
1180
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1183
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1188
# Fix-up fallback echo if it was mangled by the above quoting rules.
1190
*'\\\[$]0 --fallback-echo"')dnl "
1191
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1195
_LT_OUTPUT_LIBTOOL_INIT
1201
# This macro allows early generation of the libtool script (before
1202
# AC_OUTPUT is called), incase it is used in configure for compilation
1204
AC_DEFUN([LT_OUTPUT],
1205
[: ${CONFIG_LT=./config.lt}
1206
AC_MSG_NOTICE([creating $CONFIG_LT])
1207
cat >"$CONFIG_LT" <<_LTEOF
1209
# Generated by $as_me.
1210
# Run this file to recreate a libtool stub with the current configuration.
1213
SHELL=\${CONFIG_SHELL-$SHELL}
1216
cat >>"$CONFIG_LT" <<\_LTEOF
1220
exec AS_MESSAGE_FD>&1
1221
exec AS_MESSAGE_LOG_FD>>config.log
1224
AS_BOX([Running $as_me.])
1225
} >&AS_MESSAGE_LOG_FD
1228
\`$as_me' creates a local libtool stub from the current configuration,
1229
for use in further configure time tests before the real libtool is
1232
Usage: $[0] [[OPTIONS]]
1234
-h, --help print this help, then exit
1235
-V, --version print version number, then exit
1236
-q, --quiet do not print progress messages
1237
-d, --debug don't remove temporary files
1239
Report bugs to <bug-libtool@gnu.org>."
1242
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1243
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1244
configured by $[0], generated by m4_PACKAGE_STRING.
1246
Copyright (C) 2008 Free Software Foundation, Inc.
1247
This config.lt script is free software; the Free Software Foundation
1248
gives unlimited permision to copy, distribute and modify it."
1250
while test $[#] != 0
1253
--version | --v* | -V )
1254
echo "$lt_cl_version"; exit 0 ;;
1255
--help | --h* | -h )
1256
echo "$lt_cl_help"; exit 0 ;;
1257
--debug | --d* | -d )
1259
--quiet | --q* | --silent | --s* | -q )
1262
-*) AC_MSG_ERROR([unrecognized option: $[1]
1263
Try \`$[0] --help' for more information.]) ;;
1265
*) AC_MSG_ERROR([unrecognized argument: $[1]
1266
Try \`$[0] --help' for more information.]) ;;
1271
if $lt_cl_silent; then
1272
exec AS_MESSAGE_FD>/dev/null
1276
cat >>"$CONFIG_LT" <<_LTEOF
1277
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1280
cat >>"$CONFIG_LT" <<\_LTEOF
1281
AC_MSG_NOTICE([creating $ofile])
1282
_LT_OUTPUT_LIBTOOL_COMMANDS
1285
chmod +x "$CONFIG_LT"
1287
# configure is writing to config.log, but config.lt does its own redirection,
1288
# appending to config.log, which fails on DOS, as config.log is still kept
1289
# open by configure. Here we exec the FD to /dev/null, effectively closing
1290
# config.log, so it can be properly (re)opened and appended to by config.lt.
1291
if test "$no_create" != yes; then
1293
test "$silent" = yes &&
1294
lt_config_lt_args="$lt_config_lt_args --quiet"
1295
exec AS_MESSAGE_LOG_FD>/dev/null
1296
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1297
exec AS_MESSAGE_LOG_FD>>config.log
1298
$lt_cl_success || AS_EXIT(1)
1305
# If TAG is the built-in tag, create an initial libtool script with a
1306
# default configuration from the untagged config vars. Otherwise add code
1307
# to config.status for appending the configuration named by TAG from the
1308
# matching tagged config vars.
1309
m4_defun([_LT_CONFIG],
1310
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1311
_LT_CONFIG_SAVE_COMMANDS([
1312
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1313
m4_if(_LT_TAG, [C], [
1314
# See if we are running on zsh, and set the options which allow our
1315
# commands through without removal of \ escapes.
1316
if test -n "${ZSH_VERSION+set}" ; then
1317
setopt NO_GLOB_SUBST
1321
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1324
cat <<_LT_EOF >> "$cfgfile"
1327
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1328
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1329
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1330
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1335
# ### BEGIN LIBTOOL CONFIG
1336
_LT_LIBTOOL_CONFIG_VARS
1337
_LT_LIBTOOL_TAG_VARS
1338
# ### END LIBTOOL CONFIG
1344
cat <<\_LT_EOF >> "$cfgfile"
1345
# AIX sometimes has problems with the GCC collect2 program. For some
1346
# reason, if we set the COLLECT_NAMES environment variable, the problems
1347
# vanish in a puff of smoke.
1348
if test "X${COLLECT_NAMES+set}" != Xset; then
1350
export COLLECT_NAMES
1358
# We use sed instead of cat because bash on DJGPP gets confused if
1359
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1360
# text mode, it properly converts lines to CR/LF. This bash problem
1361
# is reportedly fixed, but why not run on old versions too?
1362
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1363
|| (rm -f "$cfgfile"; exit 1)
1365
_LT_PROG_XSI_SHELLFNS
1367
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1368
|| (rm -f "$cfgfile"; exit 1)
1370
mv -f "$cfgfile" "$ofile" ||
1371
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1374
[cat <<_LT_EOF >> "$ofile"
1376
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1377
dnl in a comment (ie after a #).
1378
# ### BEGIN LIBTOOL TAG CONFIG: $1
1379
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1380
# ### END LIBTOOL TAG CONFIG: $1
1387
TIMESTAMP='$TIMESTAMP'
1389
ofile='$ofile'], [])
1390
])dnl /_LT_CONFIG_SAVE_COMMANDS
1394
# LT_SUPPORTED_TAG(TAG)
1395
# ---------------------
1396
# Trace this macro to discover what tags are supported by the libtool
1397
# --tag option, using:
1398
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1399
AC_DEFUN([LT_SUPPORTED_TAG], [])
1402
# C support is built-in for now
1403
m4_define([_LT_LANG_C_enabled], [])
1404
m4_define([_LT_TAGS], [])
1409
# Enable libtool support for the given language if not already enabled.
1411
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1414
[C++], [_LT_LANG(CXX)],
1415
[Java], [_LT_LANG(GCJ)],
1416
[Fortran 77], [_LT_LANG(F77)],
1417
[Fortran], [_LT_LANG(FC)],
1418
[Windows Resource], [_LT_LANG(RC)],
1419
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1421
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1425
# _LT_LANG(LANGNAME)
1426
# ------------------
1427
m4_defun([_LT_LANG],
1428
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1429
[LT_SUPPORTED_TAG([$1])dnl
1430
m4_append([_LT_TAGS], [$1 ])dnl
1431
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1432
_LT_LANG_$1_CONFIG($1)])dnl
1436
# _LT_LANG_DEFAULT_CONFIG
1437
# -----------------------
1438
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1439
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1441
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1443
AC_PROVIDE_IFELSE([AC_PROG_F77],
1445
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1447
AC_PROVIDE_IFELSE([AC_PROG_FC],
1449
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1451
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1452
dnl pulling things in needlessly.
1453
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1455
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1457
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1459
[m4_ifdef([AC_PROG_GCJ],
1460
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1461
m4_ifdef([A][M_PROG_GCJ],
1462
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1463
m4_ifdef([LT_PROG_GCJ],
1464
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1466
AC_PROVIDE_IFELSE([LT_PROG_RC],
1468
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1469
])# _LT_LANG_DEFAULT_CONFIG
1472
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1473
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1474
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1475
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1476
dnl aclocal-1.4 backwards compatibility:
1477
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1478
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1479
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1480
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1485
m4_defun([_LT_TAG_COMPILER],
1486
[AC_REQUIRE([AC_PROG_CC])dnl
1488
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1489
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1490
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1491
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1493
# If no C compiler was specified, use CC.
1496
# If no C compiler flags were specified, use CFLAGS.
1497
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1499
# Allow CC to be a program name with arguments.
1501
])# _LT_TAG_COMPILER
1504
# _LT_COMPILER_BOILERPLATE
1505
# ------------------------
1506
# Check for compiler boilerplate output or warnings with
1507
# the simple compiler test code.
1508
m4_defun([_LT_COMPILER_BOILERPLATE],
1509
[m4_require([_LT_DECL_SED])dnl
1510
ac_outfile=conftest.$ac_objext
1511
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1512
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1513
_lt_compiler_boilerplate=`cat conftest.err`
1515
])# _LT_COMPILER_BOILERPLATE
1518
# _LT_LINKER_BOILERPLATE
1519
# ----------------------
1520
# Check for linker boilerplate output or warnings with
1521
# the simple link test code.
1522
m4_defun([_LT_LINKER_BOILERPLATE],
1523
[m4_require([_LT_DECL_SED])dnl
1524
ac_outfile=conftest.$ac_objext
1525
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1526
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1527
_lt_linker_boilerplate=`cat conftest.err`
1529
])# _LT_LINKER_BOILERPLATE
1531
# _LT_REQUIRED_DARWIN_CHECKS
1532
# -------------------------
1533
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1535
rhapsody* | darwin*)
1536
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1537
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1538
AC_CHECK_TOOL([LIPO], [lipo], [:])
1539
AC_CHECK_TOOL([OTOOL], [otool], [:])
1540
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1541
_LT_DECL([], [DSYMUTIL], [1],
1542
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1543
_LT_DECL([], [NMEDIT], [1],
1544
[Tool to change global to local symbols on Mac OS X])
1545
_LT_DECL([], [LIPO], [1],
1546
[Tool to manipulate fat objects and archives on Mac OS X])
1547
_LT_DECL([], [OTOOL], [1],
1548
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1549
_LT_DECL([], [OTOOL64], [1],
1550
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1552
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1553
[lt_cv_apple_cc_single_mod=no
1554
if test -z "${LT_MULTI_MODULE}"; then
1555
# By default we will add the -single_module flag. You can override
1556
# by either setting the environment variable LT_MULTI_MODULE
1557
# non-empty at configure time, or by adding -multi_module to the
1559
rm -rf libconftest.dylib*
1560
echo "int foo(void){return 1;}" > conftest.c
1561
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1562
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1563
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1564
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1566
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1567
lt_cv_apple_cc_single_mod=yes
1569
cat conftest.err >&AS_MESSAGE_LOG_FD
1571
rm -rf libconftest.dylib*
1574
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1575
[lt_cv_ld_exported_symbols_list],
1576
[lt_cv_ld_exported_symbols_list=no
1577
save_LDFLAGS=$LDFLAGS
1578
echo "_main" > conftest.sym
1579
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1580
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1581
[lt_cv_ld_exported_symbols_list=yes],
1582
[lt_cv_ld_exported_symbols_list=no])
1583
LDFLAGS="$save_LDFLAGS"
1586
rhapsody* | darwin1.[[012]])
1587
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1589
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1590
darwin*) # darwin 5.x on
1591
# if running on 10.5 or later, the deployment target defaults
1592
# to the OS version, if on x86, and 10.4, the deployment
1593
# target defaults to 10.4. Don't you love it?
1594
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1595
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1596
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1598
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1600
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1604
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1605
_lt_dar_single_mod='$single_module'
1607
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1608
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1610
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1612
if test "$DSYMUTIL" != ":"; then
1613
_lt_dsymutil='~$DSYMUTIL $lib || :'
1622
# _LT_DARWIN_LINKER_FEATURES
1623
# --------------------------
1624
# Checks for linker and compiler features on darwin
1625
m4_defun([_LT_DARWIN_LINKER_FEATURES],
1627
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1628
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
1629
_LT_TAGVAR(hardcode_direct, $1)=no
1630
_LT_TAGVAR(hardcode_automatic, $1)=yes
1631
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1632
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
1633
_LT_TAGVAR(link_all_deplibs, $1)=yes
1634
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1635
case $cc_basename in
1636
ifort*) _lt_dar_can_shared=yes ;;
1637
*) _lt_dar_can_shared=$GCC ;;
1639
if test "$_lt_dar_can_shared" = "yes"; then
1640
output_verbose_link_cmd=echo
1641
_LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1642
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1643
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1644
_LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1646
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1647
_LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1648
_LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1652
_LT_TAGVAR(ld_shlibs, $1)=no
1656
# _LT_SYS_MODULE_PATH_AIX
1657
# -----------------------
1658
# Links a minimal program and checks the executable
1659
# for the system default hardcoded library path. In most cases,
1660
# this is /usr/lib:/lib, but when the MPI compilers are used
1661
# the location of the communication and MPI libs are included too.
1662
# If we don't find anything, use the default library path according
1663
# to the aix ld manual.
1664
m4_defun([_LT_SYS_MODULE_PATH_AIX],
1665
[m4_require([_LT_DECL_SED])dnl
1666
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1667
lt_aix_libpath_sed='
1668
/Import File Strings/,/^$/ {
1674
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1675
# Check for a 64-bit object if we didn't find anything.
1676
if test -z "$aix_libpath"; then
1677
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1679
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1680
])# _LT_SYS_MODULE_PATH_AIX
1683
# _LT_SHELL_INIT(ARG)
1684
# -------------------
1685
m4_define([_LT_SHELL_INIT],
1686
[ifdef([AC_DIVERSION_NOTICE],
1687
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1688
[AC_DIVERT_PUSH(NOTICE)])
1694
# _LT_PROG_ECHO_BACKSLASH
1695
# -----------------------
1696
# Add some code to the start of the generated configure script which
1697
# will find an echo command which doesn't interpret backslashes.
1698
m4_defun([_LT_PROG_ECHO_BACKSLASH],
1700
# Check that we are running under the correct shell.
1701
SHELL=${CONFIG_SHELL-/bin/sh}
1705
# Remove one level of quotation (which was required for Make).
1706
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1710
ECHO=${lt_ECHO-echo}
1711
if test "X[$]1" = X--no-reexec; then
1712
# Discard the --no-reexec flag, and continue.
1714
elif test "X[$]1" = X--fallback-echo; then
1715
# Avoid inline document here, it may be left over
1717
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1718
# Yippee, $ECHO works!
1721
# Restart under the correct shell.
1722
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1725
if test "X[$]1" = X--fallback-echo; then
1726
# used as fallback echo
1734
# The HP-UX ksh and POSIX shell print the target directory to stdout
1736
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1738
if test -z "$lt_ECHO"; then
1739
if test "X${echo_test_string+set}" != Xset; then
1740
# find a string as large as possible, as long as the shell can cope with it
1741
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1742
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1743
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1744
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1751
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1752
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1753
test "X$echo_testing_string" = "X$echo_test_string"; then
1756
# The Solaris, AIX, and Digital Unix default echo programs unquote
1757
# backslashes. This makes it impossible to quote backslashes using
1758
# echo "$something" | sed 's/\\/\\\\/g'
1760
# So, first we look for a working echo in the user's PATH.
1762
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1763
for dir in $PATH /usr/ucb; do
1765
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1766
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1767
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1768
test "X$echo_testing_string" = "X$echo_test_string"; then
1775
if test "X$ECHO" = Xecho; then
1776
# We didn't find a better echo, so look for alternatives.
1777
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1778
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1779
test "X$echo_testing_string" = "X$echo_test_string"; then
1780
# This shell has a builtin print -r that does the trick.
1782
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1783
test "X$CONFIG_SHELL" != X/bin/ksh; then
1784
# If we have ksh, try running configure again with it.
1785
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1786
export ORIGINAL_CONFIG_SHELL
1787
CONFIG_SHELL=/bin/ksh
1789
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1793
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1794
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1795
test "X$echo_testing_string" = "X$echo_test_string"; then
1796
# Cool, printf works
1798
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1799
test "X$echo_testing_string" = 'X\t' &&
1800
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1801
test "X$echo_testing_string" = "X$echo_test_string"; then
1802
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1804
SHELL="$CONFIG_SHELL"
1806
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1807
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1808
test "X$echo_testing_string" = 'X\t' &&
1809
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1810
test "X$echo_testing_string" = "X$echo_test_string"; then
1811
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1813
# maybe with a smaller string...
1816
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1817
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1824
if test "$prev" != 'sed 50q "[$]0"'; then
1825
echo_test_string=`eval $prev`
1826
export echo_test_string
1827
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1829
# Oops. We lost completely, so just stick with echo.
1838
# Copy echo and quote the copy suitably for passing to libtool from
1839
# the Makefile, instead of quoting the original, which is used later.
1841
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1842
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1847
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1848
_LT_DECL([], [ECHO], [1],
1849
[An echo program that does not interpret backslashes])
1850
])# _LT_PROG_ECHO_BACKSLASH
1855
m4_defun([_LT_ENABLE_LOCK],
1856
[AC_ARG_ENABLE([libtool-lock],
1857
[AS_HELP_STRING([--disable-libtool-lock],
1858
[avoid locking (might break parallel builds)])])
1859
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1861
# Some flags need to be propagated to the compiler or linker for good
1865
# Find out which ABI we are using.
1866
echo 'int i;' > conftest.$ac_ext
1867
if AC_TRY_EVAL(ac_compile); then
1868
case `/usr/bin/file conftest.$ac_objext` in
1880
# Find out which ABI we are using.
1881
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1882
if AC_TRY_EVAL(ac_compile); then
1883
if test "$lt_cv_prog_gnu_ld" = yes; then
1884
case `/usr/bin/file conftest.$ac_objext` in
1886
LD="${LD-ld} -melf32bsmip"
1889
LD="${LD-ld} -melf32bmipn32"
1892
LD="${LD-ld} -melf64bmip"
1896
case `/usr/bin/file conftest.$ac_objext` in
1912
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1913
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1914
# Find out which ABI we are using.
1915
echo 'int i;' > conftest.$ac_ext
1916
if AC_TRY_EVAL(ac_compile); then
1917
case `/usr/bin/file conftest.o` in
1920
x86_64-*kfreebsd*-gnu)
1921
LD="${LD-ld} -m elf_i386_fbsd"
1924
LD="${LD-ld} -m elf_i386"
1926
ppc64-*linux*|powerpc64-*linux*)
1927
LD="${LD-ld} -m elf32ppclinux"
1930
LD="${LD-ld} -m elf_s390"
1933
LD="${LD-ld} -m elf32_sparc"
1939
x86_64-*kfreebsd*-gnu)
1940
LD="${LD-ld} -m elf_x86_64_fbsd"
1943
LD="${LD-ld} -m elf_x86_64"
1945
ppc*-*linux*|powerpc*-*linux*)
1946
LD="${LD-ld} -m elf64ppc"
1948
s390*-*linux*|s390*-*tpf*)
1949
LD="${LD-ld} -m elf64_s390"
1952
LD="${LD-ld} -m elf64_sparc"
1962
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
1963
SAVE_CFLAGS="$CFLAGS"
1964
CFLAGS="$CFLAGS -belf"
1965
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1967
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1969
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1970
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1971
CFLAGS="$SAVE_CFLAGS"
1975
# Find out which ABI we are using.
1976
echo 'int i;' > conftest.$ac_ext
1977
if AC_TRY_EVAL(ac_compile); then
1978
case `/usr/bin/file conftest.o` in
1980
case $lt_cv_prog_gnu_ld in
1981
yes*) LD="${LD-ld} -m elf64_sparc" ;;
1983
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1995
need_locks="$enable_libtool_lock"
1999
# _LT_CMD_OLD_ARCHIVE
2000
# -------------------
2001
m4_defun([_LT_CMD_OLD_ARCHIVE],
2002
[AC_CHECK_TOOL(AR, ar, false)
2003
test -z "$AR" && AR=ar
2004
test -z "$AR_FLAGS" && AR_FLAGS=cru
2005
_LT_DECL([], [AR], [1], [The archiver])
2006
_LT_DECL([], [AR_FLAGS], [1])
2008
AC_CHECK_TOOL(STRIP, strip, :)
2009
test -z "$STRIP" && STRIP=:
2010
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2012
AC_CHECK_TOOL(RANLIB, ranlib, :)
2013
test -z "$RANLIB" && RANLIB=:
2014
_LT_DECL([], [RANLIB], [1],
2015
[Commands used to install an old-style archive])
2017
# Determine commands to create old-style static archives.
2018
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2019
old_postinstall_cmds='chmod 644 $oldlib'
2020
old_postuninstall_cmds=
2022
if test -n "$RANLIB"; then
2025
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2028
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2031
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2033
_LT_DECL([], [old_postinstall_cmds], [2])
2034
_LT_DECL([], [old_postuninstall_cmds], [2])
2035
_LT_TAGDECL([], [old_archive_cmds], [2],
2036
[Commands used to build an old-style archive])
2037
])# _LT_CMD_OLD_ARCHIVE
2040
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2041
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2042
# ----------------------------------------------------------------
2043
# Check whether the given compiler option works
2044
AC_DEFUN([_LT_COMPILER_OPTION],
2045
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2046
m4_require([_LT_DECL_SED])dnl
2047
AC_CACHE_CHECK([$1], [$2],
2049
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2050
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2051
lt_compiler_flag="$3"
2052
# Insert the option either (1) after the last *FLAGS variable, or
2053
# (2) before a word containing "conftest.", or (3) at the end.
2054
# Note that $ac_compile itself does not contain backslashes and begins
2055
# with a dollar sign (not a hyphen), so the echo should work correctly.
2056
# The option is referenced via a variable to avoid confusing sed.
2057
lt_compile=`echo "$ac_compile" | $SED \
2058
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2059
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2060
-e 's:$: $lt_compiler_flag:'`
2061
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2062
(eval "$lt_compile" 2>conftest.err)
2064
cat conftest.err >&AS_MESSAGE_LOG_FD
2065
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2066
if (exit $ac_status) && test -s "$ac_outfile"; then
2067
# The compiler can only warn and ignore the option if not recognized
2068
# So say no if there are warnings other than the usual output.
2069
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2070
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2071
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2078
if test x"[$]$2" = xyes; then
2079
m4_if([$5], , :, [$5])
2081
m4_if([$6], , :, [$6])
2083
])# _LT_COMPILER_OPTION
2086
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2087
dnl aclocal-1.4 backwards compatibility:
2088
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2091
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2092
# [ACTION-SUCCESS], [ACTION-FAILURE])
2093
# ----------------------------------------------------
2094
# Check whether the given linker option works
2095
AC_DEFUN([_LT_LINKER_OPTION],
2096
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2097
m4_require([_LT_DECL_SED])dnl
2098
AC_CACHE_CHECK([$1], [$2],
2100
save_LDFLAGS="$LDFLAGS"
2101
LDFLAGS="$LDFLAGS $3"
2102
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2103
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2104
# The linker can only warn and ignore the option if not recognized
2105
# So say no if there are warnings
2106
if test -s conftest.err; then
2107
# Append any errors to the config.log.
2108
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2109
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2110
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2111
if diff conftest.exp conftest.er2 >/dev/null; then
2119
LDFLAGS="$save_LDFLAGS"
2122
if test x"[$]$2" = xyes; then
2123
m4_if([$4], , :, [$4])
2125
m4_if([$5], , :, [$5])
2127
])# _LT_LINKER_OPTION
2130
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2131
dnl aclocal-1.4 backwards compatibility:
2132
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2137
AC_DEFUN([LT_CMD_MAX_LEN],
2138
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2139
# find the maximum length of command line arguments
2140
AC_MSG_CHECKING([the maximum length of command line arguments])
2141
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2147
# On DJGPP, this test can blow up pretty badly due to problems in libc
2148
# (any single argument exceeding 2000 bytes causes a buffer overrun
2149
# during glob expansion). Even if it were fixed, the result of this
2150
# check would be larger than it should be.
2151
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2155
# Under GNU Hurd, this test is not required because there is
2156
# no limit to the length of command line arguments.
2157
# Libtool will interpret -1 as no limit whatsoever
2158
lt_cv_sys_max_cmd_len=-1;
2161
cygwin* | mingw* | cegcc*)
2162
# On Win9x/ME, this test blows up -- it succeeds, but takes
2163
# about 5 minutes as the teststring grows exponentially.
2164
# Worse, since 9x/ME are not pre-emptively multitasking,
2165
# you end up with a "frozen" computer, even though with patience
2166
# the test eventually succeeds (with a max line length of 256k).
2167
# Instead, let's just punt: use the minimum linelength reported by
2168
# all of the supported platforms: 8192 (on NT/2K/XP).
2169
lt_cv_sys_max_cmd_len=8192;
2173
# On AmigaOS with pdksh, this test takes hours, literally.
2174
# So we just punt and use a minimum line length of 8192.
2175
lt_cv_sys_max_cmd_len=8192;
2178
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2179
# This has been around since 386BSD, at least. Likely further.
2180
if test -x /sbin/sysctl; then
2181
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2182
elif test -x /usr/sbin/sysctl; then
2183
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2185
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2187
# And add a safety zone
2188
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2189
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2193
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2194
lt_cv_sys_max_cmd_len=196608
2198
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2199
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2200
# nice to cause kernel panics so lets avoid the loop below.
2201
# First set a reasonable default.
2202
lt_cv_sys_max_cmd_len=16384
2204
if test -x /sbin/sysconfig; then
2205
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2206
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2211
lt_cv_sys_max_cmd_len=102400
2213
sysv5* | sco5v6* | sysv4.2uw2*)
2214
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2215
if test -n "$kargmax"; then
2216
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2218
lt_cv_sys_max_cmd_len=32768
2222
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2223
if test -n "$lt_cv_sys_max_cmd_len"; then
2224
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2225
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2227
# Make teststring a little bigger before we do anything with it.
2228
# a 1K string should be a reasonable start.
2229
for i in 1 2 3 4 5 6 7 8 ; do
2230
teststring=$teststring$teststring
2232
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2233
# If test is not a shell built-in, we'll probably end up computing a
2234
# maximum length that is only half of the actual maximum length, but
2236
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2237
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2238
test $i != 17 # 1/2 MB should be enough
2241
teststring=$teststring$teststring
2243
# Only check the string length outside the loop.
2244
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2246
# Add a significant safety factor because C++ compilers can tack on
2247
# massive amounts of additional arguments before passing them to the
2248
# linker. It appears as though 1/2 is a usable value.
2249
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2254
if test -n $lt_cv_sys_max_cmd_len ; then
2255
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2259
max_cmd_len=$lt_cv_sys_max_cmd_len
2260
_LT_DECL([], [max_cmd_len], [0],
2261
[What is the maximum length of a command?])
2265
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2266
dnl aclocal-1.4 backwards compatibility:
2267
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2272
m4_defun([_LT_HEADER_DLFCN],
2273
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2274
])# _LT_HEADER_DLFCN
2277
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2278
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2279
# ----------------------------------------------------------------
2280
m4_defun([_LT_TRY_DLOPEN_SELF],
2281
[m4_require([_LT_HEADER_DLFCN])dnl
2282
if test "$cross_compiling" = yes; then :
2285
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2286
lt_status=$lt_dlunknown
2287
cat > conftest.$ac_ext <<_LT_EOF
2288
[#line __oline__ "configure"
2289
#include "confdefs.h"
2298
# define LT_DLGLOBAL RTLD_GLOBAL
2301
# define LT_DLGLOBAL DL_GLOBAL
2303
# define LT_DLGLOBAL 0
2307
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2308
find out it does not work in some platform. */
2309
#ifndef LT_DLLAZY_OR_NOW
2311
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2314
# define LT_DLLAZY_OR_NOW DL_LAZY
2317
# define LT_DLLAZY_OR_NOW RTLD_NOW
2320
# define LT_DLLAZY_OR_NOW DL_NOW
2322
# define LT_DLLAZY_OR_NOW 0
2329
void fnord() { int i=42;}
2332
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2333
int status = $lt_dlunknown;
2337
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2338
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2339
/* dlclose (self); */
2347
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2348
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2351
x$lt_dlno_uscore) $1 ;;
2352
x$lt_dlneed_uscore) $2 ;;
2353
x$lt_dlunknown|x*) $3 ;;
2356
# compilation failed
2361
])# _LT_TRY_DLOPEN_SELF
2364
# LT_SYS_DLOPEN_SELF
2365
# ------------------
2366
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2367
[m4_require([_LT_HEADER_DLFCN])dnl
2368
if test "x$enable_dlopen" != xyes; then
2369
enable_dlopen=unknown
2370
enable_dlopen_self=unknown
2371
enable_dlopen_self_static=unknown
2378
lt_cv_dlopen="load_add_on"
2380
lt_cv_dlopen_self=yes
2383
mingw* | pw32* | cegcc*)
2384
lt_cv_dlopen="LoadLibrary"
2389
lt_cv_dlopen="dlopen"
2394
# if libdl is installed we need to link against it
2395
AC_CHECK_LIB([dl], [dlopen],
2396
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2399
lt_cv_dlopen_self=yes
2404
AC_CHECK_FUNC([shl_load],
2405
[lt_cv_dlopen="shl_load"],
2406
[AC_CHECK_LIB([dld], [shl_load],
2407
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2408
[AC_CHECK_FUNC([dlopen],
2409
[lt_cv_dlopen="dlopen"],
2410
[AC_CHECK_LIB([dl], [dlopen],
2411
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2412
[AC_CHECK_LIB([svld], [dlopen],
2413
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2414
[AC_CHECK_LIB([dld], [dld_link],
2415
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2424
if test "x$lt_cv_dlopen" != xno; then
2430
case $lt_cv_dlopen in
2432
save_CPPFLAGS="$CPPFLAGS"
2433
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2435
save_LDFLAGS="$LDFLAGS"
2436
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2439
LIBS="$lt_cv_dlopen_libs $LIBS"
2441
AC_CACHE_CHECK([whether a program can dlopen itself],
2442
lt_cv_dlopen_self, [dnl
2443
_LT_TRY_DLOPEN_SELF(
2444
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2445
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2448
if test "x$lt_cv_dlopen_self" = xyes; then
2449
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2450
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2451
lt_cv_dlopen_self_static, [dnl
2452
_LT_TRY_DLOPEN_SELF(
2453
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2454
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2458
CPPFLAGS="$save_CPPFLAGS"
2459
LDFLAGS="$save_LDFLAGS"
2464
case $lt_cv_dlopen_self in
2465
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2466
*) enable_dlopen_self=unknown ;;
2469
case $lt_cv_dlopen_self_static in
2470
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2471
*) enable_dlopen_self_static=unknown ;;
2474
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2475
[Whether dlopen is supported])
2476
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2477
[Whether dlopen of programs is supported])
2478
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2479
[Whether dlopen of statically linked programs is supported])
2480
])# LT_SYS_DLOPEN_SELF
2483
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2484
dnl aclocal-1.4 backwards compatibility:
2485
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2488
# _LT_COMPILER_C_O([TAGNAME])
2489
# ---------------------------
2490
# Check to see if options -c and -o are simultaneously supported by compiler.
2491
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2492
m4_defun([_LT_COMPILER_C_O],
2493
[m4_require([_LT_DECL_SED])dnl
2494
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2495
m4_require([_LT_TAG_COMPILER])dnl
2496
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2497
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2498
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2499
$RM -r conftest 2>/dev/null
2503
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2505
lt_compiler_flag="-o out/conftest2.$ac_objext"
2506
# Insert the option either (1) after the last *FLAGS variable, or
2507
# (2) before a word containing "conftest.", or (3) at the end.
2508
# Note that $ac_compile itself does not contain backslashes and begins
2509
# with a dollar sign (not a hyphen), so the echo should work correctly.
2510
lt_compile=`echo "$ac_compile" | $SED \
2511
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2512
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2513
-e 's:$: $lt_compiler_flag:'`
2514
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2515
(eval "$lt_compile" 2>out/conftest.err)
2517
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2518
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2519
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2521
# The compiler can only warn and ignore the option if not recognized
2522
# So say no if there are warnings
2523
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2524
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2525
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2526
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2529
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2531
# SGI C++ compiler will create directory out/ii_files/ for
2532
# template instantiation
2533
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2534
$RM out/* && rmdir out
2539
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2540
[Does compiler simultaneously support -c and -o options?])
2541
])# _LT_COMPILER_C_O
2544
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2545
# ----------------------------------
2546
# Check to see if we can do hard links to lock some files if needed
2547
m4_defun([_LT_COMPILER_FILE_LOCKS],
2548
[m4_require([_LT_ENABLE_LOCK])dnl
2549
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2550
_LT_COMPILER_C_O([$1])
2552
hard_links="nottested"
2553
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2554
# do not overwrite the value of need_locks provided by the user
2555
AC_MSG_CHECKING([if we can lock with hard links])
2558
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2560
ln conftest.a conftest.b 2>&5 || hard_links=no
2561
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2562
AC_MSG_RESULT([$hard_links])
2563
if test "$hard_links" = no; then
2564
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2570
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2571
])# _LT_COMPILER_FILE_LOCKS
2576
m4_defun([_LT_CHECK_OBJDIR],
2577
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2578
[rm -f .libs 2>/dev/null
2579
mkdir .libs 2>/dev/null
2580
if test -d .libs; then
2583
# MS-DOS does not allow filenames that begin with a dot.
2586
rmdir .libs 2>/dev/null])
2587
objdir=$lt_cv_objdir
2588
_LT_DECL([], [objdir], [0],
2589
[The name of the directory that contains temporary libtool files])dnl
2590
m4_pattern_allow([LT_OBJDIR])dnl
2591
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2592
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2593
])# _LT_CHECK_OBJDIR
2596
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2597
# --------------------------------------
2598
# Check hardcoding attributes.
2599
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2600
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2601
_LT_TAGVAR(hardcode_action, $1)=
2602
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2603
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2604
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2606
# We can hardcode non-existent directories.
2607
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2608
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2609
# have to relink, otherwise we might link with an installed library
2610
# when we should be linking with a yet-to-be-installed one
2611
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2612
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2613
# Linking always hardcodes the temporary library directory.
2614
_LT_TAGVAR(hardcode_action, $1)=relink
2616
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2617
_LT_TAGVAR(hardcode_action, $1)=immediate
2620
# We cannot hardcode anything, or else we can only hardcode existing
2622
_LT_TAGVAR(hardcode_action, $1)=unsupported
2624
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2626
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2627
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2628
# Fast installation is not supported
2629
enable_fast_install=no
2630
elif test "$shlibpath_overrides_runpath" = yes ||
2631
test "$enable_shared" = no; then
2632
# Fast installation is not necessary
2633
enable_fast_install=needless
2635
_LT_TAGDECL([], [hardcode_action], [0],
2636
[How to hardcode a shared library path into an executable])
2637
])# _LT_LINKER_HARDCODE_LIBPATH
2642
m4_defun([_LT_CMD_STRIPLIB],
2643
[m4_require([_LT_DECL_EGREP])
2646
AC_MSG_CHECKING([whether stripping libraries is possible])
2647
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2648
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2649
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2650
AC_MSG_RESULT([yes])
2652
# FIXME - insert some real tests, host_os isn't really good enough
2655
if test -n "$STRIP" ; then
2656
striplib="$STRIP -x"
2657
old_striplib="$STRIP -S"
2658
AC_MSG_RESULT([yes])
2668
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2669
_LT_DECL([], [striplib], [1])
2670
])# _LT_CMD_STRIPLIB
2673
# _LT_SYS_DYNAMIC_LINKER([TAG])
2674
# -----------------------------
2675
# PORTME Fill in your ld.so characteristics
2676
m4_defun([_LT_SYS_DYNAMIC_LINKER],
2677
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2678
m4_require([_LT_DECL_EGREP])dnl
2679
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2680
m4_require([_LT_DECL_OBJDUMP])dnl
2681
m4_require([_LT_DECL_SED])dnl
2682
AC_MSG_CHECKING([dynamic linker characteristics])
2685
if test "$GCC" = yes; then
2687
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2688
*) lt_awk_arg="/^libraries:/" ;;
2690
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2691
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2692
# if the path contains ";" then we assume it to be the separator
2693
# otherwise default to the standard path separator (i.e. ":") - it is
2694
# assumed that no part of a normal pathname contains ";" but that should
2695
# okay in the real world where ";" in dirpaths is itself problematic.
2696
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2698
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2700
# Ok, now we have the path, separated by spaces, we can step through it
2701
# and add multilib dir if necessary.
2702
lt_tmp_lt_search_path_spec=
2703
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2704
for lt_sys_path in $lt_search_path_spec; do
2705
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2706
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2708
test -d "$lt_sys_path" && \
2709
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2712
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2713
BEGIN {RS=" "; FS="/|\n";} {
2716
for (lt_i = NF; lt_i > 0; lt_i--) {
2717
if ($lt_i != "" && $lt_i != ".") {
2718
if ($lt_i == "..") {
2721
if (lt_count == 0) {
2722
lt_foo="/" $lt_i lt_foo;
2729
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2730
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2732
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2734
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2737
libname_spec='lib$name'
2745
shlibpath_overrides_runpath=unknown
2747
dynamic_linker="$host_os ld.so"
2748
sys_lib_dlsearch_path_spec="/lib /usr/lib"
2749
need_lib_prefix=unknown
2750
hardcode_into_libs=no
2752
# when you set need_version to no, make sure it does not cause -set_version
2753
# flags to be left without arguments
2754
need_version=unknown
2759
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2760
shlibpath_var=LIBPATH
2762
# AIX 3 has no versioning support, so we append a major version to the name.
2763
soname_spec='${libname}${release}${shared_ext}$major'
2770
hardcode_into_libs=yes
2771
if test "$host_cpu" = ia64; then
2772
# AIX 5 supports IA64
2773
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2774
shlibpath_var=LD_LIBRARY_PATH
2776
# With GCC up to 2.95.x, collect2 would create an import file
2777
# for dependence libraries. The import file would start with
2778
# the line `#! .'. This would cause the generated library to
2779
# depend on `.', always an invalid library. This was fixed in
2780
# development snapshots of GCC prior to 3.0.
2782
aix4 | aix4.[[01]] | aix4.[[01]].*)
2783
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2785
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2792
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2793
# soname into executable. Probably we can add versioning support to
2794
# collect2, so additional links can be useful in future.
2795
if test "$aix_use_runtimelinking" = yes; then
2796
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
2797
# instead of lib<name>.a to let people know that these are not
2798
# typical AIX shared libraries.
2799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2801
# We preserve .a as extension for shared libraries through AIX4.2
2802
# and later when we are not doing run time linking.
2803
library_names_spec='${libname}${release}.a $libname.a'
2804
soname_spec='${libname}${release}${shared_ext}$major'
2806
shlibpath_var=LIBPATH
2813
# Since July 2007 AmigaOS4 officially supports .so libraries.
2814
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2815
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2818
library_names_spec='$libname.ixlibrary $libname.a'
2819
# Create ${libname}_ixlibrary.a entries in /sys/libs.
2820
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'
2826
library_names_spec='${libname}${shared_ext}'
2827
dynamic_linker="$host_os ld.so"
2828
shlibpath_var=LIBRARY_PATH
2834
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2835
soname_spec='${libname}${release}${shared_ext}$major'
2836
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2837
shlibpath_var=LD_LIBRARY_PATH
2838
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2839
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2840
# the default ld.so.conf also contains /usr/contrib/lib and
2841
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2842
# libtool to hard-code these into programs
2845
cygwin* | mingw* | pw32* | cegcc*)
2846
version_type=windows
2851
case $GCC,$host_os in
2852
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2853
library_names_spec='$libname.dll.a'
2854
# DLL is installed to $(libdir)/../bin by postinstall_cmds
2855
postinstall_cmds='base_file=`basename \${file}`~
2856
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2857
dldir=$destdir/`dirname \$dlpath`~
2858
test -d \$dldir || mkdir -p \$dldir~
2859
$install_prog $dir/$dlname \$dldir/$dlname~
2860
chmod a+x \$dldir/$dlname~
2861
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2862
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2864
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2865
dlpath=$dir/\$dldll~
2867
shlibpath_overrides_runpath=yes
2871
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
2872
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2873
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2876
# MinGW DLLs use traditional 'lib' prefix
2877
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2878
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2879
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2880
# It is most probably a Windows format PATH printed by
2881
# mingw gcc, but we are running on Cygwin. Gcc prints its search
2882
# path with ; separators, and with drive letters. We can handle the
2883
# drive letters (cygwin fileutils understands them), so leave them,
2884
# especially as we might pass files found there to a mingw objdump,
2885
# which wouldn't understand a cygwinified path. Ahh.
2886
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2888
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2892
# pw32 DLLs use 'pw' prefix rather than 'lib'
2893
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2899
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2902
dynamic_linker='Win32 ld.exe'
2903
# FIXME: first we should search . and the directory the executable is in
2907
darwin* | rhapsody*)
2908
dynamic_linker="$host_os dyld"
2912
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2913
soname_spec='${libname}${release}${major}$shared_ext'
2914
shlibpath_overrides_runpath=yes
2915
shlibpath_var=DYLD_LIBRARY_PATH
2916
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2918
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2919
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2926
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2927
soname_spec='${libname}${release}${shared_ext}$major'
2928
shlibpath_var=LD_LIBRARY_PATH
2935
freebsd* | dragonfly*)
2936
# DragonFly does not have aout. When/if they implement a new
2937
# versioning mechanism, adjust this.
2938
if test -x /usr/bin/objformat; then
2939
objformat=`/usr/bin/objformat`
2942
freebsd[[123]]*) objformat=aout ;;
2946
version_type=freebsd-$objformat
2947
case $version_type in
2949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2954
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2958
shlibpath_var=LD_LIBRARY_PATH
2961
shlibpath_overrides_runpath=yes
2963
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2964
shlibpath_overrides_runpath=yes
2965
hardcode_into_libs=yes
2967
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2968
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2969
shlibpath_overrides_runpath=no
2970
hardcode_into_libs=yes
2972
*) # from 4.6 on, and DragonFly
2973
shlibpath_overrides_runpath=yes
2974
hardcode_into_libs=yes
2983
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2984
soname_spec='${libname}${release}${shared_ext}$major'
2985
shlibpath_var=LD_LIBRARY_PATH
2986
hardcode_into_libs=yes
2989
hpux9* | hpux10* | hpux11*)
2990
# Give a soname corresponding to the major version so that dld.sl refuses to
2991
# link against other versions.
2998
hardcode_into_libs=yes
2999
dynamic_linker="$host_os dld.so"
3000
shlibpath_var=LD_LIBRARY_PATH
3001
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3002
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3003
soname_spec='${libname}${release}${shared_ext}$major'
3004
if test "X$HPUX_IA64_MODE" = X32; then
3005
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3007
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3009
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3013
hardcode_into_libs=yes
3014
dynamic_linker="$host_os dld.sl"
3015
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3016
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3017
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3018
soname_spec='${libname}${release}${shared_ext}$major'
3019
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3020
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3024
dynamic_linker="$host_os dld.sl"
3025
shlibpath_var=SHLIB_PATH
3026
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3028
soname_spec='${libname}${release}${shared_ext}$major'
3031
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3032
postinstall_cmds='chmod 555 $lib'
3039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3040
soname_spec='${libname}${release}${shared_ext}$major'
3041
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3042
shlibpath_var=LD_LIBRARY_PATH
3043
shlibpath_overrides_runpath=no
3044
hardcode_into_libs=yes
3047
irix5* | irix6* | nonstopux*)
3049
nonstopux*) version_type=nonstopux ;;
3051
if test "$lt_cv_prog_gnu_ld" = yes; then
3059
soname_spec='${libname}${release}${shared_ext}$major'
3060
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3062
irix5* | nonstopux*)
3066
case $LD in # libtool.m4 will add one of these switches to LD
3067
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3068
libsuff= shlibsuff= libmagic=32-bit;;
3069
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3070
libsuff=32 shlibsuff=N32 libmagic=N32;;
3071
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3072
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3073
*) libsuff= shlibsuff= libmagic=never-match;;
3077
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3078
shlibpath_overrides_runpath=no
3079
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3080
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3081
hardcode_into_libs=yes
3084
# No shared lib support for Linux oldld, aout, or coff.
3085
linux*oldld* | linux*aout* | linux*coff*)
3089
# This must be Linux ELF.
3090
linux* | k*bsd*-gnu)
3094
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3095
soname_spec='${libname}${release}${shared_ext}$major'
3096
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3097
shlibpath_var=LD_LIBRARY_PATH
3098
shlibpath_overrides_runpath=no
3099
# Some binutils ld are patched to set DT_RUNPATH
3100
save_LDFLAGS=$LDFLAGS
3102
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3103
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3104
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3105
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3106
[shlibpath_overrides_runpath=yes])])
3107
LDFLAGS=$save_LDFLAGS
3110
# This implies no fast_install, which is unacceptable.
3111
# Some rework will be needed to allow for fast_install
3112
# before this can be enabled.
3113
hardcode_into_libs=yes
3115
# Add ABI-specific directories to the system library path.
3116
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
3118
# Append ld.so.conf contents to the search path
3119
if test -f /etc/ld.so.conf; then
3120
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' ' '`
3121
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
3124
# We used to test for /lib/ld.so.1 and disable shared libraries on
3125
# powerpc, because MkLinux only supported shared libraries with the
3126
# GNU dynamic linker. Since this was broken with cross compilers,
3127
# most powerpc-linux boxes support dynamic linking these days and
3128
# people can always --disable-shared, the test was removed, and we
3129
# assume the GNU/Linux dynamic linker is in use.
3130
dynamic_linker='GNU/Linux ld.so'
3137
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3139
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3140
dynamic_linker='NetBSD (a.out) ld.so'
3142
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3143
soname_spec='${libname}${release}${shared_ext}$major'
3144
dynamic_linker='NetBSD ld.elf_so'
3146
shlibpath_var=LD_LIBRARY_PATH
3147
shlibpath_overrides_runpath=yes
3148
hardcode_into_libs=yes
3153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3154
shlibpath_var=LD_LIBRARY_PATH
3155
shlibpath_overrides_runpath=yes
3162
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3163
soname_spec='${libname}${release}${shared_ext}$major'
3164
shlibpath_var=LD_LIBRARY_PATH
3165
shlibpath_overrides_runpath=no
3166
hardcode_into_libs=yes
3167
dynamic_linker='ldqnx.so'
3172
sys_lib_dlsearch_path_spec="/usr/lib"
3174
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3176
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3177
*) need_version=no ;;
3179
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3180
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3181
shlibpath_var=LD_LIBRARY_PATH
3182
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3184
openbsd2.[[89]] | openbsd2.[[89]].*)
3185
shlibpath_overrides_runpath=no
3188
shlibpath_overrides_runpath=yes
3192
shlibpath_overrides_runpath=yes
3197
libname_spec='$name'
3200
library_names_spec='$libname${shared_ext} $libname.a'
3201
dynamic_linker='OS/2 ld.exe'
3202
shlibpath_var=LIBPATH
3205
osf3* | osf4* | osf5*)
3209
soname_spec='${libname}${release}${shared_ext}$major'
3210
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3211
shlibpath_var=LD_LIBRARY_PATH
3212
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3213
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3224
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3225
soname_spec='${libname}${release}${shared_ext}$major'
3226
shlibpath_var=LD_LIBRARY_PATH
3227
shlibpath_overrides_runpath=yes
3228
hardcode_into_libs=yes
3229
# ldd complains unless libraries are executable
3230
postinstall_cmds='chmod +x $lib'
3235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3236
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3237
shlibpath_var=LD_LIBRARY_PATH
3238
shlibpath_overrides_runpath=yes
3239
if test "$with_gnu_ld" = yes; then
3247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3248
soname_spec='${libname}${release}${shared_ext}$major'
3249
shlibpath_var=LD_LIBRARY_PATH
3250
case $host_vendor in
3252
shlibpath_overrides_runpath=no
3254
runpath_var=LD_RUN_PATH
3262
shlibpath_overrides_runpath=no
3263
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3269
if test -d /usr/nec ;then
3271
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3272
soname_spec='$libname${shared_ext}.$major'
3273
shlibpath_var=LD_LIBRARY_PATH
3277
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3278
version_type=freebsd-elf
3281
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3282
soname_spec='${libname}${release}${shared_ext}$major'
3283
shlibpath_var=LD_LIBRARY_PATH
3284
shlibpath_overrides_runpath=yes
3285
hardcode_into_libs=yes
3286
if test "$with_gnu_ld" = yes; then
3287
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3289
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3292
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3296
sys_lib_dlsearch_path_spec='/usr/lib'
3300
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3304
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3305
shlibpath_var=LD_LIBRARY_PATH
3306
shlibpath_overrides_runpath=no
3307
hardcode_into_libs=yes
3312
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3313
soname_spec='${libname}${release}${shared_ext}$major'
3314
shlibpath_var=LD_LIBRARY_PATH
3321
AC_MSG_RESULT([$dynamic_linker])
3322
test "$dynamic_linker" = no && can_build_shared=no
3324
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3325
if test "$GCC" = yes; then
3326
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3329
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3330
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3332
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3333
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3336
_LT_DECL([], [variables_saved_for_relink], [1],
3337
[Variables whose values should be saved in libtool wrapper scripts and
3338
restored at link time])
3339
_LT_DECL([], [need_lib_prefix], [0],
3340
[Do we need the "lib" prefix for modules?])
3341
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3342
_LT_DECL([], [version_type], [0], [Library versioning type])
3343
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3344
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3345
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3346
[Is shlibpath searched before the hard-coded library search path?])
3347
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3348
_LT_DECL([], [library_names_spec], [1],
3349
[[List of archive names. First name is the real one, the rest are links.
3350
The last name is the one that the linker finds with -lNAME]])
3351
_LT_DECL([], [soname_spec], [1],
3352
[[The coded name of the library, if different from the real name]])
3353
_LT_DECL([], [postinstall_cmds], [2],
3354
[Command to use after installation of a shared archive])
3355
_LT_DECL([], [postuninstall_cmds], [2],
3356
[Command to use after uninstallation of a shared archive])
3357
_LT_DECL([], [finish_cmds], [2],
3358
[Commands used to finish a libtool library installation in a directory])
3359
_LT_DECL([], [finish_eval], [1],
3360
[[As "finish_cmds", except a single script fragment to be evaled but
3362
_LT_DECL([], [hardcode_into_libs], [0],
3363
[Whether we should hardcode library paths into libraries])
3364
_LT_DECL([], [sys_lib_search_path_spec], [2],
3365
[Compile-time system search path for libraries])
3366
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3367
[Run-time system search path for libraries])
3368
])# _LT_SYS_DYNAMIC_LINKER
3371
# _LT_PATH_TOOL_PREFIX(TOOL)
3372
# --------------------------
3373
# find a file program which can recognize shared library
3374
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3375
[m4_require([_LT_DECL_EGREP])dnl
3376
AC_MSG_CHECKING([for $1])
3377
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3379
[[\\/*] | ?:[\\/]*])
3380
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3383
lt_save_MAGIC_CMD="$MAGIC_CMD"
3384
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3385
dnl $ac_dummy forces splitting on constant user-supplied paths.
3386
dnl POSIX.2 word splitting is done only on the output of word expansions,
3387
dnl not every word. This closes a longstanding sh security hole.
3388
ac_dummy="m4_if([$2], , $PATH, [$2])"
3389
for ac_dir in $ac_dummy; do
3391
test -z "$ac_dir" && ac_dir=.
3392
if test -f $ac_dir/$1; then
3393
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3394
if test -n "$file_magic_test_file"; then
3395
case $deplibs_check_method in
3397
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3398
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3399
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3400
$EGREP "$file_magic_regex" > /dev/null; then
3405
*** Warning: the command libtool uses to detect shared libraries,
3406
*** $file_magic_cmd, produces output that libtool cannot recognize.
3407
*** The result is that libtool may fail to recognize shared libraries
3408
*** as such. This will affect the creation of libtool libraries that
3409
*** depend on shared libraries, but programs linked with such libtool
3410
*** libraries will work regardless of this problem. Nevertheless, you
3411
*** may want to report the problem to your system manager and/or to
3412
*** bug-libtool@gnu.org
3422
MAGIC_CMD="$lt_save_MAGIC_CMD"
3425
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3426
if test -n "$MAGIC_CMD"; then
3427
AC_MSG_RESULT($MAGIC_CMD)
3431
_LT_DECL([], [MAGIC_CMD], [0],
3432
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3433
])# _LT_PATH_TOOL_PREFIX
3436
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3437
dnl aclocal-1.4 backwards compatibility:
3438
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3443
# find a file program which can recognize a shared library
3444
m4_defun([_LT_PATH_MAGIC],
3445
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3446
if test -z "$lt_cv_path_MAGIC_CMD"; then
3447
if test -n "$ac_tool_prefix"; then
3448
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3458
# find the pathname to the GNU or non-GNU linker
3459
AC_DEFUN([LT_PATH_LD],
3460
[AC_REQUIRE([AC_PROG_CC])dnl
3461
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3462
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3463
m4_require([_LT_DECL_SED])dnl
3464
m4_require([_LT_DECL_EGREP])dnl
3466
AC_ARG_WITH([gnu-ld],
3467
[AS_HELP_STRING([--with-gnu-ld],
3468
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3469
[test "$withval" = no || with_gnu_ld=yes],
3470
[with_gnu_ld=no])dnl
3473
if test "$GCC" = yes; then
3474
# Check if gcc -print-prog-name=ld gives a path.
3475
AC_MSG_CHECKING([for ld used by $CC])
3478
# gcc leaves a trailing carriage return which upsets mingw
3479
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3481
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3484
# Accept absolute paths.
3485
[[\\/]]* | ?:[[\\/]]*)
3486
re_direlt='/[[^/]][[^/]]*/\.\./'
3487
# Canonicalize the pathname of ld
3488
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3489
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3490
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3492
test -z "$LD" && LD="$ac_prog"
3495
# If it fails, then pretend we aren't using GCC.
3499
# If it is relative, then search for the first ld in PATH.
3503
elif test "$with_gnu_ld" = yes; then
3504
AC_MSG_CHECKING([for GNU ld])
3506
AC_MSG_CHECKING([for non-GNU ld])
3508
AC_CACHE_VAL(lt_cv_path_LD,
3509
[if test -z "$LD"; then
3510
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3511
for ac_dir in $PATH; do
3513
test -z "$ac_dir" && ac_dir=.
3514
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3515
lt_cv_path_LD="$ac_dir/$ac_prog"
3516
# Check to see if the program is GNU ld. I'd rather use --version,
3517
# but apparently some variants of GNU ld only accept -v.
3518
# Break only if it was the GNU/non-GNU ld that we prefer.
3519
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3520
*GNU* | *'with BFD'*)
3521
test "$with_gnu_ld" != no && break
3524
test "$with_gnu_ld" != yes && break
3531
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3534
if test -n "$LD"; then
3539
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3543
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3547
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3548
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3549
dnl aclocal-1.4 backwards compatibility:
3550
dnl AC_DEFUN([AM_PROG_LD], [])
3551
dnl AC_DEFUN([AC_PROG_LD], [])
3556
m4_defun([_LT_PATH_LD_GNU],
3557
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3558
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3559
case `$LD -v 2>&1 </dev/null` in
3560
*GNU* | *'with BFD'*)
3561
lt_cv_prog_gnu_ld=yes
3564
lt_cv_prog_gnu_ld=no
3567
with_gnu_ld=$lt_cv_prog_gnu_ld
3573
# find reload flag for linker
3574
# -- PORTME Some linkers may need a different reload flag.
3575
m4_defun([_LT_CMD_RELOAD],
3576
[AC_CACHE_CHECK([for $LD option to reload object files],
3577
lt_cv_ld_reload_flag,
3578
[lt_cv_ld_reload_flag='-r'])
3579
reload_flag=$lt_cv_ld_reload_flag
3580
case $reload_flag in
3582
*) reload_flag=" $reload_flag" ;;
3584
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3587
if test "$GCC" = yes; then
3588
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3590
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3594
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3595
_LT_DECL([], [reload_cmds], [2])dnl
3599
# _LT_CHECK_MAGIC_METHOD
3600
# ----------------------
3601
# how to check for library dependencies
3602
# -- PORTME fill in with the dynamic library characteristics
3603
m4_defun([_LT_CHECK_MAGIC_METHOD],
3604
[m4_require([_LT_DECL_EGREP])
3605
m4_require([_LT_DECL_OBJDUMP])
3606
AC_CACHE_CHECK([how to recognize dependent libraries],
3607
lt_cv_deplibs_check_method,
3608
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3609
lt_cv_file_magic_test_file=
3610
lt_cv_deplibs_check_method='unknown'
3611
# Need to set the preceding variable on all platforms that support
3612
# interlibrary dependencies.
3613
# 'none' -- dependencies not supported.
3614
# `unknown' -- same as none, but documents that we really don't know.
3615
# 'pass_all' -- all dependencies passed with no checks.
3616
# 'test_compile' -- check by making test program.
3617
# 'file_magic [[regex]]' -- check by looking for files in library path
3618
# which responds to the $file_magic_cmd with a given extended regex.
3619
# If you have `file' or equivalent on your system and you're not sure
3620
# whether `pass_all' will *always* work, you probably want this one.
3624
lt_cv_deplibs_check_method=pass_all
3628
lt_cv_deplibs_check_method=pass_all
3632
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3633
lt_cv_file_magic_cmd='/usr/bin/file -L'
3634
lt_cv_file_magic_test_file=/shlib/libc.so
3638
# func_win32_libid is a shell function defined in ltmain.sh
3639
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3640
lt_cv_file_magic_cmd='func_win32_libid'
3644
# Base MSYS/MinGW do not provide the 'file' command needed by
3645
# func_win32_libid shell function, so use a weaker test based on 'objdump',
3646
# unless we find 'file', for example because we are cross-compiling.
3647
if ( file / ) >/dev/null 2>&1; then
3648
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3649
lt_cv_file_magic_cmd='func_win32_libid'
3651
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3652
lt_cv_file_magic_cmd='$OBJDUMP -f'
3657
# use the weaker test based on 'objdump'. See mingw*.
3658
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3659
lt_cv_file_magic_cmd='$OBJDUMP -f'
3662
darwin* | rhapsody*)
3663
lt_cv_deplibs_check_method=pass_all
3666
freebsd* | dragonfly*)
3667
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3670
# Not sure whether the presence of OpenBSD here was a mistake.
3671
# Let's accept both of them until this is cleared up.
3672
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3673
lt_cv_file_magic_cmd=/usr/bin/file
3674
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3678
lt_cv_deplibs_check_method=pass_all
3683
lt_cv_deplibs_check_method=pass_all
3686
hpux10.20* | hpux11*)
3687
lt_cv_file_magic_cmd=/usr/bin/file
3690
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3691
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3694
[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]']
3695
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3698
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3699
lt_cv_file_magic_test_file=/usr/lib/libc.sl
3705
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3706
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3709
irix5* | irix6* | nonstopux*)
3711
*-32|*"-32 ") libmagic=32-bit;;
3712
*-n32|*"-n32 ") libmagic=N32;;
3713
*-64|*"-64 ") libmagic=64-bit;;
3714
*) libmagic=never-match;;
3716
lt_cv_deplibs_check_method=pass_all
3719
# This must be Linux ELF.
3720
linux* | k*bsd*-gnu)
3721
lt_cv_deplibs_check_method=pass_all
3725
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3726
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3728
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3733
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3734
lt_cv_file_magic_cmd=/usr/bin/file
3735
lt_cv_file_magic_test_file=/usr/lib/libnls.so
3739
lt_cv_deplibs_check_method=pass_all
3743
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3744
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3746
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3750
osf3* | osf4* | osf5*)
3751
lt_cv_deplibs_check_method=pass_all
3755
lt_cv_deplibs_check_method=pass_all
3759
lt_cv_deplibs_check_method=pass_all
3762
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3763
lt_cv_deplibs_check_method=pass_all
3767
case $host_vendor in
3769
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]]'
3770
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3773
lt_cv_deplibs_check_method=pass_all
3776
lt_cv_file_magic_cmd='/bin/file'
3777
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3780
lt_cv_file_magic_cmd='/bin/file'
3781
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3782
lt_cv_file_magic_test_file=/lib/libc.so
3785
lt_cv_deplibs_check_method=pass_all
3788
lt_cv_deplibs_check_method=pass_all
3794
lt_cv_deplibs_check_method=pass_all
3798
file_magic_cmd=$lt_cv_file_magic_cmd
3799
deplibs_check_method=$lt_cv_deplibs_check_method
3800
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3802
_LT_DECL([], [deplibs_check_method], [1],
3803
[Method to check whether dependent libraries are shared objects])
3804
_LT_DECL([], [file_magic_cmd], [1],
3805
[Command to use when deplibs_check_method == "file_magic"])
3806
])# _LT_CHECK_MAGIC_METHOD
3811
# find the pathname to a BSD- or MS-compatible name lister
3812
AC_DEFUN([LT_PATH_NM],
3813
[AC_REQUIRE([AC_PROG_CC])dnl
3814
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3815
[if test -n "$NM"; then
3816
# Let the user override the test.
3819
lt_nm_to_check="${ac_tool_prefix}nm"
3820
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3821
lt_nm_to_check="$lt_nm_to_check nm"
3823
for lt_tmp_nm in $lt_nm_to_check; do
3824
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3825
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3827
test -z "$ac_dir" && ac_dir=.
3828
tmp_nm="$ac_dir/$lt_tmp_nm"
3829
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3830
# Check to see if the nm accepts a BSD-compat flag.
3831
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
3832
# nm: unknown option "B" ignored
3833
# Tru64's nm complains that /dev/null is an invalid object file
3834
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3835
*/dev/null* | *'Invalid file or object type'*)
3836
lt_cv_path_NM="$tmp_nm -B"
3840
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3842
lt_cv_path_NM="$tmp_nm -p"
3846
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3847
continue # so that we can try to find one that supports BSD flags
3856
: ${lt_cv_path_NM=no}
3858
if test "$lt_cv_path_NM" != "no"; then
3861
# Didn't find any BSD compatible name lister, look for dumpbin.
3862
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3864
if test "$DUMPBIN" != ":"; then
3868
test -z "$NM" && NM=nm
3870
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3872
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3873
[lt_cv_nm_interface="BSD nm"
3874
echo "int some_variable = 0;" > conftest.$ac_ext
3875
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3876
(eval "$ac_compile" 2>conftest.err)
3877
cat conftest.err >&AS_MESSAGE_LOG_FD
3878
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3879
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3880
cat conftest.err >&AS_MESSAGE_LOG_FD
3881
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3882
cat conftest.out >&AS_MESSAGE_LOG_FD
3883
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3884
lt_cv_nm_interface="MS dumpbin"
3890
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3891
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3892
dnl aclocal-1.4 backwards compatibility:
3893
dnl AC_DEFUN([AM_PROG_NM], [])
3894
dnl AC_DEFUN([AC_PROG_NM], [])
3899
# check for math library
3900
AC_DEFUN([LT_LIB_M],
3901
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3904
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3905
# These system don't have libm, or don't need it
3908
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3909
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3912
AC_CHECK_LIB(m, cos, LIBM="-lm")
3919
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3920
dnl aclocal-1.4 backwards compatibility:
3921
dnl AC_DEFUN([AC_CHECK_LIBM], [])
3924
# _LT_COMPILER_NO_RTTI([TAGNAME])
3925
# -------------------------------
3926
m4_defun([_LT_COMPILER_NO_RTTI],
3927
[m4_require([_LT_TAG_COMPILER])dnl
3929
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3931
if test "$GCC" = yes; then
3932
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3934
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3935
lt_cv_prog_compiler_rtti_exceptions,
3936
[-fno-rtti -fno-exceptions], [],
3937
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3939
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3940
[Compiler flag to turn off builtin functions])
3941
])# _LT_COMPILER_NO_RTTI
3944
# _LT_CMD_GLOBAL_SYMBOLS
3945
# ----------------------
3946
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3947
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3948
AC_REQUIRE([AC_PROG_CC])dnl
3949
AC_REQUIRE([LT_PATH_NM])dnl
3950
AC_REQUIRE([LT_PATH_LD])dnl
3951
m4_require([_LT_DECL_SED])dnl
3952
m4_require([_LT_DECL_EGREP])dnl
3953
m4_require([_LT_TAG_COMPILER])dnl
3955
# Check for command to grab the raw symbol name followed by C symbol from nm.
3956
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3957
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3959
# These are sane defaults that work on at least a few old systems.
3960
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
3962
# Character class describing NM global symbol codes.
3963
symcode='[[BCDEGRST]]'
3965
# Regexp to match symbols that can be accessed directly from C.
3966
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3968
# Define system-specific variables.
3973
cygwin* | mingw* | pw32* | cegcc*)
3974
symcode='[[ABCDGISTW]]'
3977
if test "$host_cpu" = ia64; then
3978
symcode='[[ABCDEGRST]]'
3982
symcode='[[BCDEGRST]]'
3985
symcode='[[BCDEGQRST]]'
3996
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4000
symcode='[[DFNSTU]]'
4004
# If we're using GNU nm, then use its standard symbol codes.
4005
case `$NM -V 2>&1` in
4006
*GNU* | *'with BFD'*)
4007
symcode='[[ABCDGIRSTW]]' ;;
4010
# Transform an extracted symbol line into a proper C declaration.
4011
# Some systems (esp. on ia64) link data and code symbols differently,
4012
# so use this general approach.
4013
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4015
# Transform an extracted symbol line into symbol name and symbol address
4016
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4017
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4019
# Handle CRLF in mingw tool chain
4023
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4027
# Try without a prefix underscore, then with it.
4028
for ac_symprfx in "" "_"; do
4030
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4031
symxfrm="\\1 $ac_symprfx\\2 \\2"
4033
# Write the raw and C identifiers.
4034
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4035
# Fake it for dumpbin and say T for any non-static function
4036
# and D for any global variable.
4037
# Also find C++ and __fastcall symbols from MSVC++,
4038
# which start with @ or ?.
4039
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4040
" {last_section=section; section=\$ 3};"\
4041
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4042
" \$ 0!~/External *\|/{next};"\
4043
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4044
" {if(hide[section]) next};"\
4045
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4046
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4047
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4048
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4049
" ' prfx=^$ac_symprfx]"
4051
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4054
# Check to see that the pipe works correctly.
4058
cat > conftest.$ac_ext <<_LT_EOF
4063
void nm_test_func(void);
4064
void nm_test_func(void){}
4068
int main(){nm_test_var='a';nm_test_func();return(0);}
4071
if AC_TRY_EVAL(ac_compile); then
4072
# Now try to grab the symbols.
4074
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4075
# Try sorting and uniquifying the output.
4076
if sort "$nlist" | uniq > "$nlist"T; then
4077
mv -f "$nlist"T "$nlist"
4082
# Make sure that we snagged all the symbols we need.
4083
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4084
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4085
cat <<_LT_EOF > conftest.$ac_ext
4091
# Now generate the symbol file.
4092
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4094
cat <<_LT_EOF >> conftest.$ac_ext
4096
/* The mapping between symbol names and symbols. */
4101
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4103
{ "@PROGRAM@", (void *) 0 },
4105
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4106
cat <<\_LT_EOF >> conftest.$ac_ext
4110
/* This works around a problem in FreeBSD linker */
4111
#ifdef FREEBSD_WORKAROUND
4112
static const void *lt_preloaded_setup() {
4113
return lt__PROGRAM__LTX_preloaded_symbols;
4121
# Now try linking the two files.
4122
mv conftest.$ac_objext conftstm.$ac_objext
4123
lt_save_LIBS="$LIBS"
4124
lt_save_CFLAGS="$CFLAGS"
4125
LIBS="conftstm.$ac_objext"
4126
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4127
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4130
LIBS="$lt_save_LIBS"
4131
CFLAGS="$lt_save_CFLAGS"
4133
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4136
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4139
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4142
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4143
cat conftest.$ac_ext >&5
4145
rm -rf conftest* conftst*
4147
# Do not use the global_symbol_pipe unless it works.
4148
if test "$pipe_works" = yes; then
4151
lt_cv_sys_global_symbol_pipe=
4155
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4156
lt_cv_sys_global_symbol_to_cdecl=
4158
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4159
AC_MSG_RESULT(failed)
4164
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4165
[Take the output of nm and produce a listing of raw symbols and C names])
4166
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4167
[Transform the output of nm in a proper C declaration])
4168
_LT_DECL([global_symbol_to_c_name_address],
4169
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4170
[Transform the output of nm in a C name address pair])
4171
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4172
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4173
[Transform the output of nm in a C name address pair when lib prefix is needed])
4174
]) # _LT_CMD_GLOBAL_SYMBOLS
4177
# _LT_COMPILER_PIC([TAGNAME])
4178
# ---------------------------
4179
m4_defun([_LT_COMPILER_PIC],
4180
[m4_require([_LT_TAG_COMPILER])dnl
4181
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4182
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4183
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4185
AC_MSG_CHECKING([for $compiler option to produce PIC])
4186
m4_if([$1], [CXX], [
4187
# C++ specific cases for pic, static, wl, etc.
4188
if test "$GXX" = yes; then
4189
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4190
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4194
# All AIX code is PIC.
4195
if test "$host_cpu" = ia64; then
4196
# AIX 5 now supports IA64 processor
4197
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4204
# see comment about AmigaOS4 .so support
4205
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4208
# FIXME: we need at least 68020 code to build shared libraries, but
4209
# adding the `-m68020' flag to GCC prevents building anything better,
4211
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4216
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4217
# PIC is the default for these OSes.
4219
mingw* | cygwin* | os2* | pw32* | cegcc*)
4220
# This hack is so that the source file can tell whether it is being
4221
# built for inclusion in a dll (and should export symbols for example).
4222
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4223
# (--disable-auto-import) libraries
4224
m4_if([$1], [GCJ], [],
4225
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4227
darwin* | rhapsody*)
4228
# PIC is the default on this platform
4229
# Common symbols not allowed in MH_DYLIB files
4230
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4233
# DJGPP does not support shared libraries at all
4234
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4237
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4238
# Instead, we relocate shared libraries at runtime.
4241
if test -d /usr/nec; then
4242
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4246
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4247
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4248
# sets the default TLS model and affects inlining.
4253
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4258
# QNX uses GNU C++, but need to define -shared option too, otherwise
4260
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4263
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4269
# All AIX code is PIC.
4270
if test "$host_cpu" = ia64; then
4271
# AIX 5 now supports IA64 processor
4272
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4274
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4278
case $cc_basename in
4280
# Green Hills C++ Compiler
4281
# _LT_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"
4286
case $cc_basename in
4288
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4291
# Green Hills C++ Compiler
4292
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4298
freebsd* | dragonfly*)
4299
# FreeBSD uses GNU C++
4301
hpux9* | hpux10* | hpux11*)
4302
case $cc_basename in
4304
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4305
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4306
if test "$host_cpu" != ia64; then
4307
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4311
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4312
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4318
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4327
# This is c89, which is MS Visual C++ (no shared libs)
4328
# Anyone wants to do a port?
4330
irix5* | irix6* | nonstopux*)
4331
case $cc_basename in
4333
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4334
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4335
# CC pic flag -KPIC is the default.
4341
linux* | k*bsd*-gnu)
4342
case $cc_basename in
4345
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4346
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4349
# old Intel C++ for x86_64 which still supported -KPIC.
4350
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4351
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4352
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4355
# Intel C++, used to be incompatible with GCC.
4356
# ICC 10 doesn't accept -KPIC any more.
4357
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4358
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4359
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4362
# Portland Group C++ compiler
4363
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4364
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4365
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4369
# Make sure the PIC flag is empty. It appears that all Alpha
4370
# Linux and Compaq Tru64 Unix objects are PIC.
4371
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4372
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4376
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4377
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4378
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4381
case `$CC -V 2>&1 | sed 5q` in
4384
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4385
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4386
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4397
case $cc_basename in
4399
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4408
# QNX uses GNU C++, but need to define -shared option too, otherwise
4410
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4412
osf3* | osf4* | osf5*)
4413
case $cc_basename in
4415
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4418
# Rational C++ 2.4.1
4419
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4422
# Digital/Compaq C++
4423
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4424
# Make sure the PIC flag is empty. It appears that all Alpha
4425
# Linux and Compaq Tru64 Unix objects are PIC.
4426
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4427
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4436
case $cc_basename in
4438
# Sun C++ 4.2, 5.x and Centerline C++
4439
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4440
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4441
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4444
# Green Hills C++ Compiler
4445
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4452
case $cc_basename in
4455
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4456
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4460
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4466
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4467
case $cc_basename in
4469
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4470
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4471
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4476
case $cc_basename in
4478
# NonStop-UX NCC 3.20
4479
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4488
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4494
if test "$GCC" = yes; then
4495
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4496
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4500
# All AIX code is PIC.
4501
if test "$host_cpu" = ia64; then
4502
# AIX 5 now supports IA64 processor
4503
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4510
# see comment about AmigaOS4 .so support
4511
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4514
# FIXME: we need at least 68020 code to build shared libraries, but
4515
# adding the `-m68020' flag to GCC prevents building anything better,
4517
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4522
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4523
# PIC is the default for these OSes.
4526
mingw* | cygwin* | pw32* | os2* | cegcc*)
4527
# This hack is so that the source file can tell whether it is being
4528
# built for inclusion in a dll (and should export symbols for example).
4529
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4530
# (--disable-auto-import) libraries
4531
m4_if([$1], [GCJ], [],
4532
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4535
darwin* | rhapsody*)
4536
# PIC is the default on this platform
4537
# Common symbols not allowed in MH_DYLIB files
4538
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4542
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4543
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4544
# sets the default TLS model and affects inlining.
4550
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4556
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4557
# Instead, we relocate shared libraries at runtime.
4561
# Just because we use GCC doesn't mean we suddenly get shared libraries
4562
# on systems that don't support them.
4563
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4568
# QNX uses GNU C++, but need to define -shared option too, otherwise
4570
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4574
if test -d /usr/nec; then
4575
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4580
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4584
# PORTME Check for flag to pass linker flags through the system compiler.
4587
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4588
if test "$host_cpu" = ia64; then
4589
# AIX 5 now supports IA64 processor
4590
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4592
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4596
mingw* | cygwin* | pw32* | os2* | cegcc*)
4597
# This hack is so that the source file can tell whether it is being
4598
# built for inclusion in a dll (and should export symbols for example).
4599
m4_if([$1], [GCJ], [],
4600
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4603
hpux9* | hpux10* | hpux11*)
4604
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4605
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4612
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4615
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4616
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4619
irix5* | irix6* | nonstopux*)
4620
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4621
# PIC (with -KPIC) is the default.
4622
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4625
linux* | k*bsd*-gnu)
4626
case $cc_basename in
4627
# old Intel for x86_64 which still supported -KPIC.
4629
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4630
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4631
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4633
# icc used to be incompatible with GCC.
4634
# ICC 10 doesn't accept -KPIC any more.
4636
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4637
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4638
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4640
# Lahey Fortran 8.1.
4642
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4643
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4644
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4646
pgcc* | pgf77* | pgf90* | pgf95*)
4647
# Portland Group compilers (*not* the Pentium gcc compiler,
4648
# which looks to be a dead project)
4649
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4650
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4651
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4654
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4655
# All Alpha code is PIC.
4656
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4659
# IBM XL C 8.0/Fortran 10.1 on PPC
4660
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4661
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4662
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4665
case `$CC -V 2>&1 | sed 5q` in
4668
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4669
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4670
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4673
# Sun Fortran 8.3 passes all unrecognized flags to the linker
4674
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4675
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4676
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4684
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4685
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4689
# QNX uses GNU C++, but need to define -shared option too, otherwise
4691
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4694
osf3* | osf4* | osf5*)
4695
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4696
# All OSF/1 code is PIC.
4697
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4701
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4705
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4706
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4707
case $cc_basename in
4709
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4711
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4716
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4717
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4718
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4721
sysv4 | sysv4.2uw2* | sysv4.3*)
4722
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4723
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4724
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4728
if test -d /usr/nec ;then
4729
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4730
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4734
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4735
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4736
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4737
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4741
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4746
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4747
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4751
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4757
# For platforms which do not support PIC, -DPIC is meaningless:
4759
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4762
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4765
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4766
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4767
[How to pass a linker flag through the compiler])
4770
# Check to make sure the PIC flag actually works.
4772
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4773
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4774
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4775
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4776
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4778
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4780
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4781
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4783
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4784
[Additional compiler flags for building library objects])
4787
# Check to make sure the static flag actually works.
4789
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4790
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4791
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4792
$lt_tmp_static_flag,
4794
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4795
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4796
[Compiler flag to prevent dynamic linking])
4797
])# _LT_COMPILER_PIC
4800
# _LT_LINKER_SHLIBS([TAGNAME])
4801
# ----------------------------
4802
# See if the linker supports building shared libraries.
4803
m4_defun([_LT_LINKER_SHLIBS],
4804
[AC_REQUIRE([LT_PATH_LD])dnl
4805
AC_REQUIRE([LT_PATH_NM])dnl
4806
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4807
m4_require([_LT_DECL_EGREP])dnl
4808
m4_require([_LT_DECL_SED])dnl
4809
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4810
m4_require([_LT_TAG_COMPILER])dnl
4811
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4812
m4_if([$1], [CXX], [
4813
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4816
# If we're using GNU nm, then we don't want the "-C" option.
4817
# -C means demangle to AIX nm, but means don't demangle with GNU nm
4818
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4819
_LT_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'
4821
_LT_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'
4825
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4827
cygwin* | mingw* | cegcc*)
4828
_LT_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'
4831
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4834
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4837
_LT_TAGVAR(allow_undefined_flag, $1)=
4838
_LT_TAGVAR(always_export_symbols, $1)=no
4839
_LT_TAGVAR(archive_cmds, $1)=
4840
_LT_TAGVAR(archive_expsym_cmds, $1)=
4841
_LT_TAGVAR(compiler_needs_object, $1)=no
4842
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4843
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
4844
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4845
_LT_TAGVAR(hardcode_automatic, $1)=no
4846
_LT_TAGVAR(hardcode_direct, $1)=no
4847
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
4848
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4849
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4850
_LT_TAGVAR(hardcode_libdir_separator, $1)=
4851
_LT_TAGVAR(hardcode_minus_L, $1)=no
4852
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4853
_LT_TAGVAR(inherit_rpath, $1)=no
4854
_LT_TAGVAR(link_all_deplibs, $1)=unknown
4855
_LT_TAGVAR(module_cmds, $1)=
4856
_LT_TAGVAR(module_expsym_cmds, $1)=
4857
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
4858
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4859
_LT_TAGVAR(thread_safe_flag_spec, $1)=
4860
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4861
# include_expsyms should be a list of space-separated symbols to be *always*
4862
# included in the symbol list
4863
_LT_TAGVAR(include_expsyms, $1)=
4864
# exclude_expsyms can be an extended regexp of symbols to exclude
4865
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4866
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4867
# as well as any symbol that contains `d'.
4868
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4869
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4870
# platforms (ab)use it in PIC code, but their linkers get confused if
4871
# the symbol is explicitly referenced. Since portable code cannot
4872
# rely on this symbol name, it's probably fine to never include it in
4873
# preloaded symbol tables.
4874
# Exclude shared library initialization/finalization symbols.
4875
dnl Note also adjust exclude_expsyms for C++ above.
4876
extract_expsyms_cmds=
4879
cygwin* | mingw* | pw32* | cegcc*)
4880
# FIXME: the MSVC++ port hasn't been tested in a loooong time
4881
# When not using gcc, we currently assume that we are using
4882
# Microsoft Visual C++.
4883
if test "$GCC" != yes; then
4888
# we just hope/assume this is gcc and not c89 (= MSVC++)
4896
_LT_TAGVAR(ld_shlibs, $1)=yes
4897
if test "$with_gnu_ld" = yes; then
4898
# If archive_cmds runs LD, not CC, wlarc should be empty
4901
# Set some defaults for GNU ld with shared library support. These
4902
# are reset later if shared libraries are not supported. Putting them
4903
# here allows them to be overridden if necessary.
4904
runpath_var=LD_RUN_PATH
4905
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4906
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4907
# ancient GNU ld didn't support --whole-archive et. al.
4908
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4909
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4911
_LT_TAGVAR(whole_archive_flag_spec, $1)=
4913
supports_anon_versioning=no
4914
case `$LD -v 2>&1` in
4915
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4916
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4917
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4918
*\ 2.11.*) ;; # other 2.11 versions
4919
*) supports_anon_versioning=yes ;;
4922
# See if GNU ld supports shared libraries.
4925
# On AIX/PPC, the GNU linker is very broken
4926
if test "$host_cpu" != ia64; then
4927
_LT_TAGVAR(ld_shlibs, $1)=no
4930
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4931
*** to be unable to reliably create shared libraries on AIX.
4932
*** Therefore, libtool is disabling shared libraries support. If you
4933
*** really care for shared libraries, you may want to modify your PATH
4934
*** so that a non-GNU linker is found, and then restart.
4943
# see comment about AmigaOS4 .so support
4944
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4945
_LT_TAGVAR(archive_expsym_cmds, $1)=''
4948
_LT_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)'
4949
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4950
_LT_TAGVAR(hardcode_minus_L, $1)=yes
4956
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
4957
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4958
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4959
# support --undefined. This deserves some investigation. FIXME
4960
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4962
_LT_TAGVAR(ld_shlibs, $1)=no
4966
cygwin* | mingw* | pw32* | cegcc*)
4967
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4968
# as there is no search path for DLLs.
4969
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4970
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
4971
_LT_TAGVAR(always_export_symbols, $1)=no
4972
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4973
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
4975
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
4976
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4977
# If the export-symbols file already is a .def file (1st line
4978
# is EXPORTS), use it as is; otherwise, prepend...
4979
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4980
cp $export_symbols $output_objdir/$soname.def;
4982
echo EXPORTS > $output_objdir/$soname.def;
4983
cat $export_symbols >> $output_objdir/$soname.def;
4985
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4987
_LT_TAGVAR(ld_shlibs, $1)=no
4992
_LT_TAGVAR(hardcode_direct, $1)=no
4993
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
4994
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4995
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4996
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4997
# Instead, shared libraries are loaded at an image base (0x10000000 by
4998
# default) and relocated if they conflict, which is a slow very memory
4999
# consuming and fragmenting process. To avoid this, we pick a random,
5000
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5001
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5002
_LT_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'
5003
_LT_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'
5006
gnu* | linux* | tpf* | k*bsd*-gnu)
5008
if test "$host_os" = linux-dietlibc; then
5009
case $cc_basename in
5010
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5013
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5014
&& test "$tmp_diet" = no
5017
tmp_sharedflag='-shared'
5018
case $cc_basename,$host_cpu in
5019
pgcc*) # Portland Group C compiler
5020
_LT_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'
5021
tmp_addflag=' $pic_flag'
5023
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5024
_LT_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'
5025
tmp_addflag=' $pic_flag -Mnomain' ;;
5026
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5027
tmp_addflag=' -i_dynamic' ;;
5028
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5029
tmp_addflag=' -i_dynamic -nofor_main' ;;
5030
ifc* | ifort*) # Intel Fortran compiler
5031
tmp_addflag=' -nofor_main' ;;
5032
lf95*) # Lahey Fortran 8.1
5033
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5034
tmp_sharedflag='--shared' ;;
5035
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5036
tmp_sharedflag='-qmkshrobj'
5039
case `$CC -V 2>&1 | sed 5q` in
5040
*Sun\ C*) # Sun C 5.9
5041
_LT_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'
5042
_LT_TAGVAR(compiler_needs_object, $1)=yes
5043
tmp_sharedflag='-G' ;;
5044
*Sun\ F*) # Sun Fortran 8.3
5045
tmp_sharedflag='-G' ;;
5047
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5049
if test "x$supports_anon_versioning" = xyes; then
5050
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5051
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5052
echo "local: *; };" >> $output_objdir/$libname.ver~
5053
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5056
case $cc_basename in
5058
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5059
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5060
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5061
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5062
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5063
if test "x$supports_anon_versioning" = xyes; then
5064
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5065
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5066
echo "local: *; };" >> $output_objdir/$libname.ver~
5067
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5072
_LT_TAGVAR(ld_shlibs, $1)=no
5077
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5078
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5081
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5082
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5087
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5088
_LT_TAGVAR(ld_shlibs, $1)=no
5091
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5092
*** create shared libraries on Solaris systems. Therefore, libtool
5093
*** is disabling shared libraries support. We urge you to upgrade GNU
5094
*** binutils to release 2.9.1 or newer. Another option is to modify
5095
*** your PATH or compiler configuration so that the native linker is
5096
*** used, and then restart.
5099
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5100
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5101
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5103
_LT_TAGVAR(ld_shlibs, $1)=no
5107
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5108
case `$LD -v 2>&1` in
5109
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5110
_LT_TAGVAR(ld_shlibs, $1)=no
5113
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5114
*** reliably create shared libraries on SCO systems. Therefore, libtool
5115
*** is disabling shared libraries support. We urge you to upgrade GNU
5116
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5117
*** your PATH or compiler configuration so that the native linker is
5118
*** used, and then restart.
5123
# For security reasons, it is highly recommended that you always
5124
# use absolute paths for naming shared libraries, and exclude the
5125
# DT_RUNPATH tag from executables and libraries. But doing so
5126
# requires that you compile everything twice, which is a pain.
5127
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5128
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5129
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5130
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5132
_LT_TAGVAR(ld_shlibs, $1)=no
5139
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5141
_LT_TAGVAR(hardcode_direct, $1)=yes
5142
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5146
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5147
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5148
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5150
_LT_TAGVAR(ld_shlibs, $1)=no
5155
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5157
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5158
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5159
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5162
# PORTME fill in a description of your system's linker (not GNU ld)
5165
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5166
_LT_TAGVAR(always_export_symbols, $1)=yes
5167
_LT_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'
5168
# Note: this linker hardcodes the directories in LIBPATH if there
5169
# are no directories specified by -L.
5170
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5171
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5172
# Neither direct hardcoding nor static linking is supported with a
5174
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5179
if test "$host_cpu" = ia64; then
5180
# On IA64, the linker does run time linking by default, so we don't
5181
# have to do anything special.
5182
aix_use_runtimelinking=no
5183
exp_sym_flag='-Bexport'
5186
# If we're using GNU nm, then we don't want the "-C" option.
5187
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5188
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5189
_LT_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'
5191
_LT_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'
5193
aix_use_runtimelinking=no
5195
# Test if we are trying to use run time linking or normal
5196
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5197
# need to do runtime linking.
5198
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5199
for ld_flag in $LDFLAGS; do
5200
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5201
aix_use_runtimelinking=yes
5208
exp_sym_flag='-bexport'
5209
no_entry_flag='-bnoentry'
5212
# When large executables or shared objects are built, AIX ld can
5213
# have problems creating the table of contents. If linking a library
5214
# or program results in "error TOC overflow" add -mminimal-toc to
5215
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5216
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5218
_LT_TAGVAR(archive_cmds, $1)=''
5219
_LT_TAGVAR(hardcode_direct, $1)=yes
5220
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5221
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5222
_LT_TAGVAR(link_all_deplibs, $1)=yes
5223
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5225
if test "$GCC" = yes; then
5226
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5227
# We only want to do this on AIX 4.2 and lower, the check
5228
# below for broken collect2 doesn't work under 4.3+
5229
collect2name=`${CC} -print-prog-name=collect2`
5230
if test -f "$collect2name" &&
5231
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5233
# We have reworked collect2
5236
# We have old collect2
5237
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5238
# It fails to find uninstalled libraries when the uninstalled
5239
# path is not listed in the libpath. Setting hardcode_minus_L
5240
# to unsupported forces relinking
5241
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5242
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5243
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5247
shared_flag='-shared'
5248
if test "$aix_use_runtimelinking" = yes; then
5249
shared_flag="$shared_flag "'${wl}-G'
5253
if test "$host_cpu" = ia64; then
5254
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5255
# chokes on -Wl,-G. The following line is correct:
5258
if test "$aix_use_runtimelinking" = yes; then
5259
shared_flag='${wl}-G'
5261
shared_flag='${wl}-bM:SRE'
5266
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5267
# It seems that -bexpall does not export symbols beginning with
5268
# underscore (_), so it is better to generate a list of symbols to export.
5269
_LT_TAGVAR(always_export_symbols, $1)=yes
5270
if test "$aix_use_runtimelinking" = yes; then
5271
# Warning - without using the other runtime loading flags (-brtl),
5272
# -berok will link without error, but may produce a broken library.
5273
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5274
# Determine the default libpath from the value encoded in an
5276
_LT_SYS_MODULE_PATH_AIX
5277
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5278
_LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5280
if test "$host_cpu" = ia64; then
5281
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5282
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5283
_LT_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"
5285
# Determine the default libpath from the value encoded in an
5287
_LT_SYS_MODULE_PATH_AIX
5288
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5289
# Warning - without using the other run time loading flags,
5290
# -berok will link without error, but may produce a broken library.
5291
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5292
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5293
# Exported symbols can be pulled into shared objects from archives
5294
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5295
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5296
# This is similar to how AIX traditionally builds its shared libraries.
5297
_LT_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'
5305
# see comment about AmigaOS4 .so support
5306
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5307
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5310
_LT_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)'
5311
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5312
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5318
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5321
cygwin* | mingw* | pw32* | cegcc*)
5322
# When not using gcc, we currently assume that we are using
5323
# Microsoft Visual C++.
5324
# hardcode_libdir_flag_spec is actually meaningless, as there is
5325
# no search path for DLLs.
5326
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5327
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5328
# Tell ltmain to make .lib files, not .a files.
5330
# Tell ltmain to make .dll files, not .so files.
5332
# FIXME: Setting linknames here is a bad hack.
5333
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5334
# The linker will automatically build a .lib file if we build a DLL.
5335
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5336
# FIXME: Should let the user specify the lib program.
5337
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5338
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5339
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5342
darwin* | rhapsody*)
5343
_LT_DARWIN_LINKER_FEATURES($1)
5347
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5348
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5349
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5353
_LT_TAGVAR(ld_shlibs, $1)=no
5356
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5357
# support. Future versions do this automatically, but an explicit c++rt0.o
5358
# does not break anything, and helps significantly (at the cost of a little
5361
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5362
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5363
_LT_TAGVAR(hardcode_direct, $1)=yes
5364
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5367
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5369
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5370
_LT_TAGVAR(hardcode_direct, $1)=yes
5371
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5372
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5375
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5376
freebsd* | dragonfly*)
5377
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5378
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5379
_LT_TAGVAR(hardcode_direct, $1)=yes
5380
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5384
if test "$GCC" = yes; then
5385
_LT_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'
5387
_LT_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'
5389
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5390
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5391
_LT_TAGVAR(hardcode_direct, $1)=yes
5393
# hardcode_minus_L: Not really in the search PATH,
5394
# but as the default location of the library.
5395
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5396
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5400
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5401
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5403
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5405
if test "$with_gnu_ld" = no; then
5406
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5407
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5408
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5409
_LT_TAGVAR(hardcode_direct, $1)=yes
5410
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5411
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5412
# hardcode_minus_L: Not really in the search PATH,
5413
# but as the default location of the library.
5414
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5419
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5422
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5425
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5428
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5434
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5437
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5440
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5444
if test "$with_gnu_ld" = no; then
5445
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5446
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5450
_LT_TAGVAR(hardcode_direct, $1)=no
5451
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5454
_LT_TAGVAR(hardcode_direct, $1)=yes
5455
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5456
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5458
# hardcode_minus_L: Not really in the search PATH,
5459
# but as the default location of the library.
5460
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5466
irix5* | irix6* | nonstopux*)
5467
if test "$GCC" = yes; then
5468
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5469
# Try to use the -exported_symbol ld option, if it does not
5470
# work, assume that -exports_file does not work either and
5471
# implicitly export all symbols.
5472
save_LDFLAGS="$LDFLAGS"
5473
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5474
AC_LINK_IFELSE(int foo(void) {},
5475
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
5477
LDFLAGS="$save_LDFLAGS"
5479
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5480
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
5482
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5483
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5484
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5485
_LT_TAGVAR(inherit_rpath, $1)=yes
5486
_LT_TAGVAR(link_all_deplibs, $1)=yes
5490
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5491
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5493
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5495
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5496
_LT_TAGVAR(hardcode_direct, $1)=yes
5497
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5501
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5502
_LT_TAGVAR(hardcode_direct, $1)=yes
5503
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5504
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5505
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5512
if test -f /usr/libexec/ld.so; then
5513
_LT_TAGVAR(hardcode_direct, $1)=yes
5514
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5515
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5516
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5517
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5518
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5519
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5520
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5523
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5524
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5525
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5528
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5529
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5534
_LT_TAGVAR(ld_shlibs, $1)=no
5539
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5540
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5541
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5542
_LT_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'
5543
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5547
if test "$GCC" = yes; then
5548
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5549
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5551
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5552
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5554
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5555
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5556
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5559
osf4* | osf5*) # as osf3* with the addition of -msym flag
5560
if test "$GCC" = yes; then
5561
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5562
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5563
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5565
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5566
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
5567
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5568
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
5570
# Both c and cxx compiler support -rpath directly
5571
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5573
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5574
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5578
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5579
if test "$GCC" = yes; then
5581
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5582
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5583
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5585
case `$CC -V 2>&1` in
5588
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5589
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5590
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5594
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5595
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5596
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5600
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5601
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5603
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5605
# The compiler driver will combine and reorder linker options,
5606
# but understands `-z linker_flag'. GCC discards it without `$wl',
5607
# but is careful enough not to reorder.
5608
# Supported since Solaris 2.6 (maybe 2.5.1?)
5609
if test "$GCC" = yes; then
5610
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5612
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5616
_LT_TAGVAR(link_all_deplibs, $1)=yes
5620
if test "x$host_vendor" = xsequent; then
5621
# Use $CC to link under sequent, because it throws in some extra .o
5622
# files that make .init and .fini sections work.
5623
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5625
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5627
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5628
_LT_TAGVAR(hardcode_direct, $1)=yes
5629
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5630
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5634
case $host_vendor in
5636
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5637
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5640
## LD is ld it makes a PLAMLIB
5641
## CC just makes a GrossModule.
5642
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5643
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5644
_LT_TAGVAR(hardcode_direct, $1)=no
5647
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5648
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5651
runpath_var='LD_RUN_PATH'
5652
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5656
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5657
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5658
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5662
if test -d /usr/nec; then
5663
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5664
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5665
runpath_var=LD_RUN_PATH
5666
hardcode_runpath_var=yes
5667
_LT_TAGVAR(ld_shlibs, $1)=yes
5671
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5672
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5673
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5674
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5675
runpath_var='LD_RUN_PATH'
5677
if test "$GCC" = yes; then
5678
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5679
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5681
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5682
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5686
sysv5* | sco3.2v5* | sco5v6*)
5687
# Note: We can NOT use -z defs as we might desire, because we do not
5688
# link with -lc, and that would cause any symbols used from libc to
5689
# always be unresolved, which means just about no library would
5690
# ever link correctly. If we're not using GNU ld we use -z text
5691
# though, which does catch some bad symbols but isn't as heavy-handed
5693
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5694
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5695
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5696
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5698
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5699
_LT_TAGVAR(link_all_deplibs, $1)=yes
5700
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5701
runpath_var='LD_RUN_PATH'
5703
if test "$GCC" = yes; then
5704
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5705
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5707
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5708
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5713
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5714
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5715
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5719
_LT_TAGVAR(ld_shlibs, $1)=no
5723
if test x$host_vendor = xsni; then
5725
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5726
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5732
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5733
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5735
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5737
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5738
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5739
_LT_DECL([], [extract_expsyms_cmds], [2],
5740
[The commands to extract the exported symbol list from a shared archive])
5743
# Do we need to explicitly link libc?
5745
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5747
# Assume -lc should be added
5748
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5750
if test "$enable_shared" = yes && test "$GCC" = yes; then
5751
case $_LT_TAGVAR(archive_cmds, $1) in
5753
# FIXME: we may have to deal with multi-command sequences.
5756
# Test whether the compiler implicitly links with -lc since on some
5757
# systems, -lgcc has to come before -lc. If gcc already passes -lc
5758
# to ld, don't add -lc before -lgcc.
5759
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5761
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5763
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5766
libobjs=conftest.$ac_objext
5768
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5769
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5775
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5776
_LT_TAGVAR(allow_undefined_flag, $1)=
5777
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5779
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5781
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5783
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5785
cat conftest.err 1>&5
5788
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5795
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5796
[Whether or not to add -lc for building shared libraries])
5797
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5798
[enable_shared_with_static_runtimes], [0],
5799
[Whether or not to disallow shared libs when runtime libs are static])
5800
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5801
[Compiler flag to allow reflexive dlopens])
5802
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
5803
[Compiler flag to generate shared objects directly from archives])
5804
_LT_TAGDECL([], [compiler_needs_object], [1],
5805
[Whether the compiler copes with passing no objects directly])
5806
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5807
[Create an old-style archive from a shared archive])
5808
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5809
[Create a temporary old-style archive to link instead of a shared archive])
5810
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5811
_LT_TAGDECL([], [archive_expsym_cmds], [2])
5812
_LT_TAGDECL([], [module_cmds], [2],
5813
[Commands used to build a loadable module if different from building
5815
_LT_TAGDECL([], [module_expsym_cmds], [2])
5816
_LT_TAGDECL([], [with_gnu_ld], [1],
5817
[Whether we are building with GNU ld or not])
5818
_LT_TAGDECL([], [allow_undefined_flag], [1],
5819
[Flag that allows shared libraries with undefined symbols to be built])
5820
_LT_TAGDECL([], [no_undefined_flag], [1],
5821
[Flag that enforces no undefined symbols])
5822
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5823
[Flag to hardcode $libdir into a binary during linking.
5824
This must work even if $libdir does not exist])
5825
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5826
[[If ld is used when linking, flag to hardcode $libdir into a binary
5827
during linking. This must work even if $libdir does not exist]])
5828
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
5829
[Whether we need a single "-rpath" flag with a separated argument])
5830
_LT_TAGDECL([], [hardcode_direct], [0],
5831
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5832
DIR into the resulting binary])
5833
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
5834
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5835
DIR into the resulting binary and the resulting library dependency is
5836
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
5837
library is relocated])
5838
_LT_TAGDECL([], [hardcode_minus_L], [0],
5839
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5840
into the resulting binary])
5841
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5842
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5843
into the resulting binary])
5844
_LT_TAGDECL([], [hardcode_automatic], [0],
5845
[Set to "yes" if building a shared library automatically hardcodes DIR
5846
into the library and all subsequent libraries and executables linked
5848
_LT_TAGDECL([], [inherit_rpath], [0],
5849
[Set to yes if linker adds runtime paths of dependent libraries
5850
to runtime path list])
5851
_LT_TAGDECL([], [link_all_deplibs], [0],
5852
[Whether libtool must link a program against all its dependency libraries])
5853
_LT_TAGDECL([], [fix_srcfile_path], [1],
5854
[Fix the shell variable $srcfile for the compiler])
5855
_LT_TAGDECL([], [always_export_symbols], [0],
5856
[Set to "yes" if exported symbols are required])
5857
_LT_TAGDECL([], [export_symbols_cmds], [2],
5858
[The commands to list exported symbols])
5859
_LT_TAGDECL([], [exclude_expsyms], [1],
5860
[Symbols that should not be listed in the preloaded symbols])
5861
_LT_TAGDECL([], [include_expsyms], [1],
5862
[Symbols that must always be exported])
5863
_LT_TAGDECL([], [prelink_cmds], [2],
5864
[Commands necessary for linking programs (against libraries) with templates])
5865
_LT_TAGDECL([], [file_list_spec], [1],
5866
[Specify filename containing input files])
5867
dnl FIXME: Not yet implemented
5868
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5869
dnl [Compiler flag to generate thread safe objects])
5870
])# _LT_LINKER_SHLIBS
5873
# _LT_LANG_C_CONFIG([TAG])
5874
# ------------------------
5875
# Ensure that the configuration variables for a C compiler are suitably
5876
# defined. These variables are subsequently used by _LT_CONFIG to write
5877
# the compiler configuration to `libtool'.
5878
m4_defun([_LT_LANG_C_CONFIG],
5879
[m4_require([_LT_DECL_EGREP])dnl
5883
# Source file extension for C test sources.
5886
# Object file extension for compiled C test sources.
5888
_LT_TAGVAR(objext, $1)=$objext
5890
# Code to be used in simple compile tests
5891
lt_simple_compile_test_code="int some_variable = 0;"
5893
# Code to be used in simple link tests
5894
lt_simple_link_test_code='int main(){return(0);}'
5897
# Save the default compiler, since it gets overwritten when the other
5898
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5899
compiler_DEFAULT=$CC
5901
# save warnings/boilerplate of simple test code
5902
_LT_COMPILER_BOILERPLATE
5903
_LT_LINKER_BOILERPLATE
5905
if test -n "$compiler"; then
5906
_LT_COMPILER_NO_RTTI($1)
5907
_LT_COMPILER_PIC($1)
5908
_LT_COMPILER_C_O($1)
5909
_LT_COMPILER_FILE_LOCKS($1)
5910
_LT_LINKER_SHLIBS($1)
5911
_LT_SYS_DYNAMIC_LINKER($1)
5912
_LT_LINKER_HARDCODE_LIBPATH($1)
5916
# Report which library types will actually be built
5917
AC_MSG_CHECKING([if libtool supports shared libraries])
5918
AC_MSG_RESULT([$can_build_shared])
5920
AC_MSG_CHECKING([whether to build shared libraries])
5921
test "$can_build_shared" = "no" && enable_shared=no
5923
# On AIX, shared libraries and static libraries use the same namespace, and
5924
# are all built from PIC.
5927
test "$enable_shared" = yes && enable_static=no
5928
if test -n "$RANLIB"; then
5929
archive_cmds="$archive_cmds~\$RANLIB \$lib"
5930
postinstall_cmds='$RANLIB $lib'
5935
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5936
test "$enable_shared" = yes && enable_static=no
5940
AC_MSG_RESULT([$enable_shared])
5942
AC_MSG_CHECKING([whether to build static libraries])
5943
# Make sure either enable_shared or enable_static is yes.
5944
test "$enable_shared" = yes || enable_static=yes
5945
AC_MSG_RESULT([$enable_static])
5951
])# _LT_LANG_C_CONFIG
5956
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
5957
# compiler, we have our own version here.
5958
m4_defun([_LT_PROG_CXX],
5960
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
5962
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5963
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5964
(test "X$CXX" != "Xg++"))) ; then
5967
_lt_caught_CXX_error=yes
5969
popdef([AC_MSG_ERROR])
5972
dnl aclocal-1.4 backwards compatibility:
5973
dnl AC_DEFUN([_LT_PROG_CXX], [])
5976
# _LT_LANG_CXX_CONFIG([TAG])
5977
# --------------------------
5978
# Ensure that the configuration variables for a C++ compiler are suitably
5979
# defined. These variables are subsequently used by _LT_CONFIG to write
5980
# the compiler configuration to `libtool'.
5981
m4_defun([_LT_LANG_CXX_CONFIG],
5982
[AC_REQUIRE([_LT_PROG_CXX])dnl
5983
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5984
m4_require([_LT_DECL_EGREP])dnl
5987
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5988
_LT_TAGVAR(allow_undefined_flag, $1)=
5989
_LT_TAGVAR(always_export_symbols, $1)=no
5990
_LT_TAGVAR(archive_expsym_cmds, $1)=
5991
_LT_TAGVAR(compiler_needs_object, $1)=no
5992
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5993
_LT_TAGVAR(hardcode_direct, $1)=no
5994
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5995
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5996
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5997
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5998
_LT_TAGVAR(hardcode_minus_L, $1)=no
5999
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6000
_LT_TAGVAR(hardcode_automatic, $1)=no
6001
_LT_TAGVAR(inherit_rpath, $1)=no
6002
_LT_TAGVAR(module_cmds, $1)=
6003
_LT_TAGVAR(module_expsym_cmds, $1)=
6004
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6005
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6006
_LT_TAGVAR(no_undefined_flag, $1)=
6007
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6008
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6010
# Source file extension for C++ test sources.
6013
# Object file extension for compiled C++ test sources.
6015
_LT_TAGVAR(objext, $1)=$objext
6017
# No sense in running all these tests if we already determined that
6018
# the CXX compiler isn't working. Some variables (like enable_shared)
6019
# are currently assumed to apply to all compilers on this platform,
6020
# and will be corrupted by setting them based on a non-working compiler.
6021
if test "$_lt_caught_CXX_error" != yes; then
6022
# Code to be used in simple compile tests
6023
lt_simple_compile_test_code="int some_variable = 0;"
6025
# Code to be used in simple link tests
6026
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6028
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6031
# save warnings/boilerplate of simple test code
6032
_LT_COMPILER_BOILERPLATE
6033
_LT_LINKER_BOILERPLATE
6035
# Allow CC to be a program name with arguments.
6040
lt_save_with_gnu_ld=$with_gnu_ld
6041
lt_save_path_LD=$lt_cv_path_LD
6042
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6043
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6045
$as_unset lt_cv_prog_gnu_ld
6047
if test -n "${lt_cv_path_LDCXX+set}"; then
6048
lt_cv_path_LD=$lt_cv_path_LDCXX
6050
$as_unset lt_cv_path_LD
6052
test -z "${LDCXX+set}" || LD=$LDCXX
6055
_LT_TAGVAR(compiler, $1)=$CC
6056
_LT_CC_BASENAME([$compiler])
6058
if test -n "$compiler"; then
6059
# We don't want -fno-exception when compiling C++ code, so set the
6060
# no_builtin_flag separately
6061
if test "$GXX" = yes; then
6062
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6064
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6067
if test "$GXX" = yes; then
6068
# Set up default GNU C++ configuration
6072
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6073
# archiving commands below assume that GNU ld is being used.
6074
if test "$with_gnu_ld" = yes; then
6075
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6076
_LT_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'
6078
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6079
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6081
# If archive_cmds runs LD, not CC, wlarc should be empty
6082
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6083
# investigate it a little bit more. (MM)
6086
# ancient GNU ld didn't support --whole-archive et. al.
6087
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6088
$GREP 'no-whole-archive' > /dev/null; then
6089
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6091
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6097
# A generic and very simple default shared library creation
6098
# command for GNU C++ for the case where it uses the native
6099
# linker, instead of GNU ld. If possible, this setting should
6100
# overridden to take advantage of the native linker features on
6101
# the platform it is being used on.
6102
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6105
# Commands to make compiler produce verbose output that lists
6106
# what "hidden" libraries, object files and flags are used when
6107
# linking a shared library.
6108
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6116
# PORTME: fill in a description of your system's C++ link characteristics
6117
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6118
_LT_TAGVAR(ld_shlibs, $1)=yes
6121
# FIXME: insert proper C++ library support
6122
_LT_TAGVAR(ld_shlibs, $1)=no
6125
if test "$host_cpu" = ia64; then
6126
# On IA64, the linker does run time linking by default, so we don't
6127
# have to do anything special.
6128
aix_use_runtimelinking=no
6129
exp_sym_flag='-Bexport'
6132
aix_use_runtimelinking=no
6134
# Test if we are trying to use run time linking or normal
6135
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6136
# need to do runtime linking.
6137
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6138
for ld_flag in $LDFLAGS; do
6141
aix_use_runtimelinking=yes
6149
exp_sym_flag='-bexport'
6150
no_entry_flag='-bnoentry'
6153
# When large executables or shared objects are built, AIX ld can
6154
# have problems creating the table of contents. If linking a library
6155
# or program results in "error TOC overflow" add -mminimal-toc to
6156
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6157
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6159
_LT_TAGVAR(archive_cmds, $1)=''
6160
_LT_TAGVAR(hardcode_direct, $1)=yes
6161
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6162
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6163
_LT_TAGVAR(link_all_deplibs, $1)=yes
6164
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6166
if test "$GXX" = yes; then
6167
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6168
# We only want to do this on AIX 4.2 and lower, the check
6169
# below for broken collect2 doesn't work under 4.3+
6170
collect2name=`${CC} -print-prog-name=collect2`
6171
if test -f "$collect2name" &&
6172
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6174
# We have reworked collect2
6177
# We have old collect2
6178
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6179
# It fails to find uninstalled libraries when the uninstalled
6180
# path is not listed in the libpath. Setting hardcode_minus_L
6181
# to unsupported forces relinking
6182
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6183
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6184
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6187
shared_flag='-shared'
6188
if test "$aix_use_runtimelinking" = yes; then
6189
shared_flag="$shared_flag "'${wl}-G'
6193
if test "$host_cpu" = ia64; then
6194
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6195
# chokes on -Wl,-G. The following line is correct:
6198
if test "$aix_use_runtimelinking" = yes; then
6199
shared_flag='${wl}-G'
6201
shared_flag='${wl}-bM:SRE'
6206
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6207
# It seems that -bexpall does not export symbols beginning with
6208
# underscore (_), so it is better to generate a list of symbols to
6210
_LT_TAGVAR(always_export_symbols, $1)=yes
6211
if test "$aix_use_runtimelinking" = yes; then
6212
# Warning - without using the other runtime loading flags (-brtl),
6213
# -berok will link without error, but may produce a broken library.
6214
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6215
# Determine the default libpath from the value encoded in an empty
6217
_LT_SYS_MODULE_PATH_AIX
6218
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6220
_LT_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 "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6222
if test "$host_cpu" = ia64; then
6223
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6224
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6225
_LT_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"
6227
# Determine the default libpath from the value encoded in an
6229
_LT_SYS_MODULE_PATH_AIX
6230
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6231
# Warning - without using the other run time loading flags,
6232
# -berok will link without error, but may produce a broken library.
6233
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6234
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6235
# Exported symbols can be pulled into shared objects from archives
6236
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6237
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6238
# This is similar to how AIX traditionally builds its shared
6240
_LT_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'
6246
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6247
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6248
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6249
# support --undefined. This deserves some investigation. FIXME
6250
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6252
_LT_TAGVAR(ld_shlibs, $1)=no
6257
case $cc_basename in
6259
# FIXME: insert proper C++ library support
6260
_LT_TAGVAR(ld_shlibs, $1)=no
6265
cygwin* | mingw* | pw32* | cegcc*)
6266
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6267
# as there is no search path for DLLs.
6268
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6269
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6270
_LT_TAGVAR(always_export_symbols, $1)=no
6271
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6273
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6274
_LT_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'
6275
# If the export-symbols file already is a .def file (1st line
6276
# is EXPORTS), use it as is; otherwise, prepend...
6277
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6278
cp $export_symbols $output_objdir/$soname.def;
6280
echo EXPORTS > $output_objdir/$soname.def;
6281
cat $export_symbols >> $output_objdir/$soname.def;
6283
$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'
6285
_LT_TAGVAR(ld_shlibs, $1)=no
6288
darwin* | rhapsody*)
6289
_LT_DARWIN_LINKER_FEATURES($1)
6293
case $cc_basename in
6295
# FIXME: insert proper C++ library support
6296
_LT_TAGVAR(ld_shlibs, $1)=no
6299
# Green Hills C++ Compiler
6300
# FIXME: insert proper C++ library support
6301
_LT_TAGVAR(ld_shlibs, $1)=no
6304
# FIXME: insert proper C++ library support
6305
_LT_TAGVAR(ld_shlibs, $1)=no
6311
# C++ shared libraries reported to be fairly broken before
6313
_LT_TAGVAR(ld_shlibs, $1)=no
6317
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6320
freebsd* | dragonfly*)
6321
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6323
_LT_TAGVAR(ld_shlibs, $1)=yes
6330
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6331
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6332
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6333
_LT_TAGVAR(hardcode_direct, $1)=yes
6334
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6335
# but as the default
6336
# location of the library.
6338
case $cc_basename in
6340
# FIXME: insert proper C++ library support
6341
_LT_TAGVAR(ld_shlibs, $1)=no
6344
_LT_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'
6345
# Commands to make compiler produce verbose output that lists
6346
# what "hidden" libraries, object files and flags are used when
6347
# linking a shared library.
6349
# There doesn't appear to be a way to prevent this compiler from
6350
# explicitly linking system object files so we need to strip them
6351
# from the output so that they don't get included in the library
6353
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
6356
if test "$GXX" = yes; then
6357
_LT_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'
6359
# FIXME: insert proper C++ library support
6360
_LT_TAGVAR(ld_shlibs, $1)=no
6367
if test $with_gnu_ld = no; then
6368
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6369
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6375
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6381
_LT_TAGVAR(hardcode_direct, $1)=no
6382
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6385
_LT_TAGVAR(hardcode_direct, $1)=yes
6386
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6387
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6388
# but as the default
6389
# location of the library.
6393
case $cc_basename in
6395
# FIXME: insert proper C++ library support
6396
_LT_TAGVAR(ld_shlibs, $1)=no
6401
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6404
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6407
_LT_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'
6410
# Commands to make compiler produce verbose output that lists
6411
# what "hidden" libraries, object files and flags are used when
6412
# linking a shared library.
6414
# There doesn't appear to be a way to prevent this compiler from
6415
# explicitly linking system object files so we need to strip them
6416
# from the output so that they don't get included in the library
6418
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 "X$list" | $Xsed'
6421
if test "$GXX" = yes; then
6422
if test $with_gnu_ld = no; then
6425
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6428
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6431
_LT_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'
6436
# FIXME: insert proper C++ library support
6437
_LT_TAGVAR(ld_shlibs, $1)=no
6444
_LT_TAGVAR(hardcode_direct, $1)=no
6445
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6446
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6447
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6448
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6449
# Instead, shared libraries are loaded at an image base (0x10000000 by
6450
# default) and relocated if they conflict, which is a slow very memory
6451
# consuming and fragmenting process. To avoid this, we pick a random,
6452
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6453
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6454
_LT_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'
6455
_LT_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'
6458
case $cc_basename in
6461
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6463
# Archives containing C++ object files must be created using
6464
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6465
# necessary to make sure instantiated templates are included
6467
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6470
if test "$GXX" = yes; then
6471
if test "$with_gnu_ld" = no; then
6472
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6474
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
6477
_LT_TAGVAR(link_all_deplibs, $1)=yes
6480
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6481
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6482
_LT_TAGVAR(inherit_rpath, $1)=yes
6485
linux* | k*bsd*-gnu)
6486
case $cc_basename in
6488
# Kuck and Associates, Inc. (KAI) C++ Compiler
6490
# KCC will only create a shared library if the output file
6491
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6492
# to its proper name (with version) after linking.
6493
_LT_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'
6494
_LT_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'
6495
# Commands to make compiler produce verbose output that lists
6496
# what "hidden" libraries, object files and flags are used when
6497
# linking a shared library.
6499
# There doesn't appear to be a way to prevent this compiler from
6500
# explicitly linking system object files so we need to strip them
6501
# from the output so that they don't get included in the library
6503
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 "X$list" | $Xsed'
6505
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6506
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6508
# Archives containing C++ object files must be created using
6509
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6510
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6515
# version 8.0 and above of icpc choke on multiply defined symbols
6516
# if we add $predep_objects and $postdep_objects, however 7.1 and
6517
# earlier do not add the objects themselves.
6518
case `$CC -V 2>&1` in
6520
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6521
_LT_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'
6523
*) # Version 8.0 or newer
6526
ia64*) tmp_idyn=' -i_dynamic';;
6528
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6529
_LT_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'
6532
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6533
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6534
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6535
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6538
# Portland Group C++ compiler
6540
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6541
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6543
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6544
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6545
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6547
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6548
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6550
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6552
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6553
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6554
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6556
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6557
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
6559
*) # Version 6 will use weak symbols
6560
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6561
_LT_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'
6565
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6566
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6567
_LT_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'
6571
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6572
_LT_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'
6574
runpath_var=LD_RUN_PATH
6575
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6576
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6578
# Commands to make compiler produce verbose output that lists
6579
# what "hidden" libraries, object files and flags are used when
6580
# linking a shared library.
6582
# There doesn't appear to be a way to prevent this compiler from
6583
# explicitly linking system object files so we need to strip them
6584
# from the output so that they don't get included in the library
6586
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6589
# IBM XL 8.0 on PPC, with GNU ld
6590
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6591
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6592
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6593
if test "x$supports_anon_versioning" = xyes; then
6594
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6595
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6596
echo "local: *; };" >> $output_objdir/$libname.ver~
6597
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6601
case `$CC -V 2>&1 | sed 5q` in
6604
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6605
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6606
_LT_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'
6607
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6608
_LT_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'
6609
_LT_TAGVAR(compiler_needs_object, $1)=yes
6611
# Not sure whether something based on
6612
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6614
output_verbose_link_cmd='echo'
6616
# Archives containing C++ object files must be created using
6617
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6618
# necessary to make sure instantiated templates are included
6620
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6628
# FIXME: insert proper C++ library support
6629
_LT_TAGVAR(ld_shlibs, $1)=no
6633
# FIXME: insert proper C++ library support
6634
_LT_TAGVAR(ld_shlibs, $1)=no
6638
case $cc_basename in
6640
# FIXME: insert proper C++ library support
6641
_LT_TAGVAR(ld_shlibs, $1)=no
6644
# FIXME: insert proper C++ library support
6645
_LT_TAGVAR(ld_shlibs, $1)=no
6651
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6652
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6654
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6655
_LT_TAGVAR(hardcode_direct, $1)=yes
6656
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6658
# Workaround some broken pre-1.5 toolchains
6659
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6663
_LT_TAGVAR(ld_shlibs, $1)=yes
6667
# C++ shared libraries are fairly broken
6668
_LT_TAGVAR(ld_shlibs, $1)=no
6672
if test -f /usr/libexec/ld.so; then
6673
_LT_TAGVAR(hardcode_direct, $1)=yes
6674
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6675
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6676
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6677
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6678
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6679
_LT_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'
6680
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6681
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6683
output_verbose_link_cmd=echo
6685
_LT_TAGVAR(ld_shlibs, $1)=no
6689
osf3* | osf4* | osf5*)
6690
case $cc_basename in
6692
# Kuck and Associates, Inc. (KAI) C++ Compiler
6694
# KCC will only create a shared library if the output file
6695
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6696
# to its proper name (with version) after linking.
6697
_LT_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'
6699
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6700
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6702
# Archives containing C++ object files must be created using
6703
# the KAI C++ compiler.
6705
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6706
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6710
# Rational C++ 2.4.1
6711
# FIXME: insert proper C++ library support
6712
_LT_TAGVAR(ld_shlibs, $1)=no
6717
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6718
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6719
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6722
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6723
_LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
6724
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6725
echo "-hidden">> $lib.exp~
6726
$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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
6728
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6732
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6734
# Commands to make compiler produce verbose output that lists
6735
# what "hidden" libraries, object files and flags are used when
6736
# linking a shared library.
6738
# There doesn't appear to be a way to prevent this compiler from
6739
# explicitly linking system object files so we need to strip them
6740
# from the output so that they don't get included in the library
6742
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "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 "X$list" | $Xsed'
6745
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6746
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6749
_LT_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 "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6752
_LT_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" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6756
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6757
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6759
# Commands to make compiler produce verbose output that lists
6760
# what "hidden" libraries, object files and flags are used when
6761
# linking a shared library.
6762
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6765
# FIXME: insert proper C++ library support
6766
_LT_TAGVAR(ld_shlibs, $1)=no
6773
# FIXME: insert proper C++ library support
6774
_LT_TAGVAR(ld_shlibs, $1)=no
6778
case $cc_basename in
6781
# FIXME: insert proper C++ library support
6782
_LT_TAGVAR(ld_shlibs, $1)=no
6786
# FIXME: insert proper C++ library support
6787
_LT_TAGVAR(ld_shlibs, $1)=no
6790
# FIXME: insert proper C++ library support
6791
_LT_TAGVAR(ld_shlibs, $1)=no
6797
case $cc_basename in
6799
# Sun C++ 4.2, 5.x and Centerline C++
6800
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6801
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6802
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6803
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6804
$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'
6806
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6807
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6809
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6811
# The compiler driver will combine and reorder linker options,
6812
# but understands `-z linker_flag'.
6813
# Supported since Solaris 2.6 (maybe 2.5.1?)
6814
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6817
_LT_TAGVAR(link_all_deplibs, $1)=yes
6819
output_verbose_link_cmd='echo'
6821
# Archives containing C++ object files must be created using
6822
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6823
# necessary to make sure instantiated templates are included
6825
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6828
# Green Hills C++ Compiler
6829
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6831
# The C++ compiler must be used to create the archive.
6832
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6835
# GNU C++ compiler with Solaris linker
6836
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6837
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6838
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6839
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6840
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6841
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6843
# Commands to make compiler produce verbose output that lists
6844
# what "hidden" libraries, object files and flags are used when
6845
# linking a shared library.
6846
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6848
# g++ 2.7 appears to require `-G' NOT `-shared' on this
6850
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6851
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6852
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6854
# Commands to make compiler produce verbose output that lists
6855
# what "hidden" libraries, object files and flags are used when
6856
# linking a shared library.
6857
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6860
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6862
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6864
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6872
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6873
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6874
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6875
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6876
runpath_var='LD_RUN_PATH'
6878
case $cc_basename in
6880
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6881
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6884
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6885
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6890
sysv5* | sco3.2v5* | sco5v6*)
6891
# Note: We can NOT use -z defs as we might desire, because we do not
6892
# link with -lc, and that would cause any symbols used from libc to
6893
# always be unresolved, which means just about no library would
6894
# ever link correctly. If we're not using GNU ld we use -z text
6895
# though, which does catch some bad symbols but isn't as heavy-handed
6897
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6898
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6899
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6900
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6901
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6902
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6903
_LT_TAGVAR(link_all_deplibs, $1)=yes
6904
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6905
runpath_var='LD_RUN_PATH'
6907
case $cc_basename in
6909
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6910
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6913
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6914
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6920
case $cc_basename in
6922
# NonStop-UX NCC 3.20
6923
# FIXME: insert proper C++ library support
6924
_LT_TAGVAR(ld_shlibs, $1)=no
6927
# FIXME: insert proper C++ library support
6928
_LT_TAGVAR(ld_shlibs, $1)=no
6934
# FIXME: insert proper C++ library support
6935
_LT_TAGVAR(ld_shlibs, $1)=no
6939
# FIXME: insert proper C++ library support
6940
_LT_TAGVAR(ld_shlibs, $1)=no
6944
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6945
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6947
_LT_TAGVAR(GCC, $1)="$GXX"
6948
_LT_TAGVAR(LD, $1)="$LD"
6951
## There is no encapsulation within the following macros, do not change
6952
## the running order or otherwise move them around unless you know exactly
6953
## what you are doing...
6954
_LT_SYS_HIDDEN_LIBDEPS($1)
6955
_LT_COMPILER_PIC($1)
6956
_LT_COMPILER_C_O($1)
6957
_LT_COMPILER_FILE_LOCKS($1)
6958
_LT_LINKER_SHLIBS($1)
6959
_LT_SYS_DYNAMIC_LINKER($1)
6960
_LT_LINKER_HARDCODE_LIBPATH($1)
6963
fi # test -n "$compiler"
6969
with_gnu_ld=$lt_save_with_gnu_ld
6970
lt_cv_path_LDCXX=$lt_cv_path_LD
6971
lt_cv_path_LD=$lt_save_path_LD
6972
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
6973
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
6974
fi # test "$_lt_caught_CXX_error" != yes
6977
])# _LT_LANG_CXX_CONFIG
6980
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6981
# ---------------------------------
6982
# Figure out "hidden" library dependencies from verbose
6983
# compiler output when linking a shared library.
6984
# Parse the compiler output and extract the necessary
6985
# objects, libraries and library flags.
6986
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
6987
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6988
# Dependencies to place before and after the object being linked:
6989
_LT_TAGVAR(predep_objects, $1)=
6990
_LT_TAGVAR(postdep_objects, $1)=
6991
_LT_TAGVAR(predeps, $1)=
6992
_LT_TAGVAR(postdeps, $1)=
6993
_LT_TAGVAR(compiler_lib_search_path, $1)=
6995
dnl we can't use the lt_simple_compile_test_code here,
6996
dnl because it contains code intended for an executable,
6997
dnl not a library. It's possible we should let each
6998
dnl tag define a new lt_????_link_test_code variable,
6999
dnl but it's only used here...
7000
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7002
void foo (void) { a = 0; }
7004
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7008
Foo (void) { a = 0; }
7013
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7021
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7029
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7032
public void bar (void) {
7038
dnl Parse the compiler output and extract the necessary
7039
dnl objects, libraries and library flags.
7040
if AC_TRY_EVAL(ac_compile); then
7041
# Parse the compiler output and extract the necessary
7042
# objects, libraries and library flags.
7044
# Sentinel used to keep track of whether or not we are before
7045
# the conftest object file.
7046
pre_test_object_deps_done=no
7048
for p in `eval "$output_verbose_link_cmd"`; do
7052
# Some compilers place space between "-{L,R}" and the path.
7054
if test $p = "-L" ||
7055
test $p = "-R"; then
7062
if test "$pre_test_object_deps_done" = no; then
7065
# Internal compiler library paths should come after those
7066
# provided the user. The postdeps already come after the
7067
# user supplied libs so there is no need to process them.
7068
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7069
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7071
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7074
# The "-l" case would never come before the object being
7075
# linked, so don't bother handling this case.
7078
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7079
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7081
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7087
# This assumes that the test object file only shows up
7088
# once in the compiler output.
7089
if test "$p" = "conftest.$objext"; then
7090
pre_test_object_deps_done=yes
7094
if test "$pre_test_object_deps_done" = no; then
7095
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7096
_LT_TAGVAR(predep_objects, $1)="$p"
7098
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7101
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7102
_LT_TAGVAR(postdep_objects, $1)="$p"
7104
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7109
*) ;; # Ignore the rest.
7117
echo "libtool.m4: error: problem compiling $1 test program"
7120
$RM -f confest.$objext
7122
# PORTME: override above test on systems where it is broken
7126
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7127
# hack all around it, let's just trust "g++" to DTRT.
7128
_LT_TAGVAR(predep_objects,$1)=
7129
_LT_TAGVAR(postdep_objects,$1)=
7130
_LT_TAGVAR(postdeps,$1)=
7134
case `$CC -V 2>&1 | sed 5q` in
7138
# The more standards-conforming stlport4 library is
7139
# incompatible with the Cstd library. Avoid specifying
7140
# it if it's in CXXFLAGS. Ignore libCrun as
7141
# -library=stlport4 depends on it.
7142
case " $CXX $CXXFLAGS " in
7143
*" -library=stlport4 "*)
7144
solaris_use_stlport4=yes
7148
if test "$solaris_use_stlport4" != yes; then
7149
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7156
case $cc_basename in
7158
# The more standards-conforming stlport4 library is
7159
# incompatible with the Cstd library. Avoid specifying
7160
# it if it's in CXXFLAGS. Ignore libCrun as
7161
# -library=stlport4 depends on it.
7162
case " $CXX $CXXFLAGS " in
7163
*" -library=stlport4 "*)
7164
solaris_use_stlport4=yes
7168
# Adding this requires a known-good setup of shared libraries for
7169
# Sun compiler versions before 5.6, else PIC objects from an old
7170
# archive will be linked into the output, leading to subtle bugs.
7171
if test "$solaris_use_stlport4" != yes; then
7172
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7180
case " $_LT_TAGVAR(postdeps, $1) " in
7181
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7183
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7184
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7185
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7187
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7188
[The directories searched by this compiler when creating a shared library])
7189
_LT_TAGDECL([], [predep_objects], [1],
7190
[Dependencies to place before and after the objects being linked to
7191
create a shared library])
7192
_LT_TAGDECL([], [postdep_objects], [1])
7193
_LT_TAGDECL([], [predeps], [1])
7194
_LT_TAGDECL([], [postdeps], [1])
7195
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7196
[The library search path used internally by the compiler when linking
7198
])# _LT_SYS_HIDDEN_LIBDEPS
7203
# Since AC_PROG_F77 is broken, in that it returns the empty string
7204
# if there is no fortran compiler, we have our own version here.
7205
m4_defun([_LT_PROG_F77],
7207
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7209
if test -z "$F77" || test "X$F77" = "Xno"; then
7212
popdef([AC_MSG_ERROR])
7215
dnl aclocal-1.4 backwards compatibility:
7216
dnl AC_DEFUN([_LT_PROG_F77], [])
7219
# _LT_LANG_F77_CONFIG([TAG])
7220
# --------------------------
7221
# Ensure that the configuration variables for a Fortran 77 compiler are
7222
# suitably defined. These variables are subsequently used by _LT_CONFIG
7223
# to write the compiler configuration to `libtool'.
7224
m4_defun([_LT_LANG_F77_CONFIG],
7225
[AC_REQUIRE([_LT_PROG_F77])dnl
7226
AC_LANG_PUSH(Fortran 77)
7228
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7229
_LT_TAGVAR(allow_undefined_flag, $1)=
7230
_LT_TAGVAR(always_export_symbols, $1)=no
7231
_LT_TAGVAR(archive_expsym_cmds, $1)=
7232
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7233
_LT_TAGVAR(hardcode_direct, $1)=no
7234
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7235
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7236
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7237
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7238
_LT_TAGVAR(hardcode_minus_L, $1)=no
7239
_LT_TAGVAR(hardcode_automatic, $1)=no
7240
_LT_TAGVAR(inherit_rpath, $1)=no
7241
_LT_TAGVAR(module_cmds, $1)=
7242
_LT_TAGVAR(module_expsym_cmds, $1)=
7243
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7244
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7245
_LT_TAGVAR(no_undefined_flag, $1)=
7246
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7247
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7249
# Source file extension for f77 test sources.
7252
# Object file extension for compiled f77 test sources.
7254
_LT_TAGVAR(objext, $1)=$objext
7256
# No sense in running all these tests if we already determined that
7257
# the F77 compiler isn't working. Some variables (like enable_shared)
7258
# are currently assumed to apply to all compilers on this platform,
7259
# and will be corrupted by setting them based on a non-working compiler.
7260
if test "$_lt_disable_F77" != yes; then
7261
# Code to be used in simple compile tests
7262
lt_simple_compile_test_code="\
7268
# Code to be used in simple link tests
7269
lt_simple_link_test_code="\
7274
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7277
# save warnings/boilerplate of simple test code
7278
_LT_COMPILER_BOILERPLATE
7279
_LT_LINKER_BOILERPLATE
7281
# Allow CC to be a program name with arguments.
7286
_LT_TAGVAR(compiler, $1)=$CC
7287
_LT_CC_BASENAME([$compiler])
7289
if test -n "$compiler"; then
7290
AC_MSG_CHECKING([if libtool supports shared libraries])
7291
AC_MSG_RESULT([$can_build_shared])
7293
AC_MSG_CHECKING([whether to build shared libraries])
7294
test "$can_build_shared" = "no" && enable_shared=no
7296
# On AIX, shared libraries and static libraries use the same namespace, and
7297
# are all built from PIC.
7300
test "$enable_shared" = yes && enable_static=no
7301
if test -n "$RANLIB"; then
7302
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7303
postinstall_cmds='$RANLIB $lib'
7307
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7308
test "$enable_shared" = yes && enable_static=no
7312
AC_MSG_RESULT([$enable_shared])
7314
AC_MSG_CHECKING([whether to build static libraries])
7315
# Make sure either enable_shared or enable_static is yes.
7316
test "$enable_shared" = yes || enable_static=yes
7317
AC_MSG_RESULT([$enable_static])
7319
_LT_TAGVAR(GCC, $1)="$G77"
7320
_LT_TAGVAR(LD, $1)="$LD"
7323
## There is no encapsulation within the following macros, do not change
7324
## the running order or otherwise move them around unless you know exactly
7325
## what you are doing...
7326
_LT_COMPILER_PIC($1)
7327
_LT_COMPILER_C_O($1)
7328
_LT_COMPILER_FILE_LOCKS($1)
7329
_LT_LINKER_SHLIBS($1)
7330
_LT_SYS_DYNAMIC_LINKER($1)
7331
_LT_LINKER_HARDCODE_LIBPATH($1)
7334
fi # test -n "$compiler"
7338
fi # test "$_lt_disable_F77" != yes
7341
])# _LT_LANG_F77_CONFIG
7346
# Since AC_PROG_FC is broken, in that it returns the empty string
7347
# if there is no fortran compiler, we have our own version here.
7348
m4_defun([_LT_PROG_FC],
7350
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7352
if test -z "$FC" || test "X$FC" = "Xno"; then
7355
popdef([AC_MSG_ERROR])
7358
dnl aclocal-1.4 backwards compatibility:
7359
dnl AC_DEFUN([_LT_PROG_FC], [])
7362
# _LT_LANG_FC_CONFIG([TAG])
7363
# -------------------------
7364
# Ensure that the configuration variables for a Fortran compiler are
7365
# suitably defined. These variables are subsequently used by _LT_CONFIG
7366
# to write the compiler configuration to `libtool'.
7367
m4_defun([_LT_LANG_FC_CONFIG],
7368
[AC_REQUIRE([_LT_PROG_FC])dnl
7369
AC_LANG_PUSH(Fortran)
7371
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7372
_LT_TAGVAR(allow_undefined_flag, $1)=
7373
_LT_TAGVAR(always_export_symbols, $1)=no
7374
_LT_TAGVAR(archive_expsym_cmds, $1)=
7375
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7376
_LT_TAGVAR(hardcode_direct, $1)=no
7377
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7378
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7379
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7380
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7381
_LT_TAGVAR(hardcode_minus_L, $1)=no
7382
_LT_TAGVAR(hardcode_automatic, $1)=no
7383
_LT_TAGVAR(inherit_rpath, $1)=no
7384
_LT_TAGVAR(module_cmds, $1)=
7385
_LT_TAGVAR(module_expsym_cmds, $1)=
7386
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7387
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7388
_LT_TAGVAR(no_undefined_flag, $1)=
7389
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7390
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7392
# Source file extension for fc test sources.
7393
ac_ext=${ac_fc_srcext-f}
7395
# Object file extension for compiled fc test sources.
7397
_LT_TAGVAR(objext, $1)=$objext
7399
# No sense in running all these tests if we already determined that
7400
# the FC compiler isn't working. Some variables (like enable_shared)
7401
# are currently assumed to apply to all compilers on this platform,
7402
# and will be corrupted by setting them based on a non-working compiler.
7403
if test "$_lt_disable_FC" != yes; then
7404
# Code to be used in simple compile tests
7405
lt_simple_compile_test_code="\
7411
# Code to be used in simple link tests
7412
lt_simple_link_test_code="\
7417
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7420
# save warnings/boilerplate of simple test code
7421
_LT_COMPILER_BOILERPLATE
7422
_LT_LINKER_BOILERPLATE
7424
# Allow CC to be a program name with arguments.
7429
GCC=$ac_cv_fc_compiler_gnu
7431
_LT_TAGVAR(compiler, $1)=$CC
7432
_LT_CC_BASENAME([$compiler])
7434
if test -n "$compiler"; then
7435
AC_MSG_CHECKING([if libtool supports shared libraries])
7436
AC_MSG_RESULT([$can_build_shared])
7438
AC_MSG_CHECKING([whether to build shared libraries])
7439
test "$can_build_shared" = "no" && enable_shared=no
7441
# On AIX, shared libraries and static libraries use the same namespace, and
7442
# are all built from PIC.
7445
test "$enable_shared" = yes && enable_static=no
7446
if test -n "$RANLIB"; then
7447
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7448
postinstall_cmds='$RANLIB $lib'
7452
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7453
test "$enable_shared" = yes && enable_static=no
7457
AC_MSG_RESULT([$enable_shared])
7459
AC_MSG_CHECKING([whether to build static libraries])
7460
# Make sure either enable_shared or enable_static is yes.
7461
test "$enable_shared" = yes || enable_static=yes
7462
AC_MSG_RESULT([$enable_static])
7464
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7465
_LT_TAGVAR(LD, $1)="$LD"
7468
## There is no encapsulation within the following macros, do not change
7469
## the running order or otherwise move them around unless you know exactly
7470
## what you are doing...
7471
_LT_SYS_HIDDEN_LIBDEPS($1)
7472
_LT_COMPILER_PIC($1)
7473
_LT_COMPILER_C_O($1)
7474
_LT_COMPILER_FILE_LOCKS($1)
7475
_LT_LINKER_SHLIBS($1)
7476
_LT_SYS_DYNAMIC_LINKER($1)
7477
_LT_LINKER_HARDCODE_LIBPATH($1)
7480
fi # test -n "$compiler"
7484
fi # test "$_lt_disable_FC" != yes
7487
])# _LT_LANG_FC_CONFIG
7490
# _LT_LANG_GCJ_CONFIG([TAG])
7491
# --------------------------
7492
# Ensure that the configuration variables for the GNU Java Compiler compiler
7493
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7494
# to write the compiler configuration to `libtool'.
7495
m4_defun([_LT_LANG_GCJ_CONFIG],
7496
[AC_REQUIRE([LT_PROG_GCJ])dnl
7499
# Source file extension for Java test sources.
7502
# Object file extension for compiled Java test sources.
7504
_LT_TAGVAR(objext, $1)=$objext
7506
# Code to be used in simple compile tests
7507
lt_simple_compile_test_code="class foo {}"
7509
# Code to be used in simple link tests
7510
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7512
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7515
# save warnings/boilerplate of simple test code
7516
_LT_COMPILER_BOILERPLATE
7517
_LT_LINKER_BOILERPLATE
7519
# Allow CC to be a program name with arguments.
7525
_LT_TAGVAR(compiler, $1)=$CC
7526
_LT_TAGVAR(LD, $1)="$LD"
7527
_LT_CC_BASENAME([$compiler])
7529
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7530
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7532
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7534
if test -n "$compiler"; then
7535
_LT_COMPILER_NO_RTTI($1)
7536
_LT_COMPILER_PIC($1)
7537
_LT_COMPILER_C_O($1)
7538
_LT_COMPILER_FILE_LOCKS($1)
7539
_LT_LINKER_SHLIBS($1)
7540
_LT_LINKER_HARDCODE_LIBPATH($1)
7549
])# _LT_LANG_GCJ_CONFIG
7552
# _LT_LANG_RC_CONFIG([TAG])
7553
# -------------------------
7554
# Ensure that the configuration variables for the Windows resource compiler
7555
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7556
# to write the compiler configuration to `libtool'.
7557
m4_defun([_LT_LANG_RC_CONFIG],
7558
[AC_REQUIRE([LT_PROG_RC])dnl
7561
# Source file extension for RC test sources.
7564
# Object file extension for compiled RC test sources.
7566
_LT_TAGVAR(objext, $1)=$objext
7568
# Code to be used in simple compile tests
7569
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7571
# Code to be used in simple link tests
7572
lt_simple_link_test_code="$lt_simple_compile_test_code"
7574
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7577
# save warnings/boilerplate of simple test code
7578
_LT_COMPILER_BOILERPLATE
7579
_LT_LINKER_BOILERPLATE
7581
# Allow CC to be a program name with arguments.
7587
_LT_TAGVAR(compiler, $1)=$CC
7588
_LT_CC_BASENAME([$compiler])
7589
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7591
if test -n "$compiler"; then
7599
])# _LT_LANG_RC_CONFIG
7604
AC_DEFUN([LT_PROG_GCJ],
7605
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7606
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7607
[AC_CHECK_TOOL(GCJ, gcj,)
7608
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7609
AC_SUBST(GCJFLAGS)])])[]dnl
7613
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7614
dnl aclocal-1.4 backwards compatibility:
7615
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7620
AC_DEFUN([LT_PROG_RC],
7621
[AC_CHECK_TOOL(RC, windres,)
7625
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7626
dnl aclocal-1.4 backwards compatibility:
7627
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7632
# If we don't have a new enough Autoconf to choose the best grep
7633
# available, choose the one first in the user's PATH.
7634
m4_defun([_LT_DECL_EGREP],
7635
[AC_REQUIRE([AC_PROG_EGREP])dnl
7636
AC_REQUIRE([AC_PROG_FGREP])dnl
7637
test -z "$GREP" && GREP=grep
7638
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7639
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7640
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7641
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7648
# If we don't have a new enough Autoconf to choose the best objdump
7649
# available, choose the one first in the user's PATH.
7650
m4_defun([_LT_DECL_OBJDUMP],
7651
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7652
test -z "$OBJDUMP" && OBJDUMP=objdump
7653
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7660
# Check for a fully-functional sed program, that truncates
7661
# as few characters as possible. Prefer GNU sed if found.
7662
m4_defun([_LT_DECL_SED],
7664
test -z "$SED" && SED=sed
7665
Xsed="$SED -e 1s/^X//"
7666
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7667
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7668
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7671
m4_ifndef([AC_PROG_SED], [
7672
# NOTE: This macro has been submitted for inclusion into #
7673
# GNU Autoconf as AC_PROG_SED. When it is available in #
7674
# a released version of Autoconf we should remove this #
7675
# macro and use it instead. #
7677
m4_defun([AC_PROG_SED],
7678
[AC_MSG_CHECKING([for a sed that does not truncate output])
7679
AC_CACHE_VAL(lt_cv_path_SED,
7680
[# Loop through the user's path and test for sed and gsed.
7681
# Then use that list of sed's as ones to test for truncation.
7682
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686
test -z "$as_dir" && as_dir=.
7687
for lt_ac_prog in sed gsed; do
7688
for ac_exec_ext in '' $ac_executable_extensions; do
7689
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7690
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7698
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7699
# along with /bin/sed that truncates output.
7700
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7701
test ! -f $lt_ac_sed && continue
7702
cat /dev/null > conftest.in
7704
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7705
# Check for GNU sed and select it if it is found.
7706
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7707
lt_cv_path_SED=$lt_ac_sed
7711
cat conftest.in conftest.in >conftest.tmp
7712
mv conftest.tmp conftest.in
7713
cp conftest.in conftest.nl
7715
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7716
cmp -s conftest.out conftest.nl || break
7717
# 10000 chars as input seems more than enough
7718
test $lt_ac_count -gt 10 && break
7719
lt_ac_count=`expr $lt_ac_count + 1`
7720
if test $lt_ac_count -gt $lt_ac_max; then
7721
lt_ac_max=$lt_ac_count
7722
lt_cv_path_SED=$lt_ac_sed
7729
AC_MSG_RESULT([$SED])
7734
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7735
dnl aclocal-1.4 backwards compatibility:
7736
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7739
# _LT_CHECK_SHELL_FEATURES
7740
# ------------------------
7741
# Find out whether the shell is Bourne or XSI compatible,
7742
# or has some other useful features.
7743
m4_defun([_LT_CHECK_SHELL_FEATURES],
7744
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7745
# Try some XSI features
7748
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7750
&& eval 'test $(( 1 + 1 )) -eq 2 \
7751
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7753
AC_MSG_RESULT([$xsi_shell])
7754
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7756
AC_MSG_CHECKING([whether the shell understands "+="])
7758
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7760
&& lt_shell_append=yes
7761
AC_MSG_RESULT([$lt_shell_append])
7762
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7764
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7769
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7771
# test EBCDIC or ASCII
7772
case `echo X|tr X '\101'` in
7773
A) # ASCII based system
7774
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7775
lt_SP2NL='tr \040 \012'
7776
lt_NL2SP='tr \015\012 \040\040'
7778
*) # EBCDIC based system
7779
lt_SP2NL='tr \100 \n'
7780
lt_NL2SP='tr \r\n \100\100'
7783
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7784
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7785
])# _LT_CHECK_SHELL_FEATURES
7788
# _LT_PROG_XSI_SHELLFNS
7789
# ---------------------
7790
# Bourne and XSI compatible variants of some useful shell functions.
7791
m4_defun([_LT_PROG_XSI_SHELLFNS],
7794
cat << \_LT_EOF >> "$cfgfile"
7796
# func_dirname file append nondir_replacement
7797
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7798
# otherwise set result to NONDIR_REPLACEMENT.
7802
*/*) func_dirname_result="${1%/*}${2}" ;;
7803
* ) func_dirname_result="${3}" ;;
7807
# func_basename file
7810
func_basename_result="${1##*/}"
7813
# func_dirname_and_basename file append nondir_replacement
7814
# perform func_basename and func_dirname in a single function
7816
# dirname: Compute the dirname of FILE. If nonempty,
7817
# add APPEND to the result, otherwise set result
7818
# to NONDIR_REPLACEMENT.
7819
# value returned in "$func_dirname_result"
7820
# basename: Compute filename of FILE.
7821
# value retuned in "$func_basename_result"
7822
# Implementation must be kept synchronized with func_dirname
7823
# and func_basename. For efficiency, we do not delegate to
7824
# those functions but instead duplicate the functionality here.
7825
func_dirname_and_basename ()
7828
*/*) func_dirname_result="${1%/*}${2}" ;;
7829
* ) func_dirname_result="${3}" ;;
7831
func_basename_result="${1##*/}"
7834
# func_stripname prefix suffix name
7835
# strip PREFIX and SUFFIX off of NAME.
7836
# PREFIX and SUFFIX must not contain globbing or regex special
7837
# characters, hashes, percent signs, but SUFFIX may contain a leading
7838
# dot (in which case that matches only a dot).
7841
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7842
# positional parameters, so assign one to ordinary parameter first.
7843
func_stripname_result=${3}
7844
func_stripname_result=${func_stripname_result#"${1}"}
7845
func_stripname_result=${func_stripname_result%"${2}"}
7851
func_opt_split_opt=${1%%=*}
7852
func_opt_split_arg=${1#*=}
7859
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7860
*) func_lo2o_result=${1} ;;
7864
# func_xform libobj-or-source
7867
func_xform_result=${1%.*}.lo
7870
# func_arith arithmetic-term...
7873
func_arith_result=$(( $[*] ))
7877
# STRING may not start with a hyphen.
7880
func_len_result=${#1}
7885
*) # Bourne compatible functions.
7886
cat << \_LT_EOF >> "$cfgfile"
7888
# func_dirname file append nondir_replacement
7889
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
7890
# otherwise set result to NONDIR_REPLACEMENT.
7893
# Extract subdirectory from the argument.
7894
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7895
if test "X$func_dirname_result" = "X${1}"; then
7896
func_dirname_result="${3}"
7898
func_dirname_result="$func_dirname_result${2}"
7902
# func_basename file
7905
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7908
dnl func_dirname_and_basename
7909
dnl A portable version of this function is already defined in general.m4sh
7910
dnl so there is no need for it here.
7912
# func_stripname prefix suffix name
7913
# strip PREFIX and SUFFIX off of NAME.
7914
# PREFIX and SUFFIX must not contain globbing or regex special
7915
# characters, hashes, percent signs, but SUFFIX may contain a leading
7916
# dot (in which case that matches only a dot).
7917
# func_strip_suffix prefix name
7921
.*) func_stripname_result=`$ECHO "X${3}" \
7922
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7923
*) func_stripname_result=`$ECHO "X${3}" \
7924
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7929
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7930
my_sed_long_arg='1s/^-[[^=]]*=//'
7935
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7936
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
7942
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
7945
# func_xform libobj-or-source
7948
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
7951
# func_arith arithmetic-term...
7954
func_arith_result=`expr "$[@]"`
7958
# STRING may not start with a hyphen.
7961
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
7967
case $lt_shell_append in
7969
cat << \_LT_EOF >> "$cfgfile"
7971
# func_append var value
7972
# Append VALUE to the end of shell variable VAR.
7980
cat << \_LT_EOF >> "$cfgfile"
7982
# func_append var value
7983
# Append VALUE to the end of shell variable VAR.
7986
eval "$[1]=\$$[1]\$[2]"
7994
# Helper functions for option handling. -*- Autoconf -*-
7996
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
7997
# Written by Gary V. Vaughan, 2004
7999
# This file is free software; the Free Software Foundation gives
8000
# unlimited permission to copy and/or distribute it, with or without
8001
# modifications, as long as this notice is preserved.
8003
# serial 6 ltoptions.m4
8005
# This is to help aclocal find these macros, as it can't see m4_define.
8006
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8009
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8010
# ------------------------------------------
8011
m4_define([_LT_MANGLE_OPTION],
8012
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8015
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8016
# ---------------------------------------
8017
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8018
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8020
m4_define([_LT_SET_OPTION],
8021
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8022
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8023
_LT_MANGLE_DEFUN([$1], [$2]),
8024
[m4_warning([Unknown $1 option `$2'])])[]dnl
8028
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8029
# ------------------------------------------------------------
8030
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8031
m4_define([_LT_IF_OPTION],
8032
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8035
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8036
# -------------------------------------------------------
8037
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8039
m4_define([_LT_UNLESS_OPTIONS],
8040
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8041
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8042
[m4_define([$0_found])])])[]dnl
8043
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8048
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8049
# ----------------------------------------
8050
# OPTION-LIST is a space-separated list of Libtool options associated
8051
# with MACRO-NAME. If any OPTION has a matching handler declared with
8052
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8053
# the unknown option and exit.
8054
m4_defun([_LT_SET_OPTIONS],
8056
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8057
[_LT_SET_OPTION([$1], _LT_Option)])
8059
m4_if([$1],[LT_INIT],[
8061
dnl Simply set some default values (i.e off) if boolean options were not
8063
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8065
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8068
dnl If no reference was made to various pairs of opposing options, then
8069
dnl we run the default mode handler for the pair. For example, if neither
8070
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8071
dnl archives by default:
8072
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8073
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8074
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8075
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8076
[_LT_ENABLE_FAST_INSTALL])
8082
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8083
# -----------------------------------------
8084
m4_define([_LT_MANGLE_DEFUN],
8085
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8088
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8089
# -----------------------------------------------
8090
m4_define([LT_OPTION_DEFINE],
8091
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8092
])# LT_OPTION_DEFINE
8097
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8100
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8101
[_LT_SET_OPTION([LT_INIT], [dlopen])
8102
AC_DIAGNOSE([obsolete],
8103
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8104
put the `dlopen' option into LT_INIT's first parameter.])
8107
dnl aclocal-1.4 backwards compatibility:
8108
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8113
# Declare package support for building win32 dll's.
8114
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8115
[enable_win32_dll=yes
8118
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8119
AC_CHECK_TOOL(AS, as, false)
8120
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8121
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8125
test -z "$AS" && AS=as
8126
_LT_DECL([], [AS], [0], [Assembler program])dnl
8128
test -z "$DLLTOOL" && DLLTOOL=dlltool
8129
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8131
test -z "$OBJDUMP" && OBJDUMP=objdump
8132
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8135
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8136
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8137
_LT_SET_OPTION([LT_INIT], [win32-dll])
8138
AC_DIAGNOSE([obsolete],
8139
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8140
put the `win32-dll' option into LT_INIT's first parameter.])
8143
dnl aclocal-1.4 backwards compatibility:
8144
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8147
# _LT_ENABLE_SHARED([DEFAULT])
8148
# ----------------------------
8149
# implement the --enable-shared flag, and supports the `shared' and
8150
# `disable-shared' LT_INIT options.
8151
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8152
m4_define([_LT_ENABLE_SHARED],
8153
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8154
AC_ARG_ENABLE([shared],
8155
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8156
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8157
[p=${PACKAGE-default}
8159
yes) enable_shared=yes ;;
8160
no) enable_shared=no ;;
8163
# Look at the argument we got. We use all the common list separators.
8164
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165
for pkg in $enableval; do
8167
if test "X$pkg" = "X$p"; then
8174
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8176
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8177
[Whether or not to build shared libraries])
8178
])# _LT_ENABLE_SHARED
8180
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8181
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8184
AC_DEFUN([AC_ENABLE_SHARED],
8185
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8188
AC_DEFUN([AC_DISABLE_SHARED],
8189
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8192
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8193
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8195
dnl aclocal-1.4 backwards compatibility:
8196
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8197
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8201
# _LT_ENABLE_STATIC([DEFAULT])
8202
# ----------------------------
8203
# implement the --enable-static flag, and support the `static' and
8204
# `disable-static' LT_INIT options.
8205
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8206
m4_define([_LT_ENABLE_STATIC],
8207
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8208
AC_ARG_ENABLE([static],
8209
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8210
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8211
[p=${PACKAGE-default}
8213
yes) enable_static=yes ;;
8214
no) enable_static=no ;;
8217
# Look at the argument we got. We use all the common list separators.
8218
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8219
for pkg in $enableval; do
8221
if test "X$pkg" = "X$p"; then
8228
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8230
_LT_DECL([build_old_libs], [enable_static], [0],
8231
[Whether or not to build static libraries])
8232
])# _LT_ENABLE_STATIC
8234
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8235
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8238
AC_DEFUN([AC_ENABLE_STATIC],
8239
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8242
AC_DEFUN([AC_DISABLE_STATIC],
8243
[_LT_SET_OPTION([LT_INIT], [disable-static])
8246
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8247
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8249
dnl aclocal-1.4 backwards compatibility:
8250
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8251
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8255
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8256
# ----------------------------------
8257
# implement the --enable-fast-install flag, and support the `fast-install'
8258
# and `disable-fast-install' LT_INIT options.
8259
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8260
m4_define([_LT_ENABLE_FAST_INSTALL],
8261
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8262
AC_ARG_ENABLE([fast-install],
8263
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8264
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8265
[p=${PACKAGE-default}
8267
yes) enable_fast_install=yes ;;
8268
no) enable_fast_install=no ;;
8270
enable_fast_install=no
8271
# Look at the argument we got. We use all the common list separators.
8272
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8273
for pkg in $enableval; do
8275
if test "X$pkg" = "X$p"; then
8276
enable_fast_install=yes
8282
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8284
_LT_DECL([fast_install], [enable_fast_install], [0],
8285
[Whether or not to optimize for fast installation])dnl
8286
])# _LT_ENABLE_FAST_INSTALL
8288
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8289
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8292
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8293
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8294
AC_DIAGNOSE([obsolete],
8295
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8296
the `fast-install' option into LT_INIT's first parameter.])
8299
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8300
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8301
AC_DIAGNOSE([obsolete],
8302
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8303
the `disable-fast-install' option into LT_INIT's first parameter.])
8306
dnl aclocal-1.4 backwards compatibility:
8307
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8308
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8311
# _LT_WITH_PIC([MODE])
8312
# --------------------
8313
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8315
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8316
m4_define([_LT_WITH_PIC],
8318
[AS_HELP_STRING([--with-pic],
8319
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8320
[pic_mode="$withval"],
8323
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8325
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8328
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8329
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8332
AU_DEFUN([AC_LIBTOOL_PICMODE],
8333
[_LT_SET_OPTION([LT_INIT], [pic-only])
8334
AC_DIAGNOSE([obsolete],
8335
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8336
put the `pic-only' option into LT_INIT's first parameter.])
8339
dnl aclocal-1.4 backwards compatibility:
8340
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8343
m4_define([_LTDL_MODE], [])
8344
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8345
[m4_define([_LTDL_MODE], [nonrecursive])])
8346
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8347
[m4_define([_LTDL_MODE], [recursive])])
8348
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8349
[m4_define([_LTDL_MODE], [subproject])])
8351
m4_define([_LTDL_TYPE], [])
8352
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8353
[m4_define([_LTDL_TYPE], [installable])])
8354
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8355
[m4_define([_LTDL_TYPE], [convenience])])
8357
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8359
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8360
# Written by Gary V. Vaughan, 2004
8362
# This file is free software; the Free Software Foundation gives
8363
# unlimited permission to copy and/or distribute it, with or without
8364
# modifications, as long as this notice is preserved.
8366
# serial 6 ltsugar.m4
8368
# This is to help aclocal find these macros, as it can't see m4_define.
8369
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8372
# lt_join(SEP, ARG1, [ARG2...])
8373
# -----------------------------
8374
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8375
# associated separator.
8376
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8377
# versions in m4sugar had bugs.
8378
m4_define([lt_join],
8379
[m4_if([$#], [1], [],
8381
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8382
m4_define([_lt_join],
8383
[m4_if([$#$2], [2], [],
8384
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8390
# Manipulate m4 lists.
8391
# These macros are necessary as long as will still need to support
8392
# Autoconf-2.59 which quotes differently.
8393
m4_define([lt_car], [[$1]])
8395
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8397
[m4_dquote(m4_shift($@))])])
8398
m4_define([lt_unquote], $1)
8401
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8402
# ------------------------------------------
8403
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8404
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8405
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8406
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8407
# than defined and empty).
8409
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8410
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8411
m4_define([lt_append],
8413
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8417
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8418
# ----------------------------------------------------------
8419
# Produce a SEP delimited list of all paired combinations of elements of
8420
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8421
# has the form PREFIXmINFIXSUFFIXn.
8422
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8423
m4_define([lt_combine],
8424
[m4_if(m4_eval([$# > 3]), [1],
8425
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8426
[[m4_foreach([_Lt_prefix], [$2],
8427
[m4_foreach([_Lt_suffix],
8428
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8429
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8432
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8433
# -----------------------------------------------------------------------
8434
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8435
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8436
m4_define([lt_if_append_uniq],
8438
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8439
[lt_append([$1], [$2], [$3])$4],
8441
[lt_append([$1], [$2], [$3])$4])])
8444
# lt_dict_add(DICT, KEY, VALUE)
8445
# -----------------------------
8446
m4_define([lt_dict_add],
8447
[m4_define([$1($2)], [$3])])
8450
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8451
# --------------------------------------------
8452
m4_define([lt_dict_add_subkey],
8453
[m4_define([$1($2:$3)], [$4])])
8456
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8457
# ----------------------------------
8458
m4_define([lt_dict_fetch],
8460
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8461
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8464
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8465
# -----------------------------------------------------------------
8466
m4_define([lt_if_dict_fetch],
8467
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8472
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8473
# --------------------------------------------------------------
8474
m4_define([lt_dict_filter],
8475
[m4_if([$5], [], [],
8476
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8477
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8478
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8481
# ltversion.m4 -- version numbers -*- Autoconf -*-
8483
# Copyright (C) 2004 Free Software Foundation, Inc.
8484
# Written by Scott James Remnant, 2004
8486
# This file is free software; the Free Software Foundation gives
8487
# unlimited permission to copy and/or distribute it, with or without
8488
# modifications, as long as this notice is preserved.
8490
# Generated from ltversion.in.
8492
# serial 3012 ltversion.m4
8493
# This file is part of GNU Libtool
8495
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8496
m4_define([LT_PACKAGE_REVISION], [1.3012])
8498
AC_DEFUN([LTVERSION_VERSION],
8499
[macro_version='2.2.6'
8500
macro_revision='1.3012'
8501
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8502
_LT_DECL(, macro_revision, 0)
8505
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8507
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8508
# Written by Scott James Remnant, 2004.
8510
# This file is free software; the Free Software Foundation gives
8511
# unlimited permission to copy and/or distribute it, with or without
8512
# modifications, as long as this notice is preserved.
8514
# serial 4 lt~obsolete.m4
8516
# These exist entirely to fool aclocal when bootstrapping libtool.
8518
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8519
# which have later been changed to m4_define as they aren't part of the
8520
# exported API, or moved to Autoconf or Automake where they belong.
8522
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8523
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8524
# using a macro with the same name in our local m4/libtool.m4 it'll
8525
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8526
# and doesn't know about Autoconf macros at all.)
8528
# So we provide this file, which has a silly filename so it's always
8529
# included after everything else. This provides aclocal with the
8530
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8531
# because those macros already exist, or will be overwritten later.
8532
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8534
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8535
# Yes, that means every name once taken will need to remain here until
8536
# we give up compatibility with versions before 1.7, at which point
8537
# we need to keep only those names which we still refer to.
8539
# This is to help aclocal find these macros, as it can't see m4_define.
8540
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8542
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8543
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8544
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8545
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8546
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8547
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8548
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8549
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8550
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8551
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8552
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8553
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8554
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8555
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8556
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8557
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8558
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8559
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8560
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8561
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8562
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8563
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8564
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8565
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8566
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8567
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8568
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8569
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8570
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8571
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8572
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8573
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8574
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8575
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8576
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8577
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8578
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8579
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8580
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8581
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8582
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8583
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8584
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8585
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8586
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8587
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8588
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8589
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8590
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8591
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8592
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8593
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8594
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8595
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8596
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8598
# nls.m4 serial 3 (gettext-0.15)
8599
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8600
dnl This file is free software; the Free Software Foundation
8601
dnl gives unlimited permission to copy and/or distribute it,
8602
dnl with or without modifications, as long as this notice is preserved.
8604
dnl This file can can be used in projects which are not available under
8605
dnl the GNU General Public License or the GNU Library General Public
8606
dnl License but which still want to provide support for the GNU gettext
8608
dnl Please note that the actual code of the GNU gettext library is covered
8609
dnl by the GNU Library General Public License, and the rest of the GNU
8610
dnl gettext package package is covered by the GNU General Public License.
8611
dnl They are *not* in the public domain.
8614
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8615
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8621
AC_MSG_CHECKING([whether NLS is requested])
8622
dnl Default is enabled NLS
8624
[ --disable-nls do not use Native Language Support],
8625
USE_NLS=$enableval, USE_NLS=yes)
8626
AC_MSG_RESULT($USE_NLS)
8630
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8632
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8634
# This program is free software; you can redistribute it and/or modify
8635
# it under the terms of the GNU General Public License as published by
8636
# the Free Software Foundation; either version 2 of the License, or
8637
# (at your option) any later version.
8639
# This program is distributed in the hope that it will be useful, but
8640
# WITHOUT ANY WARRANTY; without even the implied warranty of
8641
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8642
# General Public License for more details.
8644
# You should have received a copy of the GNU General Public License
8645
# along with this program; if not, write to the Free Software
8646
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8648
# As a special exception to the GNU General Public License, if you
8649
# distribute this file as part of a program that contains a
8650
# configuration script generated by Autoconf, you may include it under
8651
# the same distribution terms that you use for the rest of that program.
8653
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
8654
# ----------------------------------
8655
AC_DEFUN([PKG_PROG_PKG_CONFIG],
8656
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8657
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8658
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8659
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8660
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8662
if test -n "$PKG_CONFIG"; then
8663
_pkg_min_version=m4_default([$1], [0.9.0])
8664
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8665
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8666
AC_MSG_RESULT([yes])
8673
])# PKG_PROG_PKG_CONFIG
8675
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8677
# Check to see whether a particular set of modules exists. Similar
8678
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
8681
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
8682
# this or PKG_CHECK_MODULES is called, or make sure to call
8683
# PKG_CHECK_EXISTS manually
8684
# --------------------------------------------------------------
8685
AC_DEFUN([PKG_CHECK_EXISTS],
8686
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8687
if test -n "$PKG_CONFIG" && \
8688
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8689
m4_ifval([$2], [$2], [:])
8690
m4_ifvaln([$3], [else
8695
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8696
# ---------------------------------------------
8697
m4_define([_PKG_CONFIG],
8698
[if test -n "$$1"; then
8700
elif test -n "$PKG_CONFIG"; then
8701
PKG_CHECK_EXISTS([$3],
8702
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8709
# _PKG_SHORT_ERRORS_SUPPORTED
8710
# -----------------------------
8711
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8712
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8713
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8714
_pkg_short_errors_supported=yes
8716
_pkg_short_errors_supported=no
8718
])# _PKG_SHORT_ERRORS_SUPPORTED
8721
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8722
# [ACTION-IF-NOT-FOUND])
8725
# Note that if there is a possibility the first call to
8726
# PKG_CHECK_MODULES might not happen, you should be sure to include an
8727
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8730
# --------------------------------------------------------------
8731
AC_DEFUN([PKG_CHECK_MODULES],
8732
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8733
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8734
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8737
AC_MSG_CHECKING([for $1])
8739
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8740
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
8742
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8743
and $1[]_LIBS to avoid the need to call pkg-config.
8744
See the pkg-config man page for more details.])
8746
if test $pkg_failed = yes; then
8747
_PKG_SHORT_ERRORS_SUPPORTED
8748
if test $_pkg_short_errors_supported = yes; then
8749
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
8751
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
8753
# Put the nasty error message in config.log where it belongs
8754
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8756
ifelse([$4], , [AC_MSG_ERROR(dnl
8757
[Package requirements ($2) were not met:
8761
Consider adjusting the PKG_CONFIG_PATH environment variable if you
8762
installed software in a non-standard prefix.
8766
[AC_MSG_RESULT([no])
8768
elif test $pkg_failed = untried; then
8769
ifelse([$4], , [AC_MSG_FAILURE(dnl
8770
[The pkg-config script could not be found or is too old. Make sure it
8771
is in your PATH or set the PKG_CONFIG environment variable to the full
8776
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8779
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8780
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8781
AC_MSG_RESULT([yes])
8782
ifelse([$3], , :, [$3])
8784
])# PKG_CHECK_MODULES
8786
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8788
# This file is free software; the Free Software Foundation
8789
# gives unlimited permission to copy and/or distribute it,
8790
# with or without modifications, as long as this notice is preserved.
8792
# AM_AUTOMAKE_VERSION(VERSION)
8793
# ----------------------------
8794
# Automake X.Y traces this macro to ensure aclocal.m4 has been
8795
# generated from the m4 files accompanying Automake X.Y.
8796
# (This private macro should not be called outside this file.)
8797
AC_DEFUN([AM_AUTOMAKE_VERSION],
8798
[am__api_version='1.11'
8799
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8800
dnl require some minimum version. Point them to the right macro.
8801
m4_if([$1], [1.11], [],
8802
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8805
# _AM_AUTOCONF_VERSION(VERSION)
8806
# -----------------------------
8807
# aclocal traces this macro to find the Autoconf version.
8808
# This is a private macro too. Using m4_define simplifies
8809
# the logic in aclocal, which can simply ignore this definition.
8810
m4_define([_AM_AUTOCONF_VERSION], [])
8812
# AM_SET_CURRENT_AUTOMAKE_VERSION
8813
# -------------------------------
8814
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8815
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8816
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8817
[AM_AUTOMAKE_VERSION([1.11])dnl
8818
m4_ifndef([AC_AUTOCONF_VERSION],
8819
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8820
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8822
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
8824
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8826
# This file is free software; the Free Software Foundation
8827
# gives unlimited permission to copy and/or distribute it,
8828
# with or without modifications, as long as this notice is preserved.
8830
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8831
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8832
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8834
# Of course, Automake must honor this variable whenever it calls a
8835
# tool from the auxiliary directory. The problem is that $srcdir (and
8836
# therefore $ac_aux_dir as well) can be either absolute or relative,
8837
# depending on how configure is run. This is pretty annoying, since
8838
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
8839
# source directory, any form will work fine, but in subdirectories a
8840
# relative path needs to be adjusted first.
8842
# $ac_aux_dir/missing
8843
# fails when called from a subdirectory if $ac_aux_dir is relative
8844
# $top_srcdir/$ac_aux_dir/missing
8845
# fails if $ac_aux_dir is absolute,
8846
# fails when called from a subdirectory in a VPATH build with
8847
# a relative $ac_aux_dir
8849
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8850
# are both prefixed by $srcdir. In an in-source build this is usually
8851
# harmless because $srcdir is `.', but things will broke when you
8852
# start a VPATH build or use an absolute $srcdir.
8854
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8855
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8856
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8857
# and then we would define $MISSING as
8858
# MISSING="\${SHELL} $am_aux_dir/missing"
8859
# This will work as long as MISSING is not called from configure, because
8860
# unfortunately $(top_srcdir) has no meaning in configure.
8861
# However there are other variables, like CC, which are often used in
8862
# configure, and could therefore not use this "fixed" $ac_aux_dir.
8864
# Another solution, used here, is to always expand $ac_aux_dir to an
8865
# absolute PATH. The drawback is that using absolute paths prevent a
8866
# configured tree to be moved without reconfiguration.
8868
AC_DEFUN([AM_AUX_DIR_EXPAND],
8869
[dnl Rely on autoconf to set up CDPATH properly.
8870
AC_PREREQ([2.50])dnl
8871
# expand $ac_aux_dir to an absolute path
8872
am_aux_dir=`cd $ac_aux_dir && pwd`
8876
# Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2005
8877
# Free Software Foundation, Inc.
8879
# This file is free software; the Free Software Foundation
8880
# gives unlimited permission to copy and/or distribute it,
8881
# with or without modifications, as long as this notice is preserved.
8885
# This was merged into AC_PROG_CC in Autoconf.
8887
AU_DEFUN([AM_PROG_CC_STDC],
8889
AC_DIAGNOSE([obsolete], [$0:
8890
your code should no longer depend upon `am_cv_prog_cc_stdc', but upon
8891
`ac_cv_prog_cc_stdc'. Remove this warning and the assignment when
8892
you adjust the code. You can also remove the above call to
8893
AC_PROG_CC if you already called it elsewhere.])
8894
am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
8896
AU_DEFUN([fp_PROG_CC_STDC])
8898
# AM_CONDITIONAL -*- Autoconf -*-
8900
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8901
# Free Software Foundation, Inc.
8903
# This file is free software; the Free Software Foundation
8904
# gives unlimited permission to copy and/or distribute it,
8905
# with or without modifications, as long as this notice is preserved.
8909
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
8910
# -------------------------------------
8911
# Define a conditional.
8912
AC_DEFUN([AM_CONDITIONAL],
8914
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8915
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8916
AC_SUBST([$1_TRUE])dnl
8917
AC_SUBST([$1_FALSE])dnl
8918
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
8919
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
8920
m4_define([_AM_COND_VALUE_$1], [$2])dnl
8928
AC_CONFIG_COMMANDS_PRE(
8929
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8930
AC_MSG_ERROR([[conditional "$1" was never defined.
8931
Usually this means the macro was only invoked conditionally.]])
8934
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8935
# Free Software Foundation, Inc.
8937
# This file is free software; the Free Software Foundation
8938
# gives unlimited permission to copy and/or distribute it,
8939
# with or without modifications, as long as this notice is preserved.
8943
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8944
# written in clear, in which case automake, when reading aclocal.m4,
8945
# will think it sees a *use*, and therefore will trigger all it's
8946
# C support machinery. Also note that it means that autoscan, seeing
8947
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8950
# _AM_DEPENDENCIES(NAME)
8951
# ----------------------
8952
# See how the compiler implements dependency checking.
8953
# NAME is "CC", "CXX", "GCJ", or "OBJC".
8954
# We try a few techniques and use that to set a single cache variable.
8956
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8957
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8958
# dependency, and given that the user is not expected to run this macro,
8959
# just rely on AC_PROG_CC.
8960
AC_DEFUN([_AM_DEPENDENCIES],
8961
[AC_REQUIRE([AM_SET_DEPDIR])dnl
8962
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
8963
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
8964
AC_REQUIRE([AM_DEP_TRACK])dnl
8966
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
8967
[$1], CXX, [depcc="$CXX" am_compiler_list=],
8968
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
8969
[$1], UPC, [depcc="$UPC" am_compiler_list=],
8970
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
8971
[depcc="$$1" am_compiler_list=])
8973
AC_CACHE_CHECK([dependency style of $depcc],
8974
[am_cv_$1_dependencies_compiler_type],
8975
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8976
# We make a subdir and do the tests there. Otherwise we can end up
8977
# making bogus files that we don't know about and never remove. For
8978
# instance it was reported that on HP-UX the gcc test will end up
8979
# making a dummy file named `D' -- because `-MD' means `put the output
8982
# Copy depcomp to subdir because otherwise we won't find it if we're
8983
# using a relative directory.
8984
cp "$am_depcomp" conftest.dir
8986
# We will build objects and dependencies in a subdirectory because
8987
# it helps to detect inapplicable dependency modes. For instance
8988
# both Tru64's cc and ICC support -MD to output dependencies as a
8989
# side effect of compilation, but ICC will put the dependencies in
8990
# the current directory while Tru64 will put them in the object
8994
am_cv_$1_dependencies_compiler_type=none
8995
if test "$am_compiler_list" = ""; then
8996
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9000
[case " $depcc " in #(
9001
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9004
[case " $depcc " in #(
9005
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9008
for depmode in $am_compiler_list; do
9009
# Setup a source with many dependencies, because some compilers
9010
# like to wrap large dependency lists on column 80 (with \), and
9011
# we should not choose a depcomp mode which is confused by this.
9013
# We need to recreate these files for each test, as the compiler may
9014
# overwrite some of them when testing with obscure command lines.
9015
# This happens at least with the AIX C compiler.
9017
for i in 1 2 3 4 5 6; do
9018
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9019
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9020
# Solaris 8's {/usr,}/bin/sh.
9021
touch sub/conftst$i.h
9023
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9025
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9026
# mode. It turns out that the SunPro C++ compiler does not properly
9027
# handle `-M -o', and we need to detect this. Also, some Intel
9028
# versions had trouble with output in subdirs
9029
am__obj=sub/conftest.${OBJEXT-o}
9030
am__minus_obj="-o $am__obj"
9033
# This depmode causes a compiler race in universal mode.
9034
test "$am__universal" = false || continue
9037
# after this tag, mechanisms are not by side-effect, so they'll
9038
# only be used when explicitly requested
9039
if test "x$enable_dependency_tracking" = xyes; then
9045
msvisualcpp | msvcmsys)
9046
# This compiler won't grok `-c -o', but also, the minuso test has
9047
# not run yet. These depmodes are late enough in the game, and
9048
# so weak that their functioning should not be impacted.
9049
am__obj=conftest.${OBJEXT-o}
9054
if depmode=$depmode \
9055
source=sub/conftest.c object=$am__obj \
9056
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9057
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9058
>/dev/null 2>conftest.err &&
9059
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9060
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9061
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9062
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9063
# icc doesn't choke on unknown options, it will just issue warnings
9064
# or remarks (even with -Werror). So we grep stderr for any message
9065
# that says an option was ignored or not supported.
9066
# When given -MP, icc 7.0 and 7.1 complain thusly:
9067
# icc: Command line warning: ignoring option '-M'; no argument required
9068
# The diagnosis changed in icc 8.0:
9069
# icc: Command line remark: option '-MP' not supported
9070
if (grep 'ignoring option' conftest.err ||
9071
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9072
am_cv_$1_dependencies_compiler_type=$depmode
9081
am_cv_$1_dependencies_compiler_type=none
9084
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9085
AM_CONDITIONAL([am__fastdep$1], [
9086
test "x$enable_dependency_tracking" != xno \
9087
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9093
# Choose a directory name for dependency files.
9094
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9095
AC_DEFUN([AM_SET_DEPDIR],
9096
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9097
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9103
AC_DEFUN([AM_DEP_TRACK],
9104
[AC_ARG_ENABLE(dependency-tracking,
9105
[ --disable-dependency-tracking speeds up one-time build
9106
--enable-dependency-tracking do not reject slow dependency extractors])
9107
if test "x$enable_dependency_tracking" != xno; then
9108
am_depcomp="$ac_aux_dir/depcomp"
9111
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9112
AC_SUBST([AMDEPBACKSLASH])dnl
9113
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9116
# Generate code to set up dependency tracking. -*- Autoconf -*-
9118
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9119
# Free Software Foundation, Inc.
9121
# This file is free software; the Free Software Foundation
9122
# gives unlimited permission to copy and/or distribute it,
9123
# with or without modifications, as long as this notice is preserved.
9127
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9128
# ------------------------------
9129
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9131
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9132
# are listed without --file. Let's play safe and only enable the eval
9133
# if we detect the quoting.
9134
case $CONFIG_FILES in
9135
*\'*) eval set x "$CONFIG_FILES" ;;
9136
*) set x $CONFIG_FILES ;;
9141
# Strip MF so we end up with the name of the file.
9142
mf=`echo "$mf" | sed -e 's/:.*$//'`
9143
# Check whether this is an Automake generated Makefile or not.
9144
# We used to match only the files named `Makefile.in', but
9145
# some people rename them; so instead we look at the file content.
9146
# Grep'ing the first line is not enough: some people post-process
9147
# each Makefile.in and add a new line on top of each file to say so.
9148
# Grep'ing the whole file is not good either: AIX grep has a line
9149
# limit of 2048, but all sed's we know have understand at least 4000.
9150
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9151
dirpart=`AS_DIRNAME("$mf")`
9155
# Extract the definition of DEPDIR, am__include, and am__quote
9156
# from the Makefile without running `make'.
9157
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9158
test -z "$DEPDIR" && continue
9159
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9160
test -z "am__include" && continue
9161
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9162
# When using ansi2knr, U may be empty or an underscore; expand it
9163
U=`sed -n 's/^U = //p' < "$mf"`
9164
# Find all dependency output files, they are included files with
9165
# $(DEPDIR) in their names. We invoke sed twice because it is the
9166
# simplest approach to changing $(DEPDIR) to its actual value in the
9168
for file in `sed -n "
9169
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9170
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9171
# Make sure the directory exists.
9172
test -f "$dirpart/$file" && continue
9173
fdir=`AS_DIRNAME(["$file"])`
9174
AS_MKDIR_P([$dirpart/$fdir])
9175
# echo "creating $dirpart/$file"
9176
echo '# dummy' > "$dirpart/$file"
9180
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9183
# AM_OUTPUT_DEPENDENCY_COMMANDS
9184
# -----------------------------
9185
# This macro should only be invoked once -- use via AC_REQUIRE.
9187
# This code is only required when automatic dependency tracking
9188
# is enabled. FIXME. This creates each `.P' file that we will
9189
# need in order to bootstrap the dependency handling code.
9190
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9191
[AC_CONFIG_COMMANDS([depfiles],
9192
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9193
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9196
# Do all the work for Automake. -*- Autoconf -*-
9198
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9199
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9201
# This file is free software; the Free Software Foundation
9202
# gives unlimited permission to copy and/or distribute it,
9203
# with or without modifications, as long as this notice is preserved.
9207
# This macro actually does too much. Some checks are only needed if
9208
# your package does certain things. But this isn't really a big deal.
9210
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9211
# AM_INIT_AUTOMAKE([OPTIONS])
9212
# -----------------------------------------------
9213
# The call with PACKAGE and VERSION arguments is the old style
9214
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9215
# and VERSION should now be passed to AC_INIT and removed from
9216
# the call to AM_INIT_AUTOMAKE.
9217
# We support both call styles for the transition. After
9218
# the next Automake release, Autoconf can make the AC_INIT
9219
# arguments mandatory, and then we can depend on a new Autoconf
9220
# release and drop the old call support.
9221
AC_DEFUN([AM_INIT_AUTOMAKE],
9222
[AC_PREREQ([2.62])dnl
9223
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9224
dnl the ones we care about.
9225
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9226
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9227
AC_REQUIRE([AC_PROG_INSTALL])dnl
9228
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9229
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9230
# is not polluted with repeated "-I."
9231
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9232
# test to see if srcdir already configured
9233
if test -f $srcdir/config.status; then
9234
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9238
# test whether we have cygpath
9239
if test -z "$CYGPATH_W"; then
9240
if (cygpath --version) >/dev/null 2>/dev/null; then
9241
CYGPATH_W='cygpath -w'
9246
AC_SUBST([CYGPATH_W])
9248
# Define the identity of the package.
9249
dnl Distinguish between old-style and new-style calls.
9251
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9252
AC_SUBST([PACKAGE], [$1])dnl
9253
AC_SUBST([VERSION], [$2])],
9254
[_AM_SET_OPTIONS([$1])dnl
9255
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9256
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9257
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9258
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9259
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9261
_AM_IF_OPTION([no-define],,
9262
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9263
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9265
# Some tools Automake needs.
9266
AC_REQUIRE([AM_SANITY_CHECK])dnl
9267
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9268
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9269
AM_MISSING_PROG(AUTOCONF, autoconf)
9270
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9271
AM_MISSING_PROG(AUTOHEADER, autoheader)
9272
AM_MISSING_PROG(MAKEINFO, makeinfo)
9273
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9274
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9275
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9276
# We need awk for the "check" target. The system "awk" is bad on
9278
AC_REQUIRE([AC_PROG_AWK])dnl
9279
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9280
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9281
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9282
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9283
[_AM_PROG_TAR([v7])])])
9284
_AM_IF_OPTION([no-dependencies],,
9285
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9286
[_AM_DEPENDENCIES(CC)],
9287
[define([AC_PROG_CC],
9288
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9289
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9290
[_AM_DEPENDENCIES(CXX)],
9291
[define([AC_PROG_CXX],
9292
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9293
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9294
[_AM_DEPENDENCIES(OBJC)],
9295
[define([AC_PROG_OBJC],
9296
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9298
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9299
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9300
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9301
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9302
AC_CONFIG_COMMANDS_PRE(dnl
9303
[m4_provide_if([_AM_COMPILER_EXEEXT],
9304
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9307
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9308
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9309
dnl mangled by Autoconf and run in a shell conditional statement.
9310
m4_define([_AC_COMPILER_EXEEXT],
9311
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9314
# When config.status generates a header, we must update the stamp-h file.
9315
# This file resides in the same directory as the config header
9316
# that is generated. The stamp files are numbered to have different names.
9318
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9319
# loop where config.status creates the headers, so we can generate
9320
# our stamp files there.
9321
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9322
[# Compute $1's index in $config_headers.
9325
for _am_header in $config_headers :; do
9327
$_am_arg | $_am_arg:* )
9330
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9333
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9335
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9337
# This file is free software; the Free Software Foundation
9338
# gives unlimited permission to copy and/or distribute it,
9339
# with or without modifications, as long as this notice is preserved.
9341
# AM_PROG_INSTALL_SH
9342
# ------------------
9343
# Define $install_sh.
9344
AC_DEFUN([AM_PROG_INSTALL_SH],
9345
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9346
if test x"${install_sh}" != xset; then
9349
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9351
install_sh="\${SHELL} $am_aux_dir/install-sh"
9354
AC_SUBST(install_sh)])
9356
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9358
# This file is free software; the Free Software Foundation
9359
# gives unlimited permission to copy and/or distribute it,
9360
# with or without modifications, as long as this notice is preserved.
9364
# Check whether the underlying file-system supports filenames
9365
# with a leading dot. For instance MS-DOS doesn't.
9366
AC_DEFUN([AM_SET_LEADING_DOT],
9367
[rm -rf .tst 2>/dev/null
9368
mkdir .tst 2>/dev/null
9369
if test -d .tst; then
9374
rmdir .tst 2>/dev/null
9375
AC_SUBST([am__leading_dot])])
9377
# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
9380
# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9381
# Free Software Foundation, Inc.
9383
# This file is free software; the Free Software Foundation
9384
# gives unlimited permission to copy and/or distribute it,
9385
# with or without modifications, as long as this notice is preserved.
9389
# AM_MAINTAINER_MODE([DEFAULT-MODE])
9390
# ----------------------------------
9391
# Control maintainer-specific portions of Makefiles.
9392
# Default is to disable them, unless `enable' is passed literally.
9393
# For symmetry, `disable' may be passed as well. Anyway, the user
9394
# can override the default with the --enable/--disable switch.
9395
AC_DEFUN([AM_MAINTAINER_MODE],
9396
[m4_case(m4_default([$1], [disable]),
9397
[enable], [m4_define([am_maintainer_other], [disable])],
9398
[disable], [m4_define([am_maintainer_other], [enable])],
9399
[m4_define([am_maintainer_other], [enable])
9400
m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
9401
AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles])
9402
dnl maintainer-mode's default is 'disable' unless 'enable' is passed
9403
AC_ARG_ENABLE([maintainer-mode],
9404
[ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful
9405
(and sometimes confusing) to the casual installer],
9406
[USE_MAINTAINER_MODE=$enableval],
9407
[USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
9408
AC_MSG_RESULT([$USE_MAINTAINER_MODE])
9409
AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
9410
MAINT=$MAINTAINER_MODE_TRUE
9411
AC_SUBST([MAINT])dnl
9415
AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
9417
# Check to see how 'make' treats includes. -*- Autoconf -*-
9419
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9421
# This file is free software; the Free Software Foundation
9422
# gives unlimited permission to copy and/or distribute it,
9423
# with or without modifications, as long as this notice is preserved.
9429
# Check to see how make treats includes.
9430
AC_DEFUN([AM_MAKE_INCLUDE],
9431
[am_make=${MAKE-make}
9432
cat > confinc << 'END'
9434
@echo this is the am__doit target
9437
# If we don't find an include directive, just comment out the code.
9438
AC_MSG_CHECKING([for style of include used by $am_make])
9442
# First try GNU make style include.
9443
echo "include confinc" > confmf
9444
# Ignore all kinds of additional output from `make'.
9445
case `$am_make -s -f confmf 2> /dev/null` in #(
9446
*the\ am__doit\ target*)
9452
# Now try BSD make style include.
9453
if test "$am__include" = "#"; then
9454
echo '.include "confinc"' > confmf
9455
case `$am_make -s -f confmf 2> /dev/null` in #(
9456
*the\ am__doit\ target*)
9457
am__include=.include
9463
AC_SUBST([am__include])
9464
AC_SUBST([am__quote])
9465
AC_MSG_RESULT([$_am_result])
9466
rm -f confinc confmf
9469
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9471
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9472
# Free Software Foundation, Inc.
9474
# This file is free software; the Free Software Foundation
9475
# gives unlimited permission to copy and/or distribute it,
9476
# with or without modifications, as long as this notice is preserved.
9480
# AM_MISSING_PROG(NAME, PROGRAM)
9481
# ------------------------------
9482
AC_DEFUN([AM_MISSING_PROG],
9483
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9484
$1=${$1-"${am_missing_run}$2"}
9488
# AM_MISSING_HAS_RUN
9489
# ------------------
9490
# Define MISSING if not defined so far and test if it supports --run.
9491
# If it does, set am_missing_run to use it, otherwise, to nothing.
9492
AC_DEFUN([AM_MISSING_HAS_RUN],
9493
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9494
AC_REQUIRE_AUX_FILE([missing])dnl
9495
if test x"${MISSING+set}" != xset; then
9498
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9500
MISSING="\${SHELL} $am_aux_dir/missing" ;;
9503
# Use eval to expand $SHELL
9504
if eval "$MISSING --run true"; then
9505
am_missing_run="$MISSING --run "
9508
AC_MSG_WARN([`missing' script is too old or missing])
9512
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9514
# This file is free software; the Free Software Foundation
9515
# gives unlimited permission to copy and/or distribute it,
9516
# with or without modifications, as long as this notice is preserved.
9520
# Check for `mkdir -p'.
9521
AC_DEFUN([AM_PROG_MKDIR_P],
9522
[AC_PREREQ([2.60])dnl
9523
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9524
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9525
dnl while keeping a definition of mkdir_p for backward compatibility.
9526
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9527
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9528
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9529
dnl adjustment using top_builddir (which is defined more often than
9531
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9533
[[\\/$]]* | ?:[[\\/]]*) ;;
9534
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9538
# Helper functions for option handling. -*- Autoconf -*-
9540
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9542
# This file is free software; the Free Software Foundation
9543
# gives unlimited permission to copy and/or distribute it,
9544
# with or without modifications, as long as this notice is preserved.
9548
# _AM_MANGLE_OPTION(NAME)
9549
# -----------------------
9550
AC_DEFUN([_AM_MANGLE_OPTION],
9551
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9553
# _AM_SET_OPTION(NAME)
9554
# ------------------------------
9555
# Set option NAME. Presently that only means defining a flag for this option.
9556
AC_DEFUN([_AM_SET_OPTION],
9557
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9559
# _AM_SET_OPTIONS(OPTIONS)
9560
# ----------------------------------
9561
# OPTIONS is a space-separated list of Automake options.
9562
AC_DEFUN([_AM_SET_OPTIONS],
9563
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9565
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9566
# -------------------------------------------
9567
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9568
AC_DEFUN([_AM_IF_OPTION],
9569
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9571
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9573
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9574
# Free Software Foundation, Inc.
9576
# This file is free software; the Free Software Foundation
9577
# gives unlimited permission to copy and/or distribute it,
9578
# with or without modifications, as long as this notice is preserved.
9584
AC_DEFUN([AM_SANITY_CHECK],
9585
[AC_MSG_CHECKING([whether build environment is sane])
9588
echo timestamp > conftest.file
9589
# Reject unsafe characters in $srcdir or the absolute working directory
9590
# name. Accept space and tab only in the latter.
9594
*[[\\\"\#\$\&\'\`$am_lf]]*)
9595
AC_MSG_ERROR([unsafe absolute working directory name]);;
9598
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9599
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9602
# Do `set' in a subshell so we don't clobber the current shell's
9603
# arguments. Must try -L first in case configure is actually a
9604
# symlink; some systems play weird games with the mod time of symlinks
9605
# (eg FreeBSD returns the mod time of the symlink's containing
9608
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9609
if test "$[*]" = "X"; then
9611
set X `ls -t "$srcdir/configure" conftest.file`
9614
if test "$[*]" != "X $srcdir/configure conftest.file" \
9615
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9617
# If neither matched, then we have a broken ls. This can happen
9618
# if, for instance, CONFIG_SHELL is bash and it inherits a
9619
# broken ls alias from the environment. This has actually
9620
# happened. Such a system could not be considered "sane".
9621
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9622
alias in your environment])
9625
test "$[2]" = conftest.file
9631
AC_MSG_ERROR([newly created file is older than distributed files!
9632
Check your system clock])
9634
AC_MSG_RESULT(yes)])
9636
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9638
# This file is free software; the Free Software Foundation
9639
# gives unlimited permission to copy and/or distribute it,
9640
# with or without modifications, as long as this notice is preserved.
9642
# AM_PROG_INSTALL_STRIP
9643
# ---------------------
9644
# One issue with vendor `install' (even GNU) is that you can't
9645
# specify the program used to strip binaries. This is especially
9646
# annoying in cross-compiling environments, where the build's strip
9647
# is unlikely to handle the host's binaries.
9648
# Fortunately install-sh will honor a STRIPPROG variable, so we
9649
# always use install-sh in `make install-strip', and initialize
9650
# STRIPPROG with the value of the STRIP variable (set by the user).
9651
AC_DEFUN([AM_PROG_INSTALL_STRIP],
9652
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9653
# Installed binaries are usually stripped using `strip' when the user
9654
# run `make install-strip'. However `strip' might not be the right
9655
# tool to use in cross-compilation environments, therefore Automake
9656
# will honor the `STRIP' environment variable to overrule this program.
9657
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9658
if test "$cross_compiling" != no; then
9659
AC_CHECK_TOOL([STRIP], [strip], :)
9661
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9662
AC_SUBST([INSTALL_STRIP_PROGRAM])])
9664
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9666
# This file is free software; the Free Software Foundation
9667
# gives unlimited permission to copy and/or distribute it,
9668
# with or without modifications, as long as this notice is preserved.
9672
# _AM_SUBST_NOTMAKE(VARIABLE)
9673
# ---------------------------
9674
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9675
# This macro is traced by Automake.
9676
AC_DEFUN([_AM_SUBST_NOTMAKE])
9678
# AM_SUBST_NOTMAKE(VARIABLE)
9679
# ---------------------------
9680
# Public sister of _AM_SUBST_NOTMAKE.
9681
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9683
# Check how to create a tarball. -*- Autoconf -*-
9685
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9687
# This file is free software; the Free Software Foundation
9688
# gives unlimited permission to copy and/or distribute it,
9689
# with or without modifications, as long as this notice is preserved.
9693
# _AM_PROG_TAR(FORMAT)
9694
# --------------------
9695
# Check how to create a tarball in format FORMAT.
9696
# FORMAT should be one of `v7', `ustar', or `pax'.
9698
# Substitute a variable $(am__tar) that is a command
9699
# writing to stdout a FORMAT-tarball containing the directory
9701
# tardir=directory && $(am__tar) > result.tar
9703
# Substitute a variable $(am__untar) that extract such
9704
# a tarball read from stdin.
9705
# $(am__untar) < result.tar
9706
AC_DEFUN([_AM_PROG_TAR],
9707
[# Always define AMTAR for backward compatibility.
9708
AM_MISSING_PROG([AMTAR], [tar])
9710
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9711
[m4_case([$1], [ustar],, [pax],,
9712
[m4_fatal([Unknown tar format])])
9713
AC_MSG_CHECKING([how to create a $1 tar archive])
9714
# Loop over all known methods to create a tar archive until one works.
9715
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9716
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
9717
# Do not fold the above two line into one, because Tru64 sh and
9718
# Solaris sh will not grok spaces in the rhs of `-'.
9719
for _am_tool in $_am_tools
9723
for _am_tar in tar gnutar gtar;
9725
AM_RUN_LOG([$_am_tar --version]) && break
9727
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9728
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9729
am__untar="$_am_tar -xf -"
9732
# Must skip GNU tar: if it does not support --format= it doesn't create
9733
# ustar tarball either.
9734
(tar --version) >/dev/null 2>&1 && continue
9735
am__tar='tar chf - "$$tardir"'
9736
am__tar_='tar chf - "$tardir"'
9737
am__untar='tar xf -'
9740
am__tar='pax -L -x $1 -w "$$tardir"'
9741
am__tar_='pax -L -x $1 -w "$tardir"'
9745
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9746
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9747
am__untar='cpio -i -H $1 -d'
9756
# If the value was cached, stop now. We just wanted to have am__tar
9757
# and am__untar set.
9758
test -n "${am_cv_prog_tar_$1}" && break
9760
# tar/untar a dummy directory, and stop if the command works
9763
echo GrepMe > conftest.dir/file
9764
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9766
if test -s conftest.tar; then
9767
AM_RUN_LOG([$am__untar <conftest.tar])
9768
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9773
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9774
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9776
AC_SUBST([am__untar])