1 # generated automatically by aclocal 1.11.1 -*- Autoconf -*-
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 # 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
17 [m4_warning([this file was generated for autoconf 2.65.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically `autoreconf'.])])
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 AC_HELP_STRING([--with-gconf-source=sourceaddress],
39 [Config database for installing schema files.]),
40 [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],)
42 AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE)
43 AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation])
45 if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
46 GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
49 AC_ARG_WITH([gconf-schema-file-dir],
50 AC_HELP_STRING([--with-gconf-schema-file-dir=dir],
51 [Directory for installing schema files.]),
52 [GCONF_SCHEMA_FILE_DIR="$withval"],)
54 AC_SUBST(GCONF_SCHEMA_FILE_DIR)
55 AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files])
57 AC_ARG_ENABLE(schemas-install,
58 AC_HELP_STRING([--disable-schemas-install],
59 [Disable the schemas installation]),
62 *) AC_MSG_ERROR([bad value ${enableval} for --enable-schemas-install]) ;;
64 AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no])
67 # Copyright (C) 1995-2002 Free Software Foundation, Inc.
68 # Copyright (C) 2001-2003,2004 Red Hat, Inc.
70 # This file is free software, distributed under the terms of the GNU
71 # General Public License. As a special exception to the GNU General
72 # Public License, this file may be distributed as part of a program
73 # that contains a configuration script generated by Autoconf, under
74 # the same distribution terms as the rest of that program.
76 # This file can be copied and used freely without restrictions. It can
77 # be used in projects which are not available under the GNU Public License
78 # but which still want to provide support for the GNU gettext functionality.
80 # Macro to add for using GNU gettext.
81 # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996
83 # Modified to never use included libintl.
84 # Owen Taylor <otaylor@redhat.com>, 12/15/1998
86 # Major rework to remove unused code
87 # Owen Taylor <otaylor@redhat.com>, 12/11/2002
89 # Added better handling of ALL_LINGUAS from GNU gettext version
90 # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002
92 # Modified to require ngettext
93 # Matthias Clasen <mclasen@redhat.com> 08/06/2004
95 # We need this here as well, since someone might use autoconf-2.5x
96 # to configure GLib then an older version to configure a package
97 # using AM_GLIB_GNU_GETTEXT
101 dnl We go to great lengths to make sure that aclocal won't
102 dnl try to pull in the installed version of these macros
103 dnl when running aclocal in the glib directory.
105 m4_copy([AC_DEFUN],[glib_DEFUN])
106 m4_copy([AC_REQUIRE],[glib_REQUIRE])
108 dnl At the end, if we're not within glib, we'll define the public
109 dnl definitions in terms of our private definitions.
113 #--------------------
114 glib_DEFUN([GLIB_LC_MESSAGES],
115 [AC_CHECK_HEADERS([locale.h])
116 if test $ac_cv_header_locale_h = yes; then
117 AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES,
118 [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES],
119 am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)])
120 if test $am_cv_val_LC_MESSAGES = yes; then
121 AC_DEFINE(HAVE_LC_MESSAGES, 1,
122 [Define if your <locale.h> file defines LC_MESSAGES.])
126 # GLIB_PATH_PROG_WITH_TEST
127 #----------------------------
128 dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR,
129 dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]])
130 glib_DEFUN([GLIB_PATH_PROG_WITH_TEST],
131 [# Extract the first word of "$2", so it can be a program name with args.
132 set dummy $2; ac_word=[$]2
133 AC_MSG_CHECKING([for $ac_word])
134 AC_CACHE_VAL(ac_cv_path_$1,
137 ac_cv_path_$1="[$]$1" # Let the user override the test with a path.
140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
141 for ac_dir in ifelse([$5], , $PATH, [$5]); do
142 test -z "$ac_dir" && ac_dir=.
143 if test -f $ac_dir/$ac_word; then
145 ac_cv_path_$1="$ac_dir/$ac_word"
151 dnl If no 4th arg is given, leave the cache variable unset,
152 dnl so AC_PATH_PROGS will keep looking.
153 ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4"
158 if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then
168 glib_DEFUN([GLIB_WITH_NLS],
169 dnl NLS is obligatory
173 gt_cv_have_gettext=no
179 AC_CHECK_HEADER(libintl.h,
180 [gt_cv_func_dgettext_libintl="no"
181 libintl_extra_libs=""
184 # First check in libc
186 AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc,
190 [return !ngettext ("","", 1)],
191 gt_cv_func_ngettext_libc=yes,
192 gt_cv_func_ngettext_libc=no)
195 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
196 AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc,
200 [return !dgettext ("","")],
201 gt_cv_func_dgettext_libc=yes,
202 gt_cv_func_dgettext_libc=no)
206 if test "$gt_cv_func_ngettext_libc" = "yes" ; then
207 AC_CHECK_FUNCS(bind_textdomain_codeset)
211 # If we don't have everything we want, check in libintl
213 if test "$gt_cv_func_dgettext_libc" != "yes" \
214 || test "$gt_cv_func_ngettext_libc" != "yes" \
215 || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
217 AC_CHECK_LIB(intl, bindtextdomain,
218 [AC_CHECK_LIB(intl, ngettext,
219 [AC_CHECK_LIB(intl, dgettext,
220 gt_cv_func_dgettext_libintl=yes)])])
222 if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
223 AC_MSG_CHECKING([if -liconv is needed to use gettext])
225 AC_CHECK_LIB(intl, ngettext,
226 [AC_CHECK_LIB(intl, dcgettext,
227 [gt_cv_func_dgettext_libintl=yes
228 libintl_extra_libs=-liconv],
234 # If we found libintl, then check in it for bind_textdomain_codeset();
235 # we'll prefer libc if neither have bind_textdomain_codeset(),
236 # and both have dgettext and ngettext
238 if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
239 glib_save_LIBS="$LIBS"
240 LIBS="$LIBS -lintl $libintl_extra_libs"
241 unset ac_cv_func_bind_textdomain_codeset
242 AC_CHECK_FUNCS(bind_textdomain_codeset)
243 LIBS="$glib_save_LIBS"
245 if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
246 gt_cv_func_dgettext_libc=no
248 if test "$gt_cv_func_dgettext_libc" = "yes" \
249 && test "$gt_cv_func_ngettext_libc" = "yes"; then
250 gt_cv_func_dgettext_libintl=no
256 if test "$gt_cv_func_dgettext_libc" = "yes" \
257 || test "$gt_cv_func_dgettext_libintl" = "yes"; then
258 gt_cv_have_gettext=yes
261 if test "$gt_cv_func_dgettext_libintl" = "yes"; then
262 INTLLIBS="-lintl $libintl_extra_libs"
265 if test "$gt_cv_have_gettext" = "yes"; then
266 AC_DEFINE(HAVE_GETTEXT,1,
267 [Define if the GNU gettext() function is already present or preinstalled.])
268 GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt,
269 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl
270 if test "$MSGFMT" != "no"; then
271 glib_save_LIBS="$LIBS"
272 LIBS="$LIBS $INTLLIBS"
273 AC_CHECK_FUNCS(dcgettext)
275 AC_MSG_CHECKING([if msgfmt accepts -c])
276 GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[
279 "Content-Type: text/plain; charset=UTF-8\n"
280 "Project-Id-Version: test 1.0\n"
281 "PO-Revision-Date: 2007-02-15 12:01+0100\n"
282 "Last-Translator: test <foo@bar.xx>\n"
283 "Language-Team: C <LL@li.org>\n"
284 "MIME-Version: 1.0\n"
285 "Content-Transfer-Encoding: 8bit\n"
286 ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])])
287 AC_SUBST(MSGFMT_OPTS)
288 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
289 GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext,
290 [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :)
291 AC_TRY_LINK(, [extern int _nl_msg_cat_cntr;
292 return _nl_msg_cat_cntr],
297 dnl On Solaris, if bind_textdomain_codeset is in libc,
298 dnl GNU format message catalog is always supported,
299 dnl since both are added to the libc all together.
300 dnl Hence, we'd like to go with DATADIRNAME=share and
301 dnl and CATOBJEXT=.gmo in this case.
302 AC_CHECK_FUNC(bind_textdomain_codeset,
313 LIBS="$glib_save_LIBS"
316 gt_cv_have_gettext=no
321 if test "$gt_cv_have_gettext" = "yes" ; then
322 AC_DEFINE(ENABLE_NLS, 1,
323 [always defined to indicate that i18n is enabled])
326 dnl Test whether we really found GNU xgettext.
327 if test "$XGETTEXT" != ":"; then
328 dnl If it is not GNU xgettext we define it as : so that the
329 dnl Makefiles still can work.
330 if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
334 [found xgettext program is not GNU xgettext; ignore it])
339 # We need to process the po/ directory.
343 [case "$CONFIG_FILES" in *po/Makefile.in*)
344 sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
347 dnl These rules are solely for the distribution goal. While doing this
348 dnl we only have to keep exactly one list of the available catalogs
350 for lang in $ALL_LINGUAS; do
351 GMOFILES="$GMOFILES $lang.gmo"
352 POFILES="$POFILES $lang.po"
355 dnl Make all variables we use known to autoconf.
358 AC_SUBST(DATADIRNAME)
362 AC_SUBST(PO_IN_DATADIR_TRUE)
363 AC_SUBST(PO_IN_DATADIR_FALSE)
368 # AM_GLIB_GNU_GETTEXT
369 # -------------------
370 # Do checks necessary for use of gettext. If a suitable implementation
371 # of gettext is found in either in libintl or in the C library,
372 # it will set INTLLIBS to the libraries needed for use of gettext
373 # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable
374 # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST()
375 # on various variables needed by the Makefile.in.in installed by
378 glib_DEFUN([GLIB_GNU_GETTEXT],
379 [AC_REQUIRE([AC_PROG_CC])dnl
380 AC_REQUIRE([AC_HEADER_STDC])dnl
385 if test "$gt_cv_have_gettext" = "yes"; then
386 if test "x$ALL_LINGUAS" = "x"; then
389 AC_MSG_CHECKING(for catalogs to be installed)
391 for presentlang in $ALL_LINGUAS; do
393 if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
394 desiredlanguages="$LINGUAS"
396 desiredlanguages="$ALL_LINGUAS"
398 for desiredlang in $desiredlanguages; do
399 # Use the presentlang catalog if desiredlang is
400 # a. equal to presentlang, or
401 # b. a variant of presentlang (because in this case,
402 # presentlang can be used as a fallback for messages
403 # which are not translated in the desiredlang catalog).
404 case "$desiredlang" in
405 "$presentlang"*) useit=yes;;
408 if test $useit = yes; then
409 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
413 AC_MSG_RESULT($LINGUAS)
416 dnl Construct list of names of catalog files to be constructed.
417 if test -n "$LINGUAS"; then
418 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
422 dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly
423 dnl find the mkinstalldirs script in another subdir but ($top_srcdir).
424 dnl Try to locate is.
426 if test -n "$ac_aux_dir"; then
427 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
429 if test -z "$MKINSTALLDIRS"; then
430 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
432 AC_SUBST(MKINSTALLDIRS)
434 dnl Generate list of files to be processed by xgettext which will
435 dnl be included in po/Makefile.
436 test -d po || mkdir po
437 if test "x$srcdir" != "x."; then
438 if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
439 posrcprefix="$srcdir/"
441 posrcprefix="../$srcdir/"
447 sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
448 < $srcdir/po/POTFILES.in > po/POTFILES
451 # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE)
452 # -------------------------------
453 # Define VARIABLE to the location where catalog files will
454 # be installed by po/Makefile.
455 glib_DEFUN([GLIB_DEFINE_LOCALEDIR],
456 [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl
457 glib_save_prefix="$prefix"
458 glib_save_exec_prefix="$exec_prefix"
459 glib_save_datarootdir="$datarootdir"
460 test "x$prefix" = xNONE && prefix=$ac_default_prefix
461 test "x$exec_prefix" = xNONE && exec_prefix=$prefix
462 datarootdir=`eval echo "${datarootdir}"`
463 if test "x$CATOBJEXT" = "x.mo" ; then
464 localedir=`eval echo "${libdir}/locale"`
466 localedir=`eval echo "${datadir}/locale"`
468 prefix="$glib_save_prefix"
469 exec_prefix="$glib_save_exec_prefix"
470 datarootdir="$glib_save_datarootdir"
471 AC_DEFINE_UNQUOTED($1, "$localedir",
472 [Define the location where the catalogs will be installed])
476 dnl Now the definitions that aclocal will find
478 ifdef(glib_configure_in,[],[
479 AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)])
480 AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)])
483 # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL])
485 # Create a temporary file with TEST-FILE as its contents and pass the
486 # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with
487 # 0 and perform ACTION-IF-FAIL for any other exit status.
488 AC_DEFUN([GLIB_RUN_PROG],
489 [cat >conftest.foo <<_ACEOF
492 if AC_RUN_LOG([$1 conftest.foo]); then
493 m4_ifval([$3], [$3], [:])
494 m4_ifvaln([$4], [else $4])dnl
495 echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD
496 sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD
501 dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
502 # serial 40 IT_PROG_INTLTOOL
503 AC_DEFUN([IT_PROG_INTLTOOL], [
505 AC_REQUIRE([AM_NLS])dnl
507 case "$am__api_version" in
509 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
515 if test -n "$1"; then
516 AC_MSG_CHECKING([for intltool >= $1])
518 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
519 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
520 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
522 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
523 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
524 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
527 AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
528 AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
529 AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
530 if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
531 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
534 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 $< [$]@'
535 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 $< [$]@'
536 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 $< [$]@'
537 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 $< [$]@'
538 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
539 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 $< [$]@'
540 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 $< [$]@'
541 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 $< [$]@'
542 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 $< [$]@'
543 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 $< [$]@'
544 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 $< [$]@'
545 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
546 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 $< [$]@'
547 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 $< [$]@'
548 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 $< [$]@'
549 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 $< [$]@'
550 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 $< [$]@'
551 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 $< [$]@'
552 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 $< [$]@'
554 _IT_SUBST(INTLTOOL_DESKTOP_RULE)
555 _IT_SUBST(INTLTOOL_DIRECTORY_RULE)
556 _IT_SUBST(INTLTOOL_KEYS_RULE)
557 _IT_SUBST(INTLTOOL_PROP_RULE)
558 _IT_SUBST(INTLTOOL_OAF_RULE)
559 _IT_SUBST(INTLTOOL_PONG_RULE)
560 _IT_SUBST(INTLTOOL_SERVER_RULE)
561 _IT_SUBST(INTLTOOL_SHEET_RULE)
562 _IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
563 _IT_SUBST(INTLTOOL_UI_RULE)
564 _IT_SUBST(INTLTOOL_XAM_RULE)
565 _IT_SUBST(INTLTOOL_KBD_RULE)
566 _IT_SUBST(INTLTOOL_XML_RULE)
567 _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
568 _IT_SUBST(INTLTOOL_CAVES_RULE)
569 _IT_SUBST(INTLTOOL_SCHEMAS_RULE)
570 _IT_SUBST(INTLTOOL_THEME_RULE)
571 _IT_SUBST(INTLTOOL_SERVICE_RULE)
572 _IT_SUBST(INTLTOOL_POLICY_RULE)
574 # Check the gettext tools to make sure they are GNU
575 AC_PATH_PROG(XGETTEXT, xgettext)
576 AC_PATH_PROG(MSGMERGE, msgmerge)
577 AC_PATH_PROG(MSGFMT, msgfmt)
578 AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
579 if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
580 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
582 xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
583 mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
584 mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
585 if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
586 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
589 AC_PATH_PROG(INTLTOOL_PERL, perl)
590 if test -z "$INTLTOOL_PERL"; then
591 AC_MSG_ERROR([perl not found])
593 AC_MSG_CHECKING([for perl >= 5.8.1])
594 $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
595 if test $? -ne 0; then
596 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
598 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
599 AC_MSG_RESULT([$IT_PERL_VERSION])
601 if test "x$2" != "xno-xml"; then
602 AC_MSG_CHECKING([for XML::Parser])
603 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
606 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
610 # Substitute ALL_LINGUAS so we can use it in po/Makefile
611 AC_SUBST(ALL_LINGUAS)
613 # Set DATADIRNAME correctly if it is not set yet
614 # (copied from glib-gettext.m4)
615 if test -z "$DATADIRNAME"; then
617 [AC_LANG_PROGRAM([[]],
618 [[extern int _nl_msg_cat_cntr;
619 return _nl_msg_cat_cntr]])],
623 dnl On Solaris, if bind_textdomain_codeset is in libc,
624 dnl GNU format message catalog is always supported,
625 dnl since both are added to the libc all together.
626 dnl Hence, we'd like to go with DATADIRNAME=share
628 AC_CHECK_FUNC(bind_textdomain_codeset,
629 [DATADIRNAME=share], [DATADIRNAME=lib])
636 AC_SUBST(DATADIRNAME)
643 # IT_PO_SUBDIR(DIRNAME)
644 # ---------------------
645 # All po subdirs have to be declared with this macro; the subdir "po" is
646 # declared by IT_PROG_INTLTOOL.
648 AC_DEFUN([IT_PO_SUBDIR],
649 [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
651 dnl The following CONFIG_COMMANDS should be exetuted at the very end
652 dnl of config.status.
653 AC_CONFIG_COMMANDS_PRE([
654 AC_CONFIG_COMMANDS([$1/stamp-it], [
655 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
656 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
658 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
663 '"s|^| $ac_top_srcdir/|" \
664 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
666 [sed '/^POTFILES =/,/[^\\]$/ {
670 ' "$1/Makefile.in" >"$1/Makefile"]
671 rm -f "$1/Makefile.tmp"
672 mv "$1/stamp-it.tmp" "$1/stamp-it"
677 # _IT_SUBST(VARIABLE)
678 # -------------------
679 # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
681 AC_DEFUN([_IT_SUBST],
684 m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
689 AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
690 # A hint is needed for aclocal from Automake <= 1.9.4:
691 # AC_DEFUN([AC_PROG_INTLTOOL], ...)
694 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
696 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
697 # 2006, 2007, 2008 Free Software Foundation, Inc.
698 # Written by Gordon Matzigkeit, 1996
700 # This file is free software; the Free Software Foundation gives
701 # unlimited permission to copy and/or distribute it, with or without
702 # modifications, as long as this notice is preserved.
704 m4_define([_LT_COPYING], [dnl
705 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
706 # 2006, 2007, 2008 Free Software Foundation, Inc.
707 # Written by Gordon Matzigkeit, 1996
709 # This file is part of GNU Libtool.
711 # GNU Libtool is free software; you can redistribute it and/or
712 # modify it under the terms of the GNU General Public License as
713 # published by the Free Software Foundation; either version 2 of
714 # the License, or (at your option) any later version.
716 # As a special exception to the GNU General Public License,
717 # if you distribute this file as part of a program or library that
718 # is built using GNU Libtool, you may include this file under the
719 # same distribution terms that you use for the rest of that program.
721 # GNU Libtool is distributed in the hope that it will be useful,
722 # but WITHOUT ANY WARRANTY; without even the implied warranty of
723 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
724 # GNU General Public License for more details.
726 # You should have received a copy of the GNU General Public License
727 # along with GNU Libtool; see the file COPYING. If not, a copy
728 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
729 # obtained by writing to the Free Software Foundation, Inc.,
730 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
738 # Complain and exit if this libtool version is less that VERSION.
739 m4_defun([LT_PREREQ],
740 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
742 [m4_fatal([Libtool version $1 or higher is required],
749 # Complain if the absolute build directory name contains unusual characters
750 m4_defun([_LT_CHECK_BUILDDIR],
753 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
761 [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
762 AC_BEFORE([$0], [LT_LANG])dnl
763 AC_BEFORE([$0], [LT_OUTPUT])dnl
764 AC_BEFORE([$0], [LTDL_INIT])dnl
765 m4_require([_LT_CHECK_BUILDDIR])dnl
767 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
768 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
769 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
770 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
771 dnl unless we require an AC_DEFUNed macro:
772 AC_REQUIRE([LTOPTIONS_VERSION])dnl
773 AC_REQUIRE([LTSUGAR_VERSION])dnl
774 AC_REQUIRE([LTVERSION_VERSION])dnl
775 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
776 m4_require([_LT_PROG_LTMAIN])dnl
779 _LT_SET_OPTIONS([$0], [$1])
781 # This can be used to rebuild libtool when needed
782 LIBTOOL_DEPS="$ltmain"
784 # Always use our own libtool.
785 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
795 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
796 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
797 dnl aclocal-1.4 backwards compatibility:
798 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
799 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
802 # _LT_CC_BASENAME(CC)
803 # -------------------
804 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
805 m4_defun([_LT_CC_BASENAME],
806 [for cc_temp in $1""; do
808 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
809 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
814 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
818 # _LT_FILEUTILS_DEFAULTS
819 # ----------------------
820 # It is okay to use these file commands and assume they have been set
821 # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
822 m4_defun([_LT_FILEUTILS_DEFAULTS],
826 ])# _LT_FILEUTILS_DEFAULTS
831 m4_defun([_LT_SETUP],
832 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
833 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
834 _LT_DECL([], [host_alias], [0], [The host system])dnl
835 _LT_DECL([], [host], [0])dnl
836 _LT_DECL([], [host_os], [0])dnl
838 _LT_DECL([], [build_alias], [0], [The build system])dnl
839 _LT_DECL([], [build], [0])dnl
840 _LT_DECL([], [build_os], [0])dnl
842 AC_REQUIRE([AC_PROG_CC])dnl
843 AC_REQUIRE([LT_PATH_LD])dnl
844 AC_REQUIRE([LT_PATH_NM])dnl
846 AC_REQUIRE([AC_PROG_LN_S])dnl
847 test -z "$LN_S" && LN_S="ln -s"
848 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
850 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
851 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
852 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
854 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
855 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
856 m4_require([_LT_CMD_RELOAD])dnl
857 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
858 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
859 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
861 _LT_CONFIG_LIBTOOL_INIT([
862 # See if we are running on zsh, and set the options which allow our
863 # commands through without removal of \ escapes INIT.
864 if test -n "\${ZSH_VERSION+set}" ; then
868 if test -n "${ZSH_VERSION+set}" ; then
874 m4_require([_LT_TAG_COMPILER])dnl
875 _LT_PROG_ECHO_BACKSLASH
879 # AIX sometimes has problems with the GCC collect2 program. For some
880 # reason, if we set the COLLECT_NAMES environment variable, the problems
881 # vanish in a puff of smoke.
882 if test "X${COLLECT_NAMES+set}" != Xset; then
889 # Sed substitution that helps us do robust quoting. It backslashifies
890 # metacharacters that are still active within double-quoted strings.
891 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
893 # Same as above, but do not quote variable references.
894 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
896 # Sed substitution to delay expansion of an escaped shell variable in a
897 # double_quote_subst'ed string.
898 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
900 # Sed substitution to delay expansion of an escaped single quote.
901 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
903 # Sed substitution to avoid accidental globbing in evaled expressions
904 no_glob_subst='s/\*/\\\*/g'
910 # All known linkers require a `.a' archive for static linking (except MSVC,
911 # which needs '.lib').
914 with_gnu_ld="$lt_cv_prog_gnu_ld"
919 # Set sane defaults for various variables
920 test -z "$CC" && CC=cc
921 test -z "$LTCC" && LTCC=$CC
922 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
923 test -z "$LD" && LD=ld
924 test -z "$ac_objext" && ac_objext=o
926 _LT_CC_BASENAME([$compiler])
928 # Only perform the check for file, if the check method requires it
929 test -z "$MAGIC_CMD" && MAGIC_CMD=file
930 case $deplibs_check_method in
932 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
938 # Use C for the default configuration in the libtool script
939 LT_SUPPORTED_TAG([CC])
941 _LT_LANG_DEFAULT_CONFIG
948 # Note that this code is called both from `configure', and `config.status'
949 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
950 # `config.status' has no value for ac_aux_dir unless we are using Automake,
951 # so we pass a copy along to make sure it has a sensible value anyway.
952 m4_defun([_LT_PROG_LTMAIN],
953 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
954 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
955 ltmain="$ac_aux_dir/ltmain.sh"
960 # So that we can recreate a full libtool script including additional
961 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
962 # in macros and then make a single call at the end using the `libtool'
966 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
967 # ----------------------------------------
968 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
969 m4_define([_LT_CONFIG_LIBTOOL_INIT],
971 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
976 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
979 # _LT_CONFIG_LIBTOOL([COMMANDS])
980 # ------------------------------
981 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
982 m4_define([_LT_CONFIG_LIBTOOL],
984 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
989 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
992 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
993 # -----------------------------------------------------
994 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
995 [_LT_CONFIG_LIBTOOL([$1])
996 _LT_CONFIG_LIBTOOL_INIT([$2])
1000 # _LT_FORMAT_COMMENT([COMMENT])
1001 # -----------------------------
1002 # Add leading comment marks to the start of each line, and a trailing
1003 # full-stop to the whole comment if one is not present already.
1004 m4_define([_LT_FORMAT_COMMENT],
1006 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1007 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1014 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1015 # -------------------------------------------------------------------
1016 # CONFIGNAME is the name given to the value in the libtool script.
1017 # VARNAME is the (base) name used in the configure script.
1018 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1019 # VARNAME. Any other value will be used directly.
1020 m4_define([_LT_DECL],
1021 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1022 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1023 [m4_ifval([$1], [$1], [$2])])
1024 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1026 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1027 lt_dict_add_subkey([lt_decl_dict], [$2],
1028 [tagged?], [m4_ifval([$5], [yes], [no])])])
1032 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1033 # --------------------------------------------------------
1034 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1037 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1038 # ------------------------------------------------
1039 m4_define([lt_decl_tag_varnames],
1040 [_lt_decl_filter([tagged?], [yes], $@)])
1043 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1044 # ---------------------------------------------------------
1045 m4_define([_lt_decl_filter],
1047 [0], [m4_fatal([$0: too few arguments: $#])],
1048 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1049 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1050 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1051 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1055 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1056 # --------------------------------------------------
1057 m4_define([lt_decl_quote_varnames],
1058 [_lt_decl_filter([value], [1], $@)])
1061 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1062 # ---------------------------------------------------
1063 m4_define([lt_decl_dquote_varnames],
1064 [_lt_decl_filter([value], [2], $@)])
1067 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1068 # ---------------------------------------------------
1069 m4_define([lt_decl_varnames_tagged],
1070 [m4_assert([$# <= 2])dnl
1071 _$0(m4_quote(m4_default([$1], [[, ]])),
1072 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1073 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1074 m4_define([_lt_decl_varnames_tagged],
1075 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1078 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1079 # ------------------------------------------------
1080 m4_define([lt_decl_all_varnames],
1081 [_$0(m4_quote(m4_default([$1], [[, ]])),
1083 m4_quote(lt_decl_varnames),
1084 m4_quote(m4_shift($@))))[]dnl
1086 m4_define([_lt_decl_all_varnames],
1087 [lt_join($@, lt_decl_varnames_tagged([$1],
1088 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1092 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
1093 # ------------------------------------
1094 # Quote a variable value, and forward it to `config.status' so that its
1095 # declaration there will have the same value as in `configure'. VARNAME
1096 # must have a single quote delimited value for this to work.
1097 m4_define([_LT_CONFIG_STATUS_DECLARE],
1098 [$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
1101 # _LT_CONFIG_STATUS_DECLARATIONS
1102 # ------------------------------
1103 # We delimit libtool config variables with single quotes, so when
1104 # we write them to config.status, we have to be sure to quote all
1105 # embedded single quotes properly. In configure, this macro expands
1106 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1108 # <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
1109 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1110 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1111 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1116 # Output comment and list of tags supported by the script
1117 m4_defun([_LT_LIBTOOL_TAGS],
1118 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1119 available_tags="_LT_TAGS"dnl
1123 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1124 # -----------------------------------
1125 # Extract the dictionary values for VARNAME (optionally with TAG) and
1126 # expand to a commented shell variable setting:
1128 # # Some comment about what VAR is for.
1129 # visible_name=$lt_internal_name
1130 m4_define([_LT_LIBTOOL_DECLARE],
1131 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1132 [description])))[]dnl
1133 m4_pushdef([_libtool_name],
1134 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1135 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1136 [0], [_libtool_name=[$]$1],
1137 [1], [_libtool_name=$lt_[]$1],
1138 [2], [_libtool_name=$lt_[]$1],
1139 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1140 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1144 # _LT_LIBTOOL_CONFIG_VARS
1145 # -----------------------
1146 # Produce commented declarations of non-tagged libtool config variables
1147 # suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1148 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1149 # section) are produced by _LT_LIBTOOL_TAG_VARS.
1150 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1151 [m4_foreach([_lt_var],
1152 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1153 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1156 # _LT_LIBTOOL_TAG_VARS(TAG)
1157 # -------------------------
1158 m4_define([_LT_LIBTOOL_TAG_VARS],
1159 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1160 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1163 # _LT_TAGVAR(VARNAME, [TAGNAME])
1164 # ------------------------------
1165 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1168 # _LT_CONFIG_COMMANDS
1169 # -------------------
1170 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1171 # variables for single and double quote escaping we saved from calls
1172 # to _LT_DECL, we can put quote escaped variables declarations
1173 # into `config.status', and then the shell code to quote escape them in
1174 # for loops in `config.status'. Finally, any additional code accumulated
1175 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1176 m4_defun([_LT_CONFIG_COMMANDS],
1177 [AC_PROVIDE_IFELSE([LT_OUTPUT],
1178 dnl If the libtool generation code has been placed in $CONFIG_LT,
1179 dnl instead of duplicating it all over again into config.status,
1180 dnl then we will have config.status run $CONFIG_LT later, so it
1181 dnl needs to know what name is stored there:
1182 [AC_CONFIG_COMMANDS([libtool],
1183 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1184 dnl If the libtool generation code is destined for config.status,
1185 dnl expand the accumulated commands and init code now:
1186 [AC_CONFIG_COMMANDS([libtool],
1187 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1188 ])#_LT_CONFIG_COMMANDS
1192 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1195 # The HP-UX ksh and POSIX shell print the target directory to stdout
1197 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1199 sed_quote_subst='$sed_quote_subst'
1200 double_quote_subst='$double_quote_subst'
1201 delay_variable_subst='$delay_variable_subst'
1202 _LT_CONFIG_STATUS_DECLARATIONS
1204 LTCFLAGS='$LTCFLAGS'
1205 compiler='$compiler_DEFAULT'
1207 # Quote evaled strings.
1208 for var in lt_decl_all_varnames([[ \
1209 ]], lt_decl_quote_varnames); do
1210 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1211 *[[\\\\\\\`\\"\\\$]]*)
1212 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1215 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1220 # Double-quote double-evaled strings.
1221 for var in lt_decl_all_varnames([[ \
1222 ]], lt_decl_dquote_varnames); do
1223 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
1224 *[[\\\\\\\`\\"\\\$]]*)
1225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1233 # Fix-up fallback echo if it was mangled by the above quoting rules.
1235 *'\\\[$]0 --fallback-echo"')dnl "
1236 lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
1240 _LT_OUTPUT_LIBTOOL_INIT
1246 # This macro allows early generation of the libtool script (before
1247 # AC_OUTPUT is called), incase it is used in configure for compilation
1249 AC_DEFUN([LT_OUTPUT],
1250 [: ${CONFIG_LT=./config.lt}
1251 AC_MSG_NOTICE([creating $CONFIG_LT])
1252 cat >"$CONFIG_LT" <<_LTEOF
1254 # Generated by $as_me.
1255 # Run this file to recreate a libtool stub with the current configuration.
1258 SHELL=\${CONFIG_SHELL-$SHELL}
1261 cat >>"$CONFIG_LT" <<\_LTEOF
1265 exec AS_MESSAGE_FD>&1
1266 exec AS_MESSAGE_LOG_FD>>config.log
1269 AS_BOX([Running $as_me.])
1270 } >&AS_MESSAGE_LOG_FD
1273 \`$as_me' creates a local libtool stub from the current configuration,
1274 for use in further configure time tests before the real libtool is
1277 Usage: $[0] [[OPTIONS]]
1279 -h, --help print this help, then exit
1280 -V, --version print version number, then exit
1281 -q, --quiet do not print progress messages
1282 -d, --debug don't remove temporary files
1284 Report bugs to <bug-libtool@gnu.org>."
1287 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1288 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1289 configured by $[0], generated by m4_PACKAGE_STRING.
1291 Copyright (C) 2008 Free Software Foundation, Inc.
1292 This config.lt script is free software; the Free Software Foundation
1293 gives unlimited permision to copy, distribute and modify it."
1295 while test $[#] != 0
1298 --version | --v* | -V )
1299 echo "$lt_cl_version"; exit 0 ;;
1300 --help | --h* | -h )
1301 echo "$lt_cl_help"; exit 0 ;;
1302 --debug | --d* | -d )
1304 --quiet | --q* | --silent | --s* | -q )
1307 -*) AC_MSG_ERROR([unrecognized option: $[1]
1308 Try \`$[0] --help' for more information.]) ;;
1310 *) AC_MSG_ERROR([unrecognized argument: $[1]
1311 Try \`$[0] --help' for more information.]) ;;
1316 if $lt_cl_silent; then
1317 exec AS_MESSAGE_FD>/dev/null
1321 cat >>"$CONFIG_LT" <<_LTEOF
1322 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1325 cat >>"$CONFIG_LT" <<\_LTEOF
1326 AC_MSG_NOTICE([creating $ofile])
1327 _LT_OUTPUT_LIBTOOL_COMMANDS
1330 chmod +x "$CONFIG_LT"
1332 # configure is writing to config.log, but config.lt does its own redirection,
1333 # appending to config.log, which fails on DOS, as config.log is still kept
1334 # open by configure. Here we exec the FD to /dev/null, effectively closing
1335 # config.log, so it can be properly (re)opened and appended to by config.lt.
1336 if test "$no_create" != yes; then
1338 test "$silent" = yes &&
1339 lt_config_lt_args="$lt_config_lt_args --quiet"
1340 exec AS_MESSAGE_LOG_FD>/dev/null
1341 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1342 exec AS_MESSAGE_LOG_FD>>config.log
1343 $lt_cl_success || AS_EXIT(1)
1350 # If TAG is the built-in tag, create an initial libtool script with a
1351 # default configuration from the untagged config vars. Otherwise add code
1352 # to config.status for appending the configuration named by TAG from the
1353 # matching tagged config vars.
1354 m4_defun([_LT_CONFIG],
1355 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1356 _LT_CONFIG_SAVE_COMMANDS([
1357 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1358 m4_if(_LT_TAG, [C], [
1359 # See if we are running on zsh, and set the options which allow our
1360 # commands through without removal of \ escapes.
1361 if test -n "${ZSH_VERSION+set}" ; then
1362 setopt NO_GLOB_SUBST
1366 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1369 cat <<_LT_EOF >> "$cfgfile"
1372 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1373 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1374 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1375 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
1380 # ### BEGIN LIBTOOL CONFIG
1381 _LT_LIBTOOL_CONFIG_VARS
1382 _LT_LIBTOOL_TAG_VARS
1383 # ### END LIBTOOL CONFIG
1389 cat <<\_LT_EOF >> "$cfgfile"
1390 # AIX sometimes has problems with the GCC collect2 program. For some
1391 # reason, if we set the COLLECT_NAMES environment variable, the problems
1392 # vanish in a puff of smoke.
1393 if test "X${COLLECT_NAMES+set}" != Xset; then
1395 export COLLECT_NAMES
1403 # We use sed instead of cat because bash on DJGPP gets confused if
1404 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1405 # text mode, it properly converts lines to CR/LF. This bash problem
1406 # is reportedly fixed, but why not run on old versions too?
1407 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
1408 || (rm -f "$cfgfile"; exit 1)
1410 _LT_PROG_XSI_SHELLFNS
1412 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
1413 || (rm -f "$cfgfile"; exit 1)
1415 mv -f "$cfgfile" "$ofile" ||
1416 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1419 [cat <<_LT_EOF >> "$ofile"
1421 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1422 dnl in a comment (ie after a #).
1423 # ### BEGIN LIBTOOL TAG CONFIG: $1
1424 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
1425 # ### END LIBTOOL TAG CONFIG: $1
1432 TIMESTAMP='$TIMESTAMP'
1434 ofile='$ofile'], [])
1435 ])dnl /_LT_CONFIG_SAVE_COMMANDS
1439 # LT_SUPPORTED_TAG(TAG)
1440 # ---------------------
1441 # Trace this macro to discover what tags are supported by the libtool
1442 # --tag option, using:
1443 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
1444 AC_DEFUN([LT_SUPPORTED_TAG], [])
1447 # C support is built-in for now
1448 m4_define([_LT_LANG_C_enabled], [])
1449 m4_define([_LT_TAGS], [])
1454 # Enable libtool support for the given language if not already enabled.
1456 [AC_BEFORE([$0], [LT_OUTPUT])dnl
1459 [C++], [_LT_LANG(CXX)],
1460 [Java], [_LT_LANG(GCJ)],
1461 [Fortran 77], [_LT_LANG(F77)],
1462 [Fortran], [_LT_LANG(FC)],
1463 [Windows Resource], [_LT_LANG(RC)],
1464 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1466 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1470 # _LT_LANG(LANGNAME)
1471 # ------------------
1472 m4_defun([_LT_LANG],
1473 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
1474 [LT_SUPPORTED_TAG([$1])dnl
1475 m4_append([_LT_TAGS], [$1 ])dnl
1476 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1477 _LT_LANG_$1_CONFIG($1)])dnl
1481 # _LT_LANG_DEFAULT_CONFIG
1482 # -----------------------
1483 m4_defun([_LT_LANG_DEFAULT_CONFIG],
1484 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
1486 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1488 AC_PROVIDE_IFELSE([AC_PROG_F77],
1490 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1492 AC_PROVIDE_IFELSE([AC_PROG_FC],
1494 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1496 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1497 dnl pulling things in needlessly.
1498 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1500 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1502 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1504 [m4_ifdef([AC_PROG_GCJ],
1505 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1506 m4_ifdef([A][M_PROG_GCJ],
1507 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1508 m4_ifdef([LT_PROG_GCJ],
1509 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1511 AC_PROVIDE_IFELSE([LT_PROG_RC],
1513 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1514 ])# _LT_LANG_DEFAULT_CONFIG
1517 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1518 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1519 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1520 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1521 dnl aclocal-1.4 backwards compatibility:
1522 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1523 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1524 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1525 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1530 m4_defun([_LT_TAG_COMPILER],
1531 [AC_REQUIRE([AC_PROG_CC])dnl
1533 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1534 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1535 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1536 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1538 # If no C compiler was specified, use CC.
1541 # If no C compiler flags were specified, use CFLAGS.
1542 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1544 # Allow CC to be a program name with arguments.
1546 ])# _LT_TAG_COMPILER
1549 # _LT_COMPILER_BOILERPLATE
1550 # ------------------------
1551 # Check for compiler boilerplate output or warnings with
1552 # the simple compiler test code.
1553 m4_defun([_LT_COMPILER_BOILERPLATE],
1554 [m4_require([_LT_DECL_SED])dnl
1555 ac_outfile=conftest.$ac_objext
1556 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1557 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1558 _lt_compiler_boilerplate=`cat conftest.err`
1560 ])# _LT_COMPILER_BOILERPLATE
1563 # _LT_LINKER_BOILERPLATE
1564 # ----------------------
1565 # Check for linker boilerplate output or warnings with
1566 # the simple link test code.
1567 m4_defun([_LT_LINKER_BOILERPLATE],
1568 [m4_require([_LT_DECL_SED])dnl
1569 ac_outfile=conftest.$ac_objext
1570 echo "$lt_simple_link_test_code" >conftest.$ac_ext
1571 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1572 _lt_linker_boilerplate=`cat conftest.err`
1574 ])# _LT_LINKER_BOILERPLATE
1576 # _LT_REQUIRED_DARWIN_CHECKS
1577 # -------------------------
1578 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1580 rhapsody* | darwin*)
1581 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1582 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1583 AC_CHECK_TOOL([LIPO], [lipo], [:])
1584 AC_CHECK_TOOL([OTOOL], [otool], [:])
1585 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1586 _LT_DECL([], [DSYMUTIL], [1],
1587 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1588 _LT_DECL([], [NMEDIT], [1],
1589 [Tool to change global to local symbols on Mac OS X])
1590 _LT_DECL([], [LIPO], [1],
1591 [Tool to manipulate fat objects and archives on Mac OS X])
1592 _LT_DECL([], [OTOOL], [1],
1593 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1594 _LT_DECL([], [OTOOL64], [1],
1595 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1597 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1598 [lt_cv_apple_cc_single_mod=no
1599 if test -z "${LT_MULTI_MODULE}"; then
1600 # By default we will add the -single_module flag. You can override
1601 # by either setting the environment variable LT_MULTI_MODULE
1602 # non-empty at configure time, or by adding -multi_module to the
1604 rm -rf libconftest.dylib*
1605 echo "int foo(void){return 1;}" > conftest.c
1606 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1607 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1608 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1609 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1611 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1612 lt_cv_apple_cc_single_mod=yes
1614 cat conftest.err >&AS_MESSAGE_LOG_FD
1616 rm -rf libconftest.dylib*
1619 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1620 [lt_cv_ld_exported_symbols_list],
1621 [lt_cv_ld_exported_symbols_list=no
1622 save_LDFLAGS=$LDFLAGS
1623 echo "_main" > conftest.sym
1624 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1625 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1626 [lt_cv_ld_exported_symbols_list=yes],
1627 [lt_cv_ld_exported_symbols_list=no])
1628 LDFLAGS="$save_LDFLAGS"
1631 rhapsody* | darwin1.[[012]])
1632 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1634 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1635 darwin*) # darwin 5.x on
1636 # if running on 10.5 or later, the deployment target defaults
1637 # to the OS version, if on x86, and 10.4, the deployment
1638 # target defaults to 10.4. Don't you love it?
1639 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1640 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1641 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1649 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1650 _lt_dar_single_mod='$single_module'
1652 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1653 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1655 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1657 if test "$DSYMUTIL" != ":"; then
1658 _lt_dsymutil='~$DSYMUTIL $lib || :'
1667 # _LT_DARWIN_LINKER_FEATURES
1668 # --------------------------
1669 # Checks for linker and compiler features on darwin
1670 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1672 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1673 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1674 _LT_TAGVAR(hardcode_direct, $1)=no
1675 _LT_TAGVAR(hardcode_automatic, $1)=yes
1676 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1677 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1678 _LT_TAGVAR(link_all_deplibs, $1)=yes
1679 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1680 case $cc_basename in
1681 ifort*) _lt_dar_can_shared=yes ;;
1682 *) _lt_dar_can_shared=$GCC ;;
1684 if test "$_lt_dar_can_shared" = "yes"; then
1685 output_verbose_link_cmd=echo
1686 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
1687 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1688 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
1689 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
1691 [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1692 _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
1693 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
1697 _LT_TAGVAR(ld_shlibs, $1)=no
1701 # _LT_SYS_MODULE_PATH_AIX
1702 # -----------------------
1703 # Links a minimal program and checks the executable
1704 # for the system default hardcoded library path. In most cases,
1705 # this is /usr/lib:/lib, but when the MPI compilers are used
1706 # the location of the communication and MPI libs are included too.
1707 # If we don't find anything, use the default library path according
1708 # to the aix ld manual.
1709 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1710 [m4_require([_LT_DECL_SED])dnl
1711 AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1712 lt_aix_libpath_sed='
1713 /Import File Strings/,/^$/ {
1719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1720 # Check for a 64-bit object if we didn't find anything.
1721 if test -z "$aix_libpath"; then
1722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1724 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1725 ])# _LT_SYS_MODULE_PATH_AIX
1728 # _LT_SHELL_INIT(ARG)
1729 # -------------------
1730 m4_define([_LT_SHELL_INIT],
1731 [ifdef([AC_DIVERSION_NOTICE],
1732 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1733 [AC_DIVERT_PUSH(NOTICE)])
1739 # _LT_PROG_ECHO_BACKSLASH
1740 # -----------------------
1741 # Add some code to the start of the generated configure script which
1742 # will find an echo command which doesn't interpret backslashes.
1743 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1745 # Check that we are running under the correct shell.
1746 SHELL=${CONFIG_SHELL-/bin/sh}
1750 # Remove one level of quotation (which was required for Make).
1751 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1755 ECHO=${lt_ECHO-echo}
1756 if test "X[$]1" = X--no-reexec; then
1757 # Discard the --no-reexec flag, and continue.
1759 elif test "X[$]1" = X--fallback-echo; then
1760 # Avoid inline document here, it may be left over
1762 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
1763 # Yippee, $ECHO works!
1766 # Restart under the correct shell.
1767 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1770 if test "X[$]1" = X--fallback-echo; then
1771 # used as fallback echo
1779 # The HP-UX ksh and POSIX shell print the target directory to stdout
1781 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1783 if test -z "$lt_ECHO"; then
1784 if test "X${echo_test_string+set}" != Xset; then
1785 # find a string as large as possible, as long as the shell can cope with it
1786 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1787 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1788 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
1789 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
1796 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1797 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1798 test "X$echo_testing_string" = "X$echo_test_string"; then
1801 # The Solaris, AIX, and Digital Unix default echo programs unquote
1802 # backslashes. This makes it impossible to quote backslashes using
1803 # echo "$something" | sed 's/\\/\\\\/g'
1805 # So, first we look for a working echo in the user's PATH.
1807 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1808 for dir in $PATH /usr/ucb; do
1810 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1811 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1812 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1813 test "X$echo_testing_string" = "X$echo_test_string"; then
1820 if test "X$ECHO" = Xecho; then
1821 # We didn't find a better echo, so look for alternatives.
1822 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
1823 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
1824 test "X$echo_testing_string" = "X$echo_test_string"; then
1825 # This shell has a builtin print -r that does the trick.
1827 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
1828 test "X$CONFIG_SHELL" != X/bin/ksh; then
1829 # If we have ksh, try running configure again with it.
1830 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1831 export ORIGINAL_CONFIG_SHELL
1832 CONFIG_SHELL=/bin/ksh
1834 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1838 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
1839 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
1840 test "X$echo_testing_string" = "X$echo_test_string"; then
1841 # Cool, printf works
1843 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1844 test "X$echo_testing_string" = 'X\t' &&
1845 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1846 test "X$echo_testing_string" = "X$echo_test_string"; then
1847 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1849 SHELL="$CONFIG_SHELL"
1851 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1852 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1853 test "X$echo_testing_string" = 'X\t' &&
1854 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1855 test "X$echo_testing_string" = "X$echo_test_string"; then
1856 ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
1858 # maybe with a smaller string...
1861 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1862 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
1869 if test "$prev" != 'sed 50q "[$]0"'; then
1870 echo_test_string=`eval $prev`
1871 export echo_test_string
1872 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1874 # Oops. We lost completely, so just stick with echo.
1883 # Copy echo and quote the copy suitably for passing to libtool from
1884 # the Makefile, instead of quoting the original, which is used later.
1886 if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1887 lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1892 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1893 _LT_DECL([], [ECHO], [1],
1894 [An echo program that does not interpret backslashes])
1895 ])# _LT_PROG_ECHO_BACKSLASH
1900 m4_defun([_LT_ENABLE_LOCK],
1901 [AC_ARG_ENABLE([libtool-lock],
1902 [AS_HELP_STRING([--disable-libtool-lock],
1903 [avoid locking (might break parallel builds)])])
1904 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1906 # Some flags need to be propagated to the compiler or linker for good
1910 # Find out which ABI we are using.
1911 echo 'int i;' > conftest.$ac_ext
1912 if AC_TRY_EVAL(ac_compile); then
1913 case `/usr/bin/file conftest.$ac_objext` in
1925 # Find out which ABI we are using.
1926 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1927 if AC_TRY_EVAL(ac_compile); then
1928 if test "$lt_cv_prog_gnu_ld" = yes; then
1929 case `/usr/bin/file conftest.$ac_objext` in
1931 LD="${LD-ld} -melf32bsmip"
1934 LD="${LD-ld} -melf32bmipn32"
1937 LD="${LD-ld} -melf64bmip"
1941 case `/usr/bin/file conftest.$ac_objext` in
1957 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1958 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1959 # Find out which ABI we are using.
1960 echo 'int i;' > conftest.$ac_ext
1961 if AC_TRY_EVAL(ac_compile); then
1962 case `/usr/bin/file conftest.o` in
1965 x86_64-*kfreebsd*-gnu)
1966 LD="${LD-ld} -m elf_i386_fbsd"
1969 LD="${LD-ld} -m elf_i386"
1971 ppc64-*linux*|powerpc64-*linux*)
1972 LD="${LD-ld} -m elf32ppclinux"
1975 LD="${LD-ld} -m elf_s390"
1978 LD="${LD-ld} -m elf32_sparc"
1984 x86_64-*kfreebsd*-gnu)
1985 LD="${LD-ld} -m elf_x86_64_fbsd"
1988 LD="${LD-ld} -m elf_x86_64"
1990 ppc*-*linux*|powerpc*-*linux*)
1991 LD="${LD-ld} -m elf64ppc"
1993 s390*-*linux*|s390*-*tpf*)
1994 LD="${LD-ld} -m elf64_s390"
1997 LD="${LD-ld} -m elf64_sparc"
2007 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2008 SAVE_CFLAGS="$CFLAGS"
2009 CFLAGS="$CFLAGS -belf"
2010 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2012 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2014 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2015 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2016 CFLAGS="$SAVE_CFLAGS"
2020 # Find out which ABI we are using.
2021 echo 'int i;' > conftest.$ac_ext
2022 if AC_TRY_EVAL(ac_compile); then
2023 case `/usr/bin/file conftest.o` in
2025 case $lt_cv_prog_gnu_ld in
2026 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2028 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2040 need_locks="$enable_libtool_lock"
2044 # _LT_CMD_OLD_ARCHIVE
2045 # -------------------
2046 m4_defun([_LT_CMD_OLD_ARCHIVE],
2047 [AC_CHECK_TOOL(AR, ar, false)
2048 test -z "$AR" && AR=ar
2049 test -z "$AR_FLAGS" && AR_FLAGS=cru
2050 _LT_DECL([], [AR], [1], [The archiver])
2051 _LT_DECL([], [AR_FLAGS], [1])
2053 AC_CHECK_TOOL(STRIP, strip, :)
2054 test -z "$STRIP" && STRIP=:
2055 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
2057 AC_CHECK_TOOL(RANLIB, ranlib, :)
2058 test -z "$RANLIB" && RANLIB=:
2059 _LT_DECL([], [RANLIB], [1],
2060 [Commands used to install an old-style archive])
2062 # Determine commands to create old-style static archives.
2063 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2064 old_postinstall_cmds='chmod 644 $oldlib'
2065 old_postuninstall_cmds=
2067 if test -n "$RANLIB"; then
2070 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2073 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2076 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2078 _LT_DECL([], [old_postinstall_cmds], [2])
2079 _LT_DECL([], [old_postuninstall_cmds], [2])
2080 _LT_TAGDECL([], [old_archive_cmds], [2],
2081 [Commands used to build an old-style archive])
2082 ])# _LT_CMD_OLD_ARCHIVE
2085 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2086 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2087 # ----------------------------------------------------------------
2088 # Check whether the given compiler option works
2089 AC_DEFUN([_LT_COMPILER_OPTION],
2090 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2091 m4_require([_LT_DECL_SED])dnl
2092 AC_CACHE_CHECK([$1], [$2],
2094 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2096 lt_compiler_flag="$3"
2097 # Insert the option either (1) after the last *FLAGS variable, or
2098 # (2) before a word containing "conftest.", or (3) at the end.
2099 # Note that $ac_compile itself does not contain backslashes and begins
2100 # with a dollar sign (not a hyphen), so the echo should work correctly.
2101 # The option is referenced via a variable to avoid confusing sed.
2102 lt_compile=`echo "$ac_compile" | $SED \
2103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2104 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2105 -e 's:$: $lt_compiler_flag:'`
2106 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2107 (eval "$lt_compile" 2>conftest.err)
2109 cat conftest.err >&AS_MESSAGE_LOG_FD
2110 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2111 if (exit $ac_status) && test -s "$ac_outfile"; then
2112 # The compiler can only warn and ignore the option if not recognized
2113 # So say no if there are warnings other than the usual output.
2114 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2123 if test x"[$]$2" = xyes; then
2124 m4_if([$5], , :, [$5])
2126 m4_if([$6], , :, [$6])
2128 ])# _LT_COMPILER_OPTION
2131 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2132 dnl aclocal-1.4 backwards compatibility:
2133 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2136 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2137 # [ACTION-SUCCESS], [ACTION-FAILURE])
2138 # ----------------------------------------------------
2139 # Check whether the given linker option works
2140 AC_DEFUN([_LT_LINKER_OPTION],
2141 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2142 m4_require([_LT_DECL_SED])dnl
2143 AC_CACHE_CHECK([$1], [$2],
2145 save_LDFLAGS="$LDFLAGS"
2146 LDFLAGS="$LDFLAGS $3"
2147 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2149 # The linker can only warn and ignore the option if not recognized
2150 # So say no if there are warnings
2151 if test -s conftest.err; then
2152 # Append any errors to the config.log.
2153 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2154 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2156 if diff conftest.exp conftest.er2 >/dev/null; then
2164 LDFLAGS="$save_LDFLAGS"
2167 if test x"[$]$2" = xyes; then
2168 m4_if([$4], , :, [$4])
2170 m4_if([$5], , :, [$5])
2172 ])# _LT_LINKER_OPTION
2175 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2176 dnl aclocal-1.4 backwards compatibility:
2177 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2182 AC_DEFUN([LT_CMD_MAX_LEN],
2183 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2184 # find the maximum length of command line arguments
2185 AC_MSG_CHECKING([the maximum length of command line arguments])
2186 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2192 # On DJGPP, this test can blow up pretty badly due to problems in libc
2193 # (any single argument exceeding 2000 bytes causes a buffer overrun
2194 # during glob expansion). Even if it were fixed, the result of this
2195 # check would be larger than it should be.
2196 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2200 # Under GNU Hurd, this test is not required because there is
2201 # no limit to the length of command line arguments.
2202 # Libtool will interpret -1 as no limit whatsoever
2203 lt_cv_sys_max_cmd_len=-1;
2206 cygwin* | mingw* | cegcc*)
2207 # On Win9x/ME, this test blows up -- it succeeds, but takes
2208 # about 5 minutes as the teststring grows exponentially.
2209 # Worse, since 9x/ME are not pre-emptively multitasking,
2210 # you end up with a "frozen" computer, even though with patience
2211 # the test eventually succeeds (with a max line length of 256k).
2212 # Instead, let's just punt: use the minimum linelength reported by
2213 # all of the supported platforms: 8192 (on NT/2K/XP).
2214 lt_cv_sys_max_cmd_len=8192;
2218 # On AmigaOS with pdksh, this test takes hours, literally.
2219 # So we just punt and use a minimum line length of 8192.
2220 lt_cv_sys_max_cmd_len=8192;
2223 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2224 # This has been around since 386BSD, at least. Likely further.
2225 if test -x /sbin/sysctl; then
2226 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2227 elif test -x /usr/sbin/sysctl; then
2228 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2230 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2232 # And add a safety zone
2233 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2234 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2238 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2239 lt_cv_sys_max_cmd_len=196608
2243 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2244 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2245 # nice to cause kernel panics so lets avoid the loop below.
2246 # First set a reasonable default.
2247 lt_cv_sys_max_cmd_len=16384
2249 if test -x /sbin/sysconfig; then
2250 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2251 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2256 lt_cv_sys_max_cmd_len=102400
2258 sysv5* | sco5v6* | sysv4.2uw2*)
2259 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2260 if test -n "$kargmax"; then
2261 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2263 lt_cv_sys_max_cmd_len=32768
2267 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2268 if test -n "$lt_cv_sys_max_cmd_len"; then
2269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2270 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2272 # Make teststring a little bigger before we do anything with it.
2273 # a 1K string should be a reasonable start.
2274 for i in 1 2 3 4 5 6 7 8 ; do
2275 teststring=$teststring$teststring
2277 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2278 # If test is not a shell built-in, we'll probably end up computing a
2279 # maximum length that is only half of the actual maximum length, but
2281 while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
2282 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
2283 test $i != 17 # 1/2 MB should be enough
2286 teststring=$teststring$teststring
2288 # Only check the string length outside the loop.
2289 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2291 # Add a significant safety factor because C++ compilers can tack on
2292 # massive amounts of additional arguments before passing them to the
2293 # linker. It appears as though 1/2 is a usable value.
2294 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2299 if test -n $lt_cv_sys_max_cmd_len ; then
2300 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2304 max_cmd_len=$lt_cv_sys_max_cmd_len
2305 _LT_DECL([], [max_cmd_len], [0],
2306 [What is the maximum length of a command?])
2310 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2311 dnl aclocal-1.4 backwards compatibility:
2312 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2317 m4_defun([_LT_HEADER_DLFCN],
2318 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2319 ])# _LT_HEADER_DLFCN
2322 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2323 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2324 # ----------------------------------------------------------------
2325 m4_defun([_LT_TRY_DLOPEN_SELF],
2326 [m4_require([_LT_HEADER_DLFCN])dnl
2327 if test "$cross_compiling" = yes; then :
2330 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2331 lt_status=$lt_dlunknown
2332 cat > conftest.$ac_ext <<_LT_EOF
2333 [#line __oline__ "configure"
2334 #include "confdefs.h"
2343 # define LT_DLGLOBAL RTLD_GLOBAL
2346 # define LT_DLGLOBAL DL_GLOBAL
2348 # define LT_DLGLOBAL 0
2352 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2353 find out it does not work in some platform. */
2354 #ifndef LT_DLLAZY_OR_NOW
2356 # define LT_DLLAZY_OR_NOW RTLD_LAZY
2359 # define LT_DLLAZY_OR_NOW DL_LAZY
2362 # define LT_DLLAZY_OR_NOW RTLD_NOW
2365 # define LT_DLLAZY_OR_NOW DL_NOW
2367 # define LT_DLLAZY_OR_NOW 0
2374 void fnord() { int i=42;}
2377 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2378 int status = $lt_dlunknown;
2382 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2383 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2384 /* dlclose (self); */
2392 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2393 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2396 x$lt_dlno_uscore) $1 ;;
2397 x$lt_dlneed_uscore) $2 ;;
2398 x$lt_dlunknown|x*) $3 ;;
2401 # compilation failed
2406 ])# _LT_TRY_DLOPEN_SELF
2409 # LT_SYS_DLOPEN_SELF
2410 # ------------------
2411 AC_DEFUN([LT_SYS_DLOPEN_SELF],
2412 [m4_require([_LT_HEADER_DLFCN])dnl
2413 if test "x$enable_dlopen" != xyes; then
2414 enable_dlopen=unknown
2415 enable_dlopen_self=unknown
2416 enable_dlopen_self_static=unknown
2423 lt_cv_dlopen="load_add_on"
2425 lt_cv_dlopen_self=yes
2428 mingw* | pw32* | cegcc*)
2429 lt_cv_dlopen="LoadLibrary"
2434 lt_cv_dlopen="dlopen"
2439 # if libdl is installed we need to link against it
2440 AC_CHECK_LIB([dl], [dlopen],
2441 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2444 lt_cv_dlopen_self=yes
2449 AC_CHECK_FUNC([shl_load],
2450 [lt_cv_dlopen="shl_load"],
2451 [AC_CHECK_LIB([dld], [shl_load],
2452 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2453 [AC_CHECK_FUNC([dlopen],
2454 [lt_cv_dlopen="dlopen"],
2455 [AC_CHECK_LIB([dl], [dlopen],
2456 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2457 [AC_CHECK_LIB([svld], [dlopen],
2458 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2459 [AC_CHECK_LIB([dld], [dld_link],
2460 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2469 if test "x$lt_cv_dlopen" != xno; then
2475 case $lt_cv_dlopen in
2477 save_CPPFLAGS="$CPPFLAGS"
2478 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2480 save_LDFLAGS="$LDFLAGS"
2481 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2484 LIBS="$lt_cv_dlopen_libs $LIBS"
2486 AC_CACHE_CHECK([whether a program can dlopen itself],
2487 lt_cv_dlopen_self, [dnl
2488 _LT_TRY_DLOPEN_SELF(
2489 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2490 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2493 if test "x$lt_cv_dlopen_self" = xyes; then
2494 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2495 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2496 lt_cv_dlopen_self_static, [dnl
2497 _LT_TRY_DLOPEN_SELF(
2498 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2499 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2503 CPPFLAGS="$save_CPPFLAGS"
2504 LDFLAGS="$save_LDFLAGS"
2509 case $lt_cv_dlopen_self in
2510 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2511 *) enable_dlopen_self=unknown ;;
2514 case $lt_cv_dlopen_self_static in
2515 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2516 *) enable_dlopen_self_static=unknown ;;
2519 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2520 [Whether dlopen is supported])
2521 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2522 [Whether dlopen of programs is supported])
2523 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2524 [Whether dlopen of statically linked programs is supported])
2525 ])# LT_SYS_DLOPEN_SELF
2528 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2529 dnl aclocal-1.4 backwards compatibility:
2530 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2533 # _LT_COMPILER_C_O([TAGNAME])
2534 # ---------------------------
2535 # Check to see if options -c and -o are simultaneously supported by compiler.
2536 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2537 m4_defun([_LT_COMPILER_C_O],
2538 [m4_require([_LT_DECL_SED])dnl
2539 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2540 m4_require([_LT_TAG_COMPILER])dnl
2541 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2542 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2543 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2544 $RM -r conftest 2>/dev/null
2548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2550 lt_compiler_flag="-o out/conftest2.$ac_objext"
2551 # Insert the option either (1) after the last *FLAGS variable, or
2552 # (2) before a word containing "conftest.", or (3) at the end.
2553 # Note that $ac_compile itself does not contain backslashes and begins
2554 # with a dollar sign (not a hyphen), so the echo should work correctly.
2555 lt_compile=`echo "$ac_compile" | $SED \
2556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2557 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2558 -e 's:$: $lt_compiler_flag:'`
2559 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2560 (eval "$lt_compile" 2>out/conftest.err)
2562 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2563 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2566 # The compiler can only warn and ignore the option if not recognized
2567 # So say no if there are warnings
2568 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2571 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2574 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2576 # SGI C++ compiler will create directory out/ii_files/ for
2577 # template instantiation
2578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2579 $RM out/* && rmdir out
2584 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2585 [Does compiler simultaneously support -c and -o options?])
2586 ])# _LT_COMPILER_C_O
2589 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2590 # ----------------------------------
2591 # Check to see if we can do hard links to lock some files if needed
2592 m4_defun([_LT_COMPILER_FILE_LOCKS],
2593 [m4_require([_LT_ENABLE_LOCK])dnl
2594 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2595 _LT_COMPILER_C_O([$1])
2597 hard_links="nottested"
2598 if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2599 # do not overwrite the value of need_locks provided by the user
2600 AC_MSG_CHECKING([if we can lock with hard links])
2603 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2605 ln conftest.a conftest.b 2>&5 || hard_links=no
2606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2607 AC_MSG_RESULT([$hard_links])
2608 if test "$hard_links" = no; then
2609 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2615 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2616 ])# _LT_COMPILER_FILE_LOCKS
2621 m4_defun([_LT_CHECK_OBJDIR],
2622 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2623 [rm -f .libs 2>/dev/null
2624 mkdir .libs 2>/dev/null
2625 if test -d .libs; then
2628 # MS-DOS does not allow filenames that begin with a dot.
2631 rmdir .libs 2>/dev/null])
2632 objdir=$lt_cv_objdir
2633 _LT_DECL([], [objdir], [0],
2634 [The name of the directory that contains temporary libtool files])dnl
2635 m4_pattern_allow([LT_OBJDIR])dnl
2636 AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2637 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2638 ])# _LT_CHECK_OBJDIR
2641 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2642 # --------------------------------------
2643 # Check hardcoding attributes.
2644 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2645 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2646 _LT_TAGVAR(hardcode_action, $1)=
2647 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2648 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2649 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2651 # We can hardcode non-existent directories.
2652 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2653 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2654 # have to relink, otherwise we might link with an installed library
2655 # when we should be linking with a yet-to-be-installed one
2656 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2657 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2658 # Linking always hardcodes the temporary library directory.
2659 _LT_TAGVAR(hardcode_action, $1)=relink
2661 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2662 _LT_TAGVAR(hardcode_action, $1)=immediate
2665 # We cannot hardcode anything, or else we can only hardcode existing
2667 _LT_TAGVAR(hardcode_action, $1)=unsupported
2669 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2671 if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2672 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2673 # Fast installation is not supported
2674 enable_fast_install=no
2675 elif test "$shlibpath_overrides_runpath" = yes ||
2676 test "$enable_shared" = no; then
2677 # Fast installation is not necessary
2678 enable_fast_install=needless
2680 _LT_TAGDECL([], [hardcode_action], [0],
2681 [How to hardcode a shared library path into an executable])
2682 ])# _LT_LINKER_HARDCODE_LIBPATH
2687 m4_defun([_LT_CMD_STRIPLIB],
2688 [m4_require([_LT_DECL_EGREP])
2691 AC_MSG_CHECKING([whether stripping libraries is possible])
2692 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2693 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2694 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2695 AC_MSG_RESULT([yes])
2697 # FIXME - insert some real tests, host_os isn't really good enough
2700 if test -n "$STRIP" ; then
2701 striplib="$STRIP -x"
2702 old_striplib="$STRIP -S"
2703 AC_MSG_RESULT([yes])
2713 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2714 _LT_DECL([], [striplib], [1])
2715 ])# _LT_CMD_STRIPLIB
2718 # _LT_SYS_DYNAMIC_LINKER([TAG])
2719 # -----------------------------
2720 # PORTME Fill in your ld.so characteristics
2721 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2722 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2723 m4_require([_LT_DECL_EGREP])dnl
2724 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2725 m4_require([_LT_DECL_OBJDUMP])dnl
2726 m4_require([_LT_DECL_SED])dnl
2727 AC_MSG_CHECKING([dynamic linker characteristics])
2730 if test "$GCC" = yes; then
2732 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2733 *) lt_awk_arg="/^libraries:/" ;;
2735 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2736 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
2737 # if the path contains ";" then we assume it to be the separator
2738 # otherwise default to the standard path separator (i.e. ":") - it is
2739 # assumed that no part of a normal pathname contains ";" but that should
2740 # okay in the real world where ";" in dirpaths is itself problematic.
2741 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
2743 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2745 # Ok, now we have the path, separated by spaces, we can step through it
2746 # and add multilib dir if necessary.
2747 lt_tmp_lt_search_path_spec=
2748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2749 for lt_sys_path in $lt_search_path_spec; do
2750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2753 test -d "$lt_sys_path" && \
2754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2757 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
2758 BEGIN {RS=" "; FS="/|\n";} {
2761 for (lt_i = NF; lt_i > 0; lt_i--) {
2762 if ($lt_i != "" && $lt_i != ".") {
2763 if ($lt_i == "..") {
2766 if (lt_count == 0) {
2767 lt_foo="/" $lt_i lt_foo;
2774 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2775 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2777 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
2779 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2782 libname_spec='lib$name'
2790 shlibpath_overrides_runpath=unknown
2792 dynamic_linker="$host_os ld.so"
2793 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2794 need_lib_prefix=unknown
2795 hardcode_into_libs=no
2797 # when you set need_version to no, make sure it does not cause -set_version
2798 # flags to be left without arguments
2799 need_version=unknown
2804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2805 shlibpath_var=LIBPATH
2807 # AIX 3 has no versioning support, so we append a major version to the name.
2808 soname_spec='${libname}${release}${shared_ext}$major'
2815 hardcode_into_libs=yes
2816 if test "$host_cpu" = ia64; then
2817 # AIX 5 supports IA64
2818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2819 shlibpath_var=LD_LIBRARY_PATH
2821 # With GCC up to 2.95.x, collect2 would create an import file
2822 # for dependence libraries. The import file would start with
2823 # the line `#! .'. This would cause the generated library to
2824 # depend on `.', always an invalid library. This was fixed in
2825 # development snapshots of GCC prior to 3.0.
2827 aix4 | aix4.[[01]] | aix4.[[01]].*)
2828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2830 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2838 # soname into executable. Probably we can add versioning support to
2839 # collect2, so additional links can be useful in future.
2840 if test "$aix_use_runtimelinking" = yes; then
2841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2842 # instead of lib<name>.a to let people know that these are not
2843 # typical AIX shared libraries.
2844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2846 # We preserve .a as extension for shared libraries through AIX4.2
2847 # and later when we are not doing run time linking.
2848 library_names_spec='${libname}${release}.a $libname.a'
2849 soname_spec='${libname}${release}${shared_ext}$major'
2851 shlibpath_var=LIBPATH
2858 # Since July 2007 AmigaOS4 officially supports .so libraries.
2859 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2863 library_names_spec='$libname.ixlibrary $libname.a'
2864 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2865 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
2871 library_names_spec='${libname}${shared_ext}'
2872 dynamic_linker="$host_os ld.so"
2873 shlibpath_var=LIBRARY_PATH
2879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2880 soname_spec='${libname}${release}${shared_ext}$major'
2881 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2882 shlibpath_var=LD_LIBRARY_PATH
2883 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2884 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2885 # the default ld.so.conf also contains /usr/contrib/lib and
2886 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2887 # libtool to hard-code these into programs
2890 cygwin* | mingw* | pw32* | cegcc*)
2891 version_type=windows
2896 case $GCC,$host_os in
2897 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
2898 library_names_spec='$libname.dll.a'
2899 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2900 postinstall_cmds='base_file=`basename \${file}`~
2901 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
2902 dldir=$destdir/`dirname \$dlpath`~
2903 test -d \$dldir || mkdir -p \$dldir~
2904 $install_prog $dir/$dlname \$dldir/$dlname~
2905 chmod a+x \$dldir/$dlname~
2906 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2907 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2910 dlpath=$dir/\$dldll~
2912 shlibpath_overrides_runpath=yes
2916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2921 # MinGW DLLs use traditional 'lib' prefix
2922 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2923 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2924 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2925 # It is most probably a Windows format PATH printed by
2926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
2927 # path with ; separators, and with drive letters. We can handle the
2928 # drive letters (cygwin fileutils understands them), so leave them,
2929 # especially as we might pass files found there to a mingw objdump,
2930 # which wouldn't understand a cygwinified path. Ahh.
2931 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2933 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2937 # pw32 DLLs use 'pw' prefix rather than 'lib'
2938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2947 dynamic_linker='Win32 ld.exe'
2948 # FIXME: first we should search . and the directory the executable is in
2952 darwin* | rhapsody*)
2953 dynamic_linker="$host_os dyld"
2957 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2958 soname_spec='${libname}${release}${major}$shared_ext'
2959 shlibpath_overrides_runpath=yes
2960 shlibpath_var=DYLD_LIBRARY_PATH
2961 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2963 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2964 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2972 soname_spec='${libname}${release}${shared_ext}$major'
2973 shlibpath_var=LD_LIBRARY_PATH
2980 freebsd* | dragonfly*)
2981 # DragonFly does not have aout. When/if they implement a new
2982 # versioning mechanism, adjust this.
2983 if test -x /usr/bin/objformat; then
2984 objformat=`/usr/bin/objformat`
2987 freebsd[[123]]*) objformat=aout ;;
2991 version_type=freebsd-$objformat
2992 case $version_type in
2994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3003 shlibpath_var=LD_LIBRARY_PATH
3006 shlibpath_overrides_runpath=yes
3008 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3009 shlibpath_overrides_runpath=yes
3010 hardcode_into_libs=yes
3012 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3013 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3014 shlibpath_overrides_runpath=no
3015 hardcode_into_libs=yes
3017 *) # from 4.6 on, and DragonFly
3018 shlibpath_overrides_runpath=yes
3019 hardcode_into_libs=yes
3028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3029 soname_spec='${libname}${release}${shared_ext}$major'
3030 shlibpath_var=LD_LIBRARY_PATH
3031 hardcode_into_libs=yes
3034 hpux9* | hpux10* | hpux11*)
3035 # Give a soname corresponding to the major version so that dld.sl refuses to
3036 # link against other versions.
3043 hardcode_into_libs=yes
3044 dynamic_linker="$host_os dld.so"
3045 shlibpath_var=LD_LIBRARY_PATH
3046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3048 soname_spec='${libname}${release}${shared_ext}$major'
3049 if test "X$HPUX_IA64_MODE" = X32; then
3050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3058 hardcode_into_libs=yes
3059 dynamic_linker="$host_os dld.sl"
3060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3063 soname_spec='${libname}${release}${shared_ext}$major'
3064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3069 dynamic_linker="$host_os dld.sl"
3070 shlibpath_var=SHLIB_PATH
3071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3073 soname_spec='${libname}${release}${shared_ext}$major'
3076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
3077 postinstall_cmds='chmod 555 $lib'
3084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3085 soname_spec='${libname}${release}${shared_ext}$major'
3086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3087 shlibpath_var=LD_LIBRARY_PATH
3088 shlibpath_overrides_runpath=no
3089 hardcode_into_libs=yes
3092 irix5* | irix6* | nonstopux*)
3094 nonstopux*) version_type=nonstopux ;;
3096 if test "$lt_cv_prog_gnu_ld" = yes; then
3104 soname_spec='${libname}${release}${shared_ext}$major'
3105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3107 irix5* | nonstopux*)
3111 case $LD in # libtool.m4 will add one of these switches to LD
3112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3113 libsuff= shlibsuff= libmagic=32-bit;;
3114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3115 libsuff=32 shlibsuff=N32 libmagic=N32;;
3116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3118 *) libsuff= shlibsuff= libmagic=never-match;;
3122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3123 shlibpath_overrides_runpath=no
3124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3126 hardcode_into_libs=yes
3129 # No shared lib support for Linux oldld, aout, or coff.
3130 linux*oldld* | linux*aout* | linux*coff*)
3134 # This must be Linux ELF.
3135 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3140 soname_spec='${libname}${release}${shared_ext}$major'
3141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3142 shlibpath_var=LD_LIBRARY_PATH
3143 shlibpath_overrides_runpath=no
3144 # Some binutils ld are patched to set DT_RUNPATH
3145 save_LDFLAGS=$LDFLAGS
3147 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3148 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3149 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3150 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3151 [shlibpath_overrides_runpath=yes])])
3152 LDFLAGS=$save_LDFLAGS
3155 # This implies no fast_install, which is unacceptable.
3156 # Some rework will be needed to allow for fast_install
3157 # before this can be enabled.
3158 hardcode_into_libs=yes
3160 # Append ld.so.conf contents to the search path
3161 if test -f /etc/ld.so.conf; then
3162 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3163 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3166 # We used to test for /lib/ld.so.1 and disable shared libraries on
3167 # powerpc, because MkLinux only supported shared libraries with the
3168 # GNU dynamic linker. Since this was broken with cross compilers,
3169 # most powerpc-linux boxes support dynamic linking these days and
3170 # people can always --disable-shared, the test was removed, and we
3171 # assume the GNU/Linux dynamic linker is in use.
3172 dynamic_linker='GNU/Linux ld.so'
3179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3180 soname_spec='${libname}${release}${shared_ext}$major'
3181 shlibpath_var=LD_LIBRARY_PATH
3182 shlibpath_overrides_runpath=no
3183 hardcode_into_libs=yes
3184 dynamic_linker='NetBSD ld.elf_so'
3191 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3194 dynamic_linker='NetBSD (a.out) ld.so'
3196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3197 soname_spec='${libname}${release}${shared_ext}$major'
3198 dynamic_linker='NetBSD ld.elf_so'
3200 shlibpath_var=LD_LIBRARY_PATH
3201 shlibpath_overrides_runpath=yes
3202 hardcode_into_libs=yes
3207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3208 shlibpath_var=LD_LIBRARY_PATH
3209 shlibpath_overrides_runpath=yes
3216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3217 soname_spec='${libname}${release}${shared_ext}$major'
3218 shlibpath_var=LD_LIBRARY_PATH
3219 shlibpath_overrides_runpath=no
3220 hardcode_into_libs=yes
3221 dynamic_linker='ldqnx.so'
3226 sys_lib_dlsearch_path_spec="/usr/lib"
3228 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3230 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3231 *) need_version=no ;;
3233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3234 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3235 shlibpath_var=LD_LIBRARY_PATH
3236 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3238 openbsd2.[[89]] | openbsd2.[[89]].*)
3239 shlibpath_overrides_runpath=no
3242 shlibpath_overrides_runpath=yes
3246 shlibpath_overrides_runpath=yes
3251 libname_spec='$name'
3254 library_names_spec='$libname${shared_ext} $libname.a'
3255 dynamic_linker='OS/2 ld.exe'
3256 shlibpath_var=LIBPATH
3259 osf3* | osf4* | osf5*)
3263 soname_spec='${libname}${release}${shared_ext}$major'
3264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3265 shlibpath_var=LD_LIBRARY_PATH
3266 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3267 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3279 soname_spec='${libname}${release}${shared_ext}$major'
3280 shlibpath_var=LD_LIBRARY_PATH
3281 shlibpath_overrides_runpath=yes
3282 hardcode_into_libs=yes
3283 # ldd complains unless libraries are executable
3284 postinstall_cmds='chmod +x $lib'
3289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3290 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3291 shlibpath_var=LD_LIBRARY_PATH
3292 shlibpath_overrides_runpath=yes
3293 if test "$with_gnu_ld" = yes; then
3301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3302 soname_spec='${libname}${release}${shared_ext}$major'
3303 shlibpath_var=LD_LIBRARY_PATH
3304 case $host_vendor in
3306 shlibpath_overrides_runpath=no
3308 runpath_var=LD_RUN_PATH
3316 shlibpath_overrides_runpath=no
3317 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3323 if test -d /usr/nec ;then
3325 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3326 soname_spec='$libname${shared_ext}.$major'
3327 shlibpath_var=LD_LIBRARY_PATH
3331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3332 version_type=freebsd-elf
3335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3336 soname_spec='${libname}${release}${shared_ext}$major'
3337 shlibpath_var=LD_LIBRARY_PATH
3338 shlibpath_overrides_runpath=yes
3339 hardcode_into_libs=yes
3340 if test "$with_gnu_ld" = yes; then
3341 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3343 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3346 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3350 sys_lib_dlsearch_path_spec='/usr/lib'
3354 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3359 shlibpath_var=LD_LIBRARY_PATH
3360 shlibpath_overrides_runpath=no
3361 hardcode_into_libs=yes
3366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3367 soname_spec='${libname}${release}${shared_ext}$major'
3368 shlibpath_var=LD_LIBRARY_PATH
3375 AC_MSG_RESULT([$dynamic_linker])
3376 test "$dynamic_linker" = no && can_build_shared=no
3378 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3379 if test "$GCC" = yes; then
3380 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3383 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3384 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3386 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3387 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3390 _LT_DECL([], [variables_saved_for_relink], [1],
3391 [Variables whose values should be saved in libtool wrapper scripts and
3392 restored at link time])
3393 _LT_DECL([], [need_lib_prefix], [0],
3394 [Do we need the "lib" prefix for modules?])
3395 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3396 _LT_DECL([], [version_type], [0], [Library versioning type])
3397 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3398 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3399 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3400 [Is shlibpath searched before the hard-coded library search path?])
3401 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3402 _LT_DECL([], [library_names_spec], [1],
3403 [[List of archive names. First name is the real one, the rest are links.
3404 The last name is the one that the linker finds with -lNAME]])
3405 _LT_DECL([], [soname_spec], [1],
3406 [[The coded name of the library, if different from the real name]])
3407 _LT_DECL([], [postinstall_cmds], [2],
3408 [Command to use after installation of a shared archive])
3409 _LT_DECL([], [postuninstall_cmds], [2],
3410 [Command to use after uninstallation of a shared archive])
3411 _LT_DECL([], [finish_cmds], [2],
3412 [Commands used to finish a libtool library installation in a directory])
3413 _LT_DECL([], [finish_eval], [1],
3414 [[As "finish_cmds", except a single script fragment to be evaled but
3416 _LT_DECL([], [hardcode_into_libs], [0],
3417 [Whether we should hardcode library paths into libraries])
3418 _LT_DECL([], [sys_lib_search_path_spec], [2],
3419 [Compile-time system search path for libraries])
3420 _LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3421 [Run-time system search path for libraries])
3422 ])# _LT_SYS_DYNAMIC_LINKER
3425 # _LT_PATH_TOOL_PREFIX(TOOL)
3426 # --------------------------
3427 # find a file program which can recognize shared library
3428 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3429 [m4_require([_LT_DECL_EGREP])dnl
3430 AC_MSG_CHECKING([for $1])
3431 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3433 [[\\/*] | ?:[\\/]*])
3434 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3437 lt_save_MAGIC_CMD="$MAGIC_CMD"
3438 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3439 dnl $ac_dummy forces splitting on constant user-supplied paths.
3440 dnl POSIX.2 word splitting is done only on the output of word expansions,
3441 dnl not every word. This closes a longstanding sh security hole.
3442 ac_dummy="m4_if([$2], , $PATH, [$2])"
3443 for ac_dir in $ac_dummy; do
3445 test -z "$ac_dir" && ac_dir=.
3446 if test -f $ac_dir/$1; then
3447 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3448 if test -n "$file_magic_test_file"; then
3449 case $deplibs_check_method in
3451 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3452 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3453 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3454 $EGREP "$file_magic_regex" > /dev/null; then
3459 *** Warning: the command libtool uses to detect shared libraries,
3460 *** $file_magic_cmd, produces output that libtool cannot recognize.
3461 *** The result is that libtool may fail to recognize shared libraries
3462 *** as such. This will affect the creation of libtool libraries that
3463 *** depend on shared libraries, but programs linked with such libtool
3464 *** libraries will work regardless of this problem. Nevertheless, you
3465 *** may want to report the problem to your system manager and/or to
3466 *** bug-libtool@gnu.org
3476 MAGIC_CMD="$lt_save_MAGIC_CMD"
3479 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3480 if test -n "$MAGIC_CMD"; then
3481 AC_MSG_RESULT($MAGIC_CMD)
3485 _LT_DECL([], [MAGIC_CMD], [0],
3486 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3487 ])# _LT_PATH_TOOL_PREFIX
3490 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3491 dnl aclocal-1.4 backwards compatibility:
3492 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3497 # find a file program which can recognize a shared library
3498 m4_defun([_LT_PATH_MAGIC],
3499 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3500 if test -z "$lt_cv_path_MAGIC_CMD"; then
3501 if test -n "$ac_tool_prefix"; then
3502 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3512 # find the pathname to the GNU or non-GNU linker
3513 AC_DEFUN([LT_PATH_LD],
3514 [AC_REQUIRE([AC_PROG_CC])dnl
3515 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3516 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3517 m4_require([_LT_DECL_SED])dnl
3518 m4_require([_LT_DECL_EGREP])dnl
3520 AC_ARG_WITH([gnu-ld],
3521 [AS_HELP_STRING([--with-gnu-ld],
3522 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3523 [test "$withval" = no || with_gnu_ld=yes],
3524 [with_gnu_ld=no])dnl
3527 if test "$GCC" = yes; then
3528 # Check if gcc -print-prog-name=ld gives a path.
3529 AC_MSG_CHECKING([for ld used by $CC])
3532 # gcc leaves a trailing carriage return which upsets mingw
3533 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3535 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3538 # Accept absolute paths.
3539 [[\\/]]* | ?:[[\\/]]*)
3540 re_direlt='/[[^/]][[^/]]*/\.\./'
3541 # Canonicalize the pathname of ld
3542 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3543 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3544 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3546 test -z "$LD" && LD="$ac_prog"
3549 # If it fails, then pretend we aren't using GCC.
3553 # If it is relative, then search for the first ld in PATH.
3557 elif test "$with_gnu_ld" = yes; then
3558 AC_MSG_CHECKING([for GNU ld])
3560 AC_MSG_CHECKING([for non-GNU ld])
3562 AC_CACHE_VAL(lt_cv_path_LD,
3563 [if test -z "$LD"; then
3564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3565 for ac_dir in $PATH; do
3567 test -z "$ac_dir" && ac_dir=.
3568 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3569 lt_cv_path_LD="$ac_dir/$ac_prog"
3570 # Check to see if the program is GNU ld. I'd rather use --version,
3571 # but apparently some variants of GNU ld only accept -v.
3572 # Break only if it was the GNU/non-GNU ld that we prefer.
3573 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3574 *GNU* | *'with BFD'*)
3575 test "$with_gnu_ld" != no && break
3578 test "$with_gnu_ld" != yes && break
3585 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3588 if test -n "$LD"; then
3593 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3597 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3601 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3602 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3603 dnl aclocal-1.4 backwards compatibility:
3604 dnl AC_DEFUN([AM_PROG_LD], [])
3605 dnl AC_DEFUN([AC_PROG_LD], [])
3610 m4_defun([_LT_PATH_LD_GNU],
3611 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3612 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3613 case `$LD -v 2>&1 </dev/null` in
3614 *GNU* | *'with BFD'*)
3615 lt_cv_prog_gnu_ld=yes
3618 lt_cv_prog_gnu_ld=no
3621 with_gnu_ld=$lt_cv_prog_gnu_ld
3627 # find reload flag for linker
3628 # -- PORTME Some linkers may need a different reload flag.
3629 m4_defun([_LT_CMD_RELOAD],
3630 [AC_CACHE_CHECK([for $LD option to reload object files],
3631 lt_cv_ld_reload_flag,
3632 [lt_cv_ld_reload_flag='-r'])
3633 reload_flag=$lt_cv_ld_reload_flag
3634 case $reload_flag in
3636 *) reload_flag=" $reload_flag" ;;
3638 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3641 if test "$GCC" = yes; then
3642 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3648 _LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3649 _LT_DECL([], [reload_cmds], [2])dnl
3653 # _LT_CHECK_MAGIC_METHOD
3654 # ----------------------
3655 # how to check for library dependencies
3656 # -- PORTME fill in with the dynamic library characteristics
3657 m4_defun([_LT_CHECK_MAGIC_METHOD],
3658 [m4_require([_LT_DECL_EGREP])
3659 m4_require([_LT_DECL_OBJDUMP])
3660 AC_CACHE_CHECK([how to recognize dependent libraries],
3661 lt_cv_deplibs_check_method,
3662 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3663 lt_cv_file_magic_test_file=
3664 lt_cv_deplibs_check_method='unknown'
3665 # Need to set the preceding variable on all platforms that support
3666 # interlibrary dependencies.
3667 # 'none' -- dependencies not supported.
3668 # `unknown' -- same as none, but documents that we really don't know.
3669 # 'pass_all' -- all dependencies passed with no checks.
3670 # 'test_compile' -- check by making test program.
3671 # 'file_magic [[regex]]' -- check by looking for files in library path
3672 # which responds to the $file_magic_cmd with a given extended regex.
3673 # If you have `file' or equivalent on your system and you're not sure
3674 # whether `pass_all' will *always* work, you probably want this one.
3678 lt_cv_deplibs_check_method=pass_all
3682 lt_cv_deplibs_check_method=pass_all
3686 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3687 lt_cv_file_magic_cmd='/usr/bin/file -L'
3688 lt_cv_file_magic_test_file=/shlib/libc.so
3692 # func_win32_libid is a shell function defined in ltmain.sh
3693 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3694 lt_cv_file_magic_cmd='func_win32_libid'
3698 # Base MSYS/MinGW do not provide the 'file' command needed by
3699 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3700 # unless we find 'file', for example because we are cross-compiling.
3701 if ( file / ) >/dev/null 2>&1; then
3702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3703 lt_cv_file_magic_cmd='func_win32_libid'
3705 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3706 lt_cv_file_magic_cmd='$OBJDUMP -f'
3711 # use the weaker test based on 'objdump'. See mingw*.
3712 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3713 lt_cv_file_magic_cmd='$OBJDUMP -f'
3716 darwin* | rhapsody*)
3717 lt_cv_deplibs_check_method=pass_all
3720 freebsd* | dragonfly*)
3721 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3724 # Not sure whether the presence of OpenBSD here was a mistake.
3725 # Let's accept both of them until this is cleared up.
3726 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3727 lt_cv_file_magic_cmd=/usr/bin/file
3728 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3732 lt_cv_deplibs_check_method=pass_all
3737 lt_cv_deplibs_check_method=pass_all
3740 hpux10.20* | hpux11*)
3741 lt_cv_file_magic_cmd=/usr/bin/file
3744 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3745 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3748 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]']
3749 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3752 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3753 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3759 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3760 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3763 irix5* | irix6* | nonstopux*)
3765 *-32|*"-32 ") libmagic=32-bit;;
3766 *-n32|*"-n32 ") libmagic=N32;;
3767 *-64|*"-64 ") libmagic=64-bit;;
3768 *) libmagic=never-match;;
3770 lt_cv_deplibs_check_method=pass_all
3773 # This must be Linux ELF.
3774 linux* | k*bsd*-gnu | kopensolaris*-gnu)
3775 lt_cv_deplibs_check_method=pass_all
3778 netbsd* | netbsdelf*-gnu)
3779 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3780 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3782 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3787 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3788 lt_cv_file_magic_cmd=/usr/bin/file
3789 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3793 lt_cv_deplibs_check_method=pass_all
3797 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3798 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3800 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3804 osf3* | osf4* | osf5*)
3805 lt_cv_deplibs_check_method=pass_all
3809 lt_cv_deplibs_check_method=pass_all
3813 lt_cv_deplibs_check_method=pass_all
3816 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3817 lt_cv_deplibs_check_method=pass_all
3821 case $host_vendor in
3823 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]'
3824 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3827 lt_cv_deplibs_check_method=pass_all
3830 lt_cv_file_magic_cmd='/bin/file'
3831 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3834 lt_cv_file_magic_cmd='/bin/file'
3835 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3836 lt_cv_file_magic_test_file=/lib/libc.so
3839 lt_cv_deplibs_check_method=pass_all
3842 lt_cv_deplibs_check_method=pass_all
3848 lt_cv_deplibs_check_method=pass_all
3852 file_magic_cmd=$lt_cv_file_magic_cmd
3853 deplibs_check_method=$lt_cv_deplibs_check_method
3854 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3856 _LT_DECL([], [deplibs_check_method], [1],
3857 [Method to check whether dependent libraries are shared objects])
3858 _LT_DECL([], [file_magic_cmd], [1],
3859 [Command to use when deplibs_check_method == "file_magic"])
3860 ])# _LT_CHECK_MAGIC_METHOD
3865 # find the pathname to a BSD- or MS-compatible name lister
3866 AC_DEFUN([LT_PATH_NM],
3867 [AC_REQUIRE([AC_PROG_CC])dnl
3868 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3869 [if test -n "$NM"; then
3870 # Let the user override the test.
3873 lt_nm_to_check="${ac_tool_prefix}nm"
3874 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3875 lt_nm_to_check="$lt_nm_to_check nm"
3877 for lt_tmp_nm in $lt_nm_to_check; do
3878 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3879 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3881 test -z "$ac_dir" && ac_dir=.
3882 tmp_nm="$ac_dir/$lt_tmp_nm"
3883 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3884 # Check to see if the nm accepts a BSD-compat flag.
3885 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3886 # nm: unknown option "B" ignored
3887 # Tru64's nm complains that /dev/null is an invalid object file
3888 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3889 */dev/null* | *'Invalid file or object type'*)
3890 lt_cv_path_NM="$tmp_nm -B"
3894 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3896 lt_cv_path_NM="$tmp_nm -p"
3900 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3901 continue # so that we can try to find one that supports BSD flags
3910 : ${lt_cv_path_NM=no}
3912 if test "$lt_cv_path_NM" != "no"; then
3915 # Didn't find any BSD compatible name lister, look for dumpbin.
3916 AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
3918 if test "$DUMPBIN" != ":"; then
3922 test -z "$NM" && NM=nm
3924 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3926 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3927 [lt_cv_nm_interface="BSD nm"
3928 echo "int some_variable = 0;" > conftest.$ac_ext
3929 (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3930 (eval "$ac_compile" 2>conftest.err)
3931 cat conftest.err >&AS_MESSAGE_LOG_FD
3932 (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3933 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3934 cat conftest.err >&AS_MESSAGE_LOG_FD
3935 (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
3936 cat conftest.out >&AS_MESSAGE_LOG_FD
3937 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3938 lt_cv_nm_interface="MS dumpbin"
3944 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3945 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3946 dnl aclocal-1.4 backwards compatibility:
3947 dnl AC_DEFUN([AM_PROG_NM], [])
3948 dnl AC_DEFUN([AC_PROG_NM], [])
3953 # check for math library
3954 AC_DEFUN([LT_LIB_M],
3955 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3958 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3959 # These system don't have libm, or don't need it
3962 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3963 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3966 AC_CHECK_LIB(m, cos, LIBM="-lm")
3973 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3974 dnl aclocal-1.4 backwards compatibility:
3975 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3978 # _LT_COMPILER_NO_RTTI([TAGNAME])
3979 # -------------------------------
3980 m4_defun([_LT_COMPILER_NO_RTTI],
3981 [m4_require([_LT_TAG_COMPILER])dnl
3983 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3985 if test "$GCC" = yes; then
3986 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
3988 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3989 lt_cv_prog_compiler_rtti_exceptions,
3990 [-fno-rtti -fno-exceptions], [],
3991 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3993 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3994 [Compiler flag to turn off builtin functions])
3995 ])# _LT_COMPILER_NO_RTTI
3998 # _LT_CMD_GLOBAL_SYMBOLS
3999 # ----------------------
4000 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4001 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
4002 AC_REQUIRE([AC_PROG_CC])dnl
4003 AC_REQUIRE([LT_PATH_NM])dnl
4004 AC_REQUIRE([LT_PATH_LD])dnl
4005 m4_require([_LT_DECL_SED])dnl
4006 m4_require([_LT_DECL_EGREP])dnl
4007 m4_require([_LT_TAG_COMPILER])dnl
4009 # Check for command to grab the raw symbol name followed by C symbol from nm.
4010 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4011 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4013 # These are sane defaults that work on at least a few old systems.
4014 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4016 # Character class describing NM global symbol codes.
4017 symcode='[[BCDEGRST]]'
4019 # Regexp to match symbols that can be accessed directly from C.
4020 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4022 # Define system-specific variables.
4027 cygwin* | mingw* | pw32* | cegcc*)
4028 symcode='[[ABCDGISTW]]'
4031 if test "$host_cpu" = ia64; then
4032 symcode='[[ABCDEGRST]]'
4036 symcode='[[BCDEGRST]]'
4039 symcode='[[BCDEGQRST]]'
4050 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4054 symcode='[[DFNSTU]]'
4058 # If we're using GNU nm, then use its standard symbol codes.
4059 case `$NM -V 2>&1` in
4060 *GNU* | *'with BFD'*)
4061 symcode='[[ABCDGIRSTW]]' ;;
4064 # Transform an extracted symbol line into a proper C declaration.
4065 # Some systems (esp. on ia64) link data and code symbols differently,
4066 # so use this general approach.
4067 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4069 # Transform an extracted symbol line into symbol name and symbol address
4070 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4071 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
4073 # Handle CRLF in mingw tool chain
4077 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4081 # Try without a prefix underscore, then with it.
4082 for ac_symprfx in "" "_"; do
4084 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4085 symxfrm="\\1 $ac_symprfx\\2 \\2"
4087 # Write the raw and C identifiers.
4088 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4089 # Fake it for dumpbin and say T for any non-static function
4090 # and D for any global variable.
4091 # Also find C++ and __fastcall symbols from MSVC++,
4092 # which start with @ or ?.
4093 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4094 " {last_section=section; section=\$ 3};"\
4095 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4096 " \$ 0!~/External *\|/{next};"\
4097 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4098 " {if(hide[section]) next};"\
4099 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4100 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4101 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
4102 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4103 " ' prfx=^$ac_symprfx]"
4105 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4108 # Check to see that the pipe works correctly.
4112 cat > conftest.$ac_ext <<_LT_EOF
4117 void nm_test_func(void);
4118 void nm_test_func(void){}
4122 int main(){nm_test_var='a';nm_test_func();return(0);}
4125 if AC_TRY_EVAL(ac_compile); then
4126 # Now try to grab the symbols.
4128 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4129 # Try sorting and uniquifying the output.
4130 if sort "$nlist" | uniq > "$nlist"T; then
4131 mv -f "$nlist"T "$nlist"
4136 # Make sure that we snagged all the symbols we need.
4137 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4138 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4139 cat <<_LT_EOF > conftest.$ac_ext
4145 # Now generate the symbol file.
4146 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4148 cat <<_LT_EOF >> conftest.$ac_ext
4150 /* The mapping between symbol names and symbols. */
4155 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4157 { "@PROGRAM@", (void *) 0 },
4159 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4160 cat <<\_LT_EOF >> conftest.$ac_ext
4164 /* This works around a problem in FreeBSD linker */
4165 #ifdef FREEBSD_WORKAROUND
4166 static const void *lt_preloaded_setup() {
4167 return lt__PROGRAM__LTX_preloaded_symbols;
4175 # Now try linking the two files.
4176 mv conftest.$ac_objext conftstm.$ac_objext
4177 lt_save_LIBS="$LIBS"
4178 lt_save_CFLAGS="$CFLAGS"
4179 LIBS="conftstm.$ac_objext"
4180 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4181 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4184 LIBS="$lt_save_LIBS"
4185 CFLAGS="$lt_save_CFLAGS"
4187 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4190 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4193 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4196 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4197 cat conftest.$ac_ext >&5
4199 rm -rf conftest* conftst*
4201 # Do not use the global_symbol_pipe unless it works.
4202 if test "$pipe_works" = yes; then
4205 lt_cv_sys_global_symbol_pipe=
4209 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4210 lt_cv_sys_global_symbol_to_cdecl=
4212 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4213 AC_MSG_RESULT(failed)
4218 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4219 [Take the output of nm and produce a listing of raw symbols and C names])
4220 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4221 [Transform the output of nm in a proper C declaration])
4222 _LT_DECL([global_symbol_to_c_name_address],
4223 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4224 [Transform the output of nm in a C name address pair])
4225 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4226 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4227 [Transform the output of nm in a C name address pair when lib prefix is needed])
4228 ]) # _LT_CMD_GLOBAL_SYMBOLS
4231 # _LT_COMPILER_PIC([TAGNAME])
4232 # ---------------------------
4233 m4_defun([_LT_COMPILER_PIC],
4234 [m4_require([_LT_TAG_COMPILER])dnl
4235 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4236 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4237 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4239 AC_MSG_CHECKING([for $compiler option to produce PIC])
4240 m4_if([$1], [CXX], [
4241 # C++ specific cases for pic, static, wl, etc.
4242 if test "$GXX" = yes; then
4243 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4244 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4248 # All AIX code is PIC.
4249 if test "$host_cpu" = ia64; then
4250 # AIX 5 now supports IA64 processor
4251 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4258 # see comment about AmigaOS4 .so support
4259 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4262 # FIXME: we need at least 68020 code to build shared libraries, but
4263 # adding the `-m68020' flag to GCC prevents building anything better,
4265 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4270 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4271 # PIC is the default for these OSes.
4273 mingw* | cygwin* | os2* | pw32* | cegcc*)
4274 # This hack is so that the source file can tell whether it is being
4275 # built for inclusion in a dll (and should export symbols for example).
4276 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4277 # (--disable-auto-import) libraries
4278 m4_if([$1], [GCJ], [],
4279 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4281 darwin* | rhapsody*)
4282 # PIC is the default on this platform
4283 # Common symbols not allowed in MH_DYLIB files
4284 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4287 # DJGPP does not support shared libraries at all
4288 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4292 # Instead, we relocate shared libraries at runtime.
4295 if test -d /usr/nec; then
4296 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4300 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4301 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4302 # sets the default TLS model and affects inlining.
4307 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4312 # QNX uses GNU C++, but need to define -shared option too, otherwise
4314 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4317 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4323 # All AIX code is PIC.
4324 if test "$host_cpu" = ia64; then
4325 # AIX 5 now supports IA64 processor
4326 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4328 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4332 case $cc_basename in
4334 # Green Hills C++ Compiler
4335 # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4340 case $cc_basename in
4342 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4345 # Green Hills C++ Compiler
4346 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4352 freebsd* | dragonfly*)
4353 # FreeBSD uses GNU C++
4355 hpux9* | hpux10* | hpux11*)
4356 case $cc_basename in
4358 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4359 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4360 if test "$host_cpu" != ia64; then
4361 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4372 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4381 # This is c89, which is MS Visual C++ (no shared libs)
4382 # Anyone wants to do a port?
4384 irix5* | irix6* | nonstopux*)
4385 case $cc_basename in
4387 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4388 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4389 # CC pic flag -KPIC is the default.
4395 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4396 case $cc_basename in
4399 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4400 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4403 # old Intel C++ for x86_64 which still supported -KPIC.
4404 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4405 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4406 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4409 # Intel C++, used to be incompatible with GCC.
4410 # ICC 10 doesn't accept -KPIC any more.
4411 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4412 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4413 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4416 # Portland Group C++ compiler
4417 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4418 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4419 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4423 # Make sure the PIC flag is empty. It appears that all Alpha
4424 # Linux and Compaq Tru64 Unix objects are PIC.
4425 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4426 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4430 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4432 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4435 case `$CC -V 2>&1 | sed 5q` in
4438 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4439 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4440 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4451 case $cc_basename in
4453 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4459 netbsd* | netbsdelf*-gnu)
4462 # QNX uses GNU C++, but need to define -shared option too, otherwise
4464 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4466 osf3* | osf4* | osf5*)
4467 case $cc_basename in
4469 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4472 # Rational C++ 2.4.1
4473 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4476 # Digital/Compaq C++
4477 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4478 # Make sure the PIC flag is empty. It appears that all Alpha
4479 # Linux and Compaq Tru64 Unix objects are PIC.
4480 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4481 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4490 case $cc_basename in
4492 # Sun C++ 4.2, 5.x and Centerline C++
4493 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4494 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4495 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4498 # Green Hills C++ Compiler
4499 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4506 case $cc_basename in
4509 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4510 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4514 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4521 case $cc_basename in
4523 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4524 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4525 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4530 case $cc_basename in
4532 # NonStop-UX NCC 3.20
4533 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4542 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4548 if test "$GCC" = yes; then
4549 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4550 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4554 # All AIX code is PIC.
4555 if test "$host_cpu" = ia64; then
4556 # AIX 5 now supports IA64 processor
4557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4564 # see comment about AmigaOS4 .so support
4565 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4568 # FIXME: we need at least 68020 code to build shared libraries, but
4569 # adding the `-m68020' flag to GCC prevents building anything better,
4571 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4576 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4577 # PIC is the default for these OSes.
4580 mingw* | cygwin* | pw32* | os2* | cegcc*)
4581 # This hack is so that the source file can tell whether it is being
4582 # built for inclusion in a dll (and should export symbols for example).
4583 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4584 # (--disable-auto-import) libraries
4585 m4_if([$1], [GCJ], [],
4586 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4589 darwin* | rhapsody*)
4590 # PIC is the default on this platform
4591 # Common symbols not allowed in MH_DYLIB files
4592 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4596 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4597 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4598 # sets the default TLS model and affects inlining.
4604 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4610 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4611 # Instead, we relocate shared libraries at runtime.
4615 # Just because we use GCC doesn't mean we suddenly get shared libraries
4616 # on systems that don't support them.
4617 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4622 # QNX uses GNU C++, but need to define -shared option too, otherwise
4624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4628 if test -d /usr/nec; then
4629 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4634 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4638 # PORTME Check for flag to pass linker flags through the system compiler.
4641 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4642 if test "$host_cpu" = ia64; then
4643 # AIX 5 now supports IA64 processor
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4650 mingw* | cygwin* | pw32* | os2* | cegcc*)
4651 # This hack is so that the source file can tell whether it is being
4652 # built for inclusion in a dll (and should export symbols for example).
4653 m4_if([$1], [GCJ], [],
4654 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4657 hpux9* | hpux10* | hpux11*)
4658 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4659 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4666 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4669 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4670 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4673 irix5* | irix6* | nonstopux*)
4674 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4675 # PIC (with -KPIC) is the default.
4676 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4679 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4680 case $cc_basename in
4681 # old Intel for x86_64 which still supported -KPIC.
4683 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4685 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4687 # icc used to be incompatible with GCC.
4688 # ICC 10 doesn't accept -KPIC any more.
4690 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4691 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4692 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4694 # Lahey Fortran 8.1.
4696 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4697 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4698 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4700 pgcc* | pgf77* | pgf90* | pgf95*)
4701 # Portland Group compilers (*not* the Pentium gcc compiler,
4702 # which looks to be a dead project)
4703 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4704 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4705 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4709 # All Alpha code is PIC.
4710 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4713 # IBM XL C 8.0/Fortran 10.1 on PPC
4714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4716 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4719 case `$CC -V 2>&1 | sed 5q` in
4722 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4723 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4724 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4727 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4728 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4729 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4730 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4738 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4739 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4743 # QNX uses GNU C++, but need to define -shared option too, otherwise
4745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4748 osf3* | osf4* | osf5*)
4749 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4750 # All OSF/1 code is PIC.
4751 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4755 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4759 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4760 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4761 case $cc_basename in
4763 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4770 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4771 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4772 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4775 sysv4 | sysv4.2uw2* | sysv4.3*)
4776 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4777 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4778 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4782 if test -d /usr/nec ;then
4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4788 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4789 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4791 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4795 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4796 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4800 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4801 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4805 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4811 # For platforms which do not support PIC, -DPIC is meaningless:
4813 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4816 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4819 AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4820 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4821 [How to pass a linker flag through the compiler])
4824 # Check to make sure the PIC flag actually works.
4826 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4827 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4828 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4829 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4830 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4832 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4834 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4835 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4837 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4838 [Additional compiler flags for building library objects])
4841 # Check to make sure the static flag actually works.
4843 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4844 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4845 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4846 $lt_tmp_static_flag,
4848 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4849 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4850 [Compiler flag to prevent dynamic linking])
4851 ])# _LT_COMPILER_PIC
4854 # _LT_LINKER_SHLIBS([TAGNAME])
4855 # ----------------------------
4856 # See if the linker supports building shared libraries.
4857 m4_defun([_LT_LINKER_SHLIBS],
4858 [AC_REQUIRE([LT_PATH_LD])dnl
4859 AC_REQUIRE([LT_PATH_NM])dnl
4860 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4861 m4_require([_LT_DECL_EGREP])dnl
4862 m4_require([_LT_DECL_SED])dnl
4863 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4864 m4_require([_LT_TAG_COMPILER])dnl
4865 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4866 m4_if([$1], [CXX], [
4867 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4870 # If we're using GNU nm, then we don't want the "-C" option.
4871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
4872 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4873 _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'
4875 _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'
4879 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
4881 cygwin* | mingw* | cegcc*)
4882 _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'
4884 linux* | k*bsd*-gnu)
4885 _LT_TAGVAR(link_all_deplibs, $1)=no
4888 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4891 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4894 _LT_TAGVAR(allow_undefined_flag, $1)=
4895 _LT_TAGVAR(always_export_symbols, $1)=no
4896 _LT_TAGVAR(archive_cmds, $1)=
4897 _LT_TAGVAR(archive_expsym_cmds, $1)=
4898 _LT_TAGVAR(compiler_needs_object, $1)=no
4899 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4900 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4901 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4902 _LT_TAGVAR(hardcode_automatic, $1)=no
4903 _LT_TAGVAR(hardcode_direct, $1)=no
4904 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4905 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4906 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4907 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4908 _LT_TAGVAR(hardcode_minus_L, $1)=no
4909 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4910 _LT_TAGVAR(inherit_rpath, $1)=no
4911 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4912 _LT_TAGVAR(module_cmds, $1)=
4913 _LT_TAGVAR(module_expsym_cmds, $1)=
4914 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4915 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4916 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4917 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4918 # include_expsyms should be a list of space-separated symbols to be *always*
4919 # included in the symbol list
4920 _LT_TAGVAR(include_expsyms, $1)=
4921 # exclude_expsyms can be an extended regexp of symbols to exclude
4922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4924 # as well as any symbol that contains `d'.
4925 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4927 # platforms (ab)use it in PIC code, but their linkers get confused if
4928 # the symbol is explicitly referenced. Since portable code cannot
4929 # rely on this symbol name, it's probably fine to never include it in
4930 # preloaded symbol tables.
4931 # Exclude shared library initialization/finalization symbols.
4932 dnl Note also adjust exclude_expsyms for C++ above.
4933 extract_expsyms_cmds=
4936 cygwin* | mingw* | pw32* | cegcc*)
4937 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4938 # When not using gcc, we currently assume that we are using
4939 # Microsoft Visual C++.
4940 if test "$GCC" != yes; then
4945 # we just hope/assume this is gcc and not c89 (= MSVC++)
4951 linux* | k*bsd*-gnu)
4952 _LT_TAGVAR(link_all_deplibs, $1)=no
4956 _LT_TAGVAR(ld_shlibs, $1)=yes
4957 if test "$with_gnu_ld" = yes; then
4958 # If archive_cmds runs LD, not CC, wlarc should be empty
4961 # Set some defaults for GNU ld with shared library support. These
4962 # are reset later if shared libraries are not supported. Putting them
4963 # here allows them to be overridden if necessary.
4964 runpath_var=LD_RUN_PATH
4965 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4966 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4967 # ancient GNU ld didn't support --whole-archive et. al.
4968 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
4969 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4971 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4973 supports_anon_versioning=no
4974 case `$LD -v 2>&1` in
4975 *GNU\ gold*) supports_anon_versioning=yes ;;
4976 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
4977 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
4978 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
4979 *\ 2.11.*) ;; # other 2.11 versions
4980 *) supports_anon_versioning=yes ;;
4983 # See if GNU ld supports shared libraries.
4986 # On AIX/PPC, the GNU linker is very broken
4987 if test "$host_cpu" != ia64; then
4988 _LT_TAGVAR(ld_shlibs, $1)=no
4991 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4992 *** to be unable to reliably create shared libraries on AIX.
4993 *** Therefore, libtool is disabling shared libraries support. If you
4994 *** really care for shared libraries, you may want to modify your PATH
4995 *** so that a non-GNU linker is found, and then restart.
5004 # see comment about AmigaOS4 .so support
5005 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5006 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5009 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5010 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5011 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5017 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5018 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5020 # support --undefined. This deserves some investigation. FIXME
5021 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5023 _LT_TAGVAR(ld_shlibs, $1)=no
5027 cygwin* | mingw* | pw32* | cegcc*)
5028 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5029 # as there is no search path for DLLs.
5030 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5031 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5032 _LT_TAGVAR(always_export_symbols, $1)=no
5033 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5034 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
5036 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5037 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5038 # If the export-symbols file already is a .def file (1st line
5039 # is EXPORTS), use it as is; otherwise, prepend...
5040 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5041 cp $export_symbols $output_objdir/$soname.def;
5043 echo EXPORTS > $output_objdir/$soname.def;
5044 cat $export_symbols >> $output_objdir/$soname.def;
5046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5048 _LT_TAGVAR(ld_shlibs, $1)=no
5053 _LT_TAGVAR(hardcode_direct, $1)=no
5054 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5055 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5056 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5058 # Instead, shared libraries are loaded at an image base (0x10000000 by
5059 # default) and relocated if they conflict, which is a slow very memory
5060 # consuming and fragmenting process. To avoid this, we pick a random,
5061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5063 _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'
5064 _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'
5067 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5069 if test "$host_os" = linux-dietlibc; then
5070 case $cc_basename in
5071 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5074 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5075 && test "$tmp_diet" = no
5078 tmp_sharedflag='-shared'
5079 case $cc_basename,$host_cpu in
5080 pgcc*) # Portland Group C compiler
5081 _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'
5082 tmp_addflag=' $pic_flag'
5084 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5085 _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'
5086 tmp_addflag=' $pic_flag -Mnomain' ;;
5087 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5088 tmp_addflag=' -i_dynamic' ;;
5089 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5090 tmp_addflag=' -i_dynamic -nofor_main' ;;
5091 ifc* | ifort*) # Intel Fortran compiler
5092 tmp_addflag=' -nofor_main' ;;
5093 lf95*) # Lahey Fortran 8.1
5094 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5095 tmp_sharedflag='--shared' ;;
5096 xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5097 tmp_sharedflag='-qmkshrobj'
5100 case `$CC -V 2>&1 | sed 5q` in
5101 *Sun\ C*) # Sun C 5.9
5102 _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'
5103 _LT_TAGVAR(compiler_needs_object, $1)=yes
5104 tmp_sharedflag='-G' ;;
5105 *Sun\ F*) # Sun Fortran 8.3
5106 tmp_sharedflag='-G' ;;
5108 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5110 if test "x$supports_anon_versioning" = xyes; then
5111 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5112 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5113 echo "local: *; };" >> $output_objdir/$libname.ver~
5114 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5117 case $cc_basename in
5119 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5120 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5121 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5122 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5123 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
5124 if test "x$supports_anon_versioning" = xyes; then
5125 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5127 echo "local: *; };" >> $output_objdir/$libname.ver~
5128 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5133 _LT_TAGVAR(ld_shlibs, $1)=no
5137 netbsd* | netbsdelf*-gnu)
5138 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5139 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5142 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5143 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5148 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5149 _LT_TAGVAR(ld_shlibs, $1)=no
5152 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5153 *** create shared libraries on Solaris systems. Therefore, libtool
5154 *** is disabling shared libraries support. We urge you to upgrade GNU
5155 *** binutils to release 2.9.1 or newer. Another option is to modify
5156 *** your PATH or compiler configuration so that the native linker is
5157 *** used, and then restart.
5160 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5161 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5162 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5164 _LT_TAGVAR(ld_shlibs, $1)=no
5168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5169 case `$LD -v 2>&1` in
5170 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5171 _LT_TAGVAR(ld_shlibs, $1)=no
5174 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5175 *** reliably create shared libraries on SCO systems. Therefore, libtool
5176 *** is disabling shared libraries support. We urge you to upgrade GNU
5177 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5178 *** your PATH or compiler configuration so that the native linker is
5179 *** used, and then restart.
5184 # For security reasons, it is highly recommended that you always
5185 # use absolute paths for naming shared libraries, and exclude the
5186 # DT_RUNPATH tag from executables and libraries. But doing so
5187 # requires that you compile everything twice, which is a pain.
5188 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5189 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5190 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5191 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5193 _LT_TAGVAR(ld_shlibs, $1)=no
5200 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5202 _LT_TAGVAR(hardcode_direct, $1)=yes
5203 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5207 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5208 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5209 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5211 _LT_TAGVAR(ld_shlibs, $1)=no
5216 if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
5218 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5219 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5220 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5223 # PORTME fill in a description of your system's linker (not GNU ld)
5226 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5227 _LT_TAGVAR(always_export_symbols, $1)=yes
5228 _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5229 # Note: this linker hardcodes the directories in LIBPATH if there
5230 # are no directories specified by -L.
5231 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5232 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5233 # Neither direct hardcoding nor static linking is supported with a
5235 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5240 if test "$host_cpu" = ia64; then
5241 # On IA64, the linker does run time linking by default, so we don't
5242 # have to do anything special.
5243 aix_use_runtimelinking=no
5244 exp_sym_flag='-Bexport'
5247 # If we're using GNU nm, then we don't want the "-C" option.
5248 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5249 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5250 _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'
5252 _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'
5254 aix_use_runtimelinking=no
5256 # Test if we are trying to use run time linking or normal
5257 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5258 # need to do runtime linking.
5259 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5260 for ld_flag in $LDFLAGS; do
5261 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5262 aix_use_runtimelinking=yes
5269 exp_sym_flag='-bexport'
5270 no_entry_flag='-bnoentry'
5273 # When large executables or shared objects are built, AIX ld can
5274 # have problems creating the table of contents. If linking a library
5275 # or program results in "error TOC overflow" add -mminimal-toc to
5276 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5277 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5279 _LT_TAGVAR(archive_cmds, $1)=''
5280 _LT_TAGVAR(hardcode_direct, $1)=yes
5281 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5282 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5283 _LT_TAGVAR(link_all_deplibs, $1)=yes
5284 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
5286 if test "$GCC" = yes; then
5287 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5288 # We only want to do this on AIX 4.2 and lower, the check
5289 # below for broken collect2 doesn't work under 4.3+
5290 collect2name=`${CC} -print-prog-name=collect2`
5291 if test -f "$collect2name" &&
5292 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5294 # We have reworked collect2
5297 # We have old collect2
5298 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5299 # It fails to find uninstalled libraries when the uninstalled
5300 # path is not listed in the libpath. Setting hardcode_minus_L
5301 # to unsupported forces relinking
5302 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5303 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5304 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5308 shared_flag='-shared'
5309 if test "$aix_use_runtimelinking" = yes; then
5310 shared_flag="$shared_flag "'${wl}-G'
5312 _LT_TAGVAR(link_all_deplibs, $1)=no
5315 if test "$host_cpu" = ia64; then
5316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5317 # chokes on -Wl,-G. The following line is correct:
5320 if test "$aix_use_runtimelinking" = yes; then
5321 shared_flag='${wl}-G'
5323 shared_flag='${wl}-bM:SRE'
5328 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
5329 # It seems that -bexpall does not export symbols beginning with
5330 # underscore (_), so it is better to generate a list of symbols to export.
5331 _LT_TAGVAR(always_export_symbols, $1)=yes
5332 if test "$aix_use_runtimelinking" = yes; then
5333 # Warning - without using the other runtime loading flags (-brtl),
5334 # -berok will link without error, but may produce a broken library.
5335 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5336 # Determine the default libpath from the value encoded in an
5338 _LT_SYS_MODULE_PATH_AIX
5339 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5340 _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"
5342 if test "$host_cpu" = ia64; then
5343 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5344 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5345 _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"
5347 # Determine the default libpath from the value encoded in an
5349 _LT_SYS_MODULE_PATH_AIX
5350 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5351 # Warning - without using the other run time loading flags,
5352 # -berok will link without error, but may produce a broken library.
5353 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5354 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5355 # Exported symbols can be pulled into shared objects from archives
5356 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5357 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5358 # This is similar to how AIX traditionally builds its shared libraries.
5359 _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'
5367 # see comment about AmigaOS4 .so support
5368 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5369 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5372 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5373 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5374 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5380 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5383 cygwin* | mingw* | pw32* | cegcc*)
5384 # When not using gcc, we currently assume that we are using
5385 # Microsoft Visual C++.
5386 # hardcode_libdir_flag_spec is actually meaningless, as there is
5387 # no search path for DLLs.
5388 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5389 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5390 # Tell ltmain to make .lib files, not .a files.
5392 # Tell ltmain to make .dll files, not .so files.
5394 # FIXME: Setting linknames here is a bad hack.
5395 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5396 # The linker will automatically build a .lib file if we build a DLL.
5397 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5398 # FIXME: Should let the user specify the lib program.
5399 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5400 _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5401 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5404 darwin* | rhapsody*)
5405 _LT_DARWIN_LINKER_FEATURES($1)
5409 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5411 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5415 _LT_TAGVAR(ld_shlibs, $1)=no
5418 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5419 # support. Future versions do this automatically, but an explicit c++rt0.o
5420 # does not break anything, and helps significantly (at the cost of a little
5423 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5424 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5425 _LT_TAGVAR(hardcode_direct, $1)=yes
5426 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5429 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5431 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5432 _LT_TAGVAR(hardcode_direct, $1)=yes
5433 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5434 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5437 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5438 freebsd* | dragonfly*)
5439 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5441 _LT_TAGVAR(hardcode_direct, $1)=yes
5442 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5446 if test "$GCC" = yes; then
5447 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5449 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5451 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5452 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5453 _LT_TAGVAR(hardcode_direct, $1)=yes
5455 # hardcode_minus_L: Not really in the search PATH,
5456 # but as the default location of the library.
5457 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5458 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5462 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5463 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5465 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5467 if test "$with_gnu_ld" = no; then
5468 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5469 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5470 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5471 _LT_TAGVAR(hardcode_direct, $1)=yes
5472 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5473 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5474 # hardcode_minus_L: Not really in the search PATH,
5475 # but as the default location of the library.
5476 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5481 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5484 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5487 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5490 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5496 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5499 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5502 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5506 if test "$with_gnu_ld" = no; then
5507 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5508 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5512 _LT_TAGVAR(hardcode_direct, $1)=no
5513 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5516 _LT_TAGVAR(hardcode_direct, $1)=yes
5517 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5518 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5520 # hardcode_minus_L: Not really in the search PATH,
5521 # but as the default location of the library.
5522 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5528 irix5* | irix6* | nonstopux*)
5529 if test "$GCC" = yes; then
5530 _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'
5531 # Try to use the -exported_symbol ld option, if it does not
5532 # work, assume that -exports_file does not work either and
5533 # implicitly export all symbols.
5534 save_LDFLAGS="$LDFLAGS"
5535 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
5536 AC_LINK_IFELSE(int foo(void) {},
5537 _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'
5539 LDFLAGS="$save_LDFLAGS"
5541 _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'
5542 _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'
5544 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5545 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5546 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5547 _LT_TAGVAR(inherit_rpath, $1)=yes
5548 _LT_TAGVAR(link_all_deplibs, $1)=yes
5551 netbsd* | netbsdelf*-gnu)
5552 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5553 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5555 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5557 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5558 _LT_TAGVAR(hardcode_direct, $1)=yes
5559 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5563 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5564 _LT_TAGVAR(hardcode_direct, $1)=yes
5565 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5566 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5567 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5574 if test -f /usr/libexec/ld.so; then
5575 _LT_TAGVAR(hardcode_direct, $1)=yes
5576 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5577 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5579 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5580 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
5581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5582 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5585 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
5586 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5587 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5590 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5591 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5596 _LT_TAGVAR(ld_shlibs, $1)=no
5601 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5602 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5603 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5604 _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'
5605 _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5609 if test "$GCC" = yes; then
5610 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5611 _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'
5613 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5614 _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'
5616 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5617 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5618 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5621 osf4* | osf5*) # as osf3* with the addition of -msym flag
5622 if test "$GCC" = yes; then
5623 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
5624 _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'
5625 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5627 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5628 _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'
5629 _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~
5630 $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'
5632 # Both c and cxx compiler support -rpath directly
5633 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5635 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5636 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5640 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5641 if test "$GCC" = yes; then
5643 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5644 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5645 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5647 case `$CC -V 2>&1` in
5650 _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5651 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5652 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5656 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5657 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5658 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5662 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5663 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5665 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5667 # The compiler driver will combine and reorder linker options,
5668 # but understands `-z linker_flag'. GCC discards it without `$wl',
5669 # but is careful enough not to reorder.
5670 # Supported since Solaris 2.6 (maybe 2.5.1?)
5671 if test "$GCC" = yes; then
5672 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
5674 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5678 _LT_TAGVAR(link_all_deplibs, $1)=yes
5682 if test "x$host_vendor" = xsequent; then
5683 # Use $CC to link under sequent, because it throws in some extra .o
5684 # files that make .init and .fini sections work.
5685 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5687 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5689 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5690 _LT_TAGVAR(hardcode_direct, $1)=yes
5691 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5692 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5696 case $host_vendor in
5698 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5699 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5702 ## LD is ld it makes a PLAMLIB
5703 ## CC just makes a GrossModule.
5704 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5705 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5706 _LT_TAGVAR(hardcode_direct, $1)=no
5709 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5710 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5713 runpath_var='LD_RUN_PATH'
5714 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5718 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5719 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5720 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5724 if test -d /usr/nec; then
5725 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5726 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5727 runpath_var=LD_RUN_PATH
5728 hardcode_runpath_var=yes
5729 _LT_TAGVAR(ld_shlibs, $1)=yes
5733 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5734 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5735 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5736 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5737 runpath_var='LD_RUN_PATH'
5739 if test "$GCC" = yes; then
5740 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5741 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5743 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5744 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5748 sysv5* | sco3.2v5* | sco5v6*)
5749 # Note: We can NOT use -z defs as we might desire, because we do not
5750 # link with -lc, and that would cause any symbols used from libc to
5751 # always be unresolved, which means just about no library would
5752 # ever link correctly. If we're not using GNU ld we use -z text
5753 # though, which does catch some bad symbols but isn't as heavy-handed
5755 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5756 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5757 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5758 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5759 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
5760 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5761 _LT_TAGVAR(link_all_deplibs, $1)=yes
5762 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5763 runpath_var='LD_RUN_PATH'
5765 if test "$GCC" = yes; then
5766 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5767 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5769 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5770 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5775 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5776 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5777 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5781 _LT_TAGVAR(ld_shlibs, $1)=no
5785 if test x$host_vendor = xsni; then
5787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5788 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
5794 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
5795 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5797 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
5799 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
5800 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
5801 _LT_DECL([], [extract_expsyms_cmds], [2],
5802 [The commands to extract the exported symbol list from a shared archive])
5805 # Do we need to explicitly link libc?
5807 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
5809 # Assume -lc should be added
5810 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5812 if test "$enable_shared" = yes && test "$GCC" = yes; then
5813 case $_LT_TAGVAR(archive_cmds, $1) in
5815 # FIXME: we may have to deal with multi-command sequences.
5818 # Test whether the compiler implicitly links with -lc since on some
5819 # systems, -lgcc has to come before -lc. If gcc already passes -lc
5820 # to ld, don't add -lc before -lgcc.
5821 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
5823 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
5825 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
5828 libobjs=conftest.$ac_objext
5830 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
5831 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
5837 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
5838 _LT_TAGVAR(allow_undefined_flag, $1)=
5839 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
5841 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
5843 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5845 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
5847 cat conftest.err 1>&5
5850 AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
5857 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
5858 [Whether or not to add -lc for building shared libraries])
5859 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
5860 [enable_shared_with_static_runtimes], [0],
5861 [Whether or not to disallow shared libs when runtime libs are static])
5862 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
5863 [Compiler flag to allow reflexive dlopens])
5864 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
5865 [Compiler flag to generate shared objects directly from archives])
5866 _LT_TAGDECL([], [compiler_needs_object], [1],
5867 [Whether the compiler copes with passing no objects directly])
5868 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
5869 [Create an old-style archive from a shared archive])
5870 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
5871 [Create a temporary old-style archive to link instead of a shared archive])
5872 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
5873 _LT_TAGDECL([], [archive_expsym_cmds], [2])
5874 _LT_TAGDECL([], [module_cmds], [2],
5875 [Commands used to build a loadable module if different from building
5877 _LT_TAGDECL([], [module_expsym_cmds], [2])
5878 _LT_TAGDECL([], [with_gnu_ld], [1],
5879 [Whether we are building with GNU ld or not])
5880 _LT_TAGDECL([], [allow_undefined_flag], [1],
5881 [Flag that allows shared libraries with undefined symbols to be built])
5882 _LT_TAGDECL([], [no_undefined_flag], [1],
5883 [Flag that enforces no undefined symbols])
5884 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
5885 [Flag to hardcode $libdir into a binary during linking.
5886 This must work even if $libdir does not exist])
5887 _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
5888 [[If ld is used when linking, flag to hardcode $libdir into a binary
5889 during linking. This must work even if $libdir does not exist]])
5890 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
5891 [Whether we need a single "-rpath" flag with a separated argument])
5892 _LT_TAGDECL([], [hardcode_direct], [0],
5893 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5894 DIR into the resulting binary])
5895 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
5896 [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
5897 DIR into the resulting binary and the resulting library dependency is
5898 "absolute", i.e impossible to change by setting ${shlibpath_var} if the
5899 library is relocated])
5900 _LT_TAGDECL([], [hardcode_minus_L], [0],
5901 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
5902 into the resulting binary])
5903 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
5904 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
5905 into the resulting binary])
5906 _LT_TAGDECL([], [hardcode_automatic], [0],
5907 [Set to "yes" if building a shared library automatically hardcodes DIR
5908 into the library and all subsequent libraries and executables linked
5910 _LT_TAGDECL([], [inherit_rpath], [0],
5911 [Set to yes if linker adds runtime paths of dependent libraries
5912 to runtime path list])
5913 _LT_TAGDECL([], [link_all_deplibs], [0],
5914 [Whether libtool must link a program against all its dependency libraries])
5915 _LT_TAGDECL([], [fix_srcfile_path], [1],
5916 [Fix the shell variable $srcfile for the compiler])
5917 _LT_TAGDECL([], [always_export_symbols], [0],
5918 [Set to "yes" if exported symbols are required])
5919 _LT_TAGDECL([], [export_symbols_cmds], [2],
5920 [The commands to list exported symbols])
5921 _LT_TAGDECL([], [exclude_expsyms], [1],
5922 [Symbols that should not be listed in the preloaded symbols])
5923 _LT_TAGDECL([], [include_expsyms], [1],
5924 [Symbols that must always be exported])
5925 _LT_TAGDECL([], [prelink_cmds], [2],
5926 [Commands necessary for linking programs (against libraries) with templates])
5927 _LT_TAGDECL([], [file_list_spec], [1],
5928 [Specify filename containing input files])
5929 dnl FIXME: Not yet implemented
5930 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
5931 dnl [Compiler flag to generate thread safe objects])
5932 ])# _LT_LINKER_SHLIBS
5935 # _LT_LANG_C_CONFIG([TAG])
5936 # ------------------------
5937 # Ensure that the configuration variables for a C compiler are suitably
5938 # defined. These variables are subsequently used by _LT_CONFIG to write
5939 # the compiler configuration to `libtool'.
5940 m4_defun([_LT_LANG_C_CONFIG],
5941 [m4_require([_LT_DECL_EGREP])dnl
5945 # Source file extension for C test sources.
5948 # Object file extension for compiled C test sources.
5950 _LT_TAGVAR(objext, $1)=$objext
5952 # Code to be used in simple compile tests
5953 lt_simple_compile_test_code="int some_variable = 0;"
5955 # Code to be used in simple link tests
5956 lt_simple_link_test_code='int main(){return(0);}'
5959 # Save the default compiler, since it gets overwritten when the other
5960 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
5961 compiler_DEFAULT=$CC
5963 # save warnings/boilerplate of simple test code
5964 _LT_COMPILER_BOILERPLATE
5965 _LT_LINKER_BOILERPLATE
5967 if test -n "$compiler"; then
5968 _LT_COMPILER_NO_RTTI($1)
5969 _LT_COMPILER_PIC($1)
5970 _LT_COMPILER_C_O($1)
5971 _LT_COMPILER_FILE_LOCKS($1)
5972 _LT_LINKER_SHLIBS($1)
5973 _LT_SYS_DYNAMIC_LINKER($1)
5974 _LT_LINKER_HARDCODE_LIBPATH($1)
5978 # Report which library types will actually be built
5979 AC_MSG_CHECKING([if libtool supports shared libraries])
5980 AC_MSG_RESULT([$can_build_shared])
5982 AC_MSG_CHECKING([whether to build shared libraries])
5983 test "$can_build_shared" = "no" && enable_shared=no
5985 # On AIX, shared libraries and static libraries use the same namespace, and
5986 # are all built from PIC.
5989 test "$enable_shared" = yes && enable_static=no
5990 if test -n "$RANLIB"; then
5991 archive_cmds="$archive_cmds~\$RANLIB \$lib"
5992 postinstall_cmds='$RANLIB $lib'
5997 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5998 test "$enable_shared" = yes && enable_static=no
6002 AC_MSG_RESULT([$enable_shared])
6004 AC_MSG_CHECKING([whether to build static libraries])
6005 # Make sure either enable_shared or enable_static is yes.
6006 test "$enable_shared" = yes || enable_static=yes
6007 AC_MSG_RESULT([$enable_static])
6013 ])# _LT_LANG_C_CONFIG
6018 # Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
6019 # compiler, we have our own version here.
6020 m4_defun([_LT_PROG_CXX],
6022 pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
6024 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6025 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6026 (test "X$CXX" != "Xg++"))) ; then
6029 _lt_caught_CXX_error=yes
6031 popdef([AC_MSG_ERROR])
6034 dnl aclocal-1.4 backwards compatibility:
6035 dnl AC_DEFUN([_LT_PROG_CXX], [])
6038 # _LT_LANG_CXX_CONFIG([TAG])
6039 # --------------------------
6040 # Ensure that the configuration variables for a C++ compiler are suitably
6041 # defined. These variables are subsequently used by _LT_CONFIG to write
6042 # the compiler configuration to `libtool'.
6043 m4_defun([_LT_LANG_CXX_CONFIG],
6044 [AC_REQUIRE([_LT_PROG_CXX])dnl
6045 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6046 m4_require([_LT_DECL_EGREP])dnl
6049 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6050 _LT_TAGVAR(allow_undefined_flag, $1)=
6051 _LT_TAGVAR(always_export_symbols, $1)=no
6052 _LT_TAGVAR(archive_expsym_cmds, $1)=
6053 _LT_TAGVAR(compiler_needs_object, $1)=no
6054 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6055 _LT_TAGVAR(hardcode_direct, $1)=no
6056 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6057 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6058 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6059 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6060 _LT_TAGVAR(hardcode_minus_L, $1)=no
6061 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6062 _LT_TAGVAR(hardcode_automatic, $1)=no
6063 _LT_TAGVAR(inherit_rpath, $1)=no
6064 _LT_TAGVAR(module_cmds, $1)=
6065 _LT_TAGVAR(module_expsym_cmds, $1)=
6066 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6067 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6068 _LT_TAGVAR(no_undefined_flag, $1)=
6069 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6070 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6072 # Source file extension for C++ test sources.
6075 # Object file extension for compiled C++ test sources.
6077 _LT_TAGVAR(objext, $1)=$objext
6079 # No sense in running all these tests if we already determined that
6080 # the CXX compiler isn't working. Some variables (like enable_shared)
6081 # are currently assumed to apply to all compilers on this platform,
6082 # and will be corrupted by setting them based on a non-working compiler.
6083 if test "$_lt_caught_CXX_error" != yes; then
6084 # Code to be used in simple compile tests
6085 lt_simple_compile_test_code="int some_variable = 0;"
6087 # Code to be used in simple link tests
6088 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6090 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6093 # save warnings/boilerplate of simple test code
6094 _LT_COMPILER_BOILERPLATE
6095 _LT_LINKER_BOILERPLATE
6097 # Allow CC to be a program name with arguments.
6102 lt_save_with_gnu_ld=$with_gnu_ld
6103 lt_save_path_LD=$lt_cv_path_LD
6104 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6105 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6107 $as_unset lt_cv_prog_gnu_ld
6109 if test -n "${lt_cv_path_LDCXX+set}"; then
6110 lt_cv_path_LD=$lt_cv_path_LDCXX
6112 $as_unset lt_cv_path_LD
6114 test -z "${LDCXX+set}" || LD=$LDCXX
6117 _LT_TAGVAR(compiler, $1)=$CC
6118 _LT_CC_BASENAME([$compiler])
6120 if test -n "$compiler"; then
6121 # We don't want -fno-exception when compiling C++ code, so set the
6122 # no_builtin_flag separately
6123 if test "$GXX" = yes; then
6124 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6126 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6129 if test "$GXX" = yes; then
6130 # Set up default GNU C++ configuration
6134 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6135 # archiving commands below assume that GNU ld is being used.
6136 if test "$with_gnu_ld" = yes; then
6137 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6138 _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'
6140 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6141 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6143 # If archive_cmds runs LD, not CC, wlarc should be empty
6144 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6145 # investigate it a little bit more. (MM)
6148 # ancient GNU ld didn't support --whole-archive et. al.
6149 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6150 $GREP 'no-whole-archive' > /dev/null; then
6151 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6153 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6159 # A generic and very simple default shared library creation
6160 # command for GNU C++ for the case where it uses the native
6161 # linker, instead of GNU ld. If possible, this setting should
6162 # overridden to take advantage of the native linker features on
6163 # the platform it is being used on.
6164 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6167 # Commands to make compiler produce verbose output that lists
6168 # what "hidden" libraries, object files and flags are used when
6169 # linking a shared library.
6170 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6178 # PORTME: fill in a description of your system's C++ link characteristics
6179 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6180 _LT_TAGVAR(ld_shlibs, $1)=yes
6183 # FIXME: insert proper C++ library support
6184 _LT_TAGVAR(ld_shlibs, $1)=no
6187 if test "$host_cpu" = ia64; then
6188 # On IA64, the linker does run time linking by default, so we don't
6189 # have to do anything special.
6190 aix_use_runtimelinking=no
6191 exp_sym_flag='-Bexport'
6194 aix_use_runtimelinking=no
6196 # Test if we are trying to use run time linking or normal
6197 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6198 # need to do runtime linking.
6199 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6200 for ld_flag in $LDFLAGS; do
6203 aix_use_runtimelinking=yes
6211 exp_sym_flag='-bexport'
6212 no_entry_flag='-bnoentry'
6215 # When large executables or shared objects are built, AIX ld can
6216 # have problems creating the table of contents. If linking a library
6217 # or program results in "error TOC overflow" add -mminimal-toc to
6218 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6219 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6221 _LT_TAGVAR(archive_cmds, $1)=''
6222 _LT_TAGVAR(hardcode_direct, $1)=yes
6223 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6224 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6225 _LT_TAGVAR(link_all_deplibs, $1)=yes
6226 _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
6228 if test "$GXX" = yes; then
6229 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6230 # We only want to do this on AIX 4.2 and lower, the check
6231 # below for broken collect2 doesn't work under 4.3+
6232 collect2name=`${CC} -print-prog-name=collect2`
6233 if test -f "$collect2name" &&
6234 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6236 # We have reworked collect2
6239 # We have old collect2
6240 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6241 # It fails to find uninstalled libraries when the uninstalled
6242 # path is not listed in the libpath. Setting hardcode_minus_L
6243 # to unsupported forces relinking
6244 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6245 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6246 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6249 shared_flag='-shared'
6250 if test "$aix_use_runtimelinking" = yes; then
6251 shared_flag="$shared_flag "'${wl}-G'
6255 if test "$host_cpu" = ia64; then
6256 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6257 # chokes on -Wl,-G. The following line is correct:
6260 if test "$aix_use_runtimelinking" = yes; then
6261 shared_flag='${wl}-G'
6263 shared_flag='${wl}-bM:SRE'
6268 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
6269 # It seems that -bexpall does not export symbols beginning with
6270 # underscore (_), so it is better to generate a list of symbols to
6272 _LT_TAGVAR(always_export_symbols, $1)=yes
6273 if test "$aix_use_runtimelinking" = yes; then
6274 # Warning - without using the other runtime loading flags (-brtl),
6275 # -berok will link without error, but may produce a broken library.
6276 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
6277 # Determine the default libpath from the value encoded in an empty
6279 _LT_SYS_MODULE_PATH_AIX
6280 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6282 _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"
6284 if test "$host_cpu" = ia64; then
6285 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
6286 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6287 _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"
6289 # Determine the default libpath from the value encoded in an
6291 _LT_SYS_MODULE_PATH_AIX
6292 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
6293 # Warning - without using the other run time loading flags,
6294 # -berok will link without error, but may produce a broken library.
6295 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
6296 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
6297 # Exported symbols can be pulled into shared objects from archives
6298 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6299 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6300 # This is similar to how AIX traditionally builds its shared
6302 _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'
6308 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6309 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6310 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6311 # support --undefined. This deserves some investigation. FIXME
6312 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6314 _LT_TAGVAR(ld_shlibs, $1)=no
6319 case $cc_basename in
6321 # FIXME: insert proper C++ library support
6322 _LT_TAGVAR(ld_shlibs, $1)=no
6327 cygwin* | mingw* | pw32* | cegcc*)
6328 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6329 # as there is no search path for DLLs.
6330 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6331 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6332 _LT_TAGVAR(always_export_symbols, $1)=no
6333 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6335 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6336 _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'
6337 # If the export-symbols file already is a .def file (1st line
6338 # is EXPORTS), use it as is; otherwise, prepend...
6339 _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6340 cp $export_symbols $output_objdir/$soname.def;
6342 echo EXPORTS > $output_objdir/$soname.def;
6343 cat $export_symbols >> $output_objdir/$soname.def;
6345 $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'
6347 _LT_TAGVAR(ld_shlibs, $1)=no
6350 darwin* | rhapsody*)
6351 _LT_DARWIN_LINKER_FEATURES($1)
6355 case $cc_basename in
6357 # FIXME: insert proper C++ library support
6358 _LT_TAGVAR(ld_shlibs, $1)=no
6361 # Green Hills C++ Compiler
6362 # FIXME: insert proper C++ library support
6363 _LT_TAGVAR(ld_shlibs, $1)=no
6366 # FIXME: insert proper C++ library support
6367 _LT_TAGVAR(ld_shlibs, $1)=no
6373 # C++ shared libraries reported to be fairly broken before
6375 _LT_TAGVAR(ld_shlibs, $1)=no
6379 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6382 freebsd* | dragonfly*)
6383 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6385 _LT_TAGVAR(ld_shlibs, $1)=yes
6392 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6393 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6394 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6395 _LT_TAGVAR(hardcode_direct, $1)=yes
6396 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6397 # but as the default
6398 # location of the library.
6400 case $cc_basename in
6402 # FIXME: insert proper C++ library support
6403 _LT_TAGVAR(ld_shlibs, $1)=no
6406 _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'
6407 # Commands to make compiler produce verbose output that lists
6408 # what "hidden" libraries, object files and flags are used when
6409 # linking a shared library.
6411 # There doesn't appear to be a way to prevent this compiler from
6412 # explicitly linking system object files so we need to strip them
6413 # from the output so that they don't get included in the library
6415 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'
6418 if test "$GXX" = yes; then
6419 _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'
6421 # FIXME: insert proper C++ library support
6422 _LT_TAGVAR(ld_shlibs, $1)=no
6429 if test $with_gnu_ld = no; then
6430 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
6431 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6437 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6443 _LT_TAGVAR(hardcode_direct, $1)=no
6444 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6447 _LT_TAGVAR(hardcode_direct, $1)=yes
6448 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6449 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6450 # but as the default
6451 # location of the library.
6455 case $cc_basename in
6457 # FIXME: insert proper C++ library support
6458 _LT_TAGVAR(ld_shlibs, $1)=no
6463 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6466 _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6469 _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'
6472 # Commands to make compiler produce verbose output that lists
6473 # what "hidden" libraries, object files and flags are used when
6474 # linking a shared library.
6476 # There doesn't appear to be a way to prevent this compiler from
6477 # explicitly linking system object files so we need to strip them
6478 # from the output so that they don't get included in the library
6480 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'
6483 if test "$GXX" = yes; then
6484 if test $with_gnu_ld = no; then
6487 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6490 _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'
6493 _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'
6498 # FIXME: insert proper C++ library support
6499 _LT_TAGVAR(ld_shlibs, $1)=no
6506 _LT_TAGVAR(hardcode_direct, $1)=no
6507 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6508 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6509 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6510 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6511 # Instead, shared libraries are loaded at an image base (0x10000000 by
6512 # default) and relocated if they conflict, which is a slow very memory
6513 # consuming and fragmenting process. To avoid this, we pick a random,
6514 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6515 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6516 _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'
6517 _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'
6520 case $cc_basename in
6523 _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'
6525 # Archives containing C++ object files must be created using
6526 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6527 # necessary to make sure instantiated templates are included
6529 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6532 if test "$GXX" = yes; then
6533 if test "$with_gnu_ld" = no; then
6534 _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'
6536 _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'
6539 _LT_TAGVAR(link_all_deplibs, $1)=yes
6542 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6543 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6544 _LT_TAGVAR(inherit_rpath, $1)=yes
6547 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6548 case $cc_basename in
6550 # Kuck and Associates, Inc. (KAI) C++ Compiler
6552 # KCC will only create a shared library if the output file
6553 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6554 # to its proper name (with version) after linking.
6555 _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'
6556 _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'
6557 # Commands to make compiler produce verbose output that lists
6558 # what "hidden" libraries, object files and flags are used when
6559 # linking a shared library.
6561 # There doesn't appear to be a way to prevent this compiler from
6562 # explicitly linking system object files so we need to strip them
6563 # from the output so that they don't get included in the library
6565 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'
6567 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6568 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6570 # Archives containing C++ object files must be created using
6571 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6572 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6577 # version 8.0 and above of icpc choke on multiply defined symbols
6578 # if we add $predep_objects and $postdep_objects, however 7.1 and
6579 # earlier do not add the objects themselves.
6580 case `$CC -V 2>&1` in
6582 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6583 _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'
6585 *) # Version 8.0 or newer
6588 ia64*) tmp_idyn=' -i_dynamic';;
6590 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6591 _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'
6594 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6595 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6596 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6597 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
6600 # Portland Group C++ compiler
6602 *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
6603 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
6605 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
6606 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
6607 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
6609 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
6610 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
6612 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
6614 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6615 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6616 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
6618 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
6619 $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'
6621 *) # Version 6 will use weak symbols
6622 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
6623 _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'
6627 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6628 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6629 _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'
6633 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
6634 _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'
6636 runpath_var=LD_RUN_PATH
6637 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6638 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6640 # Commands to make compiler produce verbose output that lists
6641 # what "hidden" libraries, object files and flags are used when
6642 # linking a shared library.
6644 # There doesn't appear to be a way to prevent this compiler from
6645 # explicitly linking system object files so we need to strip them
6646 # from the output so that they don't get included in the library
6648 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'
6651 # IBM XL 8.0 on PPC, with GNU ld
6652 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6653 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6654 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6655 if test "x$supports_anon_versioning" = xyes; then
6656 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
6657 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6658 echo "local: *; };" >> $output_objdir/$libname.ver~
6659 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6663 case `$CC -V 2>&1 | sed 5q` in
6666 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6667 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6668 _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'
6669 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6670 _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'
6671 _LT_TAGVAR(compiler_needs_object, $1)=yes
6673 # Not sure whether something based on
6674 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
6676 output_verbose_link_cmd='echo'
6678 # Archives containing C++ object files must be created using
6679 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6680 # necessary to make sure instantiated templates are included
6682 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6690 # FIXME: insert proper C++ library support
6691 _LT_TAGVAR(ld_shlibs, $1)=no
6695 # FIXME: insert proper C++ library support
6696 _LT_TAGVAR(ld_shlibs, $1)=no
6700 case $cc_basename in
6702 # FIXME: insert proper C++ library support
6703 _LT_TAGVAR(ld_shlibs, $1)=no
6706 # FIXME: insert proper C++ library support
6707 _LT_TAGVAR(ld_shlibs, $1)=no
6713 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
6714 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
6716 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6717 _LT_TAGVAR(hardcode_direct, $1)=yes
6718 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6720 # Workaround some broken pre-1.5 toolchains
6721 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
6725 _LT_TAGVAR(ld_shlibs, $1)=yes
6729 # C++ shared libraries are fairly broken
6730 _LT_TAGVAR(ld_shlibs, $1)=no
6734 if test -f /usr/libexec/ld.so; then
6735 _LT_TAGVAR(hardcode_direct, $1)=yes
6736 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6737 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6738 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6739 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6740 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6741 _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'
6742 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6743 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6745 output_verbose_link_cmd=echo
6747 _LT_TAGVAR(ld_shlibs, $1)=no
6751 osf3* | osf4* | osf5*)
6752 case $cc_basename in
6754 # Kuck and Associates, Inc. (KAI) C++ Compiler
6756 # KCC will only create a shared library if the output file
6757 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6758 # to its proper name (with version) after linking.
6759 _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'
6761 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6762 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6764 # Archives containing C++ object files must be created using
6765 # the KAI C++ compiler.
6767 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
6768 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
6772 # Rational C++ 2.4.1
6773 # FIXME: insert proper C++ library support
6774 _LT_TAGVAR(ld_shlibs, $1)=no
6779 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6780 _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'
6781 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6784 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6785 _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'
6786 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
6787 echo "-hidden">> $lib.exp~
6788 $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~
6790 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6794 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6796 # Commands to make compiler produce verbose output that lists
6797 # what "hidden" libraries, object files and flags are used when
6798 # linking a shared library.
6800 # There doesn't appear to be a way to prevent this compiler from
6801 # explicitly linking system object files so we need to strip them
6802 # from the output so that they don't get included in the library
6804 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'
6807 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6808 _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6811 _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'
6814 _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'
6818 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6819 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6821 # Commands to make compiler produce verbose output that lists
6822 # what "hidden" libraries, object files and flags are used when
6823 # linking a shared library.
6824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6827 # FIXME: insert proper C++ library support
6828 _LT_TAGVAR(ld_shlibs, $1)=no
6835 # FIXME: insert proper C++ library support
6836 _LT_TAGVAR(ld_shlibs, $1)=no
6840 case $cc_basename in
6843 # FIXME: insert proper C++ library support
6844 _LT_TAGVAR(ld_shlibs, $1)=no
6848 # FIXME: insert proper C++ library support
6849 _LT_TAGVAR(ld_shlibs, $1)=no
6852 # FIXME: insert proper C++ library support
6853 _LT_TAGVAR(ld_shlibs, $1)=no
6859 case $cc_basename in
6861 # Sun C++ 4.2, 5.x and Centerline C++
6862 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
6863 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
6864 _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6865 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6866 $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'
6868 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6869 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6871 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6873 # The compiler driver will combine and reorder linker options,
6874 # but understands `-z linker_flag'.
6875 # Supported since Solaris 2.6 (maybe 2.5.1?)
6876 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
6879 _LT_TAGVAR(link_all_deplibs, $1)=yes
6881 output_verbose_link_cmd='echo'
6883 # Archives containing C++ object files must be created using
6884 # "CC -xar", where "CC" is the Sun C++ compiler. This is
6885 # necessary to make sure instantiated templates are included
6887 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
6890 # Green Hills C++ Compiler
6891 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6893 # The C++ compiler must be used to create the archive.
6894 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
6897 # GNU C++ compiler with Solaris linker
6898 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
6899 _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
6900 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
6901 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6902 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6903 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6905 # Commands to make compiler produce verbose output that lists
6906 # what "hidden" libraries, object files and flags are used when
6907 # linking a shared library.
6908 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6910 # g++ 2.7 appears to require `-G' NOT `-shared' on this
6912 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
6913 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
6914 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
6916 # Commands to make compiler produce verbose output that lists
6917 # what "hidden" libraries, object files and flags are used when
6918 # linking a shared library.
6919 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
6922 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
6924 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6926 _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
6934 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6935 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6936 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6937 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6938 runpath_var='LD_RUN_PATH'
6940 case $cc_basename in
6942 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6943 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6946 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6947 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6952 sysv5* | sco3.2v5* | sco5v6*)
6953 # Note: We can NOT use -z defs as we might desire, because we do not
6954 # link with -lc, and that would cause any symbols used from libc to
6955 # always be unresolved, which means just about no library would
6956 # ever link correctly. If we're not using GNU ld we use -z text
6957 # though, which does catch some bad symbols but isn't as heavy-handed
6959 _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6960 _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6961 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6962 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6963 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
6964 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6965 _LT_TAGVAR(link_all_deplibs, $1)=yes
6966 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6967 runpath_var='LD_RUN_PATH'
6969 case $cc_basename in
6971 _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6972 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6975 _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6976 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6982 case $cc_basename in
6984 # NonStop-UX NCC 3.20
6985 # FIXME: insert proper C++ library support
6986 _LT_TAGVAR(ld_shlibs, $1)=no
6989 # FIXME: insert proper C++ library support
6990 _LT_TAGVAR(ld_shlibs, $1)=no
6996 # FIXME: insert proper C++ library support
6997 _LT_TAGVAR(ld_shlibs, $1)=no
7001 # FIXME: insert proper C++ library support
7002 _LT_TAGVAR(ld_shlibs, $1)=no
7006 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7007 test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7009 _LT_TAGVAR(GCC, $1)="$GXX"
7010 _LT_TAGVAR(LD, $1)="$LD"
7013 ## There is no encapsulation within the following macros, do not change
7014 ## the running order or otherwise move them around unless you know exactly
7015 ## what you are doing...
7016 _LT_SYS_HIDDEN_LIBDEPS($1)
7017 _LT_COMPILER_PIC($1)
7018 _LT_COMPILER_C_O($1)
7019 _LT_COMPILER_FILE_LOCKS($1)
7020 _LT_LINKER_SHLIBS($1)
7021 _LT_SYS_DYNAMIC_LINKER($1)
7022 _LT_LINKER_HARDCODE_LIBPATH($1)
7025 fi # test -n "$compiler"
7031 with_gnu_ld=$lt_save_with_gnu_ld
7032 lt_cv_path_LDCXX=$lt_cv_path_LD
7033 lt_cv_path_LD=$lt_save_path_LD
7034 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7035 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7036 fi # test "$_lt_caught_CXX_error" != yes
7039 ])# _LT_LANG_CXX_CONFIG
7042 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7043 # ---------------------------------
7044 # Figure out "hidden" library dependencies from verbose
7045 # compiler output when linking a shared library.
7046 # Parse the compiler output and extract the necessary
7047 # objects, libraries and library flags.
7048 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7049 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7050 # Dependencies to place before and after the object being linked:
7051 _LT_TAGVAR(predep_objects, $1)=
7052 _LT_TAGVAR(postdep_objects, $1)=
7053 _LT_TAGVAR(predeps, $1)=
7054 _LT_TAGVAR(postdeps, $1)=
7055 _LT_TAGVAR(compiler_lib_search_path, $1)=
7057 dnl we can't use the lt_simple_compile_test_code here,
7058 dnl because it contains code intended for an executable,
7059 dnl not a library. It's possible we should let each
7060 dnl tag define a new lt_????_link_test_code variable,
7061 dnl but it's only used here...
7062 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7064 void foo (void) { a = 0; }
7066 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7070 Foo (void) { a = 0; }
7075 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7083 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7091 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7094 public void bar (void) {
7100 dnl Parse the compiler output and extract the necessary
7101 dnl objects, libraries and library flags.
7102 if AC_TRY_EVAL(ac_compile); then
7103 # Parse the compiler output and extract the necessary
7104 # objects, libraries and library flags.
7106 # Sentinel used to keep track of whether or not we are before
7107 # the conftest object file.
7108 pre_test_object_deps_done=no
7110 for p in `eval "$output_verbose_link_cmd"`; do
7114 # Some compilers place space between "-{L,R}" and the path.
7116 if test $p = "-L" ||
7117 test $p = "-R"; then
7124 if test "$pre_test_object_deps_done" = no; then
7127 # Internal compiler library paths should come after those
7128 # provided the user. The postdeps already come after the
7129 # user supplied libs so there is no need to process them.
7130 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7131 _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
7133 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
7136 # The "-l" case would never come before the object being
7137 # linked, so don't bother handling this case.
7140 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7141 _LT_TAGVAR(postdeps, $1)="${prev}${p}"
7143 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
7149 # This assumes that the test object file only shows up
7150 # once in the compiler output.
7151 if test "$p" = "conftest.$objext"; then
7152 pre_test_object_deps_done=yes
7156 if test "$pre_test_object_deps_done" = no; then
7157 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7158 _LT_TAGVAR(predep_objects, $1)="$p"
7160 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7163 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7164 _LT_TAGVAR(postdep_objects, $1)="$p"
7166 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7171 *) ;; # Ignore the rest.
7179 echo "libtool.m4: error: problem compiling $1 test program"
7182 $RM -f confest.$objext
7184 # PORTME: override above test on systems where it is broken
7188 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7189 # hack all around it, let's just trust "g++" to DTRT.
7190 _LT_TAGVAR(predep_objects,$1)=
7191 _LT_TAGVAR(postdep_objects,$1)=
7192 _LT_TAGVAR(postdeps,$1)=
7196 case `$CC -V 2>&1 | sed 5q` in
7200 # The more standards-conforming stlport4 library is
7201 # incompatible with the Cstd library. Avoid specifying
7202 # it if it's in CXXFLAGS. Ignore libCrun as
7203 # -library=stlport4 depends on it.
7204 case " $CXX $CXXFLAGS " in
7205 *" -library=stlport4 "*)
7206 solaris_use_stlport4=yes
7210 if test "$solaris_use_stlport4" != yes; then
7211 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7218 case $cc_basename in
7220 # The more standards-conforming stlport4 library is
7221 # incompatible with the Cstd library. Avoid specifying
7222 # it if it's in CXXFLAGS. Ignore libCrun as
7223 # -library=stlport4 depends on it.
7224 case " $CXX $CXXFLAGS " in
7225 *" -library=stlport4 "*)
7226 solaris_use_stlport4=yes
7230 # Adding this requires a known-good setup of shared libraries for
7231 # Sun compiler versions before 5.6, else PIC objects from an old
7232 # archive will be linked into the output, leading to subtle bugs.
7233 if test "$solaris_use_stlport4" != yes; then
7234 _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
7242 case " $_LT_TAGVAR(postdeps, $1) " in
7243 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7245 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7246 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7247 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
7249 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7250 [The directories searched by this compiler when creating a shared library])
7251 _LT_TAGDECL([], [predep_objects], [1],
7252 [Dependencies to place before and after the objects being linked to
7253 create a shared library])
7254 _LT_TAGDECL([], [postdep_objects], [1])
7255 _LT_TAGDECL([], [predeps], [1])
7256 _LT_TAGDECL([], [postdeps], [1])
7257 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7258 [The library search path used internally by the compiler when linking
7260 ])# _LT_SYS_HIDDEN_LIBDEPS
7265 # Since AC_PROG_F77 is broken, in that it returns the empty string
7266 # if there is no fortran compiler, we have our own version here.
7267 m4_defun([_LT_PROG_F77],
7269 pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
7271 if test -z "$F77" || test "X$F77" = "Xno"; then
7274 popdef([AC_MSG_ERROR])
7277 dnl aclocal-1.4 backwards compatibility:
7278 dnl AC_DEFUN([_LT_PROG_F77], [])
7281 # _LT_LANG_F77_CONFIG([TAG])
7282 # --------------------------
7283 # Ensure that the configuration variables for a Fortran 77 compiler are
7284 # suitably defined. These variables are subsequently used by _LT_CONFIG
7285 # to write the compiler configuration to `libtool'.
7286 m4_defun([_LT_LANG_F77_CONFIG],
7287 [AC_REQUIRE([_LT_PROG_F77])dnl
7288 AC_LANG_PUSH(Fortran 77)
7290 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7291 _LT_TAGVAR(allow_undefined_flag, $1)=
7292 _LT_TAGVAR(always_export_symbols, $1)=no
7293 _LT_TAGVAR(archive_expsym_cmds, $1)=
7294 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7295 _LT_TAGVAR(hardcode_direct, $1)=no
7296 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7297 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7298 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7299 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7300 _LT_TAGVAR(hardcode_minus_L, $1)=no
7301 _LT_TAGVAR(hardcode_automatic, $1)=no
7302 _LT_TAGVAR(inherit_rpath, $1)=no
7303 _LT_TAGVAR(module_cmds, $1)=
7304 _LT_TAGVAR(module_expsym_cmds, $1)=
7305 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7306 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7307 _LT_TAGVAR(no_undefined_flag, $1)=
7308 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7309 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7311 # Source file extension for f77 test sources.
7314 # Object file extension for compiled f77 test sources.
7316 _LT_TAGVAR(objext, $1)=$objext
7318 # No sense in running all these tests if we already determined that
7319 # the F77 compiler isn't working. Some variables (like enable_shared)
7320 # are currently assumed to apply to all compilers on this platform,
7321 # and will be corrupted by setting them based on a non-working compiler.
7322 if test "$_lt_disable_F77" != yes; then
7323 # Code to be used in simple compile tests
7324 lt_simple_compile_test_code="\
7330 # Code to be used in simple link tests
7331 lt_simple_link_test_code="\
7336 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7339 # save warnings/boilerplate of simple test code
7340 _LT_COMPILER_BOILERPLATE
7341 _LT_LINKER_BOILERPLATE
7343 # Allow CC to be a program name with arguments.
7348 _LT_TAGVAR(compiler, $1)=$CC
7349 _LT_CC_BASENAME([$compiler])
7351 if test -n "$compiler"; then
7352 AC_MSG_CHECKING([if libtool supports shared libraries])
7353 AC_MSG_RESULT([$can_build_shared])
7355 AC_MSG_CHECKING([whether to build shared libraries])
7356 test "$can_build_shared" = "no" && enable_shared=no
7358 # On AIX, shared libraries and static libraries use the same namespace, and
7359 # are all built from PIC.
7362 test "$enable_shared" = yes && enable_static=no
7363 if test -n "$RANLIB"; then
7364 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7365 postinstall_cmds='$RANLIB $lib'
7369 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7370 test "$enable_shared" = yes && enable_static=no
7374 AC_MSG_RESULT([$enable_shared])
7376 AC_MSG_CHECKING([whether to build static libraries])
7377 # Make sure either enable_shared or enable_static is yes.
7378 test "$enable_shared" = yes || enable_static=yes
7379 AC_MSG_RESULT([$enable_static])
7381 _LT_TAGVAR(GCC, $1)="$G77"
7382 _LT_TAGVAR(LD, $1)="$LD"
7385 ## There is no encapsulation within the following macros, do not change
7386 ## the running order or otherwise move them around unless you know exactly
7387 ## what you are doing...
7388 _LT_COMPILER_PIC($1)
7389 _LT_COMPILER_C_O($1)
7390 _LT_COMPILER_FILE_LOCKS($1)
7391 _LT_LINKER_SHLIBS($1)
7392 _LT_SYS_DYNAMIC_LINKER($1)
7393 _LT_LINKER_HARDCODE_LIBPATH($1)
7396 fi # test -n "$compiler"
7400 fi # test "$_lt_disable_F77" != yes
7403 ])# _LT_LANG_F77_CONFIG
7408 # Since AC_PROG_FC is broken, in that it returns the empty string
7409 # if there is no fortran compiler, we have our own version here.
7410 m4_defun([_LT_PROG_FC],
7412 pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
7414 if test -z "$FC" || test "X$FC" = "Xno"; then
7417 popdef([AC_MSG_ERROR])
7420 dnl aclocal-1.4 backwards compatibility:
7421 dnl AC_DEFUN([_LT_PROG_FC], [])
7424 # _LT_LANG_FC_CONFIG([TAG])
7425 # -------------------------
7426 # Ensure that the configuration variables for a Fortran compiler are
7427 # suitably defined. These variables are subsequently used by _LT_CONFIG
7428 # to write the compiler configuration to `libtool'.
7429 m4_defun([_LT_LANG_FC_CONFIG],
7430 [AC_REQUIRE([_LT_PROG_FC])dnl
7431 AC_LANG_PUSH(Fortran)
7433 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7434 _LT_TAGVAR(allow_undefined_flag, $1)=
7435 _LT_TAGVAR(always_export_symbols, $1)=no
7436 _LT_TAGVAR(archive_expsym_cmds, $1)=
7437 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7438 _LT_TAGVAR(hardcode_direct, $1)=no
7439 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7440 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7441 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
7442 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7443 _LT_TAGVAR(hardcode_minus_L, $1)=no
7444 _LT_TAGVAR(hardcode_automatic, $1)=no
7445 _LT_TAGVAR(inherit_rpath, $1)=no
7446 _LT_TAGVAR(module_cmds, $1)=
7447 _LT_TAGVAR(module_expsym_cmds, $1)=
7448 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7449 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7450 _LT_TAGVAR(no_undefined_flag, $1)=
7451 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7452 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7454 # Source file extension for fc test sources.
7455 ac_ext=${ac_fc_srcext-f}
7457 # Object file extension for compiled fc test sources.
7459 _LT_TAGVAR(objext, $1)=$objext
7461 # No sense in running all these tests if we already determined that
7462 # the FC compiler isn't working. Some variables (like enable_shared)
7463 # are currently assumed to apply to all compilers on this platform,
7464 # and will be corrupted by setting them based on a non-working compiler.
7465 if test "$_lt_disable_FC" != yes; then
7466 # Code to be used in simple compile tests
7467 lt_simple_compile_test_code="\
7473 # Code to be used in simple link tests
7474 lt_simple_link_test_code="\
7479 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7482 # save warnings/boilerplate of simple test code
7483 _LT_COMPILER_BOILERPLATE
7484 _LT_LINKER_BOILERPLATE
7486 # Allow CC to be a program name with arguments.
7491 GCC=$ac_cv_fc_compiler_gnu
7493 _LT_TAGVAR(compiler, $1)=$CC
7494 _LT_CC_BASENAME([$compiler])
7496 if test -n "$compiler"; then
7497 AC_MSG_CHECKING([if libtool supports shared libraries])
7498 AC_MSG_RESULT([$can_build_shared])
7500 AC_MSG_CHECKING([whether to build shared libraries])
7501 test "$can_build_shared" = "no" && enable_shared=no
7503 # On AIX, shared libraries and static libraries use the same namespace, and
7504 # are all built from PIC.
7507 test "$enable_shared" = yes && enable_static=no
7508 if test -n "$RANLIB"; then
7509 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7510 postinstall_cmds='$RANLIB $lib'
7514 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7515 test "$enable_shared" = yes && enable_static=no
7519 AC_MSG_RESULT([$enable_shared])
7521 AC_MSG_CHECKING([whether to build static libraries])
7522 # Make sure either enable_shared or enable_static is yes.
7523 test "$enable_shared" = yes || enable_static=yes
7524 AC_MSG_RESULT([$enable_static])
7526 _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
7527 _LT_TAGVAR(LD, $1)="$LD"
7530 ## There is no encapsulation within the following macros, do not change
7531 ## the running order or otherwise move them around unless you know exactly
7532 ## what you are doing...
7533 _LT_SYS_HIDDEN_LIBDEPS($1)
7534 _LT_COMPILER_PIC($1)
7535 _LT_COMPILER_C_O($1)
7536 _LT_COMPILER_FILE_LOCKS($1)
7537 _LT_LINKER_SHLIBS($1)
7538 _LT_SYS_DYNAMIC_LINKER($1)
7539 _LT_LINKER_HARDCODE_LIBPATH($1)
7542 fi # test -n "$compiler"
7546 fi # test "$_lt_disable_FC" != yes
7549 ])# _LT_LANG_FC_CONFIG
7552 # _LT_LANG_GCJ_CONFIG([TAG])
7553 # --------------------------
7554 # Ensure that the configuration variables for the GNU Java Compiler compiler
7555 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7556 # to write the compiler configuration to `libtool'.
7557 m4_defun([_LT_LANG_GCJ_CONFIG],
7558 [AC_REQUIRE([LT_PROG_GCJ])dnl
7561 # Source file extension for Java test sources.
7564 # Object file extension for compiled Java test sources.
7566 _LT_TAGVAR(objext, $1)=$objext
7568 # Code to be used in simple compile tests
7569 lt_simple_compile_test_code="class foo {}"
7571 # Code to be used in simple link tests
7572 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7574 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7577 # save warnings/boilerplate of simple test code
7578 _LT_COMPILER_BOILERPLATE
7579 _LT_LINKER_BOILERPLATE
7581 # Allow CC to be a program name with arguments.
7587 _LT_TAGVAR(compiler, $1)=$CC
7588 _LT_TAGVAR(LD, $1)="$LD"
7589 _LT_CC_BASENAME([$compiler])
7591 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7592 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7594 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7596 if test -n "$compiler"; then
7597 _LT_COMPILER_NO_RTTI($1)
7598 _LT_COMPILER_PIC($1)
7599 _LT_COMPILER_C_O($1)
7600 _LT_COMPILER_FILE_LOCKS($1)
7601 _LT_LINKER_SHLIBS($1)
7602 _LT_LINKER_HARDCODE_LIBPATH($1)
7611 ])# _LT_LANG_GCJ_CONFIG
7614 # _LT_LANG_RC_CONFIG([TAG])
7615 # -------------------------
7616 # Ensure that the configuration variables for the Windows resource compiler
7617 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7618 # to write the compiler configuration to `libtool'.
7619 m4_defun([_LT_LANG_RC_CONFIG],
7620 [AC_REQUIRE([LT_PROG_RC])dnl
7623 # Source file extension for RC test sources.
7626 # Object file extension for compiled RC test sources.
7628 _LT_TAGVAR(objext, $1)=$objext
7630 # Code to be used in simple compile tests
7631 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
7633 # Code to be used in simple link tests
7634 lt_simple_link_test_code="$lt_simple_compile_test_code"
7636 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7639 # save warnings/boilerplate of simple test code
7640 _LT_COMPILER_BOILERPLATE
7641 _LT_LINKER_BOILERPLATE
7643 # Allow CC to be a program name with arguments.
7649 _LT_TAGVAR(compiler, $1)=$CC
7650 _LT_CC_BASENAME([$compiler])
7651 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
7653 if test -n "$compiler"; then
7661 ])# _LT_LANG_RC_CONFIG
7666 AC_DEFUN([LT_PROG_GCJ],
7667 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
7668 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
7669 [AC_CHECK_TOOL(GCJ, gcj,)
7670 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7671 AC_SUBST(GCJFLAGS)])])[]dnl
7675 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
7676 dnl aclocal-1.4 backwards compatibility:
7677 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
7682 AC_DEFUN([LT_PROG_RC],
7683 [AC_CHECK_TOOL(RC, windres,)
7687 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
7688 dnl aclocal-1.4 backwards compatibility:
7689 dnl AC_DEFUN([LT_AC_PROG_RC], [])
7694 # If we don't have a new enough Autoconf to choose the best grep
7695 # available, choose the one first in the user's PATH.
7696 m4_defun([_LT_DECL_EGREP],
7697 [AC_REQUIRE([AC_PROG_EGREP])dnl
7698 AC_REQUIRE([AC_PROG_FGREP])dnl
7699 test -z "$GREP" && GREP=grep
7700 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
7701 _LT_DECL([], [EGREP], [1], [An ERE matcher])
7702 _LT_DECL([], [FGREP], [1], [A literal string matcher])
7703 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
7710 # If we don't have a new enough Autoconf to choose the best objdump
7711 # available, choose the one first in the user's PATH.
7712 m4_defun([_LT_DECL_OBJDUMP],
7713 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
7714 test -z "$OBJDUMP" && OBJDUMP=objdump
7715 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
7722 # Check for a fully-functional sed program, that truncates
7723 # as few characters as possible. Prefer GNU sed if found.
7724 m4_defun([_LT_DECL_SED],
7726 test -z "$SED" && SED=sed
7727 Xsed="$SED -e 1s/^X//"
7728 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
7729 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
7730 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
7733 m4_ifndef([AC_PROG_SED], [
7734 # NOTE: This macro has been submitted for inclusion into #
7735 # GNU Autoconf as AC_PROG_SED. When it is available in #
7736 # a released version of Autoconf we should remove this #
7737 # macro and use it instead. #
7739 m4_defun([AC_PROG_SED],
7740 [AC_MSG_CHECKING([for a sed that does not truncate output])
7741 AC_CACHE_VAL(lt_cv_path_SED,
7742 [# Loop through the user's path and test for sed and gsed.
7743 # Then use that list of sed's as ones to test for truncation.
7744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7748 test -z "$as_dir" && as_dir=.
7749 for lt_ac_prog in sed gsed; do
7750 for ac_exec_ext in '' $ac_executable_extensions; do
7751 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7752 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7760 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
7761 # along with /bin/sed that truncates output.
7762 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7763 test ! -f $lt_ac_sed && continue
7764 cat /dev/null > conftest.in
7766 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7767 # Check for GNU sed and select it if it is found.
7768 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7769 lt_cv_path_SED=$lt_ac_sed
7773 cat conftest.in conftest.in >conftest.tmp
7774 mv conftest.tmp conftest.in
7775 cp conftest.in conftest.nl
7777 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7778 cmp -s conftest.out conftest.nl || break
7779 # 10000 chars as input seems more than enough
7780 test $lt_ac_count -gt 10 && break
7781 lt_ac_count=`expr $lt_ac_count + 1`
7782 if test $lt_ac_count -gt $lt_ac_max; then
7783 lt_ac_max=$lt_ac_count
7784 lt_cv_path_SED=$lt_ac_sed
7791 AC_MSG_RESULT([$SED])
7796 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
7797 dnl aclocal-1.4 backwards compatibility:
7798 dnl AC_DEFUN([LT_AC_PROG_SED], [])
7801 # _LT_CHECK_SHELL_FEATURES
7802 # ------------------------
7803 # Find out whether the shell is Bourne or XSI compatible,
7804 # or has some other useful features.
7805 m4_defun([_LT_CHECK_SHELL_FEATURES],
7806 [AC_MSG_CHECKING([whether the shell understands some XSI constructs])
7807 # Try some XSI features
7810 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7812 && eval 'test $(( 1 + 1 )) -eq 2 \
7813 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7815 AC_MSG_RESULT([$xsi_shell])
7816 _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
7818 AC_MSG_CHECKING([whether the shell understands "+="])
7820 ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
7822 && lt_shell_append=yes
7823 AC_MSG_RESULT([$lt_shell_append])
7824 _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
7826 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7831 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
7833 # test EBCDIC or ASCII
7834 case `echo X|tr X '\101'` in
7835 A) # ASCII based system
7836 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7837 lt_SP2NL='tr \040 \012'
7838 lt_NL2SP='tr \015\012 \040\040'
7840 *) # EBCDIC based system
7841 lt_SP2NL='tr \100 \n'
7842 lt_NL2SP='tr \r\n \100\100'
7845 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
7846 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
7847 ])# _LT_CHECK_SHELL_FEATURES
7850 # _LT_PROG_XSI_SHELLFNS
7851 # ---------------------
7852 # Bourne and XSI compatible variants of some useful shell functions.
7853 m4_defun([_LT_PROG_XSI_SHELLFNS],
7856 cat << \_LT_EOF >> "$cfgfile"
7858 # func_dirname file append nondir_replacement
7859 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7860 # otherwise set result to NONDIR_REPLACEMENT.
7864 */*) func_dirname_result="${1%/*}${2}" ;;
7865 * ) func_dirname_result="${3}" ;;
7869 # func_basename file
7872 func_basename_result="${1##*/}"
7875 # func_dirname_and_basename file append nondir_replacement
7876 # perform func_basename and func_dirname in a single function
7878 # dirname: Compute the dirname of FILE. If nonempty,
7879 # add APPEND to the result, otherwise set result
7880 # to NONDIR_REPLACEMENT.
7881 # value returned in "$func_dirname_result"
7882 # basename: Compute filename of FILE.
7883 # value retuned in "$func_basename_result"
7884 # Implementation must be kept synchronized with func_dirname
7885 # and func_basename. For efficiency, we do not delegate to
7886 # those functions but instead duplicate the functionality here.
7887 func_dirname_and_basename ()
7890 */*) func_dirname_result="${1%/*}${2}" ;;
7891 * ) func_dirname_result="${3}" ;;
7893 func_basename_result="${1##*/}"
7896 # func_stripname prefix suffix name
7897 # strip PREFIX and SUFFIX off of NAME.
7898 # PREFIX and SUFFIX must not contain globbing or regex special
7899 # characters, hashes, percent signs, but SUFFIX may contain a leading
7900 # dot (in which case that matches only a dot).
7903 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
7904 # positional parameters, so assign one to ordinary parameter first.
7905 func_stripname_result=${3}
7906 func_stripname_result=${func_stripname_result#"${1}"}
7907 func_stripname_result=${func_stripname_result%"${2}"}
7913 func_opt_split_opt=${1%%=*}
7914 func_opt_split_arg=${1#*=}
7921 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
7922 *) func_lo2o_result=${1} ;;
7926 # func_xform libobj-or-source
7929 func_xform_result=${1%.*}.lo
7932 # func_arith arithmetic-term...
7935 func_arith_result=$(( $[*] ))
7939 # STRING may not start with a hyphen.
7942 func_len_result=${#1}
7947 *) # Bourne compatible functions.
7948 cat << \_LT_EOF >> "$cfgfile"
7950 # func_dirname file append nondir_replacement
7951 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
7952 # otherwise set result to NONDIR_REPLACEMENT.
7955 # Extract subdirectory from the argument.
7956 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
7957 if test "X$func_dirname_result" = "X${1}"; then
7958 func_dirname_result="${3}"
7960 func_dirname_result="$func_dirname_result${2}"
7964 # func_basename file
7967 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
7970 dnl func_dirname_and_basename
7971 dnl A portable version of this function is already defined in general.m4sh
7972 dnl so there is no need for it here.
7974 # func_stripname prefix suffix name
7975 # strip PREFIX and SUFFIX off of NAME.
7976 # PREFIX and SUFFIX must not contain globbing or regex special
7977 # characters, hashes, percent signs, but SUFFIX may contain a leading
7978 # dot (in which case that matches only a dot).
7979 # func_strip_suffix prefix name
7983 .*) func_stripname_result=`$ECHO "X${3}" \
7984 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
7985 *) func_stripname_result=`$ECHO "X${3}" \
7986 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
7991 my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
7992 my_sed_long_arg='1s/^-[[^=]]*=//'
7997 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
7998 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
8004 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
8007 # func_xform libobj-or-source
8010 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
8013 # func_arith arithmetic-term...
8016 func_arith_result=`expr "$[@]"`
8020 # STRING may not start with a hyphen.
8023 func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
8029 case $lt_shell_append in
8031 cat << \_LT_EOF >> "$cfgfile"
8033 # func_append var value
8034 # Append VALUE to the end of shell variable VAR.
8042 cat << \_LT_EOF >> "$cfgfile"
8044 # func_append var value
8045 # Append VALUE to the end of shell variable VAR.
8048 eval "$[1]=\$$[1]\$[2]"
8056 # Helper functions for option handling. -*- Autoconf -*-
8058 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8059 # Written by Gary V. Vaughan, 2004
8061 # This file is free software; the Free Software Foundation gives
8062 # unlimited permission to copy and/or distribute it, with or without
8063 # modifications, as long as this notice is preserved.
8065 # serial 6 ltoptions.m4
8067 # This is to help aclocal find these macros, as it can't see m4_define.
8068 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
8071 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
8072 # ------------------------------------------
8073 m4_define([_LT_MANGLE_OPTION],
8074 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
8077 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
8078 # ---------------------------------------
8079 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
8080 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
8082 m4_define([_LT_SET_OPTION],
8083 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
8084 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
8085 _LT_MANGLE_DEFUN([$1], [$2]),
8086 [m4_warning([Unknown $1 option `$2'])])[]dnl
8090 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
8091 # ------------------------------------------------------------
8092 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8093 m4_define([_LT_IF_OPTION],
8094 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
8097 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
8098 # -------------------------------------------------------
8099 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
8101 m4_define([_LT_UNLESS_OPTIONS],
8102 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8103 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
8104 [m4_define([$0_found])])])[]dnl
8105 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
8110 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
8111 # ----------------------------------------
8112 # OPTION-LIST is a space-separated list of Libtool options associated
8113 # with MACRO-NAME. If any OPTION has a matching handler declared with
8114 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
8115 # the unknown option and exit.
8116 m4_defun([_LT_SET_OPTIONS],
8118 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
8119 [_LT_SET_OPTION([$1], _LT_Option)])
8121 m4_if([$1],[LT_INIT],[
8123 dnl Simply set some default values (i.e off) if boolean options were not
8125 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
8127 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
8130 dnl If no reference was made to various pairs of opposing options, then
8131 dnl we run the default mode handler for the pair. For example, if neither
8132 dnl `shared' nor `disable-shared' was passed, we enable building of shared
8133 dnl archives by default:
8134 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
8135 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
8136 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
8137 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
8138 [_LT_ENABLE_FAST_INSTALL])
8144 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
8145 # -----------------------------------------
8146 m4_define([_LT_MANGLE_DEFUN],
8147 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
8150 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
8151 # -----------------------------------------------
8152 m4_define([LT_OPTION_DEFINE],
8153 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
8154 ])# LT_OPTION_DEFINE
8159 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
8162 AU_DEFUN([AC_LIBTOOL_DLOPEN],
8163 [_LT_SET_OPTION([LT_INIT], [dlopen])
8164 AC_DIAGNOSE([obsolete],
8165 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8166 put the `dlopen' option into LT_INIT's first parameter.])
8169 dnl aclocal-1.4 backwards compatibility:
8170 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
8175 # Declare package support for building win32 dll's.
8176 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
8177 [enable_win32_dll=yes
8180 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
8181 AC_CHECK_TOOL(AS, as, false)
8182 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8183 AC_CHECK_TOOL(OBJDUMP, objdump, false)
8187 test -z "$AS" && AS=as
8188 _LT_DECL([], [AS], [0], [Assembler program])dnl
8190 test -z "$DLLTOOL" && DLLTOOL=dlltool
8191 _LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
8193 test -z "$OBJDUMP" && OBJDUMP=objdump
8194 _LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
8197 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
8198 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8199 _LT_SET_OPTION([LT_INIT], [win32-dll])
8200 AC_DIAGNOSE([obsolete],
8201 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8202 put the `win32-dll' option into LT_INIT's first parameter.])
8205 dnl aclocal-1.4 backwards compatibility:
8206 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
8209 # _LT_ENABLE_SHARED([DEFAULT])
8210 # ----------------------------
8211 # implement the --enable-shared flag, and supports the `shared' and
8212 # `disable-shared' LT_INIT options.
8213 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8214 m4_define([_LT_ENABLE_SHARED],
8215 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
8216 AC_ARG_ENABLE([shared],
8217 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
8218 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
8219 [p=${PACKAGE-default}
8221 yes) enable_shared=yes ;;
8222 no) enable_shared=no ;;
8225 # Look at the argument we got. We use all the common list separators.
8226 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8227 for pkg in $enableval; do
8229 if test "X$pkg" = "X$p"; then
8236 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
8238 _LT_DECL([build_libtool_libs], [enable_shared], [0],
8239 [Whether or not to build shared libraries])
8240 ])# _LT_ENABLE_SHARED
8242 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
8243 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
8246 AC_DEFUN([AC_ENABLE_SHARED],
8247 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
8250 AC_DEFUN([AC_DISABLE_SHARED],
8251 [_LT_SET_OPTION([LT_INIT], [disable-shared])
8254 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
8255 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
8257 dnl aclocal-1.4 backwards compatibility:
8258 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
8259 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
8263 # _LT_ENABLE_STATIC([DEFAULT])
8264 # ----------------------------
8265 # implement the --enable-static flag, and support the `static' and
8266 # `disable-static' LT_INIT options.
8267 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8268 m4_define([_LT_ENABLE_STATIC],
8269 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
8270 AC_ARG_ENABLE([static],
8271 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
8272 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
8273 [p=${PACKAGE-default}
8275 yes) enable_static=yes ;;
8276 no) enable_static=no ;;
8279 # Look at the argument we got. We use all the common list separators.
8280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8281 for pkg in $enableval; do
8283 if test "X$pkg" = "X$p"; then
8290 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
8292 _LT_DECL([build_old_libs], [enable_static], [0],
8293 [Whether or not to build static libraries])
8294 ])# _LT_ENABLE_STATIC
8296 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
8297 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
8300 AC_DEFUN([AC_ENABLE_STATIC],
8301 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
8304 AC_DEFUN([AC_DISABLE_STATIC],
8305 [_LT_SET_OPTION([LT_INIT], [disable-static])
8308 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
8309 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
8311 dnl aclocal-1.4 backwards compatibility:
8312 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
8313 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
8317 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
8318 # ----------------------------------
8319 # implement the --enable-fast-install flag, and support the `fast-install'
8320 # and `disable-fast-install' LT_INIT options.
8321 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
8322 m4_define([_LT_ENABLE_FAST_INSTALL],
8323 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
8324 AC_ARG_ENABLE([fast-install],
8325 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
8326 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
8327 [p=${PACKAGE-default}
8329 yes) enable_fast_install=yes ;;
8330 no) enable_fast_install=no ;;
8332 enable_fast_install=no
8333 # Look at the argument we got. We use all the common list separators.
8334 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8335 for pkg in $enableval; do
8337 if test "X$pkg" = "X$p"; then
8338 enable_fast_install=yes
8344 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
8346 _LT_DECL([fast_install], [enable_fast_install], [0],
8347 [Whether or not to optimize for fast installation])dnl
8348 ])# _LT_ENABLE_FAST_INSTALL
8350 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
8351 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
8354 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
8355 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
8356 AC_DIAGNOSE([obsolete],
8357 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8358 the `fast-install' option into LT_INIT's first parameter.])
8361 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
8362 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
8363 AC_DIAGNOSE([obsolete],
8364 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
8365 the `disable-fast-install' option into LT_INIT's first parameter.])
8368 dnl aclocal-1.4 backwards compatibility:
8369 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
8370 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
8373 # _LT_WITH_PIC([MODE])
8374 # --------------------
8375 # implement the --with-pic flag, and support the `pic-only' and `no-pic'
8377 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
8378 m4_define([_LT_WITH_PIC],
8380 [AS_HELP_STRING([--with-pic],
8381 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
8382 [pic_mode="$withval"],
8385 test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
8387 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
8390 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
8391 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
8394 AU_DEFUN([AC_LIBTOOL_PICMODE],
8395 [_LT_SET_OPTION([LT_INIT], [pic-only])
8396 AC_DIAGNOSE([obsolete],
8397 [$0: Remove this warning and the call to _LT_SET_OPTION when you
8398 put the `pic-only' option into LT_INIT's first parameter.])
8401 dnl aclocal-1.4 backwards compatibility:
8402 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
8405 m4_define([_LTDL_MODE], [])
8406 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
8407 [m4_define([_LTDL_MODE], [nonrecursive])])
8408 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
8409 [m4_define([_LTDL_MODE], [recursive])])
8410 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
8411 [m4_define([_LTDL_MODE], [subproject])])
8413 m4_define([_LTDL_TYPE], [])
8414 LT_OPTION_DEFINE([LTDL_INIT], [installable],
8415 [m4_define([_LTDL_TYPE], [installable])])
8416 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
8417 [m4_define([_LTDL_TYPE], [convenience])])
8419 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
8421 # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
8422 # Written by Gary V. Vaughan, 2004
8424 # This file is free software; the Free Software Foundation gives
8425 # unlimited permission to copy and/or distribute it, with or without
8426 # modifications, as long as this notice is preserved.
8428 # serial 6 ltsugar.m4
8430 # This is to help aclocal find these macros, as it can't see m4_define.
8431 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
8434 # lt_join(SEP, ARG1, [ARG2...])
8435 # -----------------------------
8436 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
8437 # associated separator.
8438 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
8439 # versions in m4sugar had bugs.
8440 m4_define([lt_join],
8441 [m4_if([$#], [1], [],
8443 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
8444 m4_define([_lt_join],
8445 [m4_if([$#$2], [2], [],
8446 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
8452 # Manipulate m4 lists.
8453 # These macros are necessary as long as will still need to support
8454 # Autoconf-2.59 which quotes differently.
8455 m4_define([lt_car], [[$1]])
8457 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
8459 [m4_dquote(m4_shift($@))])])
8460 m4_define([lt_unquote], $1)
8463 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
8464 # ------------------------------------------
8465 # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
8466 # Note that neither SEPARATOR nor STRING are expanded; they are appended
8467 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
8468 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
8469 # than defined and empty).
8471 # This macro is needed until we can rely on Autoconf 2.62, since earlier
8472 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
8473 m4_define([lt_append],
8475 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
8479 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
8480 # ----------------------------------------------------------
8481 # Produce a SEP delimited list of all paired combinations of elements of
8482 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
8483 # has the form PREFIXmINFIXSUFFIXn.
8484 # Needed until we can rely on m4_combine added in Autoconf 2.62.
8485 m4_define([lt_combine],
8486 [m4_if(m4_eval([$# > 3]), [1],
8487 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
8488 [[m4_foreach([_Lt_prefix], [$2],
8489 [m4_foreach([_Lt_suffix],
8490 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
8491 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
8494 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
8495 # -----------------------------------------------------------------------
8496 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
8497 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
8498 m4_define([lt_if_append_uniq],
8500 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
8501 [lt_append([$1], [$2], [$3])$4],
8503 [lt_append([$1], [$2], [$3])$4])])
8506 # lt_dict_add(DICT, KEY, VALUE)
8507 # -----------------------------
8508 m4_define([lt_dict_add],
8509 [m4_define([$1($2)], [$3])])
8512 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
8513 # --------------------------------------------
8514 m4_define([lt_dict_add_subkey],
8515 [m4_define([$1($2:$3)], [$4])])
8518 # lt_dict_fetch(DICT, KEY, [SUBKEY])
8519 # ----------------------------------
8520 m4_define([lt_dict_fetch],
8522 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
8523 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
8526 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
8527 # -----------------------------------------------------------------
8528 m4_define([lt_if_dict_fetch],
8529 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
8534 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
8535 # --------------------------------------------------------------
8536 m4_define([lt_dict_filter],
8537 [m4_if([$5], [], [],
8538 [lt_join(m4_quote(m4_default([$4], [[, ]])),
8539 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
8540 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
8543 # ltversion.m4 -- version numbers -*- Autoconf -*-
8545 # Copyright (C) 2004 Free Software Foundation, Inc.
8546 # Written by Scott James Remnant, 2004
8548 # This file is free software; the Free Software Foundation gives
8549 # unlimited permission to copy and/or distribute it, with or without
8550 # modifications, as long as this notice is preserved.
8552 # Generated from ltversion.in.
8554 # serial 3017 ltversion.m4
8555 # This file is part of GNU Libtool
8557 m4_define([LT_PACKAGE_VERSION], [2.2.6b])
8558 m4_define([LT_PACKAGE_REVISION], [1.3017])
8560 AC_DEFUN([LTVERSION_VERSION],
8561 [macro_version='2.2.6b'
8562 macro_revision='1.3017'
8563 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
8564 _LT_DECL(, macro_revision, 0)
8567 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
8569 # Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
8570 # Written by Scott James Remnant, 2004.
8572 # This file is free software; the Free Software Foundation gives
8573 # unlimited permission to copy and/or distribute it, with or without
8574 # modifications, as long as this notice is preserved.
8576 # serial 4 lt~obsolete.m4
8578 # These exist entirely to fool aclocal when bootstrapping libtool.
8580 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
8581 # which have later been changed to m4_define as they aren't part of the
8582 # exported API, or moved to Autoconf or Automake where they belong.
8584 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
8585 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
8586 # using a macro with the same name in our local m4/libtool.m4 it'll
8587 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
8588 # and doesn't know about Autoconf macros at all.)
8590 # So we provide this file, which has a silly filename so it's always
8591 # included after everything else. This provides aclocal with the
8592 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
8593 # because those macros already exist, or will be overwritten later.
8594 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
8596 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
8597 # Yes, that means every name once taken will need to remain here until
8598 # we give up compatibility with versions before 1.7, at which point
8599 # we need to keep only those names which we still refer to.
8601 # This is to help aclocal find these macros, as it can't see m4_define.
8602 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
8604 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
8605 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
8606 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
8607 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
8608 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
8609 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
8610 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
8611 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
8612 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
8613 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
8614 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
8615 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
8616 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
8617 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
8618 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
8619 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
8620 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
8621 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
8622 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
8623 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
8624 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
8625 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
8626 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
8627 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
8628 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
8629 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
8630 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
8631 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
8632 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
8633 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
8634 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
8635 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
8636 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
8637 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
8638 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
8639 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
8640 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
8641 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
8642 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
8643 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
8644 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
8645 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
8646 m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
8647 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
8648 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
8649 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
8650 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
8651 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
8652 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
8653 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
8654 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
8655 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
8656 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
8657 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
8658 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
8660 # nls.m4 serial 3 (gettext-0.15)
8661 dnl Copyright (C) 1995-2003, 2005-2006 Free Software Foundation, Inc.
8662 dnl This file is free software; the Free Software Foundation
8663 dnl gives unlimited permission to copy and/or distribute it,
8664 dnl with or without modifications, as long as this notice is preserved.
8666 dnl This file can can be used in projects which are not available under
8667 dnl the GNU General Public License or the GNU Library General Public
8668 dnl License but which still want to provide support for the GNU gettext
8670 dnl Please note that the actual code of the GNU gettext library is covered
8671 dnl by the GNU Library General Public License, and the rest of the GNU
8672 dnl gettext package package is covered by the GNU General Public License.
8673 dnl They are *not* in the public domain.
8676 dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000.
8677 dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003.
8683 AC_MSG_CHECKING([whether NLS is requested])
8684 dnl Default is enabled NLS
8686 [ --disable-nls do not use Native Language Support],
8687 USE_NLS=$enableval, USE_NLS=yes)
8688 AC_MSG_RESULT($USE_NLS)
8692 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
8694 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
8696 # This program is free software; you can redistribute it and/or modify
8697 # it under the terms of the GNU General Public License as published by
8698 # the Free Software Foundation; either version 2 of the License, or
8699 # (at your option) any later version.
8701 # This program is distributed in the hope that it will be useful, but
8702 # WITHOUT ANY WARRANTY; without even the implied warranty of
8703 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8704 # General Public License for more details.
8706 # You should have received a copy of the GNU General Public License
8707 # along with this program; if not, write to the Free Software
8708 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8710 # As a special exception to the GNU General Public License, if you
8711 # distribute this file as part of a program that contains a
8712 # configuration script generated by Autoconf, you may include it under
8713 # the same distribution terms that you use for the rest of that program.
8715 # PKG_PROG_PKG_CONFIG([MIN-VERSION])
8716 # ----------------------------------
8717 AC_DEFUN([PKG_PROG_PKG_CONFIG],
8718 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
8719 m4_pattern_allow([^PKG_CONFIG(_PATH)?$])
8720 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])dnl
8721 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8722 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
8724 if test -n "$PKG_CONFIG"; then
8725 _pkg_min_version=m4_default([$1], [0.9.0])
8726 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
8727 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8728 AC_MSG_RESULT([yes])
8735 ])# PKG_PROG_PKG_CONFIG
8737 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
8739 # Check to see whether a particular set of modules exists. Similar
8740 # to PKG_CHECK_MODULES(), but does not set variables or print errors.
8743 # Similar to PKG_CHECK_MODULES, make sure that the first instance of
8744 # this or PKG_CHECK_MODULES is called, or make sure to call
8745 # PKG_CHECK_EXISTS manually
8746 # --------------------------------------------------------------
8747 AC_DEFUN([PKG_CHECK_EXISTS],
8748 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8749 if test -n "$PKG_CONFIG" && \
8750 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
8751 m4_ifval([$2], [$2], [:])
8752 m4_ifvaln([$3], [else
8757 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
8758 # ---------------------------------------------
8759 m4_define([_PKG_CONFIG],
8760 [if test -n "$PKG_CONFIG"; then
8761 if test -n "$$1"; then
8764 PKG_CHECK_EXISTS([$3],
8765 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`],
8773 # _PKG_SHORT_ERRORS_SUPPORTED
8774 # -----------------------------
8775 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
8776 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
8777 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8778 _pkg_short_errors_supported=yes
8780 _pkg_short_errors_supported=no
8782 ])# _PKG_SHORT_ERRORS_SUPPORTED
8785 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
8786 # [ACTION-IF-NOT-FOUND])
8789 # Note that if there is a possibility the first call to
8790 # PKG_CHECK_MODULES might not happen, you should be sure to include an
8791 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
8794 # --------------------------------------------------------------
8795 AC_DEFUN([PKG_CHECK_MODULES],
8796 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
8797 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
8798 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
8801 AC_MSG_CHECKING([for $1])
8803 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
8804 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
8806 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
8807 and $1[]_LIBS to avoid the need to call pkg-config.
8808 See the pkg-config man page for more details.])
8810 if test $pkg_failed = yes; then
8811 _PKG_SHORT_ERRORS_SUPPORTED
8812 if test $_pkg_short_errors_supported = yes; then
8813 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$2"`
8815 $1[]_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$2"`
8817 # Put the nasty error message in config.log where it belongs
8818 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
8820 ifelse([$4], , [AC_MSG_ERROR(dnl
8821 [Package requirements ($2) were not met:
8825 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8826 installed software in a non-standard prefix.
8830 [AC_MSG_RESULT([no])
8832 elif test $pkg_failed = untried; then
8833 ifelse([$4], , [AC_MSG_FAILURE(dnl
8834 [The pkg-config script could not be found or is too old. Make sure it
8835 is in your PATH or set the PKG_CONFIG environment variable to the full
8840 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])],
8843 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
8844 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
8845 AC_MSG_RESULT([yes])
8846 ifelse([$3], , :, [$3])
8848 ])# PKG_CHECK_MODULES
8850 # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8852 # This file is free software; the Free Software Foundation
8853 # gives unlimited permission to copy and/or distribute it,
8854 # with or without modifications, as long as this notice is preserved.
8856 # AM_AUTOMAKE_VERSION(VERSION)
8857 # ----------------------------
8858 # Automake X.Y traces this macro to ensure aclocal.m4 has been
8859 # generated from the m4 files accompanying Automake X.Y.
8860 # (This private macro should not be called outside this file.)
8861 AC_DEFUN([AM_AUTOMAKE_VERSION],
8862 [am__api_version='1.11'
8863 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
8864 dnl require some minimum version. Point them to the right macro.
8865 m4_if([$1], [1.11.1], [],
8866 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
8869 # _AM_AUTOCONF_VERSION(VERSION)
8870 # -----------------------------
8871 # aclocal traces this macro to find the Autoconf version.
8872 # This is a private macro too. Using m4_define simplifies
8873 # the logic in aclocal, which can simply ignore this definition.
8874 m4_define([_AM_AUTOCONF_VERSION], [])
8876 # AM_SET_CURRENT_AUTOMAKE_VERSION
8877 # -------------------------------
8878 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
8879 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
8880 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
8881 [AM_AUTOMAKE_VERSION([1.11.1])dnl
8882 m4_ifndef([AC_AUTOCONF_VERSION],
8883 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
8884 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
8886 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
8888 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8890 # This file is free software; the Free Software Foundation
8891 # gives unlimited permission to copy and/or distribute it,
8892 # with or without modifications, as long as this notice is preserved.
8894 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
8895 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
8896 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
8898 # Of course, Automake must honor this variable whenever it calls a
8899 # tool from the auxiliary directory. The problem is that $srcdir (and
8900 # therefore $ac_aux_dir as well) can be either absolute or relative,
8901 # depending on how configure is run. This is pretty annoying, since
8902 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
8903 # source directory, any form will work fine, but in subdirectories a
8904 # relative path needs to be adjusted first.
8906 # $ac_aux_dir/missing
8907 # fails when called from a subdirectory if $ac_aux_dir is relative
8908 # $top_srcdir/$ac_aux_dir/missing
8909 # fails if $ac_aux_dir is absolute,
8910 # fails when called from a subdirectory in a VPATH build with
8911 # a relative $ac_aux_dir
8913 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
8914 # are both prefixed by $srcdir. In an in-source build this is usually
8915 # harmless because $srcdir is `.', but things will broke when you
8916 # start a VPATH build or use an absolute $srcdir.
8918 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
8919 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
8920 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
8921 # and then we would define $MISSING as
8922 # MISSING="\${SHELL} $am_aux_dir/missing"
8923 # This will work as long as MISSING is not called from configure, because
8924 # unfortunately $(top_srcdir) has no meaning in configure.
8925 # However there are other variables, like CC, which are often used in
8926 # configure, and could therefore not use this "fixed" $ac_aux_dir.
8928 # Another solution, used here, is to always expand $ac_aux_dir to an
8929 # absolute PATH. The drawback is that using absolute paths prevent a
8930 # configured tree to be moved without reconfiguration.
8932 AC_DEFUN([AM_AUX_DIR_EXPAND],
8933 [dnl Rely on autoconf to set up CDPATH properly.
8934 AC_PREREQ([2.50])dnl
8935 # expand $ac_aux_dir to an absolute path
8936 am_aux_dir=`cd $ac_aux_dir && pwd`
8939 # AM_CONDITIONAL -*- Autoconf -*-
8941 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
8942 # Free Software Foundation, Inc.
8944 # This file is free software; the Free Software Foundation
8945 # gives unlimited permission to copy and/or distribute it,
8946 # with or without modifications, as long as this notice is preserved.
8950 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
8951 # -------------------------------------
8952 # Define a conditional.
8953 AC_DEFUN([AM_CONDITIONAL],
8955 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
8956 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
8957 AC_SUBST([$1_TRUE])dnl
8958 AC_SUBST([$1_FALSE])dnl
8959 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
8960 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
8961 m4_define([_AM_COND_VALUE_$1], [$2])dnl
8969 AC_CONFIG_COMMANDS_PRE(
8970 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
8971 AC_MSG_ERROR([[conditional "$1" was never defined.
8972 Usually this means the macro was only invoked conditionally.]])
8975 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
8976 # Free Software Foundation, Inc.
8978 # This file is free software; the Free Software Foundation
8979 # gives unlimited permission to copy and/or distribute it,
8980 # with or without modifications, as long as this notice is preserved.
8984 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
8985 # written in clear, in which case automake, when reading aclocal.m4,
8986 # will think it sees a *use*, and therefore will trigger all it's
8987 # C support machinery. Also note that it means that autoscan, seeing
8988 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
8991 # _AM_DEPENDENCIES(NAME)
8992 # ----------------------
8993 # See how the compiler implements dependency checking.
8994 # NAME is "CC", "CXX", "GCJ", or "OBJC".
8995 # We try a few techniques and use that to set a single cache variable.
8997 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
8998 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
8999 # dependency, and given that the user is not expected to run this macro,
9000 # just rely on AC_PROG_CC.
9001 AC_DEFUN([_AM_DEPENDENCIES],
9002 [AC_REQUIRE([AM_SET_DEPDIR])dnl
9003 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
9004 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
9005 AC_REQUIRE([AM_DEP_TRACK])dnl
9007 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
9008 [$1], CXX, [depcc="$CXX" am_compiler_list=],
9009 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
9010 [$1], UPC, [depcc="$UPC" am_compiler_list=],
9011 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
9012 [depcc="$$1" am_compiler_list=])
9014 AC_CACHE_CHECK([dependency style of $depcc],
9015 [am_cv_$1_dependencies_compiler_type],
9016 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
9017 # We make a subdir and do the tests there. Otherwise we can end up
9018 # making bogus files that we don't know about and never remove. For
9019 # instance it was reported that on HP-UX the gcc test will end up
9020 # making a dummy file named `D' -- because `-MD' means `put the output
9023 # Copy depcomp to subdir because otherwise we won't find it if we're
9024 # using a relative directory.
9025 cp "$am_depcomp" conftest.dir
9027 # We will build objects and dependencies in a subdirectory because
9028 # it helps to detect inapplicable dependency modes. For instance
9029 # both Tru64's cc and ICC support -MD to output dependencies as a
9030 # side effect of compilation, but ICC will put the dependencies in
9031 # the current directory while Tru64 will put them in the object
9035 am_cv_$1_dependencies_compiler_type=none
9036 if test "$am_compiler_list" = ""; then
9037 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
9041 [case " $depcc " in #(
9042 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9045 [case " $depcc " in #(
9046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
9049 for depmode in $am_compiler_list; do
9050 # Setup a source with many dependencies, because some compilers
9051 # like to wrap large dependency lists on column 80 (with \), and
9052 # we should not choose a depcomp mode which is confused by this.
9054 # We need to recreate these files for each test, as the compiler may
9055 # overwrite some of them when testing with obscure command lines.
9056 # This happens at least with the AIX C compiler.
9058 for i in 1 2 3 4 5 6; do
9059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
9060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
9061 # Solaris 8's {/usr,}/bin/sh.
9062 touch sub/conftst$i.h
9064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
9066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
9067 # mode. It turns out that the SunPro C++ compiler does not properly
9068 # handle `-M -o', and we need to detect this. Also, some Intel
9069 # versions had trouble with output in subdirs
9070 am__obj=sub/conftest.${OBJEXT-o}
9071 am__minus_obj="-o $am__obj"
9074 # This depmode causes a compiler race in universal mode.
9075 test "$am__universal" = false || continue
9078 # after this tag, mechanisms are not by side-effect, so they'll
9079 # only be used when explicitly requested
9080 if test "x$enable_dependency_tracking" = xyes; then
9086 msvisualcpp | msvcmsys)
9087 # This compiler won't grok `-c -o', but also, the minuso test has
9088 # not run yet. These depmodes are late enough in the game, and
9089 # so weak that their functioning should not be impacted.
9090 am__obj=conftest.${OBJEXT-o}
9095 if depmode=$depmode \
9096 source=sub/conftest.c object=$am__obj \
9097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
9098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
9099 >/dev/null 2>conftest.err &&
9100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
9101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
9102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
9103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
9104 # icc doesn't choke on unknown options, it will just issue warnings
9105 # or remarks (even with -Werror). So we grep stderr for any message
9106 # that says an option was ignored or not supported.
9107 # When given -MP, icc 7.0 and 7.1 complain thusly:
9108 # icc: Command line warning: ignoring option '-M'; no argument required
9109 # The diagnosis changed in icc 8.0:
9110 # icc: Command line remark: option '-MP' not supported
9111 if (grep 'ignoring option' conftest.err ||
9112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
9113 am_cv_$1_dependencies_compiler_type=$depmode
9122 am_cv_$1_dependencies_compiler_type=none
9125 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
9126 AM_CONDITIONAL([am__fastdep$1], [
9127 test "x$enable_dependency_tracking" != xno \
9128 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
9134 # Choose a directory name for dependency files.
9135 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
9136 AC_DEFUN([AM_SET_DEPDIR],
9137 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9138 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
9144 AC_DEFUN([AM_DEP_TRACK],
9145 [AC_ARG_ENABLE(dependency-tracking,
9146 [ --disable-dependency-tracking speeds up one-time build
9147 --enable-dependency-tracking do not reject slow dependency extractors])
9148 if test "x$enable_dependency_tracking" != xno; then
9149 am_depcomp="$ac_aux_dir/depcomp"
9152 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
9153 AC_SUBST([AMDEPBACKSLASH])dnl
9154 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
9157 # Generate code to set up dependency tracking. -*- Autoconf -*-
9159 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
9160 # Free Software Foundation, Inc.
9162 # This file is free software; the Free Software Foundation
9163 # gives unlimited permission to copy and/or distribute it,
9164 # with or without modifications, as long as this notice is preserved.
9168 # _AM_OUTPUT_DEPENDENCY_COMMANDS
9169 # ------------------------------
9170 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
9172 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9173 # are listed without --file. Let's play safe and only enable the eval
9174 # if we detect the quoting.
9175 case $CONFIG_FILES in
9176 *\'*) eval set x "$CONFIG_FILES" ;;
9177 *) set x $CONFIG_FILES ;;
9182 # Strip MF so we end up with the name of the file.
9183 mf=`echo "$mf" | sed -e 's/:.*$//'`
9184 # Check whether this is an Automake generated Makefile or not.
9185 # We used to match only the files named `Makefile.in', but
9186 # some people rename them; so instead we look at the file content.
9187 # Grep'ing the first line is not enough: some people post-process
9188 # each Makefile.in and add a new line on top of each file to say so.
9189 # Grep'ing the whole file is not good either: AIX grep has a line
9190 # limit of 2048, but all sed's we know have understand at least 4000.
9191 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9192 dirpart=`AS_DIRNAME("$mf")`
9196 # Extract the definition of DEPDIR, am__include, and am__quote
9197 # from the Makefile without running `make'.
9198 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9199 test -z "$DEPDIR" && continue
9200 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9201 test -z "am__include" && continue
9202 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9203 # When using ansi2knr, U may be empty or an underscore; expand it
9204 U=`sed -n 's/^U = //p' < "$mf"`
9205 # Find all dependency output files, they are included files with
9206 # $(DEPDIR) in their names. We invoke sed twice because it is the
9207 # simplest approach to changing $(DEPDIR) to its actual value in the
9209 for file in `sed -n "
9210 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9211 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9212 # Make sure the directory exists.
9213 test -f "$dirpart/$file" && continue
9214 fdir=`AS_DIRNAME(["$file"])`
9215 AS_MKDIR_P([$dirpart/$fdir])
9216 # echo "creating $dirpart/$file"
9217 echo '# dummy' > "$dirpart/$file"
9221 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
9224 # AM_OUTPUT_DEPENDENCY_COMMANDS
9225 # -----------------------------
9226 # This macro should only be invoked once -- use via AC_REQUIRE.
9228 # This code is only required when automatic dependency tracking
9229 # is enabled. FIXME. This creates each `.P' file that we will
9230 # need in order to bootstrap the dependency handling code.
9231 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
9232 [AC_CONFIG_COMMANDS([depfiles],
9233 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
9234 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
9237 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
9238 # Free Software Foundation, Inc.
9240 # This file is free software; the Free Software Foundation
9241 # gives unlimited permission to copy and/or distribute it,
9242 # with or without modifications, as long as this notice is preserved.
9246 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
9247 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
9249 # Do all the work for Automake. -*- Autoconf -*-
9251 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
9252 # 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
9254 # This file is free software; the Free Software Foundation
9255 # gives unlimited permission to copy and/or distribute it,
9256 # with or without modifications, as long as this notice is preserved.
9260 # This macro actually does too much. Some checks are only needed if
9261 # your package does certain things. But this isn't really a big deal.
9263 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
9264 # AM_INIT_AUTOMAKE([OPTIONS])
9265 # -----------------------------------------------
9266 # The call with PACKAGE and VERSION arguments is the old style
9267 # call (pre autoconf-2.50), which is being phased out. PACKAGE
9268 # and VERSION should now be passed to AC_INIT and removed from
9269 # the call to AM_INIT_AUTOMAKE.
9270 # We support both call styles for the transition. After
9271 # the next Automake release, Autoconf can make the AC_INIT
9272 # arguments mandatory, and then we can depend on a new Autoconf
9273 # release and drop the old call support.
9274 AC_DEFUN([AM_INIT_AUTOMAKE],
9275 [AC_PREREQ([2.62])dnl
9276 dnl Autoconf wants to disallow AM_ names. We explicitly allow
9277 dnl the ones we care about.
9278 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
9279 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
9280 AC_REQUIRE([AC_PROG_INSTALL])dnl
9281 if test "`cd $srcdir && pwd`" != "`pwd`"; then
9282 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
9283 # is not polluted with repeated "-I."
9284 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
9285 # test to see if srcdir already configured
9286 if test -f $srcdir/config.status; then
9287 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
9291 # test whether we have cygpath
9292 if test -z "$CYGPATH_W"; then
9293 if (cygpath --version) >/dev/null 2>/dev/null; then
9294 CYGPATH_W='cygpath -w'
9299 AC_SUBST([CYGPATH_W])
9301 # Define the identity of the package.
9302 dnl Distinguish between old-style and new-style calls.
9304 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
9305 AC_SUBST([PACKAGE], [$1])dnl
9306 AC_SUBST([VERSION], [$2])],
9307 [_AM_SET_OPTIONS([$1])dnl
9308 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
9309 m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
9310 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
9311 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
9312 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
9314 _AM_IF_OPTION([no-define],,
9315 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
9316 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
9318 # Some tools Automake needs.
9319 AC_REQUIRE([AM_SANITY_CHECK])dnl
9320 AC_REQUIRE([AC_ARG_PROGRAM])dnl
9321 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
9322 AM_MISSING_PROG(AUTOCONF, autoconf)
9323 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
9324 AM_MISSING_PROG(AUTOHEADER, autoheader)
9325 AM_MISSING_PROG(MAKEINFO, makeinfo)
9326 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9327 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
9328 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
9329 # We need awk for the "check" target. The system "awk" is bad on
9331 AC_REQUIRE([AC_PROG_AWK])dnl
9332 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
9333 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
9334 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
9335 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
9336 [_AM_PROG_TAR([v7])])])
9337 _AM_IF_OPTION([no-dependencies],,
9338 [AC_PROVIDE_IFELSE([AC_PROG_CC],
9339 [_AM_DEPENDENCIES(CC)],
9340 [define([AC_PROG_CC],
9341 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
9342 AC_PROVIDE_IFELSE([AC_PROG_CXX],
9343 [_AM_DEPENDENCIES(CXX)],
9344 [define([AC_PROG_CXX],
9345 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
9346 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
9347 [_AM_DEPENDENCIES(OBJC)],
9348 [define([AC_PROG_OBJC],
9349 defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
9351 _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
9352 dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
9353 dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
9354 dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
9355 AC_CONFIG_COMMANDS_PRE(dnl
9356 [m4_provide_if([_AM_COMPILER_EXEEXT],
9357 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
9360 dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
9361 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
9362 dnl mangled by Autoconf and run in a shell conditional statement.
9363 m4_define([_AC_COMPILER_EXEEXT],
9364 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
9367 # When config.status generates a header, we must update the stamp-h file.
9368 # This file resides in the same directory as the config header
9369 # that is generated. The stamp files are numbered to have different names.
9371 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
9372 # loop where config.status creates the headers, so we can generate
9373 # our stamp files there.
9374 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
9375 [# Compute $1's index in $config_headers.
9378 for _am_header in $config_headers :; do
9380 $_am_arg | $_am_arg:* )
9383 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9386 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
9388 # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
9390 # This file is free software; the Free Software Foundation
9391 # gives unlimited permission to copy and/or distribute it,
9392 # with or without modifications, as long as this notice is preserved.
9394 # AM_PROG_INSTALL_SH
9395 # ------------------
9396 # Define $install_sh.
9397 AC_DEFUN([AM_PROG_INSTALL_SH],
9398 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9399 if test x"${install_sh}" != xset; then
9402 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
9404 install_sh="\${SHELL} $am_aux_dir/install-sh"
9407 AC_SUBST(install_sh)])
9409 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
9411 # This file is free software; the Free Software Foundation
9412 # gives unlimited permission to copy and/or distribute it,
9413 # with or without modifications, as long as this notice is preserved.
9417 # Check whether the underlying file-system supports filenames
9418 # with a leading dot. For instance MS-DOS doesn't.
9419 AC_DEFUN([AM_SET_LEADING_DOT],
9420 [rm -rf .tst 2>/dev/null
9421 mkdir .tst 2>/dev/null
9422 if test -d .tst; then
9427 rmdir .tst 2>/dev/null
9428 AC_SUBST([am__leading_dot])])
9430 # Check to see how 'make' treats includes. -*- Autoconf -*-
9432 # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
9434 # This file is free software; the Free Software Foundation
9435 # gives unlimited permission to copy and/or distribute it,
9436 # with or without modifications, as long as this notice is preserved.
9442 # Check to see how make treats includes.
9443 AC_DEFUN([AM_MAKE_INCLUDE],
9444 [am_make=${MAKE-make}
9445 cat > confinc << 'END'
9447 @echo this is the am__doit target
9450 # If we don't find an include directive, just comment out the code.
9451 AC_MSG_CHECKING([for style of include used by $am_make])
9455 # First try GNU make style include.
9456 echo "include confinc" > confmf
9457 # Ignore all kinds of additional output from `make'.
9458 case `$am_make -s -f confmf 2> /dev/null` in #(
9459 *the\ am__doit\ target*)
9465 # Now try BSD make style include.
9466 if test "$am__include" = "#"; then
9467 echo '.include "confinc"' > confmf
9468 case `$am_make -s -f confmf 2> /dev/null` in #(
9469 *the\ am__doit\ target*)
9470 am__include=.include
9476 AC_SUBST([am__include])
9477 AC_SUBST([am__quote])
9478 AC_MSG_RESULT([$_am_result])
9479 rm -f confinc confmf
9482 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
9484 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
9485 # Free Software Foundation, Inc.
9487 # This file is free software; the Free Software Foundation
9488 # gives unlimited permission to copy and/or distribute it,
9489 # with or without modifications, as long as this notice is preserved.
9493 # AM_MISSING_PROG(NAME, PROGRAM)
9494 # ------------------------------
9495 AC_DEFUN([AM_MISSING_PROG],
9496 [AC_REQUIRE([AM_MISSING_HAS_RUN])
9497 $1=${$1-"${am_missing_run}$2"}
9501 # AM_MISSING_HAS_RUN
9502 # ------------------
9503 # Define MISSING if not defined so far and test if it supports --run.
9504 # If it does, set am_missing_run to use it, otherwise, to nothing.
9505 AC_DEFUN([AM_MISSING_HAS_RUN],
9506 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
9507 AC_REQUIRE_AUX_FILE([missing])dnl
9508 if test x"${MISSING+set}" != xset; then
9511 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
9513 MISSING="\${SHELL} $am_aux_dir/missing" ;;
9516 # Use eval to expand $SHELL
9517 if eval "$MISSING --run true"; then
9518 am_missing_run="$MISSING --run "
9521 AC_MSG_WARN([`missing' script is too old or missing])
9525 # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9527 # This file is free software; the Free Software Foundation
9528 # gives unlimited permission to copy and/or distribute it,
9529 # with or without modifications, as long as this notice is preserved.
9533 # Check for `mkdir -p'.
9534 AC_DEFUN([AM_PROG_MKDIR_P],
9535 [AC_PREREQ([2.60])dnl
9536 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
9537 dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
9538 dnl while keeping a definition of mkdir_p for backward compatibility.
9539 dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
9540 dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
9541 dnl Makefile.ins that do not define MKDIR_P, so we do our own
9542 dnl adjustment using top_builddir (which is defined more often than
9544 AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
9546 [[\\/$]]* | ?:[[\\/]]*) ;;
9547 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
9551 # Helper functions for option handling. -*- Autoconf -*-
9553 # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
9555 # This file is free software; the Free Software Foundation
9556 # gives unlimited permission to copy and/or distribute it,
9557 # with or without modifications, as long as this notice is preserved.
9561 # _AM_MANGLE_OPTION(NAME)
9562 # -----------------------
9563 AC_DEFUN([_AM_MANGLE_OPTION],
9564 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
9566 # _AM_SET_OPTION(NAME)
9567 # ------------------------------
9568 # Set option NAME. Presently that only means defining a flag for this option.
9569 AC_DEFUN([_AM_SET_OPTION],
9570 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
9572 # _AM_SET_OPTIONS(OPTIONS)
9573 # ----------------------------------
9574 # OPTIONS is a space-separated list of Automake options.
9575 AC_DEFUN([_AM_SET_OPTIONS],
9576 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
9578 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
9579 # -------------------------------------------
9580 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
9581 AC_DEFUN([_AM_IF_OPTION],
9582 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
9584 # Check to make sure that the build environment is sane. -*- Autoconf -*-
9586 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
9587 # Free Software Foundation, Inc.
9589 # This file is free software; the Free Software Foundation
9590 # gives unlimited permission to copy and/or distribute it,
9591 # with or without modifications, as long as this notice is preserved.
9597 AC_DEFUN([AM_SANITY_CHECK],
9598 [AC_MSG_CHECKING([whether build environment is sane])
9601 echo timestamp > conftest.file
9602 # Reject unsafe characters in $srcdir or the absolute working directory
9603 # name. Accept space and tab only in the latter.
9607 *[[\\\"\#\$\&\'\`$am_lf]]*)
9608 AC_MSG_ERROR([unsafe absolute working directory name]);;
9611 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
9612 AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
9615 # Do `set' in a subshell so we don't clobber the current shell's
9616 # arguments. Must try -L first in case configure is actually a
9617 # symlink; some systems play weird games with the mod time of symlinks
9618 # (eg FreeBSD returns the mod time of the symlink's containing
9621 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
9622 if test "$[*]" = "X"; then
9624 set X `ls -t "$srcdir/configure" conftest.file`
9627 if test "$[*]" != "X $srcdir/configure conftest.file" \
9628 && test "$[*]" != "X conftest.file $srcdir/configure"; then
9630 # If neither matched, then we have a broken ls. This can happen
9631 # if, for instance, CONFIG_SHELL is bash and it inherits a
9632 # broken ls alias from the environment. This has actually
9633 # happened. Such a system could not be considered "sane".
9634 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
9635 alias in your environment])
9638 test "$[2]" = conftest.file
9644 AC_MSG_ERROR([newly created file is older than distributed files!
9645 Check your system clock])
9647 AC_MSG_RESULT(yes)])
9649 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
9651 # This file is free software; the Free Software Foundation
9652 # gives unlimited permission to copy and/or distribute it,
9653 # with or without modifications, as long as this notice is preserved.
9655 # AM_PROG_INSTALL_STRIP
9656 # ---------------------
9657 # One issue with vendor `install' (even GNU) is that you can't
9658 # specify the program used to strip binaries. This is especially
9659 # annoying in cross-compiling environments, where the build's strip
9660 # is unlikely to handle the host's binaries.
9661 # Fortunately install-sh will honor a STRIPPROG variable, so we
9662 # always use install-sh in `make install-strip', and initialize
9663 # STRIPPROG with the value of the STRIP variable (set by the user).
9664 AC_DEFUN([AM_PROG_INSTALL_STRIP],
9665 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
9666 # Installed binaries are usually stripped using `strip' when the user
9667 # run `make install-strip'. However `strip' might not be the right
9668 # tool to use in cross-compilation environments, therefore Automake
9669 # will honor the `STRIP' environment variable to overrule this program.
9670 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
9671 if test "$cross_compiling" != no; then
9672 AC_CHECK_TOOL([STRIP], [strip], :)
9674 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
9675 AC_SUBST([INSTALL_STRIP_PROGRAM])])
9677 # Copyright (C) 2006, 2008 Free Software Foundation, Inc.
9679 # This file is free software; the Free Software Foundation
9680 # gives unlimited permission to copy and/or distribute it,
9681 # with or without modifications, as long as this notice is preserved.
9685 # _AM_SUBST_NOTMAKE(VARIABLE)
9686 # ---------------------------
9687 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
9688 # This macro is traced by Automake.
9689 AC_DEFUN([_AM_SUBST_NOTMAKE])
9691 # AM_SUBST_NOTMAKE(VARIABLE)
9692 # ---------------------------
9693 # Public sister of _AM_SUBST_NOTMAKE.
9694 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
9696 # Check how to create a tarball. -*- Autoconf -*-
9698 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
9700 # This file is free software; the Free Software Foundation
9701 # gives unlimited permission to copy and/or distribute it,
9702 # with or without modifications, as long as this notice is preserved.
9706 # _AM_PROG_TAR(FORMAT)
9707 # --------------------
9708 # Check how to create a tarball in format FORMAT.
9709 # FORMAT should be one of `v7', `ustar', or `pax'.
9711 # Substitute a variable $(am__tar) that is a command
9712 # writing to stdout a FORMAT-tarball containing the directory
9714 # tardir=directory && $(am__tar) > result.tar
9716 # Substitute a variable $(am__untar) that extract such
9717 # a tarball read from stdin.
9718 # $(am__untar) < result.tar
9719 AC_DEFUN([_AM_PROG_TAR],
9720 [# Always define AMTAR for backward compatibility.
9721 AM_MISSING_PROG([AMTAR], [tar])
9723 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
9724 [m4_case([$1], [ustar],, [pax],,
9725 [m4_fatal([Unknown tar format])])
9726 AC_MSG_CHECKING([how to create a $1 tar archive])
9727 # Loop over all known methods to create a tar archive until one works.
9728 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
9729 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
9730 # Do not fold the above two line into one, because Tru64 sh and
9731 # Solaris sh will not grok spaces in the rhs of `-'.
9732 for _am_tool in $_am_tools
9736 for _am_tar in tar gnutar gtar;
9738 AM_RUN_LOG([$_am_tar --version]) && break
9740 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
9741 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
9742 am__untar="$_am_tar -xf -"
9745 # Must skip GNU tar: if it does not support --format= it doesn't create
9746 # ustar tarball either.
9747 (tar --version) >/dev/null 2>&1 && continue
9748 am__tar='tar chf - "$$tardir"'
9749 am__tar_='tar chf - "$tardir"'
9750 am__untar='tar xf -'
9753 am__tar='pax -L -x $1 -w "$$tardir"'
9754 am__tar_='pax -L -x $1 -w "$tardir"'
9758 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
9759 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
9760 am__untar='cpio -i -H $1 -d'
9769 # If the value was cached, stop now. We just wanted to have am__tar
9770 # and am__untar set.
9771 test -n "${am_cv_prog_tar_$1}" && break
9773 # tar/untar a dummy directory, and stop if the command works
9776 echo GrepMe > conftest.dir/file
9777 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
9779 if test -s conftest.tar; then
9780 AM_RUN_LOG([$am__untar <conftest.tar])
9781 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
9786 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
9787 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
9789 AC_SUBST([am__untar])