14
14
m4_ifndef([AC_AUTOCONF_VERSION],
15
15
[m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16
m4_if(AC_AUTOCONF_VERSION, [2.62],,
17
[m4_warning([this file was generated for autoconf 2.62.
16
m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],,
17
[m4_warning([this file was generated for autoconf 2.63.
18
18
You have another version of autoconf. It may work, but is not guaranteed to.
19
19
If you have problems, you may need to regenerate the build system entirely.
20
20
To do so, use the procedure documented by the package, typically `autoreconf'.])])
22
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
23
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
25
# This file is free software, distributed under the terms of the GNU
26
# General Public License. As a special exception to the GNU General
27
# Public License, this file may be distributed as part of a program
28
# that contains a configuration script generated by Autoconf, under
29
# the same distribution terms as the rest of that program.
31
# This file can be copied and used freely without restrictions. It can
32
# be used in projects which are not available under the GNU Public License
33
# but which still want to provide support for the GNU gettext functionality.
35
# Macro to add for using GNU gettext.
36
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
38
# Modified to never use included libintl.
39
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
41
# Major rework to remove unused code
42
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
44
# Added better handling of ALL_LINGUAS from GNU gettext version
45
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
47
# Modified to require ngettext
48
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
50
# We need this here as well, since someone might use autoconf-2.5x
51
# to configure GLib then an older version to configure a package
52
# using AM_GLIB_GNU_GETTEXT
56
dnl We go to great lengths to make sure that aclocal won't
57
dnl try to pull in the installed version of these macros
58
dnl when running aclocal in the glib directory.
60
m4_copy([AC_DEFUN],[glib_DEFUN])
61
m4_copy([AC_REQUIRE],[glib_REQUIRE])
63
dnl At the end, if we're not within glib, we'll define the public
64
dnl definitions in terms of our private definitions.
69
glib_DEFUN([GLIB_LC_MESSAGES],
70
[AC_CHECK_HEADERS([locale.h])
71
if test $ac_cv_header_locale_h = yes; then
72
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
73
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
74
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
75
if test $am_cv_val_LC_MESSAGES = yes; then
76
AC_DEFINE(HAVE_LC_MESSAGES, 1,
77
[Define if your <locale.h> file defines LC_MESSAGES.])
81
# GLIB_PATH_PROG_WITH_TEST
82
#----------------------------
83
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
84
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
85
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
86
[# Extract the first word of "$2", so it can be a program name with args.
87
set dummy $2; ac_word=[$]2
88
AC_MSG_CHECKING([for $ac_word])
89
AC_CACHE_VAL(ac_cv_path_$1,
92
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
95
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
96
for ac_dir in ifelse([$5], , $PATH, [$5]); do
97
test -z "$ac_dir" && ac_dir=.
98
if test -f $ac_dir/$ac_word; then
100
ac_cv_path_$1="$ac_dir/$ac_word"
106
dnl If no 4th arg is given, leave the cache variable unset,
107
dnl so AC_PATH_PROGS will keep looking.
108
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
113
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
123
glib_DEFUN([GLIB_WITH_NLS],
124
dnl NLS is obligatory
128
gt_cv_have_gettext=no
134
AC_CHECK_HEADER(libintl.h,
135
[gt_cv_func_dgettext_libintl="no"
136
libintl_extra_libs=""
139
# First check in libc
141
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
145
[return !ngettext ("","", 1)],
146
gt_cv_func_ngettext_libc=yes,
147
gt_cv_func_ngettext_libc=no)
150
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
151
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
155
[return !dgettext ("","")],
156
gt_cv_func_dgettext_libc=yes,
157
gt_cv_func_dgettext_libc=no)
161
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
162
AC_CHECK_FUNCS(bind_textdomain_codeset)
166
# If we don't have everything we want, check in libintl
168
if test "$gt_cv_func_dgettext_libc" != "yes" \
169
|| test "$gt_cv_func_ngettext_libc" != "yes" \
170
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
172
AC_CHECK_LIB(intl, bindtextdomain,
173
[AC_CHECK_LIB(intl, ngettext,
174
[AC_CHECK_LIB(intl, dgettext,
175
gt_cv_func_dgettext_libintl=yes)])])
177
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
178
AC_MSG_CHECKING([if -liconv is needed to use gettext])
180
AC_CHECK_LIB(intl, ngettext,
181
[AC_CHECK_LIB(intl, dcgettext,
182
[gt_cv_func_dgettext_libintl=yes
183
libintl_extra_libs=-liconv],
189
# If we found libintl, then check in it for bind_textdomain_codeset();
190
# we'll prefer libc if neither have bind_textdomain_codeset(),
191
# and both have dgettext and ngettext
193
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
194
glib_save_LIBS="$LIBS"
195
LIBS="$LIBS -lintl $libintl_extra_libs"
196
unset ac_cv_func_bind_textdomain_codeset
197
AC_CHECK_FUNCS(bind_textdomain_codeset)
198
LIBS="$glib_save_LIBS"
200
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
201
gt_cv_func_dgettext_libc=no
203
if test "$gt_cv_func_dgettext_libc" = "yes" \
204
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
205
gt_cv_func_dgettext_libintl=no
211
if test "$gt_cv_func_dgettext_libc" = "yes" \
212
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
213
gt_cv_have_gettext=yes
216
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
217
INTLLIBS="-lintl $libintl_extra_libs"
220
if test "$gt_cv_have_gettext" = "yes"; then
221
AC_DEFINE(HAVE_GETTEXT,1,
222
[Define if the GNU gettext() function is already present or preinstalled.])
223
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
224
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
225
if test "$MSGFMT" != "no"; then
226
glib_save_LIBS="$LIBS"
227
LIBS="$LIBS $INTLLIBS"
228
AC_CHECK_FUNCS(dcgettext)
230
AC_MSG_CHECKING([if msgfmt accepts -c])
231
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
234
"Content-Type: text/plain; charset=UTF-8\n"
235
"Project-Id-Version: test 1.0\n"
236
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
237
"Last-Translator: test <foo@bar.xx>\n"
238
"Language-Team: C <LL@li.org>\n"
239
"MIME-Version: 1.0\n"
240
"Content-Transfer-Encoding: 8bit\n"
241
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
242
AC_SUBST(MSGFMT_OPTS)
243
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
244
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
245
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
246
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
247
return _nl_msg_cat_cntr],
252
dnl On Solaris, if bind_textdomain_codeset is in libc,
253
dnl GNU format message catalog is always supported,
254
dnl since both are added to the libc all together.
255
dnl Hence, we'd like to go with DATADIRNAME=share and
256
dnl and CATOBJEXT=.gmo in this case.
257
AC_CHECK_FUNC(bind_textdomain_codeset,
268
LIBS="$glib_save_LIBS"
271
gt_cv_have_gettext=no
276
if test "$gt_cv_have_gettext" = "yes" ; then
277
AC_DEFINE(ENABLE_NLS, 1,
278
[always defined to indicate that i18n is enabled])
281
dnl Test whether we really found GNU xgettext.
282
if test "$XGETTEXT" != ":"; then
283
dnl If it is not GNU xgettext we define it as : so that the
284
dnl Makefiles still can work.
285
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
289
[found xgettext program is not GNU xgettext; ignore it])
294
# We need to process the po/ directory.
298
[case "$CONFIG_FILES" in *po/Makefile.in*)
299
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
302
dnl These rules are solely for the distribution goal. While doing this
303
dnl we only have to keep exactly one list of the available catalogs
305
for lang in $ALL_LINGUAS; do
306
GMOFILES="$GMOFILES $lang.gmo"
307
POFILES="$POFILES $lang.po"
310
dnl Make all variables we use known to autoconf.
313
AC_SUBST(DATADIRNAME)
317
AC_SUBST(PO_IN_DATADIR_TRUE)
318
AC_SUBST(PO_IN_DATADIR_FALSE)
323
# AM_GLIB_GNU_GETTEXT
324
# -------------------
325
# Do checks necessary for use of gettext. If a suitable implementation
326
# of gettext is found in either in libintl or in the C library,
327
# it will set INTLLIBS to the libraries needed for use of gettext
328
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
329
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
330
# on various variables needed by the Makefile.in.in installed by
333
glib_DEFUN([GLIB_GNU_GETTEXT],
334
[AC_REQUIRE([AC_PROG_CC])dnl
335
AC_REQUIRE([AC_HEADER_STDC])dnl
340
if test "$gt_cv_have_gettext" = "yes"; then
341
if test "x$ALL_LINGUAS" = "x"; then
344
AC_MSG_CHECKING(for catalogs to be installed)
346
for presentlang in $ALL_LINGUAS; do
348
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
349
desiredlanguages="$LINGUAS"
351
desiredlanguages="$ALL_LINGUAS"
353
for desiredlang in $desiredlanguages; do
354
# Use the presentlang catalog if desiredlang is
355
# a. equal to presentlang, or
356
# b. a variant of presentlang (because in this case,
357
# presentlang can be used as a fallback for messages
358
# which are not translated in the desiredlang catalog).
359
case "$desiredlang" in
360
"$presentlang"*) useit=yes;;
363
if test $useit = yes; then
364
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
368
AC_MSG_RESULT($LINGUAS)
371
dnl Construct list of names of catalog files to be constructed.
372
if test -n "$LINGUAS"; then
373
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
377
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
378
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
379
dnl Try to locate is.
381
if test -n "$ac_aux_dir"; then
382
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
384
if test -z "$MKINSTALLDIRS"; then
385
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
387
AC_SUBST(MKINSTALLDIRS)
389
dnl Generate list of files to be processed by xgettext which will
390
dnl be included in po/Makefile.
391
test -d po || mkdir po
392
if test "x$srcdir" != "x."; then
393
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
394
posrcprefix="$srcdir/"
396
posrcprefix="../$srcdir/"
402
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
403
< $srcdir/po/POTFILES.in > po/POTFILES
406
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
407
# -------------------------------
408
# Define VARIABLE to the location where catalog files will
409
# be installed by po/Makefile.
410
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
411
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
412
glib_save_prefix="$prefix"
413
glib_save_exec_prefix="$exec_prefix"
414
glib_save_datarootdir="$datarootdir"
415
test "x$prefix" = xNONE && prefix=$ac_default_prefix
416
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
417
datarootdir=`eval echo "${datarootdir}"`
418
if test "x$CATOBJEXT" = "x.mo" ; then
419
localedir=`eval echo "${libdir}/locale"`
421
localedir=`eval echo "${datadir}/locale"`
423
prefix="$glib_save_prefix"
424
exec_prefix="$glib_save_exec_prefix"
425
datarootdir="$glib_save_datarootdir"
426
AC_DEFINE_UNQUOTED($1, "$localedir",
427
[Define the location where the catalogs will be installed])
431
dnl Now the definitions that aclocal will find
433
ifdef(glib_configure_in,[],[
434
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
435
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
438
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
440
# Create a temporary file with TEST-FILE as its contents and pass the
441
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
442
# 0 and perform ACTION-IF-FAIL for any other exit status.
443
AC_DEFUN([GLIB_RUN_PROG],
444
[cat >conftest.foo <<_ACEOF
447
if AC_RUN_LOG([$1 conftest.foo]); then
448
m4_ifval([$3], [$3], [:])
449
m4_ifvaln([$4], [else $4])dnl
450
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
451
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
458
dnl GNOME_COMMON_INIT
460
AC_DEFUN([GNOME_COMMON_INIT],
462
dnl this macro should come after AC_CONFIG_MACRO_DIR
463
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
465
dnl ensure that when the Automake generated makefile calls aclocal,
466
dnl it honours the $ACLOCAL_FLAGS environment variable
467
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
468
if test -n "$ac_macro_dir"; then
469
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
472
AC_SUBST([ACLOCAL_AMFLAGS])
475
AC_DEFUN([GNOME_DEBUG_CHECK],
477
AC_ARG_ENABLE([debug],
478
AC_HELP_STRING([--enable-debug],
479
[turn on debugging]),,
482
if test x$enable_debug = xyes ; then
483
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
484
[Enable additional debugging at the expense of performance and size])
488
dnl GNOME_MAINTAINER_MODE_DEFINES ()
489
dnl define DISABLE_DEPRECATED
491
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
493
AC_REQUIRE([AM_MAINTAINER_MODE])
495
if test $USE_MAINTAINER_MODE = yes; then
496
DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
498
DISABLE_DEPRECATED=""
500
AC_SUBST(DISABLE_DEPRECATED)
503
dnl GNOME_COMPILE_WARNINGS
504
dnl Turn on many useful compiler warnings
505
dnl For now, only works on GCC
506
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
507
dnl ******************************
508
dnl More compiler warnings
509
dnl ******************************
511
AC_ARG_ENABLE(compile-warnings,
512
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
513
[Turn on compiler warnings]),,
514
[enable_compile_warnings="m4_default([$1],[yes])"])
517
if test "x$GCC" != xyes; then
518
enable_compile_warnings=no
522
realsave_CFLAGS="$CFLAGS"
524
case "$enable_compile_warnings" in
529
warning_flags="-Wall"
532
warning_flags="-Wall -Wmissing-prototypes"
535
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
536
CFLAGS="$warning_flags $CFLAGS"
537
for option in -Wno-sign-compare; do
538
SAVE_CFLAGS="$CFLAGS"
539
CFLAGS="$CFLAGS $option"
540
AC_MSG_CHECKING([whether gcc understands $option])
541
AC_TRY_COMPILE([], [],
544
CFLAGS="$SAVE_CFLAGS"
545
AC_MSG_RESULT($has_option)
546
if test $has_option = yes; then
547
warning_flags="$warning_flags $option"
553
if test "$enable_compile_warnings" = "error" ; then
554
warning_flags="$warning_flags -Werror"
558
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
561
CFLAGS="$realsave_CFLAGS"
562
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
563
AC_MSG_RESULT($warning_flags)
566
AC_HELP_STRING([--enable-iso-c],
567
[Try to warn if code is not ISO C ]),,
570
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
572
if test "x$enable_iso_c" != "xno"; then
573
if test "x$GCC" = "xyes"; then
575
*[\ \ ]-ansi[\ \ ]*) ;;
576
*) complCFLAGS="$complCFLAGS -ansi" ;;
579
*[\ \ ]-pedantic[\ \ ]*) ;;
580
*) complCFLAGS="$complCFLAGS -pedantic" ;;
584
AC_MSG_RESULT($complCFLAGS)
586
WARN_CFLAGS="$warning_flags $complCFLAGS"
587
AC_SUBST(WARN_CFLAGS)
590
dnl For C++, do basically the same thing.
592
AC_DEFUN([GNOME_CXX_WARNINGS],[
593
AC_ARG_ENABLE(cxx-warnings,
594
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
595
[Turn on compiler warnings.]),,
596
[enable_cxx_warnings="m4_default([$1],[minimum])"])
598
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
600
if test "x$GXX" != xyes; then
601
enable_cxx_warnings=no
603
if test "x$enable_cxx_warnings" != "xno"; then
604
if test "x$GXX" = "xyes"; then
605
case " $CXXFLAGS " in
606
*[\ \ ]-Wall[\ \ ]*) ;;
607
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
610
## -W is not all that useful. And it cannot be controlled
611
## with individual -Wno-xxx flags, unlike -Wall
612
if test "x$enable_cxx_warnings" = "xyes"; then
613
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
617
AC_MSG_RESULT($warnCXXFLAGS)
619
AC_ARG_ENABLE(iso-cxx,
620
AC_HELP_STRING([--enable-iso-cxx],
621
[Try to warn if code is not ISO C++ ]),,
624
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
626
if test "x$enable_iso_cxx" != "xno"; then
627
if test "x$GXX" = "xyes"; then
628
case " $CXXFLAGS " in
629
*[\ \ ]-ansi[\ \ ]*) ;;
630
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
633
case " $CXXFLAGS " in
634
*[\ \ ]-pedantic[\ \ ]*) ;;
635
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
639
AC_MSG_RESULT($complCXXFLAGS)
641
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
642
AC_SUBST(WARN_CXXFLAGS)
645
dnl -*- mode: autoconf -*-
650
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
651
AC_DEFUN([GTK_DOC_CHECK],
653
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
654
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
655
dnl for overriding the documentation installation directory
656
AC_ARG_WITH([html-dir],
657
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
658
[with_html_dir='${datadir}/gtk-doc/html'])
659
HTML_DIR="$with_html_dir"
662
dnl enable/disable documentation building
663
AC_ARG_ENABLE([gtk-doc],
664
AS_HELP_STRING([--enable-gtk-doc],
665
[use gtk-doc to build documentation [[default=no]]]),,
668
if test x$enable_gtk_doc = xyes; then
670
[PKG_CHECK_EXISTS([gtk-doc],,
671
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
672
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
673
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
676
AC_MSG_CHECKING([whether to build gtk-doc documentation])
677
AC_MSG_RESULT($enable_gtk_doc)
679
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
681
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
682
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
23
686
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
24
687
# serial 40 IT_PROG_INTLTOOL
25
AC_DEFUN([IT_PROG_INTLTOOL],
688
AC_DEFUN([IT_PROG_INTLTOOL], [
690
AC_REQUIRE([AM_NLS])dnl
28
692
case "$am__api_version" in
309
1058
# Sed substitution that helps us do robust quoting. It backslashifies
310
1059
# metacharacters that are still active within double-quoted strings.
311
Xsed='sed -e 1s/^X//'
312
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1060
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
314
1062
# Same as above, but do not quote variable references.
315
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1063
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
317
1065
# Sed substitution to delay expansion of an escaped shell variable in a
318
1066
# double_quote_subst'ed string.
319
1067
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1069
# Sed substitution to delay expansion of an escaped single quote.
1070
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
321
1072
# Sed substitution to avoid accidental globbing in evaled expressions
322
1073
no_glob_subst='s/\*/\\\*/g'
327
1075
# Global variables:
328
default_ofile=libtool
329
1077
can_build_shared=yes
331
1079
# All known linkers require a `.a' archive for static linking (except MSVC,
332
1080
# which needs '.lib').
334
ltmain="$ac_aux_dir/ltmain.sh"
335
ofile="$default_ofile"
336
1083
with_gnu_ld="$lt_cv_prog_gnu_ld"
338
AC_CHECK_TOOL(AR, ar, false)
339
AC_CHECK_TOOL(RANLIB, ranlib, :)
340
AC_CHECK_TOOL(STRIP, strip, :)
343
1086
old_CFLAGS="$CFLAGS"
345
1088
# Set sane defaults for various variables
346
test -z "$AR" && AR=ar
347
test -z "$AR_FLAGS" && AR_FLAGS=cru
348
test -z "$AS" && AS=as
349
1089
test -z "$CC" && CC=cc
350
1090
test -z "$LTCC" && LTCC=$CC
351
1091
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
352
test -z "$DLLTOOL" && DLLTOOL=dlltool
353
1092
test -z "$LD" && LD=ld
354
test -z "$LN_S" && LN_S="ln -s"
355
test -z "$MAGIC_CMD" && MAGIC_CMD=file
356
test -z "$NM" && NM=nm
357
test -z "$SED" && SED=sed
358
test -z "$OBJDUMP" && OBJDUMP=objdump
359
test -z "$RANLIB" && RANLIB=:
360
test -z "$STRIP" && STRIP=:
361
1093
test -z "$ac_objext" && ac_objext=o
363
# Determine commands to create old-style static archives.
364
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
365
old_postinstall_cmds='chmod 644 $oldlib'
366
old_postuninstall_cmds=
368
if test -n "$RANLIB"; then
371
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
374
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
377
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
380
1095
_LT_CC_BASENAME([$compiler])
382
1097
# Only perform the check for file, if the check method requires it
1098
test -z "$MAGIC_CMD" && MAGIC_CMD=file
383
1099
case $deplibs_check_method in
385
1101
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
391
_LT_REQUIRED_DARWIN_CHECKS
393
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
394
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
395
enable_win32_dll=yes, enable_win32_dll=no)
397
AC_ARG_ENABLE([libtool-lock],
398
[AC_HELP_STRING([--disable-libtool-lock],
399
[avoid locking (might break parallel builds)])])
400
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
403
[AC_HELP_STRING([--with-pic],
404
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
405
[pic_mode="$withval"],
407
test -z "$pic_mode" && pic_mode=default
409
1107
# Use C for the default configuration in the libtool script
411
AC_LIBTOOL_LANG_C_CONFIG
416
# _LT_AC_SYS_COMPILER
1108
LT_SUPPORTED_TAG([CC])
1110
_LT_LANG_DEFAULT_CONFIG
1117
# Note that this code is called both from `configure', and `config.status'
1118
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1119
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1120
# so we pass a copy along to make sure it has a sensible value anyway.
1121
m4_defun([_LT_PROG_LTMAIN],
1122
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1123
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1124
ltmain="$ac_aux_dir/ltmain.sh"
1129
# So that we can recreate a full libtool script including additional
1130
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1131
# in macros and then make a single call at the end using the `libtool'
1135
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1136
# ----------------------------------------
1137
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1138
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1140
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1145
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1148
# _LT_CONFIG_LIBTOOL([COMMANDS])
1149
# ------------------------------
1150
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1151
m4_define([_LT_CONFIG_LIBTOOL],
1153
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1158
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1161
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1162
# -----------------------------------------------------
1163
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1164
[_LT_CONFIG_LIBTOOL([$1])
1165
_LT_CONFIG_LIBTOOL_INIT([$2])
1169
# _LT_FORMAT_COMMENT([COMMENT])
1170
# -----------------------------
1171
# Add leading comment marks to the start of each line, and a trailing
1172
# full-stop to the whole comment if one is not present already.
1173
m4_define([_LT_FORMAT_COMMENT],
1175
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1176
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1183
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1184
# -------------------------------------------------------------------
1185
# CONFIGNAME is the name given to the value in the libtool script.
1186
# VARNAME is the (base) name used in the configure script.
1187
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1188
# VARNAME. Any other value will be used directly.
1189
m4_define([_LT_DECL],
1190
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1191
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1192
[m4_ifval([$1], [$1], [$2])])
1193
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1195
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1196
lt_dict_add_subkey([lt_decl_dict], [$2],
1197
[tagged?], [m4_ifval([$5], [yes], [no])])])
1201
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1202
# --------------------------------------------------------
1203
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1206
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1207
# ------------------------------------------------
1208
m4_define([lt_decl_tag_varnames],
1209
[_lt_decl_filter([tagged?], [yes], $@)])
1212
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1213
# ---------------------------------------------------------
1214
m4_define([_lt_decl_filter],
1216
[0], [m4_fatal([$0: too few arguments: $#])],
1217
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1218
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1219
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1220
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1224
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1225
# --------------------------------------------------
1226
m4_define([lt_decl_quote_varnames],
1227
[_lt_decl_filter([value], [1], $@)])
1230
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1231
# ---------------------------------------------------
1232
m4_define([lt_decl_dquote_varnames],
1233
[_lt_decl_filter([value], [2], $@)])
1236
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1237
# ---------------------------------------------------
1238
m4_define([lt_decl_varnames_tagged],
1239
[m4_assert([$# <= 2])dnl
1240
_$0(m4_quote(m4_default([$1], [[, ]])),
1241
m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1242
m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1243
m4_define([_lt_decl_varnames_tagged],
1244
[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1247
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1248
# ------------------------------------------------
1249
m4_define([lt_decl_all_varnames],
1250
[_$0(m4_quote(m4_default([$1], [[, ]])),
1252
m4_quote(lt_decl_varnames),
1253
m4_quote(m4_shift($@))))[]dnl
1255
m4_define([_lt_decl_all_varnames],
1256
[lt_join($@, lt_decl_varnames_tagged([$1],
1257
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1261
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1262
# ------------------------------------
1263
# Quote a variable value, and forward it to `config.status' so that its
1264
# declaration there will have the same value as in `configure'. VARNAME
1265
# must have a single quote delimited value for this to work.
1266
m4_define([_LT_CONFIG_STATUS_DECLARE],
1267
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1270
# _LT_CONFIG_STATUS_DECLARATIONS
1271
# ------------------------------
1272
# We delimit libtool config variables with single quotes, so when
1273
# we write them to config.status, we have to be sure to quote all
1274
# embedded single quotes properly. In configure, this macro expands
1275
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1277
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1278
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1279
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1280
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1285
# Output comment and list of tags supported by the script
1286
m4_defun([_LT_LIBTOOL_TAGS],
1287
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1288
available_tags="_LT_TAGS"dnl
1292
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1293
# -----------------------------------
1294
# Extract the dictionary values for VARNAME (optionally with TAG) and
1295
# expand to a commented shell variable setting:
1297
# # Some comment about what VAR is for.
1298
# visible_name=$lt_internal_name
1299
m4_define([_LT_LIBTOOL_DECLARE],
1300
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1301
[description])))[]dnl
1302
m4_pushdef([_libtool_name],
1303
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1304
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1305
[0], [_libtool_name=[$]$1],
1306
[1], [_libtool_name=$lt_[]$1],
1307
[2], [_libtool_name=$lt_[]$1],
1308
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1309
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1313
# _LT_LIBTOOL_CONFIG_VARS
1314
# -----------------------
1315
# Produce commented declarations of non-tagged libtool config variables
1316
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1317
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1318
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1319
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1320
[m4_foreach([_lt_var],
1321
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1322
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1325
# _LT_LIBTOOL_TAG_VARS(TAG)
1326
# -------------------------
1327
m4_define([_LT_LIBTOOL_TAG_VARS],
1328
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1329
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1332
# _LT_TAGVAR(VARNAME, [TAGNAME])
1333
# ------------------------------
1334
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1337
# _LT_CONFIG_COMMANDS
417
1338
# -------------------
418
AC_DEFUN([_LT_AC_SYS_COMPILER],
1339
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1340
# variables for single and double quote escaping we saved from calls
1341
# to _LT_DECL, we can put quote escaped variables declarations
1342
# into `config.status', and then the shell code to quote escape them in
1343
# for loops in `config.status'. Finally, any additional code accumulated
1344
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1345
m4_defun([_LT_CONFIG_COMMANDS],
1346
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1347
dnl If the libtool generation code has been placed in $CONFIG_LT,
1348
dnl instead of duplicating it all over again into config.status,
1349
dnl then we will have config.status run $CONFIG_LT later, so it
1350
dnl needs to know what name is stored there:
1351
[AC_CONFIG_COMMANDS([libtool],
1352
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1353
dnl If the libtool generation code is destined for config.status,
1354
dnl expand the accumulated commands and init code now:
1355
[AC_CONFIG_COMMANDS([libtool],
1356
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1357
])#_LT_CONFIG_COMMANDS
1361
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1364
# The HP-UX ksh and POSIX shell print the target directory to stdout
1366
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1368
sed_quote_subst='$sed_quote_subst'
1369
double_quote_subst='$double_quote_subst'
1370
delay_variable_subst='$delay_variable_subst'
1371
_LT_CONFIG_STATUS_DECLARATIONS
1373
LTCFLAGS='$LTCFLAGS'
1374
compiler='$compiler_DEFAULT'
1376
# Quote evaled strings.
1377
for var in lt_decl_all_varnames([[ \
1378
]], lt_decl_quote_varnames); do
1379
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1380
*[[\\\\\\\`\\"\\\$]]*)
1381
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1384
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1389
# Double-quote double-evaled strings.
1390
for var in lt_decl_all_varnames([[ \
1391
]], lt_decl_dquote_varnames); do
1392
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1393
*[[\\\\\\\`\\"\\\$]]*)
1394
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1397
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1402
# Fix-up fallback echo if it was mangled by the above quoting rules.
1404
*'\\\[$]0 --fallback-echo"')dnl "
1405
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1409
_LT_OUTPUT_LIBTOOL_INIT
1415
# This macro allows early generation of the libtool script (before
1416
# AC_OUTPUT is called), incase it is used in configure for compilation
1418
AC_DEFUN([LT_OUTPUT],
1419
[: ${CONFIG_LT=./config.lt}
1420
AC_MSG_NOTICE([creating $CONFIG_LT])
1421
cat >"$CONFIG_LT" <<_LTEOF
1423
# Generated by $as_me.
1424
# Run this file to recreate a libtool stub with the current configuration.
1427
SHELL=\${CONFIG_SHELL-$SHELL}
1430
cat >>"$CONFIG_LT" <<\_LTEOF
1434
exec AS_MESSAGE_FD>&1
1435
exec AS_MESSAGE_LOG_FD>>config.log
1438
AS_BOX([Running $as_me.])
1439
} >&AS_MESSAGE_LOG_FD
1442
\`$as_me' creates a local libtool stub from the current configuration,
1443
for use in further configure time tests before the real libtool is
1446
Usage: $[0] [[OPTIONS]]
1448
-h, --help print this help, then exit
1449
-V, --version print version number, then exit
1450
-q, --quiet do not print progress messages
1451
-d, --debug don't remove temporary files
1453
Report bugs to <bug-libtool@gnu.org>."
1456
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1457
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1458
configured by $[0], generated by m4_PACKAGE_STRING.
1460
Copyright (C) 2008 Free Software Foundation, Inc.
1461
This config.lt script is free software; the Free Software Foundation
1462
gives unlimited permision to copy, distribute and modify it."
1464
while test $[#] != 0
1467
--version | --v* | -V )
1468
echo "$lt_cl_version"; exit 0 ;;
1469
--help | --h* | -h )
1470
echo "$lt_cl_help"; exit 0 ;;
1471
--debug | --d* | -d )
1473
--quiet | --q* | --silent | --s* | -q )
1476
-*) AC_MSG_ERROR([unrecognized option: $[1]
1477
Try \`$[0] --help' for more information.]) ;;
1479
*) AC_MSG_ERROR([unrecognized argument: $[1]
1480
Try \`$[0] --help' for more information.]) ;;
1485
if $lt_cl_silent; then
1486
exec AS_MESSAGE_FD>/dev/null
1490
cat >>"$CONFIG_LT" <<_LTEOF
1491
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1494
cat >>"$CONFIG_LT" <<\_LTEOF
1495
AC_MSG_NOTICE([creating $ofile])
1496
_LT_OUTPUT_LIBTOOL_COMMANDS
1499
chmod +x "$CONFIG_LT"
1501
# configure is writing to config.log, but config.lt does its own redirection,
1502
# appending to config.log, which fails on DOS, as config.log is still kept
1503
# open by configure. Here we exec the FD to /dev/null, effectively closing
1504
# config.log, so it can be properly (re)opened and appended to by config.lt.
1505
if test "$no_create" != yes; then
1507
test "$silent" = yes &&
1508
lt_config_lt_args="$lt_config_lt_args --quiet"
1509
exec AS_MESSAGE_LOG_FD>/dev/null
1510
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1511
exec AS_MESSAGE_LOG_FD>>config.log
1512
$lt_cl_success || AS_EXIT(1)
1519
# If TAG is the built-in tag, create an initial libtool script with a
1520
# default configuration from the untagged config vars. Otherwise add code
1521
# to config.status for appending the configuration named by TAG from the
1522
# matching tagged config vars.
1523
m4_defun([_LT_CONFIG],
1524
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1525
_LT_CONFIG_SAVE_COMMANDS([
1526
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1527
m4_if(_LT_TAG, [C], [
1528
# See if we are running on zsh, and set the options which allow our
1529
# commands through without removal of \ escapes.
1530
if test -n "${ZSH_VERSION+set}" ; then
1531
setopt NO_GLOB_SUBST
1535
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1538
cat <<_LT_EOF >> "$cfgfile"
1541
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1542
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1543
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1544
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1549
# ### BEGIN LIBTOOL CONFIG
1550
_LT_LIBTOOL_CONFIG_VARS
1551
_LT_LIBTOOL_TAG_VARS
1552
# ### END LIBTOOL CONFIG
1558
cat <<\_LT_EOF >> "$cfgfile"
1559
# AIX sometimes has problems with the GCC collect2 program. For some
1560
# reason, if we set the COLLECT_NAMES environment variable, the problems
1561
# vanish in a puff of smoke.
1562
if test "X${COLLECT_NAMES+set}" != Xset; then
1564
export COLLECT_NAMES
1572
# We use sed instead of cat because bash on DJGPP gets confused if
1573
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1574
# text mode, it properly converts lines to CR/LF. This bash problem
1575
# is reportedly fixed, but why not run on old versions too?
1576
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1577
|| (rm -f "$cfgfile"; exit 1)
1579
_LT_PROG_XSI_SHELLFNS
1581
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1582
|| (rm -f "$cfgfile"; exit 1)
1584
mv -f "$cfgfile" "$ofile" ||
1585
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1588
[cat <<_LT_EOF >> "$ofile"
1590
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1591
dnl in a comment (ie after a #).
1592
# ### BEGIN LIBTOOL TAG CONFIG: $1
1593
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1594
# ### END LIBTOOL TAG CONFIG: $1
1601
TIMESTAMP='$TIMESTAMP'
1603
ofile='$ofile'], [])
1604
])dnl /_LT_CONFIG_SAVE_COMMANDS
1608
# LT_SUPPORTED_TAG(TAG)
1609
# ---------------------
1610
# Trace this macro to discover what tags are supported by the libtool
1611
# --tag option, using:
1612
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1613
AC_DEFUN([LT_SUPPORTED_TAG], [])
1616
# C support is built-in for now
1617
m4_define([_LT_LANG_C_enabled], [])
1618
m4_define([_LT_TAGS], [])
1623
# Enable libtool support for the given language if not already enabled.
1625
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1628
[C++], [_LT_LANG(CXX)],
1629
[Java], [_LT_LANG(GCJ)],
1630
[Fortran 77], [_LT_LANG(F77)],
1631
[Fortran], [_LT_LANG(FC)],
1632
[Windows Resource], [_LT_LANG(RC)],
1633
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1635
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1639
# _LT_LANG(LANGNAME)
1640
# ------------------
1641
m4_defun([_LT_LANG],
1642
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1643
[LT_SUPPORTED_TAG([$1])dnl
1644
m4_append([_LT_TAGS], [$1 ])dnl
1645
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1646
_LT_LANG_$1_CONFIG($1)])dnl
1650
# _LT_LANG_DEFAULT_CONFIG
1651
# -----------------------
1652
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1653
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1655
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1657
AC_PROVIDE_IFELSE([AC_PROG_F77],
1659
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1661
AC_PROVIDE_IFELSE([AC_PROG_FC],
1663
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1665
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1666
dnl pulling things in needlessly.
1667
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1669
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1671
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1673
[m4_ifdef([AC_PROG_GCJ],
1674
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1675
m4_ifdef([A][M_PROG_GCJ],
1676
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1677
m4_ifdef([LT_PROG_GCJ],
1678
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1680
AC_PROVIDE_IFELSE([LT_PROG_RC],
1682
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1683
])# _LT_LANG_DEFAULT_CONFIG
1686
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1687
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1688
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1689
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1690
dnl aclocal-1.4 backwards compatibility:
1691
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1692
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1693
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1694
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1699
m4_defun([_LT_TAG_COMPILER],
419
1700
[AC_REQUIRE([AC_PROG_CC])dnl
1702
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1703
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1704
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1705
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
421
1707
# If no C compiler was specified, use CC.
422
1708
LTCC=${LTCC-"$CC"}
2831
4126
AC_CHECK_LIB(m, cos, LIBM="-lm")
2837
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2838
# -----------------------------------
2839
# sets LIBLTDL to the link flags for the libltdl convenience library and
2840
# LTDLINCL to the include flags for the libltdl header and adds
2841
# --enable-ltdl-convenience to the configure arguments. Note that
2842
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2843
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2844
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2845
# (note the single quotes!). If your package is not flat and you're not
2846
# using automake, define top_builddir and top_srcdir appropriately in
2848
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2849
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2850
case $enable_ltdl_convenience in
2851
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2852
"") enable_ltdl_convenience=yes
2853
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2855
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2856
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2857
# For backwards non-gettext consistent compatibility...
2859
])# AC_LIBLTDL_CONVENIENCE
2862
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2863
# -----------------------------------
2864
# sets LIBLTDL to the link flags for the libltdl installable library and
2865
# LTDLINCL to the include flags for the libltdl header and adds
2866
# --enable-ltdl-install to the configure arguments. Note that
2867
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2868
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2869
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2870
# '${top_srcdir}/' (note the single quotes!). If your package is not
2871
# flat and you're not using automake, define top_builddir and top_srcdir
2872
# appropriately in the Makefiles.
2873
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2874
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2875
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2876
AC_CHECK_LIB(ltdl, lt_dlinit,
2877
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2878
[if test x"$enable_ltdl_install" = xno; then
2879
AC_MSG_WARN([libltdl not installed, but installation disabled])
2881
enable_ltdl_install=yes
2884
if test x"$enable_ltdl_install" = x"yes"; then
2885
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2886
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2887
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2889
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2893
# For backwards non-gettext consistent compatibility...
2895
])# AC_LIBLTDL_INSTALLABLE
2900
# enable support for C++ libraries
2901
AC_DEFUN([AC_LIBTOOL_CXX],
2902
[AC_REQUIRE([_LT_AC_LANG_CXX])
2908
AC_DEFUN([_LT_AC_LANG_CXX],
2909
[AC_REQUIRE([AC_PROG_CXX])
2910
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2911
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2914
# _LT_AC_PROG_CXXCPP
2915
# ------------------
2916
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2918
AC_REQUIRE([AC_PROG_CXX])
2919
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2920
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2921
(test "X$CXX" != "Xg++"))) ; then
2924
])# _LT_AC_PROG_CXXCPP
2928
# enable support for Fortran 77 libraries
2929
AC_DEFUN([AC_LIBTOOL_F77],
2930
[AC_REQUIRE([_LT_AC_LANG_F77])
2936
AC_DEFUN([_LT_AC_LANG_F77],
2937
[AC_REQUIRE([AC_PROG_F77])
2938
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2944
# enable support for GCJ libraries
2945
AC_DEFUN([AC_LIBTOOL_GCJ],
2946
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2952
AC_DEFUN([_LT_AC_LANG_GCJ],
2953
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2954
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2955
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2956
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2957
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2958
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2959
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2965
# enable support for Windows resource files
2966
AC_DEFUN([AC_LIBTOOL_RC],
2967
[AC_REQUIRE([LT_AC_PROG_RC])
2968
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2972
# AC_LIBTOOL_LANG_C_CONFIG
2973
# ------------------------
2974
# Ensure that the configuration vars for the C compiler are
2975
# suitably defined. Those variables are subsequently used by
2976
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2977
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2978
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2982
# Source file extension for C test sources.
2985
# Object file extension for compiled C test sources.
2987
_LT_AC_TAGVAR(objext, $1)=$objext
2989
# Code to be used in simple compile tests
2990
lt_simple_compile_test_code="int some_variable = 0;"
2992
# Code to be used in simple link tests
2993
lt_simple_link_test_code='int main(){return(0);}'
2997
# save warnings/boilerplate of simple test code
2998
_LT_COMPILER_BOILERPLATE
2999
_LT_LINKER_BOILERPLATE
3001
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
3002
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3003
AC_LIBTOOL_PROG_CC_C_O($1)
3004
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3005
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3006
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3007
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3008
AC_LIBTOOL_SYS_LIB_STRIP
3009
AC_LIBTOOL_DLOPEN_SELF
3011
# Report which library types will actually be built
3012
AC_MSG_CHECKING([if libtool supports shared libraries])
3013
AC_MSG_RESULT([$can_build_shared])
3015
AC_MSG_CHECKING([whether to build shared libraries])
3016
test "$can_build_shared" = "no" && enable_shared=no
3018
# On AIX, shared libraries and static libraries use the same namespace, and
3019
# are all built from PIC.
3022
test "$enable_shared" = yes && enable_static=no
3023
if test -n "$RANLIB"; then
3024
archive_cmds="$archive_cmds~\$RANLIB \$lib"
3025
postinstall_cmds='$RANLIB $lib'
3030
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3031
test "$enable_shared" = yes && enable_static=no
3035
AC_MSG_RESULT([$enable_shared])
3037
AC_MSG_CHECKING([whether to build static libraries])
3038
# Make sure either enable_shared or enable_static is yes.
3039
test "$enable_shared" = yes || enable_static=yes
3040
AC_MSG_RESULT([$enable_static])
3042
AC_LIBTOOL_CONFIG($1)
3046
])# AC_LIBTOOL_LANG_C_CONFIG
3049
# AC_LIBTOOL_LANG_CXX_CONFIG
3050
# --------------------------
3051
# Ensure that the configuration vars for the C compiler are
3052
# suitably defined. Those variables are subsequently used by
3053
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3054
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
3055
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
3057
AC_REQUIRE([AC_PROG_CXX])
3058
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
3060
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3061
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
3062
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3063
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3064
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3065
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3066
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3067
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3068
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3069
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3070
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3071
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
3072
_LT_AC_TAGVAR(module_cmds, $1)=
3073
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
3074
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3075
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3076
_LT_AC_TAGVAR(no_undefined_flag, $1)=
3077
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3078
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3080
# Dependencies to place before and after the object being linked:
3081
_LT_AC_TAGVAR(predep_objects, $1)=
3082
_LT_AC_TAGVAR(postdep_objects, $1)=
3083
_LT_AC_TAGVAR(predeps, $1)=
3084
_LT_AC_TAGVAR(postdeps, $1)=
3085
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
3086
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
3088
# Source file extension for C++ test sources.
3091
# Object file extension for compiled C++ test sources.
3093
_LT_AC_TAGVAR(objext, $1)=$objext
3095
# Code to be used in simple compile tests
3096
lt_simple_compile_test_code="int some_variable = 0;"
3098
# Code to be used in simple link tests
3099
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
3101
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
3104
# save warnings/boilerplate of simple test code
3105
_LT_COMPILER_BOILERPLATE
3106
_LT_LINKER_BOILERPLATE
3108
# Allow CC to be a program name with arguments.
3113
lt_save_with_gnu_ld=$with_gnu_ld
3114
lt_save_path_LD=$lt_cv_path_LD
3115
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
3116
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
3118
$as_unset lt_cv_prog_gnu_ld
3120
if test -n "${lt_cv_path_LDCXX+set}"; then
3121
lt_cv_path_LD=$lt_cv_path_LDCXX
3123
$as_unset lt_cv_path_LD
3125
test -z "${LDCXX+set}" || LD=$LDCXX
3128
_LT_AC_TAGVAR(compiler, $1)=$CC
3129
_LT_CC_BASENAME([$compiler])
3131
# We don't want -fno-exception wen compiling C++ code, so set the
3132
# no_builtin_flag separately
3133
if test "$GXX" = yes; then
3134
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3136
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3139
if test "$GXX" = yes; then
3140
# Set up default GNU C++ configuration
3144
# Check if GNU C++ uses GNU ld as the underlying linker, since the
3145
# archiving commands below assume that GNU ld is being used.
3146
if test "$with_gnu_ld" = yes; then
3147
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3148
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3150
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3151
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3153
# If archive_cmds runs LD, not CC, wlarc should be empty
3154
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
3155
# investigate it a little bit more. (MM)
3158
# ancient GNU ld didn't support --whole-archive et. al.
3159
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
3160
grep 'no-whole-archive' > /dev/null; then
3161
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3163
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3169
# A generic and very simple default shared library creation
3170
# command for GNU C++ for the case where it uses the native
3171
# linker, instead of GNU ld. If possible, this setting should
3172
# overridden to take advantage of the native linker features on
3173
# the platform it is being used on.
3174
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3177
# Commands to make compiler produce verbose output that lists
3178
# what "hidden" libraries, object files and flags are used when
3179
# linking a shared library.
3180
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3188
# PORTME: fill in a description of your system's C++ link characteristics
3189
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3190
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3193
# FIXME: insert proper C++ library support
3194
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3197
if test "$host_cpu" = ia64; then
3198
# On IA64, the linker does run time linking by default, so we don't
3199
# have to do anything special.
3200
aix_use_runtimelinking=no
3201
exp_sym_flag='-Bexport'
3204
aix_use_runtimelinking=no
3206
# Test if we are trying to use run time linking or normal
3207
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3208
# need to do runtime linking.
3209
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3210
for ld_flag in $LDFLAGS; do
3213
aix_use_runtimelinking=yes
3221
exp_sym_flag='-bexport'
3222
no_entry_flag='-bnoentry'
3225
# When large executables or shared objects are built, AIX ld can
3226
# have problems creating the table of contents. If linking a library
3227
# or program results in "error TOC overflow" add -mminimal-toc to
3228
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3229
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3231
_LT_AC_TAGVAR(archive_cmds, $1)=''
3232
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3233
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3234
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3236
if test "$GXX" = yes; then
3237
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3238
# We only want to do this on AIX 4.2 and lower, the check
3239
# below for broken collect2 doesn't work under 4.3+
3240
collect2name=`${CC} -print-prog-name=collect2`
3241
if test -f "$collect2name" && \
3242
strings "$collect2name" | grep resolve_lib_name >/dev/null
3244
# We have reworked collect2
3247
# We have old collect2
3248
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3249
# It fails to find uninstalled libraries when the uninstalled
3250
# path is not listed in the libpath. Setting hardcode_minus_L
3251
# to unsupported forces relinking
3252
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3253
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3254
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3258
shared_flag='-shared'
3259
if test "$aix_use_runtimelinking" = yes; then
3260
shared_flag="$shared_flag "'${wl}-G'
3264
if test "$host_cpu" = ia64; then
3265
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3266
# chokes on -Wl,-G. The following line is correct:
3269
if test "$aix_use_runtimelinking" = yes; then
3270
shared_flag='${wl}-G'
3272
shared_flag='${wl}-bM:SRE'
3277
# It seems that -bexpall does not export symbols beginning with
3278
# underscore (_), so it is better to generate a list of symbols to export.
3279
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3280
if test "$aix_use_runtimelinking" = yes; then
3281
# Warning - without using the other runtime loading flags (-brtl),
3282
# -berok will link without error, but may produce a broken library.
3283
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3284
# Determine the default libpath from the value encoded in an empty executable.
3285
_LT_AC_SYS_LIBPATH_AIX
3286
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3288
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
3290
if test "$host_cpu" = ia64; then
3291
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3292
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3293
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
3295
# Determine the default libpath from the value encoded in an empty executable.
3296
_LT_AC_SYS_LIBPATH_AIX
3297
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3298
# Warning - without using the other run time loading flags,
3299
# -berok will link without error, but may produce a broken library.
3300
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3301
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3302
# Exported symbols can be pulled into shared objects from archives
3303
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3304
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3305
# This is similar to how AIX traditionally builds its shared libraries.
3306
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
3312
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3313
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3314
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3315
# support --undefined. This deserves some investigation. FIXME
3316
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3318
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3323
case $cc_basename in
3325
# FIXME: insert proper C++ library support
3326
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3331
cygwin* | mingw* | pw32*)
3332
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3333
# as there is no search path for DLLs.
3334
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3335
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3336
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3337
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3339
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3340
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3341
# If the export-symbols file already is a .def file (1st line
3342
# is EXPORTS), use it as is; otherwise, prepend...
3343
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3344
cp $export_symbols $output_objdir/$soname.def;
3346
echo EXPORTS > $output_objdir/$soname.def;
3347
cat $export_symbols >> $output_objdir/$soname.def;
3349
$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'
3351
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3354
darwin* | rhapsody*)
3355
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3356
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3357
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3358
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3359
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3360
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3361
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3362
if test "$GXX" = yes ; then
3363
output_verbose_link_cmd='echo'
3364
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
3365
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3366
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
3367
_LT_AC_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
3368
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3369
_LT_AC_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
3370
_LT_AC_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
3373
case $cc_basename in
3375
output_verbose_link_cmd='echo'
3376
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
3377
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3378
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3379
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3380
_LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
3383
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3390
case $cc_basename in
3392
# FIXME: insert proper C++ library support
3393
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3396
# Green Hills C++ Compiler
3397
# FIXME: insert proper C++ library support
3398
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3401
# FIXME: insert proper C++ library support
3402
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3407
# C++ shared libraries reported to be fairly broken before switch to ELF
3408
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3411
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3413
freebsd* | dragonfly*)
3414
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3416
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3421
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3422
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3423
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3424
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3425
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3426
# but as the default
3427
# location of the library.
3429
case $cc_basename in
3431
# FIXME: insert proper C++ library support
3432
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3435
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3436
# Commands to make compiler produce verbose output that lists
3437
# what "hidden" libraries, object files and flags are used when
3438
# linking a shared library.
3440
# There doesn't appear to be a way to prevent this compiler from
3441
# explicitly linking system object files so we need to strip them
3442
# from the output so that they don't get included in the library
3444
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3447
if test "$GXX" = yes; then
3448
_LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
3450
# FIXME: insert proper C++ library support
3451
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3457
if test $with_gnu_ld = no; then
3458
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3459
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3464
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3470
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3471
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3474
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3475
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3476
# but as the default
3477
# location of the library.
3481
case $cc_basename in
3483
# FIXME: insert proper C++ library support
3484
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3489
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3492
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3495
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3498
# Commands to make compiler produce verbose output that lists
3499
# what "hidden" libraries, object files and flags are used when
3500
# linking a shared library.
3502
# There doesn't appear to be a way to prevent this compiler from
3503
# explicitly linking system object files so we need to strip them
3504
# from the output so that they don't get included in the library
3506
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3509
if test "$GXX" = yes; then
3510
if test $with_gnu_ld = no; then
3513
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3516
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3519
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3524
# FIXME: insert proper C++ library support
3525
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3531
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3532
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3533
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3534
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3535
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3536
# Instead, shared libraries are loaded at an image base (0x10000000 by
3537
# default) and relocated if they conflict, which is a slow very memory
3538
# consuming and fragmenting process. To avoid this, we pick a random,
3539
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3540
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3541
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3542
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3545
case $cc_basename in
3548
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3550
# Archives containing C++ object files must be created using
3551
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3552
# necessary to make sure instantiated templates are included
3554
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3557
if test "$GXX" = yes; then
3558
if test "$with_gnu_ld" = no; then
3559
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3561
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
3564
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3567
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3568
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3570
linux* | k*bsd*-gnu)
3571
case $cc_basename in
3573
# Kuck and Associates, Inc. (KAI) C++ Compiler
3575
# KCC will only create a shared library if the output file
3576
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3577
# to its proper name (with version) after linking.
3578
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3579
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
3580
# Commands to make compiler produce verbose output that lists
3581
# what "hidden" libraries, object files and flags are used when
3582
# linking a shared library.
3584
# There doesn't appear to be a way to prevent this compiler from
3585
# explicitly linking system object files so we need to strip them
3586
# from the output so that they don't get included in the library
3588
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3590
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3591
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3593
# Archives containing C++ object files must be created using
3594
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3595
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3600
# version 8.0 and above of icpc choke on multiply defined symbols
3601
# if we add $predep_objects and $postdep_objects, however 7.1 and
3602
# earlier do not add the objects themselves.
3603
case `$CC -V 2>&1` in
3605
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3606
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3608
*) # Version 8.0 or newer
3611
ia64*) tmp_idyn=' -i_dynamic';;
3613
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3614
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3617
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3618
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3619
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3620
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3623
# Portland Group C++ compiler
3624
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3625
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3627
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3628
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3629
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3633
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3634
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
3636
runpath_var=LD_RUN_PATH
3637
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3638
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3640
# Commands to make compiler produce verbose output that lists
3641
# what "hidden" libraries, object files and flags are used when
3642
# linking a shared library.
3644
# There doesn't appear to be a way to prevent this compiler from
3645
# explicitly linking system object files so we need to strip them
3646
# from the output so that they don't get included in the library
3648
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3651
case `$CC -V 2>&1 | sed 5q` in
3654
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3655
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3656
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
3657
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3658
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3660
# Not sure whether something based on
3661
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3663
output_verbose_link_cmd='echo'
3665
# Archives containing C++ object files must be created using
3666
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3667
# necessary to make sure instantiated templates are included
3669
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3676
# FIXME: insert proper C++ library support
3677
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3680
# FIXME: insert proper C++ library support
3681
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3684
case $cc_basename in
3686
# FIXME: insert proper C++ library support
3687
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3690
# FIXME: insert proper C++ library support
3691
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3696
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3697
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3699
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3700
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3701
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3703
# Workaround some broken pre-1.5 toolchains
3704
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3707
# C++ shared libraries are fairly broken
3708
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3711
if test -f /usr/libexec/ld.so; then
3712
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3713
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3714
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3715
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3716
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3717
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
3718
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3719
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3721
output_verbose_link_cmd='echo'
3723
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3727
case $cc_basename in
3729
# Kuck and Associates, Inc. (KAI) C++ Compiler
3731
# KCC will only create a shared library if the output file
3732
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3733
# to its proper name (with version) after linking.
3734
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3736
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3737
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3739
# Archives containing C++ object files must be created using
3740
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3741
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3745
# Rational C++ 2.4.1
3746
# FIXME: insert proper C++ library support
3747
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3750
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3751
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3753
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3754
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3756
# Commands to make compiler produce verbose output that lists
3757
# what "hidden" libraries, object files and flags are used when
3758
# linking a shared library.
3760
# There doesn't appear to be a way to prevent this compiler from
3761
# explicitly linking system object files so we need to strip them
3762
# from the output so that they don't get included in the library
3764
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3767
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3768
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3769
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3771
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3772
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3774
# Commands to make compiler produce verbose output that lists
3775
# what "hidden" libraries, object files and flags are used when
3776
# linking a shared library.
3777
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3780
# FIXME: insert proper C++ library support
3781
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3787
case $cc_basename in
3789
# Kuck and Associates, Inc. (KAI) C++ Compiler
3791
# KCC will only create a shared library if the output file
3792
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3793
# to its proper name (with version) after linking.
3794
_LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
3796
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3797
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3799
# Archives containing C++ object files must be created using
3800
# the KAI C++ compiler.
3801
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3804
# Rational C++ 2.4.1
3805
# FIXME: insert proper C++ library support
3806
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3809
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3810
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
3811
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3812
echo "-hidden">> $lib.exp~
3813
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
3816
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3817
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3819
# Commands to make compiler produce verbose output that lists
3820
# what "hidden" libraries, object files and flags are used when
3821
# linking a shared library.
3823
# There doesn't appear to be a way to prevent this compiler from
3824
# explicitly linking system object files so we need to strip them
3825
# from the output so that they don't get included in the library
3827
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
3830
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3831
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3832
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
3834
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3835
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3837
# Commands to make compiler produce verbose output that lists
3838
# what "hidden" libraries, object files and flags are used when
3839
# linking a shared library.
3840
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3843
# FIXME: insert proper C++ library support
3844
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3850
# FIXME: insert proper C++ library support
3851
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3854
case $cc_basename in
3857
# FIXME: insert proper C++ library support
3858
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3862
# FIXME: insert proper C++ library support
3863
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3866
# FIXME: insert proper C++ library support
3867
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3872
case $cc_basename in
3874
# Sun C++ 4.2, 5.x and Centerline C++
3875
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3876
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3877
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3878
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3879
$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'
3881
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3882
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3884
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3886
# The compiler driver will combine and reorder linker options,
3887
# but understands `-z linker_flag'.
3888
# Supported since Solaris 2.6 (maybe 2.5.1?)
3889
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3892
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3894
output_verbose_link_cmd='echo'
3896
# Archives containing C++ object files must be created using
3897
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3898
# necessary to make sure instantiated templates are included
3900
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3903
# Green Hills C++ Compiler
3904
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3906
# The C++ compiler must be used to create the archive.
3907
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3910
# GNU C++ compiler with Solaris linker
3911
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3912
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3913
if $CC --version | grep -v '^2\.7' > /dev/null; then
3914
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3915
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3916
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3918
# Commands to make compiler produce verbose output that lists
3919
# what "hidden" libraries, object files and flags are used when
3920
# linking a shared library.
3921
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3923
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3925
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3926
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3927
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3929
# Commands to make compiler produce verbose output that lists
3930
# what "hidden" libraries, object files and flags are used when
3931
# linking a shared library.
3932
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3935
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3937
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3939
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3946
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3947
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3948
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3949
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3950
runpath_var='LD_RUN_PATH'
3952
case $cc_basename in
3954
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3955
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3958
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3959
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3963
sysv5* | sco3.2v5* | sco5v6*)
3964
# Note: We can NOT use -z defs as we might desire, because we do not
3965
# link with -lc, and that would cause any symbols used from libc to
3966
# always be unresolved, which means just about no library would
3967
# ever link correctly. If we're not using GNU ld we use -z text
3968
# though, which does catch some bad symbols but isn't as heavy-handed
3970
# For security reasons, it is highly recommended that you always
3971
# use absolute paths for naming shared libraries, and exclude the
3972
# DT_RUNPATH tag from executables and libraries. But doing so
3973
# requires that you compile everything twice, which is a pain.
3974
# So that behaviour is only enabled if SCOABSPATH is set to a
3975
# non-empty value in the environment. Most likely only useful for
3976
# creating official distributions of packages.
3977
# This is a hack until libtool officially supports absolute path
3978
# names for shared libraries.
3979
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3980
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3981
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3982
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3983
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3984
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3985
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3986
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3987
runpath_var='LD_RUN_PATH'
3989
case $cc_basename in
3991
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3992
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3995
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3996
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
4001
case $cc_basename in
4003
# NonStop-UX NCC 3.20
4004
# FIXME: insert proper C++ library support
4005
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4008
# FIXME: insert proper C++ library support
4009
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4014
# FIXME: insert proper C++ library support
4015
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4018
# FIXME: insert proper C++ library support
4019
_LT_AC_TAGVAR(ld_shlibs, $1)=no
4022
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
4023
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
4025
_LT_AC_TAGVAR(GCC, $1)="$GXX"
4026
_LT_AC_TAGVAR(LD, $1)="$LD"
4028
AC_LIBTOOL_POSTDEP_PREDEP($1)
4029
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4030
AC_LIBTOOL_PROG_CC_C_O($1)
4031
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4032
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4033
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4034
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4036
AC_LIBTOOL_CONFIG($1)
4043
with_gnu_ldcxx=$with_gnu_ld
4044
with_gnu_ld=$lt_save_with_gnu_ld
4045
lt_cv_path_LDCXX=$lt_cv_path_LD
4046
lt_cv_path_LD=$lt_save_path_LD
4047
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
4048
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
4049
])# AC_LIBTOOL_LANG_CXX_CONFIG
4051
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
4052
# ------------------------------------
4053
# Figure out "hidden" library dependencies from verbose
4054
# compiler output when linking a shared library.
4055
# Parse the compiler output and extract the necessary
4056
# objects, libraries and library flags.
4057
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
4058
[AC_REQUIRE([LT_AC_PROG_SED])dnl
4059
dnl we can't use the lt_simple_compile_test_code here,
4060
dnl because it contains code intended for an executable,
4061
dnl not a library. It's possible we should let each
4062
dnl tag define a new lt_????_link_test_code variable,
4063
dnl but it's only used here...
4064
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
4066
void foo (void) { a = 0; }
4068
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
4072
Foo (void) { a = 0; }
4077
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
4085
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
4088
public void bar (void) {
4094
dnl Parse the compiler output and extract the necessary
4095
dnl objects, libraries and library flags.
4096
if AC_TRY_EVAL(ac_compile); then
4097
# Parse the compiler output and extract the necessary
4098
# objects, libraries and library flags.
4100
# Sentinel used to keep track of whether or not we are before
4101
# the conftest object file.
4102
pre_test_object_deps_done=no
4104
# The `*' in the case matches for architectures that use `case' in
4105
# $output_verbose_cmd can trigger glob expansion during the loop
4106
# eval without this substitution.
4107
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
4109
for p in `eval $output_verbose_link_cmd`; do
4113
# Some compilers place space between "-{L,R}" and the path.
4116
|| test $p = "-R"; then
4123
if test "$pre_test_object_deps_done" = no; then
4126
# Internal compiler library paths should come after those
4127
# provided the user. The postdeps already come after the
4128
# user supplied libs so there is no need to process them.
4129
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4130
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
4132
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
4135
# The "-l" case would never come before the object being
4136
# linked, so don't bother handling this case.
4139
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
4140
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
4142
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
4148
# This assumes that the test object file only shows up
4149
# once in the compiler output.
4150
if test "$p" = "conftest.$objext"; then
4151
pre_test_object_deps_done=yes
4155
if test "$pre_test_object_deps_done" = no; then
4156
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
4157
_LT_AC_TAGVAR(predep_objects, $1)="$p"
4159
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
4162
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
4163
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
4165
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4170
*) ;; # Ignore the rest.
4178
echo "libtool.m4: error: problem compiling $1 test program"
4181
$rm -f confest.$objext
4183
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4184
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4185
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4188
# PORTME: override above test on systems where it is broken
4192
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4193
# hack all around it, let's just trust "g++" to DTRT.
4194
_LT_AC_TAGVAR(predep_objects,$1)=
4195
_LT_AC_TAGVAR(postdep_objects,$1)=
4196
_LT_AC_TAGVAR(postdeps,$1)=
4200
case `$CC -V 2>&1 | sed 5q` in
4204
# The more standards-conforming stlport4 library is
4205
# incompatible with the Cstd library. Avoid specifying
4206
# it if it's in CXXFLAGS. Ignore libCrun as
4207
# -library=stlport4 depends on it.
4208
case " $CXX $CXXFLAGS " in
4209
*" -library=stlport4 "*)
4210
solaris_use_stlport4=yes
4213
if test "$solaris_use_stlport4" != yes; then
4214
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4221
case $cc_basename in
4223
# The more standards-conforming stlport4 library is
4224
# incompatible with the Cstd library. Avoid specifying
4225
# it if it's in CXXFLAGS. Ignore libCrun as
4226
# -library=stlport4 depends on it.
4227
case " $CXX $CXXFLAGS " in
4228
*" -library=stlport4 "*)
4229
solaris_use_stlport4=yes
4233
# Adding this requires a known-good setup of shared libraries for
4234
# Sun compiler versions before 5.6, else PIC objects from an old
4235
# archive will be linked into the output, leading to subtle bugs.
4236
if test "$solaris_use_stlport4" != yes; then
4237
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4244
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4245
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4247
])# AC_LIBTOOL_POSTDEP_PREDEP
4249
# AC_LIBTOOL_LANG_F77_CONFIG
4250
# --------------------------
4251
# Ensure that the configuration vars for the C compiler are
4252
# suitably defined. Those variables are subsequently used by
4253
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4254
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4255
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4256
[AC_REQUIRE([AC_PROG_F77])
4257
AC_LANG_PUSH(Fortran 77)
4259
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4260
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4261
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4262
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4263
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4264
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4265
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4266
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4267
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4268
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4269
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4270
_LT_AC_TAGVAR(module_cmds, $1)=
4271
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4272
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4273
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4274
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4275
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4276
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4278
# Source file extension for f77 test sources.
4281
# Object file extension for compiled f77 test sources.
4283
_LT_AC_TAGVAR(objext, $1)=$objext
4285
# Code to be used in simple compile tests
4286
lt_simple_compile_test_code="\
4292
# Code to be used in simple link tests
4293
lt_simple_link_test_code="\
4298
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4301
# save warnings/boilerplate of simple test code
4302
_LT_COMPILER_BOILERPLATE
4303
_LT_LINKER_BOILERPLATE
4305
# Allow CC to be a program name with arguments.
4309
_LT_AC_TAGVAR(compiler, $1)=$CC
4310
_LT_CC_BASENAME([$compiler])
4312
AC_MSG_CHECKING([if libtool supports shared libraries])
4313
AC_MSG_RESULT([$can_build_shared])
4315
AC_MSG_CHECKING([whether to build shared libraries])
4316
test "$can_build_shared" = "no" && enable_shared=no
4318
# On AIX, shared libraries and static libraries use the same namespace, and
4319
# are all built from PIC.
4322
test "$enable_shared" = yes && enable_static=no
4323
if test -n "$RANLIB"; then
4324
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4325
postinstall_cmds='$RANLIB $lib'
4329
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4330
test "$enable_shared" = yes && enable_static=no
4334
AC_MSG_RESULT([$enable_shared])
4336
AC_MSG_CHECKING([whether to build static libraries])
4337
# Make sure either enable_shared or enable_static is yes.
4338
test "$enable_shared" = yes || enable_static=yes
4339
AC_MSG_RESULT([$enable_static])
4341
_LT_AC_TAGVAR(GCC, $1)="$G77"
4342
_LT_AC_TAGVAR(LD, $1)="$LD"
4344
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4345
AC_LIBTOOL_PROG_CC_C_O($1)
4346
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4347
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4348
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4349
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4351
AC_LIBTOOL_CONFIG($1)
4355
])# AC_LIBTOOL_LANG_F77_CONFIG
4358
# AC_LIBTOOL_LANG_GCJ_CONFIG
4359
# --------------------------
4360
# Ensure that the configuration vars for the C compiler are
4361
# suitably defined. Those variables are subsequently used by
4362
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4363
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4364
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4367
# Source file extension for Java test sources.
4370
# Object file extension for compiled Java test sources.
4372
_LT_AC_TAGVAR(objext, $1)=$objext
4374
# Code to be used in simple compile tests
4375
lt_simple_compile_test_code="class foo {}"
4377
# Code to be used in simple link tests
4378
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4380
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4383
# save warnings/boilerplate of simple test code
4384
_LT_COMPILER_BOILERPLATE
4385
_LT_LINKER_BOILERPLATE
4387
# Allow CC to be a program name with arguments.
4391
_LT_AC_TAGVAR(compiler, $1)=$CC
4392
_LT_CC_BASENAME([$compiler])
4394
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4395
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4397
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4399
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4400
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4401
AC_LIBTOOL_PROG_CC_C_O($1)
4402
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4403
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4404
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4405
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4407
AC_LIBTOOL_CONFIG($1)
4411
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4414
# AC_LIBTOOL_LANG_RC_CONFIG
4415
# -------------------------
4416
# Ensure that the configuration vars for the Windows resource compiler are
4417
# suitably defined. Those variables are subsequently used by
4418
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4419
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4420
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4423
# Source file extension for RC test sources.
4426
# Object file extension for compiled RC test sources.
4428
_LT_AC_TAGVAR(objext, $1)=$objext
4430
# Code to be used in simple compile tests
4431
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4433
# Code to be used in simple link tests
4434
lt_simple_link_test_code="$lt_simple_compile_test_code"
4436
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4439
# save warnings/boilerplate of simple test code
4440
_LT_COMPILER_BOILERPLATE
4441
_LT_LINKER_BOILERPLATE
4443
# Allow CC to be a program name with arguments.
4447
_LT_AC_TAGVAR(compiler, $1)=$CC
4448
_LT_CC_BASENAME([$compiler])
4449
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4451
AC_LIBTOOL_CONFIG($1)
4455
])# AC_LIBTOOL_LANG_RC_CONFIG
4458
# AC_LIBTOOL_CONFIG([TAGNAME])
4459
# ----------------------------
4460
# If TAGNAME is not passed, then create an initial libtool script
4461
# with a default configuration from the untagged config vars. Otherwise
4462
# add code to config.status for appending the configuration named by
4463
# TAGNAME from the matching tagged config vars.
4464
AC_DEFUN([AC_LIBTOOL_CONFIG],
4465
[# The else clause should only fire when bootstrapping the
4466
# libtool distribution, otherwise you forgot to ship ltmain.sh
4467
# with your package, and you will get complaints that there are
4468
# no rules to generate ltmain.sh.
4469
if test -f "$ltmain"; then
4470
# See if we are running on zsh, and set the options which allow our commands through
4471
# without removal of \ escapes.
4472
if test -n "${ZSH_VERSION+set}" ; then
4473
setopt NO_GLOB_SUBST
4475
# Now quote all the things that may contain metacharacters while being
4476
# careful not to overquote the AC_SUBSTed values. We take copies of the
4477
# variables and quote the copies for generation of the libtool script.
4478
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4480
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4481
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4482
deplibs_check_method reload_flag reload_cmds need_locks \
4483
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4484
lt_cv_sys_global_symbol_to_c_name_address \
4485
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4486
old_postinstall_cmds old_postuninstall_cmds \
4487
_LT_AC_TAGVAR(compiler, $1) \
4488
_LT_AC_TAGVAR(CC, $1) \
4489
_LT_AC_TAGVAR(LD, $1) \
4490
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4491
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4492
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4493
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4494
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4495
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4496
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4497
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4498
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4499
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4500
_LT_AC_TAGVAR(predep_objects, $1) \
4501
_LT_AC_TAGVAR(postdep_objects, $1) \
4502
_LT_AC_TAGVAR(predeps, $1) \
4503
_LT_AC_TAGVAR(postdeps, $1) \
4504
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4505
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4506
_LT_AC_TAGVAR(archive_cmds, $1) \
4507
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4508
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4509
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4510
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4511
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4512
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4513
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4514
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4515
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4516
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4517
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4518
_LT_AC_TAGVAR(module_cmds, $1) \
4519
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4520
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4521
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4522
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4523
_LT_AC_TAGVAR(include_expsyms, $1); do
4526
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4527
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4528
_LT_AC_TAGVAR(archive_cmds, $1) | \
4529
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4530
_LT_AC_TAGVAR(module_cmds, $1) | \
4531
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4532
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4533
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4534
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4535
postinstall_cmds | postuninstall_cmds | \
4536
old_postinstall_cmds | old_postuninstall_cmds | \
4537
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4538
# Double-quote double-evaled strings.
4539
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4542
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4548
*'\[$]0 --fallback-echo"')
4549
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4554
[cfgfile="${ofile}T"
4555
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4557
AC_MSG_NOTICE([creating $ofile])],
4560
cat <<__EOF__ >> "$cfgfile"
4564
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4565
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4566
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4568
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4569
# Free Software Foundation, Inc.
4571
# This file is part of GNU Libtool:
4572
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4574
# This program is free software; you can redistribute it and/or modify
4575
# it under the terms of the GNU General Public License as published by
4576
# the Free Software Foundation; either version 2 of the License, or
4577
# (at your option) any later version.
4579
# This program is distributed in the hope that it will be useful, but
4580
# WITHOUT ANY WARRANTY; without even the implied warranty of
4581
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4582
# General Public License for more details.
4584
# You should have received a copy of the GNU General Public License
4585
# along with this program; if not, write to the Free Software
4586
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4588
# As a special exception to the GNU General Public License, if you
4589
# distribute this file as part of a program that contains a
4590
# configuration script generated by Autoconf, you may include it under
4591
# the same distribution terms that you use for the rest of that program.
4593
# A sed program that does not truncate output.
4596
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4597
Xsed="$SED -e 1s/^X//"
4599
# The HP-UX ksh and POSIX shell print the target directory to stdout
4601
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4603
# The names of the tagged configurations supported by this script.
4606
# ### BEGIN LIBTOOL CONFIG],
4607
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4609
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4611
# Shell to use when invoking shell scripts.
4614
# Whether or not to build shared libraries.
4615
build_libtool_libs=$enable_shared
4617
# Whether or not to build static libraries.
4618
build_old_libs=$enable_static
4620
# Whether or not to add -lc for building shared libraries.
4621
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4623
# Whether or not to disallow shared libs when runtime libs are static
4624
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4626
# Whether or not to optimize for fast installation.
4627
fast_install=$enable_fast_install
4630
host_alias=$host_alias
4635
build_alias=$build_alias
4639
# An echo program that does not interpret backslashes.
4644
AR_FLAGS=$lt_AR_FLAGS
4649
# LTCC compiler flags.
4650
LTCFLAGS=$lt_LTCFLAGS
4652
# A language-specific compiler.
4653
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4655
# Is the compiler the GNU C compiler?
4656
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4661
# The linker used to build libraries.
4662
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4664
# Whether we need hard or soft links.
4667
# A BSD-compatible nm program.
4670
# A symbol stripping program
4673
# Used to examine libraries when file_magic_cmd begins "file"
4674
MAGIC_CMD=$MAGIC_CMD
4676
# Used on cygwin: DLL creation program.
4679
# Used on cygwin: object dumper.
4682
# Used on cygwin: assembler.
4685
# The name of the directory that contains temporary libtool files.
4688
# How to create reloadable object files.
4689
reload_flag=$lt_reload_flag
4690
reload_cmds=$lt_reload_cmds
4692
# How to pass a linker flag through the compiler.
4693
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4695
# Object file suffix (normally "o").
4698
# Old archive suffix (normally "a").
4701
# Shared library suffix (normally ".so").
4702
shrext_cmds='$shrext_cmds'
4704
# Executable file suffix (normally "").
4707
# Additional compiler flags for building library objects.
4708
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4711
# What is the maximum length of a command?
4712
max_cmd_len=$lt_cv_sys_max_cmd_len
4714
# Does compiler simultaneously support -c and -o options?
4715
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4717
# Must we lock files when doing compilation?
4718
need_locks=$lt_need_locks
4720
# Do we need the lib prefix for modules?
4721
need_lib_prefix=$need_lib_prefix
4723
# Do we need a version for libraries?
4724
need_version=$need_version
4726
# Whether dlopen is supported.
4727
dlopen_support=$enable_dlopen
4729
# Whether dlopen of programs is supported.
4730
dlopen_self=$enable_dlopen_self
4732
# Whether dlopen of statically linked programs is supported.
4733
dlopen_self_static=$enable_dlopen_self_static
4735
# Compiler flag to prevent dynamic linking.
4736
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4738
# Compiler flag to turn off builtin functions.
4739
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4741
# Compiler flag to allow reflexive dlopens.
4742
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4744
# Compiler flag to generate shared objects directly from archives.
4745
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4747
# Compiler flag to generate thread-safe objects.
4748
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4750
# Library versioning type.
4751
version_type=$version_type
4753
# Format of library name prefix.
4754
libname_spec=$lt_libname_spec
4756
# List of archive names. First name is the real one, the rest are links.
4757
# The last name is the one that the linker finds with -lNAME.
4758
library_names_spec=$lt_library_names_spec
4760
# The coded name of the library, if different from the real name.
4761
soname_spec=$lt_soname_spec
4763
# Commands used to build and install an old-style archive.
4765
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4766
old_postinstall_cmds=$lt_old_postinstall_cmds
4767
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4769
# Create an old-style archive from a shared archive.
4770
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4772
# Create a temporary old-style archive to link instead of a shared archive.
4773
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4775
# Commands used to build and install a shared archive.
4776
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4777
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4778
postinstall_cmds=$lt_postinstall_cmds
4779
postuninstall_cmds=$lt_postuninstall_cmds
4781
# Commands used to build a loadable module (assumed same as above if empty)
4782
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4783
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4785
# Commands to strip libraries.
4786
old_striplib=$lt_old_striplib
4787
striplib=$lt_striplib
4789
# Dependencies to place before the objects being linked to create a
4791
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4793
# Dependencies to place after the objects being linked to create a
4795
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4797
# Dependencies to place before the objects being linked to create a
4799
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4801
# Dependencies to place after the objects being linked to create a
4803
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4805
# The directories searched by this compiler when creating a shared
4807
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4809
# The library search path used internally by the compiler when linking
4811
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4813
# Method to check whether dependent libraries are shared objects.
4814
deplibs_check_method=$lt_deplibs_check_method
4816
# Command to use when deplibs_check_method == file_magic.
4817
file_magic_cmd=$lt_file_magic_cmd
4819
# Flag that allows shared libraries with undefined symbols to be built.
4820
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4822
# Flag that forces no undefined symbols.
4823
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4825
# Commands used to finish a libtool library installation in a directory.
4826
finish_cmds=$lt_finish_cmds
4828
# Same as above, but a single script fragment to be evaled but not shown.
4829
finish_eval=$lt_finish_eval
4831
# Take the output of nm and produce a listing of raw symbols and C names.
4832
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4834
# Transform the output of nm in a proper C declaration
4835
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4837
# Transform the output of nm in a C name address pair
4838
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4840
# This is the shared library runtime path variable.
4841
runpath_var=$runpath_var
4843
# This is the shared library path variable.
4844
shlibpath_var=$shlibpath_var
4846
# Is shlibpath searched before the hard-coded library search path?
4847
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4849
# How to hardcode a shared library path into an executable.
4850
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4852
# Whether we should hardcode library paths into libraries.
4853
hardcode_into_libs=$hardcode_into_libs
4855
# Flag to hardcode \$libdir into a binary during linking.
4856
# This must work even if \$libdir does not exist.
4857
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4859
# If ld is used when linking, flag to hardcode \$libdir into
4860
# a binary during linking. This must work even if \$libdir does
4862
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4864
# Whether we need a single -rpath flag with a separated argument.
4865
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4867
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4869
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4871
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4873
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4875
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4876
# the resulting binary.
4877
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4879
# Set to yes if building a shared library automatically hardcodes DIR into the library
4880
# and all subsequent libraries and executables linked against it.
4881
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4883
# Variables whose values should be saved in libtool wrapper scripts and
4884
# restored at relink time.
4885
variables_saved_for_relink="$variables_saved_for_relink"
4887
# Whether libtool must link a program against all its dependency libraries.
4888
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4890
# Compile-time system search path for libraries
4891
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4893
# Run-time system search path for libraries
4894
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4896
# Fix the shell variable \$srcfile for the compiler.
4897
fix_srcfile_path=$lt_fix_srcfile_path
4899
# Set to yes if exported symbols are required.
4900
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4902
# The commands to list exported symbols.
4903
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4905
# The commands to extract the exported symbol list from a shared archive.
4906
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4908
# Symbols that should not be listed in the preloaded symbols.
4909
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4911
# Symbols that must always be exported.
4912
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4915
[# ### END LIBTOOL CONFIG],
4916
[# ### END LIBTOOL TAG CONFIG: $tagname])
4923
cat <<\EOF >> "$cfgfile"
4925
# AIX sometimes has problems with the GCC collect2 program. For some
4926
# reason, if we set the COLLECT_NAMES environment variable, the problems
4927
# vanish in a puff of smoke.
4928
if test "X${COLLECT_NAMES+set}" != Xset; then
4930
export COLLECT_NAMES
4936
# We use sed instead of cat because bash on DJGPP gets confused if
4937
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4938
# text mode, it properly converts lines to CR/LF. This bash problem
4939
# is reportedly fixed, but why not run on old versions too?
4940
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4942
mv -f "$cfgfile" "$ofile" || \
4943
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4947
# If there is no Makefile yet, we rely on a make rule to execute
4948
# `config.status --recheck' to rerun these tests and create the
4949
# libtool script then.
4950
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4951
if test -f "$ltmain_in"; then
4952
test -f Makefile && make "$ltmain"
4955
])# AC_LIBTOOL_CONFIG
4958
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4959
# -------------------------------------------
4960
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4961
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4963
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4133
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4134
dnl aclocal-1.4 backwards compatibility:
4135
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4138
# _LT_COMPILER_NO_RTTI([TAGNAME])
4139
# -------------------------------
4140
m4_defun([_LT_COMPILER_NO_RTTI],
4141
[m4_require([_LT_TAG_COMPILER])dnl
4143
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4965
4145
if test "$GCC" = yes; then
4966
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4146
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4968
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4148
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4969
4149
lt_cv_prog_compiler_rtti_exceptions,
4970
4150
[-fno-rtti -fno-exceptions], [],
4971
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4151
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4973
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4976
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4977
# ---------------------------------
4978
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4979
[AC_REQUIRE([AC_CANONICAL_HOST])
4980
AC_REQUIRE([LT_AC_PROG_SED])
4981
AC_REQUIRE([AC_PROG_NM])
4982
AC_REQUIRE([AC_OBJEXT])
4153
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4154
[Compiler flag to turn off builtin functions])
4155
])# _LT_COMPILER_NO_RTTI
4158
# _LT_CMD_GLOBAL_SYMBOLS
4159
# ----------------------
4160
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4161
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4162
AC_REQUIRE([AC_PROG_CC])dnl
4163
AC_REQUIRE([LT_PATH_NM])dnl
4164
AC_REQUIRE([LT_PATH_LD])dnl
4165
m4_require([_LT_DECL_SED])dnl
4166
m4_require([_LT_DECL_EGREP])dnl
4167
m4_require([_LT_TAG_COMPILER])dnl
4983
4169
# Check for command to grab the raw symbol name followed by C symbol from nm.
4984
4170
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4985
4171
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5581
4823
# +Z the default
5584
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4826
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5587
4829
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5588
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4830
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5591
4833
irix5* | irix6* | nonstopux*)
5592
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4834
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5593
4835
# PIC (with -KPIC) is the default.
5594
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5598
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5599
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4836
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5602
4839
linux* | k*bsd*-gnu)
5603
4840
case $cc_basename in
5605
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5606
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5607
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4841
# old Intel for x86_64 which still supported -KPIC.
4843
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4844
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4845
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4847
# icc used to be incompatible with GCC.
4848
# ICC 10 doesn't accept -KPIC any more.
4850
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4851
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4852
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4854
# Lahey Fortran 8.1.
4856
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4857
_LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4858
_LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5609
4860
pgcc* | pgf77* | pgf90* | pgf95*)
5610
4861
# Portland Group compilers (*not* the Pentium gcc compiler,
5611
4862
# which looks to be a dead project)
5612
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5613
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5614
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4863
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4864
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4865
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5617
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4868
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5618
4869
# All Alpha code is PIC.
5619
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4870
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4873
# IBM XL C 8.0/Fortran 10.1 on PPC
4874
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4875
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4876
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5622
case `$CC -V 2>&1 | sed 5q` in
4879
case `$CC -V 2>&1 | sed 5q` in
5625
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5626
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5627
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4882
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4883
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4884
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5630
4887
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5631
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5632
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5633
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4888
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4889
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4890
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4898
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4899
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4903
# QNX uses GNU C++, but need to define -shared option too, otherwise
4905
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5640
4908
osf3* | osf4* | osf5*)
5641
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4909
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5642
4910
# All OSF/1 code is PIC.
5643
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4911
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5647
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4915
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5651
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5652
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4919
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4920
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5653
4921
case $cc_basename in
5654
4922
f77* | f90* | f95*)
5655
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4923
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5657
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4925
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5662
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5663
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5664
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4930
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4931
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4932
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5667
4935
sysv4 | sysv4.2uw2* | sysv4.3*)
5668
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5669
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5670
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4936
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4937
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4938
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5674
4942
if test -d /usr/nec ;then
5675
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5676
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4943
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4944
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5680
4948
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5681
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5682
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5683
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4949
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4950
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4951
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5687
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5688
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4955
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4956
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5692
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5693
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4960
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4961
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5697
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4965
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5702
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
4971
# For platforms which do not support PIC, -DPIC is meaningless:
4973
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4976
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4979
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4980
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4981
[How to pass a linker flag through the compiler])
5705
4984
# Check to make sure the PIC flag actually works.
5707
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5708
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5709
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5710
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5711
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
4986
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4987
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4988
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4989
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4990
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5713
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4992
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5715
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5716
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4994
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4995
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5719
# For platforms which do not support PIC, -DPIC is meaningless:
5721
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5724
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
4997
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4998
[Additional compiler flags for building library objects])
5729
5001
# Check to make sure the static flag actually works.
5731
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5732
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5733
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5003
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5004
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5005
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5734
5006
$lt_tmp_static_flag,
5736
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5740
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5741
# ------------------------------------
5008
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5009
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5010
[Compiler flag to prevent dynamic linking])
5011
])# _LT_COMPILER_PIC
5014
# _LT_LINKER_SHLIBS([TAGNAME])
5015
# ----------------------------
5742
5016
# See if the linker supports building shared libraries.
5743
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5744
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5017
m4_defun([_LT_LINKER_SHLIBS],
5018
[AC_REQUIRE([LT_PATH_LD])dnl
5019
AC_REQUIRE([LT_PATH_NM])dnl
5020
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5021
m4_require([_LT_DECL_EGREP])dnl
5022
m4_require([_LT_DECL_SED])dnl
5023
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5024
m4_require([_LT_TAG_COMPILER])dnl
5745
5025
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5747
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5026
m4_if([$1], [CXX], [
5027
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5748
5028
case $host_os in
5750
5030
# If we're using GNU nm, then we don't want the "-C" option.
5751
5031
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5752
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5753
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5032
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5033
_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'
5755
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5035
_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'
5759
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5039
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5762
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5041
cygwin* | mingw* | cegcc*)
5042
_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'
5765
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5045
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5768
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5048
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5771
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5772
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5773
_LT_AC_TAGVAR(archive_cmds, $1)=
5774
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5775
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5776
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5777
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5778
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5779
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5780
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5781
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5782
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5783
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5784
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5785
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5786
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5787
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5788
_LT_AC_TAGVAR(module_cmds, $1)=
5789
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5790
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5791
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5051
_LT_TAGVAR(allow_undefined_flag, $1)=
5052
_LT_TAGVAR(always_export_symbols, $1)=no
5053
_LT_TAGVAR(archive_cmds, $1)=
5054
_LT_TAGVAR(archive_expsym_cmds, $1)=
5055
_LT_TAGVAR(compiler_needs_object, $1)=no
5056
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5057
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5058
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5059
_LT_TAGVAR(hardcode_automatic, $1)=no
5060
_LT_TAGVAR(hardcode_direct, $1)=no
5061
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5062
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5063
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5064
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5065
_LT_TAGVAR(hardcode_minus_L, $1)=no
5066
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5067
_LT_TAGVAR(inherit_rpath, $1)=no
5068
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5069
_LT_TAGVAR(module_cmds, $1)=
5070
_LT_TAGVAR(module_expsym_cmds, $1)=
5071
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5072
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5073
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5074
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5792
5075
# include_expsyms should be a list of space-separated symbols to be *always*
5793
5076
# included in the symbol list
5794
_LT_AC_TAGVAR(include_expsyms, $1)=
5077
_LT_TAGVAR(include_expsyms, $1)=
5795
5078
# exclude_expsyms can be an extended regexp of symbols to exclude
5796
5079
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5797
5080
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5798
5081
# as well as any symbol that contains `d'.
5799
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5082
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5800
5083
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5801
5084
# platforms (ab)use it in PIC code, but their linkers get confused if
5802
5085
# the symbol is explicitly referenced. Since portable code cannot
6396
5680
irix5* | irix6* | nonstopux*)
6397
5681
if test "$GCC" = yes; then
6398
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5682
_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'
5683
# Try to use the -exported_symbol ld option, if it does not
5684
# work, assume that -exports_file does not work either and
5685
# implicitly export all symbols.
5686
save_LDFLAGS="$LDFLAGS"
5687
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5688
AC_LINK_IFELSE(int foo(void) {},
5689
_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'
5691
LDFLAGS="$save_LDFLAGS"
6400
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6401
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5693
_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'
5694
_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'
6403
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6404
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6405
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5696
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5697
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5698
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5699
_LT_TAGVAR(inherit_rpath, $1)=yes
5700
_LT_TAGVAR(link_all_deplibs, $1)=yes
6409
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6410
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5704
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5705
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6412
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5707
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6414
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6415
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6416
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5709
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5710
_LT_TAGVAR(hardcode_direct, $1)=yes
5711
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6420
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6421
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6422
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6423
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6424
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5715
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5716
_LT_TAGVAR(hardcode_direct, $1)=yes
5717
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5718
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5719
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6428
5726
if test -f /usr/libexec/ld.so; then
6429
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6430
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6431
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6432
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6433
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6434
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6435
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5727
_LT_TAGVAR(hardcode_direct, $1)=yes
5728
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5729
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5730
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5731
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5732
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5733
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5734
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6437
5736
case $host_os in
6438
5737
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6439
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6440
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5738
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5739
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6443
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6444
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5742
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5743
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6449
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5748
_LT_TAGVAR(ld_shlibs, $1)=no
6454
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6455
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6456
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6457
_LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6458
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5753
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5754
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5755
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5756
_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'
5757
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6462
5761
if test "$GCC" = yes; then
6463
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6464
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5762
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5763
_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'
6466
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6467
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5765
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5766
_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'
6469
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6470
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5768
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5769
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5770
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6473
5773
osf4* | osf5*) # as osf3* with the addition of -msym flag
6474
5774
if test "$GCC" = yes; then
6475
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6476
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6477
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5775
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5776
_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'
5777
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6479
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6480
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6481
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6482
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
5779
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5780
_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'
5781
_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~
5782
$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'
6484
5784
# Both c and cxx compiler support -rpath directly
6485
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5785
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6487
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5787
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5788
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6491
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5792
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6492
5793
if test "$GCC" = yes; then
6494
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6495
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6496
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5795
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5796
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5797
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6499
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6500
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6501
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5799
case `$CC -V 2>&1` in
5802
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5803
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5804
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5808
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5809
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5810
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6503
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6504
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5814
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5815
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6505
5816
case $host_os in
6506
5817
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6508
5819
# The compiler driver will combine and reorder linker options,
6509
5820
# but understands `-z linker_flag'. GCC discards it without `$wl',
6510
5821
# but is careful enough not to reorder.
6511
# Supported since Solaris 2.6 (maybe 2.5.1?)
5822
# Supported since Solaris 2.6 (maybe 2.5.1?)
6512
5823
if test "$GCC" = yes; then
6513
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5824
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6515
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5826
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6519
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5830
_LT_TAGVAR(link_all_deplibs, $1)=yes
6523
5834
if test "x$host_vendor" = xsequent; then
6524
5835
# Use $CC to link under sequent, because it throws in some extra .o
6525
5836
# files that make .init and .fini sections work.
6526
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5837
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6528
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5839
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6530
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6531
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6532
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6533
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5841
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5842
_LT_TAGVAR(hardcode_direct, $1)=yes
5843
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5844
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6537
5848
case $host_vendor in
6539
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6540
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5850
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5851
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6543
5854
## LD is ld it makes a PLAMLIB
6544
5855
## CC just makes a GrossModule.
6545
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6546
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6547
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5856
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5857
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5858
_LT_TAGVAR(hardcode_direct, $1)=no
6550
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6551
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5861
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5862
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6554
5865
runpath_var='LD_RUN_PATH'
6555
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5866
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6559
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6560
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6561
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5870
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5871
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5872
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6565
5876
if test -d /usr/nec; then
6566
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6567
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5877
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5878
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6568
5879
runpath_var=LD_RUN_PATH
6569
5880
hardcode_runpath_var=yes
6570
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5881
_LT_TAGVAR(ld_shlibs, $1)=yes
6574
5885
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6575
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6576
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6577
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5886
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5887
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5888
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6578
5889
runpath_var='LD_RUN_PATH'
6580
5891
if test "$GCC" = yes; then
6581
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6582
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5892
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5893
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6584
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6585
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5895
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5896
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6654
5980
libobjs=conftest.$ac_objext
6656
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6657
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5982
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5983
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6658
5984
compiler_flags=-v
6659
5985
linker_flags=-v
6661
5987
output_objdir=.
6662
5988
libname=conftest
6663
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6664
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6665
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
5989
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5990
_LT_TAGVAR(allow_undefined_flag, $1)=
5991
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6667
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5993
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6669
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5995
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6671
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5997
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6673
5999
cat conftest.err 1>&5
6676
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6002
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6682
])# AC_LIBTOOL_PROG_LD_SHLIBS
6685
# _LT_AC_FILE_LTDLL_C
6686
# -------------------
6687
# Be careful that the start marker always follows a newline.
6688
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6689
# /* ltdll.c starts here */
6690
# #define WIN32_LEAN_AND_MEAN
6691
# #include <windows.h>
6692
# #undef WIN32_LEAN_AND_MEAN
6693
# #include <stdio.h>
6695
# #ifndef __CYGWIN__
6696
# # ifdef __CYGWIN32__
6697
# # define __CYGWIN__ __CYGWIN32__
6701
# #ifdef __cplusplus
6704
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6705
# #ifdef __cplusplus
6710
# #include <cygwin/cygwin_dll.h>
6711
# DECLARE_CYGWIN_DLL( DllMain );
6713
# HINSTANCE __hDllInstance_base;
6716
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6718
# __hDllInstance_base = hInst;
6721
# /* ltdll.c ends here */
6722
])# _LT_AC_FILE_LTDLL_C
6725
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6009
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6010
[Whether or not to add -lc for building shared libraries])
6011
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6012
[enable_shared_with_static_runtimes], [0],
6013
[Whether or not to disallow shared libs when runtime libs are static])
6014
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6015
[Compiler flag to allow reflexive dlopens])
6016
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6017
[Compiler flag to generate shared objects directly from archives])
6018
_LT_TAGDECL([], [compiler_needs_object], [1],
6019
[Whether the compiler copes with passing no objects directly])
6020
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6021
[Create an old-style archive from a shared archive])
6022
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6023
[Create a temporary old-style archive to link instead of a shared archive])
6024
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6025
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6026
_LT_TAGDECL([], [module_cmds], [2],
6027
[Commands used to build a loadable module if different from building
6029
_LT_TAGDECL([], [module_expsym_cmds], [2])
6030
_LT_TAGDECL([], [with_gnu_ld], [1],
6031
[Whether we are building with GNU ld or not])
6032
_LT_TAGDECL([], [allow_undefined_flag], [1],
6033
[Flag that allows shared libraries with undefined symbols to be built])
6034
_LT_TAGDECL([], [no_undefined_flag], [1],
6035
[Flag that enforces no undefined symbols])
6036
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6037
[Flag to hardcode $libdir into a binary during linking.
6038
This must work even if $libdir does not exist])
6039
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6040
[[If ld is used when linking, flag to hardcode $libdir into a binary
6041
during linking. This must work even if $libdir does not exist]])
6042
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6043
[Whether we need a single "-rpath" flag with a separated argument])
6044
_LT_TAGDECL([], [hardcode_direct], [0],
6045
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6046
DIR into the resulting binary])
6047
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6048
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6049
DIR into the resulting binary and the resulting library dependency is
6050
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6051
library is relocated])
6052
_LT_TAGDECL([], [hardcode_minus_L], [0],
6053
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6054
into the resulting binary])
6055
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6056
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6057
into the resulting binary])
6058
_LT_TAGDECL([], [hardcode_automatic], [0],
6059
[Set to "yes" if building a shared library automatically hardcodes DIR
6060
into the library and all subsequent libraries and executables linked
6062
_LT_TAGDECL([], [inherit_rpath], [0],
6063
[Set to yes if linker adds runtime paths of dependent libraries
6064
to runtime path list])
6065
_LT_TAGDECL([], [link_all_deplibs], [0],
6066
[Whether libtool must link a program against all its dependency libraries])
6067
_LT_TAGDECL([], [fix_srcfile_path], [1],
6068
[Fix the shell variable $srcfile for the compiler])
6069
_LT_TAGDECL([], [always_export_symbols], [0],
6070
[Set to "yes" if exported symbols are required])
6071
_LT_TAGDECL([], [export_symbols_cmds], [2],
6072
[The commands to list exported symbols])
6073
_LT_TAGDECL([], [exclude_expsyms], [1],
6074
[Symbols that should not be listed in the preloaded symbols])
6075
_LT_TAGDECL([], [include_expsyms], [1],
6076
[Symbols that must always be exported])
6077
_LT_TAGDECL([], [prelink_cmds], [2],
6078
[Commands necessary for linking programs (against libraries) with templates])
6079
_LT_TAGDECL([], [file_list_spec], [1],
6080
[Specify filename containing input files])
6081
dnl FIXME: Not yet implemented
6082
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6083
dnl [Compiler flag to generate thread safe objects])
6084
])# _LT_LINKER_SHLIBS
6087
# _LT_LANG_C_CONFIG([TAG])
6088
# ------------------------
6089
# Ensure that the configuration variables for a C compiler are suitably
6090
# defined. These variables are subsequently used by _LT_CONFIG to write
6091
# the compiler configuration to `libtool'.
6092
m4_defun([_LT_LANG_C_CONFIG],
6093
[m4_require([_LT_DECL_EGREP])dnl
6097
# Source file extension for C test sources.
6100
# Object file extension for compiled C test sources.
6102
_LT_TAGVAR(objext, $1)=$objext
6104
# Code to be used in simple compile tests
6105
lt_simple_compile_test_code="int some_variable = 0;"
6107
# Code to be used in simple link tests
6108
lt_simple_link_test_code='int main(){return(0);}'
6111
# Save the default compiler, since it gets overwritten when the other
6112
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6113
compiler_DEFAULT=$CC
6115
# save warnings/boilerplate of simple test code
6116
_LT_COMPILER_BOILERPLATE
6117
_LT_LINKER_BOILERPLATE
6119
if test -n "$compiler"; then
6120
_LT_COMPILER_NO_RTTI($1)
6121
_LT_COMPILER_PIC($1)
6122
_LT_COMPILER_C_O($1)
6123
_LT_COMPILER_FILE_LOCKS($1)
6124
_LT_LINKER_SHLIBS($1)
6125
_LT_SYS_DYNAMIC_LINKER($1)
6126
_LT_LINKER_HARDCODE_LIBPATH($1)
6130
# Report which library types will actually be built
6131
AC_MSG_CHECKING([if libtool supports shared libraries])
6132
AC_MSG_RESULT([$can_build_shared])
6134
AC_MSG_CHECKING([whether to build shared libraries])
6135
test "$can_build_shared" = "no" && enable_shared=no
6137
# On AIX, shared libraries and static libraries use the same namespace, and
6138
# are all built from PIC.
6141
test "$enable_shared" = yes && enable_static=no
6142
if test -n "$RANLIB"; then
6143
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6144
postinstall_cmds='$RANLIB $lib'
6149
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6150
test "$enable_shared" = yes && enable_static=no
6154
AC_MSG_RESULT([$enable_shared])
6156
AC_MSG_CHECKING([whether to build static libraries])
6157
# Make sure either enable_shared or enable_static is yes.
6158
test "$enable_shared" = yes || enable_static=yes
6159
AC_MSG_RESULT([$enable_static])
6165
])# _LT_LANG_C_CONFIG
6170
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6171
# compiler, we have our own version here.
6172
m4_defun([_LT_PROG_CXX],
6174
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6176
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6177
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6178
(test "X$CXX" != "Xg++"))) ; then
6181
_lt_caught_CXX_error=yes
6183
popdef([AC_MSG_ERROR])
6186
dnl aclocal-1.4 backwards compatibility:
6187
dnl AC_DEFUN([_LT_PROG_CXX], [])
6190
# _LT_LANG_CXX_CONFIG([TAG])
6191
# --------------------------
6192
# Ensure that the configuration variables for a C++ compiler are suitably
6193
# defined. These variables are subsequently used by _LT_CONFIG to write
6194
# the compiler configuration to `libtool'.
6195
m4_defun([_LT_LANG_CXX_CONFIG],
6196
[AC_REQUIRE([_LT_PROG_CXX])dnl
6197
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6198
m4_require([_LT_DECL_EGREP])dnl
6201
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6202
_LT_TAGVAR(allow_undefined_flag, $1)=
6203
_LT_TAGVAR(always_export_symbols, $1)=no
6204
_LT_TAGVAR(archive_expsym_cmds, $1)=
6205
_LT_TAGVAR(compiler_needs_object, $1)=no
6206
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6207
_LT_TAGVAR(hardcode_direct, $1)=no
6208
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6209
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6210
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6211
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6212
_LT_TAGVAR(hardcode_minus_L, $1)=no
6213
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6214
_LT_TAGVAR(hardcode_automatic, $1)=no
6215
_LT_TAGVAR(inherit_rpath, $1)=no
6216
_LT_TAGVAR(module_cmds, $1)=
6217
_LT_TAGVAR(module_expsym_cmds, $1)=
6218
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6219
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6220
_LT_TAGVAR(no_undefined_flag, $1)=
6221
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6222
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6224
# Source file extension for C++ test sources.
6227
# Object file extension for compiled C++ test sources.
6229
_LT_TAGVAR(objext, $1)=$objext
6231
# No sense in running all these tests if we already determined that
6232
# the CXX compiler isn't working. Some variables (like enable_shared)
6233
# are currently assumed to apply to all compilers on this platform,
6234
# and will be corrupted by setting them based on a non-working compiler.
6235
if test "$_lt_caught_CXX_error" != yes; then
6236
# Code to be used in simple compile tests
6237
lt_simple_compile_test_code="int some_variable = 0;"
6239
# Code to be used in simple link tests
6240
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6242
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6245
# save warnings/boilerplate of simple test code
6246
_LT_COMPILER_BOILERPLATE
6247
_LT_LINKER_BOILERPLATE
6249
# Allow CC to be a program name with arguments.
6254
lt_save_with_gnu_ld=$with_gnu_ld
6255
lt_save_path_LD=$lt_cv_path_LD
6256
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6257
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6259
$as_unset lt_cv_prog_gnu_ld
6261
if test -n "${lt_cv_path_LDCXX+set}"; then
6262
lt_cv_path_LD=$lt_cv_path_LDCXX
6264
$as_unset lt_cv_path_LD
6266
test -z "${LDCXX+set}" || LD=$LDCXX
6269
_LT_TAGVAR(compiler, $1)=$CC
6270
_LT_CC_BASENAME([$compiler])
6272
if test -n "$compiler"; then
6273
# We don't want -fno-exception when compiling C++ code, so set the
6274
# no_builtin_flag separately
6275
if test "$GXX" = yes; then
6276
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6278
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6281
if test "$GXX" = yes; then
6282
# Set up default GNU C++ configuration
6286
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6287
# archiving commands below assume that GNU ld is being used.
6288
if test "$with_gnu_ld" = yes; then
6289
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6290
_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'
6292
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6293
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6295
# If archive_cmds runs LD, not CC, wlarc should be empty
6296
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6297
# investigate it a little bit more. (MM)
6300
# ancient GNU ld didn't support --whole-archive et. al.
6301
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6302
$GREP 'no-whole-archive' > /dev/null; then
6303
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6305
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6311
# A generic and very simple default shared library creation
6312
# command for GNU C++ for the case where it uses the native
6313
# linker, instead of GNU ld. If possible, this setting should
6314
# overridden to take advantage of the native linker features on
6315
# the platform it is being used on.
6316
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6319
# Commands to make compiler produce verbose output that lists
6320
# what "hidden" libraries, object files and flags are used when
6321
# linking a shared library.
6322
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6330
# PORTME: fill in a description of your system's C++ link characteristics
6331
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6332
_LT_TAGVAR(ld_shlibs, $1)=yes
6335
# FIXME: insert proper C++ library support
6336
_LT_TAGVAR(ld_shlibs, $1)=no
6339
if test "$host_cpu" = ia64; then
6340
# On IA64, the linker does run time linking by default, so we don't
6341
# have to do anything special.
6342
aix_use_runtimelinking=no
6343
exp_sym_flag='-Bexport'
6346
aix_use_runtimelinking=no
6348
# Test if we are trying to use run time linking or normal
6349
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6350
# need to do runtime linking.
6351
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6352
for ld_flag in $LDFLAGS; do
6355
aix_use_runtimelinking=yes
6363
exp_sym_flag='-bexport'
6364
no_entry_flag='-bnoentry'
6367
# When large executables or shared objects are built, AIX ld can
6368
# have problems creating the table of contents. If linking a library
6369
# or program results in "error TOC overflow" add -mminimal-toc to
6370
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6371
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6373
_LT_TAGVAR(archive_cmds, $1)=''
6374
_LT_TAGVAR(hardcode_direct, $1)=yes
6375
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6376
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6377
_LT_TAGVAR(link_all_deplibs, $1)=yes
6378
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6380
if test "$GXX" = yes; then
6381
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6382
# We only want to do this on AIX 4.2 and lower, the check
6383
# below for broken collect2 doesn't work under 4.3+
6384
collect2name=`${CC} -print-prog-name=collect2`
6385
if test -f "$collect2name" &&
6386
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6388
# We have reworked collect2
6391
# We have old collect2
6392
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6393
# It fails to find uninstalled libraries when the uninstalled
6394
# path is not listed in the libpath. Setting hardcode_minus_L
6395
# to unsupported forces relinking
6396
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6397
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6398
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6401
shared_flag='-shared'
6402
if test "$aix_use_runtimelinking" = yes; then
6403
shared_flag="$shared_flag "'${wl}-G'
6407
if test "$host_cpu" = ia64; then
6408
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6409
# chokes on -Wl,-G. The following line is correct:
6412
if test "$aix_use_runtimelinking" = yes; then
6413
shared_flag='${wl}-G'
6415
shared_flag='${wl}-bM:SRE'
6420
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6421
# It seems that -bexpall does not export symbols beginning with
6422
# underscore (_), so it is better to generate a list of symbols to
6424
_LT_TAGVAR(always_export_symbols, $1)=yes
6425
if test "$aix_use_runtimelinking" = yes; then
6426
# Warning - without using the other runtime loading flags (-brtl),
6427
# -berok will link without error, but may produce a broken library.
6428
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6429
# Determine the default libpath from the value encoded in an empty
6431
_LT_SYS_MODULE_PATH_AIX
6432
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6434
_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"
6436
if test "$host_cpu" = ia64; then
6437
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6438
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6439
_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"
6441
# Determine the default libpath from the value encoded in an
6443
_LT_SYS_MODULE_PATH_AIX
6444
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6445
# Warning - without using the other run time loading flags,
6446
# -berok will link without error, but may produce a broken library.
6447
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6448
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6449
# Exported symbols can be pulled into shared objects from archives
6450
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6451
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6452
# This is similar to how AIX traditionally builds its shared
6454
_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'
6460
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6461
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6462
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6463
# support --undefined. This deserves some investigation. FIXME
6464
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6466
_LT_TAGVAR(ld_shlibs, $1)=no
6471
case $cc_basename in
6473
# FIXME: insert proper C++ library support
6474
_LT_TAGVAR(ld_shlibs, $1)=no
6479
cygwin* | mingw* | pw32* | cegcc*)
6480
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6481
# as there is no search path for DLLs.
6482
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6483
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6484
_LT_TAGVAR(always_export_symbols, $1)=no
6485
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6487
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6488
_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'
6489
# If the export-symbols file already is a .def file (1st line
6490
# is EXPORTS), use it as is; otherwise, prepend...
6491
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6492
cp $export_symbols $output_objdir/$soname.def;
6494
echo EXPORTS > $output_objdir/$soname.def;
6495
cat $export_symbols >> $output_objdir/$soname.def;
6497
$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'
6499
_LT_TAGVAR(ld_shlibs, $1)=no
6502
darwin* | rhapsody*)
6503
_LT_DARWIN_LINKER_FEATURES($1)
6507
case $cc_basename in
6509
# FIXME: insert proper C++ library support
6510
_LT_TAGVAR(ld_shlibs, $1)=no
6513
# Green Hills C++ Compiler
6514
# FIXME: insert proper C++ library support
6515
_LT_TAGVAR(ld_shlibs, $1)=no
6518
# FIXME: insert proper C++ library support
6519
_LT_TAGVAR(ld_shlibs, $1)=no
6525
# C++ shared libraries reported to be fairly broken before
6527
_LT_TAGVAR(ld_shlibs, $1)=no
6531
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6534
freebsd* | dragonfly*)
6535
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6537
_LT_TAGVAR(ld_shlibs, $1)=yes
6544
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6545
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6546
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6547
_LT_TAGVAR(hardcode_direct, $1)=yes
6548
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6549
# but as the default
6550
# location of the library.
6552
case $cc_basename in
6554
# FIXME: insert proper C++ library support
6555
_LT_TAGVAR(ld_shlibs, $1)=no
6558
_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'
6559
# Commands to make compiler produce verbose output that lists
6560
# what "hidden" libraries, object files and flags are used when
6561
# linking a shared library.
6563
# There doesn't appear to be a way to prevent this compiler from
6564
# explicitly linking system object files so we need to strip them
6565
# from the output so that they don't get included in the library
6567
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'
6570
if test "$GXX" = yes; then
6571
_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'
6573
# FIXME: insert proper C++ library support
6574
_LT_TAGVAR(ld_shlibs, $1)=no
6581
if test $with_gnu_ld = no; then
6582
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6583
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6589
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6595
_LT_TAGVAR(hardcode_direct, $1)=no
6596
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6599
_LT_TAGVAR(hardcode_direct, $1)=yes
6600
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6601
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6602
# but as the default
6603
# location of the library.
6607
case $cc_basename in
6609
# FIXME: insert proper C++ library support
6610
_LT_TAGVAR(ld_shlibs, $1)=no
6615
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6618
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6621
_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'
6624
# Commands to make compiler produce verbose output that lists
6625
# what "hidden" libraries, object files and flags are used when
6626
# linking a shared library.
6628
# There doesn't appear to be a way to prevent this compiler from
6629
# explicitly linking system object files so we need to strip them
6630
# from the output so that they don't get included in the library
6632
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'
6635
if test "$GXX" = yes; then
6636
if test $with_gnu_ld = no; then
6639
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6642
_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'
6645
_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'
6650
# FIXME: insert proper C++ library support
6651
_LT_TAGVAR(ld_shlibs, $1)=no
6658
_LT_TAGVAR(hardcode_direct, $1)=no
6659
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6660
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6661
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6662
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6663
# Instead, shared libraries are loaded at an image base (0x10000000 by
6664
# default) and relocated if they conflict, which is a slow very memory
6665
# consuming and fragmenting process. To avoid this, we pick a random,
6666
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6667
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6668
_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'
6669
_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'
6672
case $cc_basename in
6675
_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'
6677
# Archives containing C++ object files must be created using
6678
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6679
# necessary to make sure instantiated templates are included
6681
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6684
if test "$GXX" = yes; then
6685
if test "$with_gnu_ld" = no; then
6686
_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'
6688
_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'
6691
_LT_TAGVAR(link_all_deplibs, $1)=yes
6694
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6695
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6696
_LT_TAGVAR(inherit_rpath, $1)=yes
6699
linux* | k*bsd*-gnu)
6700
case $cc_basename in
6702
# Kuck and Associates, Inc. (KAI) C++ Compiler
6704
# KCC will only create a shared library if the output file
6705
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6706
# to its proper name (with version) after linking.
6707
_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'
6708
_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'
6709
# Commands to make compiler produce verbose output that lists
6710
# what "hidden" libraries, object files and flags are used when
6711
# linking a shared library.
6713
# There doesn't appear to be a way to prevent this compiler from
6714
# explicitly linking system object files so we need to strip them
6715
# from the output so that they don't get included in the library
6717
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'
6719
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6720
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6722
# Archives containing C++ object files must be created using
6723
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6724
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6729
# version 8.0 and above of icpc choke on multiply defined symbols
6730
# if we add $predep_objects and $postdep_objects, however 7.1 and
6731
# earlier do not add the objects themselves.
6732
case `$CC -V 2>&1` in
6734
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6735
_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'
6737
*) # Version 8.0 or newer
6740
ia64*) tmp_idyn=' -i_dynamic';;
6742
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6743
_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'
6746
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6747
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6748
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6749
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6752
# Portland Group C++ compiler
6754
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6755
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6757
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6758
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6759
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6761
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6762
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6764
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6766
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6767
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6768
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6770
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6771
$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'
6773
*) # Version 6 will use weak symbols
6774
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6775
_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'
6779
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6780
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6781
_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'
6785
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6786
_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'
6788
runpath_var=LD_RUN_PATH
6789
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6790
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6792
# Commands to make compiler produce verbose output that lists
6793
# what "hidden" libraries, object files and flags are used when
6794
# linking a shared library.
6796
# There doesn't appear to be a way to prevent this compiler from
6797
# explicitly linking system object files so we need to strip them
6798
# from the output so that they don't get included in the library
6800
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'
6803
# IBM XL 8.0 on PPC, with GNU ld
6804
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6805
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6806
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6807
if test "x$supports_anon_versioning" = xyes; then
6808
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6809
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6810
echo "local: *; };" >> $output_objdir/$libname.ver~
6811
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6815
case `$CC -V 2>&1 | sed 5q` in
6818
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6819
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6820
_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'
6821
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6822
_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'
6823
_LT_TAGVAR(compiler_needs_object, $1)=yes
6825
# Not sure whether something based on
6826
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6828
output_verbose_link_cmd='echo'
6830
# Archives containing C++ object files must be created using
6831
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6832
# necessary to make sure instantiated templates are included
6834
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6842
# FIXME: insert proper C++ library support
6843
_LT_TAGVAR(ld_shlibs, $1)=no
6847
# FIXME: insert proper C++ library support
6848
_LT_TAGVAR(ld_shlibs, $1)=no
6852
case $cc_basename in
6854
# FIXME: insert proper C++ library support
6855
_LT_TAGVAR(ld_shlibs, $1)=no
6858
# FIXME: insert proper C++ library support
6859
_LT_TAGVAR(ld_shlibs, $1)=no
6865
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6866
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6868
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6869
_LT_TAGVAR(hardcode_direct, $1)=yes
6870
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6872
# Workaround some broken pre-1.5 toolchains
6873
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6877
_LT_TAGVAR(ld_shlibs, $1)=yes
6881
# C++ shared libraries are fairly broken
6882
_LT_TAGVAR(ld_shlibs, $1)=no
6886
if test -f /usr/libexec/ld.so; then
6887
_LT_TAGVAR(hardcode_direct, $1)=yes
6888
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6889
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6890
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6891
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6892
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6893
_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'
6894
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6895
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6897
output_verbose_link_cmd=echo
6899
_LT_TAGVAR(ld_shlibs, $1)=no
6903
osf3* | osf4* | osf5*)
6904
case $cc_basename in
6906
# Kuck and Associates, Inc. (KAI) C++ Compiler
6908
# KCC will only create a shared library if the output file
6909
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6910
# to its proper name (with version) after linking.
6911
_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'
6913
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6914
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6916
# Archives containing C++ object files must be created using
6917
# the KAI C++ compiler.
6919
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6920
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6924
# Rational C++ 2.4.1
6925
# FIXME: insert proper C++ library support
6926
_LT_TAGVAR(ld_shlibs, $1)=no
6931
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6932
_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'
6933
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6936
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6937
_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'
6938
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6939
echo "-hidden">> $lib.exp~
6940
$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~
6942
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6946
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6948
# Commands to make compiler produce verbose output that lists
6949
# what "hidden" libraries, object files and flags are used when
6950
# linking a shared library.
6952
# There doesn't appear to be a way to prevent this compiler from
6953
# explicitly linking system object files so we need to strip them
6954
# from the output so that they don't get included in the library
6956
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'
6959
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6960
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6963
_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'
6966
_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'
6970
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6971
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6973
# Commands to make compiler produce verbose output that lists
6974
# what "hidden" libraries, object files and flags are used when
6975
# linking a shared library.
6976
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6979
# FIXME: insert proper C++ library support
6980
_LT_TAGVAR(ld_shlibs, $1)=no
6987
# FIXME: insert proper C++ library support
6988
_LT_TAGVAR(ld_shlibs, $1)=no
6992
case $cc_basename in
6995
# FIXME: insert proper C++ library support
6996
_LT_TAGVAR(ld_shlibs, $1)=no
7000
# FIXME: insert proper C++ library support
7001
_LT_TAGVAR(ld_shlibs, $1)=no
7004
# FIXME: insert proper C++ library support
7005
_LT_TAGVAR(ld_shlibs, $1)=no
7011
case $cc_basename in
7013
# Sun C++ 4.2, 5.x and Centerline C++
7014
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7015
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7016
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7017
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7018
$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'
7020
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7021
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7023
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7025
# The compiler driver will combine and reorder linker options,
7026
# but understands `-z linker_flag'.
7027
# Supported since Solaris 2.6 (maybe 2.5.1?)
7028
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7031
_LT_TAGVAR(link_all_deplibs, $1)=yes
7033
output_verbose_link_cmd='echo'
7035
# Archives containing C++ object files must be created using
7036
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7037
# necessary to make sure instantiated templates are included
7039
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7042
# Green Hills C++ Compiler
7043
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7045
# The C++ compiler must be used to create the archive.
7046
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7049
# GNU C++ compiler with Solaris linker
7050
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7051
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7052
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7053
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7054
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7055
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7057
# Commands to make compiler produce verbose output that lists
7058
# what "hidden" libraries, object files and flags are used when
7059
# linking a shared library.
7060
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7062
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7064
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7065
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7066
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7068
# Commands to make compiler produce verbose output that lists
7069
# what "hidden" libraries, object files and flags are used when
7070
# linking a shared library.
7071
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7074
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7076
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7078
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7086
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7087
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7088
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7089
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7090
runpath_var='LD_RUN_PATH'
7092
case $cc_basename in
7094
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7095
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7098
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7099
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7104
sysv5* | sco3.2v5* | sco5v6*)
7105
# Note: We can NOT use -z defs as we might desire, because we do not
7106
# link with -lc, and that would cause any symbols used from libc to
7107
# always be unresolved, which means just about no library would
7108
# ever link correctly. If we're not using GNU ld we use -z text
7109
# though, which does catch some bad symbols but isn't as heavy-handed
7111
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7112
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7113
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7114
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7115
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7116
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7117
_LT_TAGVAR(link_all_deplibs, $1)=yes
7118
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7119
runpath_var='LD_RUN_PATH'
7121
case $cc_basename in
7123
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7124
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7127
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7128
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7134
case $cc_basename in
7136
# NonStop-UX NCC 3.20
7137
# FIXME: insert proper C++ library support
7138
_LT_TAGVAR(ld_shlibs, $1)=no
7141
# FIXME: insert proper C++ library support
7142
_LT_TAGVAR(ld_shlibs, $1)=no
7148
# FIXME: insert proper C++ library support
7149
_LT_TAGVAR(ld_shlibs, $1)=no
7153
# FIXME: insert proper C++ library support
7154
_LT_TAGVAR(ld_shlibs, $1)=no
7158
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7159
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7161
_LT_TAGVAR(GCC, $1)="$GXX"
7162
_LT_TAGVAR(LD, $1)="$LD"
7165
## There is no encapsulation within the following macros, do not change
7166
## the running order or otherwise move them around unless you know exactly
7167
## what you are doing...
7168
_LT_SYS_HIDDEN_LIBDEPS($1)
7169
_LT_COMPILER_PIC($1)
7170
_LT_COMPILER_C_O($1)
7171
_LT_COMPILER_FILE_LOCKS($1)
7172
_LT_LINKER_SHLIBS($1)
7173
_LT_SYS_DYNAMIC_LINKER($1)
7174
_LT_LINKER_HARDCODE_LIBPATH($1)
7177
fi # test -n "$compiler"
7183
with_gnu_ld=$lt_save_with_gnu_ld
7184
lt_cv_path_LDCXX=$lt_cv_path_LD
7185
lt_cv_path_LD=$lt_save_path_LD
7186
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7187
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7188
fi # test "$_lt_caught_CXX_error" != yes
7191
])# _LT_LANG_CXX_CONFIG
7194
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6726
7195
# ---------------------------------
6727
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6731
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6732
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6733
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6734
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6735
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6736
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6737
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6739
# This is just to silence aclocal about the macro not being used
6740
ifelse([AC_DISABLE_FAST_INSTALL])
6742
AC_DEFUN([LT_AC_PROG_GCJ],
6743
[AC_CHECK_TOOL(GCJ, gcj, no)
6744
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6748
AC_DEFUN([LT_AC_PROG_RC],
6749
[AC_CHECK_TOOL(RC, windres, no)
6753
# Cheap backport of AS_EXECUTABLE_P and required macros
6754
# from Autoconf 2.59; we should not use $as_executable_p directly.
6758
m4_ifndef([_AS_TEST_PREPARE],
6759
[m4_defun([_AS_TEST_PREPARE],
6760
[if test -x / >/dev/null 2>&1; then
6761
as_executable_p='test -x'
7196
# Figure out "hidden" library dependencies from verbose
7197
# compiler output when linking a shared library.
7198
# Parse the compiler output and extract the necessary
7199
# objects, libraries and library flags.
7200
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7201
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7202
# Dependencies to place before and after the object being linked:
7203
_LT_TAGVAR(predep_objects, $1)=
7204
_LT_TAGVAR(postdep_objects, $1)=
7205
_LT_TAGVAR(predeps, $1)=
7206
_LT_TAGVAR(postdeps, $1)=
7207
_LT_TAGVAR(compiler_lib_search_path, $1)=
7209
dnl we can't use the lt_simple_compile_test_code here,
7210
dnl because it contains code intended for an executable,
7211
dnl not a library. It's possible we should let each
7212
dnl tag define a new lt_????_link_test_code variable,
7213
dnl but it's only used here...
7214
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7216
void foo (void) { a = 0; }
7218
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7222
Foo (void) { a = 0; }
7227
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7235
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7243
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7246
public void bar (void) {
7252
dnl Parse the compiler output and extract the necessary
7253
dnl objects, libraries and library flags.
7254
if AC_TRY_EVAL(ac_compile); then
7255
# Parse the compiler output and extract the necessary
7256
# objects, libraries and library flags.
7258
# Sentinel used to keep track of whether or not we are before
7259
# the conftest object file.
7260
pre_test_object_deps_done=no
7262
for p in `eval "$output_verbose_link_cmd"`; do
7266
# Some compilers place space between "-{L,R}" and the path.
7268
if test $p = "-L" ||
7269
test $p = "-R"; then
7276
if test "$pre_test_object_deps_done" = no; then
7279
# Internal compiler library paths should come after those
7280
# provided the user. The postdeps already come after the
7281
# user supplied libs so there is no need to process them.
7282
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7283
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7285
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7288
# The "-l" case would never come before the object being
7289
# linked, so don't bother handling this case.
7292
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7293
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7295
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7301
# This assumes that the test object file only shows up
7302
# once in the compiler output.
7303
if test "$p" = "conftest.$objext"; then
7304
pre_test_object_deps_done=yes
7308
if test "$pre_test_object_deps_done" = no; then
7309
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7310
_LT_TAGVAR(predep_objects, $1)="$p"
7312
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7315
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7316
_LT_TAGVAR(postdep_objects, $1)="$p"
7318
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7323
*) ;; # Ignore the rest.
6763
as_executable_p='test -f'
6765
])])# _AS_TEST_PREPARE
6769
# Check whether a file is executable.
6770
m4_ifndef([AS_EXECUTABLE_P],
6771
[m4_defun([AS_EXECUTABLE_P],
6772
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6773
$as_executable_p $1[]dnl
6774
])])# AS_EXECUTABLE_P
7331
echo "libtool.m4: error: problem compiling $1 test program"
7334
$RM -f confest.$objext
7336
# PORTME: override above test on systems where it is broken
7340
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7341
# hack all around it, let's just trust "g++" to DTRT.
7342
_LT_TAGVAR(predep_objects,$1)=
7343
_LT_TAGVAR(postdep_objects,$1)=
7344
_LT_TAGVAR(postdeps,$1)=
7348
case `$CC -V 2>&1 | sed 5q` in
7352
# The more standards-conforming stlport4 library is
7353
# incompatible with the Cstd library. Avoid specifying
7354
# it if it's in CXXFLAGS. Ignore libCrun as
7355
# -library=stlport4 depends on it.
7356
case " $CXX $CXXFLAGS " in
7357
*" -library=stlport4 "*)
7358
solaris_use_stlport4=yes
7362
if test "$solaris_use_stlport4" != yes; then
7363
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7370
case $cc_basename in
7372
# The more standards-conforming stlport4 library is
7373
# incompatible with the Cstd library. Avoid specifying
7374
# it if it's in CXXFLAGS. Ignore libCrun as
7375
# -library=stlport4 depends on it.
7376
case " $CXX $CXXFLAGS " in
7377
*" -library=stlport4 "*)
7378
solaris_use_stlport4=yes
7382
# Adding this requires a known-good setup of shared libraries for
7383
# Sun compiler versions before 5.6, else PIC objects from an old
7384
# archive will be linked into the output, leading to subtle bugs.
7385
if test "$solaris_use_stlport4" != yes; then
7386
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7394
case " $_LT_TAGVAR(postdeps, $1) " in
7395
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7397
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7398
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7399
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7401
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7402
[The directories searched by this compiler when creating a shared library])
7403
_LT_TAGDECL([], [predep_objects], [1],
7404
[Dependencies to place before and after the objects being linked to
7405
create a shared library])
7406
_LT_TAGDECL([], [postdep_objects], [1])
7407
_LT_TAGDECL([], [predeps], [1])
7408
_LT_TAGDECL([], [postdeps], [1])
7409
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7410
[The library search path used internally by the compiler when linking
7412
])# _LT_SYS_HIDDEN_LIBDEPS
7417
# Since AC_PROG_F77 is broken, in that it returns the empty string
7418
# if there is no fortran compiler, we have our own version here.
7419
m4_defun([_LT_PROG_F77],
7421
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7423
if test -z "$F77" || test "X$F77" = "Xno"; then
7426
popdef([AC_MSG_ERROR])
7429
dnl aclocal-1.4 backwards compatibility:
7430
dnl AC_DEFUN([_LT_PROG_F77], [])
7433
# _LT_LANG_F77_CONFIG([TAG])
7434
# --------------------------
7435
# Ensure that the configuration variables for a Fortran 77 compiler are
7436
# suitably defined. These variables are subsequently used by _LT_CONFIG
7437
# to write the compiler configuration to `libtool'.
7438
m4_defun([_LT_LANG_F77_CONFIG],
7439
[AC_REQUIRE([_LT_PROG_F77])dnl
7440
AC_LANG_PUSH(Fortran 77)
7442
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7443
_LT_TAGVAR(allow_undefined_flag, $1)=
7444
_LT_TAGVAR(always_export_symbols, $1)=no
7445
_LT_TAGVAR(archive_expsym_cmds, $1)=
7446
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7447
_LT_TAGVAR(hardcode_direct, $1)=no
7448
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7449
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7450
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7451
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7452
_LT_TAGVAR(hardcode_minus_L, $1)=no
7453
_LT_TAGVAR(hardcode_automatic, $1)=no
7454
_LT_TAGVAR(inherit_rpath, $1)=no
7455
_LT_TAGVAR(module_cmds, $1)=
7456
_LT_TAGVAR(module_expsym_cmds, $1)=
7457
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7458
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7459
_LT_TAGVAR(no_undefined_flag, $1)=
7460
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7461
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7463
# Source file extension for f77 test sources.
7466
# Object file extension for compiled f77 test sources.
7468
_LT_TAGVAR(objext, $1)=$objext
7470
# No sense in running all these tests if we already determined that
7471
# the F77 compiler isn't working. Some variables (like enable_shared)
7472
# are currently assumed to apply to all compilers on this platform,
7473
# and will be corrupted by setting them based on a non-working compiler.
7474
if test "$_lt_disable_F77" != yes; then
7475
# Code to be used in simple compile tests
7476
lt_simple_compile_test_code="\
7482
# Code to be used in simple link tests
7483
lt_simple_link_test_code="\
7488
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7491
# save warnings/boilerplate of simple test code
7492
_LT_COMPILER_BOILERPLATE
7493
_LT_LINKER_BOILERPLATE
7495
# Allow CC to be a program name with arguments.
7500
_LT_TAGVAR(compiler, $1)=$CC
7501
_LT_CC_BASENAME([$compiler])
7503
if test -n "$compiler"; then
7504
AC_MSG_CHECKING([if libtool supports shared libraries])
7505
AC_MSG_RESULT([$can_build_shared])
7507
AC_MSG_CHECKING([whether to build shared libraries])
7508
test "$can_build_shared" = "no" && enable_shared=no
7510
# On AIX, shared libraries and static libraries use the same namespace, and
7511
# are all built from PIC.
7514
test "$enable_shared" = yes && enable_static=no
7515
if test -n "$RANLIB"; then
7516
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7517
postinstall_cmds='$RANLIB $lib'
7521
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7522
test "$enable_shared" = yes && enable_static=no
7526
AC_MSG_RESULT([$enable_shared])
7528
AC_MSG_CHECKING([whether to build static libraries])
7529
# Make sure either enable_shared or enable_static is yes.
7530
test "$enable_shared" = yes || enable_static=yes
7531
AC_MSG_RESULT([$enable_static])
7533
_LT_TAGVAR(GCC, $1)="$G77"
7534
_LT_TAGVAR(LD, $1)="$LD"
7537
## There is no encapsulation within the following macros, do not change
7538
## the running order or otherwise move them around unless you know exactly
7539
## what you are doing...
7540
_LT_COMPILER_PIC($1)
7541
_LT_COMPILER_C_O($1)
7542
_LT_COMPILER_FILE_LOCKS($1)
7543
_LT_LINKER_SHLIBS($1)
7544
_LT_SYS_DYNAMIC_LINKER($1)
7545
_LT_LINKER_HARDCODE_LIBPATH($1)
7548
fi # test -n "$compiler"
7552
fi # test "$_lt_disable_F77" != yes
7555
])# _LT_LANG_F77_CONFIG
7560
# Since AC_PROG_FC is broken, in that it returns the empty string
7561
# if there is no fortran compiler, we have our own version here.
7562
m4_defun([_LT_PROG_FC],
7564
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7566
if test -z "$FC" || test "X$FC" = "Xno"; then
7569
popdef([AC_MSG_ERROR])
7572
dnl aclocal-1.4 backwards compatibility:
7573
dnl AC_DEFUN([_LT_PROG_FC], [])
7576
# _LT_LANG_FC_CONFIG([TAG])
7577
# -------------------------
7578
# Ensure that the configuration variables for a Fortran compiler are
7579
# suitably defined. These variables are subsequently used by _LT_CONFIG
7580
# to write the compiler configuration to `libtool'.
7581
m4_defun([_LT_LANG_FC_CONFIG],
7582
[AC_REQUIRE([_LT_PROG_FC])dnl
7583
AC_LANG_PUSH(Fortran)
7585
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7586
_LT_TAGVAR(allow_undefined_flag, $1)=
7587
_LT_TAGVAR(always_export_symbols, $1)=no
7588
_LT_TAGVAR(archive_expsym_cmds, $1)=
7589
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7590
_LT_TAGVAR(hardcode_direct, $1)=no
7591
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7592
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7593
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7594
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7595
_LT_TAGVAR(hardcode_minus_L, $1)=no
7596
_LT_TAGVAR(hardcode_automatic, $1)=no
7597
_LT_TAGVAR(inherit_rpath, $1)=no
7598
_LT_TAGVAR(module_cmds, $1)=
7599
_LT_TAGVAR(module_expsym_cmds, $1)=
7600
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7601
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7602
_LT_TAGVAR(no_undefined_flag, $1)=
7603
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7604
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7606
# Source file extension for fc test sources.
7607
ac_ext=${ac_fc_srcext-f}
7609
# Object file extension for compiled fc test sources.
7611
_LT_TAGVAR(objext, $1)=$objext
7613
# No sense in running all these tests if we already determined that
7614
# the FC compiler isn't working. Some variables (like enable_shared)
7615
# are currently assumed to apply to all compilers on this platform,
7616
# and will be corrupted by setting them based on a non-working compiler.
7617
if test "$_lt_disable_FC" != yes; then
7618
# Code to be used in simple compile tests
7619
lt_simple_compile_test_code="\
7625
# Code to be used in simple link tests
7626
lt_simple_link_test_code="\
7631
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7634
# save warnings/boilerplate of simple test code
7635
_LT_COMPILER_BOILERPLATE
7636
_LT_LINKER_BOILERPLATE
7638
# Allow CC to be a program name with arguments.
7643
GCC=$ac_cv_fc_compiler_gnu
7645
_LT_TAGVAR(compiler, $1)=$CC
7646
_LT_CC_BASENAME([$compiler])
7648
if test -n "$compiler"; then
7649
AC_MSG_CHECKING([if libtool supports shared libraries])
7650
AC_MSG_RESULT([$can_build_shared])
7652
AC_MSG_CHECKING([whether to build shared libraries])
7653
test "$can_build_shared" = "no" && enable_shared=no
7655
# On AIX, shared libraries and static libraries use the same namespace, and
7656
# are all built from PIC.
7659
test "$enable_shared" = yes && enable_static=no
7660
if test -n "$RANLIB"; then
7661
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7662
postinstall_cmds='$RANLIB $lib'
7666
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7667
test "$enable_shared" = yes && enable_static=no
7671
AC_MSG_RESULT([$enable_shared])
7673
AC_MSG_CHECKING([whether to build static libraries])
7674
# Make sure either enable_shared or enable_static is yes.
7675
test "$enable_shared" = yes || enable_static=yes
7676
AC_MSG_RESULT([$enable_static])
7678
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7679
_LT_TAGVAR(LD, $1)="$LD"
7682
## There is no encapsulation within the following macros, do not change
7683
## the running order or otherwise move them around unless you know exactly
7684
## what you are doing...
7685
_LT_SYS_HIDDEN_LIBDEPS($1)
7686
_LT_COMPILER_PIC($1)
7687
_LT_COMPILER_C_O($1)
7688
_LT_COMPILER_FILE_LOCKS($1)
7689
_LT_LINKER_SHLIBS($1)
7690
_LT_SYS_DYNAMIC_LINKER($1)
7691
_LT_LINKER_HARDCODE_LIBPATH($1)
7694
fi # test -n "$compiler"
7698
fi # test "$_lt_disable_FC" != yes
7701
])# _LT_LANG_FC_CONFIG
7704
# _LT_LANG_GCJ_CONFIG([TAG])
7705
# --------------------------
7706
# Ensure that the configuration variables for the GNU Java Compiler compiler
7707
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7708
# to write the compiler configuration to `libtool'.
7709
m4_defun([_LT_LANG_GCJ_CONFIG],
7710
[AC_REQUIRE([LT_PROG_GCJ])dnl
7713
# Source file extension for Java test sources.
7716
# Object file extension for compiled Java test sources.
7718
_LT_TAGVAR(objext, $1)=$objext
7720
# Code to be used in simple compile tests
7721
lt_simple_compile_test_code="class foo {}"
7723
# Code to be used in simple link tests
7724
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7726
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7729
# save warnings/boilerplate of simple test code
7730
_LT_COMPILER_BOILERPLATE
7731
_LT_LINKER_BOILERPLATE
7733
# Allow CC to be a program name with arguments.
7739
_LT_TAGVAR(compiler, $1)=$CC
7740
_LT_TAGVAR(LD, $1)="$LD"
7741
_LT_CC_BASENAME([$compiler])
7743
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7744
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7746
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7748
if test -n "$compiler"; then
7749
_LT_COMPILER_NO_RTTI($1)
7750
_LT_COMPILER_PIC($1)
7751
_LT_COMPILER_C_O($1)
7752
_LT_COMPILER_FILE_LOCKS($1)
7753
_LT_LINKER_SHLIBS($1)
7754
_LT_LINKER_HARDCODE_LIBPATH($1)
7763
])# _LT_LANG_GCJ_CONFIG
7766
# _LT_LANG_RC_CONFIG([TAG])
7767
# -------------------------
7768
# Ensure that the configuration variables for the Windows resource compiler
7769
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7770
# to write the compiler configuration to `libtool'.
7771
m4_defun([_LT_LANG_RC_CONFIG],
7772
[AC_REQUIRE([LT_PROG_RC])dnl
7775
# Source file extension for RC test sources.
7778
# Object file extension for compiled RC test sources.
7780
_LT_TAGVAR(objext, $1)=$objext
7782
# Code to be used in simple compile tests
7783
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7785
# Code to be used in simple link tests
7786
lt_simple_link_test_code="$lt_simple_compile_test_code"
7788
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7791
# save warnings/boilerplate of simple test code
7792
_LT_COMPILER_BOILERPLATE
7793
_LT_LINKER_BOILERPLATE
7795
# Allow CC to be a program name with arguments.
7801
_LT_TAGVAR(compiler, $1)=$CC
7802
_LT_CC_BASENAME([$compiler])
7803
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7805
if test -n "$compiler"; then
7813
])# _LT_LANG_RC_CONFIG
7818
AC_DEFUN([LT_PROG_GCJ],
7819
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7820
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7821
[AC_CHECK_TOOL(GCJ, gcj,)
7822
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7823
AC_SUBST(GCJFLAGS)])])[]dnl
7827
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7828
dnl aclocal-1.4 backwards compatibility:
7829
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7834
AC_DEFUN([LT_PROG_RC],
7835
[AC_CHECK_TOOL(RC, windres,)
7839
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7840
dnl aclocal-1.4 backwards compatibility:
7841
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7846
# If we don't have a new enough Autoconf to choose the best grep
7847
# available, choose the one first in the user's PATH.
7848
m4_defun([_LT_DECL_EGREP],
7849
[AC_REQUIRE([AC_PROG_EGREP])dnl
7850
AC_REQUIRE([AC_PROG_FGREP])dnl
7851
test -z "$GREP" && GREP=grep
7852
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7853
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7854
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7855
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7862
# If we don't have a new enough Autoconf to choose the best objdump
7863
# available, choose the one first in the user's PATH.
7864
m4_defun([_LT_DECL_OBJDUMP],
7865
[AC_CHECK_TOOL(OBJDUMP, objdump, false)
7866
test -z "$OBJDUMP" && OBJDUMP=objdump
7867
_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7874
# Check for a fully-functional sed program, that truncates
7875
# as few characters as possible. Prefer GNU sed if found.
7876
m4_defun([_LT_DECL_SED],
7878
test -z "$SED" && SED=sed
7879
Xsed="$SED -e 1s/^X//"
7880
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7881
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7882
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7885
m4_ifndef([AC_PROG_SED], [
6776
7886
# NOTE: This macro has been submitted for inclusion into #
6777
7887
# GNU Autoconf as AC_PROG_SED. When it is available in #
6778
7888
# a released version of Autoconf we should remove this #
6779
7889
# macro and use it instead. #
6782
# Check for a fully-functional sed program, that truncates
6783
# as few characters as possible. Prefer GNU sed if found.
6784
AC_DEFUN([LT_AC_PROG_SED],
7891
m4_defun([AC_PROG_SED],
6785
7892
[AC_MSG_CHECKING([for a sed that does not truncate output])
6786
7893
AC_CACHE_VAL(lt_cv_path_SED,
6787
7894
[# Loop through the user's path and test for sed and gsed.
6834
7941
SED=$lt_cv_path_SED
6835
7942
AC_SUBST([SED])
6836
7943
AC_MSG_RESULT([$SED])
7948
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7949
dnl aclocal-1.4 backwards compatibility:
7950
dnl AC_DEFUN([LT_AC_PROG_SED], [])
7953
# _LT_CHECK_SHELL_FEATURES
7954
# ------------------------
7955
# Find out whether the shell is Bourne or XSI compatible,
7956
# or has some other useful features.
7957
m4_defun([_LT_CHECK_SHELL_FEATURES],
7958
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7959
# Try some XSI features
7962
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7964
&& eval 'test $(( 1 + 1 )) -eq 2 \
7965
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7967
AC_MSG_RESULT([$xsi_shell])
7968
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7970
AC_MSG_CHECKING([whether the shell understands "+="])
7972
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7974
&& lt_shell_append=yes
7975
AC_MSG_RESULT([$lt_shell_append])
7976
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7978
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7983
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7985
# test EBCDIC or ASCII
7986
case `echo X|tr X '\101'` in
7987
A) # ASCII based system
7988
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7989
lt_SP2NL='tr \040 \012'
7990
lt_NL2SP='tr \015\012 \040\040'
7992
*) # EBCDIC based system
7993
lt_SP2NL='tr \100 \n'
7994
lt_NL2SP='tr \r\n \100\100'
7997
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7998
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7999
])# _LT_CHECK_SHELL_FEATURES
8002
# _LT_PROG_XSI_SHELLFNS
8003
# ---------------------
8004
# Bourne and XSI compatible variants of some useful shell functions.
8005
m4_defun([_LT_PROG_XSI_SHELLFNS],
8008
cat << \_LT_EOF >> "$cfgfile"
8010
# func_dirname file append nondir_replacement
8011
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8012
# otherwise set result to NONDIR_REPLACEMENT.
8016
*/*) func_dirname_result="${1%/*}${2}" ;;
8017
* ) func_dirname_result="${3}" ;;
8021
# func_basename file
8024
func_basename_result="${1##*/}"
8027
# func_dirname_and_basename file append nondir_replacement
8028
# perform func_basename and func_dirname in a single function
8030
# dirname: Compute the dirname of FILE. If nonempty,
8031
# add APPEND to the result, otherwise set result
8032
# to NONDIR_REPLACEMENT.
8033
# value returned in "$func_dirname_result"
8034
# basename: Compute filename of FILE.
8035
# value retuned in "$func_basename_result"
8036
# Implementation must be kept synchronized with func_dirname
8037
# and func_basename. For efficiency, we do not delegate to
8038
# those functions but instead duplicate the functionality here.
8039
func_dirname_and_basename ()
8042
*/*) func_dirname_result="${1%/*}${2}" ;;
8043
* ) func_dirname_result="${3}" ;;
8045
func_basename_result="${1##*/}"
8048
# func_stripname prefix suffix name
8049
# strip PREFIX and SUFFIX off of NAME.
8050
# PREFIX and SUFFIX must not contain globbing or regex special
8051
# characters, hashes, percent signs, but SUFFIX may contain a leading
8052
# dot (in which case that matches only a dot).
8055
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8056
# positional parameters, so assign one to ordinary parameter first.
8057
func_stripname_result=${3}
8058
func_stripname_result=${func_stripname_result#"${1}"}
8059
func_stripname_result=${func_stripname_result%"${2}"}
8065
func_opt_split_opt=${1%%=*}
8066
func_opt_split_arg=${1#*=}
8073
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8074
*) func_lo2o_result=${1} ;;
8078
# func_xform libobj-or-source
8081
func_xform_result=${1%.*}.lo
8084
# func_arith arithmetic-term...
8087
func_arith_result=$(( $[*] ))
8091
# STRING may not start with a hyphen.
8094
func_len_result=${#1}
8099
*) # Bourne compatible functions.
8100
cat << \_LT_EOF >> "$cfgfile"
8102
# func_dirname file append nondir_replacement
8103
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8104
# otherwise set result to NONDIR_REPLACEMENT.
8107
# Extract subdirectory from the argument.
8108
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8109
if test "X$func_dirname_result" = "X${1}"; then
8110
func_dirname_result="${3}"
8112
func_dirname_result="$func_dirname_result${2}"
8116
# func_basename file
8119
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8122
dnl func_dirname_and_basename
8123
dnl A portable version of this function is already defined in general.m4sh
8124
dnl so there is no need for it here.
8126
# func_stripname prefix suffix name
8127
# strip PREFIX and SUFFIX off of NAME.
8128
# PREFIX and SUFFIX must not contain globbing or regex special
8129
# characters, hashes, percent signs, but SUFFIX may contain a leading
8130
# dot (in which case that matches only a dot).
8131
# func_strip_suffix prefix name
8135
.*) func_stripname_result=`$ECHO "X${3}" \
8136
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8137
*) func_stripname_result=`$ECHO "X${3}" \
8138
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8143
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8144
my_sed_long_arg='1s/^-[[^=]]*=//'
8149
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8150
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8156
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8159
# func_xform libobj-or-source
8162
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8165
# func_arith arithmetic-term...
8168
func_arith_result=`expr "$[@]"`
8172
# STRING may not start with a hyphen.
8175
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8181
case $lt_shell_append in
8183
cat << \_LT_EOF >> "$cfgfile"
8185
# func_append var value
8186
# Append VALUE to the end of shell variable VAR.
8194
cat << \_LT_EOF >> "$cfgfile"
8196
# func_append var value
8197
# Append VALUE to the end of shell variable VAR.
8200
eval "$[1]=\$$[1]\$[2]"
8208
# Helper functions for option handling. -*- Autoconf -*-
8210
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8211
# Written by Gary V. Vaughan, 2004
8213
# This file is free software; the Free Software Foundation gives
8214
# unlimited permission to copy and/or distribute it, with or without
8215
# modifications, as long as this notice is preserved.
8217
# serial 6 ltoptions.m4
8219
# This is to help aclocal find these macros, as it can't see m4_define.
8220
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8223
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8224
# ------------------------------------------
8225
m4_define([_LT_MANGLE_OPTION],
8226
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8229
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8230
# ---------------------------------------
8231
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8232
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8234
m4_define([_LT_SET_OPTION],
8235
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8236
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8237
_LT_MANGLE_DEFUN([$1], [$2]),
8238
[m4_warning([Unknown $1 option `$2'])])[]dnl
8242
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8243
# ------------------------------------------------------------
8244
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8245
m4_define([_LT_IF_OPTION],
8246
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8249
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8250
# -------------------------------------------------------
8251
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8253
m4_define([_LT_UNLESS_OPTIONS],
8254
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8255
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8256
[m4_define([$0_found])])])[]dnl
8257
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8262
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8263
# ----------------------------------------
8264
# OPTION-LIST is a space-separated list of Libtool options associated
8265
# with MACRO-NAME. If any OPTION has a matching handler declared with
8266
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8267
# the unknown option and exit.
8268
m4_defun([_LT_SET_OPTIONS],
8270
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8271
[_LT_SET_OPTION([$1], _LT_Option)])
8273
m4_if([$1],[LT_INIT],[
8275
dnl Simply set some default values (i.e off) if boolean options were not
8277
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8279
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8282
dnl If no reference was made to various pairs of opposing options, then
8283
dnl we run the default mode handler for the pair. For example, if neither
8284
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8285
dnl archives by default:
8286
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8287
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8288
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8289
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8290
[_LT_ENABLE_FAST_INSTALL])
8296
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8297
# -----------------------------------------
8298
m4_define([_LT_MANGLE_DEFUN],
8299
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8302
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8303
# -----------------------------------------------
8304
m4_define([LT_OPTION_DEFINE],
8305
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8306
])# LT_OPTION_DEFINE
8311
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8314
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8315
[_LT_SET_OPTION([LT_INIT], [dlopen])
8316
AC_DIAGNOSE([obsolete],
8317
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8318
put the `dlopen' option into LT_INIT's first parameter.])
8321
dnl aclocal-1.4 backwards compatibility:
8322
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8327
# Declare package support for building win32 dll's.
8328
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8329
[enable_win32_dll=yes
8332
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8333
AC_CHECK_TOOL(AS, as, false)
8334
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8335
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8339
test -z "$AS" && AS=as
8340
_LT_DECL([], [AS], [0], [Assembler program])dnl
8342
test -z "$DLLTOOL" && DLLTOOL=dlltool
8343
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8345
test -z "$OBJDUMP" && OBJDUMP=objdump
8346
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8349
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8350
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8351
_LT_SET_OPTION([LT_INIT], [win32-dll])
8352
AC_DIAGNOSE([obsolete],
8353
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8354
put the `win32-dll' option into LT_INIT's first parameter.])
8357
dnl aclocal-1.4 backwards compatibility:
8358
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8361
# _LT_ENABLE_SHARED([DEFAULT])
8362
# ----------------------------
8363
# implement the --enable-shared flag, and supports the `shared' and
8364
# `disable-shared' LT_INIT options.
8365
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8366
m4_define([_LT_ENABLE_SHARED],
8367
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8368
AC_ARG_ENABLE([shared],
8369
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8370
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8371
[p=${PACKAGE-default}
8373
yes) enable_shared=yes ;;
8374
no) enable_shared=no ;;
8377
# Look at the argument we got. We use all the common list separators.
8378
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8379
for pkg in $enableval; do
8381
if test "X$pkg" = "X$p"; then
8388
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8390
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8391
[Whether or not to build shared libraries])
8392
])# _LT_ENABLE_SHARED
8394
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8395
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8398
AC_DEFUN([AC_ENABLE_SHARED],
8399
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8402
AC_DEFUN([AC_DISABLE_SHARED],
8403
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8406
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8407
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8409
dnl aclocal-1.4 backwards compatibility:
8410
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8411
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8415
# _LT_ENABLE_STATIC([DEFAULT])
8416
# ----------------------------
8417
# implement the --enable-static flag, and support the `static' and
8418
# `disable-static' LT_INIT options.
8419
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8420
m4_define([_LT_ENABLE_STATIC],
8421
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8422
AC_ARG_ENABLE([static],
8423
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8424
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8425
[p=${PACKAGE-default}
8427
yes) enable_static=yes ;;
8428
no) enable_static=no ;;
8431
# Look at the argument we got. We use all the common list separators.
8432
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8433
for pkg in $enableval; do
8435
if test "X$pkg" = "X$p"; then
8442
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8444
_LT_DECL([build_old_libs], [enable_static], [0],
8445
[Whether or not to build static libraries])
8446
])# _LT_ENABLE_STATIC
8448
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8449
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8452
AC_DEFUN([AC_ENABLE_STATIC],
8453
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8456
AC_DEFUN([AC_DISABLE_STATIC],
8457
[_LT_SET_OPTION([LT_INIT], [disable-static])
8460
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8461
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8463
dnl aclocal-1.4 backwards compatibility:
8464
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8465
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8469
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8470
# ----------------------------------
8471
# implement the --enable-fast-install flag, and support the `fast-install'
8472
# and `disable-fast-install' LT_INIT options.
8473
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8474
m4_define([_LT_ENABLE_FAST_INSTALL],
8475
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8476
AC_ARG_ENABLE([fast-install],
8477
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8478
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8479
[p=${PACKAGE-default}
8481
yes) enable_fast_install=yes ;;
8482
no) enable_fast_install=no ;;
8484
enable_fast_install=no
8485
# Look at the argument we got. We use all the common list separators.
8486
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8487
for pkg in $enableval; do
8489
if test "X$pkg" = "X$p"; then
8490
enable_fast_install=yes
8496
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8498
_LT_DECL([fast_install], [enable_fast_install], [0],
8499
[Whether or not to optimize for fast installation])dnl
8500
])# _LT_ENABLE_FAST_INSTALL
8502
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8503
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8506
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8507
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8508
AC_DIAGNOSE([obsolete],
8509
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8510
the `fast-install' option into LT_INIT's first parameter.])
8513
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8514
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8515
AC_DIAGNOSE([obsolete],
8516
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8517
the `disable-fast-install' option into LT_INIT's first parameter.])
8520
dnl aclocal-1.4 backwards compatibility:
8521
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8522
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8525
# _LT_WITH_PIC([MODE])
8526
# --------------------
8527
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8529
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8530
m4_define([_LT_WITH_PIC],
8532
[AS_HELP_STRING([--with-pic],
8533
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8534
[pic_mode="$withval"],
8537
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8539
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8542
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8543
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8546
AU_DEFUN([AC_LIBTOOL_PICMODE],
8547
[_LT_SET_OPTION([LT_INIT], [pic-only])
8548
AC_DIAGNOSE([obsolete],
8549
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8550
put the `pic-only' option into LT_INIT's first parameter.])
8553
dnl aclocal-1.4 backwards compatibility:
8554
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8557
m4_define([_LTDL_MODE], [])
8558
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8559
[m4_define([_LTDL_MODE], [nonrecursive])])
8560
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8561
[m4_define([_LTDL_MODE], [recursive])])
8562
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8563
[m4_define([_LTDL_MODE], [subproject])])
8565
m4_define([_LTDL_TYPE], [])
8566
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8567
[m4_define([_LTDL_TYPE], [installable])])
8568
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8569
[m4_define([_LTDL_TYPE], [convenience])])
8571
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8573
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8574
# Written by Gary V. Vaughan, 2004
8576
# This file is free software; the Free Software Foundation gives
8577
# unlimited permission to copy and/or distribute it, with or without
8578
# modifications, as long as this notice is preserved.
8580
# serial 6 ltsugar.m4
8582
# This is to help aclocal find these macros, as it can't see m4_define.
8583
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8586
# lt_join(SEP, ARG1, [ARG2...])
8587
# -----------------------------
8588
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8589
# associated separator.
8590
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8591
# versions in m4sugar had bugs.
8592
m4_define([lt_join],
8593
[m4_if([$#], [1], [],
8595
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8596
m4_define([_lt_join],
8597
[m4_if([$#$2], [2], [],
8598
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8604
# Manipulate m4 lists.
8605
# These macros are necessary as long as will still need to support
8606
# Autoconf-2.59 which quotes differently.
8607
m4_define([lt_car], [[$1]])
8609
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8611
[m4_dquote(m4_shift($@))])])
8612
m4_define([lt_unquote], $1)
8615
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8616
# ------------------------------------------
8617
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8618
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8619
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8620
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8621
# than defined and empty).
8623
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8624
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8625
m4_define([lt_append],
8627
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8631
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8632
# ----------------------------------------------------------
8633
# Produce a SEP delimited list of all paired combinations of elements of
8634
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8635
# has the form PREFIXmINFIXSUFFIXn.
8636
# Needed until we can rely on m4_combine added in Autoconf 2.62.
8637
m4_define([lt_combine],
8638
[m4_if(m4_eval([$# > 3]), [1],
8639
[m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8640
[[m4_foreach([_Lt_prefix], [$2],
8641
[m4_foreach([_Lt_suffix],
8642
]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8643
[_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8646
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8647
# -----------------------------------------------------------------------
8648
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8649
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8650
m4_define([lt_if_append_uniq],
8652
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8653
[lt_append([$1], [$2], [$3])$4],
8655
[lt_append([$1], [$2], [$3])$4])])
8658
# lt_dict_add(DICT, KEY, VALUE)
8659
# -----------------------------
8660
m4_define([lt_dict_add],
8661
[m4_define([$1($2)], [$3])])
8664
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8665
# --------------------------------------------
8666
m4_define([lt_dict_add_subkey],
8667
[m4_define([$1($2:$3)], [$4])])
8670
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8671
# ----------------------------------
8672
m4_define([lt_dict_fetch],
8674
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8675
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8678
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8679
# -----------------------------------------------------------------
8680
m4_define([lt_if_dict_fetch],
8681
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8686
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8687
# --------------------------------------------------------------
8688
m4_define([lt_dict_filter],
8689
[m4_if([$5], [], [],
8690
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8691
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8692
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8695
# ltversion.m4 -- version numbers -*- Autoconf -*-
8697
# Copyright (C) 2004 Free Software Foundation, Inc.
8698
# Written by Scott James Remnant, 2004
8700
# This file is free software; the Free Software Foundation gives
8701
# unlimited permission to copy and/or distribute it, with or without
8702
# modifications, as long as this notice is preserved.
8704
# Generated from ltversion.in.
8706
# serial 3012 ltversion.m4
8707
# This file is part of GNU Libtool
8709
m4_define([LT_PACKAGE_VERSION], [2.2.6])
8710
m4_define([LT_PACKAGE_REVISION], [1.3012])
8712
AC_DEFUN([LTVERSION_VERSION],
8713
[macro_version='2.2.6'
8714
macro_revision='1.3012'
8715
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8716
_LT_DECL(, macro_revision, 0)
8719
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8721
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8722
# Written by Scott James Remnant, 2004.
8724
# This file is free software; the Free Software Foundation gives
8725
# unlimited permission to copy and/or distribute it, with or without
8726
# modifications, as long as this notice is preserved.
8728
# serial 4 lt~obsolete.m4
8730
# These exist entirely to fool aclocal when bootstrapping libtool.
8732
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8733
# which have later been changed to m4_define as they aren't part of the
8734
# exported API, or moved to Autoconf or Automake where they belong.
8736
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8737
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8738
# using a macro with the same name in our local m4/libtool.m4 it'll
8739
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8740
# and doesn't know about Autoconf macros at all.)
8742
# So we provide this file, which has a silly filename so it's always
8743
# included after everything else. This provides aclocal with the
8744
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8745
# because those macros already exist, or will be overwritten later.
8746
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8748
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8749
# Yes, that means every name once taken will need to remain here until
8750
# we give up compatibility with versions before 1.7, at which point
8751
# we need to keep only those names which we still refer to.
8753
# This is to help aclocal find these macros, as it can't see m4_define.
8754
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8756
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8757
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8758
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8759
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8760
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8761
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8762
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8763
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8764
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8765
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8766
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8767
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8768
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8769
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8770
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8771
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8772
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8773
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8774
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8775
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8776
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8777
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8778
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8779
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8780
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8781
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8782
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8783
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8784
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8785
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8786
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8787
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8788
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8789
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8790
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8791
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8792
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8793
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8794
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8795
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8796
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8797
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8798
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8799
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8800
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8801
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8802
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8803
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8804
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8805
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8806
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8807
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8808
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8809
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8810
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8812
# nls.m4 serial 3 (gettext-0.15)
8813
dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8814
dnl This file is free software; the Free Software Foundation
8815
dnl gives unlimited permission to copy and/or distribute it,
8816
dnl with or without modifications, as long as this notice is preserved.
8818
dnl This file can can be used in projects which are not available under
8819
dnl the GNU General Public License or the GNU Library General Public
8820
dnl License but which still want to provide support for the GNU gettext
8822
dnl Please note that the actual code of the GNU gettext library is covered
8823
dnl by the GNU Library General Public License, and the rest of the GNU
8824
dnl gettext package package is covered by the GNU General Public License.
8825
dnl They are *not* in the public domain.
8828
dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8829
dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8835
AC_MSG_CHECKING([whether NLS is requested])
8836
dnl Default is enabled NLS
8838
[ --disable-nls do not use Native Language Support],
8839
USE_NLS=$enableval, USE_NLS=yes)
8840
AC_MSG_RESULT($USE_NLS)
6839
8844
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7889
9903
AC_SUBST([am__untar])
7890
9904
]) # _AM_PROG_TAR
7892
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7893
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7895
# This file is free software, distributed under the terms of the GNU
7896
# General Public License. As a special exception to the GNU General
7897
# Public License, this file may be distributed as part of a program
7898
# that contains a configuration script generated by Autoconf, under
7899
# the same distribution terms as the rest of that program.
7901
# This file can be copied and used freely without restrictions. It can
7902
# be used in projects which are not available under the GNU Public License
7903
# but which still want to provide support for the GNU gettext functionality.
7905
# Macro to add for using GNU gettext.
7906
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7908
# Modified to never use included libintl.
7909
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7911
# Major rework to remove unused code
7912
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7914
# Added better handling of ALL_LINGUAS from GNU gettext version
7915
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7917
# Modified to require ngettext
7918
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7920
# We need this here as well, since someone might use autoconf-2.5x
7921
# to configure GLib then an older version to configure a package
7922
# using AM_GLIB_GNU_GETTEXT
7926
dnl We go to great lengths to make sure that aclocal won't
7927
dnl try to pull in the installed version of these macros
7928
dnl when running aclocal in the glib directory.
7930
m4_copy([AC_DEFUN],[glib_DEFUN])
7931
m4_copy([AC_REQUIRE],[glib_REQUIRE])
7933
dnl At the end, if we're not within glib, we'll define the public
7934
dnl definitions in terms of our private definitions.
7938
#--------------------
7939
glib_DEFUN([GLIB_LC_MESSAGES],
7940
[AC_CHECK_HEADERS([locale.h])
7941
if test $ac_cv_header_locale_h = yes; then
7942
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
7943
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
7944
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
7945
if test $am_cv_val_LC_MESSAGES = yes; then
7946
AC_DEFINE(HAVE_LC_MESSAGES, 1,
7947
[Define if your <locale.h> file defines LC_MESSAGES.])
7951
# GLIB_PATH_PROG_WITH_TEST
7952
#----------------------------
7953
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
7954
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
7955
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
7956
[# Extract the first word of "$2", so it can be a program name with args.
7957
set dummy $2; ac_word=[$]2
7958
AC_MSG_CHECKING([for $ac_word])
7959
AC_CACHE_VAL(ac_cv_path_$1,
7962
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
7965
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
7966
for ac_dir in ifelse([$5], , $PATH, [$5]); do
7967
test -z "$ac_dir" && ac_dir=.
7968
if test -f $ac_dir/$ac_word; then
7970
ac_cv_path_$1="$ac_dir/$ac_word"
7976
dnl If no 4th arg is given, leave the cache variable unset,
7977
dnl so AC_PATH_PROGS will keep looking.
7978
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
7983
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
7984
AC_MSG_RESULT([$]$1)
7993
glib_DEFUN([GLIB_WITH_NLS],
7994
dnl NLS is obligatory
7998
gt_cv_have_gettext=no
8004
AC_CHECK_HEADER(libintl.h,
8005
[gt_cv_func_dgettext_libintl="no"
8006
libintl_extra_libs=""
8009
# First check in libc
8011
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
8013
#include <libintl.h>
8015
[return !ngettext ("","", 1)],
8016
gt_cv_func_ngettext_libc=yes,
8017
gt_cv_func_ngettext_libc=no)
8020
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8021
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
8023
#include <libintl.h>
8025
[return !dgettext ("","")],
8026
gt_cv_func_dgettext_libc=yes,
8027
gt_cv_func_dgettext_libc=no)
8031
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8032
AC_CHECK_FUNCS(bind_textdomain_codeset)
8036
# If we don't have everything we want, check in libintl
8038
if test "$gt_cv_func_dgettext_libc" != "yes" \
8039
|| test "$gt_cv_func_ngettext_libc" != "yes" \
8040
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8042
AC_CHECK_LIB(intl, bindtextdomain,
8043
[AC_CHECK_LIB(intl, ngettext,
8044
[AC_CHECK_LIB(intl, dgettext,
8045
gt_cv_func_dgettext_libintl=yes)])])
8047
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8048
AC_MSG_CHECKING([if -liconv is needed to use gettext])
8050
AC_CHECK_LIB(intl, ngettext,
8051
[AC_CHECK_LIB(intl, dcgettext,
8052
[gt_cv_func_dgettext_libintl=yes
8053
libintl_extra_libs=-liconv],
8059
# If we found libintl, then check in it for bind_textdomain_codeset();
8060
# we'll prefer libc if neither have bind_textdomain_codeset(),
8061
# and both have dgettext and ngettext
8063
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8064
glib_save_LIBS="$LIBS"
8065
LIBS="$LIBS -lintl $libintl_extra_libs"
8066
unset ac_cv_func_bind_textdomain_codeset
8067
AC_CHECK_FUNCS(bind_textdomain_codeset)
8068
LIBS="$glib_save_LIBS"
8070
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8071
gt_cv_func_dgettext_libc=no
8073
if test "$gt_cv_func_dgettext_libc" = "yes" \
8074
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
8075
gt_cv_func_dgettext_libintl=no
8081
if test "$gt_cv_func_dgettext_libc" = "yes" \
8082
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
8083
gt_cv_have_gettext=yes
8086
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8087
INTLLIBS="-lintl $libintl_extra_libs"
8090
if test "$gt_cv_have_gettext" = "yes"; then
8091
AC_DEFINE(HAVE_GETTEXT,1,
8092
[Define if the GNU gettext() function is already present or preinstalled.])
8093
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
8094
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
8095
if test "$MSGFMT" != "no"; then
8096
glib_save_LIBS="$LIBS"
8097
LIBS="$LIBS $INTLLIBS"
8098
AC_CHECK_FUNCS(dcgettext)
8100
AC_MSG_CHECKING([if msgfmt accepts -c])
8101
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
8104
"Content-Type: text/plain; charset=UTF-8\n"
8105
"Project-Id-Version: test 1.0\n"
8106
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
8107
"Last-Translator: test <foo@bar.xx>\n"
8108
"Language-Team: C <LL@li.org>\n"
8109
"MIME-Version: 1.0\n"
8110
"Content-Transfer-Encoding: 8bit\n"
8111
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
8112
AC_SUBST(MSGFMT_OPTS)
8113
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
8114
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
8115
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
8116
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
8117
return _nl_msg_cat_cntr],
8122
dnl On Solaris, if bind_textdomain_codeset is in libc,
8123
dnl GNU format message catalog is always supported,
8124
dnl since both are added to the libc all together.
8125
dnl Hence, we'd like to go with DATADIRNAME=share and
8126
dnl and CATOBJEXT=.gmo in this case.
8127
AC_CHECK_FUNC(bind_textdomain_codeset,
8138
LIBS="$glib_save_LIBS"
8141
gt_cv_have_gettext=no
8146
if test "$gt_cv_have_gettext" = "yes" ; then
8147
AC_DEFINE(ENABLE_NLS, 1,
8148
[always defined to indicate that i18n is enabled])
8151
dnl Test whether we really found GNU xgettext.
8152
if test "$XGETTEXT" != ":"; then
8153
dnl If it is not GNU xgettext we define it as : so that the
8154
dnl Makefiles still can work.
8155
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8159
[found xgettext program is not GNU xgettext; ignore it])
8164
# We need to process the po/ directory.
8168
[case "$CONFIG_FILES" in *po/Makefile.in*)
8169
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8172
dnl These rules are solely for the distribution goal. While doing this
8173
dnl we only have to keep exactly one list of the available catalogs
8174
dnl in configure.in.
8175
for lang in $ALL_LINGUAS; do
8176
GMOFILES="$GMOFILES $lang.gmo"
8177
POFILES="$POFILES $lang.po"
8180
dnl Make all variables we use known to autoconf.
8183
AC_SUBST(DATADIRNAME)
8185
AC_SUBST(INSTOBJEXT)
8187
AC_SUBST(PO_IN_DATADIR_TRUE)
8188
AC_SUBST(PO_IN_DATADIR_FALSE)
8193
# AM_GLIB_GNU_GETTEXT
8194
# -------------------
8195
# Do checks necessary for use of gettext. If a suitable implementation
8196
# of gettext is found in either in libintl or in the C library,
8197
# it will set INTLLIBS to the libraries needed for use of gettext
8198
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
8199
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
8200
# on various variables needed by the Makefile.in.in installed by
8203
glib_DEFUN([GLIB_GNU_GETTEXT],
8204
[AC_REQUIRE([AC_PROG_CC])dnl
8205
AC_REQUIRE([AC_HEADER_STDC])dnl
8210
if test "$gt_cv_have_gettext" = "yes"; then
8211
if test "x$ALL_LINGUAS" = "x"; then
8214
AC_MSG_CHECKING(for catalogs to be installed)
8216
for presentlang in $ALL_LINGUAS; do
8218
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8219
desiredlanguages="$LINGUAS"
8221
desiredlanguages="$ALL_LINGUAS"
8223
for desiredlang in $desiredlanguages; do
8224
# Use the presentlang catalog if desiredlang is
8225
# a. equal to presentlang, or
8226
# b. a variant of presentlang (because in this case,
8227
# presentlang can be used as a fallback for messages
8228
# which are not translated in the desiredlang catalog).
8229
case "$desiredlang" in
8230
"$presentlang"*) useit=yes;;
8233
if test $useit = yes; then
8234
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8237
LINGUAS=$NEW_LINGUAS
8238
AC_MSG_RESULT($LINGUAS)
8241
dnl Construct list of names of catalog files to be constructed.
8242
if test -n "$LINGUAS"; then
8243
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8247
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
8248
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
8249
dnl Try to locate is.
8251
if test -n "$ac_aux_dir"; then
8252
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8254
if test -z "$MKINSTALLDIRS"; then
8255
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8257
AC_SUBST(MKINSTALLDIRS)
8259
dnl Generate list of files to be processed by xgettext which will
8260
dnl be included in po/Makefile.
8261
test -d po || mkdir po
8262
if test "x$srcdir" != "x."; then
8263
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8264
posrcprefix="$srcdir/"
8266
posrcprefix="../$srcdir/"
8272
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8273
< $srcdir/po/POTFILES.in > po/POTFILES
8276
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
8277
# -------------------------------
8278
# Define VARIABLE to the location where catalog files will
8279
# be installed by po/Makefile.
8280
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
8281
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
8282
glib_save_prefix="$prefix"
8283
glib_save_exec_prefix="$exec_prefix"
8284
glib_save_datarootdir="$datarootdir"
8285
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8286
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8287
datarootdir=`eval echo "${datarootdir}"`
8288
if test "x$CATOBJEXT" = "x.mo" ; then
8289
localedir=`eval echo "${libdir}/locale"`
8291
localedir=`eval echo "${datadir}/locale"`
8293
prefix="$glib_save_prefix"
8294
exec_prefix="$glib_save_exec_prefix"
8295
datarootdir="$glib_save_datarootdir"
8296
AC_DEFINE_UNQUOTED($1, "$localedir",
8297
[Define the location where the catalogs will be installed])
8301
dnl Now the definitions that aclocal will find
8303
ifdef(glib_configure_in,[],[
8304
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
8305
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
8308
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
8310
# Create a temporary file with TEST-FILE as its contents and pass the
8311
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
8312
# 0 and perform ACTION-IF-FAIL for any other exit status.
8313
AC_DEFUN([GLIB_RUN_PROG],
8314
[cat >conftest.foo <<_ACEOF
8317
if AC_RUN_LOG([$1 conftest.foo]); then
8318
m4_ifval([$3], [$3], [:])
8319
m4_ifvaln([$4], [else $4])dnl
8320
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
8321
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
8328
dnl GNOME_COMMON_INIT
8330
AC_DEFUN([GNOME_COMMON_INIT],
8332
dnl this macro should come after AC_CONFIG_MACRO_DIR
8333
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
8335
dnl ensure that when the Automake generated makefile calls aclocal,
8336
dnl it honours the $ACLOCAL_FLAGS environment variable
8337
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
8338
if test -n "$ac_macro_dir"; then
8339
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
8342
AC_SUBST([ACLOCAL_AMFLAGS])
8345
AC_DEFUN([GNOME_DEBUG_CHECK],
8347
AC_ARG_ENABLE([debug],
8348
AC_HELP_STRING([--enable-debug],
8349
[turn on debugging]),,
8352
if test x$enable_debug = xyes ; then
8353
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
8354
[Enable additional debugging at the expense of performance and size])
8358
dnl GNOME_MAINTAINER_MODE_DEFINES ()
8359
dnl define DISABLE_DEPRECATED
8361
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
8363
AC_REQUIRE([AM_MAINTAINER_MODE])
8365
if test $USE_MAINTAINER_MODE = yes; then
8366
DISABLE_DEPRECATED="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DPANGO_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGCONF_DISABLE_DEPRECATED -DBONOBO_DISABLE_DEPRECATED -DBONOBO_UI_DISABLE_DEPRECATED -DGNOME_VFS_DISABLE_DEPRECATED -DGNOME_DISABLE_DEPRECATED -DLIBGLADE_DISABLE_DEPRECATED"
8368
DISABLE_DEPRECATED=""
8370
AC_SUBST(DISABLE_DEPRECATED)
8373
dnl GNOME_COMPILE_WARNINGS
8374
dnl Turn on many useful compiler warnings
8375
dnl For now, only works on GCC
8376
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
8377
dnl ******************************
8378
dnl More compiler warnings
8379
dnl ******************************
8381
AC_ARG_ENABLE(compile-warnings,
8382
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
8383
[Turn on compiler warnings]),,
8384
[enable_compile_warnings="m4_default([$1],[yes])"])
8387
if test "x$GCC" != xyes; then
8388
enable_compile_warnings=no
8392
realsave_CFLAGS="$CFLAGS"
8394
case "$enable_compile_warnings" in
8399
warning_flags="-Wall"
8402
warning_flags="-Wall -Wmissing-prototypes"
8405
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8406
CFLAGS="$warning_flags $CFLAGS"
8407
for option in -Wno-sign-compare; do
8408
SAVE_CFLAGS="$CFLAGS"
8409
CFLAGS="$CFLAGS $option"
8410
AC_MSG_CHECKING([whether gcc understands $option])
8411
AC_TRY_COMPILE([], [],
8414
CFLAGS="$SAVE_CFLAGS"
8415
AC_MSG_RESULT($has_option)
8416
if test $has_option = yes; then
8417
warning_flags="$warning_flags $option"
8423
if test "$enable_compile_warnings" = "error" ; then
8424
warning_flags="$warning_flags -Werror"
8428
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
8431
CFLAGS="$realsave_CFLAGS"
8432
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
8433
AC_MSG_RESULT($warning_flags)
8435
AC_ARG_ENABLE(iso-c,
8436
AC_HELP_STRING([--enable-iso-c],
8437
[Try to warn if code is not ISO C ]),,
8440
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
8442
if test "x$enable_iso_c" != "xno"; then
8443
if test "x$GCC" = "xyes"; then
8445
*[\ \ ]-ansi[\ \ ]*) ;;
8446
*) complCFLAGS="$complCFLAGS -ansi" ;;
8449
*[\ \ ]-pedantic[\ \ ]*) ;;
8450
*) complCFLAGS="$complCFLAGS -pedantic" ;;
8454
AC_MSG_RESULT($complCFLAGS)
8456
WARN_CFLAGS="$warning_flags $complCFLAGS"
8457
AC_SUBST(WARN_CFLAGS)
8460
dnl For C++, do basically the same thing.
8462
AC_DEFUN([GNOME_CXX_WARNINGS],[
8463
AC_ARG_ENABLE(cxx-warnings,
8464
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
8465
[Turn on compiler warnings.]),,
8466
[enable_cxx_warnings="m4_default([$1],[minimum])"])
8468
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8470
if test "x$GXX" != xyes; then
8471
enable_cxx_warnings=no
8473
if test "x$enable_cxx_warnings" != "xno"; then
8474
if test "x$GXX" = "xyes"; then
8475
case " $CXXFLAGS " in
8476
*[\ \ ]-Wall[\ \ ]*) ;;
8477
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
8480
## -W is not all that useful. And it cannot be controlled
8481
## with individual -Wno-xxx flags, unlike -Wall
8482
if test "x$enable_cxx_warnings" = "xyes"; then
8483
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
8487
AC_MSG_RESULT($warnCXXFLAGS)
8489
AC_ARG_ENABLE(iso-cxx,
8490
AC_HELP_STRING([--enable-iso-cxx],
8491
[Try to warn if code is not ISO C++ ]),,
8492
[enable_iso_cxx=no])
8494
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8496
if test "x$enable_iso_cxx" != "xno"; then
8497
if test "x$GXX" = "xyes"; then
8498
case " $CXXFLAGS " in
8499
*[\ \ ]-ansi[\ \ ]*) ;;
8500
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8503
case " $CXXFLAGS " in
8504
*[\ \ ]-pedantic[\ \ ]*) ;;
8505
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
8509
AC_MSG_RESULT($complCXXFLAGS)
8511
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
8512
AC_SUBST(WARN_CXXFLAGS)
8515
dnl -*- mode: autoconf -*-
8520
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
8521
AC_DEFUN([GTK_DOC_CHECK],
8523
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8524
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8525
dnl for overriding the documentation installation directory
8526
AC_ARG_WITH([html-dir],
8527
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8528
[with_html_dir='${datadir}/gtk-doc/html'])
8529
HTML_DIR="$with_html_dir"
8530
AC_SUBST([HTML_DIR])
8532
dnl enable/disable documentation building
8533
AC_ARG_ENABLE([gtk-doc],
8534
AS_HELP_STRING([--enable-gtk-doc],
8535
[use gtk-doc to build documentation [[default=no]]]),,
8536
[enable_gtk_doc=no])
8538
if test x$enable_gtk_doc = xyes; then
8540
[PKG_CHECK_EXISTS([gtk-doc],,
8541
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8542
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
8543
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8546
AC_MSG_CHECKING([whether to build gtk-doc documentation])
8547
AC_MSG_RESULT($enable_gtk_doc)
8549
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
8551
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8552
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])