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.61],,
17
[m4_warning([this file was generated for autoconf 2.61.
16
m4_if(AC_AUTOCONF_VERSION, [2.62],,
17
[m4_warning([this file was generated for autoconf 2.62.
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'.])])
23
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
24
dnl (i.e. pass to gconftool-2
25
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
26
dnl you should install foo.schemas files
29
AC_DEFUN([AM_GCONF_SOURCE_2],
31
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
32
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
34
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
37
AC_ARG_WITH(gconf-source,
38
[ --with-gconf-source=sourceaddress Config database for installing schema files.],GCONF_SCHEMA_CONFIG_SOURCE="$withval",)
40
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
41
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
43
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
44
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
47
AC_ARG_WITH(gconf-schema-file-dir,
48
[ --with-gconf-schema-file-dir=dir Directory for installing schema files.],GCONF_SCHEMA_FILE_DIR="$withval",)
50
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
51
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
53
AC_ARG_ENABLE(schemas-install,
54
[ --disable-schemas-install Disable the schemas installation],
57
*) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
59
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
62
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
63
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
65
# This file is free software, distributed under the terms of the GNU
66
# General Public License. As a special exception to the GNU General
67
# Public License, this file may be distributed as part of a program
68
# that contains a configuration script generated by Autoconf, under
69
# the same distribution terms as the rest of that program.
71
# This file can be copied and used freely without restrictions. It can
72
# be used in projects which are not available under the GNU Public License
73
# but which still want to provide support for the GNU gettext functionality.
75
# Macro to add for using GNU gettext.
76
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
78
# Modified to never use included libintl.
79
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
81
# Major rework to remove unused code
82
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
84
# Added better handling of ALL_LINGUAS from GNU gettext version
85
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
87
# Modified to require ngettext
88
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
90
# We need this here as well, since someone might use autoconf-2.5x
91
# to configure GLib then an older version to configure a package
92
# using AM_GLIB_GNU_GETTEXT
96
dnl We go to great lengths to make sure that aclocal won't
97
dnl try to pull in the installed version of these macros
98
dnl when running aclocal in the glib directory.
100
m4_copy([AC_DEFUN],[glib_DEFUN])
101
m4_copy([AC_REQUIRE],[glib_REQUIRE])
103
dnl At the end, if we're not within glib, we'll define the public
104
dnl definitions in terms of our private definitions.
108
#--------------------
109
glib_DEFUN([GLIB_LC_MESSAGES],
110
[AC_CHECK_HEADERS([locale.h])
111
if test $ac_cv_header_locale_h = yes; then
112
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
113
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
114
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
115
if test $am_cv_val_LC_MESSAGES = yes; then
116
AC_DEFINE(HAVE_LC_MESSAGES, 1,
117
[Define if your <locale.h> file defines LC_MESSAGES.])
121
# GLIB_PATH_PROG_WITH_TEST
122
#----------------------------
123
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
124
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
125
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
126
[# Extract the first word of "$2", so it can be a program name with args.
127
set dummy $2; ac_word=[$]2
128
AC_MSG_CHECKING([for $ac_word])
129
AC_CACHE_VAL(ac_cv_path_$1,
132
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
135
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
136
for ac_dir in ifelse([$5], , $PATH, [$5]); do
137
test -z "$ac_dir" && ac_dir=.
138
if test -f $ac_dir/$ac_word; then
140
ac_cv_path_$1="$ac_dir/$ac_word"
146
dnl If no 4th arg is given, leave the cache variable unset,
147
dnl so AC_PATH_PROGS will keep looking.
148
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
153
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
163
glib_DEFUN([GLIB_WITH_NLS],
164
dnl NLS is obligatory
168
gt_cv_have_gettext=no
174
AC_CHECK_HEADER(libintl.h,
175
[gt_cv_func_dgettext_libintl="no"
176
libintl_extra_libs=""
179
# First check in libc
181
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
185
[return !ngettext ("","", 1)],
186
gt_cv_func_ngettext_libc=yes,
187
gt_cv_func_ngettext_libc=no)
190
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
191
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
195
[return !dgettext ("","")],
196
gt_cv_func_dgettext_libc=yes,
197
gt_cv_func_dgettext_libc=no)
201
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
202
AC_CHECK_FUNCS(bind_textdomain_codeset)
206
# If we don't have everything we want, check in libintl
208
if test "$gt_cv_func_dgettext_libc" != "yes" \
209
|| test "$gt_cv_func_ngettext_libc" != "yes" \
210
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
212
AC_CHECK_LIB(intl, bindtextdomain,
213
[AC_CHECK_LIB(intl, ngettext,
214
[AC_CHECK_LIB(intl, dgettext,
215
gt_cv_func_dgettext_libintl=yes)])])
217
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
218
AC_MSG_CHECKING([if -liconv is needed to use gettext])
220
AC_CHECK_LIB(intl, ngettext,
221
[AC_CHECK_LIB(intl, dcgettext,
222
[gt_cv_func_dgettext_libintl=yes
223
libintl_extra_libs=-liconv],
229
# If we found libintl, then check in it for bind_textdomain_codeset();
230
# we'll prefer libc if neither have bind_textdomain_codeset(),
231
# and both have dgettext and ngettext
233
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
234
glib_save_LIBS="$LIBS"
235
LIBS="$LIBS -lintl $libintl_extra_libs"
236
unset ac_cv_func_bind_textdomain_codeset
237
AC_CHECK_FUNCS(bind_textdomain_codeset)
238
LIBS="$glib_save_LIBS"
240
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
241
gt_cv_func_dgettext_libc=no
243
if test "$gt_cv_func_dgettext_libc" = "yes" \
244
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
245
gt_cv_func_dgettext_libintl=no
251
if test "$gt_cv_func_dgettext_libc" = "yes" \
252
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
253
gt_cv_have_gettext=yes
256
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
257
INTLLIBS="-lintl $libintl_extra_libs"
260
if test "$gt_cv_have_gettext" = "yes"; then
261
AC_DEFINE(HAVE_GETTEXT,1,
262
[Define if the GNU gettext() function is already present or preinstalled.])
263
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
264
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
265
if test "$MSGFMT" != "no"; then
266
glib_save_LIBS="$LIBS"
267
LIBS="$LIBS $INTLLIBS"
268
AC_CHECK_FUNCS(dcgettext)
270
AC_MSG_CHECKING([if msgfmt accepts -c])
271
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
274
"Content-Type: text/plain; charset=UTF-8\n"
275
"Project-Id-Version: test 1.0\n"
276
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
277
"Last-Translator: test <foo@bar.xx>\n"
278
"Language-Team: C <LL@li.org>\n"
279
"MIME-Version: 1.0\n"
280
"Content-Transfer-Encoding: 8bit\n"
281
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
282
AC_SUBST(MSGFMT_OPTS)
283
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
284
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
285
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
286
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
287
return _nl_msg_cat_cntr],
292
dnl On Solaris, if bind_textdomain_codeset is in libc,
293
dnl GNU format message catalog is always supported,
294
dnl since both are added to the libc all together.
295
dnl Hence, we'd like to go with DATADIRNAME=share and
296
dnl and CATOBJEXT=.gmo in this case.
297
AC_CHECK_FUNC(bind_textdomain_codeset,
308
LIBS="$glib_save_LIBS"
311
gt_cv_have_gettext=no
316
if test "$gt_cv_have_gettext" = "yes" ; then
317
AC_DEFINE(ENABLE_NLS, 1,
318
[always defined to indicate that i18n is enabled])
321
dnl Test whether we really found GNU xgettext.
322
if test "$XGETTEXT" != ":"; then
323
dnl If it is not GNU xgettext we define it as : so that the
324
dnl Makefiles still can work.
325
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
329
[found xgettext program is not GNU xgettext; ignore it])
334
# We need to process the po/ directory.
338
[case "$CONFIG_FILES" in *po/Makefile.in*)
339
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
342
dnl These rules are solely for the distribution goal. While doing this
343
dnl we only have to keep exactly one list of the available catalogs
345
for lang in $ALL_LINGUAS; do
346
GMOFILES="$GMOFILES $lang.gmo"
347
POFILES="$POFILES $lang.po"
350
dnl Make all variables we use known to autoconf.
353
AC_SUBST(DATADIRNAME)
357
AC_SUBST(PO_IN_DATADIR_TRUE)
358
AC_SUBST(PO_IN_DATADIR_FALSE)
363
# AM_GLIB_GNU_GETTEXT
364
# -------------------
365
# Do checks necessary for use of gettext. If a suitable implementation
366
# of gettext is found in either in libintl or in the C library,
367
# it will set INTLLIBS to the libraries needed for use of gettext
368
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
369
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
370
# on various variables needed by the Makefile.in.in installed by
373
glib_DEFUN([GLIB_GNU_GETTEXT],
374
[AC_REQUIRE([AC_PROG_CC])dnl
375
AC_REQUIRE([AC_HEADER_STDC])dnl
380
if test "$gt_cv_have_gettext" = "yes"; then
381
if test "x$ALL_LINGUAS" = "x"; then
384
AC_MSG_CHECKING(for catalogs to be installed)
386
for presentlang in $ALL_LINGUAS; do
388
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
389
desiredlanguages="$LINGUAS"
391
desiredlanguages="$ALL_LINGUAS"
393
for desiredlang in $desiredlanguages; do
394
# Use the presentlang catalog if desiredlang is
395
# a. equal to presentlang, or
396
# b. a variant of presentlang (because in this case,
397
# presentlang can be used as a fallback for messages
398
# which are not translated in the desiredlang catalog).
399
case "$desiredlang" in
400
"$presentlang"*) useit=yes;;
403
if test $useit = yes; then
404
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
408
AC_MSG_RESULT($LINGUAS)
411
dnl Construct list of names of catalog files to be constructed.
412
if test -n "$LINGUAS"; then
413
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
417
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
418
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
419
dnl Try to locate is.
421
if test -n "$ac_aux_dir"; then
422
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
424
if test -z "$MKINSTALLDIRS"; then
425
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
427
AC_SUBST(MKINSTALLDIRS)
429
dnl Generate list of files to be processed by xgettext which will
430
dnl be included in po/Makefile.
431
test -d po || mkdir po
432
if test "x$srcdir" != "x."; then
433
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
434
posrcprefix="$srcdir/"
436
posrcprefix="../$srcdir/"
442
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
443
< $srcdir/po/POTFILES.in > po/POTFILES
446
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
447
# -------------------------------
448
# Define VARIABLE to the location where catalog files will
449
# be installed by po/Makefile.
450
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
451
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
452
glib_save_prefix="$prefix"
453
glib_save_exec_prefix="$exec_prefix"
454
glib_save_datarootdir="$datarootdir"
455
test "x$prefix" = xNONE && prefix=$ac_default_prefix
456
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
457
datarootdir=`eval echo "${datarootdir}"`
458
if test "x$CATOBJEXT" = "x.mo" ; then
459
localedir=`eval echo "${libdir}/locale"`
461
localedir=`eval echo "${datadir}/locale"`
463
prefix="$glib_save_prefix"
464
exec_prefix="$glib_save_exec_prefix"
465
datarootdir="$glib_save_datarootdir"
466
AC_DEFINE_UNQUOTED($1, "$localedir",
467
[Define the location where the catalogs will be installed])
471
dnl Now the definitions that aclocal will find
473
ifdef(glib_configure_in,[],[
474
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
475
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
478
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
480
# Create a temporary file with TEST-FILE as its contents and pass the
481
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
482
# 0 and perform ACTION-IF-FAIL for any other exit status.
483
AC_DEFUN([GLIB_RUN_PROG],
484
[cat >conftest.foo <<_ACEOF
487
if AC_RUN_LOG([$1 conftest.foo]); then
488
m4_ifval([$3], [$3], [:])
489
m4_ifvaln([$4], [else $4])dnl
490
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
491
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
498
dnl GNOME_COMMON_INIT
500
AC_DEFUN([GNOME_COMMON_INIT],
502
dnl this macro should come after AC_CONFIG_MACRO_DIR
503
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
505
dnl ensure that when the Automake generated makefile calls aclocal,
506
dnl it honours the $ACLOCAL_FLAGS environment variable
507
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
508
if test -n "$ac_macro_dir"; then
509
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
512
AC_SUBST([ACLOCAL_AMFLAGS])
515
AC_DEFUN([GNOME_DEBUG_CHECK],
517
AC_ARG_ENABLE([debug],
518
AC_HELP_STRING([--enable-debug],
519
[turn on debugging]),,
522
if test x$enable_debug = xyes ; then
523
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
524
[Enable additional debugging at the expense of performance and size])
528
dnl GNOME_MAINTAINER_MODE_DEFINES ()
529
dnl define DISABLE_DEPRECATED
531
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
533
AC_REQUIRE([AM_MAINTAINER_MODE])
535
if test $USE_MAINTAINER_MODE = yes; then
536
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"
538
DISABLE_DEPRECATED=""
540
AC_SUBST(DISABLE_DEPRECATED)
543
dnl GNOME_COMPILE_WARNINGS
544
dnl Turn on many useful compiler warnings
545
dnl For now, only works on GCC
546
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
547
dnl ******************************
548
dnl More compiler warnings
549
dnl ******************************
551
AC_ARG_ENABLE(compile-warnings,
552
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
553
[Turn on compiler warnings]),,
554
[enable_compile_warnings="m4_default([$1],[yes])"])
557
if test "x$GCC" != xyes; then
558
enable_compile_warnings=no
562
realsave_CFLAGS="$CFLAGS"
564
case "$enable_compile_warnings" in
569
warning_flags="-Wall"
572
warning_flags="-Wall -Wmissing-prototypes"
575
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
576
CFLAGS="$warning_flags $CFLAGS"
577
for option in -Wno-sign-compare; do
578
SAVE_CFLAGS="$CFLAGS"
579
CFLAGS="$CFLAGS $option"
580
AC_MSG_CHECKING([whether gcc understands $option])
581
AC_TRY_COMPILE([], [],
584
CFLAGS="$SAVE_CFLAGS"
585
AC_MSG_RESULT($has_option)
586
if test $has_option = yes; then
587
warning_flags="$warning_flags $option"
593
if test "$enable_compile_warnings" = "error" ; then
594
warning_flags="$warning_flags -Werror"
598
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
601
CFLAGS="$realsave_CFLAGS"
602
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
603
AC_MSG_RESULT($warning_flags)
606
AC_HELP_STRING([--enable-iso-c],
607
[Try to warn if code is not ISO C ]),,
610
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
612
if test "x$enable_iso_c" != "xno"; then
613
if test "x$GCC" = "xyes"; then
615
*[\ \ ]-ansi[\ \ ]*) ;;
616
*) complCFLAGS="$complCFLAGS -ansi" ;;
619
*[\ \ ]-pedantic[\ \ ]*) ;;
620
*) complCFLAGS="$complCFLAGS -pedantic" ;;
624
AC_MSG_RESULT($complCFLAGS)
626
WARN_CFLAGS="$warning_flags $complCFLAGS"
627
AC_SUBST(WARN_CFLAGS)
630
dnl For C++, do basically the same thing.
632
AC_DEFUN([GNOME_CXX_WARNINGS],[
633
AC_ARG_ENABLE(cxx-warnings,
634
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
635
[Turn on compiler warnings.]),,
636
[enable_cxx_warnings="m4_default([$1],[minimum])"])
638
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
640
if test "x$GXX" != xyes; then
641
enable_cxx_warnings=no
643
if test "x$enable_cxx_warnings" != "xno"; then
644
if test "x$GXX" = "xyes"; then
645
case " $CXXFLAGS " in
646
*[\ \ ]-Wall[\ \ ]*) ;;
647
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
650
## -W is not all that useful. And it cannot be controlled
651
## with individual -Wno-xxx flags, unlike -Wall
652
if test "x$enable_cxx_warnings" = "xyes"; then
653
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
657
AC_MSG_RESULT($warnCXXFLAGS)
659
AC_ARG_ENABLE(iso-cxx,
660
AC_HELP_STRING([--enable-iso-cxx],
661
[Try to warn if code is not ISO C++ ]),,
664
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
666
if test "x$enable_iso_cxx" != "xno"; then
667
if test "x$GXX" = "xyes"; then
668
case " $CXXFLAGS " in
669
*[\ \ ]-ansi[\ \ ]*) ;;
670
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
673
case " $CXXFLAGS " in
674
*[\ \ ]-pedantic[\ \ ]*) ;;
675
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
679
AC_MSG_RESULT($complCXXFLAGS)
681
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
682
AC_SUBST(WARN_CXXFLAGS)
685
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
686
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
687
AC_DEFUN([GNOME_DOC_DEFINES],
689
AC_ARG_WITH([help-dir],
690
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
691
[with_help_dir='${datadir}/gnome/help'])
692
HELP_DIR="$with_help_dir"
695
AC_ARG_WITH([omf-dir],
696
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
697
[with_omf_dir='${datadir}/omf'])
698
OMF_DIR="$with_omf_dir"
701
AC_ARG_WITH([help-formats],
702
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
703
[with_help_formats=''])
704
DOC_USER_FORMATS="$with_help_formats"
705
AC_SUBST(DOC_USER_FORMATS)
707
AC_ARG_ENABLE([scrollkeeper],
708
[AC_HELP_STRING([--disable-scrollkeeper],
709
[do not make updates to the scrollkeeper database])],,
710
enable_scrollkeeper=yes)
711
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
713
dnl disable scrollkeeper automatically for distcheck
714
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
715
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
717
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
720
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
722
AC_DEFUN([GNOME_DOC_INIT],
724
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
726
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
727
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
729
if test "$gdu_cv_have_gdu" = "yes"; then
730
ifelse([$2],,[:],[$2])
732
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
738
dnl -*- mode: autoconf -*-
743
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
744
AC_DEFUN([GTK_DOC_CHECK],
746
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
747
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
748
dnl for overriding the documentation installation directory
749
AC_ARG_WITH([html-dir],
750
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
751
[with_html_dir='${datadir}/gtk-doc/html'])
752
HTML_DIR="$with_html_dir"
755
dnl enable/disable documentation building
756
AC_ARG_ENABLE([gtk-doc],
757
AS_HELP_STRING([--enable-gtk-doc],
758
[use gtk-doc to build documentation [[default=no]]]),,
761
if test x$enable_gtk_doc = xyes; then
763
[PKG_CHECK_EXISTS([gtk-doc],,
764
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
765
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
766
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
769
AC_MSG_CHECKING([whether to build gtk-doc documentation])
770
AC_MSG_RESULT($enable_gtk_doc)
772
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
774
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
775
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
779
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
780
# serial 40 IT_PROG_INTLTOOL
781
AC_DEFUN([IT_PROG_INTLTOOL],
782
[AC_PREREQ([2.50])dnl
784
case "$am__api_version" in
786
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
792
if test -n "$1"; then
793
AC_MSG_CHECKING([for intltool >= $1])
795
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
796
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
797
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
799
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
800
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
801
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
804
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
805
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
806
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
807
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
808
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
811
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
812
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
813
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
814
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
815
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
816
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
817
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
818
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
819
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
820
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
821
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
822
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
823
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
824
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
825
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
826
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
827
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
828
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
829
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
831
AC_SUBST(INTLTOOL_DESKTOP_RULE)
832
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
833
AC_SUBST(INTLTOOL_KEYS_RULE)
834
AC_SUBST(INTLTOOL_PROP_RULE)
835
AC_SUBST(INTLTOOL_OAF_RULE)
836
AC_SUBST(INTLTOOL_PONG_RULE)
837
AC_SUBST(INTLTOOL_SERVER_RULE)
838
AC_SUBST(INTLTOOL_SHEET_RULE)
839
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
840
AC_SUBST(INTLTOOL_UI_RULE)
841
AC_SUBST(INTLTOOL_XAM_RULE)
842
AC_SUBST(INTLTOOL_KBD_RULE)
843
AC_SUBST(INTLTOOL_XML_RULE)
844
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
845
AC_SUBST(INTLTOOL_CAVES_RULE)
846
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
847
AC_SUBST(INTLTOOL_THEME_RULE)
848
AC_SUBST(INTLTOOL_SERVICE_RULE)
849
AC_SUBST(INTLTOOL_POLICY_RULE)
851
# Check the gettext tools to make sure they are GNU
852
AC_PATH_PROG(XGETTEXT, xgettext)
853
AC_PATH_PROG(MSGMERGE, msgmerge)
854
AC_PATH_PROG(MSGFMT, msgfmt)
855
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
856
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
858
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
859
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
860
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
861
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
862
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
865
AC_PATH_PROG(INTLTOOL_PERL, [perl])
866
if test -z "$INTLTOOL_PERL"; then
867
AC_MSG_ERROR([perl not found; required for intltool])
869
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
870
AC_MSG_ERROR([perl 5.x required for intltool])
872
if test "x$2" != "xno-xml"; then
873
AC_MSG_CHECKING([for XML::Parser])
874
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
877
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
881
# Substitute ALL_LINGUAS so we can use it in po/Makefile
882
AC_SUBST(ALL_LINGUAS)
884
# Set DATADIRNAME correctly if it is not set yet
885
# (copied from glib-gettext.m4)
886
if test -z "$DATADIRNAME"; then
888
[AC_LANG_PROGRAM([[]],
889
[[extern int _nl_msg_cat_cntr;
890
return _nl_msg_cat_cntr]])],
894
dnl On Solaris, if bind_textdomain_codeset is in libc,
895
dnl GNU format message catalog is always supported,
896
dnl since both are added to the libc all together.
897
dnl Hence, we'd like to go with DATADIRNAME=share
899
AC_CHECK_FUNC(bind_textdomain_codeset,
900
[DATADIRNAME=share], [DATADIRNAME=lib])
907
AC_SUBST(DATADIRNAME)
914
# IT_PO_SUBDIR(DIRNAME)
915
# ---------------------
916
# All po subdirs have to be declared with this macro; the subdir "po" is
917
# declared by IT_PROG_INTLTOOL.
919
AC_DEFUN([IT_PO_SUBDIR],
920
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
922
dnl The following CONFIG_COMMANDS should be exetuted at the very end
923
dnl of config.status.
924
AC_CONFIG_COMMANDS_PRE([
925
AC_CONFIG_COMMANDS([$1/stamp-it], [
926
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
931
'"s|^| $ac_top_srcdir/|" \
932
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
934
if test ! -f "$1/Makefile"; then
935
AC_MSG_ERROR([$1/Makefile is not ready.])
937
mv "$1/Makefile" "$1/Makefile.tmp"
938
[sed '/^POTFILES =/,/[^\\]$/ {
942
' "$1/Makefile.tmp" >"$1/Makefile"]
943
rm -f "$1/Makefile.tmp"
944
mv "$1/stamp-it.tmp" "$1/stamp-it"
951
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
952
# A hint is needed for aclocal from Automake <= 1.9.4:
953
# AC_DEFUN([AC_PROG_INTLTOOL], ...)
22
956
# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
24
# serial 52 Debian 1.5.26-1ubuntu1 AC_PROG_LIBTOOL
27
# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
28
# -----------------------------------------------------------
29
# If this macro is not defined by Autoconf, define it here.
30
m4_ifdef([AC_PROVIDE_IFELSE],
32
[m4_define([AC_PROVIDE_IFELSE],
33
[m4_ifdef([AC_PROVIDE_$1],
39
AC_DEFUN([AC_PROG_LIBTOOL],
40
[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
41
dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
42
dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
43
AC_PROVIDE_IFELSE([AC_PROG_CXX],
45
[define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
47
dnl And a similar setup for Fortran 77 support
48
AC_PROVIDE_IFELSE([AC_PROG_F77],
50
[define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
53
dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
54
dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
55
dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
56
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
58
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
60
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
63
[define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
64
ifdef([A][M_PROG_GCJ],
65
[define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
66
ifdef([LT_AC_PROG_GCJ],
67
[define([LT_AC_PROG_GCJ],
68
defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
74
AC_DEFUN([_AC_PROG_LIBTOOL],
75
[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
76
AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
77
AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
78
AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
958
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
959
# 2006, 2007, 2008 Free Software Foundation, Inc.
960
# Written by Gordon Matzigkeit, 1996
962
# This file is free software; the Free Software Foundation gives
963
# unlimited permission to copy and/or distribute it, with or without
964
# modifications, as long as this notice is preserved.
966
m4_define([_LT_COPYING], [dnl
967
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
968
# 2006, 2007, 2008 Free Software Foundation, Inc.
969
# Written by Gordon Matzigkeit, 1996
971
# This file is part of GNU Libtool.
973
# GNU Libtool is free software; you can redistribute it and/or
974
# modify it under the terms of the GNU General Public License as
975
# published by the Free Software Foundation; either version 2 of
976
# the License, or (at your option) any later version.
978
# As a special exception to the GNU General Public License,
979
# if you distribute this file as part of a program or library that
980
# is built using GNU Libtool, you may include this file under the
981
# same distribution terms that you use for the rest of that program.
983
# GNU Libtool is distributed in the hope that it will be useful,
984
# but WITHOUT ANY WARRANTY; without even the implied warranty of
985
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
986
# GNU General Public License for more details.
988
# You should have received a copy of the GNU General Public License
989
# along with GNU Libtool; see the file COPYING. If not, a copy
990
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
991
# obtained by writing to the Free Software Foundation, Inc.,
992
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1000
# Complain and exit if this libtool version is less that VERSION.
1001
m4_defun([LT_PREREQ],
1002
[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
1004
[m4_fatal([Libtool version $1 or higher is required],
1009
# _LT_CHECK_BUILDDIR
1010
# ------------------
1011
# Complain if the absolute build directory name contains unusual characters
1012
m4_defun([_LT_CHECK_BUILDDIR],
1015
AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
1020
# LT_INIT([OPTIONS])
1021
# ------------------
1023
[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
1024
AC_BEFORE([$0], [LT_LANG])dnl
1025
AC_BEFORE([$0], [LT_OUTPUT])dnl
1026
AC_BEFORE([$0], [LTDL_INIT])dnl
1027
m4_require([_LT_CHECK_BUILDDIR])dnl
1029
dnl Autoconf doesn't catch unexpanded LT_ macros by default:
1030
m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
1031
m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
1032
dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
1033
dnl unless we require an AC_DEFUNed macro:
1034
AC_REQUIRE([LTOPTIONS_VERSION])dnl
1035
AC_REQUIRE([LTSUGAR_VERSION])dnl
1036
AC_REQUIRE([LTVERSION_VERSION])dnl
1037
AC_REQUIRE([LTOBSOLETE_VERSION])dnl
1038
m4_require([_LT_PROG_LTMAIN])dnl
1041
_LT_SET_OPTIONS([$0], [$1])
80
1043
# This can be used to rebuild libtool when needed
81
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1044
LIBTOOL_DEPS="$ltmain"
83
1046
# Always use our own libtool.
84
1047
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
85
1048
AC_SUBST(LIBTOOL)dnl
87
# Prevent multiple expansion
88
define([AC_PROG_LIBTOOL], [])
94
AC_DEFUN([AC_LIBTOOL_SETUP],
96
AC_REQUIRE([AC_ENABLE_SHARED])dnl
97
AC_REQUIRE([AC_ENABLE_STATIC])dnl
98
AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
99
AC_REQUIRE([AC_CANONICAL_HOST])dnl
1053
m4_define([LT_INIT])
1057
AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
1058
AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
1059
dnl aclocal-1.4 backwards compatibility:
1060
dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
1061
dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
1064
# _LT_CC_BASENAME(CC)
1065
# -------------------
1066
# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1067
m4_defun([_LT_CC_BASENAME],
1068
[for cc_temp in $1""; do
1070
compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1071
distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1076
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1080
# _LT_FILEUTILS_DEFAULTS
1081
# ----------------------
1082
# It is okay to use these file commands and assume they have been set
1083
# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
1084
m4_defun([_LT_FILEUTILS_DEFAULTS],
1088
])# _LT_FILEUTILS_DEFAULTS
1093
m4_defun([_LT_SETUP],
1094
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
100
1095
AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1096
_LT_DECL([], [host_alias], [0], [The host system])dnl
1097
_LT_DECL([], [host], [0])dnl
1098
_LT_DECL([], [host_os], [0])dnl
1100
_LT_DECL([], [build_alias], [0], [The build system])dnl
1101
_LT_DECL([], [build], [0])dnl
1102
_LT_DECL([], [build_os], [0])dnl
101
1104
AC_REQUIRE([AC_PROG_CC])dnl
102
AC_REQUIRE([AC_PROG_LD])dnl
103
AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
104
AC_REQUIRE([AC_PROG_NM])dnl
1105
AC_REQUIRE([LT_PATH_LD])dnl
1106
AC_REQUIRE([LT_PATH_NM])dnl
106
1108
AC_REQUIRE([AC_PROG_LN_S])dnl
107
AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
108
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
109
AC_REQUIRE([AC_OBJEXT])dnl
110
AC_REQUIRE([AC_EXEEXT])dnl
112
AC_LIBTOOL_SYS_MAX_CMD_LEN
113
AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
116
AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
117
_LT_AC_PROG_ECHO_BACKSLASH
1109
test -z "$LN_S" && LN_S="ln -s"
1110
_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
1112
AC_REQUIRE([LT_CMD_MAX_LEN])dnl
1113
_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
1114
_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
1116
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1117
m4_require([_LT_CHECK_SHELL_FEATURES])dnl
1118
m4_require([_LT_CMD_RELOAD])dnl
1119
m4_require([_LT_CHECK_MAGIC_METHOD])dnl
1120
m4_require([_LT_CMD_OLD_ARCHIVE])dnl
1121
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
1123
_LT_CONFIG_LIBTOOL_INIT([
1124
# See if we are running on zsh, and set the options which allow our
1125
# commands through without removal of \ escapes INIT.
1126
if test -n "\${ZSH_VERSION+set}" ; then
1127
setopt NO_GLOB_SUBST
1130
if test -n "${ZSH_VERSION+set}" ; then
1131
setopt NO_GLOB_SUBST
1136
m4_require([_LT_TAG_COMPILER])dnl
1137
_LT_PROG_ECHO_BACKSLASH
119
1139
case $host_os in
131
1151
# Sed substitution that helps us do robust quoting. It backslashifies
132
1152
# metacharacters that are still active within double-quoted strings.
133
Xsed='sed -e 1s/^X//'
134
[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1153
sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
136
1155
# Same as above, but do not quote variable references.
137
[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1156
double_quote_subst='s/\([["`\\]]\)/\\\1/g'
139
1158
# Sed substitution to delay expansion of an escaped shell variable in a
140
1159
# double_quote_subst'ed string.
141
1160
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1162
# Sed substitution to delay expansion of an escaped single quote.
1163
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
143
1165
# Sed substitution to avoid accidental globbing in evaled expressions
144
1166
no_glob_subst='s/\*/\\\*/g'
149
1168
# Global variables:
150
default_ofile=libtool
151
1170
can_build_shared=yes
153
1172
# All known linkers require a `.a' archive for static linking (except MSVC,
154
1173
# which needs '.lib').
156
ltmain="$ac_aux_dir/ltmain.sh"
157
ofile="$default_ofile"
158
1176
with_gnu_ld="$lt_cv_prog_gnu_ld"
160
AC_CHECK_TOOL(AR, ar, false)
161
AC_CHECK_TOOL(RANLIB, ranlib, :)
162
AC_CHECK_TOOL(STRIP, strip, :)
165
1179
old_CFLAGS="$CFLAGS"
167
1181
# Set sane defaults for various variables
168
test -z "$AR" && AR=ar
169
test -z "$AR_FLAGS" && AR_FLAGS=cru
170
test -z "$AS" && AS=as
171
1182
test -z "$CC" && CC=cc
172
1183
test -z "$LTCC" && LTCC=$CC
173
1184
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
174
test -z "$DLLTOOL" && DLLTOOL=dlltool
175
1185
test -z "$LD" && LD=ld
176
test -z "$LN_S" && LN_S="ln -s"
177
test -z "$MAGIC_CMD" && MAGIC_CMD=file
178
test -z "$NM" && NM=nm
179
test -z "$SED" && SED=sed
180
test -z "$OBJDUMP" && OBJDUMP=objdump
181
test -z "$RANLIB" && RANLIB=:
182
test -z "$STRIP" && STRIP=:
183
1186
test -z "$ac_objext" && ac_objext=o
185
# Determine commands to create old-style static archives.
186
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
187
old_postinstall_cmds='chmod 644 $oldlib'
188
old_postuninstall_cmds=
190
if test -n "$RANLIB"; then
193
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
196
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
199
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
202
1188
_LT_CC_BASENAME([$compiler])
204
1190
# Only perform the check for file, if the check method requires it
1191
test -z "$MAGIC_CMD" && MAGIC_CMD=file
205
1192
case $deplibs_check_method in
207
1194
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
213
_LT_REQUIRED_DARWIN_CHECKS
215
AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
216
AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
217
enable_win32_dll=yes, enable_win32_dll=no)
219
AC_ARG_ENABLE([libtool-lock],
220
[AC_HELP_STRING([--disable-libtool-lock],
221
[avoid locking (might break parallel builds)])])
222
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
225
[AC_HELP_STRING([--with-pic],
226
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
227
[pic_mode="$withval"],
229
test -z "$pic_mode" && pic_mode=default
231
1200
# Use C for the default configuration in the libtool script
233
AC_LIBTOOL_LANG_C_CONFIG
238
# _LT_AC_SYS_COMPILER
1201
LT_SUPPORTED_TAG([CC])
1203
_LT_LANG_DEFAULT_CONFIG
1210
# Note that this code is called both from `configure', and `config.status'
1211
# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1212
# `config.status' has no value for ac_aux_dir unless we are using Automake,
1213
# so we pass a copy along to make sure it has a sensible value anyway.
1214
m4_defun([_LT_PROG_LTMAIN],
1215
[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1216
_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1217
ltmain="$ac_aux_dir/ltmain.sh"
1222
# So that we can recreate a full libtool script including additional
1223
# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1224
# in macros and then make a single call at the end using the `libtool'
1228
# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1229
# ----------------------------------------
1230
# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1231
m4_define([_LT_CONFIG_LIBTOOL_INIT],
1233
[m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1238
m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1241
# _LT_CONFIG_LIBTOOL([COMMANDS])
1242
# ------------------------------
1243
# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1244
m4_define([_LT_CONFIG_LIBTOOL],
1246
[m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1251
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1254
# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1255
# -----------------------------------------------------
1256
m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1257
[_LT_CONFIG_LIBTOOL([$1])
1258
_LT_CONFIG_LIBTOOL_INIT([$2])
1262
# _LT_FORMAT_COMMENT([COMMENT])
1263
# -----------------------------
1264
# Add leading comment marks to the start of each line, and a trailing
1265
# full-stop to the whole comment if one is not present already.
1266
m4_define([_LT_FORMAT_COMMENT],
1268
m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1269
[['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1276
# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1277
# -------------------------------------------------------------------
1278
# CONFIGNAME is the name given to the value in the libtool script.
1279
# VARNAME is the (base) name used in the configure script.
1280
# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1281
# VARNAME. Any other value will be used directly.
1282
m4_define([_LT_DECL],
1283
[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1284
[lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1285
[m4_ifval([$1], [$1], [$2])])
1286
lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1288
[lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1289
lt_dict_add_subkey([lt_decl_dict], [$2],
1290
[tagged?], [m4_ifval([$5], [yes], [no])])])
1294
# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1295
# --------------------------------------------------------
1296
m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1299
# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1300
# ------------------------------------------------
1301
m4_define([lt_decl_tag_varnames],
1302
[_lt_decl_filter([tagged?], [yes], $@)])
1305
# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1306
# ---------------------------------------------------------
1307
m4_define([_lt_decl_filter],
1309
[0], [m4_fatal([$0: too few arguments: $#])],
1310
[1], [m4_fatal([$0: too few arguments: $#: $1])],
1311
[2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1312
[3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1313
[lt_dict_filter([lt_decl_dict], $@)])[]dnl
1317
# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1318
# --------------------------------------------------
1319
m4_define([lt_decl_quote_varnames],
1320
[_lt_decl_filter([value], [1], $@)])
1323
# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1324
# ---------------------------------------------------
1325
m4_define([lt_decl_dquote_varnames],
1326
[_lt_decl_filter([value], [2], $@)])
1329
# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1330
# ---------------------------------------------------
1331
m4_define([lt_decl_varnames_tagged],
1332
[_$0(m4_quote(m4_default([$1], [[, ]])),
1333
m4_quote(m4_if([$2], [],
1334
m4_quote(lt_decl_tag_varnames),
1335
m4_quote(m4_shift($@)))),
1336
m4_split(m4_normalize(m4_quote(_LT_TAGS))))])
1337
m4_define([_lt_decl_varnames_tagged], [lt_combine([$1], [$2], [_], $3)])
1340
# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1341
# ------------------------------------------------
1342
m4_define([lt_decl_all_varnames],
1343
[_$0(m4_quote(m4_default([$1], [[, ]])),
1345
m4_quote(lt_decl_varnames),
1346
m4_quote(m4_shift($@))))[]dnl
1348
m4_define([_lt_decl_all_varnames],
1349
[lt_join($@, lt_decl_varnames_tagged([$1],
1350
lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1354
# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1355
# ------------------------------------
1356
# Quote a variable value, and forward it to `config.status' so that its
1357
# declaration there will have the same value as in `configure'. VARNAME
1358
# must have a single quote delimited value for this to work.
1359
m4_define([_LT_CONFIG_STATUS_DECLARE],
1360
[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1363
# _LT_CONFIG_STATUS_DECLARATIONS
1364
# ------------------------------
1365
# We delimit libtool config variables with single quotes, so when
1366
# we write them to config.status, we have to be sure to quote all
1367
# embedded single quotes properly. In configure, this macro expands
1368
# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1370
# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1371
m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1372
[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1373
[m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1378
# Output comment and list of tags supported by the script
1379
m4_defun([_LT_LIBTOOL_TAGS],
1380
[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1381
available_tags="_LT_TAGS"dnl
1385
# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1386
# -----------------------------------
1387
# Extract the dictionary values for VARNAME (optionally with TAG) and
1388
# expand to a commented shell variable setting:
1390
# # Some comment about what VAR is for.
1391
# visible_name=$lt_internal_name
1392
m4_define([_LT_LIBTOOL_DECLARE],
1393
[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1394
[description])))[]dnl
1395
m4_pushdef([_libtool_name],
1396
m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1397
m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1398
[0], [_libtool_name=[$]$1],
1399
[1], [_libtool_name=$lt_[]$1],
1400
[2], [_libtool_name=$lt_[]$1],
1401
[_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1402
m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1406
# _LT_LIBTOOL_CONFIG_VARS
1407
# -----------------------
1408
# Produce commented declarations of non-tagged libtool config variables
1409
# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1410
# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1411
# section) are produced by _LT_LIBTOOL_TAG_VARS.
1412
m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1413
[m4_foreach([_lt_var],
1414
m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1415
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1418
# _LT_LIBTOOL_TAG_VARS(TAG)
1419
# -------------------------
1420
m4_define([_LT_LIBTOOL_TAG_VARS],
1421
[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1422
[m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1425
# _LT_TAGVAR(VARNAME, [TAGNAME])
1426
# ------------------------------
1427
m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1430
# _LT_CONFIG_COMMANDS
239
1431
# -------------------
240
AC_DEFUN([_LT_AC_SYS_COMPILER],
1432
# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1433
# variables for single and double quote escaping we saved from calls
1434
# to _LT_DECL, we can put quote escaped variables declarations
1435
# into `config.status', and then the shell code to quote escape them in
1436
# for loops in `config.status'. Finally, any additional code accumulated
1437
# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1438
m4_defun([_LT_CONFIG_COMMANDS],
1439
[AC_PROVIDE_IFELSE([LT_OUTPUT],
1440
dnl If the libtool generation code has been placed in $CONFIG_LT,
1441
dnl instead of duplicating it all over again into config.status,
1442
dnl then we will have config.status run $CONFIG_LT later, so it
1443
dnl needs to know what name is stored there:
1444
[AC_CONFIG_COMMANDS([libtool],
1445
[$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1446
dnl If the libtool generation code is destined for config.status,
1447
dnl expand the accumulated commands and init code now:
1448
[AC_CONFIG_COMMANDS([libtool],
1449
[_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1450
])#_LT_CONFIG_COMMANDS
1454
m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1457
# The HP-UX ksh and POSIX shell print the target directory to stdout
1459
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1461
sed_quote_subst='$sed_quote_subst'
1462
double_quote_subst='$double_quote_subst'
1463
delay_variable_subst='$delay_variable_subst'
1464
_LT_CONFIG_STATUS_DECLARATIONS
1466
LTCFLAGS='$LTCFLAGS'
1467
compiler='$compiler_DEFAULT'
1469
# Quote evaled strings.
1470
for var in lt_decl_all_varnames([[ \
1471
]], lt_decl_quote_varnames); do
1472
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1473
*[[\\\\\\\`\\"\\\$]]*)
1474
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1477
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1482
# Double-quote double-evaled strings.
1483
for var in lt_decl_all_varnames([[ \
1484
]], lt_decl_dquote_varnames); do
1485
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1486
*[[\\\\\\\`\\"\\\$]]*)
1487
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1490
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1495
# Fix-up fallback echo if it was mangled by the above quoting rules.
1497
*'\\\[$]0 --fallback-echo"')dnl "
1498
lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1502
_LT_OUTPUT_LIBTOOL_INIT
1508
# This macro allows early generation of the libtool script (before
1509
# AC_OUTPUT is called), incase it is used in configure for compilation
1511
AC_DEFUN([LT_OUTPUT],
1512
[: ${CONFIG_LT=./config.lt}
1513
AC_MSG_NOTICE([creating $CONFIG_LT])
1514
cat >"$CONFIG_LT" <<_LTEOF
1516
# Generated by $as_me.
1517
# Run this file to recreate a libtool stub with the current configuration.
1520
SHELL=\${CONFIG_SHELL-$SHELL}
1523
cat >>"$CONFIG_LT" <<\_LTEOF
1527
exec AS_MESSAGE_FD>&1
1528
exec AS_MESSAGE_LOG_FD>>config.log
1531
AS_BOX([Running $as_me.])
1532
} >&AS_MESSAGE_LOG_FD
1535
\`$as_me' creates a local libtool stub from the current configuration,
1536
for use in further configure time tests before the real libtool is
1539
Usage: $[0] [[OPTIONS]]
1541
-h, --help print this help, then exit
1542
-V, --version print version number, then exit
1543
-q, --quiet do not print progress messages
1544
-d, --debug don't remove temporary files
1546
Report bugs to <bug-libtool@gnu.org>."
1549
m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1550
m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1551
configured by $[0], generated by m4_PACKAGE_STRING.
1553
Copyright (C) 2008 Free Software Foundation, Inc.
1554
This config.lt script is free software; the Free Software Foundation
1555
gives unlimited permision to copy, distribute and modify it."
1557
while test $[#] != 0
1560
--version | --v* | -V )
1561
echo "$lt_cl_version"; exit 0 ;;
1562
--help | --h* | -h )
1563
echo "$lt_cl_help"; exit 0 ;;
1564
--debug | --d* | -d )
1566
--quiet | --q* | --silent | --s* | -q )
1569
-*) AC_MSG_ERROR([unrecognized option: $[1]
1570
Try \`$[0] --help' for more information.]) ;;
1572
*) AC_MSG_ERROR([unrecognized argument: $[1]
1573
Try \`$[0] --help' for more information.]) ;;
1578
if $lt_cl_silent; then
1579
exec AS_MESSAGE_FD>/dev/null
1583
cat >>"$CONFIG_LT" <<_LTEOF
1584
_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1587
cat >>"$CONFIG_LT" <<\_LTEOF
1588
AC_MSG_NOTICE([creating $ofile])
1589
_LT_OUTPUT_LIBTOOL_COMMANDS
1592
chmod +x "$CONFIG_LT"
1594
# configure is writing to config.log, but config.lt does its own redirection,
1595
# appending to config.log, which fails on DOS, as config.log is still kept
1596
# open by configure. Here we exec the FD to /dev/null, effectively closing
1597
# config.log, so it can be properly (re)opened and appended to by config.lt.
1598
if test "$no_create" != yes; then
1600
test "$silent" = yes &&
1601
lt_config_lt_args="$lt_config_lt_args --quiet"
1602
exec AS_MESSAGE_LOG_FD>/dev/null
1603
$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1604
exec AS_MESSAGE_LOG_FD>>config.log
1605
$lt_cl_success || AS_EXIT(1)
1612
# If TAG is the built-in tag, create an initial libtool script with a
1613
# default configuration from the untagged config vars. Otherwise add code
1614
# to config.status for appending the configuration named by TAG from the
1615
# matching tagged config vars.
1616
m4_defun([_LT_CONFIG],
1617
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1618
_LT_CONFIG_SAVE_COMMANDS([
1619
m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1620
m4_if(_LT_TAG, [C], [
1621
# See if we are running on zsh, and set the options which allow our
1622
# commands through without removal of \ escapes.
1623
if test -n "${ZSH_VERSION+set}" ; then
1624
setopt NO_GLOB_SUBST
1628
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1631
cat <<_LT_EOF >> "$cfgfile"
1634
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1635
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1636
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1637
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1642
# ### BEGIN LIBTOOL CONFIG
1643
_LT_LIBTOOL_CONFIG_VARS
1644
_LT_LIBTOOL_TAG_VARS
1645
# ### END LIBTOOL CONFIG
1651
cat <<\_LT_EOF >> "$cfgfile"
1652
# AIX sometimes has problems with the GCC collect2 program. For some
1653
# reason, if we set the COLLECT_NAMES environment variable, the problems
1654
# vanish in a puff of smoke.
1655
if test "X${COLLECT_NAMES+set}" != Xset; then
1657
export COLLECT_NAMES
1665
# We use sed instead of cat because bash on DJGPP gets confused if
1666
# if finds mixed CR/LF and LF-only lines. Since sed operates in
1667
# text mode, it properly converts lines to CR/LF. This bash problem
1668
# is reportedly fixed, but why not run on old versions too?
1669
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1670
|| (rm -f "$cfgfile"; exit 1)
1672
_LT_PROG_XSI_SHELLFNS
1674
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1675
|| (rm -f "$cfgfile"; exit 1)
1677
mv -f "$cfgfile" "$ofile" ||
1678
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1681
[cat <<_LT_EOF >> "$ofile"
1683
dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1684
dnl in a comment (ie after a #).
1685
# ### BEGIN LIBTOOL TAG CONFIG: $1
1686
_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1687
# ### END LIBTOOL TAG CONFIG: $1
1694
TIMESTAMP='$TIMESTAMP'
1696
ofile='$ofile'], [])
1697
])dnl /_LT_CONFIG_SAVE_COMMANDS
1701
# LT_SUPPORTED_TAG(TAG)
1702
# ---------------------
1703
# Trace this macro to discover what tags are supported by the libtool
1704
# --tag option, using:
1705
# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1706
AC_DEFUN([LT_SUPPORTED_TAG], [])
1709
# C support is built-in for now
1710
m4_define([_LT_LANG_C_enabled], [])
1711
m4_define([_LT_TAGS], [])
1716
# Enable libtool support for the given language if not already enabled.
1718
[AC_BEFORE([$0], [LT_OUTPUT])dnl
1721
[C++], [_LT_LANG(CXX)],
1722
[Java], [_LT_LANG(GCJ)],
1723
[Fortran 77], [_LT_LANG(F77)],
1724
[Fortran], [_LT_LANG(FC)],
1725
[Windows Resource], [_LT_LANG(RC)],
1726
[m4_ifdef([_LT_LANG_]$1[_CONFIG],
1728
[m4_fatal([$0: unsupported language: "$1"])])])dnl
1732
# _LT_LANG(LANGNAME)
1733
# ------------------
1734
m4_defun([_LT_LANG],
1735
[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1736
[LT_SUPPORTED_TAG([$1])dnl
1737
m4_append([_LT_TAGS], [$1 ])dnl
1738
m4_define([_LT_LANG_]$1[_enabled], [])dnl
1739
_LT_LANG_$1_CONFIG($1)])dnl
1743
# _LT_LANG_DEFAULT_CONFIG
1744
# -----------------------
1745
m4_defun([_LT_LANG_DEFAULT_CONFIG],
1746
[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1748
[m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1750
AC_PROVIDE_IFELSE([AC_PROG_F77],
1752
[m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1754
AC_PROVIDE_IFELSE([AC_PROG_FC],
1756
[m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1758
dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1759
dnl pulling things in needlessly.
1760
AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1762
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1764
[AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1766
[m4_ifdef([AC_PROG_GCJ],
1767
[m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1768
m4_ifdef([A][M_PROG_GCJ],
1769
[m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1770
m4_ifdef([LT_PROG_GCJ],
1771
[m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1773
AC_PROVIDE_IFELSE([LT_PROG_RC],
1775
[m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1776
])# _LT_LANG_DEFAULT_CONFIG
1779
AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1780
AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1781
AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1782
AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1783
dnl aclocal-1.4 backwards compatibility:
1784
dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1785
dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1786
dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1787
dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1792
m4_defun([_LT_TAG_COMPILER],
241
1793
[AC_REQUIRE([AC_PROG_CC])dnl
1795
_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1796
_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1797
_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1798
_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
243
1800
# If no C compiler was specified, use CC.
244
1801
LTCC=${LTCC-"$CC"}
2662
4221
AC_CHECK_LIB(m, cos, LIBM="-lm")
2668
# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2669
# -----------------------------------
2670
# sets LIBLTDL to the link flags for the libltdl convenience library and
2671
# LTDLINCL to the include flags for the libltdl header and adds
2672
# --enable-ltdl-convenience to the configure arguments. Note that
2673
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2674
# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2675
# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2676
# (note the single quotes!). If your package is not flat and you're not
2677
# using automake, define top_builddir and top_srcdir appropriately in
2679
AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2680
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2681
case $enable_ltdl_convenience in
2682
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2683
"") enable_ltdl_convenience=yes
2684
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2686
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2687
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2688
# For backwards non-gettext consistent compatibility...
2690
])# AC_LIBLTDL_CONVENIENCE
2693
# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2694
# -----------------------------------
2695
# sets LIBLTDL to the link flags for the libltdl installable library and
2696
# LTDLINCL to the include flags for the libltdl header and adds
2697
# --enable-ltdl-install to the configure arguments. Note that
2698
# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2699
# and an installed libltdl is not found, it is assumed to be `libltdl'.
2700
# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2701
# '${top_srcdir}/' (note the single quotes!). If your package is not
2702
# flat and you're not using automake, define top_builddir and top_srcdir
2703
# appropriately in the Makefiles.
2704
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2705
AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2706
[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2707
AC_CHECK_LIB(ltdl, lt_dlinit,
2708
[test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2709
[if test x"$enable_ltdl_install" = xno; then
2710
AC_MSG_WARN([libltdl not installed, but installation disabled])
2712
enable_ltdl_install=yes
2715
if test x"$enable_ltdl_install" = x"yes"; then
2716
ac_configure_args="$ac_configure_args --enable-ltdl-install"
2717
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2718
LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2720
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2724
# For backwards non-gettext consistent compatibility...
2726
])# AC_LIBLTDL_INSTALLABLE
2731
# enable support for C++ libraries
2732
AC_DEFUN([AC_LIBTOOL_CXX],
2733
[AC_REQUIRE([_LT_AC_LANG_CXX])
2739
AC_DEFUN([_LT_AC_LANG_CXX],
2740
[AC_REQUIRE([AC_PROG_CXX])
2741
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2742
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2745
# _LT_AC_PROG_CXXCPP
2746
# ------------------
2747
AC_DEFUN([_LT_AC_PROG_CXXCPP],
2749
AC_REQUIRE([AC_PROG_CXX])
2750
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2751
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2752
(test "X$CXX" != "Xg++"))) ; then
2755
])# _LT_AC_PROG_CXXCPP
2759
# enable support for Fortran 77 libraries
2760
AC_DEFUN([AC_LIBTOOL_F77],
2761
[AC_REQUIRE([_LT_AC_LANG_F77])
2767
AC_DEFUN([_LT_AC_LANG_F77],
2768
[AC_REQUIRE([AC_PROG_F77])
2769
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2775
# enable support for GCJ libraries
2776
AC_DEFUN([AC_LIBTOOL_GCJ],
2777
[AC_REQUIRE([_LT_AC_LANG_GCJ])
2783
AC_DEFUN([_LT_AC_LANG_GCJ],
2784
[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2785
[AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2786
[AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2787
[ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2788
[ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2789
[AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2790
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2796
# enable support for Windows resource files
2797
AC_DEFUN([AC_LIBTOOL_RC],
2798
[AC_REQUIRE([LT_AC_PROG_RC])
2799
_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2803
# AC_LIBTOOL_LANG_C_CONFIG
2804
# ------------------------
2805
# Ensure that the configuration vars for the C compiler are
2806
# suitably defined. Those variables are subsequently used by
2807
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2808
AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2809
AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2813
# Source file extension for C test sources.
2816
# Object file extension for compiled C test sources.
2818
_LT_AC_TAGVAR(objext, $1)=$objext
2820
# Code to be used in simple compile tests
2821
lt_simple_compile_test_code="int some_variable = 0;"
2823
# Code to be used in simple link tests
2824
lt_simple_link_test_code='int main(){return(0);}'
2828
# save warnings/boilerplate of simple test code
2829
_LT_COMPILER_BOILERPLATE
2830
_LT_LINKER_BOILERPLATE
2832
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2833
AC_LIBTOOL_PROG_COMPILER_PIC($1)
2834
AC_LIBTOOL_PROG_CC_C_O($1)
2835
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2836
AC_LIBTOOL_PROG_LD_SHLIBS($1)
2837
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2838
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2839
AC_LIBTOOL_SYS_LIB_STRIP
2840
AC_LIBTOOL_DLOPEN_SELF
2842
# Report which library types will actually be built
2843
AC_MSG_CHECKING([if libtool supports shared libraries])
2844
AC_MSG_RESULT([$can_build_shared])
2846
AC_MSG_CHECKING([whether to build shared libraries])
2847
test "$can_build_shared" = "no" && enable_shared=no
2849
# On AIX, shared libraries and static libraries use the same namespace, and
2850
# are all built from PIC.
2853
test "$enable_shared" = yes && enable_static=no
2854
if test -n "$RANLIB"; then
2855
archive_cmds="$archive_cmds~\$RANLIB \$lib"
2856
postinstall_cmds='$RANLIB $lib'
2861
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2862
test "$enable_shared" = yes && enable_static=no
2866
AC_MSG_RESULT([$enable_shared])
2868
AC_MSG_CHECKING([whether to build static libraries])
2869
# Make sure either enable_shared or enable_static is yes.
2870
test "$enable_shared" = yes || enable_static=yes
2871
AC_MSG_RESULT([$enable_static])
2873
AC_LIBTOOL_CONFIG($1)
2877
])# AC_LIBTOOL_LANG_C_CONFIG
2880
# AC_LIBTOOL_LANG_CXX_CONFIG
2881
# --------------------------
2882
# Ensure that the configuration vars for the C compiler are
2883
# suitably defined. Those variables are subsequently used by
2884
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2885
AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2886
AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2888
AC_REQUIRE([AC_PROG_CXX])
2889
AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2891
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2892
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
2893
_LT_AC_TAGVAR(always_export_symbols, $1)=no
2894
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2895
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2896
_LT_AC_TAGVAR(hardcode_direct, $1)=no
2897
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2898
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2899
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2900
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2901
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2902
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
2903
_LT_AC_TAGVAR(module_cmds, $1)=
2904
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
2905
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2906
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2907
_LT_AC_TAGVAR(no_undefined_flag, $1)=
2908
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2909
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2911
# Dependencies to place before and after the object being linked:
2912
_LT_AC_TAGVAR(predep_objects, $1)=
2913
_LT_AC_TAGVAR(postdep_objects, $1)=
2914
_LT_AC_TAGVAR(predeps, $1)=
2915
_LT_AC_TAGVAR(postdeps, $1)=
2916
_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2917
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
2919
# Source file extension for C++ test sources.
2922
# Object file extension for compiled C++ test sources.
2924
_LT_AC_TAGVAR(objext, $1)=$objext
2926
# Code to be used in simple compile tests
2927
lt_simple_compile_test_code="int some_variable = 0;"
2929
# Code to be used in simple link tests
2930
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
2932
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
2935
# save warnings/boilerplate of simple test code
2936
_LT_COMPILER_BOILERPLATE
2937
_LT_LINKER_BOILERPLATE
2939
# Allow CC to be a program name with arguments.
2944
lt_save_with_gnu_ld=$with_gnu_ld
2945
lt_save_path_LD=$lt_cv_path_LD
2946
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2947
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2949
$as_unset lt_cv_prog_gnu_ld
2951
if test -n "${lt_cv_path_LDCXX+set}"; then
2952
lt_cv_path_LD=$lt_cv_path_LDCXX
2954
$as_unset lt_cv_path_LD
2956
test -z "${LDCXX+set}" || LD=$LDCXX
2959
_LT_AC_TAGVAR(compiler, $1)=$CC
2960
_LT_CC_BASENAME([$compiler])
2962
# We don't want -fno-exception wen compiling C++ code, so set the
2963
# no_builtin_flag separately
2964
if test "$GXX" = yes; then
2965
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2967
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2970
if test "$GXX" = yes; then
2971
# Set up default GNU C++ configuration
2975
# Check if GNU C++ uses GNU ld as the underlying linker, since the
2976
# archiving commands below assume that GNU ld is being used.
2977
if test "$with_gnu_ld" = yes; then
2978
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2979
_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'
2981
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2982
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2984
# If archive_cmds runs LD, not CC, wlarc should be empty
2985
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2986
# investigate it a little bit more. (MM)
2989
# ancient GNU ld didn't support --whole-archive et. al.
2990
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2991
grep 'no-whole-archive' > /dev/null; then
2992
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2994
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3000
# A generic and very simple default shared library creation
3001
# command for GNU C++ for the case where it uses the native
3002
# linker, instead of GNU ld. If possible, this setting should
3003
# overridden to take advantage of the native linker features on
3004
# the platform it is being used on.
3005
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3008
# Commands to make compiler produce verbose output that lists
3009
# what "hidden" libraries, object files and flags are used when
3010
# linking a shared library.
3011
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3019
# PORTME: fill in a description of your system's C++ link characteristics
3020
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
3021
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3024
# FIXME: insert proper C++ library support
3025
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3028
if test "$host_cpu" = ia64; then
3029
# On IA64, the linker does run time linking by default, so we don't
3030
# have to do anything special.
3031
aix_use_runtimelinking=no
3032
exp_sym_flag='-Bexport'
3035
aix_use_runtimelinking=no
3037
# Test if we are trying to use run time linking or normal
3038
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
3039
# need to do runtime linking.
3040
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
3041
for ld_flag in $LDFLAGS; do
3044
aix_use_runtimelinking=yes
3052
exp_sym_flag='-bexport'
3053
no_entry_flag='-bnoentry'
3056
# When large executables or shared objects are built, AIX ld can
3057
# have problems creating the table of contents. If linking a library
3058
# or program results in "error TOC overflow" add -mminimal-toc to
3059
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3060
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3062
_LT_AC_TAGVAR(archive_cmds, $1)=''
3063
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3064
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3065
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3067
if test "$GXX" = yes; then
3068
case $host_os in aix4.[[012]]|aix4.[[012]].*)
3069
# We only want to do this on AIX 4.2 and lower, the check
3070
# below for broken collect2 doesn't work under 4.3+
3071
collect2name=`${CC} -print-prog-name=collect2`
3072
if test -f "$collect2name" && \
3073
strings "$collect2name" | grep resolve_lib_name >/dev/null
3075
# We have reworked collect2
3078
# We have old collect2
3079
_LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
3080
# It fails to find uninstalled libraries when the uninstalled
3081
# path is not listed in the libpath. Setting hardcode_minus_L
3082
# to unsupported forces relinking
3083
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
3084
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3085
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3089
shared_flag='-shared'
3090
if test "$aix_use_runtimelinking" = yes; then
3091
shared_flag="$shared_flag "'${wl}-G'
3095
if test "$host_cpu" = ia64; then
3096
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
3097
# chokes on -Wl,-G. The following line is correct:
3100
if test "$aix_use_runtimelinking" = yes; then
3101
shared_flag='${wl}-G'
3103
shared_flag='${wl}-bM:SRE'
3108
# It seems that -bexpall does not export symbols beginning with
3109
# underscore (_), so it is better to generate a list of symbols to export.
3110
_LT_AC_TAGVAR(always_export_symbols, $1)=yes
3111
if test "$aix_use_runtimelinking" = yes; then
3112
# Warning - without using the other runtime loading flags (-brtl),
3113
# -berok will link without error, but may produce a broken library.
3114
_LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
3115
# Determine the default libpath from the value encoded in an empty executable.
3116
_LT_AC_SYS_LIBPATH_AIX
3117
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3119
_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"
3121
if test "$host_cpu" = ia64; then
3122
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
3123
_LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
3124
_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"
3126
# Determine the default libpath from the value encoded in an empty executable.
3127
_LT_AC_SYS_LIBPATH_AIX
3128
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
3129
# Warning - without using the other run time loading flags,
3130
# -berok will link without error, but may produce a broken library.
3131
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
3132
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
3133
# Exported symbols can be pulled into shared objects from archives
3134
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
3135
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
3136
# This is similar to how AIX traditionally builds its shared libraries.
3137
_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'
3143
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
3144
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3145
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3146
# support --undefined. This deserves some investigation. FIXME
3147
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3149
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3154
case $cc_basename in
3156
# FIXME: insert proper C++ library support
3157
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3162
cygwin* | mingw* | pw32*)
3163
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
3164
# as there is no search path for DLLs.
3165
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3166
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3167
_LT_AC_TAGVAR(always_export_symbols, $1)=no
3168
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3170
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3171
_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'
3172
# If the export-symbols file already is a .def file (1st line
3173
# is EXPORTS), use it as is; otherwise, prepend...
3174
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3175
cp $export_symbols $output_objdir/$soname.def;
3177
echo EXPORTS > $output_objdir/$soname.def;
3178
cat $export_symbols >> $output_objdir/$soname.def;
3180
$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'
3182
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3185
darwin* | rhapsody*)
3186
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3187
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3188
_LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3189
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3190
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3191
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3192
_LT_AC_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
3193
if test "$GXX" = yes ; then
3194
output_verbose_link_cmd='echo'
3195
_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}"
3196
_LT_AC_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
3197
_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}"
3198
_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}"
3199
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
3200
_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}"
3201
_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}"
3204
case $cc_basename in
3206
output_verbose_link_cmd='echo'
3207
_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'
3208
_LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3209
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3210
_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}'
3211
_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}'
3214
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3221
case $cc_basename in
3223
# FIXME: insert proper C++ library support
3224
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3227
# Green Hills C++ Compiler
3228
# FIXME: insert proper C++ library support
3229
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3232
# FIXME: insert proper C++ library support
3233
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3238
# C++ shared libraries reported to be fairly broken before switch to ELF
3239
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3242
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3244
freebsd* | dragonfly*)
3245
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3247
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
3252
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3253
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3254
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3255
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3256
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3257
# but as the default
3258
# location of the library.
3260
case $cc_basename in
3262
# FIXME: insert proper C++ library support
3263
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3266
_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'
3267
# Commands to make compiler produce verbose output that lists
3268
# what "hidden" libraries, object files and flags are used when
3269
# linking a shared library.
3271
# There doesn't appear to be a way to prevent this compiler from
3272
# explicitly linking system object files so we need to strip them
3273
# from the output so that they don't get included in the library
3275
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'
3278
if test "$GXX" = yes; then
3279
_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'
3281
# FIXME: insert proper C++ library support
3282
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3288
if test $with_gnu_ld = no; then
3289
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3290
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3295
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3301
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3302
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3305
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3306
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3307
# but as the default
3308
# location of the library.
3312
case $cc_basename in
3314
# FIXME: insert proper C++ library support
3315
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3320
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3323
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3326
_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'
3329
# Commands to make compiler produce verbose output that lists
3330
# what "hidden" libraries, object files and flags are used when
3331
# linking a shared library.
3333
# There doesn't appear to be a way to prevent this compiler from
3334
# explicitly linking system object files so we need to strip them
3335
# from the output so that they don't get included in the library
3337
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'
3340
if test "$GXX" = yes; then
3341
if test $with_gnu_ld = no; then
3344
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3347
_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'
3350
_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'
3355
# FIXME: insert proper C++ library support
3356
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3362
_LT_AC_TAGVAR(hardcode_direct, $1)=no
3363
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3364
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3365
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3366
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3367
# Instead, shared libraries are loaded at an image base (0x10000000 by
3368
# default) and relocated if they conflict, which is a slow very memory
3369
# consuming and fragmenting process. To avoid this, we pick a random,
3370
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3371
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
3372
_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'
3373
_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'
3376
case $cc_basename in
3379
_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'
3381
# Archives containing C++ object files must be created using
3382
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
3383
# necessary to make sure instantiated templates are included
3385
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3388
if test "$GXX" = yes; then
3389
if test "$with_gnu_ld" = no; then
3390
_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'
3392
_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'
3395
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3398
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3399
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3401
linux* | k*bsd*-gnu)
3402
case $cc_basename in
3404
# Kuck and Associates, Inc. (KAI) C++ Compiler
3406
# KCC will only create a shared library if the output file
3407
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3408
# to its proper name (with version) after linking.
3409
_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'
3410
_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'
3411
# Commands to make compiler produce verbose output that lists
3412
# what "hidden" libraries, object files and flags are used when
3413
# linking a shared library.
3415
# There doesn't appear to be a way to prevent this compiler from
3416
# explicitly linking system object files so we need to strip them
3417
# from the output so that they don't get included in the library
3419
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'
3421
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3422
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3424
# Archives containing C++ object files must be created using
3425
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3426
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3431
# version 8.0 and above of icpc choke on multiply defined symbols
3432
# if we add $predep_objects and $postdep_objects, however 7.1 and
3433
# earlier do not add the objects themselves.
3434
case `$CC -V 2>&1` in
3436
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3437
_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'
3439
*) # Version 8.0 or newer
3442
ia64*) tmp_idyn=' -i_dynamic';;
3444
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3445
_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'
3448
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3449
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3450
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3451
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3454
# Portland Group C++ compiler
3455
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3456
_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'
3458
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3459
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3460
_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'
3464
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3465
_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'
3467
runpath_var=LD_RUN_PATH
3468
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3469
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3471
# Commands to make compiler produce verbose output that lists
3472
# what "hidden" libraries, object files and flags are used when
3473
# linking a shared library.
3475
# There doesn't appear to be a way to prevent this compiler from
3476
# explicitly linking system object files so we need to strip them
3477
# from the output so that they don't get included in the library
3479
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'
3482
case `$CC -V 2>&1 | sed 5q` in
3485
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3486
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3487
_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'
3488
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3489
_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'
3491
# Not sure whether something based on
3492
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
3494
output_verbose_link_cmd='echo'
3496
# Archives containing C++ object files must be created using
3497
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3498
# necessary to make sure instantiated templates are included
3500
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3507
# FIXME: insert proper C++ library support
3508
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3511
# FIXME: insert proper C++ library support
3512
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3515
case $cc_basename in
3517
# FIXME: insert proper C++ library support
3518
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3521
# FIXME: insert proper C++ library support
3522
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3526
netbsd* | netbsdelf*-gnu)
3527
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3528
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3530
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3531
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3532
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3534
# Workaround some broken pre-1.5 toolchains
3535
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3538
# C++ shared libraries are fairly broken
3539
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3542
if test -f /usr/libexec/ld.so; then
3543
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
3544
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3545
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3546
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3547
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3548
_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'
3549
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3550
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3552
output_verbose_link_cmd='echo'
3554
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3558
case $cc_basename in
3560
# Kuck and Associates, Inc. (KAI) C++ Compiler
3562
# KCC will only create a shared library if the output file
3563
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3564
# to its proper name (with version) after linking.
3565
_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'
3567
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3568
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3570
# Archives containing C++ object files must be created using
3571
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
3572
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3576
# Rational C++ 2.4.1
3577
# FIXME: insert proper C++ library support
3578
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3581
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3582
_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'
3584
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3585
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3587
# Commands to make compiler produce verbose output that lists
3588
# what "hidden" libraries, object files and flags are used when
3589
# linking a shared library.
3591
# There doesn't appear to be a way to prevent this compiler from
3592
# explicitly linking system object files so we need to strip them
3593
# from the output so that they don't get included in the library
3595
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'
3598
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3599
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3600
_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'
3602
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3603
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3605
# Commands to make compiler produce verbose output that lists
3606
# what "hidden" libraries, object files and flags are used when
3607
# linking a shared library.
3608
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3611
# FIXME: insert proper C++ library support
3612
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3618
case $cc_basename in
3620
# Kuck and Associates, Inc. (KAI) C++ Compiler
3622
# KCC will only create a shared library if the output file
3623
# ends with ".so" (or ".sl" for HP-UX), so rename the library
3624
# to its proper name (with version) after linking.
3625
_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'
3627
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3628
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3630
# Archives containing C++ object files must be created using
3631
# the KAI C++ compiler.
3632
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3635
# Rational C++ 2.4.1
3636
# FIXME: insert proper C++ library support
3637
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3640
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3641
_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'
3642
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3643
echo "-hidden">> $lib.exp~
3644
$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~
3647
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3648
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3650
# Commands to make compiler produce verbose output that lists
3651
# what "hidden" libraries, object files and flags are used when
3652
# linking a shared library.
3654
# There doesn't appear to be a way to prevent this compiler from
3655
# explicitly linking system object files so we need to strip them
3656
# from the output so that they don't get included in the library
3658
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'
3661
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3662
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3663
_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'
3665
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3666
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3668
# Commands to make compiler produce verbose output that lists
3669
# what "hidden" libraries, object files and flags are used when
3670
# linking a shared library.
3671
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3674
# FIXME: insert proper C++ library support
3675
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3681
# FIXME: insert proper C++ library support
3682
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3685
case $cc_basename in
3688
# FIXME: insert proper C++ library support
3689
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3693
# FIXME: insert proper C++ library support
3694
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3697
# FIXME: insert proper C++ library support
3698
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3703
case $cc_basename in
3705
# Sun C++ 4.2, 5.x and Centerline C++
3706
_LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3707
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3708
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3709
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3710
$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'
3712
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3713
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3715
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3717
# The compiler driver will combine and reorder linker options,
3718
# but understands `-z linker_flag'.
3719
# Supported since Solaris 2.6 (maybe 2.5.1?)
3720
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
3723
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3725
output_verbose_link_cmd='echo'
3727
# Archives containing C++ object files must be created using
3728
# "CC -xar", where "CC" is the Sun C++ compiler. This is
3729
# necessary to make sure instantiated templates are included
3731
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3734
# Green Hills C++ Compiler
3735
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3737
# The C++ compiler must be used to create the archive.
3738
_LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3741
# GNU C++ compiler with Solaris linker
3742
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3743
_LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3744
if $CC --version | grep -v '^2\.7' > /dev/null; then
3745
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3746
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3747
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3749
# Commands to make compiler produce verbose output that lists
3750
# what "hidden" libraries, object files and flags are used when
3751
# linking a shared library.
3752
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3754
# g++ 2.7 appears to require `-G' NOT `-shared' on this
3756
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3757
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3758
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3760
# Commands to make compiler produce verbose output that lists
3761
# what "hidden" libraries, object files and flags are used when
3762
# linking a shared library.
3763
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3766
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3768
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3770
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
3777
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3778
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3779
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3780
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3781
runpath_var='LD_RUN_PATH'
3783
case $cc_basename in
3785
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3786
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3789
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3790
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3794
sysv5* | sco3.2v5* | sco5v6*)
3795
# Note: We can NOT use -z defs as we might desire, because we do not
3796
# link with -lc, and that would cause any symbols used from libc to
3797
# always be unresolved, which means just about no library would
3798
# ever link correctly. If we're not using GNU ld we use -z text
3799
# though, which does catch some bad symbols but isn't as heavy-handed
3801
# For security reasons, it is highly recommended that you always
3802
# use absolute paths for naming shared libraries, and exclude the
3803
# DT_RUNPATH tag from executables and libraries. But doing so
3804
# requires that you compile everything twice, which is a pain.
3805
# So that behaviour is only enabled if SCOABSPATH is set to a
3806
# non-empty value in the environment. Most likely only useful for
3807
# creating official distributions of packages.
3808
# This is a hack until libtool officially supports absolute path
3809
# names for shared libraries.
3810
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3811
_LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3812
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3813
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3814
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3815
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3816
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3817
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3818
runpath_var='LD_RUN_PATH'
3820
case $cc_basename in
3822
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3823
_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'
3826
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3827
_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'
3832
case $cc_basename in
3834
# NonStop-UX NCC 3.20
3835
# FIXME: insert proper C++ library support
3836
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3839
# FIXME: insert proper C++ library support
3840
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3845
# FIXME: insert proper C++ library support
3846
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3849
# FIXME: insert proper C++ library support
3850
_LT_AC_TAGVAR(ld_shlibs, $1)=no
3853
AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3854
test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3856
_LT_AC_TAGVAR(GCC, $1)="$GXX"
3857
_LT_AC_TAGVAR(LD, $1)="$LD"
3859
AC_LIBTOOL_POSTDEP_PREDEP($1)
3860
AC_LIBTOOL_PROG_COMPILER_PIC($1)
3861
AC_LIBTOOL_PROG_CC_C_O($1)
3862
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3863
AC_LIBTOOL_PROG_LD_SHLIBS($1)
3864
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3865
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3867
AC_LIBTOOL_CONFIG($1)
3874
with_gnu_ldcxx=$with_gnu_ld
3875
with_gnu_ld=$lt_save_with_gnu_ld
3876
lt_cv_path_LDCXX=$lt_cv_path_LD
3877
lt_cv_path_LD=$lt_save_path_LD
3878
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3879
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3880
])# AC_LIBTOOL_LANG_CXX_CONFIG
3882
# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3883
# ------------------------------------
3884
# Figure out "hidden" library dependencies from verbose
3885
# compiler output when linking a shared library.
3886
# Parse the compiler output and extract the necessary
3887
# objects, libraries and library flags.
3888
AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],
3889
[AC_REQUIRE([LT_AC_PROG_SED])dnl
3890
dnl we can't use the lt_simple_compile_test_code here,
3891
dnl because it contains code intended for an executable,
3892
dnl not a library. It's possible we should let each
3893
dnl tag define a new lt_????_link_test_code variable,
3894
dnl but it's only used here...
3895
ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3897
void foo (void) { a = 0; }
3899
],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3903
Foo (void) { a = 0; }
3908
],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3916
],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3919
public void bar (void) {
3925
dnl Parse the compiler output and extract the necessary
3926
dnl objects, libraries and library flags.
3927
if AC_TRY_EVAL(ac_compile); then
3928
# Parse the compiler output and extract the necessary
3929
# objects, libraries and library flags.
3931
# Sentinel used to keep track of whether or not we are before
3932
# the conftest object file.
3933
pre_test_object_deps_done=no
3935
# The `*' in the case matches for architectures that use `case' in
3936
# $output_verbose_cmd can trigger glob expansion during the loop
3937
# eval without this substitution.
3938
output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3940
for p in `eval $output_verbose_link_cmd`; do
3944
# Some compilers place space between "-{L,R}" and the path.
3947
|| test $p = "-R"; then
3954
if test "$pre_test_object_deps_done" = no; then
3957
# Internal compiler library paths should come after those
3958
# provided the user. The postdeps already come after the
3959
# user supplied libs so there is no need to process them.
3960
if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3961
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3963
_LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3966
# The "-l" case would never come before the object being
3967
# linked, so don't bother handling this case.
3970
if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3971
_LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3973
_LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3979
# This assumes that the test object file only shows up
3980
# once in the compiler output.
3981
if test "$p" = "conftest.$objext"; then
3982
pre_test_object_deps_done=yes
3986
if test "$pre_test_object_deps_done" = no; then
3987
if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3988
_LT_AC_TAGVAR(predep_objects, $1)="$p"
3990
_LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3993
if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3994
_LT_AC_TAGVAR(postdep_objects, $1)="$p"
3996
_LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
4001
*) ;; # Ignore the rest.
4009
echo "libtool.m4: error: problem compiling $1 test program"
4012
$rm -f confest.$objext
4014
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=
4015
if test -n "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
4016
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_AC_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
4019
# PORTME: override above test on systems where it is broken
4023
# Interix 3.5 installs completely hosed .la files for C++, so rather than
4024
# hack all around it, let's just trust "g++" to DTRT.
4025
_LT_AC_TAGVAR(predep_objects,$1)=
4026
_LT_AC_TAGVAR(postdep_objects,$1)=
4027
_LT_AC_TAGVAR(postdeps,$1)=
4031
case `$CC -V 2>&1 | sed 5q` in
4035
# The more standards-conforming stlport4 library is
4036
# incompatible with the Cstd library. Avoid specifying
4037
# it if it's in CXXFLAGS. Ignore libCrun as
4038
# -library=stlport4 depends on it.
4039
case " $CXX $CXXFLAGS " in
4040
*" -library=stlport4 "*)
4041
solaris_use_stlport4=yes
4044
if test "$solaris_use_stlport4" != yes; then
4045
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4052
case $cc_basename in
4054
# The more standards-conforming stlport4 library is
4055
# incompatible with the Cstd library. Avoid specifying
4056
# it if it's in CXXFLAGS. Ignore libCrun as
4057
# -library=stlport4 depends on it.
4058
case " $CXX $CXXFLAGS " in
4059
*" -library=stlport4 "*)
4060
solaris_use_stlport4=yes
4064
# Adding this requires a known-good setup of shared libraries for
4065
# Sun compiler versions before 5.6, else PIC objects from an old
4066
# archive will be linked into the output, leading to subtle bugs.
4067
if test "$solaris_use_stlport4" != yes; then
4068
_LT_AC_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
4075
case " $_LT_AC_TAGVAR(postdeps, $1) " in
4076
*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
4078
])# AC_LIBTOOL_POSTDEP_PREDEP
4080
# AC_LIBTOOL_LANG_F77_CONFIG
4081
# --------------------------
4082
# Ensure that the configuration vars for the C compiler are
4083
# suitably defined. Those variables are subsequently used by
4084
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4085
AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
4086
AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
4087
[AC_REQUIRE([AC_PROG_F77])
4088
AC_LANG_PUSH(Fortran 77)
4090
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4091
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4092
_LT_AC_TAGVAR(always_export_symbols, $1)=no
4093
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4094
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4095
_LT_AC_TAGVAR(hardcode_direct, $1)=no
4096
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4097
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4098
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4099
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4100
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4101
_LT_AC_TAGVAR(module_cmds, $1)=
4102
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4103
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4104
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4105
_LT_AC_TAGVAR(no_undefined_flag, $1)=
4106
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4107
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4109
# Source file extension for f77 test sources.
4112
# Object file extension for compiled f77 test sources.
4114
_LT_AC_TAGVAR(objext, $1)=$objext
4116
# Code to be used in simple compile tests
4117
lt_simple_compile_test_code="\
4123
# Code to be used in simple link tests
4124
lt_simple_link_test_code="\
4129
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4132
# save warnings/boilerplate of simple test code
4133
_LT_COMPILER_BOILERPLATE
4134
_LT_LINKER_BOILERPLATE
4136
# Allow CC to be a program name with arguments.
4140
_LT_AC_TAGVAR(compiler, $1)=$CC
4141
_LT_CC_BASENAME([$compiler])
4143
AC_MSG_CHECKING([if libtool supports shared libraries])
4144
AC_MSG_RESULT([$can_build_shared])
4146
AC_MSG_CHECKING([whether to build shared libraries])
4147
test "$can_build_shared" = "no" && enable_shared=no
4149
# On AIX, shared libraries and static libraries use the same namespace, and
4150
# are all built from PIC.
4153
test "$enable_shared" = yes && enable_static=no
4154
if test -n "$RANLIB"; then
4155
archive_cmds="$archive_cmds~\$RANLIB \$lib"
4156
postinstall_cmds='$RANLIB $lib'
4160
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4161
test "$enable_shared" = yes && enable_static=no
4165
AC_MSG_RESULT([$enable_shared])
4167
AC_MSG_CHECKING([whether to build static libraries])
4168
# Make sure either enable_shared or enable_static is yes.
4169
test "$enable_shared" = yes || enable_static=yes
4170
AC_MSG_RESULT([$enable_static])
4172
_LT_AC_TAGVAR(GCC, $1)="$G77"
4173
_LT_AC_TAGVAR(LD, $1)="$LD"
4175
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4176
AC_LIBTOOL_PROG_CC_C_O($1)
4177
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4178
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4179
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4180
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4182
AC_LIBTOOL_CONFIG($1)
4186
])# AC_LIBTOOL_LANG_F77_CONFIG
4189
# AC_LIBTOOL_LANG_GCJ_CONFIG
4190
# --------------------------
4191
# Ensure that the configuration vars for the C compiler are
4192
# suitably defined. Those variables are subsequently used by
4193
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4194
AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
4195
AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
4198
# Source file extension for Java test sources.
4201
# Object file extension for compiled Java test sources.
4203
_LT_AC_TAGVAR(objext, $1)=$objext
4205
# Code to be used in simple compile tests
4206
lt_simple_compile_test_code="class foo {}"
4208
# Code to be used in simple link tests
4209
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
4211
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4214
# save warnings/boilerplate of simple test code
4215
_LT_COMPILER_BOILERPLATE
4216
_LT_LINKER_BOILERPLATE
4218
# Allow CC to be a program name with arguments.
4222
_LT_AC_TAGVAR(compiler, $1)=$CC
4223
_LT_CC_BASENAME([$compiler])
4225
# GCJ did not exist at the time GCC didn't implicitly link libc in.
4226
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4228
_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4230
AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4231
AC_LIBTOOL_PROG_COMPILER_PIC($1)
4232
AC_LIBTOOL_PROG_CC_C_O($1)
4233
AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4234
AC_LIBTOOL_PROG_LD_SHLIBS($1)
4235
AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4236
AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4238
AC_LIBTOOL_CONFIG($1)
4242
])# AC_LIBTOOL_LANG_GCJ_CONFIG
4245
# AC_LIBTOOL_LANG_RC_CONFIG
4246
# -------------------------
4247
# Ensure that the configuration vars for the Windows resource compiler are
4248
# suitably defined. Those variables are subsequently used by
4249
# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4250
AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4251
AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4254
# Source file extension for RC test sources.
4257
# Object file extension for compiled RC test sources.
4259
_LT_AC_TAGVAR(objext, $1)=$objext
4261
# Code to be used in simple compile tests
4262
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
4264
# Code to be used in simple link tests
4265
lt_simple_link_test_code="$lt_simple_compile_test_code"
4267
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4270
# save warnings/boilerplate of simple test code
4271
_LT_COMPILER_BOILERPLATE
4272
_LT_LINKER_BOILERPLATE
4274
# Allow CC to be a program name with arguments.
4278
_LT_AC_TAGVAR(compiler, $1)=$CC
4279
_LT_CC_BASENAME([$compiler])
4280
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4282
AC_LIBTOOL_CONFIG($1)
4286
])# AC_LIBTOOL_LANG_RC_CONFIG
4289
# AC_LIBTOOL_CONFIG([TAGNAME])
4290
# ----------------------------
4291
# If TAGNAME is not passed, then create an initial libtool script
4292
# with a default configuration from the untagged config vars. Otherwise
4293
# add code to config.status for appending the configuration named by
4294
# TAGNAME from the matching tagged config vars.
4295
AC_DEFUN([AC_LIBTOOL_CONFIG],
4296
[# The else clause should only fire when bootstrapping the
4297
# libtool distribution, otherwise you forgot to ship ltmain.sh
4298
# with your package, and you will get complaints that there are
4299
# no rules to generate ltmain.sh.
4300
if test -f "$ltmain"; then
4301
# See if we are running on zsh, and set the options which allow our commands through
4302
# without removal of \ escapes.
4303
if test -n "${ZSH_VERSION+set}" ; then
4304
setopt NO_GLOB_SUBST
4306
# Now quote all the things that may contain metacharacters while being
4307
# careful not to overquote the AC_SUBSTed values. We take copies of the
4308
# variables and quote the copies for generation of the libtool script.
4309
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4311
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4312
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4313
deplibs_check_method reload_flag reload_cmds need_locks \
4314
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4315
lt_cv_sys_global_symbol_to_c_name_address \
4316
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4317
old_postinstall_cmds old_postuninstall_cmds \
4318
_LT_AC_TAGVAR(compiler, $1) \
4319
_LT_AC_TAGVAR(CC, $1) \
4320
_LT_AC_TAGVAR(LD, $1) \
4321
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4322
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4323
_LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4324
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4325
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4326
_LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4327
_LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4328
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4329
_LT_AC_TAGVAR(old_archive_cmds, $1) \
4330
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4331
_LT_AC_TAGVAR(predep_objects, $1) \
4332
_LT_AC_TAGVAR(postdep_objects, $1) \
4333
_LT_AC_TAGVAR(predeps, $1) \
4334
_LT_AC_TAGVAR(postdeps, $1) \
4335
_LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4336
_LT_AC_TAGVAR(compiler_lib_search_dirs, $1) \
4337
_LT_AC_TAGVAR(archive_cmds, $1) \
4338
_LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4339
_LT_AC_TAGVAR(postinstall_cmds, $1) \
4340
_LT_AC_TAGVAR(postuninstall_cmds, $1) \
4341
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4342
_LT_AC_TAGVAR(allow_undefined_flag, $1) \
4343
_LT_AC_TAGVAR(no_undefined_flag, $1) \
4344
_LT_AC_TAGVAR(export_symbols_cmds, $1) \
4345
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4346
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4347
_LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4348
_LT_AC_TAGVAR(hardcode_automatic, $1) \
4349
_LT_AC_TAGVAR(module_cmds, $1) \
4350
_LT_AC_TAGVAR(module_expsym_cmds, $1) \
4351
_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4352
_LT_AC_TAGVAR(fix_srcfile_path, $1) \
4353
_LT_AC_TAGVAR(exclude_expsyms, $1) \
4354
_LT_AC_TAGVAR(include_expsyms, $1); do
4357
_LT_AC_TAGVAR(old_archive_cmds, $1) | \
4358
_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4359
_LT_AC_TAGVAR(archive_cmds, $1) | \
4360
_LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4361
_LT_AC_TAGVAR(module_cmds, $1) | \
4362
_LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4363
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4364
_LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4365
extract_expsyms_cmds | reload_cmds | finish_cmds | \
4366
postinstall_cmds | postuninstall_cmds | \
4367
old_postinstall_cmds | old_postuninstall_cmds | \
4368
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4369
# Double-quote double-evaled strings.
4370
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4373
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4379
*'\[$]0 --fallback-echo"')
4380
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4385
[cfgfile="${ofile}T"
4386
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4388
AC_MSG_NOTICE([creating $ofile])],
4391
cat <<__EOF__ >> "$cfgfile"
4395
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4396
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4397
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4399
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4400
# Free Software Foundation, Inc.
4402
# This file is part of GNU Libtool:
4403
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4405
# This program is free software; you can redistribute it and/or modify
4406
# it under the terms of the GNU General Public License as published by
4407
# the Free Software Foundation; either version 2 of the License, or
4408
# (at your option) any later version.
4410
# This program is distributed in the hope that it will be useful, but
4411
# WITHOUT ANY WARRANTY; without even the implied warranty of
4412
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4413
# General Public License for more details.
4415
# You should have received a copy of the GNU General Public License
4416
# along with this program; if not, write to the Free Software
4417
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4419
# As a special exception to the GNU General Public License, if you
4420
# distribute this file as part of a program that contains a
4421
# configuration script generated by Autoconf, you may include it under
4422
# the same distribution terms that you use for the rest of that program.
4424
# A sed program that does not truncate output.
4427
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4428
Xsed="$SED -e 1s/^X//"
4430
# The HP-UX ksh and POSIX shell print the target directory to stdout
4432
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4434
# The names of the tagged configurations supported by this script.
4437
# ### BEGIN LIBTOOL CONFIG],
4438
[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4440
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4442
# Shell to use when invoking shell scripts.
4445
# Whether or not to build shared libraries.
4446
build_libtool_libs=$enable_shared
4448
# Whether or not to build static libraries.
4449
build_old_libs=$enable_static
4451
# Whether or not to add -lc for building shared libraries.
4452
build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4454
# Whether or not to disallow shared libs when runtime libs are static
4455
allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4457
# Whether or not to optimize for fast installation.
4458
fast_install=$enable_fast_install
4461
host_alias=$host_alias
4466
build_alias=$build_alias
4470
# An echo program that does not interpret backslashes.
4475
AR_FLAGS=$lt_AR_FLAGS
4480
# LTCC compiler flags.
4481
LTCFLAGS=$lt_LTCFLAGS
4483
# A language-specific compiler.
4484
CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4486
# Is the compiler the GNU C compiler?
4487
with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4492
# The linker used to build libraries.
4493
LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4495
# Whether we need hard or soft links.
4498
# A BSD-compatible nm program.
4501
# A symbol stripping program
4504
# Used to examine libraries when file_magic_cmd begins "file"
4505
MAGIC_CMD=$MAGIC_CMD
4507
# Used on cygwin: DLL creation program.
4510
# Used on cygwin: object dumper.
4513
# Used on cygwin: assembler.
4516
# The name of the directory that contains temporary libtool files.
4519
# How to create reloadable object files.
4520
reload_flag=$lt_reload_flag
4521
reload_cmds=$lt_reload_cmds
4523
# How to pass a linker flag through the compiler.
4524
wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4526
# Object file suffix (normally "o").
4529
# Old archive suffix (normally "a").
4532
# Shared library suffix (normally ".so").
4533
shrext_cmds='$shrext_cmds'
4535
# Executable file suffix (normally "").
4538
# Additional compiler flags for building library objects.
4539
pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4542
# What is the maximum length of a command?
4543
max_cmd_len=$lt_cv_sys_max_cmd_len
4545
# Does compiler simultaneously support -c and -o options?
4546
compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4548
# Must we lock files when doing compilation?
4549
need_locks=$lt_need_locks
4551
# Do we need the lib prefix for modules?
4552
need_lib_prefix=$need_lib_prefix
4554
# Do we need a version for libraries?
4555
need_version=$need_version
4557
# Whether dlopen is supported.
4558
dlopen_support=$enable_dlopen
4560
# Whether dlopen of programs is supported.
4561
dlopen_self=$enable_dlopen_self
4563
# Whether dlopen of statically linked programs is supported.
4564
dlopen_self_static=$enable_dlopen_self_static
4566
# Compiler flag to prevent dynamic linking.
4567
link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4569
# Compiler flag to turn off builtin functions.
4570
no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4572
# Compiler flag to allow reflexive dlopens.
4573
export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4575
# Compiler flag to generate shared objects directly from archives.
4576
whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4578
# Compiler flag to generate thread-safe objects.
4579
thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4581
# Library versioning type.
4582
version_type=$version_type
4584
# Format of library name prefix.
4585
libname_spec=$lt_libname_spec
4587
# List of archive names. First name is the real one, the rest are links.
4588
# The last name is the one that the linker finds with -lNAME.
4589
library_names_spec=$lt_library_names_spec
4591
# The coded name of the library, if different from the real name.
4592
soname_spec=$lt_soname_spec
4594
# Commands used to build and install an old-style archive.
4596
old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4597
old_postinstall_cmds=$lt_old_postinstall_cmds
4598
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4600
# Create an old-style archive from a shared archive.
4601
old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4603
# Create a temporary old-style archive to link instead of a shared archive.
4604
old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4606
# Commands used to build and install a shared archive.
4607
archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4608
archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4609
postinstall_cmds=$lt_postinstall_cmds
4610
postuninstall_cmds=$lt_postuninstall_cmds
4612
# Commands used to build a loadable module (assumed same as above if empty)
4613
module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4614
module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4616
# Commands to strip libraries.
4617
old_striplib=$lt_old_striplib
4618
striplib=$lt_striplib
4620
# Dependencies to place before the objects being linked to create a
4622
predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4624
# Dependencies to place after the objects being linked to create a
4626
postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4628
# Dependencies to place before the objects being linked to create a
4630
predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4632
# Dependencies to place after the objects being linked to create a
4634
postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4636
# The directories searched by this compiler when creating a shared
4638
compiler_lib_search_dirs=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_dirs, $1)
4640
# The library search path used internally by the compiler when linking
4642
compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4644
# Method to check whether dependent libraries are shared objects.
4645
deplibs_check_method=$lt_deplibs_check_method
4647
# Command to use when deplibs_check_method == file_magic.
4648
file_magic_cmd=$lt_file_magic_cmd
4650
# Flag that allows shared libraries with undefined symbols to be built.
4651
allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4653
# Flag that forces no undefined symbols.
4654
no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4656
# Commands used to finish a libtool library installation in a directory.
4657
finish_cmds=$lt_finish_cmds
4659
# Same as above, but a single script fragment to be evaled but not shown.
4660
finish_eval=$lt_finish_eval
4662
# Take the output of nm and produce a listing of raw symbols and C names.
4663
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4665
# Transform the output of nm in a proper C declaration
4666
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4668
# Transform the output of nm in a C name address pair
4669
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4671
# This is the shared library runtime path variable.
4672
runpath_var=$runpath_var
4674
# This is the shared library path variable.
4675
shlibpath_var=$shlibpath_var
4677
# Is shlibpath searched before the hard-coded library search path?
4678
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4680
# How to hardcode a shared library path into an executable.
4681
hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4683
# Whether we should hardcode library paths into libraries.
4684
hardcode_into_libs=$hardcode_into_libs
4686
# Flag to hardcode \$libdir into a binary during linking.
4687
# This must work even if \$libdir does not exist.
4688
hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4690
# If ld is used when linking, flag to hardcode \$libdir into
4691
# a binary during linking. This must work even if \$libdir does
4693
hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4695
# Whether we need a single -rpath flag with a separated argument.
4696
hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4698
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4700
hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4702
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4704
hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4706
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4707
# the resulting binary.
4708
hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4710
# Set to yes if building a shared library automatically hardcodes DIR into the library
4711
# and all subsequent libraries and executables linked against it.
4712
hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4714
# Variables whose values should be saved in libtool wrapper scripts and
4715
# restored at relink time.
4716
variables_saved_for_relink="$variables_saved_for_relink"
4718
# Whether libtool must link a program against all its dependency libraries.
4719
link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4721
# Compile-time system search path for libraries
4722
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4724
# Run-time system search path for libraries
4725
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4727
# Fix the shell variable \$srcfile for the compiler.
4728
fix_srcfile_path=$lt_fix_srcfile_path
4730
# Set to yes if exported symbols are required.
4731
always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4733
# The commands to list exported symbols.
4734
export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4736
# The commands to extract the exported symbol list from a shared archive.
4737
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4739
# Symbols that should not be listed in the preloaded symbols.
4740
exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4742
# Symbols that must always be exported.
4743
include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4746
[# ### END LIBTOOL CONFIG],
4747
[# ### END LIBTOOL TAG CONFIG: $tagname])
4754
cat <<\EOF >> "$cfgfile"
4756
# AIX sometimes has problems with the GCC collect2 program. For some
4757
# reason, if we set the COLLECT_NAMES environment variable, the problems
4758
# vanish in a puff of smoke.
4759
if test "X${COLLECT_NAMES+set}" != Xset; then
4761
export COLLECT_NAMES
4767
# We use sed instead of cat because bash on DJGPP gets confused if
4768
# if finds mixed CR/LF and LF-only lines. Since sed operates in
4769
# text mode, it properly converts lines to CR/LF. This bash problem
4770
# is reportedly fixed, but why not run on old versions too?
4771
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4773
mv -f "$cfgfile" "$ofile" || \
4774
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4778
# If there is no Makefile yet, we rely on a make rule to execute
4779
# `config.status --recheck' to rerun these tests and create the
4780
# libtool script then.
4781
ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4782
if test -f "$ltmain_in"; then
4783
test -f Makefile && make "$ltmain"
4786
])# AC_LIBTOOL_CONFIG
4789
# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4790
# -------------------------------------------
4791
AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4792
[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4794
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4228
AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4229
dnl aclocal-1.4 backwards compatibility:
4230
dnl AC_DEFUN([AC_CHECK_LIBM], [])
4233
# _LT_COMPILER_NO_RTTI([TAGNAME])
4234
# -------------------------------
4235
m4_defun([_LT_COMPILER_NO_RTTI],
4236
[m4_require([_LT_TAG_COMPILER])dnl
4238
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4796
4240
if test "$GCC" = yes; then
4797
_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4241
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4799
AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4243
_LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4800
4244
lt_cv_prog_compiler_rtti_exceptions,
4801
4245
[-fno-rtti -fno-exceptions], [],
4802
[_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4246
[_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4804
])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4807
# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4808
# ---------------------------------
4809
AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4810
[AC_REQUIRE([AC_CANONICAL_HOST])
4811
AC_REQUIRE([LT_AC_PROG_SED])
4812
AC_REQUIRE([AC_PROG_NM])
4813
AC_REQUIRE([AC_OBJEXT])
4248
_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4249
[Compiler flag to turn off builtin functions])
4250
])# _LT_COMPILER_NO_RTTI
4253
# _LT_CMD_GLOBAL_SYMBOLS
4254
# ----------------------
4255
m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4256
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4257
AC_REQUIRE([AC_PROG_CC])dnl
4258
AC_REQUIRE([LT_PATH_NM])dnl
4259
AC_REQUIRE([LT_PATH_LD])dnl
4260
m4_require([_LT_DECL_SED])dnl
4261
m4_require([_LT_DECL_EGREP])dnl
4262
m4_require([_LT_TAG_COMPILER])dnl
4814
4264
# Check for command to grab the raw symbol name followed by C symbol from nm.
4815
4265
AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4816
4266
AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
5412
4909
# +Z the default
5415
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4912
_LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5418
4915
# Is there a better lt_prog_compiler_static that works with the bundled CC?
5419
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4916
_LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5422
4919
irix5* | irix6* | nonstopux*)
5423
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4920
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5424
4921
# PIC (with -KPIC) is the default.
5425
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5429
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5430
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4922
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5433
4925
linux* | k*bsd*-gnu)
5434
4926
case $cc_basename in
5436
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5437
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5438
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4927
icc* | ecc* | ifort*)
4928
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4929
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4930
_LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5440
4932
pgcc* | pgf77* | pgf90* | pgf95*)
5441
4933
# Portland Group compilers (*not* the Pentium gcc compiler,
5442
4934
# which looks to be a dead project)
5443
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5444
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5445
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4935
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4936
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4937
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5448
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4940
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5449
4941
# All Alpha code is PIC.
5450
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4942
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4945
# IBM XL C 8.0/Fortran 10.1 on PPC
4946
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4947
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4948
_LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5453
case `$CC -V 2>&1 | sed 5q` in
4951
case `$CC -V 2>&1 | sed 5q` in
5456
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5457
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5458
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4954
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4955
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4956
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5461
4959
# Sun Fortran 8.3 passes all unrecognized flags to the linker
5462
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5463
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5464
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=''
4960
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4961
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4962
_LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4970
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4971
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4975
# QNX uses GNU C++, but need to define -shared option too, otherwise
4977
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5471
4980
osf3* | osf4* | osf5*)
5472
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4981
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5473
4982
# All OSF/1 code is PIC.
5474
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4983
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5478
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4987
_LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5482
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5483
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4991
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4992
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5484
4993
case $cc_basename in
5485
4994
f77* | f90* | f95*)
5486
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4995
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5488
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4997
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5493
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5494
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5495
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5002
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5003
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5004
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5498
5007
sysv4 | sysv4.2uw2* | sysv4.3*)
5499
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5500
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5501
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5008
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5009
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5010
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5505
5014
if test -d /usr/nec ;then
5506
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5507
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5015
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5016
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5511
5020
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5512
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5513
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5514
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5021
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5022
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5023
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5518
_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5519
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5027
_LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5028
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5523
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5524
_LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5032
_LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5033
_LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5528
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5037
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5533
AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5043
# For platforms which do not support PIC, -DPIC is meaningless:
5045
_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5048
_LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5051
AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5052
_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5053
[How to pass a linker flag through the compiler])
5536
5056
# Check to make sure the PIC flag actually works.
5538
if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5539
AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5540
_LT_AC_TAGVAR(lt_cv_prog_compiler_pic_works, $1),
5541
[$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5542
[case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5058
if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5059
_LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5060
[_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5061
[$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5062
[case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5544
*) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5064
*) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5546
[_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5547
_LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5066
[_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5067
_LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5550
# For platforms which do not support PIC, -DPIC is meaningless:
5552
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5555
_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5069
_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5070
[Additional compiler flags for building library objects])
5560
5073
# Check to make sure the static flag actually works.
5562
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5563
AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5564
_LT_AC_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5075
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5076
_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5077
_LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5565
5078
$lt_tmp_static_flag,
5567
[_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5571
# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5572
# ------------------------------------
5080
[_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5081
_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5082
[Compiler flag to prevent dynamic linking])
5083
])# _LT_COMPILER_PIC
5086
# _LT_LINKER_SHLIBS([TAGNAME])
5087
# ----------------------------
5573
5088
# See if the linker supports building shared libraries.
5574
AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5575
[AC_REQUIRE([LT_AC_PROG_SED])dnl
5089
m4_defun([_LT_LINKER_SHLIBS],
5090
[AC_REQUIRE([LT_PATH_LD])dnl
5091
AC_REQUIRE([LT_PATH_NM])dnl
5092
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5093
m4_require([_LT_DECL_EGREP])dnl
5094
m4_require([_LT_DECL_SED])dnl
5095
m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5096
m4_require([_LT_TAG_COMPILER])dnl
5576
5097
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5578
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5098
m4_if([$1], [CXX], [
5099
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5579
5100
case $host_os in
5581
5102
# If we're using GNU nm, then we don't want the "-C" option.
5582
5103
# -C means demangle to AIX nm, but means don't demangle with GNU nm
5583
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5584
_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'
5104
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5105
_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'
5586
_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'
5107
_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'
5590
_LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5111
_LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5592
5113
cygwin* | mingw*)
5593
_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'
5595
linux* | k*bsd*-gnu)
5596
_LT_AC_TAGVAR(link_all_deplibs, $1)=no
5114
_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'
5599
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5117
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5602
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5120
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5605
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5606
_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5607
_LT_AC_TAGVAR(archive_cmds, $1)=
5608
_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5609
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5610
_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5611
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5612
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5613
_LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5614
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5615
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5616
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5617
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5618
_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5619
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5620
_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5621
_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5622
_LT_AC_TAGVAR(module_cmds, $1)=
5623
_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5624
_LT_AC_TAGVAR(always_export_symbols, $1)=no
5625
_LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5123
_LT_TAGVAR(allow_undefined_flag, $1)=
5124
_LT_TAGVAR(always_export_symbols, $1)=no
5125
_LT_TAGVAR(archive_cmds, $1)=
5126
_LT_TAGVAR(archive_expsym_cmds, $1)=
5127
_LT_TAGVAR(compiler_needs_object, $1)=no
5128
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5129
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
5130
_LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5131
_LT_TAGVAR(hardcode_automatic, $1)=no
5132
_LT_TAGVAR(hardcode_direct, $1)=no
5133
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
5134
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5135
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5136
_LT_TAGVAR(hardcode_libdir_separator, $1)=
5137
_LT_TAGVAR(hardcode_minus_L, $1)=no
5138
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5139
_LT_TAGVAR(inherit_rpath, $1)=no
5140
_LT_TAGVAR(link_all_deplibs, $1)=unknown
5141
_LT_TAGVAR(module_cmds, $1)=
5142
_LT_TAGVAR(module_expsym_cmds, $1)=
5143
_LT_TAGVAR(old_archive_from_new_cmds, $1)=
5144
_LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5145
_LT_TAGVAR(thread_safe_flag_spec, $1)=
5146
_LT_TAGVAR(whole_archive_flag_spec, $1)=
5626
5147
# include_expsyms should be a list of space-separated symbols to be *always*
5627
5148
# included in the symbol list
5628
_LT_AC_TAGVAR(include_expsyms, $1)=
5149
_LT_TAGVAR(include_expsyms, $1)=
5629
5150
# exclude_expsyms can be an extended regexp of symbols to exclude
5630
5151
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5631
5152
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5632
5153
# as well as any symbol that contains `d'.
5633
_LT_AC_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5154
_LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5634
5155
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5635
5156
# platforms (ab)use it in PIC code, but their linkers get confused if
5636
5157
# the symbol is explicitly referenced. Since portable code cannot
6231
5748
irix5* | irix6* | nonstopux*)
6232
5749
if test "$GCC" = yes; then
6233
_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'
5750
_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'
5751
# Try to use the -exported_symbol ld option, if it does not
5752
# work, assume that -exports_file does not work either and
5753
# implicitly export all symbols.
5754
save_LDFLAGS="$LDFLAGS"
5755
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5756
AC_LINK_IFELSE(int foo(void) {},
5757
_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'
5759
LDFLAGS="$save_LDFLAGS"
6235
_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'
6236
_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5761
_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'
5762
_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'
6238
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6239
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6240
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5764
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5765
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5766
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5767
_LT_TAGVAR(inherit_rpath, $1)=yes
5768
_LT_TAGVAR(link_all_deplibs, $1)=yes
6243
netbsd* | netbsdelf*-gnu)
6244
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6245
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5772
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5773
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6247
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5775
_LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6249
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6250
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6251
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5777
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5778
_LT_TAGVAR(hardcode_direct, $1)=yes
5779
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6255
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6256
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6257
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6258
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6259
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5783
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5784
_LT_TAGVAR(hardcode_direct, $1)=yes
5785
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5786
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
5787
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6263
5794
if test -f /usr/libexec/ld.so; then
6264
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6265
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6266
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6267
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6268
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6269
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6270
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5795
_LT_TAGVAR(hardcode_direct, $1)=yes
5796
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5797
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5798
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5799
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5800
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5801
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5802
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6272
5804
case $host_os in
6273
5805
openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6274
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6275
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5806
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5807
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6278
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6279
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5810
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5811
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6284
_LT_AC_TAGVAR(ld_shlibs, $1)=no
5816
_LT_TAGVAR(ld_shlibs, $1)=no
6289
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6290
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6291
_LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6292
_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'
6293
_LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5821
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5822
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5823
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5824
_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'
5825
_LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6297
5829
if test "$GCC" = yes; then
6298
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6299
_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'
5830
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5831
_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'
6301
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6302
_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'
5833
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5834
_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'
6304
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6305
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5836
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5837
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5838
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6308
5841
osf4* | osf5*) # as osf3* with the addition of -msym flag
6309
5842
if test "$GCC" = yes; then
6310
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6311
_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'
6312
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5843
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5844
_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'
5845
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6314
_LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6315
_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'
6316
_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~
6317
$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'
5847
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5848
_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'
5849
_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~
5850
$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'
6319
5852
# Both c and cxx compiler support -rpath directly
6320
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5853
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6322
_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5855
_LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5856
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6326
_LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
5860
_LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
6327
5861
if test "$GCC" = yes; then
6329
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6330
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6331
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
5863
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5864
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5865
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6334
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6335
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6336
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5867
case `$CC -V 2>&1` in
5870
_LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5871
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5872
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5876
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5877
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5878
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
6338
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6339
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5882
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5883
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6340
5884
case $host_os in
6341
5885
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6343
5887
# The compiler driver will combine and reorder linker options,
6344
5888
# but understands `-z linker_flag'. GCC discards it without `$wl',
6345
5889
# but is careful enough not to reorder.
6346
# Supported since Solaris 2.6 (maybe 2.5.1?)
5890
# Supported since Solaris 2.6 (maybe 2.5.1?)
6347
5891
if test "$GCC" = yes; then
6348
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5892
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6350
_LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5894
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6354
_LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5898
_LT_TAGVAR(link_all_deplibs, $1)=yes
6358
5902
if test "x$host_vendor" = xsequent; then
6359
5903
# Use $CC to link under sequent, because it throws in some extra .o
6360
5904
# files that make .init and .fini sections work.
6361
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5905
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6363
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5907
_LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6365
_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6366
_LT_AC_TAGVAR(hardcode_direct, $1)=yes
6367
_LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6368
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5909
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5910
_LT_TAGVAR(hardcode_direct, $1)=yes
5911
_LT_TAGVAR(hardcode_minus_L, $1)=yes
5912
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6372
5916
case $host_vendor in
6374
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6375
_LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5918
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5919
_LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6378
5922
## LD is ld it makes a PLAMLIB
6379
5923
## CC just makes a GrossModule.
6380
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6381
_LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6382
_LT_AC_TAGVAR(hardcode_direct, $1)=no
5924
_LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5925
_LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5926
_LT_TAGVAR(hardcode_direct, $1)=no
6385
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6386
_LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5929
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5930
_LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6389
5933
runpath_var='LD_RUN_PATH'
6390
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5934
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6394
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6395
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6396
_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5938
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5939
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5940
_LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6400
5944
if test -d /usr/nec; then
6401
_LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6402
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5945
_LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5946
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6403
5947
runpath_var=LD_RUN_PATH
6404
5948
hardcode_runpath_var=yes
6405
_LT_AC_TAGVAR(ld_shlibs, $1)=yes
5949
_LT_TAGVAR(ld_shlibs, $1)=yes
6409
5953
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6410
_LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6411
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6412
_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5954
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5955
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
5956
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6413
5957
runpath_var='LD_RUN_PATH'
6415
5959
if test "$GCC" = yes; then
6416
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6417
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5960
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5961
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6419
_LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6420
_LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5963
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5964
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6489
6048
libobjs=conftest.$ac_objext
6491
wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6492
pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6050
wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6051
pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6493
6052
compiler_flags=-v
6494
6053
linker_flags=-v
6496
6055
output_objdir=.
6497
6056
libname=conftest
6498
lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6499
_LT_AC_TAGVAR(allow_undefined_flag, $1)=
6500
if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6057
lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6058
_LT_TAGVAR(allow_undefined_flag, $1)=
6059
if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6502
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6061
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6504
_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6063
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6506
_LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6065
_LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6508
6067
cat conftest.err 1>&5
6511
AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6070
AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
6517
])# AC_LIBTOOL_PROG_LD_SHLIBS
6520
# _LT_AC_FILE_LTDLL_C
6521
# -------------------
6522
# Be careful that the start marker always follows a newline.
6523
AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6524
# /* ltdll.c starts here */
6525
# #define WIN32_LEAN_AND_MEAN
6526
# #include <windows.h>
6527
# #undef WIN32_LEAN_AND_MEAN
6528
# #include <stdio.h>
6530
# #ifndef __CYGWIN__
6531
# # ifdef __CYGWIN32__
6532
# # define __CYGWIN__ __CYGWIN32__
6536
# #ifdef __cplusplus
6539
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6540
# #ifdef __cplusplus
6545
# #include <cygwin/cygwin_dll.h>
6546
# DECLARE_CYGWIN_DLL( DllMain );
6548
# HINSTANCE __hDllInstance_base;
6551
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6553
# __hDllInstance_base = hInst;
6556
# /* ltdll.c ends here */
6557
])# _LT_AC_FILE_LTDLL_C
6560
# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6077
_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6078
[Whether or not to add -lc for building shared libraries])
6079
_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6080
[enable_shared_with_static_runtimes], [0],
6081
[Whether or not to disallow shared libs when runtime libs are static])
6082
_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6083
[Compiler flag to allow reflexive dlopens])
6084
_LT_TAGDECL([], [whole_archive_flag_spec], [1],
6085
[Compiler flag to generate shared objects directly from archives])
6086
_LT_TAGDECL([], [compiler_needs_object], [1],
6087
[Whether the compiler copes with passing no objects directly])
6088
_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6089
[Create an old-style archive from a shared archive])
6090
_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6091
[Create a temporary old-style archive to link instead of a shared archive])
6092
_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6093
_LT_TAGDECL([], [archive_expsym_cmds], [2])
6094
_LT_TAGDECL([], [module_cmds], [2],
6095
[Commands used to build a loadable module if different from building
6097
_LT_TAGDECL([], [module_expsym_cmds], [2])
6098
_LT_TAGDECL([], [with_gnu_ld], [1],
6099
[Whether we are building with GNU ld or not])
6100
_LT_TAGDECL([], [allow_undefined_flag], [1],
6101
[Flag that allows shared libraries with undefined symbols to be built])
6102
_LT_TAGDECL([], [no_undefined_flag], [1],
6103
[Flag that enforces no undefined symbols])
6104
_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6105
[Flag to hardcode $libdir into a binary during linking.
6106
This must work even if $libdir does not exist])
6107
_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
6108
[[If ld is used when linking, flag to hardcode $libdir into a binary
6109
during linking. This must work even if $libdir does not exist]])
6110
_LT_TAGDECL([], [hardcode_libdir_separator], [1],
6111
[Whether we need a single "-rpath" flag with a separated argument])
6112
_LT_TAGDECL([], [hardcode_direct], [0],
6113
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6114
DIR into the resulting binary])
6115
_LT_TAGDECL([], [hardcode_direct_absolute], [0],
6116
[Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
6117
DIR into the resulting binary and the resulting library dependency is
6118
"absolute", i.e impossible to change by setting ${shlibpath_var} if the
6119
library is relocated])
6120
_LT_TAGDECL([], [hardcode_minus_L], [0],
6121
[Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6122
into the resulting binary])
6123
_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6124
[Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6125
into the resulting binary])
6126
_LT_TAGDECL([], [hardcode_automatic], [0],
6127
[Set to "yes" if building a shared library automatically hardcodes DIR
6128
into the library and all subsequent libraries and executables linked
6130
_LT_TAGDECL([], [inherit_rpath], [0],
6131
[Set to yes if linker adds runtime paths of dependent libraries
6132
to runtime path list])
6133
_LT_TAGDECL([], [link_all_deplibs], [0],
6134
[Whether libtool must link a program against all its dependency libraries])
6135
_LT_TAGDECL([], [fix_srcfile_path], [1],
6136
[Fix the shell variable $srcfile for the compiler])
6137
_LT_TAGDECL([], [always_export_symbols], [0],
6138
[Set to "yes" if exported symbols are required])
6139
_LT_TAGDECL([], [export_symbols_cmds], [2],
6140
[The commands to list exported symbols])
6141
_LT_TAGDECL([], [exclude_expsyms], [1],
6142
[Symbols that should not be listed in the preloaded symbols])
6143
_LT_TAGDECL([], [include_expsyms], [1],
6144
[Symbols that must always be exported])
6145
_LT_TAGDECL([], [prelink_cmds], [2],
6146
[Commands necessary for linking programs (against libraries) with templates])
6147
_LT_TAGDECL([], [file_list_spec], [1],
6148
[Specify filename containing input files])
6149
dnl FIXME: Not yet implemented
6150
dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6151
dnl [Compiler flag to generate thread safe objects])
6152
])# _LT_LINKER_SHLIBS
6155
# _LT_LANG_C_CONFIG([TAG])
6156
# ------------------------
6157
# Ensure that the configuration variables for a C compiler are suitably
6158
# defined. These variables are subsequently used by _LT_CONFIG to write
6159
# the compiler configuration to `libtool'.
6160
m4_defun([_LT_LANG_C_CONFIG],
6161
[m4_require([_LT_DECL_EGREP])dnl
6165
# Source file extension for C test sources.
6168
# Object file extension for compiled C test sources.
6170
_LT_TAGVAR(objext, $1)=$objext
6172
# Code to be used in simple compile tests
6173
lt_simple_compile_test_code="int some_variable = 0;"
6175
# Code to be used in simple link tests
6176
lt_simple_link_test_code='int main(){return(0);}'
6179
# Save the default compiler, since it gets overwritten when the other
6180
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6181
compiler_DEFAULT=$CC
6183
# save warnings/boilerplate of simple test code
6184
_LT_COMPILER_BOILERPLATE
6185
_LT_LINKER_BOILERPLATE
6187
if test -n "$compiler"; then
6188
_LT_COMPILER_NO_RTTI($1)
6189
_LT_COMPILER_PIC($1)
6190
_LT_COMPILER_C_O($1)
6191
_LT_COMPILER_FILE_LOCKS($1)
6192
_LT_LINKER_SHLIBS($1)
6193
_LT_SYS_DYNAMIC_LINKER($1)
6194
_LT_LINKER_HARDCODE_LIBPATH($1)
6198
# Report which library types will actually be built
6199
AC_MSG_CHECKING([if libtool supports shared libraries])
6200
AC_MSG_RESULT([$can_build_shared])
6202
AC_MSG_CHECKING([whether to build shared libraries])
6203
test "$can_build_shared" = "no" && enable_shared=no
6205
# On AIX, shared libraries and static libraries use the same namespace, and
6206
# are all built from PIC.
6209
test "$enable_shared" = yes && enable_static=no
6210
if test -n "$RANLIB"; then
6211
archive_cmds="$archive_cmds~\$RANLIB \$lib"
6212
postinstall_cmds='$RANLIB $lib'
6217
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6218
test "$enable_shared" = yes && enable_static=no
6222
AC_MSG_RESULT([$enable_shared])
6224
AC_MSG_CHECKING([whether to build static libraries])
6225
# Make sure either enable_shared or enable_static is yes.
6226
test "$enable_shared" = yes || enable_static=yes
6227
AC_MSG_RESULT([$enable_static])
6233
])# _LT_LANG_C_CONFIG
6238
# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6239
# compiler, we have our own version here.
6240
m4_defun([_LT_PROG_CXX],
6242
pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6244
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6245
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6246
(test "X$CXX" != "Xg++"))) ; then
6249
_lt_caught_CXX_error=yes
6251
popdef([AC_MSG_ERROR])
6254
dnl aclocal-1.4 backwards compatibility:
6255
dnl AC_DEFUN([_LT_PROG_CXX], [])
6258
# _LT_LANG_CXX_CONFIG([TAG])
6259
# --------------------------
6260
# Ensure that the configuration variables for a C++ compiler are suitably
6261
# defined. These variables are subsequently used by _LT_CONFIG to write
6262
# the compiler configuration to `libtool'.
6263
m4_defun([_LT_LANG_CXX_CONFIG],
6264
[AC_REQUIRE([_LT_PROG_CXX])dnl
6265
m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6266
m4_require([_LT_DECL_EGREP])dnl
6269
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6270
_LT_TAGVAR(allow_undefined_flag, $1)=
6271
_LT_TAGVAR(always_export_symbols, $1)=no
6272
_LT_TAGVAR(archive_expsym_cmds, $1)=
6273
_LT_TAGVAR(compiler_needs_object, $1)=no
6274
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
6275
_LT_TAGVAR(hardcode_direct, $1)=no
6276
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
6277
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6278
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6279
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6280
_LT_TAGVAR(hardcode_minus_L, $1)=no
6281
_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6282
_LT_TAGVAR(hardcode_automatic, $1)=no
6283
_LT_TAGVAR(inherit_rpath, $1)=no
6284
_LT_TAGVAR(module_cmds, $1)=
6285
_LT_TAGVAR(module_expsym_cmds, $1)=
6286
_LT_TAGVAR(link_all_deplibs, $1)=unknown
6287
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6288
_LT_TAGVAR(no_undefined_flag, $1)=
6289
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6290
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6292
# Source file extension for C++ test sources.
6295
# Object file extension for compiled C++ test sources.
6297
_LT_TAGVAR(objext, $1)=$objext
6299
# No sense in running all these tests if we already determined that
6300
# the CXX compiler isn't working. Some variables (like enable_shared)
6301
# are currently assumed to apply to all compilers on this platform,
6302
# and will be corrupted by setting them based on a non-working compiler.
6303
if test "$_lt_caught_CXX_error" != yes; then
6304
# Code to be used in simple compile tests
6305
lt_simple_compile_test_code="int some_variable = 0;"
6307
# Code to be used in simple link tests
6308
lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6310
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
6313
# save warnings/boilerplate of simple test code
6314
_LT_COMPILER_BOILERPLATE
6315
_LT_LINKER_BOILERPLATE
6317
# Allow CC to be a program name with arguments.
6322
lt_save_with_gnu_ld=$with_gnu_ld
6323
lt_save_path_LD=$lt_cv_path_LD
6324
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6325
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6327
$as_unset lt_cv_prog_gnu_ld
6329
if test -n "${lt_cv_path_LDCXX+set}"; then
6330
lt_cv_path_LD=$lt_cv_path_LDCXX
6332
$as_unset lt_cv_path_LD
6334
test -z "${LDCXX+set}" || LD=$LDCXX
6337
_LT_TAGVAR(compiler, $1)=$CC
6338
_LT_CC_BASENAME([$compiler])
6340
if test -n "$compiler"; then
6341
# We don't want -fno-exception when compiling C++ code, so set the
6342
# no_builtin_flag separately
6343
if test "$GXX" = yes; then
6344
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6346
_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6349
if test "$GXX" = yes; then
6350
# Set up default GNU C++ configuration
6354
# Check if GNU C++ uses GNU ld as the underlying linker, since the
6355
# archiving commands below assume that GNU ld is being used.
6356
if test "$with_gnu_ld" = yes; then
6357
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6358
_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'
6360
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6361
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6363
# If archive_cmds runs LD, not CC, wlarc should be empty
6364
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6365
# investigate it a little bit more. (MM)
6368
# ancient GNU ld didn't support --whole-archive et. al.
6369
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6370
$GREP 'no-whole-archive' > /dev/null; then
6371
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6373
_LT_TAGVAR(whole_archive_flag_spec, $1)=
6379
# A generic and very simple default shared library creation
6380
# command for GNU C++ for the case where it uses the native
6381
# linker, instead of GNU ld. If possible, this setting should
6382
# overridden to take advantage of the native linker features on
6383
# the platform it is being used on.
6384
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6387
# Commands to make compiler produce verbose output that lists
6388
# what "hidden" libraries, object files and flags are used when
6389
# linking a shared library.
6390
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6398
# PORTME: fill in a description of your system's C++ link characteristics
6399
AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6400
_LT_TAGVAR(ld_shlibs, $1)=yes
6403
# FIXME: insert proper C++ library support
6404
_LT_TAGVAR(ld_shlibs, $1)=no
6407
if test "$host_cpu" = ia64; then
6408
# On IA64, the linker does run time linking by default, so we don't
6409
# have to do anything special.
6410
aix_use_runtimelinking=no
6411
exp_sym_flag='-Bexport'
6414
aix_use_runtimelinking=no
6416
# Test if we are trying to use run time linking or normal
6417
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6418
# need to do runtime linking.
6419
case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6420
for ld_flag in $LDFLAGS; do
6423
aix_use_runtimelinking=yes
6431
exp_sym_flag='-bexport'
6432
no_entry_flag='-bnoentry'
6435
# When large executables or shared objects are built, AIX ld can
6436
# have problems creating the table of contents. If linking a library
6437
# or program results in "error TOC overflow" add -mminimal-toc to
6438
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6439
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6441
_LT_TAGVAR(archive_cmds, $1)=''
6442
_LT_TAGVAR(hardcode_direct, $1)=yes
6443
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6444
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6445
_LT_TAGVAR(link_all_deplibs, $1)=yes
6446
_LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6448
if test "$GXX" = yes; then
6449
case $host_os in aix4.[[012]]|aix4.[[012]].*)
6450
# We only want to do this on AIX 4.2 and lower, the check
6451
# below for broken collect2 doesn't work under 4.3+
6452
collect2name=`${CC} -print-prog-name=collect2`
6453
if test -f "$collect2name" &&
6454
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6456
# We have reworked collect2
6459
# We have old collect2
6460
_LT_TAGVAR(hardcode_direct, $1)=unsupported
6461
# It fails to find uninstalled libraries when the uninstalled
6462
# path is not listed in the libpath. Setting hardcode_minus_L
6463
# to unsupported forces relinking
6464
_LT_TAGVAR(hardcode_minus_L, $1)=yes
6465
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6466
_LT_TAGVAR(hardcode_libdir_separator, $1)=
6469
shared_flag='-shared'
6470
if test "$aix_use_runtimelinking" = yes; then
6471
shared_flag="$shared_flag "'${wl}-G'
6475
if test "$host_cpu" = ia64; then
6476
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6477
# chokes on -Wl,-G. The following line is correct:
6480
if test "$aix_use_runtimelinking" = yes; then
6481
shared_flag='${wl}-G'
6483
shared_flag='${wl}-bM:SRE'
6488
# It seems that -bexpall does not export symbols beginning with
6489
# underscore (_), so it is better to generate a list of symbols to
6491
_LT_TAGVAR(always_export_symbols, $1)=yes
6492
if test "$aix_use_runtimelinking" = yes; then
6493
# Warning - without using the other runtime loading flags (-brtl),
6494
# -berok will link without error, but may produce a broken library.
6495
_LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6496
# Determine the default libpath from the value encoded in an empty
6498
_LT_SYS_MODULE_PATH_AIX
6499
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6501
_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"
6503
if test "$host_cpu" = ia64; then
6504
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6505
_LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6506
_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"
6508
# Determine the default libpath from the value encoded in an
6510
_LT_SYS_MODULE_PATH_AIX
6511
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6512
# Warning - without using the other run time loading flags,
6513
# -berok will link without error, but may produce a broken library.
6514
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6515
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6516
# Exported symbols can be pulled into shared objects from archives
6517
_LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6518
_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6519
# This is similar to how AIX traditionally builds its shared
6521
_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'
6527
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6528
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6529
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6530
# support --undefined. This deserves some investigation. FIXME
6531
_LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6533
_LT_TAGVAR(ld_shlibs, $1)=no
6538
case $cc_basename in
6540
# FIXME: insert proper C++ library support
6541
_LT_TAGVAR(ld_shlibs, $1)=no
6546
cygwin* | mingw* | pw32*)
6547
# _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6548
# as there is no search path for DLLs.
6549
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6550
_LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6551
_LT_TAGVAR(always_export_symbols, $1)=no
6552
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6554
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6555
_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'
6556
# If the export-symbols file already is a .def file (1st line
6557
# is EXPORTS), use it as is; otherwise, prepend...
6558
_LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6559
cp $export_symbols $output_objdir/$soname.def;
6561
echo EXPORTS > $output_objdir/$soname.def;
6562
cat $export_symbols >> $output_objdir/$soname.def;
6564
$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'
6566
_LT_TAGVAR(ld_shlibs, $1)=no
6569
darwin* | rhapsody*)
6570
_LT_DARWIN_LINKER_FEATURES($1)
6574
case $cc_basename in
6576
# FIXME: insert proper C++ library support
6577
_LT_TAGVAR(ld_shlibs, $1)=no
6580
# Green Hills C++ Compiler
6581
# FIXME: insert proper C++ library support
6582
_LT_TAGVAR(ld_shlibs, $1)=no
6585
# FIXME: insert proper C++ library support
6586
_LT_TAGVAR(ld_shlibs, $1)=no
6592
# C++ shared libraries reported to be fairly broken before
6594
_LT_TAGVAR(ld_shlibs, $1)=no
6598
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6601
freebsd* | dragonfly*)
6602
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6604
_LT_TAGVAR(ld_shlibs, $1)=yes
6611
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6612
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6613
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6614
_LT_TAGVAR(hardcode_direct, $1)=yes
6615
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6616
# but as the default
6617
# location of the library.
6619
case $cc_basename in
6621
# FIXME: insert proper C++ library support
6622
_LT_TAGVAR(ld_shlibs, $1)=no
6625
_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'
6626
# Commands to make compiler produce verbose output that lists
6627
# what "hidden" libraries, object files and flags are used when
6628
# linking a shared library.
6630
# There doesn't appear to be a way to prevent this compiler from
6631
# explicitly linking system object files so we need to strip them
6632
# from the output so that they don't get included in the library
6634
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'
6637
if test "$GXX" = yes; then
6638
_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'
6640
# FIXME: insert proper C++ library support
6641
_LT_TAGVAR(ld_shlibs, $1)=no
6648
if test $with_gnu_ld = no; then
6649
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6650
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6656
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6662
_LT_TAGVAR(hardcode_direct, $1)=no
6663
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6666
_LT_TAGVAR(hardcode_direct, $1)=yes
6667
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6668
_LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6669
# but as the default
6670
# location of the library.
6674
case $cc_basename in
6676
# FIXME: insert proper C++ library support
6677
_LT_TAGVAR(ld_shlibs, $1)=no
6682
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6685
_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6688
_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'
6691
# Commands to make compiler produce verbose output that lists
6692
# what "hidden" libraries, object files and flags are used when
6693
# linking a shared library.
6695
# There doesn't appear to be a way to prevent this compiler from
6696
# explicitly linking system object files so we need to strip them
6697
# from the output so that they don't get included in the library
6699
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'
6702
if test "$GXX" = yes; then
6703
if test $with_gnu_ld = no; then
6706
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6709
_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'
6712
_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'
6717
# FIXME: insert proper C++ library support
6718
_LT_TAGVAR(ld_shlibs, $1)=no
6725
_LT_TAGVAR(hardcode_direct, $1)=no
6726
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6727
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6728
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6729
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6730
# Instead, shared libraries are loaded at an image base (0x10000000 by
6731
# default) and relocated if they conflict, which is a slow very memory
6732
# consuming and fragmenting process. To avoid this, we pick a random,
6733
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6734
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
6735
_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'
6736
_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'
6739
case $cc_basename in
6742
_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'
6744
# Archives containing C++ object files must be created using
6745
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
6746
# necessary to make sure instantiated templates are included
6748
_LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6751
if test "$GXX" = yes; then
6752
if test "$with_gnu_ld" = no; then
6753
_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'
6755
_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'
6758
_LT_TAGVAR(link_all_deplibs, $1)=yes
6761
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6762
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6763
_LT_TAGVAR(inherit_rpath, $1)=yes
6766
linux* | k*bsd*-gnu)
6767
case $cc_basename in
6769
# Kuck and Associates, Inc. (KAI) C++ Compiler
6771
# KCC will only create a shared library if the output file
6772
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6773
# to its proper name (with version) after linking.
6774
_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'
6775
_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'
6776
# Commands to make compiler produce verbose output that lists
6777
# what "hidden" libraries, object files and flags are used when
6778
# linking a shared library.
6780
# There doesn't appear to be a way to prevent this compiler from
6781
# explicitly linking system object files so we need to strip them
6782
# from the output so that they don't get included in the library
6784
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'
6786
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6787
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6789
# Archives containing C++ object files must be created using
6790
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
6791
_LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6796
# version 8.0 and above of icpc choke on multiply defined symbols
6797
# if we add $predep_objects and $postdep_objects, however 7.1 and
6798
# earlier do not add the objects themselves.
6799
case `$CC -V 2>&1` in
6801
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6802
_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'
6804
*) # Version 8.0 or newer
6807
ia64*) tmp_idyn=' -i_dynamic';;
6809
_LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6810
_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'
6813
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6814
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6815
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6816
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6819
# Portland Group C++ compiler
6821
*pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6822
_LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6824
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6825
compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6826
_LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6828
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6829
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6831
_LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6833
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6834
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6835
_LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6837
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6838
$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'
6840
*) # Version 6 will use weak symbols
6841
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6842
_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'
6846
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6847
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6848
_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'
6852
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6853
_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'
6855
runpath_var=LD_RUN_PATH
6856
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6857
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6859
# Commands to make compiler produce verbose output that lists
6860
# what "hidden" libraries, object files and flags are used when
6861
# linking a shared library.
6863
# There doesn't appear to be a way to prevent this compiler from
6864
# explicitly linking system object files so we need to strip them
6865
# from the output so that they don't get included in the library
6867
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'
6870
# IBM XL 8.0 on PPC, with GNU ld
6871
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6872
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6873
_LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6874
if test "x$supports_anon_versioning" = xyes; then
6875
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6876
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6877
echo "local: *; };" >> $output_objdir/$libname.ver~
6878
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6882
case `$CC -V 2>&1 | sed 5q` in
6885
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6886
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6887
_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'
6888
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6889
_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'
6890
_LT_TAGVAR(compiler_needs_object, $1)=yes
6892
# Not sure whether something based on
6893
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6895
output_verbose_link_cmd='echo'
6897
# Archives containing C++ object files must be created using
6898
# "CC -xar", where "CC" is the Sun C++ compiler. This is
6899
# necessary to make sure instantiated templates are included
6901
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6909
# FIXME: insert proper C++ library support
6910
_LT_TAGVAR(ld_shlibs, $1)=no
6914
# FIXME: insert proper C++ library support
6915
_LT_TAGVAR(ld_shlibs, $1)=no
6919
case $cc_basename in
6921
# FIXME: insert proper C++ library support
6922
_LT_TAGVAR(ld_shlibs, $1)=no
6925
# FIXME: insert proper C++ library support
6926
_LT_TAGVAR(ld_shlibs, $1)=no
6932
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6933
_LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6935
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6936
_LT_TAGVAR(hardcode_direct, $1)=yes
6937
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6939
# Workaround some broken pre-1.5 toolchains
6940
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6944
_LT_TAGVAR(ld_shlibs, $1)=yes
6948
# C++ shared libraries are fairly broken
6949
_LT_TAGVAR(ld_shlibs, $1)=no
6953
if test -f /usr/libexec/ld.so; then
6954
_LT_TAGVAR(hardcode_direct, $1)=yes
6955
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6956
_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6957
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6958
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6959
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6960
_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'
6961
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6962
_LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6964
output_verbose_link_cmd=echo
6966
_LT_TAGVAR(ld_shlibs, $1)=no
6970
osf3* | osf4* | osf5*)
6971
case $cc_basename in
6973
# Kuck and Associates, Inc. (KAI) C++ Compiler
6975
# KCC will only create a shared library if the output file
6976
# ends with ".so" (or ".sl" for HP-UX), so rename the library
6977
# to its proper name (with version) after linking.
6978
_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'
6980
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6981
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
6983
# Archives containing C++ object files must be created using
6984
# the KAI C++ compiler.
6986
osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6987
*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6991
# Rational C++ 2.4.1
6992
# FIXME: insert proper C++ library support
6993
_LT_TAGVAR(ld_shlibs, $1)=no
6998
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6999
_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'
7000
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7003
_LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7004
_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'
7005
_LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7006
echo "-hidden">> $lib.exp~
7007
$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~
7009
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7013
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7015
# Commands to make compiler produce verbose output that lists
7016
# what "hidden" libraries, object files and flags are used when
7017
# linking a shared library.
7019
# There doesn't appear to be a way to prevent this compiler from
7020
# explicitly linking system object files so we need to strip them
7021
# from the output so that they don't get included in the library
7023
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'
7026
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7027
_LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7030
_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'
7033
_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'
7037
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7038
_LT_TAGVAR(hardcode_libdir_separator, $1)=:
7040
# Commands to make compiler produce verbose output that lists
7041
# what "hidden" libraries, object files and flags are used when
7042
# linking a shared library.
7043
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7046
# FIXME: insert proper C++ library support
7047
_LT_TAGVAR(ld_shlibs, $1)=no
7054
# FIXME: insert proper C++ library support
7055
_LT_TAGVAR(ld_shlibs, $1)=no
7059
case $cc_basename in
7062
# FIXME: insert proper C++ library support
7063
_LT_TAGVAR(ld_shlibs, $1)=no
7067
# FIXME: insert proper C++ library support
7068
_LT_TAGVAR(ld_shlibs, $1)=no
7071
# FIXME: insert proper C++ library support
7072
_LT_TAGVAR(ld_shlibs, $1)=no
7078
case $cc_basename in
7080
# Sun C++ 4.2, 5.x and Centerline C++
7081
_LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7082
_LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7083
_LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7084
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7085
$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'
7087
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7088
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7090
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7092
# The compiler driver will combine and reorder linker options,
7093
# but understands `-z linker_flag'.
7094
# Supported since Solaris 2.6 (maybe 2.5.1?)
7095
_LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7098
_LT_TAGVAR(link_all_deplibs, $1)=yes
7100
output_verbose_link_cmd='echo'
7102
# Archives containing C++ object files must be created using
7103
# "CC -xar", where "CC" is the Sun C++ compiler. This is
7104
# necessary to make sure instantiated templates are included
7106
_LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7109
# Green Hills C++ Compiler
7110
_LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7112
# The C++ compiler must be used to create the archive.
7113
_LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7116
# GNU C++ compiler with Solaris linker
7117
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
7118
_LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
7119
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7120
_LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7121
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7122
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7124
# Commands to make compiler produce verbose output that lists
7125
# what "hidden" libraries, object files and flags are used when
7126
# linking a shared library.
7127
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7129
# g++ 2.7 appears to require `-G' NOT `-shared' on this
7131
_LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
7132
_LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7133
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7135
# Commands to make compiler produce verbose output that lists
7136
# what "hidden" libraries, object files and flags are used when
7137
# linking a shared library.
7138
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
7141
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
7143
solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7145
_LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
7153
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7154
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7155
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7156
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7157
runpath_var='LD_RUN_PATH'
7159
case $cc_basename in
7161
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7162
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7165
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7166
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7171
sysv5* | sco3.2v5* | sco5v6*)
7172
# Note: We can NOT use -z defs as we might desire, because we do not
7173
# link with -lc, and that would cause any symbols used from libc to
7174
# always be unresolved, which means just about no library would
7175
# ever link correctly. If we're not using GNU ld we use -z text
7176
# though, which does catch some bad symbols but isn't as heavy-handed
7178
_LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7179
_LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7180
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7181
_LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7182
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
7183
_LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7184
_LT_TAGVAR(link_all_deplibs, $1)=yes
7185
_LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7186
runpath_var='LD_RUN_PATH'
7188
case $cc_basename in
7190
_LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7191
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7194
_LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7195
_LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7201
case $cc_basename in
7203
# NonStop-UX NCC 3.20
7204
# FIXME: insert proper C++ library support
7205
_LT_TAGVAR(ld_shlibs, $1)=no
7208
# FIXME: insert proper C++ library support
7209
_LT_TAGVAR(ld_shlibs, $1)=no
7215
# FIXME: insert proper C++ library support
7216
_LT_TAGVAR(ld_shlibs, $1)=no
7220
# FIXME: insert proper C++ library support
7221
_LT_TAGVAR(ld_shlibs, $1)=no
7225
AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7226
test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7228
_LT_TAGVAR(GCC, $1)="$GXX"
7229
_LT_TAGVAR(LD, $1)="$LD"
7232
## There is no encapsulation within the following macros, do not change
7233
## the running order or otherwise move them around unless you know exactly
7234
## what you are doing...
7235
_LT_SYS_HIDDEN_LIBDEPS($1)
7236
_LT_COMPILER_PIC($1)
7237
_LT_COMPILER_C_O($1)
7238
_LT_COMPILER_FILE_LOCKS($1)
7239
_LT_LINKER_SHLIBS($1)
7240
_LT_SYS_DYNAMIC_LINKER($1)
7241
_LT_LINKER_HARDCODE_LIBPATH($1)
7244
fi # test -n "$compiler"
7250
with_gnu_ld=$lt_save_with_gnu_ld
7251
lt_cv_path_LDCXX=$lt_cv_path_LD
7252
lt_cv_path_LD=$lt_save_path_LD
7253
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7254
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7255
fi # test "$_lt_caught_CXX_error" != yes
7258
])# _LT_LANG_CXX_CONFIG
7261
# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
6561
7262
# ---------------------------------
6562
AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6566
AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6567
AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6568
AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6569
AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6570
AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6571
AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6572
AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6574
# This is just to silence aclocal about the macro not being used
6575
ifelse([AC_DISABLE_FAST_INSTALL])
6577
AC_DEFUN([LT_AC_PROG_GCJ],
6578
[AC_CHECK_TOOL(GCJ, gcj, no)
6579
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6583
AC_DEFUN([LT_AC_PROG_RC],
6584
[AC_CHECK_TOOL(RC, windres, no)
6588
# Cheap backport of AS_EXECUTABLE_P and required macros
6589
# from Autoconf 2.59; we should not use $as_executable_p directly.
6593
m4_ifndef([_AS_TEST_PREPARE],
6594
[m4_defun([_AS_TEST_PREPARE],
6595
[if test -x / >/dev/null 2>&1; then
6596
as_executable_p='test -x'
7263
# Figure out "hidden" library dependencies from verbose
7264
# compiler output when linking a shared library.
7265
# Parse the compiler output and extract the necessary
7266
# objects, libraries and library flags.
7267
m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7268
[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7269
# Dependencies to place before and after the object being linked:
7270
_LT_TAGVAR(predep_objects, $1)=
7271
_LT_TAGVAR(postdep_objects, $1)=
7272
_LT_TAGVAR(predeps, $1)=
7273
_LT_TAGVAR(postdeps, $1)=
7274
_LT_TAGVAR(compiler_lib_search_path, $1)=
7276
dnl we can't use the lt_simple_compile_test_code here,
7277
dnl because it contains code intended for an executable,
7278
dnl not a library. It's possible we should let each
7279
dnl tag define a new lt_????_link_test_code variable,
7280
dnl but it's only used here...
7281
m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7283
void foo (void) { a = 0; }
7285
], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7289
Foo (void) { a = 0; }
7294
], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7302
], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7310
], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7313
public void bar (void) {
7319
dnl Parse the compiler output and extract the necessary
7320
dnl objects, libraries and library flags.
7321
if AC_TRY_EVAL(ac_compile); then
7322
# Parse the compiler output and extract the necessary
7323
# objects, libraries and library flags.
7325
# Sentinel used to keep track of whether or not we are before
7326
# the conftest object file.
7327
pre_test_object_deps_done=no
7329
for p in `eval "$output_verbose_link_cmd"`; do
7333
# Some compilers place space between "-{L,R}" and the path.
7335
if test $p = "-L" ||
7336
test $p = "-R"; then
7343
if test "$pre_test_object_deps_done" = no; then
7346
# Internal compiler library paths should come after those
7347
# provided the user. The postdeps already come after the
7348
# user supplied libs so there is no need to process them.
7349
if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7350
_LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7352
_LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7355
# The "-l" case would never come before the object being
7356
# linked, so don't bother handling this case.
7359
if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7360
_LT_TAGVAR(postdeps, $1)="${prev}${p}"
7362
_LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7368
# This assumes that the test object file only shows up
7369
# once in the compiler output.
7370
if test "$p" = "conftest.$objext"; then
7371
pre_test_object_deps_done=yes
7375
if test "$pre_test_object_deps_done" = no; then
7376
if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7377
_LT_TAGVAR(predep_objects, $1)="$p"
7379
_LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7382
if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7383
_LT_TAGVAR(postdep_objects, $1)="$p"
7385
_LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7390
*) ;; # Ignore the rest.
6598
as_executable_p='test -f'
6600
])])# _AS_TEST_PREPARE
6604
# Check whether a file is executable.
6605
m4_ifndef([AS_EXECUTABLE_P],
6606
[m4_defun([AS_EXECUTABLE_P],
6607
[AS_REQUIRE([_AS_TEST_PREPARE])dnl
6608
$as_executable_p $1[]dnl
6609
])])# AS_EXECUTABLE_P
7398
echo "libtool.m4: error: problem compiling $1 test program"
7401
$RM -f confest.$objext
7403
# PORTME: override above test on systems where it is broken
7407
# Interix 3.5 installs completely hosed .la files for C++, so rather than
7408
# hack all around it, let's just trust "g++" to DTRT.
7409
_LT_TAGVAR(predep_objects,$1)=
7410
_LT_TAGVAR(postdep_objects,$1)=
7411
_LT_TAGVAR(postdeps,$1)=
7415
case `$CC -V 2>&1 | sed 5q` in
7419
# The more standards-conforming stlport4 library is
7420
# incompatible with the Cstd library. Avoid specifying
7421
# it if it's in CXXFLAGS. Ignore libCrun as
7422
# -library=stlport4 depends on it.
7423
case " $CXX $CXXFLAGS " in
7424
*" -library=stlport4 "*)
7425
solaris_use_stlport4=yes
7429
if test "$solaris_use_stlport4" != yes; then
7430
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7437
case $cc_basename in
7439
# The more standards-conforming stlport4 library is
7440
# incompatible with the Cstd library. Avoid specifying
7441
# it if it's in CXXFLAGS. Ignore libCrun as
7442
# -library=stlport4 depends on it.
7443
case " $CXX $CXXFLAGS " in
7444
*" -library=stlport4 "*)
7445
solaris_use_stlport4=yes
7449
# Adding this requires a known-good setup of shared libraries for
7450
# Sun compiler versions before 5.6, else PIC objects from an old
7451
# archive will be linked into the output, leading to subtle bugs.
7452
if test "$solaris_use_stlport4" != yes; then
7453
_LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7461
case " $_LT_TAGVAR(postdeps, $1) " in
7462
*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7464
_LT_TAGVAR(compiler_lib_search_dirs, $1)=
7465
if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7466
_LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7468
_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7469
[The directories searched by this compiler when creating a shared library])
7470
_LT_TAGDECL([], [predep_objects], [1],
7471
[Dependencies to place before and after the objects being linked to
7472
create a shared library])
7473
_LT_TAGDECL([], [postdep_objects], [1])
7474
_LT_TAGDECL([], [predeps], [1])
7475
_LT_TAGDECL([], [postdeps], [1])
7476
_LT_TAGDECL([], [compiler_lib_search_path], [1],
7477
[The library search path used internally by the compiler when linking
7479
])# _LT_SYS_HIDDEN_LIBDEPS
7484
# Since AC_PROG_F77 is broken, in that it returns the empty string
7485
# if there is no fortran compiler, we have our own version here.
7486
m4_defun([_LT_PROG_F77],
7488
pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7490
if test -z "$F77" || test "X$F77" = "Xno"; then
7493
popdef([AC_MSG_ERROR])
7496
dnl aclocal-1.4 backwards compatibility:
7497
dnl AC_DEFUN([_LT_PROG_F77], [])
7500
# _LT_LANG_F77_CONFIG([TAG])
7501
# --------------------------
7502
# Ensure that the configuration variables for a Fortran 77 compiler are
7503
# suitably defined. These variables are subsequently used by _LT_CONFIG
7504
# to write the compiler configuration to `libtool'.
7505
m4_defun([_LT_LANG_F77_CONFIG],
7506
[AC_REQUIRE([_LT_PROG_F77])dnl
7507
AC_LANG_PUSH(Fortran 77)
7509
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7510
_LT_TAGVAR(allow_undefined_flag, $1)=
7511
_LT_TAGVAR(always_export_symbols, $1)=no
7512
_LT_TAGVAR(archive_expsym_cmds, $1)=
7513
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7514
_LT_TAGVAR(hardcode_direct, $1)=no
7515
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7516
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7517
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7518
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7519
_LT_TAGVAR(hardcode_minus_L, $1)=no
7520
_LT_TAGVAR(hardcode_automatic, $1)=no
7521
_LT_TAGVAR(inherit_rpath, $1)=no
7522
_LT_TAGVAR(module_cmds, $1)=
7523
_LT_TAGVAR(module_expsym_cmds, $1)=
7524
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7525
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7526
_LT_TAGVAR(no_undefined_flag, $1)=
7527
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7528
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7530
# Source file extension for f77 test sources.
7533
# Object file extension for compiled f77 test sources.
7535
_LT_TAGVAR(objext, $1)=$objext
7537
# No sense in running all these tests if we already determined that
7538
# the F77 compiler isn't working. Some variables (like enable_shared)
7539
# are currently assumed to apply to all compilers on this platform,
7540
# and will be corrupted by setting them based on a non-working compiler.
7541
if test "$_lt_disable_F77" != yes; then
7542
# Code to be used in simple compile tests
7543
lt_simple_compile_test_code="\
7549
# Code to be used in simple link tests
7550
lt_simple_link_test_code="\
7555
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7558
# save warnings/boilerplate of simple test code
7559
_LT_COMPILER_BOILERPLATE
7560
_LT_LINKER_BOILERPLATE
7562
# Allow CC to be a program name with arguments.
7567
_LT_TAGVAR(compiler, $1)=$CC
7568
_LT_CC_BASENAME([$compiler])
7570
if test -n "$compiler"; then
7571
AC_MSG_CHECKING([if libtool supports shared libraries])
7572
AC_MSG_RESULT([$can_build_shared])
7574
AC_MSG_CHECKING([whether to build shared libraries])
7575
test "$can_build_shared" = "no" && enable_shared=no
7577
# On AIX, shared libraries and static libraries use the same namespace, and
7578
# are all built from PIC.
7581
test "$enable_shared" = yes && enable_static=no
7582
if test -n "$RANLIB"; then
7583
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7584
postinstall_cmds='$RANLIB $lib'
7588
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7589
test "$enable_shared" = yes && enable_static=no
7593
AC_MSG_RESULT([$enable_shared])
7595
AC_MSG_CHECKING([whether to build static libraries])
7596
# Make sure either enable_shared or enable_static is yes.
7597
test "$enable_shared" = yes || enable_static=yes
7598
AC_MSG_RESULT([$enable_static])
7600
_LT_TAGVAR(GCC, $1)="$G77"
7601
_LT_TAGVAR(LD, $1)="$LD"
7604
## There is no encapsulation within the following macros, do not change
7605
## the running order or otherwise move them around unless you know exactly
7606
## what you are doing...
7607
_LT_COMPILER_PIC($1)
7608
_LT_COMPILER_C_O($1)
7609
_LT_COMPILER_FILE_LOCKS($1)
7610
_LT_LINKER_SHLIBS($1)
7611
_LT_SYS_DYNAMIC_LINKER($1)
7612
_LT_LINKER_HARDCODE_LIBPATH($1)
7615
fi # test -n "$compiler"
7619
fi # test "$_lt_disable_F77" != yes
7622
])# _LT_LANG_F77_CONFIG
7627
# Since AC_PROG_FC is broken, in that it returns the empty string
7628
# if there is no fortran compiler, we have our own version here.
7629
m4_defun([_LT_PROG_FC],
7631
pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7633
if test -z "$FC" || test "X$FC" = "Xno"; then
7636
popdef([AC_MSG_ERROR])
7639
dnl aclocal-1.4 backwards compatibility:
7640
dnl AC_DEFUN([_LT_PROG_FC], [])
7643
# _LT_LANG_FC_CONFIG([TAG])
7644
# -------------------------
7645
# Ensure that the configuration variables for a Fortran compiler are
7646
# suitably defined. These variables are subsequently used by _LT_CONFIG
7647
# to write the compiler configuration to `libtool'.
7648
m4_defun([_LT_LANG_FC_CONFIG],
7649
[AC_REQUIRE([_LT_PROG_FC])dnl
7650
AC_LANG_PUSH(Fortran)
7652
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7653
_LT_TAGVAR(allow_undefined_flag, $1)=
7654
_LT_TAGVAR(always_export_symbols, $1)=no
7655
_LT_TAGVAR(archive_expsym_cmds, $1)=
7656
_LT_TAGVAR(export_dynamic_flag_spec, $1)=
7657
_LT_TAGVAR(hardcode_direct, $1)=no
7658
_LT_TAGVAR(hardcode_direct_absolute, $1)=no
7659
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7660
_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7661
_LT_TAGVAR(hardcode_libdir_separator, $1)=
7662
_LT_TAGVAR(hardcode_minus_L, $1)=no
7663
_LT_TAGVAR(hardcode_automatic, $1)=no
7664
_LT_TAGVAR(inherit_rpath, $1)=no
7665
_LT_TAGVAR(module_cmds, $1)=
7666
_LT_TAGVAR(module_expsym_cmds, $1)=
7667
_LT_TAGVAR(link_all_deplibs, $1)=unknown
7668
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7669
_LT_TAGVAR(no_undefined_flag, $1)=
7670
_LT_TAGVAR(whole_archive_flag_spec, $1)=
7671
_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7673
# Source file extension for fc test sources.
7674
ac_ext=${ac_fc_srcext-f}
7676
# Object file extension for compiled fc test sources.
7678
_LT_TAGVAR(objext, $1)=$objext
7680
# No sense in running all these tests if we already determined that
7681
# the FC compiler isn't working. Some variables (like enable_shared)
7682
# are currently assumed to apply to all compilers on this platform,
7683
# and will be corrupted by setting them based on a non-working compiler.
7684
if test "$_lt_disable_FC" != yes; then
7685
# Code to be used in simple compile tests
7686
lt_simple_compile_test_code="\
7692
# Code to be used in simple link tests
7693
lt_simple_link_test_code="\
7698
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7701
# save warnings/boilerplate of simple test code
7702
_LT_COMPILER_BOILERPLATE
7703
_LT_LINKER_BOILERPLATE
7705
# Allow CC to be a program name with arguments.
7710
GCC=$ac_cv_fc_compiler_gnu
7712
_LT_TAGVAR(compiler, $1)=$CC
7713
_LT_CC_BASENAME([$compiler])
7715
if test -n "$compiler"; then
7716
AC_MSG_CHECKING([if libtool supports shared libraries])
7717
AC_MSG_RESULT([$can_build_shared])
7719
AC_MSG_CHECKING([whether to build shared libraries])
7720
test "$can_build_shared" = "no" && enable_shared=no
7722
# On AIX, shared libraries and static libraries use the same namespace, and
7723
# are all built from PIC.
7726
test "$enable_shared" = yes && enable_static=no
7727
if test -n "$RANLIB"; then
7728
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7729
postinstall_cmds='$RANLIB $lib'
7733
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7734
test "$enable_shared" = yes && enable_static=no
7738
AC_MSG_RESULT([$enable_shared])
7740
AC_MSG_CHECKING([whether to build static libraries])
7741
# Make sure either enable_shared or enable_static is yes.
7742
test "$enable_shared" = yes || enable_static=yes
7743
AC_MSG_RESULT([$enable_static])
7745
_LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7746
_LT_TAGVAR(LD, $1)="$LD"
7749
## There is no encapsulation within the following macros, do not change
7750
## the running order or otherwise move them around unless you know exactly
7751
## what you are doing...
7752
_LT_SYS_HIDDEN_LIBDEPS($1)
7753
_LT_COMPILER_PIC($1)
7754
_LT_COMPILER_C_O($1)
7755
_LT_COMPILER_FILE_LOCKS($1)
7756
_LT_LINKER_SHLIBS($1)
7757
_LT_SYS_DYNAMIC_LINKER($1)
7758
_LT_LINKER_HARDCODE_LIBPATH($1)
7761
fi # test -n "$compiler"
7765
fi # test "$_lt_disable_FC" != yes
7768
])# _LT_LANG_FC_CONFIG
7771
# _LT_LANG_GCJ_CONFIG([TAG])
7772
# --------------------------
7773
# Ensure that the configuration variables for the GNU Java Compiler compiler
7774
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7775
# to write the compiler configuration to `libtool'.
7776
m4_defun([_LT_LANG_GCJ_CONFIG],
7777
[AC_REQUIRE([LT_PROG_GCJ])dnl
7780
# Source file extension for Java test sources.
7783
# Object file extension for compiled Java test sources.
7785
_LT_TAGVAR(objext, $1)=$objext
7787
# Code to be used in simple compile tests
7788
lt_simple_compile_test_code="class foo {}"
7790
# Code to be used in simple link tests
7791
lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7793
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7796
# save warnings/boilerplate of simple test code
7797
_LT_COMPILER_BOILERPLATE
7798
_LT_LINKER_BOILERPLATE
7800
# Allow CC to be a program name with arguments.
7806
_LT_TAGVAR(compiler, $1)=$CC
7807
_LT_TAGVAR(LD, $1)="$LD"
7808
_LT_CC_BASENAME([$compiler])
7810
# GCJ did not exist at the time GCC didn't implicitly link libc in.
7811
_LT_TAGVAR(archive_cmds_need_lc, $1)=no
7813
_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7815
if test -n "$compiler"; then
7816
_LT_COMPILER_NO_RTTI($1)
7817
_LT_COMPILER_PIC($1)
7818
_LT_COMPILER_C_O($1)
7819
_LT_COMPILER_FILE_LOCKS($1)
7820
_LT_LINKER_SHLIBS($1)
7821
_LT_LINKER_HARDCODE_LIBPATH($1)
7830
])# _LT_LANG_GCJ_CONFIG
7833
# _LT_LANG_RC_CONFIG([TAG])
7834
# -------------------------
7835
# Ensure that the configuration variables for the Windows resource compiler
7836
# are suitably defined. These variables are subsequently used by _LT_CONFIG
7837
# to write the compiler configuration to `libtool'.
7838
m4_defun([_LT_LANG_RC_CONFIG],
7839
[AC_REQUIRE([LT_PROG_RC])dnl
7842
# Source file extension for RC test sources.
7845
# Object file extension for compiled RC test sources.
7847
_LT_TAGVAR(objext, $1)=$objext
7849
# Code to be used in simple compile tests
7850
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7852
# Code to be used in simple link tests
7853
lt_simple_link_test_code="$lt_simple_compile_test_code"
7855
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
7858
# save warnings/boilerplate of simple test code
7859
_LT_COMPILER_BOILERPLATE
7860
_LT_LINKER_BOILERPLATE
7862
# Allow CC to be a program name with arguments.
7868
_LT_TAGVAR(compiler, $1)=$CC
7869
_LT_CC_BASENAME([$compiler])
7870
_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7872
if test -n "$compiler"; then
7880
])# _LT_LANG_RC_CONFIG
7885
AC_DEFUN([LT_PROG_GCJ],
7886
[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7887
[m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7888
[AC_CHECK_TOOL(GCJ, gcj,)
7889
test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7890
AC_SUBST(GCJFLAGS)])])[]dnl
7894
AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7895
dnl aclocal-1.4 backwards compatibility:
7896
dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7901
AC_DEFUN([LT_PROG_RC],
7902
[AC_CHECK_TOOL(RC, windres,)
7906
AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7907
dnl aclocal-1.4 backwards compatibility:
7908
dnl AC_DEFUN([LT_AC_PROG_RC], [])
7913
# If we don't have a new enough Autoconf to choose the best grep
7914
# available, choose the one first in the user's PATH.
7915
m4_defun([_LT_DECL_EGREP],
7916
[AC_REQUIRE([AC_PROG_EGREP])dnl
7917
AC_REQUIRE([AC_PROG_FGREP])dnl
7918
test -z "$GREP" && GREP=grep
7919
_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7920
_LT_DECL([], [EGREP], [1], [An ERE matcher])
7921
_LT_DECL([], [FGREP], [1], [A literal string matcher])
7922
dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7929
# Check for a fully-functional sed program, that truncates
7930
# as few characters as possible. Prefer GNU sed if found.
7931
m4_defun([_LT_DECL_SED],
7933
test -z "$SED" && SED=sed
7934
Xsed="$SED -e 1s/^X//"
7935
_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7936
_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7937
[Sed that helps us avoid accidentally triggering echo(1) options like -n])
7940
m4_ifndef([AC_PROG_SED], [
6611
7941
# NOTE: This macro has been submitted for inclusion into #
6612
7942
# GNU Autoconf as AC_PROG_SED. When it is available in #
6613
7943
# a released version of Autoconf we should remove this #
6614
7944
# macro and use it instead. #
6617
# Check for a fully-functional sed program, that truncates
6618
# as few characters as possible. Prefer GNU sed if found.
6619
AC_DEFUN([LT_AC_PROG_SED],
7946
m4_defun([AC_PROG_SED],
6620
7947
[AC_MSG_CHECKING([for a sed that does not truncate output])
6621
7948
AC_CACHE_VAL(lt_cv_path_SED,
6622
7949
[# Loop through the user's path and test for sed and gsed.
6669
7996
SED=$lt_cv_path_SED
6670
7997
AC_SUBST([SED])
6671
7998
AC_MSG_RESULT([$SED])
8003
AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8004
dnl aclocal-1.4 backwards compatibility:
8005
dnl AC_DEFUN([LT_AC_PROG_SED], [])
8008
# _LT_CHECK_SHELL_FEATURES
8009
# ------------------------
8010
# Find out whether the shell is Bourne or XSI compatible,
8011
# or has some other useful features.
8012
m4_defun([_LT_CHECK_SHELL_FEATURES],
8013
[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
8014
# Try some XSI features
8017
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8019
&& eval 'test $(( 1 + 1 )) -eq 2 \
8020
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8022
AC_MSG_RESULT([$xsi_shell])
8023
_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
8025
AC_MSG_CHECKING([whether the shell understands "+="])
8027
( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
8029
&& lt_shell_append=yes
8030
AC_MSG_RESULT([$lt_shell_append])
8031
_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
8033
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8038
_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8040
# test EBCDIC or ASCII
8041
case `echo X|tr X '\101'` in
8042
A) # ASCII based system
8043
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8044
lt_SP2NL='tr \040 \012'
8045
lt_NL2SP='tr \015\012 \040\040'
8047
*) # EBCDIC based system
8048
lt_SP2NL='tr \100 \n'
8049
lt_NL2SP='tr \r\n \100\100'
8052
_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8053
_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8054
])# _LT_CHECK_SHELL_FEATURES
8057
# _LT_PROG_XSI_SHELLFNS
8058
# ---------------------
8059
# Bourne and XSI compatible variants of some useful shell functions.
8060
m4_defun([_LT_PROG_XSI_SHELLFNS],
8063
cat << \_LT_EOF >> "$cfgfile"
8065
# func_dirname file append nondir_replacement
8066
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8067
# otherwise set result to NONDIR_REPLACEMENT.
8071
*/*) func_dirname_result="${1%/*}${2}" ;;
8072
* ) func_dirname_result="${3}" ;;
8076
# func_basename file
8079
func_basename_result="${1##*/}"
8082
# func_dirname_and_basename file append nondir_replacement
8083
# perform func_basename and func_dirname in a single function
8085
# dirname: Compute the dirname of FILE. If nonempty,
8086
# add APPEND to the result, otherwise set result
8087
# to NONDIR_REPLACEMENT.
8088
# value returned in "$func_dirname_result"
8089
# basename: Compute filename of FILE.
8090
# value retuned in "$func_basename_result"
8091
# Implementation must be kept synchronized with func_dirname
8092
# and func_basename. For efficiency, we do not delegate to
8093
# those functions but instead duplicate the functionality here.
8094
func_dirname_and_basename ()
8097
*/*) func_dirname_result="${1%/*}${2}" ;;
8098
* ) func_dirname_result="${3}" ;;
8100
func_basename_result="${1##*/}"
8103
# func_stripname prefix suffix name
8104
# strip PREFIX and SUFFIX off of NAME.
8105
# PREFIX and SUFFIX must not contain globbing or regex special
8106
# characters, hashes, percent signs, but SUFFIX may contain a leading
8107
# dot (in which case that matches only a dot).
8110
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
8111
# positional parameters, so assign one to ordinary parameter first.
8112
func_stripname_result=${3}
8113
func_stripname_result=${func_stripname_result#"${1}"}
8114
func_stripname_result=${func_stripname_result%"${2}"}
8120
func_opt_split_opt=${1%%=*}
8121
func_opt_split_arg=${1#*=}
8128
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
8129
*) func_lo2o_result=${1} ;;
8133
# func_xform libobj-or-source
8136
func_xform_result=${1%.*}.lo
8139
# func_arith arithmetic-term...
8142
func_arith_result=$(( $[*] ))
8146
# STRING may not start with a hyphen.
8149
func_len_result=${#1}
8154
*) # Bourne compatible functions.
8155
cat << \_LT_EOF >> "$cfgfile"
8157
# func_dirname file append nondir_replacement
8158
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
8159
# otherwise set result to NONDIR_REPLACEMENT.
8162
# Extract subdirectory from the argument.
8163
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
8164
if test "X$func_dirname_result" = "X${1}"; then
8165
func_dirname_result="${3}"
8167
func_dirname_result="$func_dirname_result${2}"
8171
# func_basename file
8174
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
8177
dnl func_dirname_and_basename
8178
dnl A portable version of this function is already defined in general.m4sh
8179
dnl so there is no need for it here.
8181
# func_stripname prefix suffix name
8182
# strip PREFIX and SUFFIX off of NAME.
8183
# PREFIX and SUFFIX must not contain globbing or regex special
8184
# characters, hashes, percent signs, but SUFFIX may contain a leading
8185
# dot (in which case that matches only a dot).
8186
# func_strip_suffix prefix name
8190
.*) func_stripname_result=`$ECHO "X${3}" \
8191
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
8192
*) func_stripname_result=`$ECHO "X${3}" \
8193
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
8198
my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
8199
my_sed_long_arg='1s/^-[[^=]]*=//'
8204
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
8205
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8211
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8214
# func_xform libobj-or-source
8217
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8220
# func_arith arithmetic-term...
8223
func_arith_result=`expr "$[@]"`
8227
# STRING may not start with a hyphen.
8230
func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8236
case $lt_shell_append in
8238
cat << \_LT_EOF >> "$cfgfile"
8240
# func_append var value
8241
# Append VALUE to the end of shell variable VAR.
8249
cat << \_LT_EOF >> "$cfgfile"
8251
# func_append var value
8252
# Append VALUE to the end of shell variable VAR.
8255
eval "$[1]=\$$[1]\$[2]"
8263
# Helper functions for option handling. -*- Autoconf -*-
8265
# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8266
# Written by Gary V. Vaughan, 2004
8268
# This file is free software; the Free Software Foundation gives
8269
# unlimited permission to copy and/or distribute it, with or without
8270
# modifications, as long as this notice is preserved.
8272
# serial 6 ltoptions.m4
8274
# This is to help aclocal find these macros, as it can't see m4_define.
8275
AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8278
# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8279
# ------------------------------------------
8280
m4_define([_LT_MANGLE_OPTION],
8281
[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8284
# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8285
# ---------------------------------------
8286
# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8287
# matching handler defined, dispatch to it. Other OPTION-NAMEs are
8289
m4_define([_LT_SET_OPTION],
8290
[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8291
m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8292
_LT_MANGLE_DEFUN([$1], [$2]),
8293
[m4_warning([Unknown $1 option `$2'])])[]dnl
8297
# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8298
# ------------------------------------------------------------
8299
# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8300
m4_define([_LT_IF_OPTION],
8301
[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8304
# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8305
# -------------------------------------------------------
8306
# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8308
m4_define([_LT_UNLESS_OPTIONS],
8309
[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8310
[m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8311
[m4_define([$0_found])])])[]dnl
8312
m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8317
# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8318
# ----------------------------------------
8319
# OPTION-LIST is a space-separated list of Libtool options associated
8320
# with MACRO-NAME. If any OPTION has a matching handler declared with
8321
# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8322
# the unknown option and exit.
8323
m4_defun([_LT_SET_OPTIONS],
8325
m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8326
[_LT_SET_OPTION([$1], _LT_Option)])
8328
m4_if([$1],[LT_INIT],[
8330
dnl Simply set some default values (i.e off) if boolean options were not
8332
_LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8334
_LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8337
dnl If no reference was made to various pairs of opposing options, then
8338
dnl we run the default mode handler for the pair. For example, if neither
8339
dnl `shared' nor `disable-shared' was passed, we enable building of shared
8340
dnl archives by default:
8341
_LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8342
_LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8343
_LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8344
_LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8345
[_LT_ENABLE_FAST_INSTALL])
8351
# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8352
# -----------------------------------------
8353
m4_define([_LT_MANGLE_DEFUN],
8354
[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8357
# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8358
# -----------------------------------------------
8359
m4_define([LT_OPTION_DEFINE],
8360
[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8361
])# LT_OPTION_DEFINE
8366
LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8369
AU_DEFUN([AC_LIBTOOL_DLOPEN],
8370
[_LT_SET_OPTION([LT_INIT], [dlopen])
8371
AC_DIAGNOSE([obsolete],
8372
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8373
put the `dlopen' option into LT_INIT's first parameter.])
8376
dnl aclocal-1.4 backwards compatibility:
8377
dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8382
# Declare package support for building win32 dll's.
8383
LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8384
[enable_win32_dll=yes
8387
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8388
AC_CHECK_TOOL(AS, as, false)
8389
AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8390
AC_CHECK_TOOL(OBJDUMP, objdump, false)
8394
test -z "$AS" && AS=as
8395
_LT_DECL([], [AS], [0], [Assembler program])dnl
8397
test -z "$DLLTOOL" && DLLTOOL=dlltool
8398
_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8400
test -z "$OBJDUMP" && OBJDUMP=objdump
8401
_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8404
AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8405
[AC_REQUIRE([AC_CANONICAL_HOST])dnl
8406
_LT_SET_OPTION([LT_INIT], [win32-dll])
8407
AC_DIAGNOSE([obsolete],
8408
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8409
put the `win32-dll' option into LT_INIT's first parameter.])
8412
dnl aclocal-1.4 backwards compatibility:
8413
dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8416
# _LT_ENABLE_SHARED([DEFAULT])
8417
# ----------------------------
8418
# implement the --enable-shared flag, and supports the `shared' and
8419
# `disable-shared' LT_INIT options.
8420
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8421
m4_define([_LT_ENABLE_SHARED],
8422
[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8423
AC_ARG_ENABLE([shared],
8424
[AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8425
[build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8426
[p=${PACKAGE-default}
8428
yes) enable_shared=yes ;;
8429
no) enable_shared=no ;;
8432
# Look at the argument we got. We use all the common list separators.
8433
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8434
for pkg in $enableval; do
8436
if test "X$pkg" = "X$p"; then
8443
[enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8445
_LT_DECL([build_libtool_libs], [enable_shared], [0],
8446
[Whether or not to build shared libraries])
8447
])# _LT_ENABLE_SHARED
8449
LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8450
LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8453
AC_DEFUN([AC_ENABLE_SHARED],
8454
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8457
AC_DEFUN([AC_DISABLE_SHARED],
8458
[_LT_SET_OPTION([LT_INIT], [disable-shared])
8461
AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8462
AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8464
dnl aclocal-1.4 backwards compatibility:
8465
dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8466
dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8470
# _LT_ENABLE_STATIC([DEFAULT])
8471
# ----------------------------
8472
# implement the --enable-static flag, and support the `static' and
8473
# `disable-static' LT_INIT options.
8474
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8475
m4_define([_LT_ENABLE_STATIC],
8476
[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8477
AC_ARG_ENABLE([static],
8478
[AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8479
[build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8480
[p=${PACKAGE-default}
8482
yes) enable_static=yes ;;
8483
no) enable_static=no ;;
8486
# Look at the argument we got. We use all the common list separators.
8487
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8488
for pkg in $enableval; do
8490
if test "X$pkg" = "X$p"; then
8497
[enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8499
_LT_DECL([build_old_libs], [enable_static], [0],
8500
[Whether or not to build static libraries])
8501
])# _LT_ENABLE_STATIC
8503
LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8504
LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8507
AC_DEFUN([AC_ENABLE_STATIC],
8508
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8511
AC_DEFUN([AC_DISABLE_STATIC],
8512
[_LT_SET_OPTION([LT_INIT], [disable-static])
8515
AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8516
AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8518
dnl aclocal-1.4 backwards compatibility:
8519
dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8520
dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8524
# _LT_ENABLE_FAST_INSTALL([DEFAULT])
8525
# ----------------------------------
8526
# implement the --enable-fast-install flag, and support the `fast-install'
8527
# and `disable-fast-install' LT_INIT options.
8528
# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8529
m4_define([_LT_ENABLE_FAST_INSTALL],
8530
[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8531
AC_ARG_ENABLE([fast-install],
8532
[AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8533
[optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8534
[p=${PACKAGE-default}
8536
yes) enable_fast_install=yes ;;
8537
no) enable_fast_install=no ;;
8539
enable_fast_install=no
8540
# Look at the argument we got. We use all the common list separators.
8541
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542
for pkg in $enableval; do
8544
if test "X$pkg" = "X$p"; then
8545
enable_fast_install=yes
8551
[enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8553
_LT_DECL([fast_install], [enable_fast_install], [0],
8554
[Whether or not to optimize for fast installation])dnl
8555
])# _LT_ENABLE_FAST_INSTALL
8557
LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8558
LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8561
AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8562
[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8563
AC_DIAGNOSE([obsolete],
8564
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8565
the `fast-install' option into LT_INIT's first parameter.])
8568
AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8569
[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8570
AC_DIAGNOSE([obsolete],
8571
[$0: Remove this warning and the call to _LT_SET_OPTION when you put
8572
the `disable-fast-install' option into LT_INIT's first parameter.])
8575
dnl aclocal-1.4 backwards compatibility:
8576
dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8577
dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8580
# _LT_WITH_PIC([MODE])
8581
# --------------------
8582
# implement the --with-pic flag, and support the `pic-only' and `no-pic'
8584
# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8585
m4_define([_LT_WITH_PIC],
8587
[AS_HELP_STRING([--with-pic],
8588
[try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8589
[pic_mode="$withval"],
8592
test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8594
_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8597
LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8598
LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8601
AU_DEFUN([AC_LIBTOOL_PICMODE],
8602
[_LT_SET_OPTION([LT_INIT], [pic-only])
8603
AC_DIAGNOSE([obsolete],
8604
[$0: Remove this warning and the call to _LT_SET_OPTION when you
8605
put the `pic-only' option into LT_INIT's first parameter.])
8608
dnl aclocal-1.4 backwards compatibility:
8609
dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8612
m4_define([_LTDL_MODE], [])
8613
LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8614
[m4_define([_LTDL_MODE], [nonrecursive])])
8615
LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8616
[m4_define([_LTDL_MODE], [recursive])])
8617
LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8618
[m4_define([_LTDL_MODE], [subproject])])
8620
m4_define([_LTDL_TYPE], [])
8621
LT_OPTION_DEFINE([LTDL_INIT], [installable],
8622
[m4_define([_LTDL_TYPE], [installable])])
8623
LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8624
[m4_define([_LTDL_TYPE], [convenience])])
8626
# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8628
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8629
# Written by Gary V. Vaughan, 2004
8631
# This file is free software; the Free Software Foundation gives
8632
# unlimited permission to copy and/or distribute it, with or without
8633
# modifications, as long as this notice is preserved.
8635
# serial 5 ltsugar.m4
8637
# This is to help aclocal find these macros, as it can't see m4_define.
8638
AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8641
# lt_join(SEP, ARG1, [ARG2...])
8642
# -----------------------------
8643
# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8644
# associated separator.
8645
# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8646
# versions in m4sugar had bugs.
8647
m4_define([lt_join],
8648
[m4_if([$#], [1], [],
8650
[m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8651
m4_define([_lt_join],
8652
[m4_if([$#$2], [2], [],
8653
[m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8659
# Manipulate m4 lists.
8660
# These macros are necessary as long as will still need to support
8661
# Autoconf-2.59 which quotes differently.
8662
m4_define([lt_car], [[$1]])
8664
[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8666
[m4_dquote(m4_shift($@))])])
8667
m4_define([lt_unquote], $1)
8670
# lt_append(MACRO-NAME, STRING, [SEPARATOR])
8671
# ------------------------------------------
8672
# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8673
# Note that neither SEPARATOR nor STRING are expanded; they are appended
8674
# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8675
# No SEPARATOR is output if MACRO-NAME was previously undefined (different
8676
# than defined and empty).
8678
# This macro is needed until we can rely on Autoconf 2.62, since earlier
8679
# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8680
m4_define([lt_append],
8682
m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8686
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8687
# ----------------------------------------------------------
8688
# Produce a SEP delimited list of all paired combinations of elements of
8689
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8690
# has the form PREFIXmINFIXSUFFIXn.
8691
m4_define([lt_combine],
8692
[m4_if([$2], [], [],
8693
[m4_if([$4], [], [],
8694
[lt_join(m4_quote(m4_default([$1], [[, ]])),
8695
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_prefix, [$2],
8696
[m4_foreach(_Lt_suffix, lt_car([m4_shiftn(3, $@)]),
8697
[_Lt_prefix[]$3[]_Lt_suffix ])])))))])])dnl
8701
# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8702
# -----------------------------------------------------------------------
8703
# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8704
# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8705
m4_define([lt_if_append_uniq],
8707
[m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8708
[lt_append([$1], [$2], [$3])$4],
8710
[lt_append([$1], [$2], [$3])$4])])
8713
# lt_dict_add(DICT, KEY, VALUE)
8714
# -----------------------------
8715
m4_define([lt_dict_add],
8716
[m4_define([$1($2)], [$3])])
8719
# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8720
# --------------------------------------------
8721
m4_define([lt_dict_add_subkey],
8722
[m4_define([$1($2:$3)], [$4])])
8725
# lt_dict_fetch(DICT, KEY, [SUBKEY])
8726
# ----------------------------------
8727
m4_define([lt_dict_fetch],
8729
m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8730
m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8733
# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8734
# -----------------------------------------------------------------
8735
m4_define([lt_if_dict_fetch],
8736
[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8741
# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8742
# --------------------------------------------------------------
8743
m4_define([lt_dict_filter],
8744
[m4_if([$5], [], [],
8745
[lt_join(m4_quote(m4_default([$4], [[, ]])),
8746
lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8747
[lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8750
# ltversion.m4 -- version numbers -*- Autoconf -*-
8752
# Copyright (C) 2004 Free Software Foundation, Inc.
8753
# Written by Scott James Remnant, 2004
8755
# This file is free software; the Free Software Foundation gives
8756
# unlimited permission to copy and/or distribute it, with or without
8757
# modifications, as long as this notice is preserved.
8759
# Generated from ltversion.in.
8761
# serial 2976 ltversion.m4
8762
# This file is part of GNU Libtool
8764
m4_define([LT_PACKAGE_VERSION], [2.2.4])
8765
m4_define([LT_PACKAGE_REVISION], [1.2976])
8767
AC_DEFUN([LTVERSION_VERSION],
8768
[macro_version='2.2.4'
8769
macro_revision='1.2976'
8770
_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8771
_LT_DECL(, macro_revision, 0)
8774
# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8776
# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8777
# Written by Scott James Remnant, 2004.
8779
# This file is free software; the Free Software Foundation gives
8780
# unlimited permission to copy and/or distribute it, with or without
8781
# modifications, as long as this notice is preserved.
8783
# serial 4 lt~obsolete.m4
8785
# These exist entirely to fool aclocal when bootstrapping libtool.
8787
# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8788
# which have later been changed to m4_define as they aren't part of the
8789
# exported API, or moved to Autoconf or Automake where they belong.
8791
# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8792
# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8793
# using a macro with the same name in our local m4/libtool.m4 it'll
8794
# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8795
# and doesn't know about Autoconf macros at all.)
8797
# So we provide this file, which has a silly filename so it's always
8798
# included after everything else. This provides aclocal with the
8799
# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8800
# because those macros already exist, or will be overwritten later.
8801
# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8803
# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8804
# Yes, that means every name once taken will need to remain here until
8805
# we give up compatibility with versions before 1.7, at which point
8806
# we need to keep only those names which we still refer to.
8808
# This is to help aclocal find these macros, as it can't see m4_define.
8809
AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8811
m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8812
m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8813
m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8814
m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8815
m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8816
m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8817
m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8818
m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8819
m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8820
m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8821
m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8822
m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8823
m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8824
m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8825
m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8826
m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8827
m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8828
m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8829
m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8830
m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8831
m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8832
m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8833
m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8834
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8835
m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8836
m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8837
m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8838
m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8839
m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8840
m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8841
m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8842
m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8843
m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8844
m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8845
m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8846
m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8847
m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8848
m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8849
m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8850
m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8851
m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8852
m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8853
m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8854
m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8855
m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8856
m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8857
m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8858
m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8859
m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8860
m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8861
m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8862
m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8863
m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8864
m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8865
m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
6674
8867
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
7921
10112
AC_SUBST([am__untar])
7922
10113
]) # _AM_PROG_TAR
7924
dnl AM_GCONF_SOURCE_2
7925
dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas
7926
dnl (i.e. pass to gconftool-2
7927
dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where
7928
dnl you should install foo.schemas files
7931
AC_DEFUN([AM_GCONF_SOURCE_2],
7933
if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
7934
GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source`
7936
GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
7939
AC_ARG_WITH([gconf-source],
7940
AC_HELP_STRING([--with-gconf-source=sourceaddress],
7941
[Config database for installing schema files.]),
7942
[GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
7944
AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
7945
AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
7947
if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
7948
GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
7951
AC_ARG_WITH([gconf-schema-file-dir],
7952
AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
7953
[Directory for installing schema files.]),
7954
[GCONF_SCHEMA_FILE_DIR="$withval"],)
7956
AC_SUBST(GCONF_SCHEMA_FILE_DIR)
7957
AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
7959
AC_ARG_ENABLE(schemas-install,
7960
[ --disable-schemas-install Disable the schemas installation],
7961
[case ${enableval} in
7963
*) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;;
7965
AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
7968
# Copyright (C) 1995-2002 Free Software Foundation, Inc.
7969
# Copyright (C) 2001-2003,2004 Red Hat, Inc.
7971
# This file is free software, distributed under the terms of the GNU
7972
# General Public License. As a special exception to the GNU General
7973
# Public License, this file may be distributed as part of a program
7974
# that contains a configuration script generated by Autoconf, under
7975
# the same distribution terms as the rest of that program.
7977
# This file can be copied and used freely without restrictions. It can
7978
# be used in projects which are not available under the GNU Public License
7979
# but which still want to provide support for the GNU gettext functionality.
7981
# Macro to add for using GNU gettext.
7982
# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
7984
# Modified to never use included libintl.
7985
# Owen Taylor <otaylor@redhat.com>, 12/15/1998
7987
# Major rework to remove unused code
7988
# Owen Taylor <otaylor@redhat.com>, 12/11/2002
7990
# Added better handling of ALL_LINGUAS from GNU gettext version
7991
# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
7993
# Modified to require ngettext
7994
# Matthias Clasen <mclasen@redhat.com> 08/06/2004
7996
# We need this here as well, since someone might use autoconf-2.5x
7997
# to configure GLib then an older version to configure a package
7998
# using AM_GLIB_GNU_GETTEXT
8002
dnl We go to great lengths to make sure that aclocal won't
8003
dnl try to pull in the installed version of these macros
8004
dnl when running aclocal in the glib directory.
8006
m4_copy([AC_DEFUN],[glib_DEFUN])
8007
m4_copy([AC_REQUIRE],[glib_REQUIRE])
8009
dnl At the end, if we're not within glib, we'll define the public
8010
dnl definitions in terms of our private definitions.
8014
#--------------------
8015
glib_DEFUN([GLIB_LC_MESSAGES],
8016
[AC_CHECK_HEADERS([locale.h])
8017
if test $ac_cv_header_locale_h = yes; then
8018
AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
8019
[AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
8020
am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
8021
if test $am_cv_val_LC_MESSAGES = yes; then
8022
AC_DEFINE(HAVE_LC_MESSAGES, 1,
8023
[Define if your <locale.h> file defines LC_MESSAGES.])
8027
# GLIB_PATH_PROG_WITH_TEST
8028
#----------------------------
8029
dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
8030
dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
8031
glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
8032
[# Extract the first word of "$2", so it can be a program name with args.
8033
set dummy $2; ac_word=[$]2
8034
AC_MSG_CHECKING([for $ac_word])
8035
AC_CACHE_VAL(ac_cv_path_$1,
8038
ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
8041
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
8042
for ac_dir in ifelse([$5], , $PATH, [$5]); do
8043
test -z "$ac_dir" && ac_dir=.
8044
if test -f $ac_dir/$ac_word; then
8046
ac_cv_path_$1="$ac_dir/$ac_word"
8052
dnl If no 4th arg is given, leave the cache variable unset,
8053
dnl so AC_PATH_PROGS will keep looking.
8054
ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
8059
if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
8060
AC_MSG_RESULT([$]$1)
8069
glib_DEFUN([GLIB_WITH_NLS],
8070
dnl NLS is obligatory
8074
gt_cv_have_gettext=no
8080
AC_CHECK_HEADER(libintl.h,
8081
[gt_cv_func_dgettext_libintl="no"
8082
libintl_extra_libs=""
8085
# First check in libc
8087
AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
8089
#include <libintl.h>
8091
[return !ngettext ("","", 1)],
8092
gt_cv_func_ngettext_libc=yes,
8093
gt_cv_func_ngettext_libc=no)
8096
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8097
AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
8099
#include <libintl.h>
8101
[return !dgettext ("","")],
8102
gt_cv_func_dgettext_libc=yes,
8103
gt_cv_func_dgettext_libc=no)
8107
if test "$gt_cv_func_ngettext_libc" = "yes" ; then
8108
AC_CHECK_FUNCS(bind_textdomain_codeset)
8112
# If we don't have everything we want, check in libintl
8114
if test "$gt_cv_func_dgettext_libc" != "yes" \
8115
|| test "$gt_cv_func_ngettext_libc" != "yes" \
8116
|| test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
8118
AC_CHECK_LIB(intl, bindtextdomain,
8119
[AC_CHECK_LIB(intl, ngettext,
8120
[AC_CHECK_LIB(intl, dgettext,
8121
gt_cv_func_dgettext_libintl=yes)])])
8123
if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
8124
AC_MSG_CHECKING([if -liconv is needed to use gettext])
8126
AC_CHECK_LIB(intl, ngettext,
8127
[AC_CHECK_LIB(intl, dcgettext,
8128
[gt_cv_func_dgettext_libintl=yes
8129
libintl_extra_libs=-liconv],
8135
# If we found libintl, then check in it for bind_textdomain_codeset();
8136
# we'll prefer libc if neither have bind_textdomain_codeset(),
8137
# and both have dgettext and ngettext
8139
if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
8140
glib_save_LIBS="$LIBS"
8141
LIBS="$LIBS -lintl $libintl_extra_libs"
8142
unset ac_cv_func_bind_textdomain_codeset
8143
AC_CHECK_FUNCS(bind_textdomain_codeset)
8144
LIBS="$glib_save_LIBS"
8146
if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
8147
gt_cv_func_dgettext_libc=no
8149
if test "$gt_cv_func_dgettext_libc" = "yes" \
8150
&& test "$gt_cv_func_ngettext_libc" = "yes"; then
8151
gt_cv_func_dgettext_libintl=no
8157
if test "$gt_cv_func_dgettext_libc" = "yes" \
8158
|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
8159
gt_cv_have_gettext=yes
8162
if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8163
INTLLIBS="-lintl $libintl_extra_libs"
8166
if test "$gt_cv_have_gettext" = "yes"; then
8167
AC_DEFINE(HAVE_GETTEXT,1,
8168
[Define if the GNU gettext() function is already present or preinstalled.])
8169
GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
8170
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
8171
if test "$MSGFMT" != "no"; then
8172
glib_save_LIBS="$LIBS"
8173
LIBS="$LIBS $INTLLIBS"
8174
AC_CHECK_FUNCS(dcgettext)
8176
AC_MSG_CHECKING([if msgfmt accepts -c])
8177
GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
8180
"Content-Type: text/plain; charset=UTF-8\n"
8181
"Project-Id-Version: test 1.0\n"
8182
"PO-Revision-Date: 2007-02-15 12:01+0100\n"
8183
"Last-Translator: test <foo@bar.xx>\n"
8184
"Language-Team: C <LL@li.org>\n"
8185
"MIME-Version: 1.0\n"
8186
"Content-Transfer-Encoding: 8bit\n"
8187
], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
8188
AC_SUBST(MSGFMT_OPTS)
8189
AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
8190
GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
8191
[test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
8192
AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
8193
return _nl_msg_cat_cntr],
8198
dnl On Solaris, if bind_textdomain_codeset is in libc,
8199
dnl GNU format message catalog is always supported,
8200
dnl since both are added to the libc all together.
8201
dnl Hence, we'd like to go with DATADIRNAME=share and
8202
dnl and CATOBJEXT=.gmo in this case.
8203
AC_CHECK_FUNC(bind_textdomain_codeset,
8214
LIBS="$glib_save_LIBS"
8217
gt_cv_have_gettext=no
8222
if test "$gt_cv_have_gettext" = "yes" ; then
8223
AC_DEFINE(ENABLE_NLS, 1,
8224
[always defined to indicate that i18n is enabled])
8227
dnl Test whether we really found GNU xgettext.
8228
if test "$XGETTEXT" != ":"; then
8229
dnl If it is not GNU xgettext we define it as : so that the
8230
dnl Makefiles still can work.
8231
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8235
[found xgettext program is not GNU xgettext; ignore it])
8240
# We need to process the po/ directory.
8244
[case "$CONFIG_FILES" in *po/Makefile.in*)
8245
sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
8248
dnl These rules are solely for the distribution goal. While doing this
8249
dnl we only have to keep exactly one list of the available catalogs
8250
dnl in configure.in.
8251
for lang in $ALL_LINGUAS; do
8252
GMOFILES="$GMOFILES $lang.gmo"
8253
POFILES="$POFILES $lang.po"
8256
dnl Make all variables we use known to autoconf.
8259
AC_SUBST(DATADIRNAME)
8261
AC_SUBST(INSTOBJEXT)
8263
AC_SUBST(PO_IN_DATADIR_TRUE)
8264
AC_SUBST(PO_IN_DATADIR_FALSE)
8269
# AM_GLIB_GNU_GETTEXT
8270
# -------------------
8271
# Do checks necessary for use of gettext. If a suitable implementation
8272
# of gettext is found in either in libintl or in the C library,
8273
# it will set INTLLIBS to the libraries needed for use of gettext
8274
# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
8275
# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
8276
# on various variables needed by the Makefile.in.in installed by
8279
glib_DEFUN([GLIB_GNU_GETTEXT],
8280
[AC_REQUIRE([AC_PROG_CC])dnl
8281
AC_REQUIRE([AC_HEADER_STDC])dnl
8286
if test "$gt_cv_have_gettext" = "yes"; then
8287
if test "x$ALL_LINGUAS" = "x"; then
8290
AC_MSG_CHECKING(for catalogs to be installed)
8292
for presentlang in $ALL_LINGUAS; do
8294
if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
8295
desiredlanguages="$LINGUAS"
8297
desiredlanguages="$ALL_LINGUAS"
8299
for desiredlang in $desiredlanguages; do
8300
# Use the presentlang catalog if desiredlang is
8301
# a. equal to presentlang, or
8302
# b. a variant of presentlang (because in this case,
8303
# presentlang can be used as a fallback for messages
8304
# which are not translated in the desiredlang catalog).
8305
case "$desiredlang" in
8306
"$presentlang"*) useit=yes;;
8309
if test $useit = yes; then
8310
NEW_LINGUAS="$NEW_LINGUAS $presentlang"
8313
LINGUAS=$NEW_LINGUAS
8314
AC_MSG_RESULT($LINGUAS)
8317
dnl Construct list of names of catalog files to be constructed.
8318
if test -n "$LINGUAS"; then
8319
for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
8323
dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
8324
dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
8325
dnl Try to locate is.
8327
if test -n "$ac_aux_dir"; then
8328
MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8330
if test -z "$MKINSTALLDIRS"; then
8331
MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8333
AC_SUBST(MKINSTALLDIRS)
8335
dnl Generate list of files to be processed by xgettext which will
8336
dnl be included in po/Makefile.
8337
test -d po || mkdir po
8338
if test "x$srcdir" != "x."; then
8339
if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8340
posrcprefix="$srcdir/"
8342
posrcprefix="../$srcdir/"
8348
sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8349
< $srcdir/po/POTFILES.in > po/POTFILES
8352
# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
8353
# -------------------------------
8354
# Define VARIABLE to the location where catalog files will
8355
# be installed by po/Makefile.
8356
glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
8357
[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
8358
glib_save_prefix="$prefix"
8359
glib_save_exec_prefix="$exec_prefix"
8360
glib_save_datarootdir="$datarootdir"
8361
test "x$prefix" = xNONE && prefix=$ac_default_prefix
8362
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
8363
datarootdir=`eval echo "${datarootdir}"`
8364
if test "x$CATOBJEXT" = "x.mo" ; then
8365
localedir=`eval echo "${libdir}/locale"`
8367
localedir=`eval echo "${datadir}/locale"`
8369
prefix="$glib_save_prefix"
8370
exec_prefix="$glib_save_exec_prefix"
8371
datarootdir="$glib_save_datarootdir"
8372
AC_DEFINE_UNQUOTED($1, "$localedir",
8373
[Define the location where the catalogs will be installed])
8377
dnl Now the definitions that aclocal will find
8379
ifdef(glib_configure_in,[],[
8380
AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
8381
AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
8384
# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
8386
# Create a temporary file with TEST-FILE as its contents and pass the
8387
# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
8388
# 0 and perform ACTION-IF-FAIL for any other exit status.
8389
AC_DEFUN([GLIB_RUN_PROG],
8390
[cat >conftest.foo <<_ACEOF
8393
if AC_RUN_LOG([$1 conftest.foo]); then
8394
m4_ifval([$3], [$3], [:])
8395
m4_ifvaln([$4], [else $4])dnl
8396
echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
8397
sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
8404
dnl GNOME_COMMON_INIT
8406
AC_DEFUN([GNOME_COMMON_INIT],
8408
dnl this macro should come after AC_CONFIG_MACRO_DIR
8409
AC_BEFORE([AC_CONFIG_MACRO_DIR], [$0])
8411
dnl ensure that when the Automake generated makefile calls aclocal,
8412
dnl it honours the $ACLOCAL_FLAGS environment variable
8413
ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}"
8414
if test -n "$ac_macro_dir"; then
8415
ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS"
8418
AC_SUBST([ACLOCAL_AMFLAGS])
8421
AC_DEFUN([GNOME_DEBUG_CHECK],
8423
AC_ARG_ENABLE([debug],
8424
AC_HELP_STRING([--enable-debug],
8425
[turn on debugging]),,
8428
if test x$enable_debug = xyes ; then
8429
AC_DEFINE(GNOME_ENABLE_DEBUG, 1,
8430
[Enable additional debugging at the expense of performance and size])
8434
dnl GNOME_MAINTAINER_MODE_DEFINES ()
8435
dnl define DISABLE_DEPRECATED
8437
AC_DEFUN([GNOME_MAINTAINER_MODE_DEFINES],
8439
AC_REQUIRE([AM_MAINTAINER_MODE])
8441
if test $USE_MAINTAINER_MODE = yes; then
8442
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"
8444
DISABLE_DEPRECATED=""
8446
AC_SUBST(DISABLE_DEPRECATED)
8449
dnl GNOME_COMPILE_WARNINGS
8450
dnl Turn on many useful compiler warnings
8451
dnl For now, only works on GCC
8452
AC_DEFUN([GNOME_COMPILE_WARNINGS],[
8453
dnl ******************************
8454
dnl More compiler warnings
8455
dnl ******************************
8457
AC_ARG_ENABLE(compile-warnings,
8458
AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@],
8459
[Turn on compiler warnings]),,
8460
[enable_compile_warnings="m4_default([$1],[yes])"])
8463
if test "x$GCC" != xyes; then
8464
enable_compile_warnings=no
8468
realsave_CFLAGS="$CFLAGS"
8470
case "$enable_compile_warnings" in
8475
warning_flags="-Wall"
8478
warning_flags="-Wall -Wmissing-prototypes"
8481
warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8482
CFLAGS="$warning_flags $CFLAGS"
8483
for option in -Wno-sign-compare; do
8484
SAVE_CFLAGS="$CFLAGS"
8485
CFLAGS="$CFLAGS $option"
8486
AC_MSG_CHECKING([whether gcc understands $option])
8487
AC_TRY_COMPILE([], [],
8490
CFLAGS="$SAVE_CFLAGS"
8491
AC_MSG_RESULT($has_option)
8492
if test $has_option = yes; then
8493
warning_flags="$warning_flags $option"
8499
if test "$enable_compile_warnings" = "error" ; then
8500
warning_flags="$warning_flags -Werror"
8504
AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings)
8507
CFLAGS="$realsave_CFLAGS"
8508
AC_MSG_CHECKING(what warning flags to pass to the C compiler)
8509
AC_MSG_RESULT($warning_flags)
8511
AC_ARG_ENABLE(iso-c,
8512
AC_HELP_STRING([--enable-iso-c],
8513
[Try to warn if code is not ISO C ]),,
8516
AC_MSG_CHECKING(what language compliance flags to pass to the C compiler)
8518
if test "x$enable_iso_c" != "xno"; then
8519
if test "x$GCC" = "xyes"; then
8521
*[\ \ ]-ansi[\ \ ]*) ;;
8522
*) complCFLAGS="$complCFLAGS -ansi" ;;
8525
*[\ \ ]-pedantic[\ \ ]*) ;;
8526
*) complCFLAGS="$complCFLAGS -pedantic" ;;
8530
AC_MSG_RESULT($complCFLAGS)
8532
WARN_CFLAGS="$warning_flags $complCFLAGS"
8533
AC_SUBST(WARN_CFLAGS)
8536
dnl For C++, do basically the same thing.
8538
AC_DEFUN([GNOME_CXX_WARNINGS],[
8539
AC_ARG_ENABLE(cxx-warnings,
8540
AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@]
8541
[Turn on compiler warnings.]),,
8542
[enable_cxx_warnings="m4_default([$1],[minimum])"])
8544
AC_MSG_CHECKING(what warning flags to pass to the C++ compiler)
8546
if test "x$GXX" != xyes; then
8547
enable_cxx_warnings=no
8549
if test "x$enable_cxx_warnings" != "xno"; then
8550
if test "x$GXX" = "xyes"; then
8551
case " $CXXFLAGS " in
8552
*[\ \ ]-Wall[\ \ ]*) ;;
8553
*) warnCXXFLAGS="-Wall -Wno-unused" ;;
8556
## -W is not all that useful. And it cannot be controlled
8557
## with individual -Wno-xxx flags, unlike -Wall
8558
if test "x$enable_cxx_warnings" = "xyes"; then
8559
warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual"
8563
AC_MSG_RESULT($warnCXXFLAGS)
8565
AC_ARG_ENABLE(iso-cxx,
8566
AC_HELP_STRING([--enable-iso-cxx],
8567
[Try to warn if code is not ISO C++ ]),,
8568
[enable_iso_cxx=no])
8570
AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler)
8572
if test "x$enable_iso_cxx" != "xno"; then
8573
if test "x$GXX" = "xyes"; then
8574
case " $CXXFLAGS " in
8575
*[\ \ ]-ansi[\ \ ]*) ;;
8576
*) complCXXFLAGS="$complCXXFLAGS -ansi" ;;
8579
case " $CXXFLAGS " in
8580
*[\ \ ]-pedantic[\ \ ]*) ;;
8581
*) complCXXFLAGS="$complCXXFLAGS -pedantic" ;;
8585
AC_MSG_RESULT($complCXXFLAGS)
8587
WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS"
8588
AC_SUBST(WARN_CXXFLAGS)
8591
dnl Do not call GNOME_DOC_DEFINES directly. It is split out from
8592
dnl GNOME_DOC_INIT to allow gnome-doc-utils to bootstrap off itself.
8593
AC_DEFUN([GNOME_DOC_DEFINES],
8595
AC_ARG_WITH([help-dir],
8596
AC_HELP_STRING([--with-help-dir=DIR], [path to help docs]),,
8597
[with_help_dir='${datadir}/gnome/help'])
8598
HELP_DIR="$with_help_dir"
8601
AC_ARG_WITH([omf-dir],
8602
AC_HELP_STRING([--with-omf-dir=DIR], [path to OMF files]),,
8603
[with_omf_dir='${datadir}/omf'])
8604
OMF_DIR="$with_omf_dir"
8607
AC_ARG_WITH([help-formats],
8608
AC_HELP_STRING([--with-help-formats=FORMATS], [list of formats]),,
8609
[with_help_formats=''])
8610
DOC_USER_FORMATS="$with_help_formats"
8611
AC_SUBST(DOC_USER_FORMATS)
8613
AC_ARG_ENABLE([scrollkeeper],
8614
[AC_HELP_STRING([--disable-scrollkeeper],
8615
[do not make updates to the scrollkeeper database])],,
8616
enable_scrollkeeper=yes)
8617
AM_CONDITIONAL([ENABLE_SK],[test "$gdu_cv_have_gdu" = "yes" -a "$enable_scrollkeeper" = "yes"])
8619
dnl disable scrollkeeper automatically for distcheck
8620
DISTCHECK_CONFIGURE_FLAGS="--disable-scrollkeeper $DISTCHECK_CONFIGURE_FLAGS"
8621
AC_SUBST(DISTCHECK_CONFIGURE_FLAGS)
8623
AM_CONDITIONAL([HAVE_GNOME_DOC_UTILS],[test "$gdu_cv_have_gdu" = "yes"])
8626
# GNOME_DOC_INIT ([MINIMUM-VERSION],[ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND])
8628
AC_DEFUN([GNOME_DOC_INIT],
8630
ifelse([$1],,[gdu_cv_version_required=0.3.2],[gdu_cv_version_required=$1])
8632
PKG_CHECK_EXISTS([gnome-doc-utils >= $gdu_cv_version_required],
8633
[gdu_cv_have_gdu=yes],[gdu_cv_have_gdu=no])
8635
if test "$gdu_cv_have_gdu" = "yes"; then
8636
ifelse([$2],,[:],[$2])
8638
ifelse([$3],,[AC_MSG_ERROR([gnome-doc-utils >= $gdu_cv_version_required not found])],[$3])
8644
dnl -*- mode: autoconf -*-
8649
dnl GTK_DOC_CHECK([minimum-gtk-doc-version])
8650
AC_DEFUN([GTK_DOC_CHECK],
8652
AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first
8653
AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first
8654
dnl for overriding the documentation installation directory
8655
AC_ARG_WITH([html-dir],
8656
AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
8657
[with_html_dir='${datadir}/gtk-doc/html'])
8658
HTML_DIR="$with_html_dir"
8659
AC_SUBST([HTML_DIR])
8661
dnl enable/disable documentation building
8662
AC_ARG_ENABLE([gtk-doc],
8663
AS_HELP_STRING([--enable-gtk-doc],
8664
[use gtk-doc to build documentation [[default=no]]]),,
8665
[enable_gtk_doc=no])
8667
if test x$enable_gtk_doc = xyes; then
8669
[PKG_CHECK_EXISTS([gtk-doc],,
8670
AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))],
8671
[PKG_CHECK_EXISTS([gtk-doc >= $1],,
8672
AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build gtk-doc]))])
8675
AC_MSG_CHECKING([whether to build gtk-doc documentation])
8676
AC_MSG_RESULT($enable_gtk_doc)
8678
AC_PATH_PROGS(GTKDOC_CHECK,gtkdoc-check,)
8680
AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes])
8681
AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"])
8685
dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
8686
# serial 40 IT_PROG_INTLTOOL
8687
AC_DEFUN([IT_PROG_INTLTOOL],
8688
[AC_PREREQ([2.50])dnl
8690
case "$am__api_version" in
8692
AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
8698
if test -n "$1"; then
8699
AC_MSG_CHECKING([for intltool >= $1])
8701
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
8702
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
8703
[INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
8705
AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
8706
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
8707
AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
8710
AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
8711
AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
8712
AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
8713
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
8714
AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
8717
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8718
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8719
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8720
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8721
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
8722
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8723
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8724
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8725
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8726
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8727
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8728
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
8729
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8730
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8731
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8732
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8733
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8734
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8735
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
8737
AC_SUBST(INTLTOOL_DESKTOP_RULE)
8738
AC_SUBST(INTLTOOL_DIRECTORY_RULE)
8739
AC_SUBST(INTLTOOL_KEYS_RULE)
8740
AC_SUBST(INTLTOOL_PROP_RULE)
8741
AC_SUBST(INTLTOOL_OAF_RULE)
8742
AC_SUBST(INTLTOOL_PONG_RULE)
8743
AC_SUBST(INTLTOOL_SERVER_RULE)
8744
AC_SUBST(INTLTOOL_SHEET_RULE)
8745
AC_SUBST(INTLTOOL_SOUNDLIST_RULE)
8746
AC_SUBST(INTLTOOL_UI_RULE)
8747
AC_SUBST(INTLTOOL_XAM_RULE)
8748
AC_SUBST(INTLTOOL_KBD_RULE)
8749
AC_SUBST(INTLTOOL_XML_RULE)
8750
AC_SUBST(INTLTOOL_XML_NOMERGE_RULE)
8751
AC_SUBST(INTLTOOL_CAVES_RULE)
8752
AC_SUBST(INTLTOOL_SCHEMAS_RULE)
8753
AC_SUBST(INTLTOOL_THEME_RULE)
8754
AC_SUBST(INTLTOOL_SERVICE_RULE)
8755
AC_SUBST(INTLTOOL_POLICY_RULE)
8757
# Check the gettext tools to make sure they are GNU
8758
AC_PATH_PROG(XGETTEXT, xgettext)
8759
AC_PATH_PROG(MSGMERGE, msgmerge)
8760
AC_PATH_PROG(MSGFMT, msgfmt)
8761
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
8762
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
8764
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
8765
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
8766
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
8767
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
8768
AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
8771
AC_PATH_PROG(INTLTOOL_PERL, [perl])
8772
if test -z "$INTLTOOL_PERL"; then
8773
AC_MSG_ERROR([perl not found; required for intltool])
8775
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
8776
AC_MSG_ERROR([perl 5.x required for intltool])
8778
if test "x$2" != "xno-xml"; then
8779
AC_MSG_CHECKING([for XML::Parser])
8780
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
8783
AC_MSG_ERROR([XML::Parser perl module is required for intltool])
8787
# Substitute ALL_LINGUAS so we can use it in po/Makefile
8788
AC_SUBST(ALL_LINGUAS)
8790
# Set DATADIRNAME correctly if it is not set yet
8791
# (copied from glib-gettext.m4)
8792
if test -z "$DATADIRNAME"; then
8794
[AC_LANG_PROGRAM([[]],
8795
[[extern int _nl_msg_cat_cntr;
8796
return _nl_msg_cat_cntr]])],
8797
[DATADIRNAME=share],
8800
dnl On Solaris, if bind_textdomain_codeset is in libc,
8801
dnl GNU format message catalog is always supported,
8802
dnl since both are added to the libc all together.
8803
dnl Hence, we'd like to go with DATADIRNAME=share
8805
AC_CHECK_FUNC(bind_textdomain_codeset,
8806
[DATADIRNAME=share], [DATADIRNAME=lib])
8813
AC_SUBST(DATADIRNAME)
8820
# IT_PO_SUBDIR(DIRNAME)
8821
# ---------------------
8822
# All po subdirs have to be declared with this macro; the subdir "po" is
8823
# declared by IT_PROG_INTLTOOL.
8825
AC_DEFUN([IT_PO_SUBDIR],
8826
[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
8828
dnl The following CONFIG_COMMANDS should be exetuted at the very end
8829
dnl of config.status.
8830
AC_CONFIG_COMMANDS_PRE([
8831
AC_CONFIG_COMMANDS([$1/stamp-it], [
8832
rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
8837
'"s|^| $ac_top_srcdir/|" \
8838
"$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
8840
if test ! -f "$1/Makefile"; then
8841
AC_MSG_ERROR([$1/Makefile is not ready.])
8843
mv "$1/Makefile" "$1/Makefile.tmp"
8844
[sed '/^POTFILES =/,/[^\\]$/ {
8848
' "$1/Makefile.tmp" >"$1/Makefile"]
8849
rm -f "$1/Makefile.tmp"
8850
mv "$1/stamp-it.tmp" "$1/stamp-it"
8857
AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
8858
# A hint is needed for aclocal from Automake <= 1.9.4:
8859
# AC_DEFUN([AC_PROG_INTLTOOL], ...)