1
# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4
# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5
# This file is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17
[m4_warning([this file was generated for autoconf 2.65.
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
# gettext.m4 serial 60 (gettext-0.17)
23
dnl Copyright (C) 1995-2007 Free Software Foundation, Inc.
24
dnl This file is free software; the Free Software Foundation
25
dnl gives unlimited permission to copy and/or distribute it,
26
dnl with or without modifications, as long as this notice is preserved.
28
dnl This file can can be used in projects which are not available under
29
dnl the GNU General Public License or the GNU Library General Public
30
dnl License but which still want to provide support for the GNU gettext
32
dnl Please note that the actual code of the GNU gettext library is covered
33
dnl by the GNU Library General Public License, and the rest of the GNU
34
dnl gettext package package is covered by the GNU General Public License.
35
dnl They are *not* in the public domain.
38
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
39
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2006.
41
dnl Macro to add for using GNU gettext.
43
dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]).
44
dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The
45
dnl default (if it is not specified or empty) is 'no-libtool'.
46
dnl INTLSYMBOL should be 'external' for packages with no intl directory,
47
dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory.
48
dnl If INTLSYMBOL is 'use-libtool', then a libtool library
49
dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static,
50
dnl depending on --{enable,disable}-{shared,static} and on the presence of
51
dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library
52
dnl $(top_builddir)/intl/libintl.a will be created.
53
dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext
54
dnl implementations (in libc or libintl) without the ngettext() function
55
dnl will be ignored. If NEEDSYMBOL is specified and is
56
dnl 'need-formatstring-macros', then GNU gettext implementations that don't
57
dnl support the ISO C 99 <inttypes.h> formatstring macros will be ignored.
58
dnl INTLDIR is used to find the intl libraries. If empty,
59
dnl the value `$(top_builddir)/intl/' is used.
61
dnl The result of the configuration is one of three cases:
62
dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled
64
dnl Catalog format: GNU --> install in $(datadir)
65
dnl Catalog extension: .mo after installation, .gmo in source tree
66
dnl 2) GNU gettext has been found in the system's C library.
67
dnl Catalog format: GNU --> install in $(datadir)
68
dnl Catalog extension: .mo after installation, .gmo in source tree
69
dnl 3) No internationalization, always use English msgid.
70
dnl Catalog format: none
71
dnl Catalog extension: none
72
dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur.
73
dnl The use of .gmo is historical (it was needed to avoid overwriting the
74
dnl GNU format catalogs when building on a platform with an X/Open gettext),
75
dnl but we keep it in order not to force irrelevant filename changes on the
78
AC_DEFUN([AM_GNU_GETTEXT],
80
dnl Argument checking.
81
ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], ,
82
[errprint([ERROR: invalid first argument to AM_GNU_GETTEXT
84
ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], ,
85
[errprint([ERROR: invalid second argument to AM_GNU_GETTEXT
87
define([gt_included_intl],
88
ifelse([$1], [external],
89
ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]),
91
define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], []))
93
AM_GNU_GETTEXT_NEED([$2])
95
AC_REQUIRE([AM_PO_SUBDIRS])dnl
96
ifelse(gt_included_intl, yes, [
97
AC_REQUIRE([AM_INTL_SUBDIR])dnl
100
dnl Prerequisites of AC_LIB_LINKFLAGS_BODY.
101
AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
102
AC_REQUIRE([AC_LIB_RPATH])
104
dnl Sometimes libintl requires libiconv, so first search for libiconv.
105
dnl Ideally we would do this search only after the
106
dnl if test "$USE_NLS" = "yes"; then
107
dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
108
dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT
109
dnl the configure script would need to contain the same shell code
110
dnl again, outside any 'if'. There are two solutions:
111
dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'.
112
dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE.
113
dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not
114
dnl documented, we avoid it.
115
ifelse(gt_included_intl, yes, , [
116
AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY])
119
dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation.
125
ifelse(gt_included_intl, yes, [
126
BUILD_INCLUDED_LIBINTL=no
127
USE_INCLUDED_LIBINTL=no
133
dnl Add a version number to the cache macros.
134
case " $gt_needs " in
135
*" need-formatstring-macros "*) gt_api_version=3 ;;
136
*" need-ngettext "*) gt_api_version=2 ;;
137
*) gt_api_version=1 ;;
139
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
140
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
142
dnl If we use NLS figure out what method
143
if test "$USE_NLS" = "yes"; then
144
gt_use_preinstalled_gnugettext=no
145
ifelse(gt_included_intl, yes, [
146
AC_MSG_CHECKING([whether included gettext is requested])
147
AC_ARG_WITH(included-gettext,
148
[ --with-included-gettext use the GNU gettext library included here],
149
nls_cv_force_use_gnu_gettext=$withval,
150
nls_cv_force_use_gnu_gettext=no)
151
AC_MSG_RESULT($nls_cv_force_use_gnu_gettext)
153
nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
154
if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
156
dnl User does not insist on using GNU NLS library. Figure out what
157
dnl to use. If GNU gettext is available we use this. Else we have
158
dnl to fall back to GNU NLS library.
160
if test $gt_api_version -ge 3; then
161
gt_revision_test_code='
162
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
163
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
166
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
170
gt_revision_test_code=
172
if test $gt_api_version -ge 2; then
173
gt_expression_test_code=' + * ngettext ("", "", 0)'
175
gt_expression_test_code=
178
AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc],
179
[AC_TRY_LINK([#include <libintl.h>
180
$gt_revision_test_code
181
extern int _nl_msg_cat_cntr;
182
extern int *_nl_domain_bindings;],
183
[bindtextdomain ("", "");
184
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings],
185
[eval "$gt_func_gnugettext_libc=yes"],
186
[eval "$gt_func_gnugettext_libc=no"])])
188
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
189
dnl Sometimes libintl requires libiconv, so first search for libiconv.
190
ifelse(gt_included_intl, yes, , [
193
dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL
194
dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv])
195
dnl because that would add "-liconv" to LIBINTL and LTLIBINTL
196
dnl even if libiconv doesn't exist.
197
AC_LIB_LINKFLAGS_BODY([intl])
198
AC_CACHE_CHECK([for GNU gettext in libintl],
199
[$gt_func_gnugettext_libintl],
200
[gt_save_CPPFLAGS="$CPPFLAGS"
201
CPPFLAGS="$CPPFLAGS $INCINTL"
203
LIBS="$LIBS $LIBINTL"
204
dnl Now see whether libintl exists and does not depend on libiconv.
205
AC_TRY_LINK([#include <libintl.h>
206
$gt_revision_test_code
207
extern int _nl_msg_cat_cntr;
212
const char *_nl_expand_alias (const char *);],
213
[bindtextdomain ("", "");
214
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
215
[eval "$gt_func_gnugettext_libintl=yes"],
216
[eval "$gt_func_gnugettext_libintl=no"])
217
dnl Now see whether libintl exists and depends on libiconv.
218
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
219
LIBS="$LIBS $LIBICONV"
220
AC_TRY_LINK([#include <libintl.h>
221
$gt_revision_test_code
222
extern int _nl_msg_cat_cntr;
227
const char *_nl_expand_alias (const char *);],
228
[bindtextdomain ("", "");
229
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")],
230
[LIBINTL="$LIBINTL $LIBICONV"
231
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
232
eval "$gt_func_gnugettext_libintl=yes"
235
CPPFLAGS="$gt_save_CPPFLAGS"
236
LIBS="$gt_save_LIBS"])
239
dnl If an already present or preinstalled GNU gettext() is found,
240
dnl use it. But if this macro is used in GNU gettext, and GNU
241
dnl gettext is already preinstalled in libintl, we update this
242
dnl libintl. (Cf. the install rule in intl/Makefile.in.)
243
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
244
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
245
&& test "$PACKAGE" != gettext-runtime \
246
&& test "$PACKAGE" != gettext-tools; }; then
247
gt_use_preinstalled_gnugettext=yes
249
dnl Reset the values set by searching for libintl.
255
ifelse(gt_included_intl, yes, [
256
if test "$gt_use_preinstalled_gnugettext" != "yes"; then
257
dnl GNU gettext is not found in the C library.
258
dnl Fall back on included GNU gettext library.
259
nls_cv_use_gnu_gettext=yes
263
if test "$nls_cv_use_gnu_gettext" = "yes"; then
264
dnl Mark actions used to generate GNU NLS library.
265
BUILD_INCLUDED_LIBINTL=yes
266
USE_INCLUDED_LIBINTL=yes
267
LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD"
268
LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD"
269
LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
273
if test "$gt_use_preinstalled_gnugettext" = "yes" \
274
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
275
dnl Mark actions to use GNU gettext tools.
280
if test -n "$INTL_MACOSX_LIBS"; then
281
if test "$gt_use_preinstalled_gnugettext" = "yes" \
282
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
283
dnl Some extra flags are needed during linking.
284
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
285
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
289
if test "$gt_use_preinstalled_gnugettext" = "yes" \
290
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
291
AC_DEFINE(ENABLE_NLS, 1,
292
[Define to 1 if translation of program messages to the user's native language
299
AC_MSG_CHECKING([whether to use NLS])
300
AC_MSG_RESULT([$USE_NLS])
301
if test "$USE_NLS" = "yes"; then
302
AC_MSG_CHECKING([where the gettext function comes from])
303
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
304
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
305
gt_source="external libintl"
310
gt_source="included intl directory"
312
AC_MSG_RESULT([$gt_source])
315
if test "$USE_NLS" = "yes"; then
317
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
318
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
319
AC_MSG_CHECKING([how to link with libintl])
320
AC_MSG_RESULT([$LIBINTL])
321
AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL])
324
dnl For backward compatibility. Some packages may be using this.
325
AC_DEFINE(HAVE_GETTEXT, 1,
326
[Define if the GNU gettext() function is already present or preinstalled.])
327
AC_DEFINE(HAVE_DCGETTEXT, 1,
328
[Define if the GNU dcgettext() function is already present or preinstalled.])
331
dnl We need to process the po/ directory.
335
ifelse(gt_included_intl, yes, [
336
dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL
337
dnl to 'yes' because some of the testsuite requires it.
338
if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
339
BUILD_INCLUDED_LIBINTL=yes
342
dnl Make all variables we use known to autoconf.
343
AC_SUBST(BUILD_INCLUDED_LIBINTL)
344
AC_SUBST(USE_INCLUDED_LIBINTL)
347
dnl For backward compatibility. Some configure.ins may be using this.
351
dnl For backward compatibility. Some Makefiles may be using this.
353
AC_SUBST(DATADIRNAME)
355
dnl For backward compatibility. Some Makefiles may be using this.
359
dnl For backward compatibility. Some Makefiles may be using this.
363
dnl For backward compatibility. Some Makefiles may be using this.
365
if test "$USE_INCLUDED_LIBINTL" = yes; then
366
INTLOBJS="\$(GETTOBJS)"
370
dnl Enable libtool support if the surrounding package wishes it.
371
INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix
372
AC_SUBST(INTL_LIBTOOL_SUFFIX_PREFIX)
375
dnl For backward compatibility. Some Makefiles may be using this.
379
dnl Make all documented variables known to autoconf.
386
dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized.
387
m4_define([gt_NEEDS_INIT],
389
m4_divert_text([DEFAULTS], [gt_needs=])
390
m4_define([gt_NEEDS_INIT], [])
394
dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL])
395
AC_DEFUN([AM_GNU_GETTEXT_NEED],
397
m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"])
401
dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version])
402
AC_DEFUN([AM_GNU_GETTEXT_VERSION], [])
404
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
405
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
407
# This file is free software, distributed under the terms of the GNU
408
# General Public License. As a special exception to the GNU General
409
# Public License, this file may be distributed as part of a program
410
# that contains a configuration script generated by Autoconf, under
411
# the same distribution terms as the rest of that program.
413
# This file can be copied and used freely without restrictions. It can
414
# be used in projects which are not available under the GNU Public License
415
# but which still want to provide support for the GNU gettext functionality.
417
# Macro to add for using GNU gettext.
418
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
420
# Modified to never use included libintl.
421
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
423
# Major rework to remove unused code
424
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
426
# Added better handling of ALL_LINGUAS from GNU gettext version
427
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
429
# Modified to require ngettext
430
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
432
# We need this here as well, since someone might use autoconf-2.5x
433
# to configure GLib then an older version to configure a package
434
# using AM_GLIB_GNU_GETTEXT
438
dnl We go to great lengths to make sure that aclocal won't
439
dnl try to pull in the installed version of these macros
440
dnl when running aclocal in the glib directory.
442
m4_copy([AC_DEFUN],[glib_DEFUN])
443
m4_copy([AC_REQUIRE],[glib_REQUIRE])
445
dnl At the end, if we're not within glib, we'll define the public
446
dnl definitions in terms of our private definitions.
450
#--------------------
451
glib_DEFUN([GLIB_LC_MESSAGES],
452
[AC_CHECK_HEADERS([locale.h])
453
if test $ac_cv_header_locale_h = yes; then
454
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
455
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
456
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
457
if test $am_cv_val_LC_MESSAGES = yes; then
458
AC_DEFINE(HAVE_LC_MESSAGES, 1,
459
[Define if your <locale.h> file defines LC_MESSAGES.])
463
# GLIB_PATH_PROG_WITH_TEST
464
#----------------------------
465
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
466
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
467
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
468
[# Extract the first word of "$2", so it can be a program name with args.
469
set dummy $2; ac_word=[$]2
470
AC_MSG_CHECKING([for $ac_word])
471
AC_CACHE_VAL(ac_cv_path_$1,
474
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
477
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
478
for ac_dir in ifelse([$5], , $PATH, [$5]); do
479
test -z "$ac_dir" && ac_dir=.
480
if test -f $ac_dir/$ac_word; then
482
ac_cv_path_$1="$ac_dir/$ac_word"
488
dnl If no 4th arg is given, leave the cache variable unset,
489
dnl so AC_PATH_PROGS will keep looking.
490
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
495
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
505
glib_DEFUN([GLIB_WITH_NLS],
506
dnl NLS is obligatory
510
gt_cv_have_gettext=no
516
AC_CHECK_HEADER(libintl.h,
517
[gt_cv_func_dgettext_libintl="no"
518
libintl_extra_libs=""
521
# First check in libc
523
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
527
[return !ngettext ("","", 1)],
528
gt_cv_func_ngettext_libc=yes,
529
gt_cv_func_ngettext_libc=no)
532
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
533
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
537
[return !dgettext ("","")],
538
gt_cv_func_dgettext_libc=yes,
539
gt_cv_func_dgettext_libc=no)
543
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
544
AC_CHECK_FUNCS(bind_textdomain_codeset)
548
# If we don't have everything we want, check in libintl
550
if test "$gt_cv_func_dgettext_libc" != "yes" \
551
|| test "$gt_cv_func_ngettext_libc" != "yes" \
552
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
554
AC_CHECK_LIB(intl, bindtextdomain,
555
[AC_CHECK_LIB(intl, ngettext,
556
[AC_CHECK_LIB(intl, dgettext,
557
gt_cv_func_dgettext_libintl=yes)])])
559
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
560
AC_MSG_CHECKING([if -liconv is needed to use gettext])
562
AC_CHECK_LIB(intl, ngettext,
563
[AC_CHECK_LIB(intl, dcgettext,
564
[gt_cv_func_dgettext_libintl=yes
565
libintl_extra_libs=-liconv],
571
# If we found libintl, then check in it for bind_textdomain_codeset();
572
# we'll prefer libc if neither have bind_textdomain_codeset(),
573
# and both have dgettext and ngettext
575
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
576
glib_save_LIBS="$LIBS"
577
LIBS="$LIBS -lintl $libintl_extra_libs"
578
unset ac_cv_func_bind_textdomain_codeset
579
AC_CHECK_FUNCS(bind_textdomain_codeset)
580
LIBS="$glib_save_LIBS"
582
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
583
gt_cv_func_dgettext_libc=no
585
if test "$gt_cv_func_dgettext_libc" = "yes" \
586
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
587
gt_cv_func_dgettext_libintl=no
593
if test "$gt_cv_func_dgettext_libc" = "yes" \
594
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
595
gt_cv_have_gettext=yes
598
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
599
INTLLIBS="-lintl $libintl_extra_libs"
602
if test "$gt_cv_have_gettext" = "yes"; then
603
AC_DEFINE(HAVE_GETTEXT,1,
604
[Define if the GNU gettext() function is already present or preinstalled.])
605
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
606
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
607
if test "$MSGFMT" != "no"; then
608
glib_save_LIBS="$LIBS"
609
LIBS="$LIBS $INTLLIBS"
610
AC_CHECK_FUNCS(dcgettext)
612
AC_MSG_CHECKING([if msgfmt accepts -c])
613
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
616
"Content-Type: text/plain; charset=UTF-8\n"
617
"Project-Id-Version: test 1.0\n"
618
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
619
"Last-Translator: test <foo@bar.xx>\n"
620
"Language-Team: C <LL@li.org>\n"
621
"MIME-Version: 1.0\n"
622
"Content-Transfer-Encoding: 8bit\n"
623
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
624
AC_SUBST(MSGFMT_OPTS)
625
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
626
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
627
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
628
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
629
return _nl_msg_cat_cntr],
634
dnl On Solaris, if bind_textdomain_codeset is in libc,
635
dnl GNU format message catalog is always supported,
636
dnl since both are added to the libc all together.
637
dnl Hence, we'd like to go with DATADIRNAME=share and
638
dnl and CATOBJEXT=.gmo in this case.
639
AC_CHECK_FUNC(bind_textdomain_codeset,
650
LIBS="$glib_save_LIBS"
653
gt_cv_have_gettext=no
658
if test "$gt_cv_have_gettext" = "yes" ; then
659
AC_DEFINE(ENABLE_NLS, 1,
660
[always defined to indicate that i18n is enabled])
663
dnl Test whether we really found GNU xgettext.
664
if test "$XGETTEXT" != ":"; then
665
dnl If it is not GNU xgettext we define it as : so that the
666
dnl Makefiles still can work.
667
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
671
[found xgettext program is not GNU xgettext; ignore it])
676
# We need to process the po/ directory.
680
[case "$CONFIG_FILES" in *po/Makefile.in*)
681
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
684
dnl These rules are solely for the distribution goal. While doing this
685
dnl we only have to keep exactly one list of the available catalogs
687
for lang in $ALL_LINGUAS; do
688
GMOFILES="$GMOFILES $lang.gmo"
689
POFILES="$POFILES $lang.po"
692
dnl Make all variables we use known to autoconf.
695
AC_SUBST(DATADIRNAME)
699
AC_SUBST(PO_IN_DATADIR_TRUE)
700
AC_SUBST(PO_IN_DATADIR_FALSE)
705
# AM_GLIB_GNU_GETTEXT
706
# -------------------
707
# Do checks necessary for use of gettext. If a suitable implementation
708
# of gettext is found in either in libintl or in the C library,
709
# it will set INTLLIBS to the libraries needed for use of gettext
710
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
711
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
712
# on various variables needed by the Makefile.in.in installed by
715
glib_DEFUN([GLIB_GNU_GETTEXT],
716
[AC_REQUIRE([AC_PROG_CC])dnl
717
AC_REQUIRE([AC_HEADER_STDC])dnl
722
if test "$gt_cv_have_gettext" = "yes"; then
723
if test "x$ALL_LINGUAS" = "x"; then
726
AC_MSG_CHECKING(for catalogs to be installed)
728
for presentlang in $ALL_LINGUAS; do
730
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
731
desiredlanguages="$LINGUAS"
733
desiredlanguages="$ALL_LINGUAS"
735
for desiredlang in $desiredlanguages; do
736
# Use the presentlang catalog if desiredlang is
737
# a. equal to presentlang, or
738
# b. a variant of presentlang (because in this case,
739
# presentlang can be used as a fallback for messages
740
# which are not translated in the desiredlang catalog).
741
case "$desiredlang" in
742
"$presentlang"*) useit=yes;;
745
if test $useit = yes; then
746
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
750
AC_MSG_RESULT($LINGUAS)
753
dnl Construct list of names of catalog files to be constructed.
754
if test -n "$LINGUAS"; then
755
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
759
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
760
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
761
dnl Try to locate is.
763
if test -n "$ac_aux_dir"; then
764
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
766
if test -z "$MKINSTALLDIRS"; then
767
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
769
AC_SUBST(MKINSTALLDIRS)
771
dnl Generate list of files to be processed by xgettext which will
772
dnl be included in po/Makefile.
773
test -d po || mkdir po
774
if test "x$srcdir" != "x."; then
775
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
776
posrcprefix="$srcdir/"
778
posrcprefix="../$srcdir/"
784
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
785
< $srcdir/po/POTFILES.in > po/POTFILES
788
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
789
# -------------------------------
790
# Define VARIABLE to the location where catalog files will
791
# be installed by po/Makefile.
792
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
793
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
794
glib_save_prefix="$prefix"
795
glib_save_exec_prefix="$exec_prefix"
796
glib_save_datarootdir="$datarootdir"
797
test "x$prefix" = xNONE && prefix=$ac_default_prefix
798
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
799
datarootdir=`eval echo "${datarootdir}"`
800
if test "x$CATOBJEXT" = "x.mo" ; then
801
localedir=`eval echo "${libdir}/locale"`
803
localedir=`eval echo "${datadir}/locale"`
805
prefix="$glib_save_prefix"
806
exec_prefix="$glib_save_exec_prefix"
807
datarootdir="$glib_save_datarootdir"
808
AC_DEFINE_UNQUOTED($1, "$localedir",
809
[Define the location where the catalogs will be installed])
813
dnl Now the definitions that aclocal will find
815
ifdef(glib_configure_in,[],[
816
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
817
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
820
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
822
# Create a temporary file with TEST-FILE as its contents and pass the
823
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
824
# 0 and perform ACTION-IF-FAIL for any other exit status.
825
AC_DEFUN([GLIB_RUN_PROG],
826
[cat >conftest.foo <<_ACEOF
829
if AC_RUN_LOG([$1 conftest.foo]); then
830
m4_ifval([$3], [$3], [:])
831
m4_ifvaln([$4], [else $4])dnl
832
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
833
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
838
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
839
# serial 40 IT_PROG_INTLTOOL
840
AC_DEFUN([IT_PROG_INTLTOOL], [
842
AC_REQUIRE([AM_NLS])dnl
844
case "$am__api_version" in
846
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
852
if test -n "$1"; then
853
AC_MSG_CHECKING([for intltool >= $1])
855
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
856
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
857
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
859
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
860
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
861
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
864
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
865
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
866
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
867
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
868
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
871
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 $< [$]@'
872
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 $< [$]@'
873
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 $< [$]@'
874
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 $< [$]@'
875
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
876
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 $< [$]@'
877
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 $< [$]@'
878
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 $< [$]@'
879
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 $< [$]@'
880
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 $< [$]@'
881
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 $< [$]@'
882
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
883
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 $< [$]@'
884
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 $< [$]@'
885
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 $< [$]@'
886
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 $< [$]@'
887
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 $< [$]@'
888
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 $< [$]@'
889
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 $< [$]@'
891
_IT_SUBST(INTLTOOL_DESKTOP_RULE)
892
_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
893
_IT_SUBST(INTLTOOL_KEYS_RULE)
894
_IT_SUBST(INTLTOOL_PROP_RULE)
895
_IT_SUBST(INTLTOOL_OAF_RULE)
896
_IT_SUBST(INTLTOOL_PONG_RULE)
897
_IT_SUBST(INTLTOOL_SERVER_RULE)
898
_IT_SUBST(INTLTOOL_SHEET_RULE)
899
_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
900
_IT_SUBST(INTLTOOL_UI_RULE)
901
_IT_SUBST(INTLTOOL_XAM_RULE)
902
_IT_SUBST(INTLTOOL_KBD_RULE)
903
_IT_SUBST(INTLTOOL_XML_RULE)
904
_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
905
_IT_SUBST(INTLTOOL_CAVES_RULE)
906
_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
907
_IT_SUBST(INTLTOOL_THEME_RULE)
908
_IT_SUBST(INTLTOOL_SERVICE_RULE)
909
_IT_SUBST(INTLTOOL_POLICY_RULE)
911
# Check the gettext tools to make sure they are GNU
912
AC_PATH_PROG(XGETTEXT, xgettext)
913
AC_PATH_PROG(MSGMERGE, msgmerge)
914
AC_PATH_PROG(MSGFMT, msgfmt)
915
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
916
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
917
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
919
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
920
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
921
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
922
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
923
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
926
AC_PATH_PROG(INTLTOOL_PERL, perl)
927
if test -z "$INTLTOOL_PERL"; then
928
AC_MSG_ERROR([perl not found])
930
AC_MSG_CHECKING([for perl >= 5.8.1])
931
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
932
if test $? -ne 0; then
933
AC_MSG_ERROR([perl 5.8.1 is required for intltool])
935
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
936
AC_MSG_RESULT([$IT_PERL_VERSION])
938
if test "x$2" != "xno-xml"; then
939
AC_MSG_CHECKING([for XML::Parser])
940
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
943
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
947
# Substitute ALL_LINGUAS so we can use it in po/Makefile
948
AC_SUBST(ALL_LINGUAS)
950
# Set DATADIRNAME correctly if it is not set yet
951
# (copied from glib-gettext.m4)
952
if test -z "$DATADIRNAME"; then
954
[AC_LANG_PROGRAM([[]],
955
[[extern int _nl_msg_cat_cntr;
956
return _nl_msg_cat_cntr]])],
960
dnl On Solaris, if bind_textdomain_codeset is in libc,
961
dnl GNU format message catalog is always supported,
962
dnl since both are added to the libc all together.
963
dnl Hence, we'd like to go with DATADIRNAME=share
965
AC_CHECK_FUNC(bind_textdomain_codeset,
966
[DATADIRNAME=share], [DATADIRNAME=lib])
973
AC_SUBST(DATADIRNAME)
980
# IT_PO_SUBDIR(DIRNAME)
981
# ---------------------
982
# All po subdirs have to be declared with this macro; the subdir "po" is
983
# declared by IT_PROG_INTLTOOL.
985
AC_DEFUN([IT_PO_SUBDIR],
986
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
988
dnl The following CONFIG_COMMANDS should be exetuted at the very end
989
dnl of config.status.
990
AC_CONFIG_COMMANDS_PRE([
991
AC_CONFIG_COMMANDS([$1/stamp-it], [
992
if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
993
AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
995
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
1000
'"s|^| $ac_top_srcdir/|" \
1001
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
1003
[sed '/^POTFILES =/,/[^\\]$/ {
1007
' "$1/Makefile.in" >"$1/Makefile"]
1008
rm -f "$1/Makefile.tmp"
1009
mv "$1/stamp-it.tmp" "$1/stamp-it"
1014
# _IT_SUBST(VARIABLE)
1015
# -------------------
1016
# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
1018
AC_DEFUN([_IT_SUBST],
1021
m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
1026
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
1027
# A hint is needed for aclocal from Automake <= 1.9.4:
1028
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
1031
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1033
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1034
# 2006, 2007, 2008 Free Software Foundation, Inc.
1035
# Written by Gordon Matzigkeit, 1996
1037
# This file is free software; the Free Software Foundation gives
1038
# unlimited permission to copy and/or distribute it, with or without
1039
# modifications, as long as this notice is preserved.
1041
m4_define([_LT_COPYING], [dnl
1042
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
1043
# 2006, 2007, 2008 Free Software Foundation, Inc.
1044
# Written by Gordon Matzigkeit, 1996
1046
# This file is part of GNU Libtool.
1048
# GNU Libtool is free software; you can redistribute it and/or
1049
# modify it under the terms of the GNU General Public License as
1050
# published by the Free Software Foundation; either version 2 of
1051
# the License, or (at your option) any later version.
1053
# As a special exception to the GNU General Public License,
1054
# if you distribute this file as part of a program or library that
1055
# is built using GNU Libtool, you may include this file under the
1056
# same distribution terms that you use for the rest of that program.
1058
# GNU Libtool is distributed in the hope that it will be useful,
1059
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1060
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1061
# GNU General Public License for more details.
1063
# You should have received a copy of the GNU General Public License
1064
# along with GNU Libtool; see the file COPYING. If not, a copy
1065
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
1066
# obtained by writing to the Free Software Foundation, Inc.,
1067
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1073
# LT_PREREQ(VERSION)
1074
# ------------------
1075
# Complain and exit if this libtool version is less that VERSION.
1076
m4_defun([LT_PREREQ],
1077
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1079
[m4_fatal([Libtool version $1 or higher is required],
1084
# _LT_CHECK_BUILDDIR
1085
# ------------------
1086
# Complain if the absolute build directory name contains unusual characters
1087
m4_defun([_LT_CHECK_BUILDDIR],
1090
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1095
# LT_INIT([OPTIONS])
1096
# ------------------
1098
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1099
AC_BEFORE([$0], [LT_LANG])dnl
1100
AC_BEFORE([$0], [LT_OUTPUT])dnl
1101
AC_BEFORE([$0], [LTDL_INIT])dnl
1102
m4_require([_LT_CHECK_BUILDDIR])dnl
1104
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1105
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1106
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1107
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1108
dnl unless we require an AC_DEFUNed macro:
1109
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1110
AC_REQUIRE([LTSUGAR_VERSION])dnl
1111
AC_REQUIRE([LTVERSION_VERSION])dnl
1112
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1113
m4_require([_LT_PROG_LTMAIN])dnl
1116
_LT_SET_OPTIONS([$0], [$1])
1118
# This can be used to rebuild libtool when needed
1119
LIBTOOL_DEPS="$ltmain"
1121
# Always use our own libtool.
1122
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1123
AC_SUBST(LIBTOOL)dnl
1128
m4_define([LT_INIT])
1132
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1133
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1134
dnl aclocal-1.4 backwards compatibility:
1135
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1136
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1139
# _LT_CC_BASENAME(CC)
1140
# -------------------
1141
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1142
m4_defun([_LT_CC_BASENAME],
1143
[for cc_temp in $1""; do
1145
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1146
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1151
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1155
# _LT_FILEUTILS_DEFAULTS
1156
# ----------------------
1157
# It is okay to use these file commands and assume they have been set
1158
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1159
m4_defun([_LT_FILEUTILS_DEFAULTS],
1163
])# _LT_FILEUTILS_DEFAULTS
1168
m4_defun([_LT_SETUP],
1169
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
1170
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1171
_LT_DECL([], [host_alias], [0], [The host system])dnl
1172
_LT_DECL([], [host], [0])dnl
1173
_LT_DECL([], [host_os], [0])dnl
1175
_LT_DECL([], [build_alias], [0], [The build system])dnl
1176
_LT_DECL([], [build], [0])dnl
1177
_LT_DECL([], [build_os], [0])dnl
1179
AC_REQUIRE([AC_PROG_CC])dnl
1180
AC_REQUIRE([LT_PATH_LD])dnl
1181
AC_REQUIRE([LT_PATH_NM])dnl
1183
AC_REQUIRE([AC_PROG_LN_S])dnl
1184
test -z "$LN_S" && LN_S="ln -s"
1185
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1187
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1188
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1189
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1191
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1192
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1193
m4_require([_LT_CMD_RELOAD])dnl
1194
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1195
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1196
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1198
_LT_CONFIG_LIBTOOL_INIT([
1199
# See if we are running on zsh, and set the options which allow our
1200
# commands through without removal of \ escapes INIT.
1201
if test -n "\${ZSH_VERSION+set}" ; then
1202
setopt NO_GLOB_SUBST
1205
if test -n "${ZSH_VERSION+set}" ; then
1206
setopt NO_GLOB_SUBST
1211
m4_require([_LT_TAG_COMPILER])dnl
1212
_LT_PROG_ECHO_BACKSLASH
1216
# AIX sometimes has problems with the GCC collect2 program. For some
1217
# reason, if we set the COLLECT_NAMES environment variable, the problems
1218
# vanish in a puff of smoke.
1219
if test "X${COLLECT_NAMES+set}" != Xset; then
1221
export COLLECT_NAMES
1226
# Sed substitution that helps us do robust quoting. It backslashifies
1227
# metacharacters that are still active within double-quoted strings.
1228
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
1230
# Same as above, but do not quote variable references.
1231
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
1233
# Sed substitution to delay expansion of an escaped shell variable in a
1234
# double_quote_subst'ed string.
1235
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1237
# Sed substitution to delay expansion of an escaped single quote.
1238
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
1240
# Sed substitution to avoid accidental globbing in evaled expressions
1241
no_glob_subst='s/\*/\\\*/g'
1245
can_build_shared=yes
1247
# All known linkers require a `.a' archive for static linking (except MSVC,
1248
# which needs '.lib').
1251
with_gnu_ld="$lt_cv_prog_gnu_ld"
1254
old_CFLAGS="$CFLAGS"
1256
# Set sane defaults for various variables
1257
test -z "$CC" && CC=cc
1258
test -z "$LTCC" && LTCC=$CC
1259
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1260
test -z "$LD" && LD=ld
1261
test -z "$ac_objext" && ac_objext=o
1263
_LT_CC_BASENAME([$compiler])
1265
# Only perform the check for file, if the check method requires it
1266
test -z "$MAGIC_CMD" && MAGIC_CMD=file
1267
case $deplibs_check_method in
1269
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1275
# Use C for the default configuration in the libtool script
1276
LT_SUPPORTED_TAG([CC])
1278
_LT_LANG_DEFAULT_CONFIG
1285
# Note that this code is called both from `configure', and `config.status'
1286
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1287
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1288
# so we pass a copy along to make sure it has a sensible value anyway.
1289
m4_defun([_LT_PROG_LTMAIN],
1290
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1291
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1292
ltmain="$ac_aux_dir/ltmain.sh"
1297
# So that we can recreate a full libtool script including additional
1298
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1299
# in macros and then make a single call at the end using the `libtool'
1303
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1304
# ----------------------------------------
1305
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1306
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1308
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1313
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1316
# _LT_CONFIG_LIBTOOL([COMMANDS])
1317
# ------------------------------
1318
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1319
m4_define([_LT_CONFIG_LIBTOOL],
1321
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1326
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1329
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1330
# -----------------------------------------------------
1331
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1332
[_LT_CONFIG_LIBTOOL([$1])
1333
_LT_CONFIG_LIBTOOL_INIT([$2])
1337
# _LT_FORMAT_COMMENT([COMMENT])
1338
# -----------------------------
1339
# Add leading comment marks to the start of each line, and a trailing
1340
# full-stop to the whole comment if one is not present already.
1341
m4_define([_LT_FORMAT_COMMENT],
1343
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1344
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1351
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1352
# -------------------------------------------------------------------
1353
# CONFIGNAME is the name given to the value in the libtool script.
1354
# VARNAME is the (base) name used in the configure script.
1355
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1356
# VARNAME. Any other value will be used directly.
1357
m4_define([_LT_DECL],
1358
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1359
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1360
[m4_ifval([$1], [$1], [$2])])
1361
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1363
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1364
lt_dict_add_subkey([lt_decl_dict], [$2],
1365
[tagged?], [m4_ifval([$5], [yes], [no])])])
1369
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1370
# --------------------------------------------------------
1371
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1374
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1375
# ------------------------------------------------
1376
m4_define([lt_decl_tag_varnames],
1377
[_lt_decl_filter([tagged?], [yes], $@)])
1380
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1381
# ---------------------------------------------------------
1382
m4_define([_lt_decl_filter],
1384
[0], [m4_fatal([$0: too few arguments: $#])],
1385
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1386
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1387
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1388
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1392
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1393
# --------------------------------------------------
1394
m4_define([lt_decl_quote_varnames],
1395
[_lt_decl_filter([value], [1], $@)])
1398
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1399
# ---------------------------------------------------
1400
m4_define([lt_decl_dquote_varnames],
1401
[_lt_decl_filter([value], [2], $@)])
1404
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1405
# ---------------------------------------------------
1406
m4_define([lt_decl_varnames_tagged],
1407
[m4_assert([$# <= 2])dnl
1408
_$0(m4_quote(m4_default([$1], [[, ]])),
1409
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1410
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1411
m4_define([_lt_decl_varnames_tagged],
1412
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1415
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1416
# ------------------------------------------------
1417
m4_define([lt_decl_all_varnames],
1418
[_$0(m4_quote(m4_default([$1], [[, ]])),
1420
m4_quote(lt_decl_varnames),
1421
m4_quote(m4_shift($@))))[]dnl
1423
m4_define([_lt_decl_all_varnames],
1424
[lt_join($@, lt_decl_varnames_tagged([$1],
1425
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1429
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1430
# ------------------------------------
1431
# Quote a variable value, and forward it to `config.status' so that its
1432
# declaration there will have the same value as in `configure'. VARNAME
1433
# must have a single quote delimited value for this to work.
1434
m4_define([_LT_CONFIG_STATUS_DECLARE],
1435
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1438
# _LT_CONFIG_STATUS_DECLARATIONS
1439
# ------------------------------
1440
# We delimit libtool config variables with single quotes, so when
1441
# we write them to config.status, we have to be sure to quote all
1442
# embedded single quotes properly. In configure, this macro expands
1443
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1445
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1446
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1447
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1448
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1453
# Output comment and list of tags supported by the script
1454
m4_defun([_LT_LIBTOOL_TAGS],
1455
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1456
available_tags="_LT_TAGS"dnl
1460
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1461
# -----------------------------------
1462
# Extract the dictionary values for VARNAME (optionally with TAG) and
1463
# expand to a commented shell variable setting:
1465
# # Some comment about what VAR is for.
1466
# visible_name=$lt_internal_name
1467
m4_define([_LT_LIBTOOL_DECLARE],
1468
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1469
[description])))[]dnl
1470
m4_pushdef([_libtool_name],
1471
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1472
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1473
[0], [_libtool_name=[$]$1],
1474
[1], [_libtool_name=$lt_[]$1],
1475
[2], [_libtool_name=$lt_[]$1],
1476
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1477
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1481
# _LT_LIBTOOL_CONFIG_VARS
1482
# -----------------------
1483
# Produce commented declarations of non-tagged libtool config variables
1484
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1485
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1486
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1487
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1488
[m4_foreach([_lt_var],
1489
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1490
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1493
# _LT_LIBTOOL_TAG_VARS(TAG)
1494
# -------------------------
1495
m4_define([_LT_LIBTOOL_TAG_VARS],
1496
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1497
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1500
# _LT_TAGVAR(VARNAME, [TAGNAME])
1501
# ------------------------------
1502
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1505
# _LT_CONFIG_COMMANDS
1506
# -------------------
1507
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1508
# variables for single and double quote escaping we saved from calls
1509
# to _LT_DECL, we can put quote escaped variables declarations
1510
# into `config.status', and then the shell code to quote escape them in
1511
# for loops in `config.status'. Finally, any additional code accumulated
1512
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1513
m4_defun([_LT_CONFIG_COMMANDS],
1514
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1515
dnl If the libtool generation code has been placed in $CONFIG_LT,
1516
dnl instead of duplicating it all over again into config.status,
1517
dnl then we will have config.status run $CONFIG_LT later, so it
1518
dnl needs to know what name is stored there:
1519
[AC_CONFIG_COMMANDS([libtool],
1520
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1521
dnl If the libtool generation code is destined for config.status,
1522
dnl expand the accumulated commands and init code now:
1523
[AC_CONFIG_COMMANDS([libtool],
1524
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1525
])#_LT_CONFIG_COMMANDS
1529
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1532
# The HP-UX ksh and POSIX shell print the target directory to stdout
1534
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1536
sed_quote_subst='$sed_quote_subst'
1537
double_quote_subst='$double_quote_subst'
1538
delay_variable_subst='$delay_variable_subst'
1539
_LT_CONFIG_STATUS_DECLARATIONS
1541
LTCFLAGS='$LTCFLAGS'
1542
compiler='$compiler_DEFAULT'
1544
# Quote evaled strings.
1545
for var in lt_decl_all_varnames([[ \
1546
]], lt_decl_quote_varnames); do
1547
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1548
*[[\\\\\\\`\\"\\\$]]*)
1549
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1552
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1557
# Double-quote double-evaled strings.
1558
for var in lt_decl_all_varnames([[ \
1559
]], lt_decl_dquote_varnames); do
1560
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1561
*[[\\\\\\\`\\"\\\$]]*)
1562
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1565
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1570
# Fix-up fallback echo if it was mangled by the above quoting rules.
1572
*'\\\[$]0 --fallback-echo"')dnl "
1573
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1577
_LT_OUTPUT_LIBTOOL_INIT
1583
# This macro allows early generation of the libtool script (before
1584
# AC_OUTPUT is called), incase it is used in configure for compilation
1586
AC_DEFUN([LT_OUTPUT],
1587
[: ${CONFIG_LT=./config.lt}
1588
AC_MSG_NOTICE([creating $CONFIG_LT])
1589
cat >"$CONFIG_LT" <<_LTEOF
1591
# Generated by $as_me.
1592
# Run this file to recreate a libtool stub with the current configuration.
1595
SHELL=\${CONFIG_SHELL-$SHELL}
1598
cat >>"$CONFIG_LT" <<\_LTEOF
1602
exec AS_MESSAGE_FD>&1
1603
exec AS_MESSAGE_LOG_FD>>config.log
1606
AS_BOX([Running $as_me.])
1607
} >&AS_MESSAGE_LOG_FD
1610
\`$as_me' creates a local libtool stub from the current configuration,
1611
for use in further configure time tests before the real libtool is
1614
Usage: $[0] [[OPTIONS]]
1616
-h, --help print this help, then exit
1617
-V, --version print version number, then exit
1618
-q, --quiet do not print progress messages
1619
-d, --debug don't remove temporary files
1621
Report bugs to <bug-libtool@gnu.org>."
1624
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1625
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1626
configured by $[0], generated by m4_PACKAGE_STRING.
1628
Copyright (C) 2008 Free Software Foundation, Inc.
1629
This config.lt script is free software; the Free Software Foundation
1630
gives unlimited permision to copy, distribute and modify it."
1632
while test $[#] != 0
1635
--version | --v* | -V )
1636
echo "$lt_cl_version"; exit 0 ;;
1637
--help | --h* | -h )
1638
echo "$lt_cl_help"; exit 0 ;;
1639
--debug | --d* | -d )
1641
--quiet | --q* | --silent | --s* | -q )
1644
-*) AC_MSG_ERROR([unrecognized option: $[1]
1645
Try \`$[0] --help' for more information.]) ;;
1647
*) AC_MSG_ERROR([unrecognized argument: $[1]
1648
Try \`$[0] --help' for more information.]) ;;
1653
if $lt_cl_silent; then
1654
exec AS_MESSAGE_FD>/dev/null
1658
cat >>"$CONFIG_LT" <<_LTEOF
1659
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1662
cat >>"$CONFIG_LT" <<\_LTEOF
1663
AC_MSG_NOTICE([creating $ofile])
1664
_LT_OUTPUT_LIBTOOL_COMMANDS
1667
chmod +x "$CONFIG_LT"
1669
# configure is writing to config.log, but config.lt does its own redirection,
1670
# appending to config.log, which fails on DOS, as config.log is still kept
1671
# open by configure. Here we exec the FD to /dev/null, effectively closing
1672
# config.log, so it can be properly (re)opened and appended to by config.lt.
1673
if test "$no_create" != yes; then
1675
test "$silent" = yes &&
1676
lt_config_lt_args="$lt_config_lt_args --quiet"
1677
exec AS_MESSAGE_LOG_FD>/dev/null
1678
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1679
exec AS_MESSAGE_LOG_FD>>config.log
1680
$lt_cl_success || AS_EXIT(1)
1687
# If TAG is the built-in tag, create an initial libtool script with a
1688
# default configuration from the untagged config vars. Otherwise add code
1689
# to config.status for appending the configuration named by TAG from the
1690
# matching tagged config vars.
1691
m4_defun([_LT_CONFIG],
1692
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1693
_LT_CONFIG_SAVE_COMMANDS([
1694
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1695
m4_if(_LT_TAG, [C], [
1696
# See if we are running on zsh, and set the options which allow our
1697
# commands through without removal of \ escapes.
1698
if test -n "${ZSH_VERSION+set}" ; then
1699
setopt NO_GLOB_SUBST
1703
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1706
cat <<_LT_EOF >> "$cfgfile"
1709
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1710
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1711
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1712
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1717
# ### BEGIN LIBTOOL CONFIG
1718
_LT_LIBTOOL_CONFIG_VARS
1719
_LT_LIBTOOL_TAG_VARS
1720
# ### END LIBTOOL CONFIG
1726
cat <<\_LT_EOF >> "$cfgfile"
1727
# AIX sometimes has problems with the GCC collect2 program. For some
1728
# reason, if we set the COLLECT_NAMES environment variable, the problems
1729
# vanish in a puff of smoke.
1730
if test "X${COLLECT_NAMES+set}" != Xset; then
1732
export COLLECT_NAMES
1740
# We use sed instead of cat because bash on DJGPP gets confused if
1741
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1742
# text mode, it properly converts lines to CR/LF. This bash problem
1743
# is reportedly fixed, but why not run on old versions too?
1744
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1745
|| (rm -f "$cfgfile"; exit 1)
1747
_LT_PROG_XSI_SHELLFNS
1749
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1750
|| (rm -f "$cfgfile"; exit 1)
1752
mv -f "$cfgfile" "$ofile" ||
1753
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1756
[cat <<_LT_EOF >> "$ofile"
1758
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1759
dnl in a comment (ie after a #).
1760
# ### BEGIN LIBTOOL TAG CONFIG: $1
1761
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1762
# ### END LIBTOOL TAG CONFIG: $1
1769
TIMESTAMP='$TIMESTAMP'
1771
ofile='$ofile'], [])
1772
])dnl /_LT_CONFIG_SAVE_COMMANDS
1776
# LT_SUPPORTED_TAG(TAG)
1777
# ---------------------
1778
# Trace this macro to discover what tags are supported by the libtool
1779
# --tag option, using:
1780
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1781
AC_DEFUN([LT_SUPPORTED_TAG], [])
1784
# C support is built-in for now
1785
m4_define([_LT_LANG_C_enabled], [])
1786
m4_define([_LT_TAGS], [])
1791
# Enable libtool support for the given language if not already enabled.
1793
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1796
[C++], [_LT_LANG(CXX)],
1797
[Java], [_LT_LANG(GCJ)],
1798
[Fortran 77], [_LT_LANG(F77)],
1799
[Fortran], [_LT_LANG(FC)],
1800
[Windows Resource], [_LT_LANG(RC)],
1801
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1803
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1807
# _LT_LANG(LANGNAME)
1808
# ------------------
1809
m4_defun([_LT_LANG],
1810
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1811
[LT_SUPPORTED_TAG([$1])dnl
1812
m4_append([_LT_TAGS], [$1 ])dnl
1813
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1814
_LT_LANG_$1_CONFIG($1)])dnl
1818
# _LT_LANG_DEFAULT_CONFIG
1819
# -----------------------
1820
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1821
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1823
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1825
AC_PROVIDE_IFELSE([AC_PROG_F77],
1827
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1829
AC_PROVIDE_IFELSE([AC_PROG_FC],
1831
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1833
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1834
dnl pulling things in needlessly.
1835
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1837
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1839
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1841
[m4_ifdef([AC_PROG_GCJ],
1842
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1843
m4_ifdef([A][M_PROG_GCJ],
1844
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1845
m4_ifdef([LT_PROG_GCJ],
1846
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1848
AC_PROVIDE_IFELSE([LT_PROG_RC],
1850
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1851
])# _LT_LANG_DEFAULT_CONFIG
1854
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1855
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1856
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1857
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1858
dnl aclocal-1.4 backwards compatibility:
1859
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1860
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1861
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1862
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1867
m4_defun([_LT_TAG_COMPILER],
1868
[AC_REQUIRE([AC_PROG_CC])dnl
1870
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1871
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1872
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1873
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1875
# If no C compiler was specified, use CC.
1878
# If no C compiler flags were specified, use CFLAGS.
1879
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1881
# Allow CC to be a program name with arguments.
1883
])# _LT_TAG_COMPILER
1886
# _LT_COMPILER_BOILERPLATE
1887
# ------------------------
1888
# Check for compiler boilerplate output or warnings with
1889
# the simple compiler test code.
1890
m4_defun([_LT_COMPILER_BOILERPLATE],
1891
[m4_require([_LT_DECL_SED])dnl
1892
ac_outfile=conftest.$ac_objext
1893
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1894
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1895
_lt_compiler_boilerplate=`cat conftest.err`
1897
])# _LT_COMPILER_BOILERPLATE
1900
# _LT_LINKER_BOILERPLATE
1901
# ----------------------
1902
# Check for linker boilerplate output or warnings with
1903
# the simple link test code.
1904
m4_defun([_LT_LINKER_BOILERPLATE],
1905
[m4_require([_LT_DECL_SED])dnl
1906
ac_outfile=conftest.$ac_objext
1907
echo "$lt_simple_link_test_code" >conftest.$ac_ext
1908
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1909
_lt_linker_boilerplate=`cat conftest.err`
1911
])# _LT_LINKER_BOILERPLATE
1913
# _LT_REQUIRED_DARWIN_CHECKS
1914
# -------------------------
1915
m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1917
rhapsody* | darwin*)
1918
AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1919
AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1920
AC_CHECK_TOOL([LIPO], [lipo], [:])
1921
AC_CHECK_TOOL([OTOOL], [otool], [:])
1922
AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1923
_LT_DECL([], [DSYMUTIL], [1],
1924
[Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1925
_LT_DECL([], [NMEDIT], [1],
1926
[Tool to change global to local symbols on Mac OS X])
1927
_LT_DECL([], [LIPO], [1],
1928
[Tool to manipulate fat objects and archives on Mac OS X])
1929
_LT_DECL([], [OTOOL], [1],
1930
[ldd/readelf like tool for Mach-O binaries on Mac OS X])
1931
_LT_DECL([], [OTOOL64], [1],
1932
[ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1934
AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1935
[lt_cv_apple_cc_single_mod=no
1936
if test -z "${LT_MULTI_MODULE}"; then
1937
# By default we will add the -single_module flag. You can override
1938
# by either setting the environment variable LT_MULTI_MODULE
1939
# non-empty at configure time, or by adding -multi_module to the
1941
rm -rf libconftest.dylib*
1942
echo "int foo(void){return 1;}" > conftest.c
1943
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1944
-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1945
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1946
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1948
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1949
lt_cv_apple_cc_single_mod=yes
1951
cat conftest.err >&AS_MESSAGE_LOG_FD
1953
rm -rf libconftest.dylib*
1956
AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1957
[lt_cv_ld_exported_symbols_list],
1958
[lt_cv_ld_exported_symbols_list=no
1959
save_LDFLAGS=$LDFLAGS
1960
echo "_main" > conftest.sym
1961
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1962
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1963
[lt_cv_ld_exported_symbols_list=yes],
1964
[lt_cv_ld_exported_symbols_list=no])
1965
LDFLAGS="$save_LDFLAGS"
1968
rhapsody* | darwin1.[[012]])
1969
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1971
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1972
darwin*) # darwin 5.x on
1973
# if running on 10.5 or later, the deployment target defaults
1974
# to the OS version, if on x86, and 10.4, the deployment
1975
# target defaults to 10.4. Don't you love it?
1976
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1977
10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1978
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1980
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1982
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1986
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1987
_lt_dar_single_mod='$single_module'
1989
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1990
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1992
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1994
if test "$DSYMUTIL" != ":"; then
1995
_lt_dsymutil='~$DSYMUTIL $lib || :'
2004
# _LT_DARWIN_LINKER_FEATURES
2005
# --------------------------
2006
# Checks for linker and compiler features on darwin
2007
m4_defun([_LT_DARWIN_LINKER_FEATURES],
2009
m4_require([_LT_REQUIRED_DARWIN_CHECKS])
2010
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
2011
_LT_TAGVAR(hardcode_direct, $1)=no
2012
_LT_TAGVAR(hardcode_automatic, $1)=yes
2013
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2014
_LT_TAGVAR(whole_archive_flag_spec, $1)=''
2015
_LT_TAGVAR(link_all_deplibs, $1)=yes
2016
_LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
2017
case $cc_basename in
2018
ifort*) _lt_dar_can_shared=yes ;;
2019
*) _lt_dar_can_shared=$GCC ;;
2021
if test "$_lt_dar_can_shared" = "yes"; then
2022
output_verbose_link_cmd=echo
2023
_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}"
2024
_LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
2025
_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}"
2026
_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}"
2028
[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
2029
_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}"
2030
_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}"
2034
_LT_TAGVAR(ld_shlibs, $1)=no
2038
# _LT_SYS_MODULE_PATH_AIX
2039
# -----------------------
2040
# Links a minimal program and checks the executable
2041
# for the system default hardcoded library path. In most cases,
2042
# this is /usr/lib:/lib, but when the MPI compilers are used
2043
# the location of the communication and MPI libs are included too.
2044
# If we don't find anything, use the default library path according
2045
# to the aix ld manual.
2046
m4_defun([_LT_SYS_MODULE_PATH_AIX],
2047
[m4_require([_LT_DECL_SED])dnl
2048
AC_LINK_IFELSE(AC_LANG_PROGRAM,[
2049
lt_aix_libpath_sed='
2050
/Import File Strings/,/^$/ {
2056
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2057
# Check for a 64-bit object if we didn't find anything.
2058
if test -z "$aix_libpath"; then
2059
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
2061
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
2062
])# _LT_SYS_MODULE_PATH_AIX
2065
# _LT_SHELL_INIT(ARG)
2066
# -------------------
2067
m4_define([_LT_SHELL_INIT],
2068
[ifdef([AC_DIVERSION_NOTICE],
2069
[AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
2070
[AC_DIVERT_PUSH(NOTICE)])
2076
# _LT_PROG_ECHO_BACKSLASH
2077
# -----------------------
2078
# Add some code to the start of the generated configure script which
2079
# will find an echo command which doesn't interpret backslashes.
2080
m4_defun([_LT_PROG_ECHO_BACKSLASH],
2082
# Check that we are running under the correct shell.
2083
SHELL=${CONFIG_SHELL-/bin/sh}
2087
# Remove one level of quotation (which was required for Make).
2088
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
2092
ECHO=${lt_ECHO-echo}
2093
if test "X[$]1" = X--no-reexec; then
2094
# Discard the --no-reexec flag, and continue.
2096
elif test "X[$]1" = X--fallback-echo; then
2097
# Avoid inline document here, it may be left over
2099
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
2100
# Yippee, $ECHO works!
2103
# Restart under the correct shell.
2104
exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
2107
if test "X[$]1" = X--fallback-echo; then
2108
# used as fallback echo
2116
# The HP-UX ksh and POSIX shell print the target directory to stdout
2118
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
2120
if test -z "$lt_ECHO"; then
2121
if test "X${echo_test_string+set}" != Xset; then
2122
# find a string as large as possible, as long as the shell can cope with it
2123
for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
2124
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
2125
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
2126
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
2133
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2134
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2135
test "X$echo_testing_string" = "X$echo_test_string"; then
2138
# The Solaris, AIX, and Digital Unix default echo programs unquote
2139
# backslashes. This makes it impossible to quote backslashes using
2140
# echo "$something" | sed 's/\\/\\\\/g'
2142
# So, first we look for a working echo in the user's PATH.
2144
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2145
for dir in $PATH /usr/ucb; do
2147
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
2148
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
2149
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
2150
test "X$echo_testing_string" = "X$echo_test_string"; then
2157
if test "X$ECHO" = Xecho; then
2158
# We didn't find a better echo, so look for alternatives.
2159
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
2160
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
2161
test "X$echo_testing_string" = "X$echo_test_string"; then
2162
# This shell has a builtin print -r that does the trick.
2164
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
2165
test "X$CONFIG_SHELL" != X/bin/ksh; then
2166
# If we have ksh, try running configure again with it.
2167
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
2168
export ORIGINAL_CONFIG_SHELL
2169
CONFIG_SHELL=/bin/ksh
2171
exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
2175
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
2176
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
2177
test "X$echo_testing_string" = "X$echo_test_string"; then
2178
# Cool, printf works
2180
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2181
test "X$echo_testing_string" = 'X\t' &&
2182
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2183
test "X$echo_testing_string" = "X$echo_test_string"; then
2184
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
2186
SHELL="$CONFIG_SHELL"
2188
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2189
elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
2190
test "X$echo_testing_string" = 'X\t' &&
2191
echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
2192
test "X$echo_testing_string" = "X$echo_test_string"; then
2193
ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
2195
# maybe with a smaller string...
2198
for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
2199
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
2206
if test "$prev" != 'sed 50q "[$]0"'; then
2207
echo_test_string=`eval $prev`
2208
export echo_test_string
2209
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
2211
# Oops. We lost completely, so just stick with echo.
2220
# Copy echo and quote the copy suitably for passing to libtool from
2221
# the Makefile, instead of quoting the original, which is used later.
2223
if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
2224
lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
2229
_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
2230
_LT_DECL([], [ECHO], [1],
2231
[An echo program that does not interpret backslashes])
2232
])# _LT_PROG_ECHO_BACKSLASH
2237
m4_defun([_LT_ENABLE_LOCK],
2238
[AC_ARG_ENABLE([libtool-lock],
2239
[AS_HELP_STRING([--disable-libtool-lock],
2240
[avoid locking (might break parallel builds)])])
2241
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2243
# Some flags need to be propagated to the compiler or linker for good
2247
# Find out which ABI we are using.
2248
echo 'int i;' > conftest.$ac_ext
2249
if AC_TRY_EVAL(ac_compile); then
2250
case `/usr/bin/file conftest.$ac_objext` in
2262
# Find out which ABI we are using.
2263
echo '[#]line __oline__ "configure"' > conftest.$ac_ext
2264
if AC_TRY_EVAL(ac_compile); then
2265
if test "$lt_cv_prog_gnu_ld" = yes; then
2266
case `/usr/bin/file conftest.$ac_objext` in
2268
LD="${LD-ld} -melf32bsmip"
2271
LD="${LD-ld} -melf32bmipn32"
2274
LD="${LD-ld} -melf64bmip"
2278
case `/usr/bin/file conftest.$ac_objext` in
2294
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
2295
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
2296
# Find out which ABI we are using.
2297
echo 'int i;' > conftest.$ac_ext
2298
if AC_TRY_EVAL(ac_compile); then
2299
case `/usr/bin/file conftest.o` in
2302
x86_64-*kfreebsd*-gnu)
2303
LD="${LD-ld} -m elf_i386_fbsd"
2306
LD="${LD-ld} -m elf_i386"
2308
ppc64-*linux*|powerpc64-*linux*)
2309
LD="${LD-ld} -m elf32ppclinux"
2312
LD="${LD-ld} -m elf_s390"
2315
LD="${LD-ld} -m elf32_sparc"
2321
x86_64-*kfreebsd*-gnu)
2322
LD="${LD-ld} -m elf_x86_64_fbsd"
2325
LD="${LD-ld} -m elf_x86_64"
2327
ppc*-*linux*|powerpc*-*linux*)
2328
LD="${LD-ld} -m elf64ppc"
2330
s390*-*linux*|s390*-*tpf*)
2331
LD="${LD-ld} -m elf64_s390"
2334
LD="${LD-ld} -m elf64_sparc"
2344
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2345
SAVE_CFLAGS="$CFLAGS"
2346
CFLAGS="$CFLAGS -belf"
2347
AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2349
AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2351
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2352
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2353
CFLAGS="$SAVE_CFLAGS"
2357
# Find out which ABI we are using.
2358
echo 'int i;' > conftest.$ac_ext
2359
if AC_TRY_EVAL(ac_compile); then
2360
case `/usr/bin/file conftest.o` in
2362
case $lt_cv_prog_gnu_ld in
2363
yes*) LD="${LD-ld} -m elf64_sparc" ;;
2365
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2377
need_locks="$enable_libtool_lock"
2381
# _LT_CMD_OLD_ARCHIVE
2382
# -------------------
2383
m4_defun([_LT_CMD_OLD_ARCHIVE],
2384
[AC_CHECK_TOOL(AR, ar, false)
2385
test -z "$AR" && AR=ar
2386
test -z "$AR_FLAGS" && AR_FLAGS=cru
2387
_LT_DECL([], [AR], [1], [The archiver])
2388
_LT_DECL([], [AR_FLAGS], [1])
2390
AC_CHECK_TOOL(STRIP, strip, :)
2391
test -z "$STRIP" && STRIP=:
2392
_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2394
AC_CHECK_TOOL(RANLIB, ranlib, :)
2395
test -z "$RANLIB" && RANLIB=:
2396
_LT_DECL([], [RANLIB], [1],
2397
[Commands used to install an old-style archive])
2399
# Determine commands to create old-style static archives.
2400
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2401
old_postinstall_cmds='chmod 644 $oldlib'
2402
old_postuninstall_cmds=
2404
if test -n "$RANLIB"; then
2407
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2410
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2413
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2415
_LT_DECL([], [old_postinstall_cmds], [2])
2416
_LT_DECL([], [old_postuninstall_cmds], [2])
2417
_LT_TAGDECL([], [old_archive_cmds], [2],
2418
[Commands used to build an old-style archive])
2419
])# _LT_CMD_OLD_ARCHIVE
2422
# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2423
# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2424
# ----------------------------------------------------------------
2425
# Check whether the given compiler option works
2426
AC_DEFUN([_LT_COMPILER_OPTION],
2427
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2428
m4_require([_LT_DECL_SED])dnl
2429
AC_CACHE_CHECK([$1], [$2],
2431
m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2432
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2433
lt_compiler_flag="$3"
2434
# Insert the option either (1) after the last *FLAGS variable, or
2435
# (2) before a word containing "conftest.", or (3) at the end.
2436
# Note that $ac_compile itself does not contain backslashes and begins
2437
# with a dollar sign (not a hyphen), so the echo should work correctly.
2438
# The option is referenced via a variable to avoid confusing sed.
2439
lt_compile=`echo "$ac_compile" | $SED \
2440
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2441
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2442
-e 's:$: $lt_compiler_flag:'`
2443
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2444
(eval "$lt_compile" 2>conftest.err)
2446
cat conftest.err >&AS_MESSAGE_LOG_FD
2447
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2448
if (exit $ac_status) && test -s "$ac_outfile"; then
2449
# The compiler can only warn and ignore the option if not recognized
2450
# So say no if there are warnings other than the usual output.
2451
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2452
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2453
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2460
if test x"[$]$2" = xyes; then
2461
m4_if([$5], , :, [$5])
2463
m4_if([$6], , :, [$6])
2465
])# _LT_COMPILER_OPTION
2468
AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2469
dnl aclocal-1.4 backwards compatibility:
2470
dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2473
# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2474
# [ACTION-SUCCESS], [ACTION-FAILURE])
2475
# ----------------------------------------------------
2476
# Check whether the given linker option works
2477
AC_DEFUN([_LT_LINKER_OPTION],
2478
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2479
m4_require([_LT_DECL_SED])dnl
2480
AC_CACHE_CHECK([$1], [$2],
2482
save_LDFLAGS="$LDFLAGS"
2483
LDFLAGS="$LDFLAGS $3"
2484
echo "$lt_simple_link_test_code" > conftest.$ac_ext
2485
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2486
# The linker can only warn and ignore the option if not recognized
2487
# So say no if there are warnings
2488
if test -s conftest.err; then
2489
# Append any errors to the config.log.
2490
cat conftest.err 1>&AS_MESSAGE_LOG_FD
2491
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2492
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2493
if diff conftest.exp conftest.er2 >/dev/null; then
2501
LDFLAGS="$save_LDFLAGS"
2504
if test x"[$]$2" = xyes; then
2505
m4_if([$4], , :, [$4])
2507
m4_if([$5], , :, [$5])
2509
])# _LT_LINKER_OPTION
2512
AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2513
dnl aclocal-1.4 backwards compatibility:
2514
dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2519
AC_DEFUN([LT_CMD_MAX_LEN],
2520
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2521
# find the maximum length of command line arguments
2522
AC_MSG_CHECKING([the maximum length of command line arguments])
2523
AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2529
# On DJGPP, this test can blow up pretty badly due to problems in libc
2530
# (any single argument exceeding 2000 bytes causes a buffer overrun
2531
# during glob expansion). Even if it were fixed, the result of this
2532
# check would be larger than it should be.
2533
lt_cv_sys_max_cmd_len=12288; # 12K is about right
2537
# Under GNU Hurd, this test is not required because there is
2538
# no limit to the length of command line arguments.
2539
# Libtool will interpret -1 as no limit whatsoever
2540
lt_cv_sys_max_cmd_len=-1;
2543
cygwin* | mingw* | cegcc*)
2544
# On Win9x/ME, this test blows up -- it succeeds, but takes
2545
# about 5 minutes as the teststring grows exponentially.
2546
# Worse, since 9x/ME are not pre-emptively multitasking,
2547
# you end up with a "frozen" computer, even though with patience
2548
# the test eventually succeeds (with a max line length of 256k).
2549
# Instead, let's just punt: use the minimum linelength reported by
2550
# all of the supported platforms: 8192 (on NT/2K/XP).
2551
lt_cv_sys_max_cmd_len=8192;
2555
# On AmigaOS with pdksh, this test takes hours, literally.
2556
# So we just punt and use a minimum line length of 8192.
2557
lt_cv_sys_max_cmd_len=8192;
2560
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2561
# This has been around since 386BSD, at least. Likely further.
2562
if test -x /sbin/sysctl; then
2563
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2564
elif test -x /usr/sbin/sysctl; then
2565
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2567
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2569
# And add a safety zone
2570
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2571
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2575
# We know the value 262144 and hardcode it with a safety zone (like BSD)
2576
lt_cv_sys_max_cmd_len=196608
2580
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2581
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2582
# nice to cause kernel panics so lets avoid the loop below.
2583
# First set a reasonable default.
2584
lt_cv_sys_max_cmd_len=16384
2586
if test -x /sbin/sysconfig; then
2587
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2588
*1*) lt_cv_sys_max_cmd_len=-1 ;;
2593
lt_cv_sys_max_cmd_len=102400
2595
sysv5* | sco5v6* | sysv4.2uw2*)
2596
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2597
if test -n "$kargmax"; then
2598
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2600
lt_cv_sys_max_cmd_len=32768
2604
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2605
if test -n "$lt_cv_sys_max_cmd_len"; then
2606
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2607
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2609
# Make teststring a little bigger before we do anything with it.
2610
# a 1K string should be a reasonable start.
2611
for i in 1 2 3 4 5 6 7 8 ; do
2612
teststring=$teststring$teststring
2614
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2615
# If test is not a shell built-in, we'll probably end up computing a
2616
# maximum length that is only half of the actual maximum length, but
2618
while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2619
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2620
test $i != 17 # 1/2 MB should be enough
2623
teststring=$teststring$teststring
2625
# Only check the string length outside the loop.
2626
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2628
# Add a significant safety factor because C++ compilers can tack on
2629
# massive amounts of additional arguments before passing them to the
2630
# linker. It appears as though 1/2 is a usable value.
2631
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2636
if test -n $lt_cv_sys_max_cmd_len ; then
2637
AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2641
max_cmd_len=$lt_cv_sys_max_cmd_len
2642
_LT_DECL([], [max_cmd_len], [0],
2643
[What is the maximum length of a command?])
2647
AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2648
dnl aclocal-1.4 backwards compatibility:
2649
dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2654
m4_defun([_LT_HEADER_DLFCN],
2655
[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2656
])# _LT_HEADER_DLFCN
2659
# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2660
# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2661
# ----------------------------------------------------------------
2662
m4_defun([_LT_TRY_DLOPEN_SELF],
2663
[m4_require([_LT_HEADER_DLFCN])dnl
2664
if test "$cross_compiling" = yes; then :
2667
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2668
lt_status=$lt_dlunknown
2669
cat > conftest.$ac_ext <<_LT_EOF
2670
[#line __oline__ "configure"
2671
#include "confdefs.h"
2680
# define LT_DLGLOBAL RTLD_GLOBAL
2683
# define LT_DLGLOBAL DL_GLOBAL
2685
# define LT_DLGLOBAL 0
2689
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2690
find out it does not work in some platform. */
2691
#ifndef LT_DLLAZY_OR_NOW
2693
# define LT_DLLAZY_OR_NOW RTLD_LAZY
2696
# define LT_DLLAZY_OR_NOW DL_LAZY
2699
# define LT_DLLAZY_OR_NOW RTLD_NOW
2702
# define LT_DLLAZY_OR_NOW DL_NOW
2704
# define LT_DLLAZY_OR_NOW 0
2711
void fnord() { int i=42;}
2714
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2715
int status = $lt_dlunknown;
2719
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2720
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2721
/* dlclose (self); */
2729
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2730
(./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2733
x$lt_dlno_uscore) $1 ;;
2734
x$lt_dlneed_uscore) $2 ;;
2735
x$lt_dlunknown|x*) $3 ;;
2738
# compilation failed
2743
])# _LT_TRY_DLOPEN_SELF
2746
# LT_SYS_DLOPEN_SELF
2747
# ------------------
2748
AC_DEFUN([LT_SYS_DLOPEN_SELF],
2749
[m4_require([_LT_HEADER_DLFCN])dnl
2750
if test "x$enable_dlopen" != xyes; then
2751
enable_dlopen=unknown
2752
enable_dlopen_self=unknown
2753
enable_dlopen_self_static=unknown
2760
lt_cv_dlopen="load_add_on"
2762
lt_cv_dlopen_self=yes
2765
mingw* | pw32* | cegcc*)
2766
lt_cv_dlopen="LoadLibrary"
2771
lt_cv_dlopen="dlopen"
2776
# if libdl is installed we need to link against it
2777
AC_CHECK_LIB([dl], [dlopen],
2778
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2781
lt_cv_dlopen_self=yes
2786
AC_CHECK_FUNC([shl_load],
2787
[lt_cv_dlopen="shl_load"],
2788
[AC_CHECK_LIB([dld], [shl_load],
2789
[lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2790
[AC_CHECK_FUNC([dlopen],
2791
[lt_cv_dlopen="dlopen"],
2792
[AC_CHECK_LIB([dl], [dlopen],
2793
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2794
[AC_CHECK_LIB([svld], [dlopen],
2795
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2796
[AC_CHECK_LIB([dld], [dld_link],
2797
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2806
if test "x$lt_cv_dlopen" != xno; then
2812
case $lt_cv_dlopen in
2814
save_CPPFLAGS="$CPPFLAGS"
2815
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2817
save_LDFLAGS="$LDFLAGS"
2818
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2821
LIBS="$lt_cv_dlopen_libs $LIBS"
2823
AC_CACHE_CHECK([whether a program can dlopen itself],
2824
lt_cv_dlopen_self, [dnl
2825
_LT_TRY_DLOPEN_SELF(
2826
lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2827
lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2830
if test "x$lt_cv_dlopen_self" = xyes; then
2831
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2832
AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2833
lt_cv_dlopen_self_static, [dnl
2834
_LT_TRY_DLOPEN_SELF(
2835
lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2836
lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2840
CPPFLAGS="$save_CPPFLAGS"
2841
LDFLAGS="$save_LDFLAGS"
2846
case $lt_cv_dlopen_self in
2847
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2848
*) enable_dlopen_self=unknown ;;
2851
case $lt_cv_dlopen_self_static in
2852
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2853
*) enable_dlopen_self_static=unknown ;;
2856
_LT_DECL([dlopen_support], [enable_dlopen], [0],
2857
[Whether dlopen is supported])
2858
_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2859
[Whether dlopen of programs is supported])
2860
_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2861
[Whether dlopen of statically linked programs is supported])
2862
])# LT_SYS_DLOPEN_SELF
2865
AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2866
dnl aclocal-1.4 backwards compatibility:
2867
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2870
# _LT_COMPILER_C_O([TAGNAME])
2871
# ---------------------------
2872
# Check to see if options -c and -o are simultaneously supported by compiler.
2873
# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2874
m4_defun([_LT_COMPILER_C_O],
2875
[m4_require([_LT_DECL_SED])dnl
2876
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2877
m4_require([_LT_TAG_COMPILER])dnl
2878
AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2879
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2880
[_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2881
$RM -r conftest 2>/dev/null
2885
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2887
lt_compiler_flag="-o out/conftest2.$ac_objext"
2888
# Insert the option either (1) after the last *FLAGS variable, or
2889
# (2) before a word containing "conftest.", or (3) at the end.
2890
# Note that $ac_compile itself does not contain backslashes and begins
2891
# with a dollar sign (not a hyphen), so the echo should work correctly.
2892
lt_compile=`echo "$ac_compile" | $SED \
2893
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2894
-e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2895
-e 's:$: $lt_compiler_flag:'`
2896
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2897
(eval "$lt_compile" 2>out/conftest.err)
2899
cat out/conftest.err >&AS_MESSAGE_LOG_FD
2900
echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2901
if (exit $ac_status) && test -s out/conftest2.$ac_objext
2903
# The compiler can only warn and ignore the option if not recognized
2904
# So say no if there are warnings
2905
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2906
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2907
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2908
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2911
chmod u+w . 2>&AS_MESSAGE_LOG_FD
2913
# SGI C++ compiler will create directory out/ii_files/ for
2914
# template instantiation
2915
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2916
$RM out/* && rmdir out
2921
_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2922
[Does compiler simultaneously support -c and -o options?])
2923
])# _LT_COMPILER_C_O
2926
# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2927
# ----------------------------------
2928
# Check to see if we can do hard links to lock some files if needed
2929
m4_defun([_LT_COMPILER_FILE_LOCKS],
2930
[m4_require([_LT_ENABLE_LOCK])dnl
2931
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2932
_LT_COMPILER_C_O([$1])
2934
hard_links="nottested"
2935
if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2936
# do not overwrite the value of need_locks provided by the user
2937
AC_MSG_CHECKING([if we can lock with hard links])
2940
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2942
ln conftest.a conftest.b 2>&5 || hard_links=no
2943
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2944
AC_MSG_RESULT([$hard_links])
2945
if test "$hard_links" = no; then
2946
AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2952
_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2953
])# _LT_COMPILER_FILE_LOCKS
2958
m4_defun([_LT_CHECK_OBJDIR],
2959
[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2960
[rm -f .libs 2>/dev/null
2961
mkdir .libs 2>/dev/null
2962
if test -d .libs; then
2965
# MS-DOS does not allow filenames that begin with a dot.
2968
rmdir .libs 2>/dev/null])
2969
objdir=$lt_cv_objdir
2970
_LT_DECL([], [objdir], [0],
2971
[The name of the directory that contains temporary libtool files])dnl
2972
m4_pattern_allow([LT_OBJDIR])dnl
2973
AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2974
[Define to the sub-directory in which libtool stores uninstalled libraries.])
2975
])# _LT_CHECK_OBJDIR
2978
# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2979
# --------------------------------------
2980
# Check hardcoding attributes.
2981
m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2982
[AC_MSG_CHECKING([how to hardcode library paths into programs])
2983
_LT_TAGVAR(hardcode_action, $1)=
2984
if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2985
test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2986
test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2988
# We can hardcode non-existent directories.
2989
if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2990
# If the only mechanism to avoid hardcoding is shlibpath_var, we
2991
# have to relink, otherwise we might link with an installed library
2992
# when we should be linking with a yet-to-be-installed one
2993
## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2994
test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2995
# Linking always hardcodes the temporary library directory.
2996
_LT_TAGVAR(hardcode_action, $1)=relink
2998
# We can link without hardcoding, and we can hardcode nonexisting dirs.
2999
_LT_TAGVAR(hardcode_action, $1)=immediate
3002
# We cannot hardcode anything, or else we can only hardcode existing
3004
_LT_TAGVAR(hardcode_action, $1)=unsupported
3006
AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
3008
if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
3009
test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
3010
# Fast installation is not supported
3011
enable_fast_install=no
3012
elif test "$shlibpath_overrides_runpath" = yes ||
3013
test "$enable_shared" = no; then
3014
# Fast installation is not necessary
3015
enable_fast_install=needless
3017
_LT_TAGDECL([], [hardcode_action], [0],
3018
[How to hardcode a shared library path into an executable])
3019
])# _LT_LINKER_HARDCODE_LIBPATH
3024
m4_defun([_LT_CMD_STRIPLIB],
3025
[m4_require([_LT_DECL_EGREP])
3028
AC_MSG_CHECKING([whether stripping libraries is possible])
3029
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
3030
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3031
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3032
AC_MSG_RESULT([yes])
3034
# FIXME - insert some real tests, host_os isn't really good enough
3037
if test -n "$STRIP" ; then
3038
striplib="$STRIP -x"
3039
old_striplib="$STRIP -S"
3040
AC_MSG_RESULT([yes])
3050
_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
3051
_LT_DECL([], [striplib], [1])
3052
])# _LT_CMD_STRIPLIB
3055
# _LT_SYS_DYNAMIC_LINKER([TAG])
3056
# -----------------------------
3057
# PORTME Fill in your ld.so characteristics
3058
m4_defun([_LT_SYS_DYNAMIC_LINKER],
3059
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3060
m4_require([_LT_DECL_EGREP])dnl
3061
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
3062
m4_require([_LT_DECL_OBJDUMP])dnl
3063
m4_require([_LT_DECL_SED])dnl
3064
AC_MSG_CHECKING([dynamic linker characteristics])
3067
if test "$GCC" = yes; then
3069
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
3070
*) lt_awk_arg="/^libraries:/" ;;
3072
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3073
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
3074
# if the path contains ";" then we assume it to be the separator
3075
# otherwise default to the standard path separator (i.e. ":") - it is
3076
# assumed that no part of a normal pathname contains ";" but that should
3077
# okay in the real world where ";" in dirpaths is itself problematic.
3078
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
3080
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3082
# Ok, now we have the path, separated by spaces, we can step through it
3083
# and add multilib dir if necessary.
3084
lt_tmp_lt_search_path_spec=
3085
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
3086
for lt_sys_path in $lt_search_path_spec; do
3087
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
3088
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
3090
test -d "$lt_sys_path" && \
3091
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
3094
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
3095
BEGIN {RS=" "; FS="/|\n";} {
3098
for (lt_i = NF; lt_i > 0; lt_i--) {
3099
if ($lt_i != "" && $lt_i != ".") {
3100
if ($lt_i == "..") {
3103
if (lt_count == 0) {
3104
lt_foo="/" $lt_i lt_foo;
3111
if (lt_foo != "") { lt_freq[[lt_foo]]++; }
3112
if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
3114
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
3116
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3119
libname_spec='lib$name'
3127
shlibpath_overrides_runpath=unknown
3129
dynamic_linker="$host_os ld.so"
3130
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3131
need_lib_prefix=unknown
3132
hardcode_into_libs=no
3134
# when you set need_version to no, make sure it does not cause -set_version
3135
# flags to be left without arguments
3136
need_version=unknown
3141
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
3142
shlibpath_var=LIBPATH
3144
# AIX 3 has no versioning support, so we append a major version to the name.
3145
soname_spec='${libname}${release}${shared_ext}$major'
3152
hardcode_into_libs=yes
3153
if test "$host_cpu" = ia64; then
3154
# AIX 5 supports IA64
3155
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
3156
shlibpath_var=LD_LIBRARY_PATH
3158
# With GCC up to 2.95.x, collect2 would create an import file
3159
# for dependence libraries. The import file would start with
3160
# the line `#! .'. This would cause the generated library to
3161
# depend on `.', always an invalid library. This was fixed in
3162
# development snapshots of GCC prior to 3.0.
3164
aix4 | aix4.[[01]] | aix4.[[01]].*)
3165
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3167
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
3174
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3175
# soname into executable. Probably we can add versioning support to
3176
# collect2, so additional links can be useful in future.
3177
if test "$aix_use_runtimelinking" = yes; then
3178
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
3179
# instead of lib<name>.a to let people know that these are not
3180
# typical AIX shared libraries.
3181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3183
# We preserve .a as extension for shared libraries through AIX4.2
3184
# and later when we are not doing run time linking.
3185
library_names_spec='${libname}${release}.a $libname.a'
3186
soname_spec='${libname}${release}${shared_ext}$major'
3188
shlibpath_var=LIBPATH
3195
# Since July 2007 AmigaOS4 officially supports .so libraries.
3196
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
3197
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3200
library_names_spec='$libname.ixlibrary $libname.a'
3201
# Create ${libname}_ixlibrary.a entries in /sys/libs.
3202
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'
3208
library_names_spec='${libname}${shared_ext}'
3209
dynamic_linker="$host_os ld.so"
3210
shlibpath_var=LIBRARY_PATH
3216
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3217
soname_spec='${libname}${release}${shared_ext}$major'
3218
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3219
shlibpath_var=LD_LIBRARY_PATH
3220
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3221
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3222
# the default ld.so.conf also contains /usr/contrib/lib and
3223
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3224
# libtool to hard-code these into programs
3227
cygwin* | mingw* | pw32* | cegcc*)
3228
version_type=windows
3233
case $GCC,$host_os in
3234
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
3235
library_names_spec='$libname.dll.a'
3236
# DLL is installed to $(libdir)/../bin by postinstall_cmds
3237
postinstall_cmds='base_file=`basename \${file}`~
3238
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3239
dldir=$destdir/`dirname \$dlpath`~
3240
test -d \$dldir || mkdir -p \$dldir~
3241
$install_prog $dir/$dlname \$dldir/$dlname~
3242
chmod a+x \$dldir/$dlname~
3243
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3244
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3246
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3247
dlpath=$dir/\$dldll~
3249
shlibpath_overrides_runpath=yes
3253
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
3254
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3255
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
3258
# MinGW DLLs use traditional 'lib' prefix
3259
soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3260
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
3261
if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3262
# It is most probably a Windows format PATH printed by
3263
# mingw gcc, but we are running on Cygwin. Gcc prints its search
3264
# path with ; separators, and with drive letters. We can handle the
3265
# drive letters (cygwin fileutils understands them), so leave them,
3266
# especially as we might pass files found there to a mingw objdump,
3267
# which wouldn't understand a cygwinified path. Ahh.
3268
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3270
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3274
# pw32 DLLs use 'pw' prefix rather than 'lib'
3275
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3281
library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3284
dynamic_linker='Win32 ld.exe'
3285
# FIXME: first we should search . and the directory the executable is in
3289
darwin* | rhapsody*)
3290
dynamic_linker="$host_os dyld"
3294
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3295
soname_spec='${libname}${release}${major}$shared_ext'
3296
shlibpath_overrides_runpath=yes
3297
shlibpath_var=DYLD_LIBRARY_PATH
3298
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3300
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3301
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3309
soname_spec='${libname}${release}${shared_ext}$major'
3310
shlibpath_var=LD_LIBRARY_PATH
3317
freebsd* | dragonfly*)
3318
# DragonFly does not have aout. When/if they implement a new
3319
# versioning mechanism, adjust this.
3320
if test -x /usr/bin/objformat; then
3321
objformat=`/usr/bin/objformat`
3324
freebsd[[123]]*) objformat=aout ;;
3328
version_type=freebsd-$objformat
3329
case $version_type in
3331
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3336
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3340
shlibpath_var=LD_LIBRARY_PATH
3343
shlibpath_overrides_runpath=yes
3345
freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3346
shlibpath_overrides_runpath=yes
3347
hardcode_into_libs=yes
3349
freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3350
freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3351
shlibpath_overrides_runpath=no
3352
hardcode_into_libs=yes
3354
*) # from 4.6 on, and DragonFly
3355
shlibpath_overrides_runpath=yes
3356
hardcode_into_libs=yes
3365
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3366
soname_spec='${libname}${release}${shared_ext}$major'
3367
shlibpath_var=LD_LIBRARY_PATH
3368
hardcode_into_libs=yes
3371
hpux9* | hpux10* | hpux11*)
3372
# Give a soname corresponding to the major version so that dld.sl refuses to
3373
# link against other versions.
3380
hardcode_into_libs=yes
3381
dynamic_linker="$host_os dld.so"
3382
shlibpath_var=LD_LIBRARY_PATH
3383
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3384
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3385
soname_spec='${libname}${release}${shared_ext}$major'
3386
if test "X$HPUX_IA64_MODE" = X32; then
3387
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3389
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3391
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3395
hardcode_into_libs=yes
3396
dynamic_linker="$host_os dld.sl"
3397
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3398
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3399
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3400
soname_spec='${libname}${release}${shared_ext}$major'
3401
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3402
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3406
dynamic_linker="$host_os dld.sl"
3407
shlibpath_var=SHLIB_PATH
3408
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3409
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3410
soname_spec='${libname}${release}${shared_ext}$major'
3413
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3414
postinstall_cmds='chmod 555 $lib'
3421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3422
soname_spec='${libname}${release}${shared_ext}$major'
3423
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3424
shlibpath_var=LD_LIBRARY_PATH
3425
shlibpath_overrides_runpath=no
3426
hardcode_into_libs=yes
3429
irix5* | irix6* | nonstopux*)
3431
nonstopux*) version_type=nonstopux ;;
3433
if test "$lt_cv_prog_gnu_ld" = yes; then
3441
soname_spec='${libname}${release}${shared_ext}$major'
3442
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3444
irix5* | nonstopux*)
3448
case $LD in # libtool.m4 will add one of these switches to LD
3449
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3450
libsuff= shlibsuff= libmagic=32-bit;;
3451
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3452
libsuff=32 shlibsuff=N32 libmagic=N32;;
3453
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3454
libsuff=64 shlibsuff=64 libmagic=64-bit;;
3455
*) libsuff= shlibsuff= libmagic=never-match;;
3459
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3460
shlibpath_overrides_runpath=no
3461
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3462
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3463
hardcode_into_libs=yes
3466
# No shared lib support for Linux oldld, aout, or coff.
3467
linux*oldld* | linux*aout* | linux*coff*)
3471
# This must be Linux ELF.
3472
linux* | k*bsd*-gnu)
3476
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3477
soname_spec='${libname}${release}${shared_ext}$major'
3478
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3479
shlibpath_var=LD_LIBRARY_PATH
3480
shlibpath_overrides_runpath=no
3481
# Some binutils ld are patched to set DT_RUNPATH
3482
save_LDFLAGS=$LDFLAGS
3484
eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3485
LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3486
AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3487
[AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3488
[shlibpath_overrides_runpath=yes])])
3489
LDFLAGS=$save_LDFLAGS
3492
# This implies no fast_install, which is unacceptable.
3493
# Some rework will be needed to allow for fast_install
3494
# before this can be enabled.
3495
hardcode_into_libs=yes
3497
# Append ld.so.conf contents to the search path
3498
if test -f /etc/ld.so.conf; then
3499
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' ' '`
3500
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3503
# We used to test for /lib/ld.so.1 and disable shared libraries on
3504
# powerpc, because MkLinux only supported shared libraries with the
3505
# GNU dynamic linker. Since this was broken with cross compilers,
3506
# most powerpc-linux boxes support dynamic linking these days and
3507
# people can always --disable-shared, the test was removed, and we
3508
# assume the GNU/Linux dynamic linker is in use.
3509
dynamic_linker='GNU/Linux ld.so'
3516
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3517
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3518
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3519
dynamic_linker='NetBSD (a.out) ld.so'
3521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3522
soname_spec='${libname}${release}${shared_ext}$major'
3523
dynamic_linker='NetBSD ld.elf_so'
3525
shlibpath_var=LD_LIBRARY_PATH
3526
shlibpath_overrides_runpath=yes
3527
hardcode_into_libs=yes
3532
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3533
shlibpath_var=LD_LIBRARY_PATH
3534
shlibpath_overrides_runpath=yes
3541
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3542
soname_spec='${libname}${release}${shared_ext}$major'
3543
shlibpath_var=LD_LIBRARY_PATH
3544
shlibpath_overrides_runpath=no
3545
hardcode_into_libs=yes
3546
dynamic_linker='ldqnx.so'
3551
sys_lib_dlsearch_path_spec="/usr/lib"
3553
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3555
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3556
*) need_version=no ;;
3558
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3559
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3560
shlibpath_var=LD_LIBRARY_PATH
3561
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3563
openbsd2.[[89]] | openbsd2.[[89]].*)
3564
shlibpath_overrides_runpath=no
3567
shlibpath_overrides_runpath=yes
3571
shlibpath_overrides_runpath=yes
3576
libname_spec='$name'
3579
library_names_spec='$libname${shared_ext} $libname.a'
3580
dynamic_linker='OS/2 ld.exe'
3581
shlibpath_var=LIBPATH
3584
osf3* | osf4* | osf5*)
3588
soname_spec='${libname}${release}${shared_ext}$major'
3589
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3590
shlibpath_var=LD_LIBRARY_PATH
3591
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3592
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3604
soname_spec='${libname}${release}${shared_ext}$major'
3605
shlibpath_var=LD_LIBRARY_PATH
3606
shlibpath_overrides_runpath=yes
3607
hardcode_into_libs=yes
3608
# ldd complains unless libraries are executable
3609
postinstall_cmds='chmod +x $lib'
3614
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3615
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3616
shlibpath_var=LD_LIBRARY_PATH
3617
shlibpath_overrides_runpath=yes
3618
if test "$with_gnu_ld" = yes; then
3626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3627
soname_spec='${libname}${release}${shared_ext}$major'
3628
shlibpath_var=LD_LIBRARY_PATH
3629
case $host_vendor in
3631
shlibpath_overrides_runpath=no
3633
runpath_var=LD_RUN_PATH
3641
shlibpath_overrides_runpath=no
3642
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3648
if test -d /usr/nec ;then
3650
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3651
soname_spec='$libname${shared_ext}.$major'
3652
shlibpath_var=LD_LIBRARY_PATH
3656
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3657
version_type=freebsd-elf
3660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3661
soname_spec='${libname}${release}${shared_ext}$major'
3662
shlibpath_var=LD_LIBRARY_PATH
3663
shlibpath_overrides_runpath=yes
3664
hardcode_into_libs=yes
3665
if test "$with_gnu_ld" = yes; then
3666
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3668
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3671
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3675
sys_lib_dlsearch_path_spec='/usr/lib'
3679
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3683
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3684
shlibpath_var=LD_LIBRARY_PATH
3685
shlibpath_overrides_runpath=no
3686
hardcode_into_libs=yes
3691
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3692
soname_spec='${libname}${release}${shared_ext}$major'
3693
shlibpath_var=LD_LIBRARY_PATH
3700
AC_MSG_RESULT([$dynamic_linker])
3701
test "$dynamic_linker" = no && can_build_shared=no
3703
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3704
if test "$GCC" = yes; then
3705
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3708
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3709
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3711
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3712
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3715
_LT_DECL([], [variables_saved_for_relink], [1],
3716
[Variables whose values should be saved in libtool wrapper scripts and
3717
restored at link time])
3718
_LT_DECL([], [need_lib_prefix], [0],
3719
[Do we need the "lib" prefix for modules?])
3720
_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3721
_LT_DECL([], [version_type], [0], [Library versioning type])
3722
_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3723
_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3724
_LT_DECL([], [shlibpath_overrides_runpath], [0],
3725
[Is shlibpath searched before the hard-coded library search path?])
3726
_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3727
_LT_DECL([], [library_names_spec], [1],
3728
[[List of archive names. First name is the real one, the rest are links.
3729
The last name is the one that the linker finds with -lNAME]])
3730
_LT_DECL([], [soname_spec], [1],
3731
[[The coded name of the library, if different from the real name]])
3732
_LT_DECL([], [postinstall_cmds], [2],
3733
[Command to use after installation of a shared archive])
3734
_LT_DECL([], [postuninstall_cmds], [2],
3735
[Command to use after uninstallation of a shared archive])
3736
_LT_DECL([], [finish_cmds], [2],
3737
[Commands used to finish a libtool library installation in a directory])
3738
_LT_DECL([], [finish_eval], [1],
3739
[[As "finish_cmds", except a single script fragment to be evaled but
3741
_LT_DECL([], [hardcode_into_libs], [0],
3742
[Whether we should hardcode library paths into libraries])
3743
_LT_DECL([], [sys_lib_search_path_spec], [2],
3744
[Compile-time system search path for libraries])
3745
_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3746
[Run-time system search path for libraries])
3747
])# _LT_SYS_DYNAMIC_LINKER
3750
# _LT_PATH_TOOL_PREFIX(TOOL)
3751
# --------------------------
3752
# find a file program which can recognize shared library
3753
AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3754
[m4_require([_LT_DECL_EGREP])dnl
3755
AC_MSG_CHECKING([for $1])
3756
AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3758
[[\\/*] | ?:[\\/]*])
3759
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3762
lt_save_MAGIC_CMD="$MAGIC_CMD"
3763
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3764
dnl $ac_dummy forces splitting on constant user-supplied paths.
3765
dnl POSIX.2 word splitting is done only on the output of word expansions,
3766
dnl not every word. This closes a longstanding sh security hole.
3767
ac_dummy="m4_if([$2], , $PATH, [$2])"
3768
for ac_dir in $ac_dummy; do
3770
test -z "$ac_dir" && ac_dir=.
3771
if test -f $ac_dir/$1; then
3772
lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3773
if test -n "$file_magic_test_file"; then
3774
case $deplibs_check_method in
3776
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3777
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3778
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3779
$EGREP "$file_magic_regex" > /dev/null; then
3784
*** Warning: the command libtool uses to detect shared libraries,
3785
*** $file_magic_cmd, produces output that libtool cannot recognize.
3786
*** The result is that libtool may fail to recognize shared libraries
3787
*** as such. This will affect the creation of libtool libraries that
3788
*** depend on shared libraries, but programs linked with such libtool
3789
*** libraries will work regardless of this problem. Nevertheless, you
3790
*** may want to report the problem to your system manager and/or to
3791
*** bug-libtool@gnu.org
3801
MAGIC_CMD="$lt_save_MAGIC_CMD"
3804
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3805
if test -n "$MAGIC_CMD"; then
3806
AC_MSG_RESULT($MAGIC_CMD)
3810
_LT_DECL([], [MAGIC_CMD], [0],
3811
[Used to examine libraries when file_magic_cmd begins with "file"])dnl
3812
])# _LT_PATH_TOOL_PREFIX
3815
AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3816
dnl aclocal-1.4 backwards compatibility:
3817
dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3822
# find a file program which can recognize a shared library
3823
m4_defun([_LT_PATH_MAGIC],
3824
[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3825
if test -z "$lt_cv_path_MAGIC_CMD"; then
3826
if test -n "$ac_tool_prefix"; then
3827
_LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3837
# find the pathname to the GNU or non-GNU linker
3838
AC_DEFUN([LT_PATH_LD],
3839
[AC_REQUIRE([AC_PROG_CC])dnl
3840
AC_REQUIRE([AC_CANONICAL_HOST])dnl
3841
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3842
m4_require([_LT_DECL_SED])dnl
3843
m4_require([_LT_DECL_EGREP])dnl
3845
AC_ARG_WITH([gnu-ld],
3846
[AS_HELP_STRING([--with-gnu-ld],
3847
[assume the C compiler uses GNU ld @<:@default=no@:>@])],
3848
[test "$withval" = no || with_gnu_ld=yes],
3849
[with_gnu_ld=no])dnl
3852
if test "$GCC" = yes; then
3853
# Check if gcc -print-prog-name=ld gives a path.
3854
AC_MSG_CHECKING([for ld used by $CC])
3857
# gcc leaves a trailing carriage return which upsets mingw
3858
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3860
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3863
# Accept absolute paths.
3864
[[\\/]]* | ?:[[\\/]]*)
3865
re_direlt='/[[^/]][[^/]]*/\.\./'
3866
# Canonicalize the pathname of ld
3867
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3868
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3869
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3871
test -z "$LD" && LD="$ac_prog"
3874
# If it fails, then pretend we aren't using GCC.
3878
# If it is relative, then search for the first ld in PATH.
3882
elif test "$with_gnu_ld" = yes; then
3883
AC_MSG_CHECKING([for GNU ld])
3885
AC_MSG_CHECKING([for non-GNU ld])
3887
AC_CACHE_VAL(lt_cv_path_LD,
3888
[if test -z "$LD"; then
3889
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3890
for ac_dir in $PATH; do
3892
test -z "$ac_dir" && ac_dir=.
3893
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3894
lt_cv_path_LD="$ac_dir/$ac_prog"
3895
# Check to see if the program is GNU ld. I'd rather use --version,
3896
# but apparently some variants of GNU ld only accept -v.
3897
# Break only if it was the GNU/non-GNU ld that we prefer.
3898
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3899
*GNU* | *'with BFD'*)
3900
test "$with_gnu_ld" != no && break
3903
test "$with_gnu_ld" != yes && break
3910
lt_cv_path_LD="$LD" # Let the user override the test with a path.
3913
if test -n "$LD"; then
3918
test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3922
_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3926
AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3927
AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3928
dnl aclocal-1.4 backwards compatibility:
3929
dnl AC_DEFUN([AM_PROG_LD], [])
3930
dnl AC_DEFUN([AC_PROG_LD], [])
3935
m4_defun([_LT_PATH_LD_GNU],
3936
[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3937
[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3938
case `$LD -v 2>&1 </dev/null` in
3939
*GNU* | *'with BFD'*)
3940
lt_cv_prog_gnu_ld=yes
3943
lt_cv_prog_gnu_ld=no
3946
with_gnu_ld=$lt_cv_prog_gnu_ld
3952
# find reload flag for linker
3953
# -- PORTME Some linkers may need a different reload flag.
3954
m4_defun([_LT_CMD_RELOAD],
3955
[AC_CACHE_CHECK([for $LD option to reload object files],
3956
lt_cv_ld_reload_flag,
3957
[lt_cv_ld_reload_flag='-r'])
3958
reload_flag=$lt_cv_ld_reload_flag
3959
case $reload_flag in
3961
*) reload_flag=" $reload_flag" ;;
3963
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3966
if test "$GCC" = yes; then
3967
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3969
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3973
_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3974
_LT_DECL([], [reload_cmds], [2])dnl
3978
# _LT_CHECK_MAGIC_METHOD
3979
# ----------------------
3980
# how to check for library dependencies
3981
# -- PORTME fill in with the dynamic library characteristics
3982
m4_defun([_LT_CHECK_MAGIC_METHOD],
3983
[m4_require([_LT_DECL_EGREP])
3984
m4_require([_LT_DECL_OBJDUMP])
3985
AC_CACHE_CHECK([how to recognize dependent libraries],
3986
lt_cv_deplibs_check_method,
3987
[lt_cv_file_magic_cmd='$MAGIC_CMD'
3988
lt_cv_file_magic_test_file=
3989
lt_cv_deplibs_check_method='unknown'
3990
# Need to set the preceding variable on all platforms that support
3991
# interlibrary dependencies.
3992
# 'none' -- dependencies not supported.
3993
# `unknown' -- same as none, but documents that we really don't know.
3994
# 'pass_all' -- all dependencies passed with no checks.
3995
# 'test_compile' -- check by making test program.
3996
# 'file_magic [[regex]]' -- check by looking for files in library path
3997
# which responds to the $file_magic_cmd with a given extended regex.
3998
# If you have `file' or equivalent on your system and you're not sure
3999
# whether `pass_all' will *always* work, you probably want this one.
4003
lt_cv_deplibs_check_method=pass_all
4007
lt_cv_deplibs_check_method=pass_all
4011
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
4012
lt_cv_file_magic_cmd='/usr/bin/file -L'
4013
lt_cv_file_magic_test_file=/shlib/libc.so
4017
# func_win32_libid is a shell function defined in ltmain.sh
4018
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4019
lt_cv_file_magic_cmd='func_win32_libid'
4023
# Base MSYS/MinGW do not provide the 'file' command needed by
4024
# func_win32_libid shell function, so use a weaker test based on 'objdump',
4025
# unless we find 'file', for example because we are cross-compiling.
4026
if ( file / ) >/dev/null 2>&1; then
4027
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4028
lt_cv_file_magic_cmd='func_win32_libid'
4030
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4031
lt_cv_file_magic_cmd='$OBJDUMP -f'
4036
# use the weaker test based on 'objdump'. See mingw*.
4037
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4038
lt_cv_file_magic_cmd='$OBJDUMP -f'
4041
darwin* | rhapsody*)
4042
lt_cv_deplibs_check_method=pass_all
4045
freebsd* | dragonfly*)
4046
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4049
# Not sure whether the presence of OpenBSD here was a mistake.
4050
# Let's accept both of them until this is cleared up.
4051
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
4052
lt_cv_file_magic_cmd=/usr/bin/file
4053
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4057
lt_cv_deplibs_check_method=pass_all
4062
lt_cv_deplibs_check_method=pass_all
4065
hpux10.20* | hpux11*)
4066
lt_cv_file_magic_cmd=/usr/bin/file
4069
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
4070
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4073
[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]']
4074
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4077
lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
4078
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4084
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4085
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
4088
irix5* | irix6* | nonstopux*)
4090
*-32|*"-32 ") libmagic=32-bit;;
4091
*-n32|*"-n32 ") libmagic=N32;;
4092
*-64|*"-64 ") libmagic=64-bit;;
4093
*) libmagic=never-match;;
4095
lt_cv_deplibs_check_method=pass_all
4098
# This must be Linux ELF.
4099
linux* | k*bsd*-gnu)
4100
lt_cv_deplibs_check_method=pass_all
4104
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4105
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4107
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
4112
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
4113
lt_cv_file_magic_cmd=/usr/bin/file
4114
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4118
lt_cv_deplibs_check_method=pass_all
4122
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4123
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
4125
lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
4129
osf3* | osf4* | osf5*)
4130
lt_cv_deplibs_check_method=pass_all
4134
lt_cv_deplibs_check_method=pass_all
4138
lt_cv_deplibs_check_method=pass_all
4141
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4142
lt_cv_deplibs_check_method=pass_all
4146
case $host_vendor in
4148
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]]'
4149
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4152
lt_cv_deplibs_check_method=pass_all
4155
lt_cv_file_magic_cmd='/bin/file'
4156
lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4159
lt_cv_file_magic_cmd='/bin/file'
4160
lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4161
lt_cv_file_magic_test_file=/lib/libc.so
4164
lt_cv_deplibs_check_method=pass_all
4167
lt_cv_deplibs_check_method=pass_all
4173
lt_cv_deplibs_check_method=pass_all
4177
file_magic_cmd=$lt_cv_file_magic_cmd
4178
deplibs_check_method=$lt_cv_deplibs_check_method
4179
test -z "$deplibs_check_method" && deplibs_check_method=unknown
4181
_LT_DECL([], [deplibs_check_method], [1],
4182
[Method to check whether dependent libraries are shared objects])
4183
_LT_DECL([], [file_magic_cmd], [1],
4184
[Command to use when deplibs_check_method == "file_magic"])
4185
])# _LT_CHECK_MAGIC_METHOD
4190
# find the pathname to a BSD- or MS-compatible name lister
4191
AC_DEFUN([LT_PATH_NM],
4192
[AC_REQUIRE([AC_PROG_CC])dnl
4193
AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4194
[if test -n "$NM"; then
4195
# Let the user override the test.
4198
lt_nm_to_check="${ac_tool_prefix}nm"
4199
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4200
lt_nm_to_check="$lt_nm_to_check nm"
4202
for lt_tmp_nm in $lt_nm_to_check; do
4203
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4204
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4206
test -z "$ac_dir" && ac_dir=.
4207
tmp_nm="$ac_dir/$lt_tmp_nm"
4208
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4209
# Check to see if the nm accepts a BSD-compat flag.
4210
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4211
# nm: unknown option "B" ignored
4212
# Tru64's nm complains that /dev/null is an invalid object file
4213
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4214
*/dev/null* | *'Invalid file or object type'*)
4215
lt_cv_path_NM="$tmp_nm -B"
4219
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4221
lt_cv_path_NM="$tmp_nm -p"
4225
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4226
continue # so that we can try to find one that supports BSD flags
4235
: ${lt_cv_path_NM=no}
4237
if test "$lt_cv_path_NM" != "no"; then
4240
# Didn't find any BSD compatible name lister, look for dumpbin.
4241
AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
4243
if test "$DUMPBIN" != ":"; then
4247
test -z "$NM" && NM=nm
4249
_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4251
AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4252
[lt_cv_nm_interface="BSD nm"
4253
echo "int some_variable = 0;" > conftest.$ac_ext
4254
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4255
(eval "$ac_compile" 2>conftest.err)
4256
cat conftest.err >&AS_MESSAGE_LOG_FD
4257
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4258
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4259
cat conftest.err >&AS_MESSAGE_LOG_FD
4260
(eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
4261
cat conftest.out >&AS_MESSAGE_LOG_FD
4262
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4263
lt_cv_nm_interface="MS dumpbin"
4269
AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4270
AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4271
dnl aclocal-1.4 backwards compatibility:
4272
dnl AC_DEFUN([AM_PROG_NM], [])
4273
dnl AC_DEFUN([AC_PROG_NM], [])
4278
# check for math library
4279
AC_DEFUN([LT_LIB_M],
4280
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4283
*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
4284
# These system don't have libm, or don't need it
4287
AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4288
AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4291
AC_CHECK_LIB(m, cos, LIBM="-lm")
4298
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4299
dnl aclocal-1.4 backwards compatibility:
4300
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4303
# _LT_COMPILER_NO_RTTI([TAGNAME])
4304
# -------------------------------
4305
m4_defun([_LT_COMPILER_NO_RTTI],
4306
[m4_require([_LT_TAG_COMPILER])dnl
4308
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4310
if test "$GCC" = yes; then
4311
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4313
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4314
lt_cv_prog_compiler_rtti_exceptions,
4315
[-fno-rtti -fno-exceptions], [],
4316
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4318
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4319
[Compiler flag to turn off builtin functions])
4320
])# _LT_COMPILER_NO_RTTI
4323
# _LT_CMD_GLOBAL_SYMBOLS
4324
# ----------------------
4325
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4326
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4327
AC_REQUIRE([AC_PROG_CC])dnl
4328
AC_REQUIRE([LT_PATH_NM])dnl
4329
AC_REQUIRE([LT_PATH_LD])dnl
4330
m4_require([_LT_DECL_SED])dnl
4331
m4_require([_LT_DECL_EGREP])dnl
4332
m4_require([_LT_TAG_COMPILER])dnl
4334
# Check for command to grab the raw symbol name followed by C symbol from nm.
4335
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4336
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4338
# These are sane defaults that work on at least a few old systems.
4339
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4341
# Character class describing NM global symbol codes.
4342
symcode='[[BCDEGRST]]'
4344
# Regexp to match symbols that can be accessed directly from C.
4345
sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4347
# Define system-specific variables.
4352
cygwin* | mingw* | pw32* | cegcc*)
4353
symcode='[[ABCDGISTW]]'
4356
if test "$host_cpu" = ia64; then
4357
symcode='[[ABCDEGRST]]'
4361
symcode='[[BCDEGRST]]'
4364
symcode='[[BCDEGQRST]]'
4375
sysv5* | sco5v6* | unixware* | OpenUNIX*)
4379
symcode='[[DFNSTU]]'
4383
# If we're using GNU nm, then use its standard symbol codes.
4384
case `$NM -V 2>&1` in
4385
*GNU* | *'with BFD'*)
4386
symcode='[[ABCDGIRSTW]]' ;;
4389
# Transform an extracted symbol line into a proper C declaration.
4390
# Some systems (esp. on ia64) link data and code symbols differently,
4391
# so use this general approach.
4392
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4394
# Transform an extracted symbol line into symbol name and symbol address
4395
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4396
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'"
4398
# Handle CRLF in mingw tool chain
4402
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4406
# Try without a prefix underscore, then with it.
4407
for ac_symprfx in "" "_"; do
4409
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4410
symxfrm="\\1 $ac_symprfx\\2 \\2"
4412
# Write the raw and C identifiers.
4413
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4414
# Fake it for dumpbin and say T for any non-static function
4415
# and D for any global variable.
4416
# Also find C++ and __fastcall symbols from MSVC++,
4417
# which start with @ or ?.
4418
lt_cv_sys_global_symbol_pipe="$AWK ['"\
4419
" {last_section=section; section=\$ 3};"\
4420
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4421
" \$ 0!~/External *\|/{next};"\
4422
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4423
" {if(hide[section]) next};"\
4424
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4425
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4426
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4427
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4428
" ' prfx=^$ac_symprfx]"
4430
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4433
# Check to see that the pipe works correctly.
4437
cat > conftest.$ac_ext <<_LT_EOF
4442
void nm_test_func(void);
4443
void nm_test_func(void){}
4447
int main(){nm_test_var='a';nm_test_func();return(0);}
4450
if AC_TRY_EVAL(ac_compile); then
4451
# Now try to grab the symbols.
4453
if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4454
# Try sorting and uniquifying the output.
4455
if sort "$nlist" | uniq > "$nlist"T; then
4456
mv -f "$nlist"T "$nlist"
4461
# Make sure that we snagged all the symbols we need.
4462
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4463
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4464
cat <<_LT_EOF > conftest.$ac_ext
4470
# Now generate the symbol file.
4471
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4473
cat <<_LT_EOF >> conftest.$ac_ext
4475
/* The mapping between symbol names and symbols. */
4480
lt__PROGRAM__LTX_preloaded_symbols[[]] =
4482
{ "@PROGRAM@", (void *) 0 },
4484
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4485
cat <<\_LT_EOF >> conftest.$ac_ext
4489
/* This works around a problem in FreeBSD linker */
4490
#ifdef FREEBSD_WORKAROUND
4491
static const void *lt_preloaded_setup() {
4492
return lt__PROGRAM__LTX_preloaded_symbols;
4500
# Now try linking the two files.
4501
mv conftest.$ac_objext conftstm.$ac_objext
4502
lt_save_LIBS="$LIBS"
4503
lt_save_CFLAGS="$CFLAGS"
4504
LIBS="conftstm.$ac_objext"
4505
CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4506
if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4509
LIBS="$lt_save_LIBS"
4510
CFLAGS="$lt_save_CFLAGS"
4512
echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4515
echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4518
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4521
echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4522
cat conftest.$ac_ext >&5
4524
rm -rf conftest* conftst*
4526
# Do not use the global_symbol_pipe unless it works.
4527
if test "$pipe_works" = yes; then
4530
lt_cv_sys_global_symbol_pipe=
4534
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4535
lt_cv_sys_global_symbol_to_cdecl=
4537
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4538
AC_MSG_RESULT(failed)
4543
_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4544
[Take the output of nm and produce a listing of raw symbols and C names])
4545
_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4546
[Transform the output of nm in a proper C declaration])
4547
_LT_DECL([global_symbol_to_c_name_address],
4548
[lt_cv_sys_global_symbol_to_c_name_address], [1],
4549
[Transform the output of nm in a C name address pair])
4550
_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4551
[lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4552
[Transform the output of nm in a C name address pair when lib prefix is needed])
4553
]) # _LT_CMD_GLOBAL_SYMBOLS
4556
# _LT_COMPILER_PIC([TAGNAME])
4557
# ---------------------------
4558
m4_defun([_LT_COMPILER_PIC],
4559
[m4_require([_LT_TAG_COMPILER])dnl
4560
_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4561
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4562
_LT_TAGVAR(lt_prog_compiler_static, $1)=
4564
AC_MSG_CHECKING([for $compiler option to produce PIC])
4565
m4_if([$1], [CXX], [
4566
# C++ specific cases for pic, static, wl, etc.
4567
if test "$GXX" = yes; then
4568
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4569
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4573
# All AIX code is PIC.
4574
if test "$host_cpu" = ia64; then
4575
# AIX 5 now supports IA64 processor
4576
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4583
# see comment about AmigaOS4 .so support
4584
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4587
# FIXME: we need at least 68020 code to build shared libraries, but
4588
# adding the `-m68020' flag to GCC prevents building anything better,
4590
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4595
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4596
# PIC is the default for these OSes.
4598
mingw* | cygwin* | os2* | pw32* | cegcc*)
4599
# This hack is so that the source file can tell whether it is being
4600
# built for inclusion in a dll (and should export symbols for example).
4601
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4602
# (--disable-auto-import) libraries
4603
m4_if([$1], [GCJ], [],
4604
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4606
darwin* | rhapsody*)
4607
# PIC is the default on this platform
4608
# Common symbols not allowed in MH_DYLIB files
4609
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4612
# DJGPP does not support shared libraries at all
4613
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4616
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4617
# Instead, we relocate shared libraries at runtime.
4620
if test -d /usr/nec; then
4621
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4625
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4626
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4627
# sets the default TLS model and affects inlining.
4632
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4637
# QNX uses GNU C++, but need to define -shared option too, otherwise
4639
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4642
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4648
# All AIX code is PIC.
4649
if test "$host_cpu" = ia64; then
4650
# AIX 5 now supports IA64 processor
4651
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4653
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4657
case $cc_basename in
4659
# Green Hills C++ Compiler
4660
# _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"
4665
case $cc_basename in
4667
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4670
# Green Hills C++ Compiler
4671
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4677
freebsd* | dragonfly*)
4678
# FreeBSD uses GNU C++
4680
hpux9* | hpux10* | hpux11*)
4681
case $cc_basename in
4683
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4684
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4685
if test "$host_cpu" != ia64; then
4686
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4690
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4697
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4706
# This is c89, which is MS Visual C++ (no shared libs)
4707
# Anyone wants to do a port?
4709
irix5* | irix6* | nonstopux*)
4710
case $cc_basename in
4712
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4713
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4714
# CC pic flag -KPIC is the default.
4720
linux* | k*bsd*-gnu)
4721
case $cc_basename in
4724
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4725
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4728
# old Intel C++ for x86_64 which still supported -KPIC.
4729
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4730
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4731
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4734
# Intel C++, used to be incompatible with GCC.
4735
# ICC 10 doesn't accept -KPIC any more.
4736
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4737
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4738
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4741
# Portland Group C++ compiler
4742
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4743
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4744
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4748
# Make sure the PIC flag is empty. It appears that all Alpha
4749
# Linux and Compaq Tru64 Unix objects are PIC.
4750
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4751
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4755
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4756
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4757
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4760
case `$CC -V 2>&1 | sed 5q` in
4763
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4764
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4765
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4776
case $cc_basename in
4778
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4787
# QNX uses GNU C++, but need to define -shared option too, otherwise
4789
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4791
osf3* | osf4* | osf5*)
4792
case $cc_basename in
4794
_LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4797
# Rational C++ 2.4.1
4798
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4801
# Digital/Compaq C++
4802
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4803
# Make sure the PIC flag is empty. It appears that all Alpha
4804
# Linux and Compaq Tru64 Unix objects are PIC.
4805
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4806
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4815
case $cc_basename in
4817
# Sun C++ 4.2, 5.x and Centerline C++
4818
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4819
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4820
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4823
# Green Hills C++ Compiler
4824
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4831
case $cc_basename in
4834
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4835
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4839
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4845
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4846
case $cc_basename in
4848
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4849
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4850
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4855
case $cc_basename in
4857
# NonStop-UX NCC 3.20
4858
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4867
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4873
if test "$GCC" = yes; then
4874
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4875
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4879
# All AIX code is PIC.
4880
if test "$host_cpu" = ia64; then
4881
# AIX 5 now supports IA64 processor
4882
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4889
# see comment about AmigaOS4 .so support
4890
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4893
# FIXME: we need at least 68020 code to build shared libraries, but
4894
# adding the `-m68020' flag to GCC prevents building anything better,
4896
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4901
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4902
# PIC is the default for these OSes.
4905
mingw* | cygwin* | pw32* | os2* | cegcc*)
4906
# This hack is so that the source file can tell whether it is being
4907
# built for inclusion in a dll (and should export symbols for example).
4908
# Although the cygwin gcc ignores -fPIC, still need this for old-style
4909
# (--disable-auto-import) libraries
4910
m4_if([$1], [GCJ], [],
4911
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4914
darwin* | rhapsody*)
4915
# PIC is the default on this platform
4916
# Common symbols not allowed in MH_DYLIB files
4917
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4921
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4922
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4923
# sets the default TLS model and affects inlining.
4929
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4935
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
4936
# Instead, we relocate shared libraries at runtime.
4940
# Just because we use GCC doesn't mean we suddenly get shared libraries
4941
# on systems that don't support them.
4942
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4947
# QNX uses GNU C++, but need to define -shared option too, otherwise
4949
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4953
if test -d /usr/nec; then
4954
_LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4959
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4963
# PORTME Check for flag to pass linker flags through the system compiler.
4966
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4967
if test "$host_cpu" = ia64; then
4968
# AIX 5 now supports IA64 processor
4969
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4971
_LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4975
mingw* | cygwin* | pw32* | os2* | cegcc*)
4976
# This hack is so that the source file can tell whether it is being
4977
# built for inclusion in a dll (and should export symbols for example).
4978
m4_if([$1], [GCJ], [],
4979
[_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4982
hpux9* | hpux10* | hpux11*)
4983
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4984
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4991
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4994
# Is there a better lt_prog_compiler_static that works with the bundled CC?
4995
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4998
irix5* | irix6* | nonstopux*)
4999
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5000
# PIC (with -KPIC) is the default.
5001
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5004
linux* | k*bsd*-gnu)
5005
case $cc_basename in
5006
# old Intel for x86_64 which still supported -KPIC.
5008
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5009
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5010
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5012
# icc used to be incompatible with GCC.
5013
# ICC 10 doesn't accept -KPIC any more.
5015
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5016
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5017
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5019
# Lahey Fortran 8.1.
5021
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5022
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5023
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5025
pgcc* | pgf77* | pgf90* | pgf95*)
5026
# Portland Group compilers (*not* the Pentium gcc compiler,
5027
# which looks to be a dead project)
5028
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5029
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5030
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5033
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5034
# All Alpha code is PIC.
5035
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5038
# IBM XL C 8.0/Fortran 10.1 on PPC
5039
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5040
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5041
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5044
case `$CC -V 2>&1 | sed 5q` in
5047
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5048
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5049
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5052
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5053
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5054
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5055
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5063
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5064
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5068
# QNX uses GNU C++, but need to define -shared option too, otherwise
5070
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5073
osf3* | osf4* | osf5*)
5074
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5075
# All OSF/1 code is PIC.
5076
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5080
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5084
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5085
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5086
case $cc_basename in
5088
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5090
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5095
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5096
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5097
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5100
sysv4 | sysv4.2uw2* | sysv4.3*)
5101
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5102
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5103
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5107
if test -d /usr/nec ;then
5108
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5109
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5113
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5114
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5115
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5116
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5120
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5121
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5125
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5126
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5130
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5136
# For platforms which do not support PIC, -DPIC is meaningless:
5138
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5141
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5144
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5145
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5146
[How to pass a linker flag through the compiler])
5149
# Check to make sure the PIC flag actually works.
5151
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5152
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5153
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5154
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5155
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5157
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5159
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5160
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5162
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5163
[Additional compiler flags for building library objects])
5166
# Check to make sure the static flag actually works.
5168
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5169
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5170
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5171
$lt_tmp_static_flag,
5173
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5174
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5175
[Compiler flag to prevent dynamic linking])
5176
])# _LT_COMPILER_PIC
5179
# _LT_LINKER_SHLIBS([TAGNAME])
5180
# ----------------------------
5181
# See if the linker supports building shared libraries.
5182
m4_defun([_LT_LINKER_SHLIBS],
5183
[AC_REQUIRE([LT_PATH_LD])dnl
5184
AC_REQUIRE([LT_PATH_NM])dnl
5185
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5186
m4_require([_LT_DECL_EGREP])dnl
5187
m4_require([_LT_DECL_SED])dnl
5188
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5189
m4_require([_LT_TAG_COMPILER])dnl
5190
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5191
m4_if([$1], [CXX], [
5192
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5195
# If we're using GNU nm, then we don't want the "-C" option.
5196
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5197
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5198
_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'
5200
_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'
5204
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5206
cygwin* | mingw* | cegcc*)
5207
_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'
5210
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5213
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5216
_LT_TAGVAR(allow_undefined_flag, $1)=
5217
_LT_TAGVAR(always_export_symbols, $1)=no
5218
_LT_TAGVAR(archive_cmds, $1)=
5219
_LT_TAGVAR(archive_expsym_cmds, $1)=
5220
_LT_TAGVAR(compiler_needs_object, $1)=no
5221
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5222
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5223
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5224
_LT_TAGVAR(hardcode_automatic, $1)=no
5225
_LT_TAGVAR(hardcode_direct, $1)=no
5226
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5227
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5228
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5229
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5230
_LT_TAGVAR(hardcode_minus_L, $1)=no
5231
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5232
_LT_TAGVAR(inherit_rpath, $1)=no
5233
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5234
_LT_TAGVAR(module_cmds, $1)=
5235
_LT_TAGVAR(module_expsym_cmds, $1)=
5236
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5237
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5238
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5239
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5240
# include_expsyms should be a list of space-separated symbols to be *always*
5241
# included in the symbol list
5242
_LT_TAGVAR(include_expsyms, $1)=
5243
# exclude_expsyms can be an extended regexp of symbols to exclude
5244
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5245
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5246
# as well as any symbol that contains `d'.
5247
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5248
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5249
# platforms (ab)use it in PIC code, but their linkers get confused if
5250
# the symbol is explicitly referenced. Since portable code cannot
5251
# rely on this symbol name, it's probably fine to never include it in
5252
# preloaded symbol tables.
5253
# Exclude shared library initialization/finalization symbols.
5254
dnl Note also adjust exclude_expsyms for C++ above.
5255
extract_expsyms_cmds=
5258
cygwin* | mingw* | pw32* | cegcc*)
5259
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5260
# When not using gcc, we currently assume that we are using
5261
# Microsoft Visual C++.
5262
if test "$GCC" != yes; then
5267
# we just hope/assume this is gcc and not c89 (= MSVC++)
5275
_LT_TAGVAR(ld_shlibs, $1)=yes
5276
if test "$with_gnu_ld" = yes; then
5277
# If archive_cmds runs LD, not CC, wlarc should be empty
5280
# Set some defaults for GNU ld with shared library support. These
5281
# are reset later if shared libraries are not supported. Putting them
5282
# here allows them to be overridden if necessary.
5283
runpath_var=LD_RUN_PATH
5284
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5285
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5286
# ancient GNU ld didn't support --whole-archive et. al.
5287
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5288
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5290
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5292
supports_anon_versioning=no
5293
case `$LD -v 2>&1` in
5294
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5295
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5296
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5297
*\ 2.11.*) ;; # other 2.11 versions
5298
*) supports_anon_versioning=yes ;;
5301
# See if GNU ld supports shared libraries.
5304
# On AIX/PPC, the GNU linker is very broken
5305
if test "$host_cpu" != ia64; then
5306
_LT_TAGVAR(ld_shlibs, $1)=no
5309
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5310
*** to be unable to reliably create shared libraries on AIX.
5311
*** Therefore, libtool is disabling shared libraries support. If you
5312
*** really care for shared libraries, you may want to modify your PATH
5313
*** so that a non-GNU linker is found, and then restart.
5322
# see comment about AmigaOS4 .so support
5323
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5324
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5327
_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)'
5328
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5329
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5335
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5336
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5337
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5338
# support --undefined. This deserves some investigation. FIXME
5339
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5341
_LT_TAGVAR(ld_shlibs, $1)=no
5345
cygwin* | mingw* | pw32* | cegcc*)
5346
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5347
# as there is no search path for DLLs.
5348
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5349
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5350
_LT_TAGVAR(always_export_symbols, $1)=no
5351
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5352
_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'
5354
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5355
_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'
5356
# If the export-symbols file already is a .def file (1st line
5357
# is EXPORTS), use it as is; otherwise, prepend...
5358
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5359
cp $export_symbols $output_objdir/$soname.def;
5361
echo EXPORTS > $output_objdir/$soname.def;
5362
cat $export_symbols >> $output_objdir/$soname.def;
5364
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5366
_LT_TAGVAR(ld_shlibs, $1)=no
5371
_LT_TAGVAR(hardcode_direct, $1)=no
5372
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5373
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5374
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5375
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5376
# Instead, shared libraries are loaded at an image base (0x10000000 by
5377
# default) and relocated if they conflict, which is a slow very memory
5378
# consuming and fragmenting process. To avoid this, we pick a random,
5379
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5380
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
5381
_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'
5382
_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'
5385
gnu* | linux* | tpf* | k*bsd*-gnu)
5387
if test "$host_os" = linux-dietlibc; then
5388
case $cc_basename in
5389
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5392
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5393
&& test "$tmp_diet" = no
5396
tmp_sharedflag='-shared'
5397
case $cc_basename,$host_cpu in
5398
pgcc*) # Portland Group C compiler
5399
_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'
5400
tmp_addflag=' $pic_flag'
5402
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5403
_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'
5404
tmp_addflag=' $pic_flag -Mnomain' ;;
5405
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5406
tmp_addflag=' -i_dynamic' ;;
5407
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5408
tmp_addflag=' -i_dynamic -nofor_main' ;;
5409
ifc* | ifort*) # Intel Fortran compiler
5410
tmp_addflag=' -nofor_main' ;;
5411
lf95*) # Lahey Fortran 8.1
5412
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5413
tmp_sharedflag='--shared' ;;
5414
xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5415
tmp_sharedflag='-qmkshrobj'
5418
case `$CC -V 2>&1 | sed 5q` in
5419
*Sun\ C*) # Sun C 5.9
5420
_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'
5421
_LT_TAGVAR(compiler_needs_object, $1)=yes
5422
tmp_sharedflag='-G' ;;
5423
*Sun\ F*) # Sun Fortran 8.3
5424
tmp_sharedflag='-G' ;;
5426
_LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5428
if test "x$supports_anon_versioning" = xyes; then
5429
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5430
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5431
echo "local: *; };" >> $output_objdir/$libname.ver~
5432
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5435
case $cc_basename in
5437
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5438
_LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5439
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5440
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5441
_LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5442
if test "x$supports_anon_versioning" = xyes; then
5443
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5444
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5445
echo "local: *; };" >> $output_objdir/$libname.ver~
5446
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5451
_LT_TAGVAR(ld_shlibs, $1)=no
5456
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5457
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5460
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5461
_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'
5466
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5467
_LT_TAGVAR(ld_shlibs, $1)=no
5470
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5471
*** create shared libraries on Solaris systems. Therefore, libtool
5472
*** is disabling shared libraries support. We urge you to upgrade GNU
5473
*** binutils to release 2.9.1 or newer. Another option is to modify
5474
*** your PATH or compiler configuration so that the native linker is
5475
*** used, and then restart.
5478
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5479
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5480
_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'
5482
_LT_TAGVAR(ld_shlibs, $1)=no
5486
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5487
case `$LD -v 2>&1` in
5488
*\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5489
_LT_TAGVAR(ld_shlibs, $1)=no
5492
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5493
*** reliably create shared libraries on SCO systems. Therefore, libtool
5494
*** is disabling shared libraries support. We urge you to upgrade GNU
5495
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5496
*** your PATH or compiler configuration so that the native linker is
5497
*** used, and then restart.
5502
# For security reasons, it is highly recommended that you always
5503
# use absolute paths for naming shared libraries, and exclude the
5504
# DT_RUNPATH tag from executables and libraries. But doing so
5505
# requires that you compile everything twice, which is a pain.
5506
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5507
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5508
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5509
_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'
5511
_LT_TAGVAR(ld_shlibs, $1)=no
5518
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5520
_LT_TAGVAR(hardcode_direct, $1)=yes
5521
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5525
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5526
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5527
_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'
5529
_LT_TAGVAR(ld_shlibs, $1)=no
5534
if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5536
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5537
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5538
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5541
# PORTME fill in a description of your system's linker (not GNU ld)
5544
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5545
_LT_TAGVAR(always_export_symbols, $1)=yes
5546
_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'
5547
# Note: this linker hardcodes the directories in LIBPATH if there
5548
# are no directories specified by -L.
5549
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5550
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5551
# Neither direct hardcoding nor static linking is supported with a
5553
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5558
if test "$host_cpu" = ia64; then
5559
# On IA64, the linker does run time linking by default, so we don't
5560
# have to do anything special.
5561
aix_use_runtimelinking=no
5562
exp_sym_flag='-Bexport'
5565
# If we're using GNU nm, then we don't want the "-C" option.
5566
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5567
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5568
_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'
5570
_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'
5572
aix_use_runtimelinking=no
5574
# Test if we are trying to use run time linking or normal
5575
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
5576
# need to do runtime linking.
5577
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5578
for ld_flag in $LDFLAGS; do
5579
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5580
aix_use_runtimelinking=yes
5587
exp_sym_flag='-bexport'
5588
no_entry_flag='-bnoentry'
5591
# When large executables or shared objects are built, AIX ld can
5592
# have problems creating the table of contents. If linking a library
5593
# or program results in "error TOC overflow" add -mminimal-toc to
5594
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5595
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5597
_LT_TAGVAR(archive_cmds, $1)=''
5598
_LT_TAGVAR(hardcode_direct, $1)=yes
5599
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5600
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5601
_LT_TAGVAR(link_all_deplibs, $1)=yes
5602
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5604
if test "$GCC" = yes; then
5605
case $host_os in aix4.[[012]]|aix4.[[012]].*)
5606
# We only want to do this on AIX 4.2 and lower, the check
5607
# below for broken collect2 doesn't work under 4.3+
5608
collect2name=`${CC} -print-prog-name=collect2`
5609
if test -f "$collect2name" &&
5610
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5612
# We have reworked collect2
5615
# We have old collect2
5616
_LT_TAGVAR(hardcode_direct, $1)=unsupported
5617
# It fails to find uninstalled libraries when the uninstalled
5618
# path is not listed in the libpath. Setting hardcode_minus_L
5619
# to unsupported forces relinking
5620
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5621
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5622
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5626
shared_flag='-shared'
5627
if test "$aix_use_runtimelinking" = yes; then
5628
shared_flag="$shared_flag "'${wl}-G'
5632
if test "$host_cpu" = ia64; then
5633
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5634
# chokes on -Wl,-G. The following line is correct:
5637
if test "$aix_use_runtimelinking" = yes; then
5638
shared_flag='${wl}-G'
5640
shared_flag='${wl}-bM:SRE'
5645
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5646
# It seems that -bexpall does not export symbols beginning with
5647
# underscore (_), so it is better to generate a list of symbols to export.
5648
_LT_TAGVAR(always_export_symbols, $1)=yes
5649
if test "$aix_use_runtimelinking" = yes; then
5650
# Warning - without using the other runtime loading flags (-brtl),
5651
# -berok will link without error, but may produce a broken library.
5652
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5653
# Determine the default libpath from the value encoded in an
5655
_LT_SYS_MODULE_PATH_AIX
5656
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5657
_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"
5659
if test "$host_cpu" = ia64; then
5660
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5661
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5662
_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"
5664
# Determine the default libpath from the value encoded in an
5666
_LT_SYS_MODULE_PATH_AIX
5667
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5668
# Warning - without using the other run time loading flags,
5669
# -berok will link without error, but may produce a broken library.
5670
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5671
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5672
# Exported symbols can be pulled into shared objects from archives
5673
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5674
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5675
# This is similar to how AIX traditionally builds its shared libraries.
5676
_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'
5684
# see comment about AmigaOS4 .so support
5685
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5686
_LT_TAGVAR(archive_expsym_cmds, $1)=''
5689
_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)'
5690
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5691
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5697
_LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5700
cygwin* | mingw* | pw32* | cegcc*)
5701
# When not using gcc, we currently assume that we are using
5702
# Microsoft Visual C++.
5703
# hardcode_libdir_flag_spec is actually meaningless, as there is
5704
# no search path for DLLs.
5705
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5706
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5707
# Tell ltmain to make .lib files, not .a files.
5709
# Tell ltmain to make .dll files, not .so files.
5711
# FIXME: Setting linknames here is a bad hack.
5712
_LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5713
# The linker will automatically build a .lib file if we build a DLL.
5714
_LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5715
# FIXME: Should let the user specify the lib program.
5716
_LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5717
_LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5718
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5721
darwin* | rhapsody*)
5722
_LT_DARWIN_LINKER_FEATURES($1)
5726
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5727
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5728
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5732
_LT_TAGVAR(ld_shlibs, $1)=no
5735
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5736
# support. Future versions do this automatically, but an explicit c++rt0.o
5737
# does not break anything, and helps significantly (at the cost of a little
5740
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5741
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5742
_LT_TAGVAR(hardcode_direct, $1)=yes
5743
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5746
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
5748
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5749
_LT_TAGVAR(hardcode_direct, $1)=yes
5750
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5751
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5754
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5755
freebsd* | dragonfly*)
5756
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5757
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5758
_LT_TAGVAR(hardcode_direct, $1)=yes
5759
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5763
if test "$GCC" = yes; then
5764
_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'
5766
_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'
5768
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5769
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5770
_LT_TAGVAR(hardcode_direct, $1)=yes
5772
# hardcode_minus_L: Not really in the search PATH,
5773
# but as the default location of the library.
5774
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5775
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5779
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5780
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5782
_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5784
if test "$with_gnu_ld" = no; then
5785
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5786
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5787
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5788
_LT_TAGVAR(hardcode_direct, $1)=yes
5789
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5790
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5791
# hardcode_minus_L: Not really in the search PATH,
5792
# but as the default location of the library.
5793
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5798
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5801
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5804
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5807
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5813
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5816
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5819
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5823
if test "$with_gnu_ld" = no; then
5824
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5825
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5829
_LT_TAGVAR(hardcode_direct, $1)=no
5830
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5833
_LT_TAGVAR(hardcode_direct, $1)=yes
5834
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5835
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5837
# hardcode_minus_L: Not really in the search PATH,
5838
# but as the default location of the library.
5839
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5845
irix5* | irix6* | nonstopux*)
5846
if test "$GCC" = yes; then
5847
_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'
5848
# Try to use the -exported_symbol ld option, if it does not
5849
# work, assume that -exports_file does not work either and
5850
# implicitly export all symbols.
5851
save_LDFLAGS="$LDFLAGS"
5852
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5853
AC_LINK_IFELSE(int foo(void) {},
5854
_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'
5856
LDFLAGS="$save_LDFLAGS"
5858
_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'
5859
_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'
5861
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5862
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5863
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5864
_LT_TAGVAR(inherit_rpath, $1)=yes
5865
_LT_TAGVAR(link_all_deplibs, $1)=yes
5869
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5870
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5872
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5874
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5875
_LT_TAGVAR(hardcode_direct, $1)=yes
5876
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5880
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5881
_LT_TAGVAR(hardcode_direct, $1)=yes
5882
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5883
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5884
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5891
if test -f /usr/libexec/ld.so; then
5892
_LT_TAGVAR(hardcode_direct, $1)=yes
5893
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5894
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5895
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5896
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5897
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5898
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5899
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5902
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5903
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5904
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5907
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5908
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5913
_LT_TAGVAR(ld_shlibs, $1)=no
5918
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5919
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5920
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5921
_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'
5922
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5926
if test "$GCC" = yes; then
5927
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5928
_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'
5930
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5931
_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'
5933
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5934
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5935
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5938
osf4* | osf5*) # as osf3* with the addition of -msym flag
5939
if test "$GCC" = yes; then
5940
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5941
_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'
5942
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5944
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5945
_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'
5946
_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~
5947
$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'
5949
# Both c and cxx compiler support -rpath directly
5950
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5952
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5953
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5957
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5958
if test "$GCC" = yes; then
5960
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5961
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5962
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5964
case `$CC -V 2>&1` in
5967
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5968
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5969
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5973
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5974
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5975
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5979
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5980
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5982
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5984
# The compiler driver will combine and reorder linker options,
5985
# but understands `-z linker_flag'. GCC discards it without `$wl',
5986
# but is careful enough not to reorder.
5987
# Supported since Solaris 2.6 (maybe 2.5.1?)
5988
if test "$GCC" = yes; then
5989
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5991
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5995
_LT_TAGVAR(link_all_deplibs, $1)=yes
5999
if test "x$host_vendor" = xsequent; then
6000
# Use $CC to link under sequent, because it throws in some extra .o
6001
# files that make .init and .fini sections work.
6002
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6004
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6006
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6007
_LT_TAGVAR(hardcode_direct, $1)=yes
6008
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6009
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6013
case $host_vendor in
6015
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6016
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6019
## LD is ld it makes a PLAMLIB
6020
## CC just makes a GrossModule.
6021
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6022
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6023
_LT_TAGVAR(hardcode_direct, $1)=no
6026
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6027
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6030
runpath_var='LD_RUN_PATH'
6031
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6035
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6036
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6037
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6041
if test -d /usr/nec; then
6042
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6043
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6044
runpath_var=LD_RUN_PATH
6045
hardcode_runpath_var=yes
6046
_LT_TAGVAR(ld_shlibs, $1)=yes
6050
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6051
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6052
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6053
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6054
runpath_var='LD_RUN_PATH'
6056
if test "$GCC" = yes; then
6057
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6058
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6060
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6061
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6065
sysv5* | sco3.2v5* | sco5v6*)
6066
# Note: We can NOT use -z defs as we might desire, because we do not
6067
# link with -lc, and that would cause any symbols used from libc to
6068
# always be unresolved, which means just about no library would
6069
# ever link correctly. If we're not using GNU ld we use -z text
6070
# though, which does catch some bad symbols but isn't as heavy-handed
6072
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6073
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6074
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6075
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6076
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6077
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6078
_LT_TAGVAR(link_all_deplibs, $1)=yes
6079
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6080
runpath_var='LD_RUN_PATH'
6082
if test "$GCC" = yes; then
6083
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6084
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6086
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6087
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6092
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6093
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6094
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6098
_LT_TAGVAR(ld_shlibs, $1)=no
6102
if test x$host_vendor = xsni; then
6104
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6105
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
6111
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6112
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6114
_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6116
_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6117
_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6118
_LT_DECL([], [extract_expsyms_cmds], [2],
6119
[The commands to extract the exported symbol list from a shared archive])
6122
# Do we need to explicitly link libc?
6124
case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6126
# Assume -lc should be added
6127
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6129
if test "$enable_shared" = yes && test "$GCC" = yes; then
6130
case $_LT_TAGVAR(archive_cmds, $1) in
6132
# FIXME: we may have to deal with multi-command sequences.
6135
# Test whether the compiler implicitly links with -lc since on some
6136
# systems, -lgcc has to come before -lc. If gcc already passes -lc
6137
# to ld, don't add -lc before -lgcc.
6138
AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6140
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6142
if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6145
libobjs=conftest.$ac_objext
6147
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6148
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6154
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6155
_LT_TAGVAR(allow_undefined_flag, $1)=
6156
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6158
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6160
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6162
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6164
cat conftest.err 1>&5
6167
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6174
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6175
[Whether or not to add -lc for building shared libraries])
6176
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6177
[enable_shared_with_static_runtimes], [0],
6178
[Whether or not to disallow shared libs when runtime libs are static])
6179
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6180
[Compiler flag to allow reflexive dlopens])
6181
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6182
[Compiler flag to generate shared objects directly from archives])
6183
_LT_TAGDECL([], [compiler_needs_object], [1],
6184
[Whether the compiler copes with passing no objects directly])
6185
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6186
[Create an old-style archive from a shared archive])
6187
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6188
[Create a temporary old-style archive to link instead of a shared archive])
6189
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6190
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6191
_LT_TAGDECL([], [module_cmds], [2],
6192
[Commands used to build a loadable module if different from building
6194
_LT_TAGDECL([], [module_expsym_cmds], [2])
6195
_LT_TAGDECL([], [with_gnu_ld], [1],
6196
[Whether we are building with GNU ld or not])
6197
_LT_TAGDECL([], [allow_undefined_flag], [1],
6198
[Flag that allows shared libraries with undefined symbols to be built])
6199
_LT_TAGDECL([], [no_undefined_flag], [1],
6200
[Flag that enforces no undefined symbols])
6201
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6202
[Flag to hardcode $libdir into a binary during linking.
6203
This must work even if $libdir does not exist])
6204
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6205
[[If ld is used when linking, flag to hardcode $libdir into a binary
6206
during linking. This must work even if $libdir does not exist]])
6207
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6208
[Whether we need a single "-rpath" flag with a separated argument])
6209
_LT_TAGDECL([], [hardcode_direct], [0],
6210
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6211
DIR into the resulting binary])
6212
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6213
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6214
DIR into the resulting binary and the resulting library dependency is
6215
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6216
library is relocated])
6217
_LT_TAGDECL([], [hardcode_minus_L], [0],
6218
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6219
into the resulting binary])
6220
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6221
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6222
into the resulting binary])
6223
_LT_TAGDECL([], [hardcode_automatic], [0],
6224
[Set to "yes" if building a shared library automatically hardcodes DIR
6225
into the library and all subsequent libraries and executables linked
6227
_LT_TAGDECL([], [inherit_rpath], [0],
6228
[Set to yes if linker adds runtime paths of dependent libraries
6229
to runtime path list])
6230
_LT_TAGDECL([], [link_all_deplibs], [0],
6231
[Whether libtool must link a program against all its dependency libraries])
6232
_LT_TAGDECL([], [fix_srcfile_path], [1],
6233
[Fix the shell variable $srcfile for the compiler])
6234
_LT_TAGDECL([], [always_export_symbols], [0],
6235
[Set to "yes" if exported symbols are required])
6236
_LT_TAGDECL([], [export_symbols_cmds], [2],
6237
[The commands to list exported symbols])
6238
_LT_TAGDECL([], [exclude_expsyms], [1],
6239
[Symbols that should not be listed in the preloaded symbols])
6240
_LT_TAGDECL([], [include_expsyms], [1],
6241
[Symbols that must always be exported])
6242
_LT_TAGDECL([], [prelink_cmds], [2],
6243
[Commands necessary for linking programs (against libraries) with templates])
6244
_LT_TAGDECL([], [file_list_spec], [1],
6245
[Specify filename containing input files])
6246
dnl FIXME: Not yet implemented
6247
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6248
dnl [Compiler flag to generate thread safe objects])
6249
])# _LT_LINKER_SHLIBS
6252
# _LT_LANG_C_CONFIG([TAG])
6253
# ------------------------
6254
# Ensure that the configuration variables for a C compiler are suitably
6255
# defined. These variables are subsequently used by _LT_CONFIG to write
6256
# the compiler configuration to `libtool'.
6257
m4_defun([_LT_LANG_C_CONFIG],
6258
[m4_require([_LT_DECL_EGREP])dnl
6262
# Source file extension for C test sources.
6265
# Object file extension for compiled C test sources.
6267
_LT_TAGVAR(objext, $1)=$objext
6269
# Code to be used in simple compile tests
6270
lt_simple_compile_test_code="int some_variable = 0;"
6272
# Code to be used in simple link tests
6273
lt_simple_link_test_code='int main(){return(0);}'
6276
# Save the default compiler, since it gets overwritten when the other
6277
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6278
compiler_DEFAULT=$CC
6280
# save warnings/boilerplate of simple test code
6281
_LT_COMPILER_BOILERPLATE
6282
_LT_LINKER_BOILERPLATE
6284
if test -n "$compiler"; then
6285
_LT_COMPILER_NO_RTTI($1)
6286
_LT_COMPILER_PIC($1)
6287
_LT_COMPILER_C_O($1)
6288
_LT_COMPILER_FILE_LOCKS($1)
6289
_LT_LINKER_SHLIBS($1)
6290
_LT_SYS_DYNAMIC_LINKER($1)
6291
_LT_LINKER_HARDCODE_LIBPATH($1)
6295
# Report which library types will actually be built
6296
AC_MSG_CHECKING([if libtool supports shared libraries])
6297
AC_MSG_RESULT([$can_build_shared])
6299
AC_MSG_CHECKING([whether to build shared libraries])
6300
test "$can_build_shared" = "no" && enable_shared=no
6302
# On AIX, shared libraries and static libraries use the same namespace, and
6303
# are all built from PIC.
6306
test "$enable_shared" = yes && enable_static=no
6307
if test -n "$RANLIB"; then
6308
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6309
postinstall_cmds='$RANLIB $lib'
6314
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6315
test "$enable_shared" = yes && enable_static=no
6319
AC_MSG_RESULT([$enable_shared])
6321
AC_MSG_CHECKING([whether to build static libraries])
6322
# Make sure either enable_shared or enable_static is yes.
6323
test "$enable_shared" = yes || enable_static=yes
6324
AC_MSG_RESULT([$enable_static])
6330
])# _LT_LANG_C_CONFIG
6335
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6336
# compiler, we have our own version here.
6337
m4_defun([_LT_PROG_CXX],
6339
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6341
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6342
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6343
(test "X$CXX" != "Xg++"))) ; then
6346
_lt_caught_CXX_error=yes
6348
popdef([AC_MSG_ERROR])
6351
dnl aclocal-1.4 backwards compatibility:
6352
dnl AC_DEFUN([_LT_PROG_CXX], [])
6355
# _LT_LANG_CXX_CONFIG([TAG])
6356
# --------------------------
6357
# Ensure that the configuration variables for a C++ compiler are suitably
6358
# defined. These variables are subsequently used by _LT_CONFIG to write
6359
# the compiler configuration to `libtool'.
6360
m4_defun([_LT_LANG_CXX_CONFIG],
6361
[AC_REQUIRE([_LT_PROG_CXX])dnl
6362
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6363
m4_require([_LT_DECL_EGREP])dnl
6366
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6367
_LT_TAGVAR(allow_undefined_flag, $1)=
6368
_LT_TAGVAR(always_export_symbols, $1)=no
6369
_LT_TAGVAR(archive_expsym_cmds, $1)=
6370
_LT_TAGVAR(compiler_needs_object, $1)=no
6371
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6372
_LT_TAGVAR(hardcode_direct, $1)=no
6373
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6374
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6375
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6376
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6377
_LT_TAGVAR(hardcode_minus_L, $1)=no
6378
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6379
_LT_TAGVAR(hardcode_automatic, $1)=no
6380
_LT_TAGVAR(inherit_rpath, $1)=no
6381
_LT_TAGVAR(module_cmds, $1)=
6382
_LT_TAGVAR(module_expsym_cmds, $1)=
6383
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6384
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6385
_LT_TAGVAR(no_undefined_flag, $1)=
6386
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6387
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6389
# Source file extension for C++ test sources.
6392
# Object file extension for compiled C++ test sources.
6394
_LT_TAGVAR(objext, $1)=$objext
6396
# No sense in running all these tests if we already determined that
6397
# the CXX compiler isn't working. Some variables (like enable_shared)
6398
# are currently assumed to apply to all compilers on this platform,
6399
# and will be corrupted by setting them based on a non-working compiler.
6400
if test "$_lt_caught_CXX_error" != yes; then
6401
# Code to be used in simple compile tests
6402
lt_simple_compile_test_code="int some_variable = 0;"
6404
# Code to be used in simple link tests
6405
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6407
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6410
# save warnings/boilerplate of simple test code
6411
_LT_COMPILER_BOILERPLATE
6412
_LT_LINKER_BOILERPLATE
6414
# Allow CC to be a program name with arguments.
6419
lt_save_with_gnu_ld=$with_gnu_ld
6420
lt_save_path_LD=$lt_cv_path_LD
6421
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6422
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6424
$as_unset lt_cv_prog_gnu_ld
6426
if test -n "${lt_cv_path_LDCXX+set}"; then
6427
lt_cv_path_LD=$lt_cv_path_LDCXX
6429
$as_unset lt_cv_path_LD
6431
test -z "${LDCXX+set}" || LD=$LDCXX
6434
_LT_TAGVAR(compiler, $1)=$CC
6435
_LT_CC_BASENAME([$compiler])
6437
if test -n "$compiler"; then
6438
# We don't want -fno-exception when compiling C++ code, so set the
6439
# no_builtin_flag separately
6440
if test "$GXX" = yes; then
6441
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6443
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6446
if test "$GXX" = yes; then
6447
# Set up default GNU C++ configuration
6451
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6452
# archiving commands below assume that GNU ld is being used.
6453
if test "$with_gnu_ld" = yes; then
6454
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6455
_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'
6457
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6458
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6460
# If archive_cmds runs LD, not CC, wlarc should be empty
6461
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6462
# investigate it a little bit more. (MM)
6465
# ancient GNU ld didn't support --whole-archive et. al.
6466
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6467
$GREP 'no-whole-archive' > /dev/null; then
6468
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6470
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6476
# A generic and very simple default shared library creation
6477
# command for GNU C++ for the case where it uses the native
6478
# linker, instead of GNU ld. If possible, this setting should
6479
# overridden to take advantage of the native linker features on
6480
# the platform it is being used on.
6481
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6484
# Commands to make compiler produce verbose output that lists
6485
# what "hidden" libraries, object files and flags are used when
6486
# linking a shared library.
6487
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6495
# PORTME: fill in a description of your system's C++ link characteristics
6496
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6497
_LT_TAGVAR(ld_shlibs, $1)=yes
6500
# FIXME: insert proper C++ library support
6501
_LT_TAGVAR(ld_shlibs, $1)=no
6504
if test "$host_cpu" = ia64; then
6505
# On IA64, the linker does run time linking by default, so we don't
6506
# have to do anything special.
6507
aix_use_runtimelinking=no
6508
exp_sym_flag='-Bexport'
6511
aix_use_runtimelinking=no
6513
# Test if we are trying to use run time linking or normal
6514
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6515
# need to do runtime linking.
6516
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6517
for ld_flag in $LDFLAGS; do
6520
aix_use_runtimelinking=yes
6528
exp_sym_flag='-bexport'
6529
no_entry_flag='-bnoentry'
6532
# When large executables or shared objects are built, AIX ld can
6533
# have problems creating the table of contents. If linking a library
6534
# or program results in "error TOC overflow" add -mminimal-toc to
6535
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6536
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6538
_LT_TAGVAR(archive_cmds, $1)=''
6539
_LT_TAGVAR(hardcode_direct, $1)=yes
6540
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6541
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6542
_LT_TAGVAR(link_all_deplibs, $1)=yes
6543
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6545
if test "$GXX" = yes; then
6546
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6547
# We only want to do this on AIX 4.2 and lower, the check
6548
# below for broken collect2 doesn't work under 4.3+
6549
collect2name=`${CC} -print-prog-name=collect2`
6550
if test -f "$collect2name" &&
6551
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6553
# We have reworked collect2
6556
# We have old collect2
6557
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6558
# It fails to find uninstalled libraries when the uninstalled
6559
# path is not listed in the libpath. Setting hardcode_minus_L
6560
# to unsupported forces relinking
6561
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6562
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6563
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6566
shared_flag='-shared'
6567
if test "$aix_use_runtimelinking" = yes; then
6568
shared_flag="$shared_flag "'${wl}-G'
6572
if test "$host_cpu" = ia64; then
6573
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6574
# chokes on -Wl,-G. The following line is correct:
6577
if test "$aix_use_runtimelinking" = yes; then
6578
shared_flag='${wl}-G'
6580
shared_flag='${wl}-bM:SRE'
6585
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6586
# It seems that -bexpall does not export symbols beginning with
6587
# underscore (_), so it is better to generate a list of symbols to
6589
_LT_TAGVAR(always_export_symbols, $1)=yes
6590
if test "$aix_use_runtimelinking" = yes; then
6591
# Warning - without using the other runtime loading flags (-brtl),
6592
# -berok will link without error, but may produce a broken library.
6593
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6594
# Determine the default libpath from the value encoded in an empty
6596
_LT_SYS_MODULE_PATH_AIX
6597
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6599
_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"
6601
if test "$host_cpu" = ia64; then
6602
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6603
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6604
_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"
6606
# Determine the default libpath from the value encoded in an
6608
_LT_SYS_MODULE_PATH_AIX
6609
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6610
# Warning - without using the other run time loading flags,
6611
# -berok will link without error, but may produce a broken library.
6612
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6613
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6614
# Exported symbols can be pulled into shared objects from archives
6615
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6616
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6617
# This is similar to how AIX traditionally builds its shared
6619
_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'
6625
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6626
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6627
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6628
# support --undefined. This deserves some investigation. FIXME
6629
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6631
_LT_TAGVAR(ld_shlibs, $1)=no
6636
case $cc_basename in
6638
# FIXME: insert proper C++ library support
6639
_LT_TAGVAR(ld_shlibs, $1)=no
6644
cygwin* | mingw* | pw32* | cegcc*)
6645
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6646
# as there is no search path for DLLs.
6647
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6648
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6649
_LT_TAGVAR(always_export_symbols, $1)=no
6650
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6652
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6653
_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'
6654
# If the export-symbols file already is a .def file (1st line
6655
# is EXPORTS), use it as is; otherwise, prepend...
6656
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6657
cp $export_symbols $output_objdir/$soname.def;
6659
echo EXPORTS > $output_objdir/$soname.def;
6660
cat $export_symbols >> $output_objdir/$soname.def;
6662
$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'
6664
_LT_TAGVAR(ld_shlibs, $1)=no
6667
darwin* | rhapsody*)
6668
_LT_DARWIN_LINKER_FEATURES($1)
6672
case $cc_basename in
6674
# FIXME: insert proper C++ library support
6675
_LT_TAGVAR(ld_shlibs, $1)=no
6678
# Green Hills C++ Compiler
6679
# FIXME: insert proper C++ library support
6680
_LT_TAGVAR(ld_shlibs, $1)=no
6683
# FIXME: insert proper C++ library support
6684
_LT_TAGVAR(ld_shlibs, $1)=no
6690
# C++ shared libraries reported to be fairly broken before
6692
_LT_TAGVAR(ld_shlibs, $1)=no
6696
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6699
freebsd* | dragonfly*)
6700
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6702
_LT_TAGVAR(ld_shlibs, $1)=yes
6709
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6710
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6711
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6712
_LT_TAGVAR(hardcode_direct, $1)=yes
6713
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6714
# but as the default
6715
# location of the library.
6717
case $cc_basename in
6719
# FIXME: insert proper C++ library support
6720
_LT_TAGVAR(ld_shlibs, $1)=no
6723
_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'
6724
# Commands to make compiler produce verbose output that lists
6725
# what "hidden" libraries, object files and flags are used when
6726
# linking a shared library.
6728
# There doesn't appear to be a way to prevent this compiler from
6729
# explicitly linking system object files so we need to strip them
6730
# from the output so that they don't get included in the library
6732
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'
6735
if test "$GXX" = yes; then
6736
_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'
6738
# FIXME: insert proper C++ library support
6739
_LT_TAGVAR(ld_shlibs, $1)=no
6746
if test $with_gnu_ld = no; then
6747
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6748
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6754
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6760
_LT_TAGVAR(hardcode_direct, $1)=no
6761
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6764
_LT_TAGVAR(hardcode_direct, $1)=yes
6765
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6766
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6767
# but as the default
6768
# location of the library.
6772
case $cc_basename in
6774
# FIXME: insert proper C++ library support
6775
_LT_TAGVAR(ld_shlibs, $1)=no
6780
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6783
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6786
_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'
6789
# Commands to make compiler produce verbose output that lists
6790
# what "hidden" libraries, object files and flags are used when
6791
# linking a shared library.
6793
# There doesn't appear to be a way to prevent this compiler from
6794
# explicitly linking system object files so we need to strip them
6795
# from the output so that they don't get included in the library
6797
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'
6800
if test "$GXX" = yes; then
6801
if test $with_gnu_ld = no; then
6804
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6807
_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'
6810
_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'
6815
# FIXME: insert proper C++ library support
6816
_LT_TAGVAR(ld_shlibs, $1)=no
6823
_LT_TAGVAR(hardcode_direct, $1)=no
6824
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6825
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6826
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6827
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6828
# Instead, shared libraries are loaded at an image base (0x10000000 by
6829
# default) and relocated if they conflict, which is a slow very memory
6830
# consuming and fragmenting process. To avoid this, we pick a random,
6831
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6832
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6833
_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'
6834
_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'
6837
case $cc_basename in
6840
_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'
6842
# Archives containing C++ object files must be created using
6843
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6844
# necessary to make sure instantiated templates are included
6846
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6849
if test "$GXX" = yes; then
6850
if test "$with_gnu_ld" = no; then
6851
_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'
6853
_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'
6856
_LT_TAGVAR(link_all_deplibs, $1)=yes
6859
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6860
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6861
_LT_TAGVAR(inherit_rpath, $1)=yes
6864
linux* | k*bsd*-gnu)
6865
case $cc_basename in
6867
# Kuck and Associates, Inc. (KAI) C++ Compiler
6869
# KCC will only create a shared library if the output file
6870
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6871
# to its proper name (with version) after linking.
6872
_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'
6873
_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'
6874
# Commands to make compiler produce verbose output that lists
6875
# what "hidden" libraries, object files and flags are used when
6876
# linking a shared library.
6878
# There doesn't appear to be a way to prevent this compiler from
6879
# explicitly linking system object files so we need to strip them
6880
# from the output so that they don't get included in the library
6882
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'
6884
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6885
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6887
# Archives containing C++ object files must be created using
6888
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6889
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6894
# version 8.0 and above of icpc choke on multiply defined symbols
6895
# if we add $predep_objects and $postdep_objects, however 7.1 and
6896
# earlier do not add the objects themselves.
6897
case `$CC -V 2>&1` in
6899
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6900
_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'
6902
*) # Version 8.0 or newer
6905
ia64*) tmp_idyn=' -i_dynamic';;
6907
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6908
_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'
6911
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6912
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6913
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6914
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6917
# Portland Group C++ compiler
6919
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6920
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6922
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6923
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6924
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6926
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6927
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6929
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6931
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6932
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6933
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6935
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6936
$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'
6938
*) # Version 6 will use weak symbols
6939
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6940
_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'
6944
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6945
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6946
_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'
6950
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951
_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'
6953
runpath_var=LD_RUN_PATH
6954
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6955
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6957
# Commands to make compiler produce verbose output that lists
6958
# what "hidden" libraries, object files and flags are used when
6959
# linking a shared library.
6961
# There doesn't appear to be a way to prevent this compiler from
6962
# explicitly linking system object files so we need to strip them
6963
# from the output so that they don't get included in the library
6965
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'
6968
# IBM XL 8.0 on PPC, with GNU ld
6969
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6970
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6971
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6972
if test "x$supports_anon_versioning" = xyes; then
6973
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6974
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6975
echo "local: *; };" >> $output_objdir/$libname.ver~
6976
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6980
case `$CC -V 2>&1 | sed 5q` in
6983
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6984
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6985
_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'
6986
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6987
_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'
6988
_LT_TAGVAR(compiler_needs_object, $1)=yes
6990
# Not sure whether something based on
6991
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6993
output_verbose_link_cmd='echo'
6995
# Archives containing C++ object files must be created using
6996
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6997
# necessary to make sure instantiated templates are included
6999
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7007
# FIXME: insert proper C++ library support
7008
_LT_TAGVAR(ld_shlibs, $1)=no
7012
# FIXME: insert proper C++ library support
7013
_LT_TAGVAR(ld_shlibs, $1)=no
7017
case $cc_basename in
7019
# FIXME: insert proper C++ library support
7020
_LT_TAGVAR(ld_shlibs, $1)=no
7023
# FIXME: insert proper C++ library support
7024
_LT_TAGVAR(ld_shlibs, $1)=no
7030
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7031
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7033
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7034
_LT_TAGVAR(hardcode_direct, $1)=yes
7035
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7037
# Workaround some broken pre-1.5 toolchains
7038
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7042
_LT_TAGVAR(ld_shlibs, $1)=yes
7046
# C++ shared libraries are fairly broken
7047
_LT_TAGVAR(ld_shlibs, $1)=no
7051
if test -f /usr/libexec/ld.so; then
7052
_LT_TAGVAR(hardcode_direct, $1)=yes
7053
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7054
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7055
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7056
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7057
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7058
_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'
7059
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7060
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7062
output_verbose_link_cmd=echo
7064
_LT_TAGVAR(ld_shlibs, $1)=no
7068
osf3* | osf4* | osf5*)
7069
case $cc_basename in
7071
# Kuck and Associates, Inc. (KAI) C++ Compiler
7073
# KCC will only create a shared library if the output file
7074
# ends with ".so" (or ".sl" for HP-UX), so rename the library
7075
# to its proper name (with version) after linking.
7076
_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'
7078
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7079
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7081
# Archives containing C++ object files must be created using
7082
# the KAI C++ compiler.
7084
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7085
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7089
# Rational C++ 2.4.1
7090
# FIXME: insert proper C++ library support
7091
_LT_TAGVAR(ld_shlibs, $1)=no
7096
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7097
_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'
7098
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7101
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7102
_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'
7103
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7104
echo "-hidden">> $lib.exp~
7105
$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~
7107
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7111
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7113
# Commands to make compiler produce verbose output that lists
7114
# what "hidden" libraries, object files and flags are used when
7115
# linking a shared library.
7117
# There doesn't appear to be a way to prevent this compiler from
7118
# explicitly linking system object files so we need to strip them
7119
# from the output so that they don't get included in the library
7121
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'
7124
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7125
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7128
_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'
7131
_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'
7135
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7136
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7138
# Commands to make compiler produce verbose output that lists
7139
# what "hidden" libraries, object files and flags are used when
7140
# linking a shared library.
7141
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7144
# FIXME: insert proper C++ library support
7145
_LT_TAGVAR(ld_shlibs, $1)=no
7152
# FIXME: insert proper C++ library support
7153
_LT_TAGVAR(ld_shlibs, $1)=no
7157
case $cc_basename in
7160
# FIXME: insert proper C++ library support
7161
_LT_TAGVAR(ld_shlibs, $1)=no
7165
# FIXME: insert proper C++ library support
7166
_LT_TAGVAR(ld_shlibs, $1)=no
7169
# FIXME: insert proper C++ library support
7170
_LT_TAGVAR(ld_shlibs, $1)=no
7176
case $cc_basename in
7178
# Sun C++ 4.2, 5.x and Centerline C++
7179
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7180
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7181
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7182
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7183
$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'
7185
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7186
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7188
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7190
# The compiler driver will combine and reorder linker options,
7191
# but understands `-z linker_flag'.
7192
# Supported since Solaris 2.6 (maybe 2.5.1?)
7193
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7196
_LT_TAGVAR(link_all_deplibs, $1)=yes
7198
output_verbose_link_cmd='echo'
7200
# Archives containing C++ object files must be created using
7201
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7202
# necessary to make sure instantiated templates are included
7204
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7207
# Green Hills C++ Compiler
7208
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7210
# The C++ compiler must be used to create the archive.
7211
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7214
# GNU C++ compiler with Solaris linker
7215
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7216
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7217
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7218
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7219
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7220
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7222
# Commands to make compiler produce verbose output that lists
7223
# what "hidden" libraries, object files and flags are used when
7224
# linking a shared library.
7225
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7227
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7229
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7230
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7231
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7233
# Commands to make compiler produce verbose output that lists
7234
# what "hidden" libraries, object files and flags are used when
7235
# linking a shared library.
7236
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7239
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7241
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7243
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7251
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7252
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7253
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7254
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7255
runpath_var='LD_RUN_PATH'
7257
case $cc_basename in
7259
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7260
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7263
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7264
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7269
sysv5* | sco3.2v5* | sco5v6*)
7270
# Note: We can NOT use -z defs as we might desire, because we do not
7271
# link with -lc, and that would cause any symbols used from libc to
7272
# always be unresolved, which means just about no library would
7273
# ever link correctly. If we're not using GNU ld we use -z text
7274
# though, which does catch some bad symbols but isn't as heavy-handed
7276
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7277
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7278
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7279
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7280
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7281
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7282
_LT_TAGVAR(link_all_deplibs, $1)=yes
7283
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7284
runpath_var='LD_RUN_PATH'
7286
case $cc_basename in
7288
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7289
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7292
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7293
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7299
case $cc_basename in
7301
# NonStop-UX NCC 3.20
7302
# FIXME: insert proper C++ library support
7303
_LT_TAGVAR(ld_shlibs, $1)=no
7306
# FIXME: insert proper C++ library support
7307
_LT_TAGVAR(ld_shlibs, $1)=no
7313
# FIXME: insert proper C++ library support
7314
_LT_TAGVAR(ld_shlibs, $1)=no
7318
# FIXME: insert proper C++ library support
7319
_LT_TAGVAR(ld_shlibs, $1)=no
7323
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7324
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7326
_LT_TAGVAR(GCC, $1)="$GXX"
7327
_LT_TAGVAR(LD, $1)="$LD"
7330
## There is no encapsulation within the following macros, do not change
7331
## the running order or otherwise move them around unless you know exactly
7332
## what you are doing...
7333
_LT_SYS_HIDDEN_LIBDEPS($1)
7334
_LT_COMPILER_PIC($1)
7335
_LT_COMPILER_C_O($1)
7336
_LT_COMPILER_FILE_LOCKS($1)
7337
_LT_LINKER_SHLIBS($1)
7338
_LT_SYS_DYNAMIC_LINKER($1)
7339
_LT_LINKER_HARDCODE_LIBPATH($1)
7342
fi # test -n "$compiler"
7348
with_gnu_ld=$lt_save_with_gnu_ld
7349
lt_cv_path_LDCXX=$lt_cv_path_LD
7350
lt_cv_path_LD=$lt_save_path_LD
7351
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7352
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7353
fi # test "$_lt_caught_CXX_error" != yes
7356
])# _LT_LANG_CXX_CONFIG
7359
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7360
# ---------------------------------
7361
# Figure out "hidden" library dependencies from verbose
7362
# compiler output when linking a shared library.
7363
# Parse the compiler output and extract the necessary
7364
# objects, libraries and library flags.
7365
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7366
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7367
# Dependencies to place before and after the object being linked:
7368
_LT_TAGVAR(predep_objects, $1)=
7369
_LT_TAGVAR(postdep_objects, $1)=
7370
_LT_TAGVAR(predeps, $1)=
7371
_LT_TAGVAR(postdeps, $1)=
7372
_LT_TAGVAR(compiler_lib_search_path, $1)=
7374
dnl we can't use the lt_simple_compile_test_code here,
7375
dnl because it contains code intended for an executable,
7376
dnl not a library. It's possible we should let each
7377
dnl tag define a new lt_????_link_test_code variable,
7378
dnl but it's only used here...
7379
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7381
void foo (void) { a = 0; }
7383
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7387
Foo (void) { a = 0; }
7392
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7400
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7408
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7411
public void bar (void) {
7417
dnl Parse the compiler output and extract the necessary
7418
dnl objects, libraries and library flags.
7419
if AC_TRY_EVAL(ac_compile); then
7420
# Parse the compiler output and extract the necessary
7421
# objects, libraries and library flags.
7423
# Sentinel used to keep track of whether or not we are before
7424
# the conftest object file.
7425
pre_test_object_deps_done=no
7427
for p in `eval "$output_verbose_link_cmd"`; do
7431
# Some compilers place space between "-{L,R}" and the path.
7433
if test $p = "-L" ||
7434
test $p = "-R"; then
7441
if test "$pre_test_object_deps_done" = no; then
7444
# Internal compiler library paths should come after those
7445
# provided the user. The postdeps already come after the
7446
# user supplied libs so there is no need to process them.
7447
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7448
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7450
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7453
# The "-l" case would never come before the object being
7454
# linked, so don't bother handling this case.
7457
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7458
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7460
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7466
# This assumes that the test object file only shows up
7467
# once in the compiler output.
7468
if test "$p" = "conftest.$objext"; then
7469
pre_test_object_deps_done=yes
7473
if test "$pre_test_object_deps_done" = no; then
7474
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7475
_LT_TAGVAR(predep_objects, $1)="$p"
7477
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7480
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7481
_LT_TAGVAR(postdep_objects, $1)="$p"
7483
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7488
*) ;; # Ignore the rest.
7496
echo "libtool.m4: error: problem compiling $1 test program"
7499
$RM -f confest.$objext
7501
# PORTME: override above test on systems where it is broken
7505
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7506
# hack all around it, let's just trust "g++" to DTRT.
7507
_LT_TAGVAR(predep_objects,$1)=
7508
_LT_TAGVAR(postdep_objects,$1)=
7509
_LT_TAGVAR(postdeps,$1)=
7513
case `$CC -V 2>&1 | sed 5q` in
7517
# The more standards-conforming stlport4 library is
7518
# incompatible with the Cstd library. Avoid specifying
7519
# it if it's in CXXFLAGS. Ignore libCrun as
7520
# -library=stlport4 depends on it.
7521
case " $CXX $CXXFLAGS " in
7522
*" -library=stlport4 "*)
7523
solaris_use_stlport4=yes
7527
if test "$solaris_use_stlport4" != yes; then
7528
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7535
case $cc_basename in
7537
# The more standards-conforming stlport4 library is
7538
# incompatible with the Cstd library. Avoid specifying
7539
# it if it's in CXXFLAGS. Ignore libCrun as
7540
# -library=stlport4 depends on it.
7541
case " $CXX $CXXFLAGS " in
7542
*" -library=stlport4 "*)
7543
solaris_use_stlport4=yes
7547
# Adding this requires a known-good setup of shared libraries for
7548
# Sun compiler versions before 5.6, else PIC objects from an old
7549
# archive will be linked into the output, leading to subtle bugs.
7550
if test "$solaris_use_stlport4" != yes; then
7551
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7559
case " $_LT_TAGVAR(postdeps, $1) " in
7560
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7562
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7563
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7564
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7566
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7567
[The directories searched by this compiler when creating a shared library])
7568
_LT_TAGDECL([], [predep_objects], [1],
7569
[Dependencies to place before and after the objects being linked to
7570
create a shared library])
7571
_LT_TAGDECL([], [postdep_objects], [1])
7572
_LT_TAGDECL([], [predeps], [1])
7573
_LT_TAGDECL([], [postdeps], [1])
7574
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7575
[The library search path used internally by the compiler when linking
7577
])# _LT_SYS_HIDDEN_LIBDEPS
7582
# Since AC_PROG_F77 is broken, in that it returns the empty string
7583
# if there is no fortran compiler, we have our own version here.
7584
m4_defun([_LT_PROG_F77],
7586
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7588
if test -z "$F77" || test "X$F77" = "Xno"; then
7591
popdef([AC_MSG_ERROR])
7594
dnl aclocal-1.4 backwards compatibility:
7595
dnl AC_DEFUN([_LT_PROG_F77], [])
7598
# _LT_LANG_F77_CONFIG([TAG])
7599
# --------------------------
7600
# Ensure that the configuration variables for a Fortran 77 compiler are
7601
# suitably defined. These variables are subsequently used by _LT_CONFIG
7602
# to write the compiler configuration to `libtool'.
7603
m4_defun([_LT_LANG_F77_CONFIG],
7604
[AC_REQUIRE([_LT_PROG_F77])dnl
7605
AC_LANG_PUSH(Fortran 77)
7607
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7608
_LT_TAGVAR(allow_undefined_flag, $1)=
7609
_LT_TAGVAR(always_export_symbols, $1)=no
7610
_LT_TAGVAR(archive_expsym_cmds, $1)=
7611
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7612
_LT_TAGVAR(hardcode_direct, $1)=no
7613
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7614
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7615
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7616
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7617
_LT_TAGVAR(hardcode_minus_L, $1)=no
7618
_LT_TAGVAR(hardcode_automatic, $1)=no
7619
_LT_TAGVAR(inherit_rpath, $1)=no
7620
_LT_TAGVAR(module_cmds, $1)=
7621
_LT_TAGVAR(module_expsym_cmds, $1)=
7622
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7623
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7624
_LT_TAGVAR(no_undefined_flag, $1)=
7625
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7626
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7628
# Source file extension for f77 test sources.
7631
# Object file extension for compiled f77 test sources.
7633
_LT_TAGVAR(objext, $1)=$objext
7635
# No sense in running all these tests if we already determined that
7636
# the F77 compiler isn't working. Some variables (like enable_shared)
7637
# are currently assumed to apply to all compilers on this platform,
7638
# and will be corrupted by setting them based on a non-working compiler.
7639
if test "$_lt_disable_F77" != yes; then
7640
# Code to be used in simple compile tests
7641
lt_simple_compile_test_code="\
7647
# Code to be used in simple link tests
7648
lt_simple_link_test_code="\
7653
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7656
# save warnings/boilerplate of simple test code
7657
_LT_COMPILER_BOILERPLATE
7658
_LT_LINKER_BOILERPLATE
7660
# Allow CC to be a program name with arguments.
7665
_LT_TAGVAR(compiler, $1)=$CC
7666
_LT_CC_BASENAME([$compiler])
7668
if test -n "$compiler"; then
7669
AC_MSG_CHECKING([if libtool supports shared libraries])
7670
AC_MSG_RESULT([$can_build_shared])
7672
AC_MSG_CHECKING([whether to build shared libraries])
7673
test "$can_build_shared" = "no" && enable_shared=no
7675
# On AIX, shared libraries and static libraries use the same namespace, and
7676
# are all built from PIC.
7679
test "$enable_shared" = yes && enable_static=no
7680
if test -n "$RANLIB"; then
7681
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7682
postinstall_cmds='$RANLIB $lib'
7686
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7687
test "$enable_shared" = yes && enable_static=no
7691
AC_MSG_RESULT([$enable_shared])
7693
AC_MSG_CHECKING([whether to build static libraries])
7694
# Make sure either enable_shared or enable_static is yes.
7695
test "$enable_shared" = yes || enable_static=yes
7696
AC_MSG_RESULT([$enable_static])
7698
_LT_TAGVAR(GCC, $1)="$G77"
7699
_LT_TAGVAR(LD, $1)="$LD"
7702
## There is no encapsulation within the following macros, do not change
7703
## the running order or otherwise move them around unless you know exactly
7704
## what you are doing...
7705
_LT_COMPILER_PIC($1)
7706
_LT_COMPILER_C_O($1)
7707
_LT_COMPILER_FILE_LOCKS($1)
7708
_LT_LINKER_SHLIBS($1)
7709
_LT_SYS_DYNAMIC_LINKER($1)
7710
_LT_LINKER_HARDCODE_LIBPATH($1)
7713
fi # test -n "$compiler"
7717
fi # test "$_lt_disable_F77" != yes
7720
])# _LT_LANG_F77_CONFIG
7725
# Since AC_PROG_FC is broken, in that it returns the empty string
7726
# if there is no fortran compiler, we have our own version here.
7727
m4_defun([_LT_PROG_FC],
7729
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7731
if test -z "$FC" || test "X$FC" = "Xno"; then
7734
popdef([AC_MSG_ERROR])
7737
dnl aclocal-1.4 backwards compatibility:
7738
dnl AC_DEFUN([_LT_PROG_FC], [])
7741
# _LT_LANG_FC_CONFIG([TAG])
7742
# -------------------------
7743
# Ensure that the configuration variables for a Fortran compiler are
7744
# suitably defined. These variables are subsequently used by _LT_CONFIG
7745
# to write the compiler configuration to `libtool'.
7746
m4_defun([_LT_LANG_FC_CONFIG],
7747
[AC_REQUIRE([_LT_PROG_FC])dnl
7748
AC_LANG_PUSH(Fortran)
7750
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7751
_LT_TAGVAR(allow_undefined_flag, $1)=
7752
_LT_TAGVAR(always_export_symbols, $1)=no
7753
_LT_TAGVAR(archive_expsym_cmds, $1)=
7754
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7755
_LT_TAGVAR(hardcode_direct, $1)=no
7756
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7757
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7758
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7759
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7760
_LT_TAGVAR(hardcode_minus_L, $1)=no
7761
_LT_TAGVAR(hardcode_automatic, $1)=no
7762
_LT_TAGVAR(inherit_rpath, $1)=no
7763
_LT_TAGVAR(module_cmds, $1)=
7764
_LT_TAGVAR(module_expsym_cmds, $1)=
7765
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7766
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7767
_LT_TAGVAR(no_undefined_flag, $1)=
7768
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7769
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7771
# Source file extension for fc test sources.
7772
ac_ext=${ac_fc_srcext-f}
7774
# Object file extension for compiled fc test sources.
7776
_LT_TAGVAR(objext, $1)=$objext
7778
# No sense in running all these tests if we already determined that
7779
# the FC compiler isn't working. Some variables (like enable_shared)
7780
# are currently assumed to apply to all compilers on this platform,
7781
# and will be corrupted by setting them based on a non-working compiler.
7782
if test "$_lt_disable_FC" != yes; then
7783
# Code to be used in simple compile tests
7784
lt_simple_compile_test_code="\
7790
# Code to be used in simple link tests
7791
lt_simple_link_test_code="\
7796
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7799
# save warnings/boilerplate of simple test code
7800
_LT_COMPILER_BOILERPLATE
7801
_LT_LINKER_BOILERPLATE
7803
# Allow CC to be a program name with arguments.
7808
GCC=$ac_cv_fc_compiler_gnu
7810
_LT_TAGVAR(compiler, $1)=$CC
7811
_LT_CC_BASENAME([$compiler])
7813
if test -n "$compiler"; then
7814
AC_MSG_CHECKING([if libtool supports shared libraries])
7815
AC_MSG_RESULT([$can_build_shared])
7817
AC_MSG_CHECKING([whether to build shared libraries])
7818
test "$can_build_shared" = "no" && enable_shared=no
7820
# On AIX, shared libraries and static libraries use the same namespace, and
7821
# are all built from PIC.
7824
test "$enable_shared" = yes && enable_static=no
7825
if test -n "$RANLIB"; then
7826
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7827
postinstall_cmds='$RANLIB $lib'
7831
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7832
test "$enable_shared" = yes && enable_static=no
7836
AC_MSG_RESULT([$enable_shared])
7838
AC_MSG_CHECKING([whether to build static libraries])
7839
# Make sure either enable_shared or enable_static is yes.
7840
test "$enable_shared" = yes || enable_static=yes
7841
AC_MSG_RESULT([$enable_static])
7843
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7844
_LT_TAGVAR(LD, $1)="$LD"
7847
## There is no encapsulation within the following macros, do not change
7848
## the running order or otherwise move them around unless you know exactly
7849
## what you are doing...
7850
_LT_SYS_HIDDEN_LIBDEPS($1)
7851
_LT_COMPILER_PIC($1)
7852
_LT_COMPILER_C_O($1)
7853
_LT_COMPILER_FILE_LOCKS($1)
7854
_LT_LINKER_SHLIBS($1)
7855
_LT_SYS_DYNAMIC_LINKER($1)
7856
_LT_LINKER_HARDCODE_LIBPATH($1)
7859
fi # test -n "$compiler"
7863
fi # test "$_lt_disable_FC" != yes
7866
])# _LT_LANG_FC_CONFIG
7869
# _LT_LANG_GCJ_CONFIG([TAG])
7870
# --------------------------
7871
# Ensure that the configuration variables for the GNU Java Compiler compiler
7872
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7873
# to write the compiler configuration to `libtool'.
7874
m4_defun([_LT_LANG_GCJ_CONFIG],
7875
[AC_REQUIRE([LT_PROG_GCJ])dnl
7878
# Source file extension for Java test sources.
7881
# Object file extension for compiled Java test sources.
7883
_LT_TAGVAR(objext, $1)=$objext
7885
# Code to be used in simple compile tests
7886
lt_simple_compile_test_code="class foo {}"
7888
# Code to be used in simple link tests
7889
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7891
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7894
# save warnings/boilerplate of simple test code
7895
_LT_COMPILER_BOILERPLATE
7896
_LT_LINKER_BOILERPLATE
7898
# Allow CC to be a program name with arguments.
7904
_LT_TAGVAR(compiler, $1)=$CC
7905
_LT_TAGVAR(LD, $1)="$LD"
7906
_LT_CC_BASENAME([$compiler])
7908
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7909
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7911
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7913
if test -n "$compiler"; then
7914
_LT_COMPILER_NO_RTTI($1)
7915
_LT_COMPILER_PIC($1)
7916
_LT_COMPILER_C_O($1)
7917
_LT_COMPILER_FILE_LOCKS($1)
7918
_LT_LINKER_SHLIBS($1)
7919
_LT_LINKER_HARDCODE_LIBPATH($1)
7928
])# _LT_LANG_GCJ_CONFIG
7931
# _LT_LANG_RC_CONFIG([TAG])
7932
# -------------------------
7933
# Ensure that the configuration variables for the Windows resource compiler
7934
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7935
# to write the compiler configuration to `libtool'.
7936
m4_defun([_LT_LANG_RC_CONFIG],
7937
[AC_REQUIRE([LT_PROG_RC])dnl
7940
# Source file extension for RC test sources.
7943
# Object file extension for compiled RC test sources.
7945
_LT_TAGVAR(objext, $1)=$objext
7947
# Code to be used in simple compile tests
7948
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7950
# Code to be used in simple link tests
7951
lt_simple_link_test_code="$lt_simple_compile_test_code"
7953
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7956
# save warnings/boilerplate of simple test code
7957
_LT_COMPILER_BOILERPLATE
7958
_LT_LINKER_BOILERPLATE
7960
# Allow CC to be a program name with arguments.
7966
_LT_TAGVAR(compiler, $1)=$CC
7967
_LT_CC_BASENAME([$compiler])
7968
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7970
if test -n "$compiler"; then
7978
])# _LT_LANG_RC_CONFIG
7983
AC_DEFUN([LT_PROG_GCJ],
7984
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7985
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7986
[AC_CHECK_TOOL(GCJ, gcj,)
7987
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7988
AC_SUBST(GCJFLAGS)])])[]dnl
7992
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7993
dnl aclocal-1.4 backwards compatibility:
7994
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7999
AC_DEFUN([LT_PROG_RC],
8000
[AC_CHECK_TOOL(RC, windres,)
8004
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8005
dnl aclocal-1.4 backwards compatibility:
8006
dnl AC_DEFUN([LT_AC_PROG_RC], [])
8011
# If we don't have a new enough Autoconf to choose the best grep
8012
# available, choose the one first in the user's PATH.
8013
m4_defun([_LT_DECL_EGREP],
8014
[AC_REQUIRE([AC_PROG_EGREP])dnl
8015
AC_REQUIRE([AC_PROG_FGREP])dnl
8016
test -z "$GREP" && GREP=grep
8017
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8018
_LT_DECL([], [EGREP], [1], [An ERE matcher])
8019
_LT_DECL([], [FGREP], [1], [A literal string matcher])
8020
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8027
# If we don't have a new enough Autoconf to choose the best objdump
8028
# available, choose the one first in the user's PATH.
8029
m4_defun([_LT_DECL_OBJDUMP],
8030
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
8031
test -z "$OBJDUMP" && OBJDUMP=objdump
8032
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8039
# Check for a fully-functional sed program, that truncates
8040
# as few characters as possible. Prefer GNU sed if found.
8041
m4_defun([_LT_DECL_SED],
8043
test -z "$SED" && SED=sed
8044
Xsed="$SED -e 1s/^X//"
8045
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8046
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8047
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
8050
m4_ifndef([AC_PROG_SED], [
8051
# NOTE: This macro has been submitted for inclusion into #
8052
# GNU Autoconf as AC_PROG_SED. When it is available in #
8053
# a released version of Autoconf we should remove this #
8054
# macro and use it instead. #
8056
m4_defun([AC_PROG_SED],
8057
[AC_MSG_CHECKING([for a sed that does not truncate output])
8058
AC_CACHE_VAL(lt_cv_path_SED,
8059
[# Loop through the user's path and test for sed and gsed.
8060
# Then use that list of sed's as ones to test for truncation.
8061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065
test -z "$as_dir" && as_dir=.
8066
for lt_ac_prog in sed gsed; do
8067
for ac_exec_ext in '' $ac_executable_extensions; do
8068
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8069
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8077
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8078
# along with /bin/sed that truncates output.
8079
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8080
test ! -f $lt_ac_sed && continue
8081
cat /dev/null > conftest.in
8083
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8084
# Check for GNU sed and select it if it is found.
8085
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8086
lt_cv_path_SED=$lt_ac_sed
8090
cat conftest.in conftest.in >conftest.tmp
8091
mv conftest.tmp conftest.in
8092
cp conftest.in conftest.nl
8094
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8095
cmp -s conftest.out conftest.nl || break
8096
# 10000 chars as input seems more than enough
8097
test $lt_ac_count -gt 10 && break
8098
lt_ac_count=`expr $lt_ac_count + 1`
8099
if test $lt_ac_count -gt $lt_ac_max; then
8100
lt_ac_max=$lt_ac_count
8101
lt_cv_path_SED=$lt_ac_sed
8108
AC_MSG_RESULT([$SED])
8113
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8114
dnl aclocal-1.4 backwards compatibility:
8115
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8118
# _LT_CHECK_SHELL_FEATURES
8119
# ------------------------
8120
# Find out whether the shell is Bourne or XSI compatible,
8121
# or has some other useful features.
8122
m4_defun([_LT_CHECK_SHELL_FEATURES],
8123
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8124
# Try some XSI features
8127
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8129
&& eval 'test $(( 1 + 1 )) -eq 2 \
8130
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8132
AC_MSG_RESULT([$xsi_shell])
8133
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8135
AC_MSG_CHECKING([whether the shell understands "+="])
8137
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8139
&& lt_shell_append=yes
8140
AC_MSG_RESULT([$lt_shell_append])
8141
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8143
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8148
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8150
# test EBCDIC or ASCII
8151
case `echo X|tr X '\101'` in
8152
A) # ASCII based system
8153
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8154
lt_SP2NL='tr \040 \012'
8155
lt_NL2SP='tr \015\012 \040\040'
8157
*) # EBCDIC based system
8158
lt_SP2NL='tr \100 \n'
8159
lt_NL2SP='tr \r\n \100\100'
8162
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8163
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8164
])# _LT_CHECK_SHELL_FEATURES
8167
# _LT_PROG_XSI_SHELLFNS
8168
# ---------------------
8169
# Bourne and XSI compatible variants of some useful shell functions.
8170
m4_defun([_LT_PROG_XSI_SHELLFNS],
8173
cat << \_LT_EOF >> "$cfgfile"
8175
# func_dirname file append nondir_replacement
8176
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8177
# otherwise set result to NONDIR_REPLACEMENT.
8181
*/*) func_dirname_result="${1%/*}${2}" ;;
8182
* ) func_dirname_result="${3}" ;;
8186
# func_basename file
8189
func_basename_result="${1##*/}"
8192
# func_dirname_and_basename file append nondir_replacement
8193
# perform func_basename and func_dirname in a single function
8195
# dirname: Compute the dirname of FILE. If nonempty,
8196
# add APPEND to the result, otherwise set result
8197
# to NONDIR_REPLACEMENT.
8198
# value returned in "$func_dirname_result"
8199
# basename: Compute filename of FILE.
8200
# value retuned in "$func_basename_result"
8201
# Implementation must be kept synchronized with func_dirname
8202
# and func_basename. For efficiency, we do not delegate to
8203
# those functions but instead duplicate the functionality here.
8204
func_dirname_and_basename ()
8207
*/*) func_dirname_result="${1%/*}${2}" ;;
8208
* ) func_dirname_result="${3}" ;;
8210
func_basename_result="${1##*/}"
8213
# func_stripname prefix suffix name
8214
# strip PREFIX and SUFFIX off of NAME.
8215
# PREFIX and SUFFIX must not contain globbing or regex special
8216
# characters, hashes, percent signs, but SUFFIX may contain a leading
8217
# dot (in which case that matches only a dot).
8220
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8221
# positional parameters, so assign one to ordinary parameter first.
8222
func_stripname_result=${3}
8223
func_stripname_result=${func_stripname_result#"${1}"}
8224
func_stripname_result=${func_stripname_result%"${2}"}
8230
func_opt_split_opt=${1%%=*}
8231
func_opt_split_arg=${1#*=}
8238
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8239
*) func_lo2o_result=${1} ;;
8243
# func_xform libobj-or-source
8246
func_xform_result=${1%.*}.lo
8249
# func_arith arithmetic-term...
8252
func_arith_result=$(( $[*] ))
8256
# STRING may not start with a hyphen.
8259
func_len_result=${#1}
8264
*) # Bourne compatible functions.
8265
cat << \_LT_EOF >> "$cfgfile"
8267
# func_dirname file append nondir_replacement
8268
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8269
# otherwise set result to NONDIR_REPLACEMENT.
8272
# Extract subdirectory from the argument.
8273
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8274
if test "X$func_dirname_result" = "X${1}"; then
8275
func_dirname_result="${3}"
8277
func_dirname_result="$func_dirname_result${2}"
8281
# func_basename file
8284
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8287
dnl func_dirname_and_basename
8288
dnl A portable version of this function is already defined in general.m4sh
8289
dnl so there is no need for it here.
8291
# func_stripname prefix suffix name
8292
# strip PREFIX and SUFFIX off of NAME.
8293
# PREFIX and SUFFIX must not contain globbing or regex special
8294
# characters, hashes, percent signs, but SUFFIX may contain a leading
8295
# dot (in which case that matches only a dot).
8296
# func_strip_suffix prefix name
8300
.*) func_stripname_result=`$ECHO "X${3}" \
8301
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8302
*) func_stripname_result=`$ECHO "X${3}" \
8303
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8308
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8309
my_sed_long_arg='1s/^-[[^=]]*=//'
8314
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8315
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8321
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8324
# func_xform libobj-or-source
8327
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8330
# func_arith arithmetic-term...
8333
func_arith_result=`expr "$[@]"`
8337
# STRING may not start with a hyphen.
8340
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8346
case $lt_shell_append in
8348
cat << \_LT_EOF >> "$cfgfile"
8350
# func_append var value
8351
# Append VALUE to the end of shell variable VAR.
8359
cat << \_LT_EOF >> "$cfgfile"
8361
# func_append var value
8362
# Append VALUE to the end of shell variable VAR.
8365
eval "$[1]=\$$[1]\$[2]"
8373
# Helper functions for option handling. -*- Autoconf -*-
8375
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8376
# Written by Gary V. Vaughan, 2004
8378
# This file is free software; the Free Software Foundation gives
8379
# unlimited permission to copy and/or distribute it, with or without
8380
# modifications, as long as this notice is preserved.
8382
# serial 6 ltoptions.m4
8384
# This is to help aclocal find these macros, as it can't see m4_define.
8385
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8388
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8389
# ------------------------------------------
8390
m4_define([_LT_MANGLE_OPTION],
8391
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8394
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8395
# ---------------------------------------
8396
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8397
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8399
m4_define([_LT_SET_OPTION],
8400
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8401
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8402
_LT_MANGLE_DEFUN([$1], [$2]),
8403
[m4_warning([Unknown $1 option `$2'])])[]dnl
8407
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8408
# ------------------------------------------------------------
8409
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8410
m4_define([_LT_IF_OPTION],
8411
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8414
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8415
# -------------------------------------------------------
8416
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8418
m4_define([_LT_UNLESS_OPTIONS],
8419
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8420
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8421
[m4_define([$0_found])])])[]dnl
8422
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8427
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8428
# ----------------------------------------
8429
# OPTION-LIST is a space-separated list of Libtool options associated
8430
# with MACRO-NAME. If any OPTION has a matching handler declared with
8431
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8432
# the unknown option and exit.
8433
m4_defun([_LT_SET_OPTIONS],
8435
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8436
[_LT_SET_OPTION([$1], _LT_Option)])
8438
m4_if([$1],[LT_INIT],[
8440
dnl Simply set some default values (i.e off) if boolean options were not
8442
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8444
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8447
dnl If no reference was made to various pairs of opposing options, then
8448
dnl we run the default mode handler for the pair. For example, if neither
8449
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8450
dnl archives by default:
8451
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8452
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8453
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8454
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8455
[_LT_ENABLE_FAST_INSTALL])
8461
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8462
# -----------------------------------------
8463
m4_define([_LT_MANGLE_DEFUN],
8464
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8467
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8468
# -----------------------------------------------
8469
m4_define([LT_OPTION_DEFINE],
8470
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8471
])# LT_OPTION_DEFINE
8476
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8479
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8480
[_LT_SET_OPTION([LT_INIT], [dlopen])
8481
AC_DIAGNOSE([obsolete],
8482
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8483
put the `dlopen' option into LT_INIT's first parameter.])
8486
dnl aclocal-1.4 backwards compatibility:
8487
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8492
# Declare package support for building win32 dll's.
8493
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8494
[enable_win32_dll=yes
8497
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8498
AC_CHECK_TOOL(AS, as, false)
8499
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8500
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8504
test -z "$AS" && AS=as
8505
_LT_DECL([], [AS], [0], [Assembler program])dnl
8507
test -z "$DLLTOOL" && DLLTOOL=dlltool
8508
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8510
test -z "$OBJDUMP" && OBJDUMP=objdump
8511
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8514
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8515
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8516
_LT_SET_OPTION([LT_INIT], [win32-dll])
8517
AC_DIAGNOSE([obsolete],
8518
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8519
put the `win32-dll' option into LT_INIT's first parameter.])
8522
dnl aclocal-1.4 backwards compatibility:
8523
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8526
# _LT_ENABLE_SHARED([DEFAULT])
8527
# ----------------------------
8528
# implement the --enable-shared flag, and supports the `shared' and
8529
# `disable-shared' LT_INIT options.
8530
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8531
m4_define([_LT_ENABLE_SHARED],
8532
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8533
AC_ARG_ENABLE([shared],
8534
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8535
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8536
[p=${PACKAGE-default}
8538
yes) enable_shared=yes ;;
8539
no) enable_shared=no ;;
8542
# Look at the argument we got. We use all the common list separators.
8543
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8544
for pkg in $enableval; do
8546
if test "X$pkg" = "X$p"; then
8553
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8555
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8556
[Whether or not to build shared libraries])
8557
])# _LT_ENABLE_SHARED
8559
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8560
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8563
AC_DEFUN([AC_ENABLE_SHARED],
8564
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8567
AC_DEFUN([AC_DISABLE_SHARED],
8568
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8571
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8572
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8574
dnl aclocal-1.4 backwards compatibility:
8575
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8576
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8580
# _LT_ENABLE_STATIC([DEFAULT])
8581
# ----------------------------
8582
# implement the --enable-static flag, and support the `static' and
8583
# `disable-static' LT_INIT options.
8584
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8585
m4_define([_LT_ENABLE_STATIC],
8586
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8587
AC_ARG_ENABLE([static],
8588
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8589
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8590
[p=${PACKAGE-default}
8592
yes) enable_static=yes ;;
8593
no) enable_static=no ;;
8596
# Look at the argument we got. We use all the common list separators.
8597
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8598
for pkg in $enableval; do
8600
if test "X$pkg" = "X$p"; then
8607
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8609
_LT_DECL([build_old_libs], [enable_static], [0],
8610
[Whether or not to build static libraries])
8611
])# _LT_ENABLE_STATIC
8613
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8614
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8617
AC_DEFUN([AC_ENABLE_STATIC],
8618
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8621
AC_DEFUN([AC_DISABLE_STATIC],
8622
[_LT_SET_OPTION([LT_INIT], [disable-static])
8625
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8626
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8628
dnl aclocal-1.4 backwards compatibility:
8629
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8630
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8634
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8635
# ----------------------------------
8636
# implement the --enable-fast-install flag, and support the `fast-install'
8637
# and `disable-fast-install' LT_INIT options.
8638
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8639
m4_define([_LT_ENABLE_FAST_INSTALL],
8640
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8641
AC_ARG_ENABLE([fast-install],
8642
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8643
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8644
[p=${PACKAGE-default}
8646
yes) enable_fast_install=yes ;;
8647
no) enable_fast_install=no ;;
8649
enable_fast_install=no
8650
# Look at the argument we got. We use all the common list separators.
8651
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8652
for pkg in $enableval; do
8654
if test "X$pkg" = "X$p"; then
8655
enable_fast_install=yes
8661
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8663
_LT_DECL([fast_install], [enable_fast_install], [0],
8664
[Whether or not to optimize for fast installation])dnl
8665
])# _LT_ENABLE_FAST_INSTALL
8667
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8668
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8671
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8672
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8673
AC_DIAGNOSE([obsolete],
8674
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8675
the `fast-install' option into LT_INIT's first parameter.])
8678
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8679
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8680
AC_DIAGNOSE([obsolete],
8681
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8682
the `disable-fast-install' option into LT_INIT's first parameter.])
8685
dnl aclocal-1.4 backwards compatibility:
8686
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8687
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8690
# _LT_WITH_PIC([MODE])
8691
# --------------------
8692
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8694
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8695
m4_define([_LT_WITH_PIC],
8697
[AS_HELP_STRING([--with-pic],
8698
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8699
[pic_mode="$withval"],
8702
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8704
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8707
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8708
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8711
AU_DEFUN([AC_LIBTOOL_PICMODE],
8712
[_LT_SET_OPTION([LT_INIT], [pic-only])
8713
AC_DIAGNOSE([obsolete],
8714
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8715
put the `pic-only' option into LT_INIT's first parameter.])
8718
dnl aclocal-1.4 backwards compatibility:
8719
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8722
m4_define([_LTDL_MODE], [])
8723
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8724
[m4_define([_LTDL_MODE], [nonrecursive])])
8725
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8726
[m4_define([_LTDL_MODE], [recursive])])
8727
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8728
[m4_define([_LTDL_MODE], [subproject])])
8730
m4_define([_LTDL_TYPE], [])
8731
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8732
[m4_define([_LTDL_TYPE], [installable])])
8733
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8734
[m4_define([_LTDL_TYPE], [convenience])])
8736
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8738
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8739
# Written by Gary V. Vaughan, 2004
8741
# This file is free software; the Free Software Foundation gives
8742
# unlimited permission to copy and/or distribute it, with or without
8743
# modifications, as long as this notice is preserved.
8745
# serial 6 ltsugar.m4
8747
# This is to help aclocal find these macros, as it can't see m4_define.
8748
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8751
# lt_join(SEP, ARG1, [ARG2...])
8752
# -----------------------------
8753
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8754
# associated separator.
8755
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8756
# versions in m4sugar had bugs.
8757
m4_define([lt_join],
8758
[m4_if([$#], [1], [],
8760
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8761
m4_define([_lt_join],
8762
[m4_if([$#$2], [2], [],
8763
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8769
# Manipulate m4 lists.
8770
# These macros are necessary as long as will still need to support
8771
# Autoconf-2.59 which quotes differently.
8772
m4_define([lt_car], [[$1]])
8774
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8776
[m4_dquote(m4_shift($@))])])
8777
m4_define([lt_unquote], $1)
8780
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8781
# ------------------------------------------
8782
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8783
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8784
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8785
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8786
# than defined and empty).
8788
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8789
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8790
m4_define([lt_append],
8792
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8796
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8797
# ----------------------------------------------------------
8798
# Produce a SEP delimited list of all paired combinations of elements of
8799
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8800
# has the form PREFIXmINFIXSUFFIXn.
8801
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8802
m4_define([lt_combine],
8803
[m4_if(m4_eval([$# > 3]), [1],
8804
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8805
[[m4_foreach([_Lt_prefix], [$2],
8806
[m4_foreach([_Lt_suffix],
8807
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8808
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8811
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8812
# -----------------------------------------------------------------------
8813
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8814
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8815
m4_define([lt_if_append_uniq],
8817
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8818
[lt_append([$1], [$2], [$3])$4],
8820
[lt_append([$1], [$2], [$3])$4])])
8823
# lt_dict_add(DICT, KEY, VALUE)
8824
# -----------------------------
8825
m4_define([lt_dict_add],
8826
[m4_define([$1($2)], [$3])])
8829
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8830
# --------------------------------------------
8831
m4_define([lt_dict_add_subkey],
8832
[m4_define([$1($2:$3)], [$4])])
8835
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8836
# ----------------------------------
8837
m4_define([lt_dict_fetch],
8839
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8840
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8843
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8844
# -----------------------------------------------------------------
8845
m4_define([lt_if_dict_fetch],
8846
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8851
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8852
# --------------------------------------------------------------
8853
m4_define([lt_dict_filter],
8854
[m4_if([$5], [], [],
8855
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8856
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8857
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8860
# ltversion.m4 -- version numbers -*- Autoconf -*-
8862
# Copyright (C) 2004 Free Software Foundation, Inc.
8863
# Written by Scott James Remnant, 2004
8865
# This file is free software; the Free Software Foundation gives
8866
# unlimited permission to copy and/or distribute it, with or without
8867
# modifications, as long as this notice is preserved.
8869
# Generated from ltversion.in.
8871
# serial 3017 ltversion.m4
8872
# This file is part of GNU Libtool
8874
m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8875
m4_define([LT_PACKAGE_REVISION], [1.3017])
8877
AC_DEFUN([LTVERSION_VERSION],
8878
[macro_version='2.2.6b'
8879
macro_revision='1.3017'
8880
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8881
_LT_DECL(, macro_revision, 0)
8884
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8886
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8887
# Written by Scott James Remnant, 2004.
8889
# This file is free software; the Free Software Foundation gives
8890
# unlimited permission to copy and/or distribute it, with or without
8891
# modifications, as long as this notice is preserved.
8893
# serial 4 lt~obsolete.m4
8895
# These exist entirely to fool aclocal when bootstrapping libtool.
8897
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8898
# which have later been changed to m4_define as they aren't part of the
8899
# exported API, or moved to Autoconf or Automake where they belong.
8901
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8902
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8903
# using a macro with the same name in our local m4/libtool.m4 it'll
8904
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8905
# and doesn't know about Autoconf macros at all.)
8907
# So we provide this file, which has a silly filename so it's always
8908
# included after everything else. This provides aclocal with the
8909
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8910
# because those macros already exist, or will be overwritten later.
8911
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8913
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8914
# Yes, that means every name once taken will need to remain here until
8915
# we give up compatibility with versions before 1.7, at which point
8916
# we need to keep only those names which we still refer to.
8918
# This is to help aclocal find these macros, as it can't see m4_define.
8919
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8921
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8922
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8923
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8924
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8925
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8926
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8927
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8928
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8929
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8930
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8931
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8932
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8933
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8934
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8935
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8936
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8937
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8938
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8939
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8940
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8941
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8942
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8943
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8944
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8945
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8946
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8947
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8948
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8949
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8950
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8951
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8952
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8953
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8954
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8955
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8956
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8957
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8958
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8959
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8960
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8961
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8962
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8963
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8964
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8965
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8966
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8967
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8968
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8969
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8970
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8971
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8972
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8973
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8974
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8975
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8977
# nls.m4 serial 3 (gettext-0.15)
8978
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8979
dnl This file is free software; the Free Software Foundation
8980
dnl gives unlimited permission to copy and/or distribute it,
8981
dnl with or without modifications, as long as this notice is preserved.
8983
dnl This file can can be used in projects which are not available under
8984
dnl the GNU General Public License or the GNU Library General Public
8985
dnl License but which still want to provide support for the GNU gettext
8987
dnl Please note that the actual code of the GNU gettext library is covered
8988
dnl by the GNU Library General Public License, and the rest of the GNU
8989
dnl gettext package package is covered by the GNU General Public License.
8990
dnl They are *not* in the public domain.
8993
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8994
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
9000
AC_MSG_CHECKING([whether NLS is requested])
9001
dnl Default is enabled NLS
9003
[ --disable-nls do not use Native Language Support],
9004
USE_NLS=$enableval, USE_NLS=yes)
9005
AC_MSG_RESULT($USE_NLS)
9009
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
9011
# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
9013
# This program is free software; you can redistribute it and/or modify
9014
# it under the terms of the GNU General Public License as published by
9015
# the Free Software Foundation; either version 2 of the License, or
9016
# (at your option) any later version.
9018
# This program is distributed in the hope that it will be useful, but
9019
# WITHOUT ANY WARRANTY; without even the implied warranty of
9020
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9021
# General Public License for more details.
9023
# You should have received a copy of the GNU General Public License
9024
# along with this program; if not, write to the Free Software
9025
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9027
# As a special exception to the GNU General Public License, if you
9028
# distribute this file as part of a program that contains a
9029
# configuration script generated by Autoconf, you may include it under
9030
# the same distribution terms that you use for the rest of that program.
9032
# PKG_PROG_PKG_CONFIG([MIN-VERSION])
9033
# ----------------------------------
9034
AC_DEFUN([PKG_PROG_PKG_CONFIG],
9035
[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
9036
m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
9037
AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
9038
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
9039
AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
9041
if test -n "$PKG_CONFIG"; then
9042
_pkg_min_version=m4_default([$1], [0.9.0])
9043
AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
9044
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
9045
AC_MSG_RESULT([yes])
9052
])# PKG_PROG_PKG_CONFIG
9054
# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
9056
# Check to see whether a particular set of modules exists. Similar
9057
# to PKG_CHECK_MODULES(), but does not set variables or print errors.
9060
# Similar to PKG_CHECK_MODULES, make sure that the first instance of
9061
# this or PKG_CHECK_MODULES is called, or make sure to call
9062
# PKG_CHECK_EXISTS manually
9063
# --------------------------------------------------------------
9064
AC_DEFUN([PKG_CHECK_EXISTS],
9065
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9066
if test -n "$PKG_CONFIG" && \
9067
AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
9068
m4_ifval([$2], [$2], [:])
9069
m4_ifvaln([$3], [else
9074
# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
9075
# ---------------------------------------------
9076
m4_define([_PKG_CONFIG],
9077
[if test -n "$$1"; then
9079
elif test -n "$PKG_CONFIG"; then
9080
PKG_CHECK_EXISTS([$3],
9081
[pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
9088
# _PKG_SHORT_ERRORS_SUPPORTED
9089
# -----------------------------
9090
AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
9091
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
9092
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9093
_pkg_short_errors_supported=yes
9095
_pkg_short_errors_supported=no
9097
])# _PKG_SHORT_ERRORS_SUPPORTED
9100
# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
9101
# [ACTION-IF-NOT-FOUND])
9104
# Note that if there is a possibility the first call to
9105
# PKG_CHECK_MODULES might not happen, you should be sure to include an
9106
# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
9109
# --------------------------------------------------------------
9110
AC_DEFUN([PKG_CHECK_MODULES],
9111
[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
9112
AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
9113
AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
9116
AC_MSG_CHECKING([for $1])
9118
_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
9119
_PKG_CONFIG([$1][_LIBS], [libs], [$2])
9121
m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
9122
and $1[]_LIBS to avoid the need to call pkg-config.
9123
See the pkg-config man page for more details.])
9125
if test $pkg_failed = yes; then
9126
_PKG_SHORT_ERRORS_SUPPORTED
9127
if test $_pkg_short_errors_supported = yes; then
9128
$1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1`
9130
$1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1`
9132
# Put the nasty error message in config.log where it belongs
9133
echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
9135
ifelse([$4], , [AC_MSG_ERROR(dnl
9136
[Package requirements ($2) were not met:
9140
Consider adjusting the PKG_CONFIG_PATH environment variable if you
9141
installed software in a non-standard prefix.
9145
[AC_MSG_RESULT([no])
9147
elif test $pkg_failed = untried; then
9148
ifelse([$4], , [AC_MSG_FAILURE(dnl
9149
[The pkg-config script could not be found or is too old. Make sure it
9150
is in your PATH or set the PKG_CONFIG environment variable to the full
9155
To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
9158
$1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
9159
$1[]_LIBS=$pkg_cv_[]$1[]_LIBS
9160
AC_MSG_RESULT([yes])
9161
ifelse([$3], , :, [$3])
9163
])# PKG_CHECK_MODULES
9165
# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9167
# This file is free software; the Free Software Foundation
9168
# gives unlimited permission to copy and/or distribute it,
9169
# with or without modifications, as long as this notice is preserved.
9171
# AM_AUTOMAKE_VERSION(VERSION)
9172
# ----------------------------
9173
# Automake X.Y traces this macro to ensure aclocal.m4 has been
9174
# generated from the m4 files accompanying Automake X.Y.
9175
# (This private macro should not be called outside this file.)
9176
AC_DEFUN([AM_AUTOMAKE_VERSION],
9177
[am__api_version='1.11'
9178
dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
9179
dnl require some minimum version. Point them to the right macro.
9180
m4_if([$1], [1.11.1], [],
9181
[AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
9184
# _AM_AUTOCONF_VERSION(VERSION)
9185
# -----------------------------
9186
# aclocal traces this macro to find the Autoconf version.
9187
# This is a private macro too. Using m4_define simplifies
9188
# the logic in aclocal, which can simply ignore this definition.
9189
m4_define([_AM_AUTOCONF_VERSION], [])
9191
# AM_SET_CURRENT_AUTOMAKE_VERSION
9192
# -------------------------------
9193
# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
9194
# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
9195
AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
9196
[AM_AUTOMAKE_VERSION([1.11.1])dnl
9197
m4_ifndef([AC_AUTOCONF_VERSION],
9198
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
9199
_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
9201
# AM_AUX_DIR_EXPAND -*- Autoconf -*-
9203
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9205
# This file is free software; the Free Software Foundation
9206
# gives unlimited permission to copy and/or distribute it,
9207
# with or without modifications, as long as this notice is preserved.
9209
# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
9210
# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
9211
# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
9213
# Of course, Automake must honor this variable whenever it calls a
9214
# tool from the auxiliary directory. The problem is that $srcdir (and
9215
# therefore $ac_aux_dir as well) can be either absolute or relative,
9216
# depending on how configure is run. This is pretty annoying, since
9217
# it makes $ac_aux_dir quite unusable in subdirectories: in the top
9218
# source directory, any form will work fine, but in subdirectories a
9219
# relative path needs to be adjusted first.
9221
# $ac_aux_dir/missing
9222
# fails when called from a subdirectory if $ac_aux_dir is relative
9223
# $top_srcdir/$ac_aux_dir/missing
9224
# fails if $ac_aux_dir is absolute,
9225
# fails when called from a subdirectory in a VPATH build with
9226
# a relative $ac_aux_dir
9228
# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
9229
# are both prefixed by $srcdir. In an in-source build this is usually
9230
# harmless because $srcdir is `.', but things will broke when you
9231
# start a VPATH build or use an absolute $srcdir.
9233
# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
9234
# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
9235
# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
9236
# and then we would define $MISSING as
9237
# MISSING="\${SHELL} $am_aux_dir/missing"
9238
# This will work as long as MISSING is not called from configure, because
9239
# unfortunately $(top_srcdir) has no meaning in configure.
9240
# However there are other variables, like CC, which are often used in
9241
# configure, and could therefore not use this "fixed" $ac_aux_dir.
9243
# Another solution, used here, is to always expand $ac_aux_dir to an
9244
# absolute PATH. The drawback is that using absolute paths prevent a
9245
# configured tree to be moved without reconfiguration.
9247
AC_DEFUN([AM_AUX_DIR_EXPAND],
9248
[dnl Rely on autoconf to set up CDPATH properly.
9249
AC_PREREQ([2.50])dnl
9250
# expand $ac_aux_dir to an absolute path
9251
am_aux_dir=`cd $ac_aux_dir && pwd`
9254
# AM_CONDITIONAL -*- Autoconf -*-
9256
# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
9257
# Free Software Foundation, Inc.
9259
# This file is free software; the Free Software Foundation
9260
# gives unlimited permission to copy and/or distribute it,
9261
# with or without modifications, as long as this notice is preserved.
9265
# AM_CONDITIONAL(NAME, SHELL-CONDITION)
9266
# -------------------------------------
9267
# Define a conditional.
9268
AC_DEFUN([AM_CONDITIONAL],
9270
ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
9271
[$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
9272
AC_SUBST([$1_TRUE])dnl
9273
AC_SUBST([$1_FALSE])dnl
9274
_AM_SUBST_NOTMAKE([$1_TRUE])dnl
9275
_AM_SUBST_NOTMAKE([$1_FALSE])dnl
9276
m4_define([_AM_COND_VALUE_$1], [$2])dnl
9284
AC_CONFIG_COMMANDS_PRE(
9285
[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
9286
AC_MSG_ERROR([[conditional "$1" was never defined.
9287
Usually this means the macro was only invoked conditionally.]])
9290
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
9291
# Free Software Foundation, Inc.
9293
# This file is free software; the Free Software Foundation
9294
# gives unlimited permission to copy and/or distribute it,
9295
# with or without modifications, as long as this notice is preserved.
9299
# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
9300
# written in clear, in which case automake, when reading aclocal.m4,
9301
# will think it sees a *use*, and therefore will trigger all it's
9302
# C support machinery. Also note that it means that autoscan, seeing
9303
# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
9306
# _AM_DEPENDENCIES(NAME)
9307
# ----------------------
9308
# See how the compiler implements dependency checking.
9309
# NAME is "CC", "CXX", "GCJ", or "OBJC".
9310
# We try a few techniques and use that to set a single cache variable.
9312
# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
9313
# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
9314
# dependency, and given that the user is not expected to run this macro,
9315
# just rely on AC_PROG_CC.
9316
AC_DEFUN([_AM_DEPENDENCIES],
9317
[AC_REQUIRE([AM_SET_DEPDIR])dnl
9318
AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9319
AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9320
AC_REQUIRE([AM_DEP_TRACK])dnl
9322
ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9323
[$1], CXX, [depcc="$CXX" am_compiler_list=],
9324
[$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9325
[$1], UPC, [depcc="$UPC" am_compiler_list=],
9326
[$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9327
[depcc="$$1" am_compiler_list=])
9329
AC_CACHE_CHECK([dependency style of $depcc],
9330
[am_cv_$1_dependencies_compiler_type],
9331
[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9332
# We make a subdir and do the tests there. Otherwise we can end up
9333
# making bogus files that we don't know about and never remove. For
9334
# instance it was reported that on HP-UX the gcc test will end up
9335
# making a dummy file named `D' -- because `-MD' means `put the output
9338
# Copy depcomp to subdir because otherwise we won't find it if we're
9339
# using a relative directory.
9340
cp "$am_depcomp" conftest.dir
9342
# We will build objects and dependencies in a subdirectory because
9343
# it helps to detect inapplicable dependency modes. For instance
9344
# both Tru64's cc and ICC support -MD to output dependencies as a
9345
# side effect of compilation, but ICC will put the dependencies in
9346
# the current directory while Tru64 will put them in the object
9350
am_cv_$1_dependencies_compiler_type=none
9351
if test "$am_compiler_list" = ""; then
9352
am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9356
[case " $depcc " in #(
9357
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9360
[case " $depcc " in #(
9361
*\ -arch\ *\ -arch\ *) am__universal=true ;;
9364
for depmode in $am_compiler_list; do
9365
# Setup a source with many dependencies, because some compilers
9366
# like to wrap large dependency lists on column 80 (with \), and
9367
# we should not choose a depcomp mode which is confused by this.
9369
# We need to recreate these files for each test, as the compiler may
9370
# overwrite some of them when testing with obscure command lines.
9371
# This happens at least with the AIX C compiler.
9373
for i in 1 2 3 4 5 6; do
9374
echo '#include "conftst'$i'.h"' >> sub/conftest.c
9375
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9376
# Solaris 8's {/usr,}/bin/sh.
9377
touch sub/conftst$i.h
9379
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9381
# We check with `-c' and `-o' for the sake of the "dashmstdout"
9382
# mode. It turns out that the SunPro C++ compiler does not properly
9383
# handle `-M -o', and we need to detect this. Also, some Intel
9384
# versions had trouble with output in subdirs
9385
am__obj=sub/conftest.${OBJEXT-o}
9386
am__minus_obj="-o $am__obj"
9389
# This depmode causes a compiler race in universal mode.
9390
test "$am__universal" = false || continue
9393
# after this tag, mechanisms are not by side-effect, so they'll
9394
# only be used when explicitly requested
9395
if test "x$enable_dependency_tracking" = xyes; then
9401
msvisualcpp | msvcmsys)
9402
# This compiler won't grok `-c -o', but also, the minuso test has
9403
# not run yet. These depmodes are late enough in the game, and
9404
# so weak that their functioning should not be impacted.
9405
am__obj=conftest.${OBJEXT-o}
9410
if depmode=$depmode \
9411
source=sub/conftest.c object=$am__obj \
9412
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9413
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9414
>/dev/null 2>conftest.err &&
9415
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9416
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9417
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9418
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9419
# icc doesn't choke on unknown options, it will just issue warnings
9420
# or remarks (even with -Werror). So we grep stderr for any message
9421
# that says an option was ignored or not supported.
9422
# When given -MP, icc 7.0 and 7.1 complain thusly:
9423
# icc: Command line warning: ignoring option '-M'; no argument required
9424
# The diagnosis changed in icc 8.0:
9425
# icc: Command line remark: option '-MP' not supported
9426
if (grep 'ignoring option' conftest.err ||
9427
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9428
am_cv_$1_dependencies_compiler_type=$depmode
9437
am_cv_$1_dependencies_compiler_type=none
9440
AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9441
AM_CONDITIONAL([am__fastdep$1], [
9442
test "x$enable_dependency_tracking" != xno \
9443
&& test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9449
# Choose a directory name for dependency files.
9450
# This macro is AC_REQUIREd in _AM_DEPENDENCIES
9451
AC_DEFUN([AM_SET_DEPDIR],
9452
[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9453
AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9459
AC_DEFUN([AM_DEP_TRACK],
9460
[AC_ARG_ENABLE(dependency-tracking,
9461
[ --disable-dependency-tracking speeds up one-time build
9462
--enable-dependency-tracking do not reject slow dependency extractors])
9463
if test "x$enable_dependency_tracking" != xno; then
9464
am_depcomp="$ac_aux_dir/depcomp"
9467
AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9468
AC_SUBST([AMDEPBACKSLASH])dnl
9469
_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9472
# Generate code to set up dependency tracking. -*- Autoconf -*-
9474
# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9475
# Free Software Foundation, Inc.
9477
# This file is free software; the Free Software Foundation
9478
# gives unlimited permission to copy and/or distribute it,
9479
# with or without modifications, as long as this notice is preserved.
9483
# _AM_OUTPUT_DEPENDENCY_COMMANDS
9484
# ------------------------------
9485
AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9487
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9488
# are listed without --file. Let's play safe and only enable the eval
9489
# if we detect the quoting.
9490
case $CONFIG_FILES in
9491
*\'*) eval set x "$CONFIG_FILES" ;;
9492
*) set x $CONFIG_FILES ;;
9497
# Strip MF so we end up with the name of the file.
9498
mf=`echo "$mf" | sed -e 's/:.*$//'`
9499
# Check whether this is an Automake generated Makefile or not.
9500
# We used to match only the files named `Makefile.in', but
9501
# some people rename them; so instead we look at the file content.
9502
# Grep'ing the first line is not enough: some people post-process
9503
# each Makefile.in and add a new line on top of each file to say so.
9504
# Grep'ing the whole file is not good either: AIX grep has a line
9505
# limit of 2048, but all sed's we know have understand at least 4000.
9506
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9507
dirpart=`AS_DIRNAME("$mf")`
9511
# Extract the definition of DEPDIR, am__include, and am__quote
9512
# from the Makefile without running `make'.
9513
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9514
test -z "$DEPDIR" && continue
9515
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9516
test -z "am__include" && continue
9517
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9518
# When using ansi2knr, U may be empty or an underscore; expand it
9519
U=`sed -n 's/^U = //p' < "$mf"`
9520
# Find all dependency output files, they are included files with
9521
# $(DEPDIR) in their names. We invoke sed twice because it is the
9522
# simplest approach to changing $(DEPDIR) to its actual value in the
9524
for file in `sed -n "
9525
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9526
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9527
# Make sure the directory exists.
9528
test -f "$dirpart/$file" && continue
9529
fdir=`AS_DIRNAME(["$file"])`
9530
AS_MKDIR_P([$dirpart/$fdir])
9531
# echo "creating $dirpart/$file"
9532
echo '# dummy' > "$dirpart/$file"
9536
])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9539
# AM_OUTPUT_DEPENDENCY_COMMANDS
9540
# -----------------------------
9541
# This macro should only be invoked once -- use via AC_REQUIRE.
9543
# This code is only required when automatic dependency tracking
9544
# is enabled. FIXME. This creates each `.P' file that we will
9545
# need in order to bootstrap the dependency handling code.
9546
AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9547
[AC_CONFIG_COMMANDS([depfiles],
9548
[test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9549
[AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9552
# Do all the work for Automake. -*- Autoconf -*-
9554
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9555
# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9557
# This file is free software; the Free Software Foundation
9558
# gives unlimited permission to copy and/or distribute it,
9559
# with or without modifications, as long as this notice is preserved.
9563
# This macro actually does too much. Some checks are only needed if
9564
# your package does certain things. But this isn't really a big deal.
9566
# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9567
# AM_INIT_AUTOMAKE([OPTIONS])
9568
# -----------------------------------------------
9569
# The call with PACKAGE and VERSION arguments is the old style
9570
# call (pre autoconf-2.50), which is being phased out. PACKAGE
9571
# and VERSION should now be passed to AC_INIT and removed from
9572
# the call to AM_INIT_AUTOMAKE.
9573
# We support both call styles for the transition. After
9574
# the next Automake release, Autoconf can make the AC_INIT
9575
# arguments mandatory, and then we can depend on a new Autoconf
9576
# release and drop the old call support.
9577
AC_DEFUN([AM_INIT_AUTOMAKE],
9578
[AC_PREREQ([2.62])dnl
9579
dnl Autoconf wants to disallow AM_ names. We explicitly allow
9580
dnl the ones we care about.
9581
m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9582
AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9583
AC_REQUIRE([AC_PROG_INSTALL])dnl
9584
if test "`cd $srcdir && pwd`" != "`pwd`"; then
9585
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9586
# is not polluted with repeated "-I."
9587
AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9588
# test to see if srcdir already configured
9589
if test -f $srcdir/config.status; then
9590
AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9594
# test whether we have cygpath
9595
if test -z "$CYGPATH_W"; then
9596
if (cygpath --version) >/dev/null 2>/dev/null; then
9597
CYGPATH_W='cygpath -w'
9602
AC_SUBST([CYGPATH_W])
9604
# Define the identity of the package.
9605
dnl Distinguish between old-style and new-style calls.
9607
[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9608
AC_SUBST([PACKAGE], [$1])dnl
9609
AC_SUBST([VERSION], [$2])],
9610
[_AM_SET_OPTIONS([$1])dnl
9611
dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9612
m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9613
[m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9614
AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9615
AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9617
_AM_IF_OPTION([no-define],,
9618
[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9619
AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9621
# Some tools Automake needs.
9622
AC_REQUIRE([AM_SANITY_CHECK])dnl
9623
AC_REQUIRE([AC_ARG_PROGRAM])dnl
9624
AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9625
AM_MISSING_PROG(AUTOCONF, autoconf)
9626
AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9627
AM_MISSING_PROG(AUTOHEADER, autoheader)
9628
AM_MISSING_PROG(MAKEINFO, makeinfo)
9629
AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9630
AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9631
AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9632
# We need awk for the "check" target. The system "awk" is bad on
9634
AC_REQUIRE([AC_PROG_AWK])dnl
9635
AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9636
AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9637
_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9638
[_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9639
[_AM_PROG_TAR([v7])])])
9640
_AM_IF_OPTION([no-dependencies],,
9641
[AC_PROVIDE_IFELSE([AC_PROG_CC],
9642
[_AM_DEPENDENCIES(CC)],
9643
[define([AC_PROG_CC],
9644
defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9645
AC_PROVIDE_IFELSE([AC_PROG_CXX],
9646
[_AM_DEPENDENCIES(CXX)],
9647
[define([AC_PROG_CXX],
9648
defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9649
AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9650
[_AM_DEPENDENCIES(OBJC)],
9651
[define([AC_PROG_OBJC],
9652
defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9654
_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9655
dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9656
dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9657
dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9658
AC_CONFIG_COMMANDS_PRE(dnl
9659
[m4_provide_if([_AM_COMPILER_EXEEXT],
9660
[AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9663
dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9664
dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9665
dnl mangled by Autoconf and run in a shell conditional statement.
9666
m4_define([_AC_COMPILER_EXEEXT],
9667
m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9670
# When config.status generates a header, we must update the stamp-h file.
9671
# This file resides in the same directory as the config header
9672
# that is generated. The stamp files are numbered to have different names.
9674
# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9675
# loop where config.status creates the headers, so we can generate
9676
# our stamp files there.
9677
AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9678
[# Compute $1's index in $config_headers.
9681
for _am_header in $config_headers :; do
9683
$_am_arg | $_am_arg:* )
9686
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9689
echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9691
# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9693
# This file is free software; the Free Software Foundation
9694
# gives unlimited permission to copy and/or distribute it,
9695
# with or without modifications, as long as this notice is preserved.
9697
# AM_PROG_INSTALL_SH
9698
# ------------------
9699
# Define $install_sh.
9700
AC_DEFUN([AM_PROG_INSTALL_SH],
9701
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9702
if test x"${install_sh}" != xset; then
9705
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9707
install_sh="\${SHELL} $am_aux_dir/install-sh"
9710
AC_SUBST(install_sh)])
9712
# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9714
# This file is free software; the Free Software Foundation
9715
# gives unlimited permission to copy and/or distribute it,
9716
# with or without modifications, as long as this notice is preserved.
9720
# Check whether the underlying file-system supports filenames
9721
# with a leading dot. For instance MS-DOS doesn't.
9722
AC_DEFUN([AM_SET_LEADING_DOT],
9723
[rm -rf .tst 2>/dev/null
9724
mkdir .tst 2>/dev/null
9725
if test -d .tst; then
9730
rmdir .tst 2>/dev/null
9731
AC_SUBST([am__leading_dot])])
9733
# Check to see how 'make' treats includes. -*- Autoconf -*-
9735
# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9737
# This file is free software; the Free Software Foundation
9738
# gives unlimited permission to copy and/or distribute it,
9739
# with or without modifications, as long as this notice is preserved.
9745
# Check to see how make treats includes.
9746
AC_DEFUN([AM_MAKE_INCLUDE],
9747
[am_make=${MAKE-make}
9748
cat > confinc << 'END'
9750
@echo this is the am__doit target
9753
# If we don't find an include directive, just comment out the code.
9754
AC_MSG_CHECKING([for style of include used by $am_make])
9758
# First try GNU make style include.
9759
echo "include confinc" > confmf
9760
# Ignore all kinds of additional output from `make'.
9761
case `$am_make -s -f confmf 2> /dev/null` in #(
9762
*the\ am__doit\ target*)
9768
# Now try BSD make style include.
9769
if test "$am__include" = "#"; then
9770
echo '.include "confinc"' > confmf
9771
case `$am_make -s -f confmf 2> /dev/null` in #(
9772
*the\ am__doit\ target*)
9773
am__include=.include
9779
AC_SUBST([am__include])
9780
AC_SUBST([am__quote])
9781
AC_MSG_RESULT([$_am_result])
9782
rm -f confinc confmf
9785
# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005, 2008
9786
# Free Software Foundation, Inc.
9788
# This file is free software; the Free Software Foundation
9789
# gives unlimited permission to copy and/or distribute it,
9790
# with or without modifications, as long as this notice is preserved.
9796
# Like AC_PROG_CC_C_O, but changed for automake.
9797
AC_DEFUN([AM_PROG_CC_C_O],
9798
[AC_REQUIRE([AC_PROG_CC_C_O])dnl
9799
AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9800
AC_REQUIRE_AUX_FILE([compile])dnl
9801
# FIXME: we rely on the cache variable name because
9802
# there is no other way.
9804
am_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
9805
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
9806
if test "$am_t" != yes; then
9807
# Losing compiler, so override with the script.
9808
# FIXME: It is wrong to rewrite CC.
9809
# But if we don't then we get into trouble of one sort or another.
9810
# A longer-term fix would be to have automake use am__CC in this case,
9811
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
9812
CC="$am_aux_dir/compile $CC"
9814
dnl Make sure AC_PROG_CC is never called again, or it will override our
9816
m4_define([AC_PROG_CC],
9817
[m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])])
9820
# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9822
# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9823
# Free Software Foundation, Inc.
9825
# This file is free software; the Free Software Foundation
9826
# gives unlimited permission to copy and/or distribute it,
9827
# with or without modifications, as long as this notice is preserved.
9831
# AM_MISSING_PROG(NAME, PROGRAM)
9832
# ------------------------------
9833
AC_DEFUN([AM_MISSING_PROG],
9834
[AC_REQUIRE([AM_MISSING_HAS_RUN])
9835
$1=${$1-"${am_missing_run}$2"}
9839
# AM_MISSING_HAS_RUN
9840
# ------------------
9841
# Define MISSING if not defined so far and test if it supports --run.
9842
# If it does, set am_missing_run to use it, otherwise, to nothing.
9843
AC_DEFUN([AM_MISSING_HAS_RUN],
9844
[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9845
AC_REQUIRE_AUX_FILE([missing])dnl
9846
if test x"${MISSING+set}" != xset; then
9849
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9851
MISSING="\${SHELL} $am_aux_dir/missing" ;;
9854
# Use eval to expand $SHELL
9855
if eval "$MISSING --run true"; then
9856
am_missing_run="$MISSING --run "
9859
AC_MSG_WARN([`missing' script is too old or missing])
9863
# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9865
# This file is free software; the Free Software Foundation
9866
# gives unlimited permission to copy and/or distribute it,
9867
# with or without modifications, as long as this notice is preserved.
9871
# Check for `mkdir -p'.
9872
AC_DEFUN([AM_PROG_MKDIR_P],
9873
[AC_PREREQ([2.60])dnl
9874
AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9875
dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9876
dnl while keeping a definition of mkdir_p for backward compatibility.
9877
dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9878
dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9879
dnl Makefile.ins that do not define MKDIR_P, so we do our own
9880
dnl adjustment using top_builddir (which is defined more often than
9882
AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9884
[[\\/$]]* | ?:[[\\/]]*) ;;
9885
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9889
# Helper functions for option handling. -*- Autoconf -*-
9891
# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9893
# This file is free software; the Free Software Foundation
9894
# gives unlimited permission to copy and/or distribute it,
9895
# with or without modifications, as long as this notice is preserved.
9899
# _AM_MANGLE_OPTION(NAME)
9900
# -----------------------
9901
AC_DEFUN([_AM_MANGLE_OPTION],
9902
[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9904
# _AM_SET_OPTION(NAME)
9905
# ------------------------------
9906
# Set option NAME. Presently that only means defining a flag for this option.
9907
AC_DEFUN([_AM_SET_OPTION],
9908
[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9910
# _AM_SET_OPTIONS(OPTIONS)
9911
# ----------------------------------
9912
# OPTIONS is a space-separated list of Automake options.
9913
AC_DEFUN([_AM_SET_OPTIONS],
9914
[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9916
# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9917
# -------------------------------------------
9918
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9919
AC_DEFUN([_AM_IF_OPTION],
9920
[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9922
# Check to make sure that the build environment is sane. -*- Autoconf -*-
9924
# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9925
# Free Software Foundation, Inc.
9927
# This file is free software; the Free Software Foundation
9928
# gives unlimited permission to copy and/or distribute it,
9929
# with or without modifications, as long as this notice is preserved.
9935
AC_DEFUN([AM_SANITY_CHECK],
9936
[AC_MSG_CHECKING([whether build environment is sane])
9939
echo timestamp > conftest.file
9940
# Reject unsafe characters in $srcdir or the absolute working directory
9941
# name. Accept space and tab only in the latter.
9945
*[[\\\"\#\$\&\'\`$am_lf]]*)
9946
AC_MSG_ERROR([unsafe absolute working directory name]);;
9949
*[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9950
AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9953
# Do `set' in a subshell so we don't clobber the current shell's
9954
# arguments. Must try -L first in case configure is actually a
9955
# symlink; some systems play weird games with the mod time of symlinks
9956
# (eg FreeBSD returns the mod time of the symlink's containing
9959
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9960
if test "$[*]" = "X"; then
9962
set X `ls -t "$srcdir/configure" conftest.file`
9965
if test "$[*]" != "X $srcdir/configure conftest.file" \
9966
&& test "$[*]" != "X conftest.file $srcdir/configure"; then
9968
# If neither matched, then we have a broken ls. This can happen
9969
# if, for instance, CONFIG_SHELL is bash and it inherits a
9970
# broken ls alias from the environment. This has actually
9971
# happened. Such a system could not be considered "sane".
9972
AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9973
alias in your environment])
9976
test "$[2]" = conftest.file
9982
AC_MSG_ERROR([newly created file is older than distributed files!
9983
Check your system clock])
9985
AC_MSG_RESULT(yes)])
9987
# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9989
# This file is free software; the Free Software Foundation
9990
# gives unlimited permission to copy and/or distribute it,
9991
# with or without modifications, as long as this notice is preserved.
9993
# AM_PROG_INSTALL_STRIP
9994
# ---------------------
9995
# One issue with vendor `install' (even GNU) is that you can't
9996
# specify the program used to strip binaries. This is especially
9997
# annoying in cross-compiling environments, where the build's strip
9998
# is unlikely to handle the host's binaries.
9999
# Fortunately install-sh will honor a STRIPPROG variable, so we
10000
# always use install-sh in `make install-strip', and initialize
10001
# STRIPPROG with the value of the STRIP variable (set by the user).
10002
AC_DEFUN([AM_PROG_INSTALL_STRIP],
10003
[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
10004
# Installed binaries are usually stripped using `strip' when the user
10005
# run `make install-strip'. However `strip' might not be the right
10006
# tool to use in cross-compilation environments, therefore Automake
10007
# will honor the `STRIP' environment variable to overrule this program.
10008
dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
10009
if test "$cross_compiling" != no; then
10010
AC_CHECK_TOOL([STRIP], [strip], :)
10012
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
10013
AC_SUBST([INSTALL_STRIP_PROGRAM])])
10015
# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
10017
# This file is free software; the Free Software Foundation
10018
# gives unlimited permission to copy and/or distribute it,
10019
# with or without modifications, as long as this notice is preserved.
10023
# _AM_SUBST_NOTMAKE(VARIABLE)
10024
# ---------------------------
10025
# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
10026
# This macro is traced by Automake.
10027
AC_DEFUN([_AM_SUBST_NOTMAKE])
10029
# AM_SUBST_NOTMAKE(VARIABLE)
10030
# ---------------------------
10031
# Public sister of _AM_SUBST_NOTMAKE.
10032
AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10034
# Check how to create a tarball. -*- Autoconf -*-
10036
# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
10038
# This file is free software; the Free Software Foundation
10039
# gives unlimited permission to copy and/or distribute it,
10040
# with or without modifications, as long as this notice is preserved.
10044
# _AM_PROG_TAR(FORMAT)
10045
# --------------------
10046
# Check how to create a tarball in format FORMAT.
10047
# FORMAT should be one of `v7', `ustar', or `pax'.
10049
# Substitute a variable $(am__tar) that is a command
10050
# writing to stdout a FORMAT-tarball containing the directory
10052
# tardir=directory && $(am__tar) > result.tar
10054
# Substitute a variable $(am__untar) that extract such
10055
# a tarball read from stdin.
10056
# $(am__untar) < result.tar
10057
AC_DEFUN([_AM_PROG_TAR],
10058
[# Always define AMTAR for backward compatibility.
10059
AM_MISSING_PROG([AMTAR], [tar])
10061
[am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
10062
[m4_case([$1], [ustar],, [pax],,
10063
[m4_fatal([Unknown tar format])])
10064
AC_MSG_CHECKING([how to create a $1 tar archive])
10065
# Loop over all known methods to create a tar archive until one works.
10066
_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
10067
_am_tools=${am_cv_prog_tar_$1-$_am_tools}
10068
# Do not fold the above two line into one, because Tru64 sh and
10069
# Solaris sh will not grok spaces in the rhs of `-'.
10070
for _am_tool in $_am_tools
10074
for _am_tar in tar gnutar gtar;
10076
AM_RUN_LOG([$_am_tar --version]) && break
10078
am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
10079
am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
10080
am__untar="$_am_tar -xf -"
10083
# Must skip GNU tar: if it does not support --format= it doesn't create
10084
# ustar tarball either.
10085
(tar --version) >/dev/null 2>&1 && continue
10086
am__tar='tar chf - "$$tardir"'
10087
am__tar_='tar chf - "$tardir"'
10088
am__untar='tar xf -'
10091
am__tar='pax -L -x $1 -w "$$tardir"'
10092
am__tar_='pax -L -x $1 -w "$tardir"'
10096
am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
10097
am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
10098
am__untar='cpio -i -H $1 -d'
10107
# If the value was cached, stop now. We just wanted to have am__tar
10108
# and am__untar set.
10109
test -n "${am_cv_prog_tar_$1}" && break
10111
# tar/untar a dummy directory, and stop if the command works
10112
rm -rf conftest.dir
10114
echo GrepMe > conftest.dir/file
10115
AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
10116
rm -rf conftest.dir
10117
if test -s conftest.tar; then
10118
AM_RUN_LOG([$am__untar <conftest.tar])
10119
grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
10122
rm -rf conftest.dir
10124
AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
10125
AC_MSG_RESULT([$am_cv_prog_tar_$1])])
10126
AC_SUBST([am__tar])
10127
AC_SUBST([am__untar])
10130
m4_include([acinclude.m4])