Merge lp:~indicator-applet-developers/indicator-datetime/ubuntu into lp:~ubuntu-desktop/indicator-datetime/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 56
Proposed branch: lp:~indicator-applet-developers/indicator-datetime/ubuntu
Merge into: lp:~ubuntu-desktop/indicator-datetime/ubuntu
Diff against target: 35515 lines (+24458/-10345)
28 files modified
AUTHORS (+1/-0)
ChangeLog (+28/-0)
Makefile.am (+3/-2)
Makefile.in (+14/-9)
aclocal.m4 (+6/-8653)
build-aux/compile (+143/-0)
build-aux/config.guess (+1517/-0)
build-aux/config.sub (+1760/-0)
build-aux/depcomp (+630/-0)
build-aux/install-sh (+520/-0)
build-aux/ltmain.sh (+9642/-0)
build-aux/missing (+376/-0)
build-aux/mkinstalldirs (+162/-0)
configure (+855/-1588)
configure.ac (+27/-34)
data/Makefile.in (+5/-3)
debian/changelog (+8/-0)
libmap/Makefile.in (+6/-4)
m4/intltool.m4 (+216/-0)
m4/libtool.m4 (+7851/-0)
m4/ltoptions.m4 (+369/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+98/-0)
src/Makefile.in (+6/-4)
src/datetime-service.c (+54/-39)
src/indicator-datetime.c (+10/-6)
tests/Makefile.in (+5/-3)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-datetime/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+71236@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'AUTHORS'
--- AUTHORS 2011-07-07 21:24:09 +0000
+++ AUTHORS 2011-08-11 16:49:22 +0000
@@ -5,6 +5,7 @@
5 Dylan McCall 5 Dylan McCall
6 Evgeni Golov 6 Evgeni Golov
7 Gabor Kelemen 7 Gabor Kelemen
8 Javier Jardón
8 karl-qdh 9 karl-qdh
9 Ken VanDine 10 Ken VanDine
10 Kyle Nitzsche 11 Kyle Nitzsche
1112
=== modified file 'ChangeLog'
--- ChangeLog 2011-07-07 21:24:09 +0000
+++ ChangeLog 2011-08-11 16:49:22 +0000
@@ -1,5 +1,33 @@
1# Generated by Makefile. Do not edit.1# Generated by Makefile. Do not edit.
22
32011-08-11 Ted Gould <ted@gould.cx>
4
5 0.2.92
6
72011-08-10 Ted Gould <ted@gould.cx>
8
9 Add a greeter mode
10
112011-08-03 Michael Terry <michael.terry@canonical.com>
12
13 don't show timezones or settings links when used in a greeter
14
152011-07-22 Ted Gould <ted@gould.cx>
16
17 Autotools cleanup
18
192011-07-20 Javier Jardón <javier.jardon@codethink.co.uk>
20
21 Update autotools configuration a bit
22
23 Do not use deprecated autoconf macros
24 Use new libtool syntax
25 General cleanup
26
272011-07-14 Michael Terry <michael.terry@canonical.com>
28
29 don't unref a NULL GDateTime object; original patch by Dave Gilbert
30
32011-07-07 Ted Gould <ted@gould.cx>312011-07-07 Ted Gould <ted@gould.cx>
432
5 0.2.9133 0.2.91
634
=== modified file 'Makefile.am'
--- Makefile.am 2011-03-03 20:41:18 +0000
+++ Makefile.am 2011-08-11 16:49:22 +0000
@@ -1,3 +1,4 @@
1ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
12
2SUBDIRS = \3SUBDIRS = \
3 libmap \4 libmap \
@@ -16,7 +17,7 @@
16 echo Creating ChangeLog && \17 echo Creating ChangeLog && \
17 ( cd "$(top_srcdir)" && \18 ( cd "$(top_srcdir)" && \
18 echo '# Generated by Makefile. Do not edit.'; echo; \19 echo '# Generated by Makefile. Do not edit.'; echo; \
19 $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \20 $(top_srcdir)/build-aux/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \
20 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \21 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
21 || (rm -f ChangeLog.tmp; \22 || (rm -f ChangeLog.tmp; \
22 echo Failed to generate ChangeLog >&2 ); \23 echo Failed to generate ChangeLog >&2 ); \
@@ -28,7 +29,7 @@
28 echo Creating AUTHORS && \29 echo Creating AUTHORS && \
29 ( cd "$(top_srcdir)" && \30 ( cd "$(top_srcdir)" && \
30 echo '# Generated by Makefile. Do not edit.'; echo; \31 echo '# Generated by Makefile. Do not edit.'; echo; \
31 $(top_srcdir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \32 $(top_srcdir)/build-aux/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
32 && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \33 && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
33 || (rm -f AUTHORS.tmp; \34 || (rm -f AUTHORS.tmp; \
34 echo Failed to generate AUTHORS >&2 ); \35 echo Failed to generate AUTHORS >&2 ); \
3536
=== modified file 'Makefile.in'
--- Makefile.in 2011-07-07 21:24:09 +0000
+++ Makefile.in 2011-08-11 16:49:22 +0000
@@ -37,15 +37,20 @@
37DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \37DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \39 $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \
40 compile config.guess config.sub depcomp install-sh ltmain.sh \40 build-aux/compile build-aux/config.guess build-aux/config.sub \
41 missing mkinstalldirs41 build-aux/depcomp build-aux/install-sh build-aux/ltmain.sh \
42 build-aux/missing build-aux/mkinstalldirs compile config.guess \
43 config.sub depcomp install-sh ltmain.sh missing mkinstalldirs
42ACLOCAL_M4 = $(top_srcdir)/aclocal.m444ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43am__aclocal_m4_deps = $(top_srcdir)/configure.ac45am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \
46 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
47 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
48 $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac
44am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \49am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)50 $(ACLOCAL_M4)
46am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \51am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
47 configure.lineno config.status.lineno52 configure.lineno config.status.lineno
48mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs53mkinstalldirs = $(SHELL) $(top_srcdir)/build-aux/mkinstalldirs
49CONFIG_HEADER = config.h54CONFIG_HEADER = config.h
50CONFIG_CLEAN_FILES =55CONFIG_CLEAN_FILES =
51CONFIG_CLEAN_VPATH_FILES =56CONFIG_CLEAN_VPATH_FILES =
@@ -104,7 +109,7 @@
104 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \109 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
105 done; \110 done; \
106 reldir="$$dir2"111 reldir="$$dir2"
107DIST_ARCHIVES = $(distdir).tar.gz112DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.xz
108GZIP_ENV = --best113GZIP_ENV = --best
109distuninstallcheck_listfiles = find . -type f -print114distuninstallcheck_listfiles = find . -type f -print
110distcleancheck_listfiles = find . -type f -print115distcleancheck_listfiles = find . -type f -print
@@ -166,7 +171,6 @@
166LD = @LD@171LD = @LD@
167LDFLAGS = @LDFLAGS@172LDFLAGS = @LDFLAGS@
168LIBMAP_CFLAGS = @LIBMAP_CFLAGS@173LIBMAP_CFLAGS = @LIBMAP_CFLAGS@
169LIBMAP_LDFLAGS = @LIBMAP_LDFLAGS@
170LIBMAP_LIBS = @LIBMAP_LIBS@174LIBMAP_LIBS = @LIBMAP_LIBS@
171LIBOBJS = @LIBOBJS@175LIBOBJS = @LIBOBJS@
172LIBS = @LIBS@176LIBS = @LIBS@
@@ -268,6 +272,7 @@
268top_build_prefix = @top_build_prefix@272top_build_prefix = @top_build_prefix@
269top_builddir = @top_builddir@273top_builddir = @top_builddir@
270top_srcdir = @top_srcdir@274top_srcdir = @top_srcdir@
275ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
271SUBDIRS = \276SUBDIRS = \
272 libmap \277 libmap \
273 src \278 src \
@@ -558,7 +563,6 @@
558dist-lzma: distdir563dist-lzma: distdir
559 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma564 tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
560 $(am__remove_distdir)565 $(am__remove_distdir)
561
562dist-xz: distdir566dist-xz: distdir
563 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz567 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
564 $(am__remove_distdir)568 $(am__remove_distdir)
@@ -578,6 +582,7 @@
578582
579dist dist-all: distdir583dist dist-all: distdir
580 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz584 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
585 tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
581 $(am__remove_distdir)586 $(am__remove_distdir)
582587
583# This target untars the dist file and tries a VPATH configuration. Then588# This target untars the dist file and tries a VPATH configuration. Then
@@ -781,7 +786,7 @@
781 echo Creating ChangeLog && \786 echo Creating ChangeLog && \
782 ( cd "$(top_srcdir)" && \787 ( cd "$(top_srcdir)" && \
783 echo '# Generated by Makefile. Do not edit.'; echo; \788 echo '# Generated by Makefile. Do not edit.'; echo; \
784 $(top_srcdir)/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \789 $(top_srcdir)/build-aux/missing --run bzr log --gnu-changelog ) > ChangeLog.tmp \
785 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \790 && mv -f ChangeLog.tmp $(top_distdir)/ChangeLog \
786 || (rm -f ChangeLog.tmp; \791 || (rm -f ChangeLog.tmp; \
787 echo Failed to generate ChangeLog >&2 ); \792 echo Failed to generate ChangeLog >&2 ); \
@@ -793,7 +798,7 @@
793 echo Creating AUTHORS && \798 echo Creating AUTHORS && \
794 ( cd "$(top_srcdir)" && \799 ( cd "$(top_srcdir)" && \
795 echo '# Generated by Makefile. Do not edit.'; echo; \800 echo '# Generated by Makefile. Do not edit.'; echo; \
796 $(top_srcdir)/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \801 $(top_srcdir)/build-aux/missing --run bzr log --long --levels=0 | grep -e "^\s*author:" -e "^\s*committer:" | cut -d ":" -f 2 | cut -d "<" -f 1 | sort -u) > AUTHORS.tmp \
797 && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \802 && mv -f AUTHORS.tmp $(top_distdir)/AUTHORS \
798 || (rm -f AUTHORS.tmp; \803 || (rm -f AUTHORS.tmp; \
799 echo Failed to generate AUTHORS >&2 ); \804 echo Failed to generate AUTHORS >&2 ); \
800805
=== modified file 'aclocal.m4'
--- aclocal.m4 2011-06-21 19:24:26 +0000
+++ aclocal.m4 2011-08-11 16:49:22 +0000
@@ -536,8647 +536,6 @@
536]536]
537)537)
538538
539
540dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml])
541# serial 40 IT_PROG_INTLTOOL
542AC_DEFUN([IT_PROG_INTLTOOL], [
543AC_PREREQ([2.50])dnl
544AC_REQUIRE([AM_NLS])dnl
545
546case "$am__api_version" in
547 1.[01234])
548 AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool])
549 ;;
550 *)
551 ;;
552esac
553
554if test -n "$1"; then
555 AC_MSG_CHECKING([for intltool >= $1])
556
557 INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
558 INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
559 [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
560 ]
561 AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found])
562 test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
563 AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.])
564fi
565
566AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update])
567AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge])
568AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract])
569if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
570 AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.])
571fi
572
573 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 $< [$]@'
574INTLTOOL_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 $< [$]@'
575 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 $< [$]@'
576 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 $< [$]@'
577 INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@'
578 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 $< [$]@'
579 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 $< [$]@'
580 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 $< [$]@'
581INTLTOOL_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 $< [$]@'
582 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 $< [$]@'
583 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 $< [$]@'
584 INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@'
585 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 $< [$]@'
586 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 $< [$]@'
587 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 $< [$]@'
588 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 $< [$]@'
589 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 $< [$]@'
590 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 $< [$]@'
591 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 $< [$]@'
592
593_IT_SUBST(INTLTOOL_DESKTOP_RULE)
594_IT_SUBST(INTLTOOL_DIRECTORY_RULE)
595_IT_SUBST(INTLTOOL_KEYS_RULE)
596_IT_SUBST(INTLTOOL_PROP_RULE)
597_IT_SUBST(INTLTOOL_OAF_RULE)
598_IT_SUBST(INTLTOOL_PONG_RULE)
599_IT_SUBST(INTLTOOL_SERVER_RULE)
600_IT_SUBST(INTLTOOL_SHEET_RULE)
601_IT_SUBST(INTLTOOL_SOUNDLIST_RULE)
602_IT_SUBST(INTLTOOL_UI_RULE)
603_IT_SUBST(INTLTOOL_XAM_RULE)
604_IT_SUBST(INTLTOOL_KBD_RULE)
605_IT_SUBST(INTLTOOL_XML_RULE)
606_IT_SUBST(INTLTOOL_XML_NOMERGE_RULE)
607_IT_SUBST(INTLTOOL_CAVES_RULE)
608_IT_SUBST(INTLTOOL_SCHEMAS_RULE)
609_IT_SUBST(INTLTOOL_THEME_RULE)
610_IT_SUBST(INTLTOOL_SERVICE_RULE)
611_IT_SUBST(INTLTOOL_POLICY_RULE)
612
613# Check the gettext tools to make sure they are GNU
614AC_PATH_PROG(XGETTEXT, xgettext)
615AC_PATH_PROG(MSGMERGE, msgmerge)
616AC_PATH_PROG(MSGFMT, msgfmt)
617AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT)
618if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
619 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
620fi
621xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
622mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
623mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
624if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
625 AC_MSG_ERROR([GNU gettext tools not found; required for intltool])
626fi
627
628AC_PATH_PROG(INTLTOOL_PERL, perl)
629if test -z "$INTLTOOL_PERL"; then
630 AC_MSG_ERROR([perl not found])
631fi
632AC_MSG_CHECKING([for perl >= 5.8.1])
633$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
634if test $? -ne 0; then
635 AC_MSG_ERROR([perl 5.8.1 is required for intltool])
636else
637 IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
638 AC_MSG_RESULT([$IT_PERL_VERSION])
639fi
640if test "x$2" != "xno-xml"; then
641 AC_MSG_CHECKING([for XML::Parser])
642 if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
643 AC_MSG_RESULT([ok])
644 else
645 AC_MSG_ERROR([XML::Parser perl module is required for intltool])
646 fi
647fi
648
649# Substitute ALL_LINGUAS so we can use it in po/Makefile
650AC_SUBST(ALL_LINGUAS)
651
652# Set DATADIRNAME correctly if it is not set yet
653# (copied from glib-gettext.m4)
654if test -z "$DATADIRNAME"; then
655 AC_LINK_IFELSE(
656 [AC_LANG_PROGRAM([[]],
657 [[extern int _nl_msg_cat_cntr;
658 return _nl_msg_cat_cntr]])],
659 [DATADIRNAME=share],
660 [case $host in
661 *-*-solaris*)
662 dnl On Solaris, if bind_textdomain_codeset is in libc,
663 dnl GNU format message catalog is always supported,
664 dnl since both are added to the libc all together.
665 dnl Hence, we'd like to go with DATADIRNAME=share
666 dnl in this case.
667 AC_CHECK_FUNC(bind_textdomain_codeset,
668 [DATADIRNAME=share], [DATADIRNAME=lib])
669 ;;
670 *)
671 [DATADIRNAME=lib]
672 ;;
673 esac])
674fi
675AC_SUBST(DATADIRNAME)
676
677IT_PO_SUBDIR([po])
678
679])
680
681
682# IT_PO_SUBDIR(DIRNAME)
683# ---------------------
684# All po subdirs have to be declared with this macro; the subdir "po" is
685# declared by IT_PROG_INTLTOOL.
686#
687AC_DEFUN([IT_PO_SUBDIR],
688[AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS.
689dnl
690dnl The following CONFIG_COMMANDS should be executed at the very end
691dnl of config.status.
692AC_CONFIG_COMMANDS_PRE([
693 AC_CONFIG_COMMANDS([$1/stamp-it], [
694 if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then
695 AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.])
696 fi
697 rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp"
698 >"$1/stamp-it.tmp"
699 [sed '/^#/d
700 s/^[[].*] *//
701 /^[ ]*$/d
702 '"s|^| $ac_top_srcdir/|" \
703 "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES"
704 ]
705 [sed '/^POTFILES =/,/[^\\]$/ {
706 /^POTFILES =/!d
707 r $1/POTFILES
708 }
709 ' "$1/Makefile.in" >"$1/Makefile"]
710 rm -f "$1/Makefile.tmp"
711 mv "$1/stamp-it.tmp" "$1/stamp-it"
712 ])
713])dnl
714])
715
716# _IT_SUBST(VARIABLE)
717# -------------------
718# Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST
719#
720AC_DEFUN([_IT_SUBST],
721[
722AC_SUBST([$1])
723m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])])
724]
725)
726
727# deprecated macros
728AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL])
729# A hint is needed for aclocal from Automake <= 1.9.4:
730# AC_DEFUN([AC_PROG_INTLTOOL], ...)
731
732
733# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
734#
735# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
736# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
737# Inc.
738# Written by Gordon Matzigkeit, 1996
739#
740# This file is free software; the Free Software Foundation gives
741# unlimited permission to copy and/or distribute it, with or without
742# modifications, as long as this notice is preserved.
743
744m4_define([_LT_COPYING], [dnl
745# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
746# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
747# Inc.
748# Written by Gordon Matzigkeit, 1996
749#
750# This file is part of GNU Libtool.
751#
752# GNU Libtool is free software; you can redistribute it and/or
753# modify it under the terms of the GNU General Public License as
754# published by the Free Software Foundation; either version 2 of
755# the License, or (at your option) any later version.
756#
757# As a special exception to the GNU General Public License,
758# if you distribute this file as part of a program or library that
759# is built using GNU Libtool, you may include this file under the
760# same distribution terms that you use for the rest of that program.
761#
762# GNU Libtool is distributed in the hope that it will be useful,
763# but WITHOUT ANY WARRANTY; without even the implied warranty of
764# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
765# GNU General Public License for more details.
766#
767# You should have received a copy of the GNU General Public License
768# along with GNU Libtool; see the file COPYING. If not, a copy
769# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
770# obtained by writing to the Free Software Foundation, Inc.,
771# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
772])
773
774# serial 57 LT_INIT
775
776
777# LT_PREREQ(VERSION)
778# ------------------
779# Complain and exit if this libtool version is less that VERSION.
780m4_defun([LT_PREREQ],
781[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
782 [m4_default([$3],
783 [m4_fatal([Libtool version $1 or higher is required],
784 63)])],
785 [$2])])
786
787
788# _LT_CHECK_BUILDDIR
789# ------------------
790# Complain if the absolute build directory name contains unusual characters
791m4_defun([_LT_CHECK_BUILDDIR],
792[case `pwd` in
793 *\ * | *\ *)
794 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
795esac
796])
797
798
799# LT_INIT([OPTIONS])
800# ------------------
801AC_DEFUN([LT_INIT],
802[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
803AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
804AC_BEFORE([$0], [LT_LANG])dnl
805AC_BEFORE([$0], [LT_OUTPUT])dnl
806AC_BEFORE([$0], [LTDL_INIT])dnl
807m4_require([_LT_CHECK_BUILDDIR])dnl
808
809dnl Autoconf doesn't catch unexpanded LT_ macros by default:
810m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
811m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
812dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
813dnl unless we require an AC_DEFUNed macro:
814AC_REQUIRE([LTOPTIONS_VERSION])dnl
815AC_REQUIRE([LTSUGAR_VERSION])dnl
816AC_REQUIRE([LTVERSION_VERSION])dnl
817AC_REQUIRE([LTOBSOLETE_VERSION])dnl
818m4_require([_LT_PROG_LTMAIN])dnl
819
820_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
821
822dnl Parse OPTIONS
823_LT_SET_OPTIONS([$0], [$1])
824
825# This can be used to rebuild libtool when needed
826LIBTOOL_DEPS="$ltmain"
827
828# Always use our own libtool.
829LIBTOOL='$(SHELL) $(top_builddir)/libtool'
830AC_SUBST(LIBTOOL)dnl
831
832_LT_SETUP
833
834# Only expand once:
835m4_define([LT_INIT])
836])# LT_INIT
837
838# Old names:
839AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
840AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
841dnl aclocal-1.4 backwards compatibility:
842dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
843dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
844
845
846# _LT_CC_BASENAME(CC)
847# -------------------
848# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
849m4_defun([_LT_CC_BASENAME],
850[for cc_temp in $1""; do
851 case $cc_temp in
852 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
853 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
854 \-*) ;;
855 *) break;;
856 esac
857done
858cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
859])
860
861
862# _LT_FILEUTILS_DEFAULTS
863# ----------------------
864# It is okay to use these file commands and assume they have been set
865# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
866m4_defun([_LT_FILEUTILS_DEFAULTS],
867[: ${CP="cp -f"}
868: ${MV="mv -f"}
869: ${RM="rm -f"}
870])# _LT_FILEUTILS_DEFAULTS
871
872
873# _LT_SETUP
874# ---------
875m4_defun([_LT_SETUP],
876[AC_REQUIRE([AC_CANONICAL_HOST])dnl
877AC_REQUIRE([AC_CANONICAL_BUILD])dnl
878AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
879AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
880
881_LT_DECL([], [host_alias], [0], [The host system])dnl
882_LT_DECL([], [host], [0])dnl
883_LT_DECL([], [host_os], [0])dnl
884dnl
885_LT_DECL([], [build_alias], [0], [The build system])dnl
886_LT_DECL([], [build], [0])dnl
887_LT_DECL([], [build_os], [0])dnl
888dnl
889AC_REQUIRE([AC_PROG_CC])dnl
890AC_REQUIRE([LT_PATH_LD])dnl
891AC_REQUIRE([LT_PATH_NM])dnl
892dnl
893AC_REQUIRE([AC_PROG_LN_S])dnl
894test -z "$LN_S" && LN_S="ln -s"
895_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
896dnl
897AC_REQUIRE([LT_CMD_MAX_LEN])dnl
898_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
899_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
900dnl
901m4_require([_LT_FILEUTILS_DEFAULTS])dnl
902m4_require([_LT_CHECK_SHELL_FEATURES])dnl
903m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
904m4_require([_LT_CMD_RELOAD])dnl
905m4_require([_LT_CHECK_MAGIC_METHOD])dnl
906m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
907m4_require([_LT_CMD_OLD_ARCHIVE])dnl
908m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
909m4_require([_LT_WITH_SYSROOT])dnl
910
911_LT_CONFIG_LIBTOOL_INIT([
912# See if we are running on zsh, and set the options which allow our
913# commands through without removal of \ escapes INIT.
914if test -n "\${ZSH_VERSION+set}" ; then
915 setopt NO_GLOB_SUBST
916fi
917])
918if test -n "${ZSH_VERSION+set}" ; then
919 setopt NO_GLOB_SUBST
920fi
921
922_LT_CHECK_OBJDIR
923
924m4_require([_LT_TAG_COMPILER])dnl
925
926case $host_os in
927aix3*)
928 # AIX sometimes has problems with the GCC collect2 program. For some
929 # reason, if we set the COLLECT_NAMES environment variable, the problems
930 # vanish in a puff of smoke.
931 if test "X${COLLECT_NAMES+set}" != Xset; then
932 COLLECT_NAMES=
933 export COLLECT_NAMES
934 fi
935 ;;
936esac
937
938# Global variables:
939ofile=libtool
940can_build_shared=yes
941
942# All known linkers require a `.a' archive for static linking (except MSVC,
943# which needs '.lib').
944libext=a
945
946with_gnu_ld="$lt_cv_prog_gnu_ld"
947
948old_CC="$CC"
949old_CFLAGS="$CFLAGS"
950
951# Set sane defaults for various variables
952test -z "$CC" && CC=cc
953test -z "$LTCC" && LTCC=$CC
954test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
955test -z "$LD" && LD=ld
956test -z "$ac_objext" && ac_objext=o
957
958_LT_CC_BASENAME([$compiler])
959
960# Only perform the check for file, if the check method requires it
961test -z "$MAGIC_CMD" && MAGIC_CMD=file
962case $deplibs_check_method in
963file_magic*)
964 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
965 _LT_PATH_MAGIC
966 fi
967 ;;
968esac
969
970# Use C for the default configuration in the libtool script
971LT_SUPPORTED_TAG([CC])
972_LT_LANG_C_CONFIG
973_LT_LANG_DEFAULT_CONFIG
974_LT_CONFIG_COMMANDS
975])# _LT_SETUP
976
977
978# _LT_PREPARE_SED_QUOTE_VARS
979# --------------------------
980# Define a few sed substitution that help us do robust quoting.
981m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
982[# Backslashify metacharacters that are still active within
983# double-quoted strings.
984sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
985
986# Same as above, but do not quote variable references.
987double_quote_subst='s/\([["`\\]]\)/\\\1/g'
988
989# Sed substitution to delay expansion of an escaped shell variable in a
990# double_quote_subst'ed string.
991delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
992
993# Sed substitution to delay expansion of an escaped single quote.
994delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
995
996# Sed substitution to avoid accidental globbing in evaled expressions
997no_glob_subst='s/\*/\\\*/g'
998])
999
1000# _LT_PROG_LTMAIN
1001# ---------------
1002# Note that this code is called both from `configure', and `config.status'
1003# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
1004# `config.status' has no value for ac_aux_dir unless we are using Automake,
1005# so we pass a copy along to make sure it has a sensible value anyway.
1006m4_defun([_LT_PROG_LTMAIN],
1007[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
1008_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
1009ltmain="$ac_aux_dir/ltmain.sh"
1010])# _LT_PROG_LTMAIN
1011
1012
1013
1014# So that we can recreate a full libtool script including additional
1015# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
1016# in macros and then make a single call at the end using the `libtool'
1017# label.
1018
1019
1020# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
1021# ----------------------------------------
1022# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1023m4_define([_LT_CONFIG_LIBTOOL_INIT],
1024[m4_ifval([$1],
1025 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
1026 [$1
1027])])])
1028
1029# Initialize.
1030m4_define([_LT_OUTPUT_LIBTOOL_INIT])
1031
1032
1033# _LT_CONFIG_LIBTOOL([COMMANDS])
1034# ------------------------------
1035# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
1036m4_define([_LT_CONFIG_LIBTOOL],
1037[m4_ifval([$1],
1038 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
1039 [$1
1040])])])
1041
1042# Initialize.
1043m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
1044
1045
1046# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
1047# -----------------------------------------------------
1048m4_defun([_LT_CONFIG_SAVE_COMMANDS],
1049[_LT_CONFIG_LIBTOOL([$1])
1050_LT_CONFIG_LIBTOOL_INIT([$2])
1051])
1052
1053
1054# _LT_FORMAT_COMMENT([COMMENT])
1055# -----------------------------
1056# Add leading comment marks to the start of each line, and a trailing
1057# full-stop to the whole comment if one is not present already.
1058m4_define([_LT_FORMAT_COMMENT],
1059[m4_ifval([$1], [
1060m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
1061 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
1062)])
1063
1064
1065
1066
1067
1068# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
1069# -------------------------------------------------------------------
1070# CONFIGNAME is the name given to the value in the libtool script.
1071# VARNAME is the (base) name used in the configure script.
1072# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
1073# VARNAME. Any other value will be used directly.
1074m4_define([_LT_DECL],
1075[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
1076 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
1077 [m4_ifval([$1], [$1], [$2])])
1078 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
1079 m4_ifval([$4],
1080 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
1081 lt_dict_add_subkey([lt_decl_dict], [$2],
1082 [tagged?], [m4_ifval([$5], [yes], [no])])])
1083])
1084
1085
1086# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
1087# --------------------------------------------------------
1088m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
1089
1090
1091# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
1092# ------------------------------------------------
1093m4_define([lt_decl_tag_varnames],
1094[_lt_decl_filter([tagged?], [yes], $@)])
1095
1096
1097# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
1098# ---------------------------------------------------------
1099m4_define([_lt_decl_filter],
1100[m4_case([$#],
1101 [0], [m4_fatal([$0: too few arguments: $#])],
1102 [1], [m4_fatal([$0: too few arguments: $#: $1])],
1103 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
1104 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
1105 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
1106])
1107
1108
1109# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
1110# --------------------------------------------------
1111m4_define([lt_decl_quote_varnames],
1112[_lt_decl_filter([value], [1], $@)])
1113
1114
1115# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
1116# ---------------------------------------------------
1117m4_define([lt_decl_dquote_varnames],
1118[_lt_decl_filter([value], [2], $@)])
1119
1120
1121# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
1122# ---------------------------------------------------
1123m4_define([lt_decl_varnames_tagged],
1124[m4_assert([$# <= 2])dnl
1125_$0(m4_quote(m4_default([$1], [[, ]])),
1126 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
1127 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
1128m4_define([_lt_decl_varnames_tagged],
1129[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
1130
1131
1132# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
1133# ------------------------------------------------
1134m4_define([lt_decl_all_varnames],
1135[_$0(m4_quote(m4_default([$1], [[, ]])),
1136 m4_if([$2], [],
1137 m4_quote(lt_decl_varnames),
1138 m4_quote(m4_shift($@))))[]dnl
1139])
1140m4_define([_lt_decl_all_varnames],
1141[lt_join($@, lt_decl_varnames_tagged([$1],
1142 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
1143])
1144
1145
1146# _LT_CONFIG_STATUS_DECLARE([VARNAME])
1147# ------------------------------------
1148# Quote a variable value, and forward it to `config.status' so that its
1149# declaration there will have the same value as in `configure'. VARNAME
1150# must have a single quote delimited value for this to work.
1151m4_define([_LT_CONFIG_STATUS_DECLARE],
1152[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
1153
1154
1155# _LT_CONFIG_STATUS_DECLARATIONS
1156# ------------------------------
1157# We delimit libtool config variables with single quotes, so when
1158# we write them to config.status, we have to be sure to quote all
1159# embedded single quotes properly. In configure, this macro expands
1160# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
1161#
1162# <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
1163m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
1164[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
1165 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
1166
1167
1168# _LT_LIBTOOL_TAGS
1169# ----------------
1170# Output comment and list of tags supported by the script
1171m4_defun([_LT_LIBTOOL_TAGS],
1172[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
1173available_tags="_LT_TAGS"dnl
1174])
1175
1176
1177# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
1178# -----------------------------------
1179# Extract the dictionary values for VARNAME (optionally with TAG) and
1180# expand to a commented shell variable setting:
1181#
1182# # Some comment about what VAR is for.
1183# visible_name=$lt_internal_name
1184m4_define([_LT_LIBTOOL_DECLARE],
1185[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
1186 [description])))[]dnl
1187m4_pushdef([_libtool_name],
1188 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
1189m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
1190 [0], [_libtool_name=[$]$1],
1191 [1], [_libtool_name=$lt_[]$1],
1192 [2], [_libtool_name=$lt_[]$1],
1193 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
1194m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
1195])
1196
1197
1198# _LT_LIBTOOL_CONFIG_VARS
1199# -----------------------
1200# Produce commented declarations of non-tagged libtool config variables
1201# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
1202# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
1203# section) are produced by _LT_LIBTOOL_TAG_VARS.
1204m4_defun([_LT_LIBTOOL_CONFIG_VARS],
1205[m4_foreach([_lt_var],
1206 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
1207 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
1208
1209
1210# _LT_LIBTOOL_TAG_VARS(TAG)
1211# -------------------------
1212m4_define([_LT_LIBTOOL_TAG_VARS],
1213[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
1214 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
1215
1216
1217# _LT_TAGVAR(VARNAME, [TAGNAME])
1218# ------------------------------
1219m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
1220
1221
1222# _LT_CONFIG_COMMANDS
1223# -------------------
1224# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
1225# variables for single and double quote escaping we saved from calls
1226# to _LT_DECL, we can put quote escaped variables declarations
1227# into `config.status', and then the shell code to quote escape them in
1228# for loops in `config.status'. Finally, any additional code accumulated
1229# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
1230m4_defun([_LT_CONFIG_COMMANDS],
1231[AC_PROVIDE_IFELSE([LT_OUTPUT],
1232 dnl If the libtool generation code has been placed in $CONFIG_LT,
1233 dnl instead of duplicating it all over again into config.status,
1234 dnl then we will have config.status run $CONFIG_LT later, so it
1235 dnl needs to know what name is stored there:
1236 [AC_CONFIG_COMMANDS([libtool],
1237 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
1238 dnl If the libtool generation code is destined for config.status,
1239 dnl expand the accumulated commands and init code now:
1240 [AC_CONFIG_COMMANDS([libtool],
1241 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
1242])#_LT_CONFIG_COMMANDS
1243
1244
1245# Initialize.
1246m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
1247[
1248
1249# The HP-UX ksh and POSIX shell print the target directory to stdout
1250# if CDPATH is set.
1251(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1252
1253sed_quote_subst='$sed_quote_subst'
1254double_quote_subst='$double_quote_subst'
1255delay_variable_subst='$delay_variable_subst'
1256_LT_CONFIG_STATUS_DECLARATIONS
1257LTCC='$LTCC'
1258LTCFLAGS='$LTCFLAGS'
1259compiler='$compiler_DEFAULT'
1260
1261# A function that is used when there is no print builtin or printf.
1262func_fallback_echo ()
1263{
1264 eval 'cat <<_LTECHO_EOF
1265\$[]1
1266_LTECHO_EOF'
1267}
1268
1269# Quote evaled strings.
1270for var in lt_decl_all_varnames([[ \
1271]], lt_decl_quote_varnames); do
1272 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1273 *[[\\\\\\\`\\"\\\$]]*)
1274 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
1275 ;;
1276 *)
1277 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1278 ;;
1279 esac
1280done
1281
1282# Double-quote double-evaled strings.
1283for var in lt_decl_all_varnames([[ \
1284]], lt_decl_dquote_varnames); do
1285 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
1286 *[[\\\\\\\`\\"\\\$]]*)
1287 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
1288 ;;
1289 *)
1290 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
1291 ;;
1292 esac
1293done
1294
1295_LT_OUTPUT_LIBTOOL_INIT
1296])
1297
1298# _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
1299# ------------------------------------
1300# Generate a child script FILE with all initialization necessary to
1301# reuse the environment learned by the parent script, and make the
1302# file executable. If COMMENT is supplied, it is inserted after the
1303# `#!' sequence but before initialization text begins. After this
1304# macro, additional text can be appended to FILE to form the body of
1305# the child script. The macro ends with non-zero status if the
1306# file could not be fully written (such as if the disk is full).
1307m4_ifdef([AS_INIT_GENERATED],
1308[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
1309[m4_defun([_LT_GENERATED_FILE_INIT],
1310[m4_require([AS_PREPARE])]dnl
1311[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
1312[lt_write_fail=0
1313cat >$1 <<_ASEOF || lt_write_fail=1
1314#! $SHELL
1315# Generated by $as_me.
1316$2
1317SHELL=\${CONFIG_SHELL-$SHELL}
1318export SHELL
1319_ASEOF
1320cat >>$1 <<\_ASEOF || lt_write_fail=1
1321AS_SHELL_SANITIZE
1322_AS_PREPARE
1323exec AS_MESSAGE_FD>&1
1324_ASEOF
1325test $lt_write_fail = 0 && chmod +x $1[]dnl
1326m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
1327
1328# LT_OUTPUT
1329# ---------
1330# This macro allows early generation of the libtool script (before
1331# AC_OUTPUT is called), incase it is used in configure for compilation
1332# tests.
1333AC_DEFUN([LT_OUTPUT],
1334[: ${CONFIG_LT=./config.lt}
1335AC_MSG_NOTICE([creating $CONFIG_LT])
1336_LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
1337[# Run this file to recreate a libtool stub with the current configuration.])
1338
1339cat >>"$CONFIG_LT" <<\_LTEOF
1340lt_cl_silent=false
1341exec AS_MESSAGE_LOG_FD>>config.log
1342{
1343 echo
1344 AS_BOX([Running $as_me.])
1345} >&AS_MESSAGE_LOG_FD
1346
1347lt_cl_help="\
1348\`$as_me' creates a local libtool stub from the current configuration,
1349for use in further configure time tests before the real libtool is
1350generated.
1351
1352Usage: $[0] [[OPTIONS]]
1353
1354 -h, --help print this help, then exit
1355 -V, --version print version number, then exit
1356 -q, --quiet do not print progress messages
1357 -d, --debug don't remove temporary files
1358
1359Report bugs to <bug-libtool@gnu.org>."
1360
1361lt_cl_version="\
1362m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
1363m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
1364configured by $[0], generated by m4_PACKAGE_STRING.
1365
1366Copyright (C) 2010 Free Software Foundation, Inc.
1367This config.lt script is free software; the Free Software Foundation
1368gives unlimited permision to copy, distribute and modify it."
1369
1370while test $[#] != 0
1371do
1372 case $[1] in
1373 --version | --v* | -V )
1374 echo "$lt_cl_version"; exit 0 ;;
1375 --help | --h* | -h )
1376 echo "$lt_cl_help"; exit 0 ;;
1377 --debug | --d* | -d )
1378 debug=: ;;
1379 --quiet | --q* | --silent | --s* | -q )
1380 lt_cl_silent=: ;;
1381
1382 -*) AC_MSG_ERROR([unrecognized option: $[1]
1383Try \`$[0] --help' for more information.]) ;;
1384
1385 *) AC_MSG_ERROR([unrecognized argument: $[1]
1386Try \`$[0] --help' for more information.]) ;;
1387 esac
1388 shift
1389done
1390
1391if $lt_cl_silent; then
1392 exec AS_MESSAGE_FD>/dev/null
1393fi
1394_LTEOF
1395
1396cat >>"$CONFIG_LT" <<_LTEOF
1397_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
1398_LTEOF
1399
1400cat >>"$CONFIG_LT" <<\_LTEOF
1401AC_MSG_NOTICE([creating $ofile])
1402_LT_OUTPUT_LIBTOOL_COMMANDS
1403AS_EXIT(0)
1404_LTEOF
1405chmod +x "$CONFIG_LT"
1406
1407# configure is writing to config.log, but config.lt does its own redirection,
1408# appending to config.log, which fails on DOS, as config.log is still kept
1409# open by configure. Here we exec the FD to /dev/null, effectively closing
1410# config.log, so it can be properly (re)opened and appended to by config.lt.
1411lt_cl_success=:
1412test "$silent" = yes &&
1413 lt_config_lt_args="$lt_config_lt_args --quiet"
1414exec AS_MESSAGE_LOG_FD>/dev/null
1415$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
1416exec AS_MESSAGE_LOG_FD>>config.log
1417$lt_cl_success || AS_EXIT(1)
1418])# LT_OUTPUT
1419
1420
1421# _LT_CONFIG(TAG)
1422# ---------------
1423# If TAG is the built-in tag, create an initial libtool script with a
1424# default configuration from the untagged config vars. Otherwise add code
1425# to config.status for appending the configuration named by TAG from the
1426# matching tagged config vars.
1427m4_defun([_LT_CONFIG],
1428[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1429_LT_CONFIG_SAVE_COMMANDS([
1430 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
1431 m4_if(_LT_TAG, [C], [
1432 # See if we are running on zsh, and set the options which allow our
1433 # commands through without removal of \ escapes.
1434 if test -n "${ZSH_VERSION+set}" ; then
1435 setopt NO_GLOB_SUBST
1436 fi
1437
1438 cfgfile="${ofile}T"
1439 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
1440 $RM "$cfgfile"
1441
1442 cat <<_LT_EOF >> "$cfgfile"
1443#! $SHELL
1444
1445# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
1446# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
1447# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1448# NOTE: Changes made to this file will be lost: look at ltmain.sh.
1449#
1450_LT_COPYING
1451_LT_LIBTOOL_TAGS
1452
1453# ### BEGIN LIBTOOL CONFIG
1454_LT_LIBTOOL_CONFIG_VARS
1455_LT_LIBTOOL_TAG_VARS
1456# ### END LIBTOOL CONFIG
1457
1458_LT_EOF
1459
1460 case $host_os in
1461 aix3*)
1462 cat <<\_LT_EOF >> "$cfgfile"
1463# AIX sometimes has problems with the GCC collect2 program. For some
1464# reason, if we set the COLLECT_NAMES environment variable, the problems
1465# vanish in a puff of smoke.
1466if test "X${COLLECT_NAMES+set}" != Xset; then
1467 COLLECT_NAMES=
1468 export COLLECT_NAMES
1469fi
1470_LT_EOF
1471 ;;
1472 esac
1473
1474 _LT_PROG_LTMAIN
1475
1476 # We use sed instead of cat because bash on DJGPP gets confused if
1477 # if finds mixed CR/LF and LF-only lines. Since sed operates in
1478 # text mode, it properly converts lines to CR/LF. This bash problem
1479 # is reportedly fixed, but why not run on old versions too?
1480 sed '$q' "$ltmain" >> "$cfgfile" \
1481 || (rm -f "$cfgfile"; exit 1)
1482
1483 _LT_PROG_REPLACE_SHELLFNS
1484
1485 mv -f "$cfgfile" "$ofile" ||
1486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
1487 chmod +x "$ofile"
1488],
1489[cat <<_LT_EOF >> "$ofile"
1490
1491dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
1492dnl in a comment (ie after a #).
1493# ### BEGIN LIBTOOL TAG CONFIG: $1
1494_LT_LIBTOOL_TAG_VARS(_LT_TAG)
1495# ### END LIBTOOL TAG CONFIG: $1
1496_LT_EOF
1497])dnl /m4_if
1498],
1499[m4_if([$1], [], [
1500 PACKAGE='$PACKAGE'
1501 VERSION='$VERSION'
1502 TIMESTAMP='$TIMESTAMP'
1503 RM='$RM'
1504 ofile='$ofile'], [])
1505])dnl /_LT_CONFIG_SAVE_COMMANDS
1506])# _LT_CONFIG
1507
1508
1509# LT_SUPPORTED_TAG(TAG)
1510# ---------------------
1511# Trace this macro to discover what tags are supported by the libtool
1512# --tag option, using:
1513# autoconf --trace 'LT_SUPPORTED_TAG:$1'
1514AC_DEFUN([LT_SUPPORTED_TAG], [])
1515
1516
1517# C support is built-in for now
1518m4_define([_LT_LANG_C_enabled], [])
1519m4_define([_LT_TAGS], [])
1520
1521
1522# LT_LANG(LANG)
1523# -------------
1524# Enable libtool support for the given language if not already enabled.
1525AC_DEFUN([LT_LANG],
1526[AC_BEFORE([$0], [LT_OUTPUT])dnl
1527m4_case([$1],
1528 [C], [_LT_LANG(C)],
1529 [C++], [_LT_LANG(CXX)],
1530 [Java], [_LT_LANG(GCJ)],
1531 [Fortran 77], [_LT_LANG(F77)],
1532 [Fortran], [_LT_LANG(FC)],
1533 [Windows Resource], [_LT_LANG(RC)],
1534 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
1535 [_LT_LANG($1)],
1536 [m4_fatal([$0: unsupported language: "$1"])])])dnl
1537])# LT_LANG
1538
1539
1540# _LT_LANG(LANGNAME)
1541# ------------------
1542m4_defun([_LT_LANG],
1543[m4_ifdef([_LT_LANG_]$1[_enabled], [],
1544 [LT_SUPPORTED_TAG([$1])dnl
1545 m4_append([_LT_TAGS], [$1 ])dnl
1546 m4_define([_LT_LANG_]$1[_enabled], [])dnl
1547 _LT_LANG_$1_CONFIG($1)])dnl
1548])# _LT_LANG
1549
1550
1551# _LT_LANG_DEFAULT_CONFIG
1552# -----------------------
1553m4_defun([_LT_LANG_DEFAULT_CONFIG],
1554[AC_PROVIDE_IFELSE([AC_PROG_CXX],
1555 [LT_LANG(CXX)],
1556 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
1557
1558AC_PROVIDE_IFELSE([AC_PROG_F77],
1559 [LT_LANG(F77)],
1560 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
1561
1562AC_PROVIDE_IFELSE([AC_PROG_FC],
1563 [LT_LANG(FC)],
1564 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
1565
1566dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
1567dnl pulling things in needlessly.
1568AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1569 [LT_LANG(GCJ)],
1570 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1571 [LT_LANG(GCJ)],
1572 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
1573 [LT_LANG(GCJ)],
1574 [m4_ifdef([AC_PROG_GCJ],
1575 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
1576 m4_ifdef([A][M_PROG_GCJ],
1577 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
1578 m4_ifdef([LT_PROG_GCJ],
1579 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
1580
1581AC_PROVIDE_IFELSE([LT_PROG_RC],
1582 [LT_LANG(RC)],
1583 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
1584])# _LT_LANG_DEFAULT_CONFIG
1585
1586# Obsolete macros:
1587AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
1588AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
1589AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
1590AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
1591AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
1592dnl aclocal-1.4 backwards compatibility:
1593dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
1594dnl AC_DEFUN([AC_LIBTOOL_F77], [])
1595dnl AC_DEFUN([AC_LIBTOOL_FC], [])
1596dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
1597dnl AC_DEFUN([AC_LIBTOOL_RC], [])
1598
1599
1600# _LT_TAG_COMPILER
1601# ----------------
1602m4_defun([_LT_TAG_COMPILER],
1603[AC_REQUIRE([AC_PROG_CC])dnl
1604
1605_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
1606_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
1607_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
1608_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
1609
1610# If no C compiler was specified, use CC.
1611LTCC=${LTCC-"$CC"}
1612
1613# If no C compiler flags were specified, use CFLAGS.
1614LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1615
1616# Allow CC to be a program name with arguments.
1617compiler=$CC
1618])# _LT_TAG_COMPILER
1619
1620
1621# _LT_COMPILER_BOILERPLATE
1622# ------------------------
1623# Check for compiler boilerplate output or warnings with
1624# the simple compiler test code.
1625m4_defun([_LT_COMPILER_BOILERPLATE],
1626[m4_require([_LT_DECL_SED])dnl
1627ac_outfile=conftest.$ac_objext
1628echo "$lt_simple_compile_test_code" >conftest.$ac_ext
1629eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1630_lt_compiler_boilerplate=`cat conftest.err`
1631$RM conftest*
1632])# _LT_COMPILER_BOILERPLATE
1633
1634
1635# _LT_LINKER_BOILERPLATE
1636# ----------------------
1637# Check for linker boilerplate output or warnings with
1638# the simple link test code.
1639m4_defun([_LT_LINKER_BOILERPLATE],
1640[m4_require([_LT_DECL_SED])dnl
1641ac_outfile=conftest.$ac_objext
1642echo "$lt_simple_link_test_code" >conftest.$ac_ext
1643eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1644_lt_linker_boilerplate=`cat conftest.err`
1645$RM -r conftest*
1646])# _LT_LINKER_BOILERPLATE
1647
1648# _LT_REQUIRED_DARWIN_CHECKS
1649# -------------------------
1650m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
1651 case $host_os in
1652 rhapsody* | darwin*)
1653 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
1654 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
1655 AC_CHECK_TOOL([LIPO], [lipo], [:])
1656 AC_CHECK_TOOL([OTOOL], [otool], [:])
1657 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
1658 _LT_DECL([], [DSYMUTIL], [1],
1659 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
1660 _LT_DECL([], [NMEDIT], [1],
1661 [Tool to change global to local symbols on Mac OS X])
1662 _LT_DECL([], [LIPO], [1],
1663 [Tool to manipulate fat objects and archives on Mac OS X])
1664 _LT_DECL([], [OTOOL], [1],
1665 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
1666 _LT_DECL([], [OTOOL64], [1],
1667 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
1668
1669 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
1670 [lt_cv_apple_cc_single_mod=no
1671 if test -z "${LT_MULTI_MODULE}"; then
1672 # By default we will add the -single_module flag. You can override
1673 # by either setting the environment variable LT_MULTI_MODULE
1674 # non-empty at configure time, or by adding -multi_module to the
1675 # link flags.
1676 rm -rf libconftest.dylib*
1677 echo "int foo(void){return 1;}" > conftest.c
1678 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1679-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1680 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1681 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1682 _lt_result=$?
1683 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
1684 lt_cv_apple_cc_single_mod=yes
1685 else
1686 cat conftest.err >&AS_MESSAGE_LOG_FD
1687 fi
1688 rm -rf libconftest.dylib*
1689 rm -f conftest.*
1690 fi])
1691 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1692 [lt_cv_ld_exported_symbols_list],
1693 [lt_cv_ld_exported_symbols_list=no
1694 save_LDFLAGS=$LDFLAGS
1695 echo "_main" > conftest.sym
1696 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1697 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1698 [lt_cv_ld_exported_symbols_list=yes],
1699 [lt_cv_ld_exported_symbols_list=no])
1700 LDFLAGS="$save_LDFLAGS"
1701 ])
1702 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1703 [lt_cv_ld_force_load=no
1704 cat > conftest.c << _LT_EOF
1705int forced_loaded() { return 2;}
1706_LT_EOF
1707 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1708 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1709 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1710 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1711 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1712 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1713 cat > conftest.c << _LT_EOF
1714int main() { return 0;}
1715_LT_EOF
1716 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1717 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1718 _lt_result=$?
1719 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
1720 lt_cv_ld_force_load=yes
1721 else
1722 cat conftest.err >&AS_MESSAGE_LOG_FD
1723 fi
1724 rm -f conftest.err libconftest.a conftest conftest.c
1725 rm -rf conftest.dSYM
1726 ])
1727 case $host_os in
1728 rhapsody* | darwin1.[[012]])
1729 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
1730 darwin1.*)
1731 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1732 darwin*) # darwin 5.x on
1733 # if running on 10.5 or later, the deployment target defaults
1734 # to the OS version, if on x86, and 10.4, the deployment
1735 # target defaults to 10.4. Don't you love it?
1736 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1737 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1738 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1739 10.[[012]]*)
1740 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
1741 10.*)
1742 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
1743 esac
1744 ;;
1745 esac
1746 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
1747 _lt_dar_single_mod='$single_module'
1748 fi
1749 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
1750 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
1751 else
1752 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
1753 fi
1754 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
1755 _lt_dsymutil='~$DSYMUTIL $lib || :'
1756 else
1757 _lt_dsymutil=
1758 fi
1759 ;;
1760 esac
1761])
1762
1763
1764# _LT_DARWIN_LINKER_FEATURES
1765# --------------------------
1766# Checks for linker and compiler features on darwin
1767m4_defun([_LT_DARWIN_LINKER_FEATURES],
1768[
1769 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1770 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1771 _LT_TAGVAR(hardcode_direct, $1)=no
1772 _LT_TAGVAR(hardcode_automatic, $1)=yes
1773 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1774 if test "$lt_cv_ld_force_load" = "yes"; then
1775 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1776 else
1777 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1778 fi
1779 _LT_TAGVAR(link_all_deplibs, $1)=yes
1780 _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
1781 case $cc_basename in
1782 ifort*) _lt_dar_can_shared=yes ;;
1783 *) _lt_dar_can_shared=$GCC ;;
1784 esac
1785 if test "$_lt_dar_can_shared" = "yes"; then
1786 output_verbose_link_cmd=func_echo_all
1787 _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}"
1788 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
1789 _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}"
1790 _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}"
1791 m4_if([$1], [CXX],
1792[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
1793 _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}"
1794 _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}"
1795 fi
1796],[])
1797 else
1798 _LT_TAGVAR(ld_shlibs, $1)=no
1799 fi
1800])
1801
1802# _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1803# ----------------------------------
1804# Links a minimal program and checks the executable
1805# for the system default hardcoded library path. In most cases,
1806# this is /usr/lib:/lib, but when the MPI compilers are used
1807# the location of the communication and MPI libs are included too.
1808# If we don't find anything, use the default library path according
1809# to the aix ld manual.
1810# Store the results from the different compilers for each TAGNAME.
1811# Allow to override them for all tags through lt_cv_aix_libpath.
1812m4_defun([_LT_SYS_MODULE_PATH_AIX],
1813[m4_require([_LT_DECL_SED])dnl
1814if test "${lt_cv_aix_libpath+set}" = set; then
1815 aix_libpath=$lt_cv_aix_libpath
1816else
1817 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1818 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1819 lt_aix_libpath_sed='[
1820 /Import File Strings/,/^$/ {
1821 /^0/ {
1822 s/^0 *\([^ ]*\) *$/\1/
1823 p
1824 }
1825 }]'
1826 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1827 # Check for a 64-bit object if we didn't find anything.
1828 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1829 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1830 fi],[])
1831 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1832 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib"
1833 fi
1834 ])
1835 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1836fi
1837])# _LT_SYS_MODULE_PATH_AIX
1838
1839
1840# _LT_SHELL_INIT(ARG)
1841# -------------------
1842m4_define([_LT_SHELL_INIT],
1843[m4_divert_text([M4SH-INIT], [$1
1844])])# _LT_SHELL_INIT
1845
1846
1847
1848# _LT_PROG_ECHO_BACKSLASH
1849# -----------------------
1850# Find how we can fake an echo command that does not interpret backslash.
1851# In particular, with Autoconf 2.60 or later we add some code to the start
1852# of the generated configure script which will find a shell with a builtin
1853# printf (which we can use as an echo command).
1854m4_defun([_LT_PROG_ECHO_BACKSLASH],
1855[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1856ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1857ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1858
1859AC_MSG_CHECKING([how to print strings])
1860# Test print first, because it will be a builtin if present.
1861if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1862 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1863 ECHO='print -r --'
1864elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1865 ECHO='printf %s\n'
1866else
1867 # Use this function as a fallback that always works.
1868 func_fallback_echo ()
1869 {
1870 eval 'cat <<_LTECHO_EOF
1871$[]1
1872_LTECHO_EOF'
1873 }
1874 ECHO='func_fallback_echo'
1875fi
1876
1877# func_echo_all arg...
1878# Invoke $ECHO with all args, space-separated.
1879func_echo_all ()
1880{
1881 $ECHO "$*"
1882}
1883
1884case "$ECHO" in
1885 printf*) AC_MSG_RESULT([printf]) ;;
1886 print*) AC_MSG_RESULT([print -r]) ;;
1887 *) AC_MSG_RESULT([cat]) ;;
1888esac
1889
1890m4_ifdef([_AS_DETECT_SUGGESTED],
1891[_AS_DETECT_SUGGESTED([
1892 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1893 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1894 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1895 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1896 PATH=/empty FPATH=/empty; export PATH FPATH
1897 test "X`printf %s $ECHO`" = "X$ECHO" \
1898 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1899
1900_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1901_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1902])# _LT_PROG_ECHO_BACKSLASH
1903
1904
1905# _LT_WITH_SYSROOT
1906# ----------------
1907AC_DEFUN([_LT_WITH_SYSROOT],
1908[AC_MSG_CHECKING([for sysroot])
1909AC_ARG_WITH([sysroot],
1910[ --with-sysroot[=DIR] Search for dependent libraries within DIR
1911 (or the compiler's sysroot if not specified).],
1912[], [with_sysroot=no])
1913
1914dnl lt_sysroot will always be passed unquoted. We quote it here
1915dnl in case the user passed a directory name.
1916lt_sysroot=
1917case ${with_sysroot} in #(
1918 yes)
1919 if test "$GCC" = yes; then
1920 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1921 fi
1922 ;; #(
1923 /*)
1924 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1925 ;; #(
1926 no|'')
1927 ;; #(
1928 *)
1929 AC_MSG_RESULT([${with_sysroot}])
1930 AC_MSG_ERROR([The sysroot must be an absolute path.])
1931 ;;
1932esac
1933
1934 AC_MSG_RESULT([${lt_sysroot:-no}])
1935_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1936[dependent libraries, and in which our libraries should be installed.])])
1937
1938# _LT_ENABLE_LOCK
1939# ---------------
1940m4_defun([_LT_ENABLE_LOCK],
1941[AC_ARG_ENABLE([libtool-lock],
1942 [AS_HELP_STRING([--disable-libtool-lock],
1943 [avoid locking (might break parallel builds)])])
1944test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1945
1946# Some flags need to be propagated to the compiler or linker for good
1947# libtool support.
1948case $host in
1949ia64-*-hpux*)
1950 # Find out which ABI we are using.
1951 echo 'int i;' > conftest.$ac_ext
1952 if AC_TRY_EVAL(ac_compile); then
1953 case `/usr/bin/file conftest.$ac_objext` in
1954 *ELF-32*)
1955 HPUX_IA64_MODE="32"
1956 ;;
1957 *ELF-64*)
1958 HPUX_IA64_MODE="64"
1959 ;;
1960 esac
1961 fi
1962 rm -rf conftest*
1963 ;;
1964*-*-irix6*)
1965 # Find out which ABI we are using.
1966 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1967 if AC_TRY_EVAL(ac_compile); then
1968 if test "$lt_cv_prog_gnu_ld" = yes; then
1969 case `/usr/bin/file conftest.$ac_objext` in
1970 *32-bit*)
1971 LD="${LD-ld} -melf32bsmip"
1972 ;;
1973 *N32*)
1974 LD="${LD-ld} -melf32bmipn32"
1975 ;;
1976 *64-bit*)
1977 LD="${LD-ld} -melf64bmip"
1978 ;;
1979 esac
1980 else
1981 case `/usr/bin/file conftest.$ac_objext` in
1982 *32-bit*)
1983 LD="${LD-ld} -32"
1984 ;;
1985 *N32*)
1986 LD="${LD-ld} -n32"
1987 ;;
1988 *64-bit*)
1989 LD="${LD-ld} -64"
1990 ;;
1991 esac
1992 fi
1993 fi
1994 rm -rf conftest*
1995 ;;
1996
1997x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
1998s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1999 # Find out which ABI we are using.
2000 echo 'int i;' > conftest.$ac_ext
2001 if AC_TRY_EVAL(ac_compile); then
2002 case `/usr/bin/file conftest.o` in
2003 *32-bit*)
2004 case $host in
2005 x86_64-*kfreebsd*-gnu)
2006 LD="${LD-ld} -m elf_i386_fbsd"
2007 ;;
2008 x86_64-*linux*)
2009 LD="${LD-ld} -m elf_i386"
2010 ;;
2011 ppc64-*linux*|powerpc64-*linux*)
2012 LD="${LD-ld} -m elf32ppclinux"
2013 ;;
2014 s390x-*linux*)
2015 LD="${LD-ld} -m elf_s390"
2016 ;;
2017 sparc64-*linux*)
2018 LD="${LD-ld} -m elf32_sparc"
2019 ;;
2020 esac
2021 ;;
2022 *64-bit*)
2023 case $host in
2024 x86_64-*kfreebsd*-gnu)
2025 LD="${LD-ld} -m elf_x86_64_fbsd"
2026 ;;
2027 x86_64-*linux*)
2028 LD="${LD-ld} -m elf_x86_64"
2029 ;;
2030 ppc*-*linux*|powerpc*-*linux*)
2031 LD="${LD-ld} -m elf64ppc"
2032 ;;
2033 s390*-*linux*|s390*-*tpf*)
2034 LD="${LD-ld} -m elf64_s390"
2035 ;;
2036 sparc*-*linux*)
2037 LD="${LD-ld} -m elf64_sparc"
2038 ;;
2039 esac
2040 ;;
2041 esac
2042 fi
2043 rm -rf conftest*
2044 ;;
2045
2046*-*-sco3.2v5*)
2047 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2048 SAVE_CFLAGS="$CFLAGS"
2049 CFLAGS="$CFLAGS -belf"
2050 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2051 [AC_LANG_PUSH(C)
2052 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2053 AC_LANG_POP])
2054 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2055 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2056 CFLAGS="$SAVE_CFLAGS"
2057 fi
2058 ;;
2059sparc*-*solaris*)
2060 # Find out which ABI we are using.
2061 echo 'int i;' > conftest.$ac_ext
2062 if AC_TRY_EVAL(ac_compile); then
2063 case `/usr/bin/file conftest.o` in
2064 *64-bit*)
2065 case $lt_cv_prog_gnu_ld in
2066 yes*) LD="${LD-ld} -m elf64_sparc" ;;
2067 *)
2068 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
2069 LD="${LD-ld} -64"
2070 fi
2071 ;;
2072 esac
2073 ;;
2074 esac
2075 fi
2076 rm -rf conftest*
2077 ;;
2078esac
2079
2080need_locks="$enable_libtool_lock"
2081])# _LT_ENABLE_LOCK
2082
2083
2084# _LT_PROG_AR
2085# -----------
2086m4_defun([_LT_PROG_AR],
2087[AC_CHECK_TOOLS(AR, [ar], false)
2088: ${AR=ar}
2089: ${AR_FLAGS=cru}
2090_LT_DECL([], [AR], [1], [The archiver])
2091_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
2092
2093AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
2094 [lt_cv_ar_at_file=no
2095 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
2096 [echo conftest.$ac_objext > conftest.lst
2097 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
2098 AC_TRY_EVAL([lt_ar_try])
2099 if test "$ac_status" -eq 0; then
2100 # Ensure the archiver fails upon bogus file names.
2101 rm -f conftest.$ac_objext libconftest.a
2102 AC_TRY_EVAL([lt_ar_try])
2103 if test "$ac_status" -ne 0; then
2104 lt_cv_ar_at_file=@
2105 fi
2106 fi
2107 rm -f conftest.* libconftest.a
2108 ])
2109 ])
2110
2111if test "x$lt_cv_ar_at_file" = xno; then
2112 archiver_list_spec=
2113else
2114 archiver_list_spec=$lt_cv_ar_at_file
2115fi
2116_LT_DECL([], [archiver_list_spec], [1],
2117 [How to feed a file listing to the archiver])
2118])# _LT_PROG_AR
2119
2120
2121# _LT_CMD_OLD_ARCHIVE
2122# -------------------
2123m4_defun([_LT_CMD_OLD_ARCHIVE],
2124[_LT_PROG_AR
2125
2126AC_CHECK_TOOL(STRIP, strip, :)
2127test -z "$STRIP" && STRIP=:
2128_LT_DECL([], [STRIP], [1], [A symbol stripping program])
2129
2130AC_CHECK_TOOL(RANLIB, ranlib, :)
2131test -z "$RANLIB" && RANLIB=:
2132_LT_DECL([], [RANLIB], [1],
2133 [Commands used to install an old-style archive])
2134
2135# Determine commands to create old-style static archives.
2136old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
2137old_postinstall_cmds='chmod 644 $oldlib'
2138old_postuninstall_cmds=
2139
2140if test -n "$RANLIB"; then
2141 case $host_os in
2142 openbsd*)
2143 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
2144 ;;
2145 *)
2146 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
2147 ;;
2148 esac
2149 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2150fi
2151
2152case $host_os in
2153 darwin*)
2154 lock_old_archive_extraction=yes ;;
2155 *)
2156 lock_old_archive_extraction=no ;;
2157esac
2158_LT_DECL([], [old_postinstall_cmds], [2])
2159_LT_DECL([], [old_postuninstall_cmds], [2])
2160_LT_TAGDECL([], [old_archive_cmds], [2],
2161 [Commands used to build an old-style archive])
2162_LT_DECL([], [lock_old_archive_extraction], [0],
2163 [Whether to use a lock for old archive extraction])
2164])# _LT_CMD_OLD_ARCHIVE
2165
2166
2167# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2168# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2169# ----------------------------------------------------------------
2170# Check whether the given compiler option works
2171AC_DEFUN([_LT_COMPILER_OPTION],
2172[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2173m4_require([_LT_DECL_SED])dnl
2174AC_CACHE_CHECK([$1], [$2],
2175 [$2=no
2176 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2177 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2178 lt_compiler_flag="$3"
2179 # Insert the option either (1) after the last *FLAGS variable, or
2180 # (2) before a word containing "conftest.", or (3) at the end.
2181 # Note that $ac_compile itself does not contain backslashes and begins
2182 # with a dollar sign (not a hyphen), so the echo should work correctly.
2183 # The option is referenced via a variable to avoid confusing sed.
2184 lt_compile=`echo "$ac_compile" | $SED \
2185 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2186 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2187 -e 's:$: $lt_compiler_flag:'`
2188 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2189 (eval "$lt_compile" 2>conftest.err)
2190 ac_status=$?
2191 cat conftest.err >&AS_MESSAGE_LOG_FD
2192 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2193 if (exit $ac_status) && test -s "$ac_outfile"; then
2194 # The compiler can only warn and ignore the option if not recognized
2195 # So say no if there are warnings other than the usual output.
2196 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
2197 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2198 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2199 $2=yes
2200 fi
2201 fi
2202 $RM conftest*
2203])
2204
2205if test x"[$]$2" = xyes; then
2206 m4_if([$5], , :, [$5])
2207else
2208 m4_if([$6], , :, [$6])
2209fi
2210])# _LT_COMPILER_OPTION
2211
2212# Old name:
2213AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
2214dnl aclocal-1.4 backwards compatibility:
2215dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
2216
2217
2218# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2219# [ACTION-SUCCESS], [ACTION-FAILURE])
2220# ----------------------------------------------------
2221# Check whether the given linker option works
2222AC_DEFUN([_LT_LINKER_OPTION],
2223[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2224m4_require([_LT_DECL_SED])dnl
2225AC_CACHE_CHECK([$1], [$2],
2226 [$2=no
2227 save_LDFLAGS="$LDFLAGS"
2228 LDFLAGS="$LDFLAGS $3"
2229 echo "$lt_simple_link_test_code" > conftest.$ac_ext
2230 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2231 # The linker can only warn and ignore the option if not recognized
2232 # So say no if there are warnings
2233 if test -s conftest.err; then
2234 # Append any errors to the config.log.
2235 cat conftest.err 1>&AS_MESSAGE_LOG_FD
2236 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
2237 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2238 if diff conftest.exp conftest.er2 >/dev/null; then
2239 $2=yes
2240 fi
2241 else
2242 $2=yes
2243 fi
2244 fi
2245 $RM -r conftest*
2246 LDFLAGS="$save_LDFLAGS"
2247])
2248
2249if test x"[$]$2" = xyes; then
2250 m4_if([$4], , :, [$4])
2251else
2252 m4_if([$5], , :, [$5])
2253fi
2254])# _LT_LINKER_OPTION
2255
2256# Old name:
2257AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
2258dnl aclocal-1.4 backwards compatibility:
2259dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
2260
2261
2262# LT_CMD_MAX_LEN
2263#---------------
2264AC_DEFUN([LT_CMD_MAX_LEN],
2265[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2266# find the maximum length of command line arguments
2267AC_MSG_CHECKING([the maximum length of command line arguments])
2268AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2269 i=0
2270 teststring="ABCD"
2271
2272 case $build_os in
2273 msdosdjgpp*)
2274 # On DJGPP, this test can blow up pretty badly due to problems in libc
2275 # (any single argument exceeding 2000 bytes causes a buffer overrun
2276 # during glob expansion). Even if it were fixed, the result of this
2277 # check would be larger than it should be.
2278 lt_cv_sys_max_cmd_len=12288; # 12K is about right
2279 ;;
2280
2281 gnu*)
2282 # Under GNU Hurd, this test is not required because there is
2283 # no limit to the length of command line arguments.
2284 # Libtool will interpret -1 as no limit whatsoever
2285 lt_cv_sys_max_cmd_len=-1;
2286 ;;
2287
2288 cygwin* | mingw* | cegcc*)
2289 # On Win9x/ME, this test blows up -- it succeeds, but takes
2290 # about 5 minutes as the teststring grows exponentially.
2291 # Worse, since 9x/ME are not pre-emptively multitasking,
2292 # you end up with a "frozen" computer, even though with patience
2293 # the test eventually succeeds (with a max line length of 256k).
2294 # Instead, let's just punt: use the minimum linelength reported by
2295 # all of the supported platforms: 8192 (on NT/2K/XP).
2296 lt_cv_sys_max_cmd_len=8192;
2297 ;;
2298
2299 mint*)
2300 # On MiNT this can take a long time and run out of memory.
2301 lt_cv_sys_max_cmd_len=8192;
2302 ;;
2303
2304 amigaos*)
2305 # On AmigaOS with pdksh, this test takes hours, literally.
2306 # So we just punt and use a minimum line length of 8192.
2307 lt_cv_sys_max_cmd_len=8192;
2308 ;;
2309
2310 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2311 # This has been around since 386BSD, at least. Likely further.
2312 if test -x /sbin/sysctl; then
2313 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2314 elif test -x /usr/sbin/sysctl; then
2315 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2316 else
2317 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2318 fi
2319 # And add a safety zone
2320 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2321 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2322 ;;
2323
2324 interix*)
2325 # We know the value 262144 and hardcode it with a safety zone (like BSD)
2326 lt_cv_sys_max_cmd_len=196608
2327 ;;
2328
2329 osf*)
2330 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2331 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2332 # nice to cause kernel panics so lets avoid the loop below.
2333 # First set a reasonable default.
2334 lt_cv_sys_max_cmd_len=16384
2335 #
2336 if test -x /sbin/sysconfig; then
2337 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2338 *1*) lt_cv_sys_max_cmd_len=-1 ;;
2339 esac
2340 fi
2341 ;;
2342 sco3.2v5*)
2343 lt_cv_sys_max_cmd_len=102400
2344 ;;
2345 sysv5* | sco5v6* | sysv4.2uw2*)
2346 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2347 if test -n "$kargmax"; then
2348 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2349 else
2350 lt_cv_sys_max_cmd_len=32768
2351 fi
2352 ;;
2353 *)
2354 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
2355 if test -n "$lt_cv_sys_max_cmd_len"; then
2356 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2357 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2358 else
2359 # Make teststring a little bigger before we do anything with it.
2360 # a 1K string should be a reasonable start.
2361 for i in 1 2 3 4 5 6 7 8 ; do
2362 teststring=$teststring$teststring
2363 done
2364 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2365 # If test is not a shell built-in, we'll probably end up computing a
2366 # maximum length that is only half of the actual maximum length, but
2367 # we can't tell.
2368 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
2369 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
2370 test $i != 17 # 1/2 MB should be enough
2371 do
2372 i=`expr $i + 1`
2373 teststring=$teststring$teststring
2374 done
2375 # Only check the string length outside the loop.
2376 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
2377 teststring=
2378 # Add a significant safety factor because C++ compilers can tack on
2379 # massive amounts of additional arguments before passing them to the
2380 # linker. It appears as though 1/2 is a usable value.
2381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2382 fi
2383 ;;
2384 esac
2385])
2386if test -n $lt_cv_sys_max_cmd_len ; then
2387 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2388else
2389 AC_MSG_RESULT(none)
2390fi
2391max_cmd_len=$lt_cv_sys_max_cmd_len
2392_LT_DECL([], [max_cmd_len], [0],
2393 [What is the maximum length of a command?])
2394])# LT_CMD_MAX_LEN
2395
2396# Old name:
2397AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
2398dnl aclocal-1.4 backwards compatibility:
2399dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
2400
2401
2402# _LT_HEADER_DLFCN
2403# ----------------
2404m4_defun([_LT_HEADER_DLFCN],
2405[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
2406])# _LT_HEADER_DLFCN
2407
2408
2409# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2410# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2411# ----------------------------------------------------------------
2412m4_defun([_LT_TRY_DLOPEN_SELF],
2413[m4_require([_LT_HEADER_DLFCN])dnl
2414if test "$cross_compiling" = yes; then :
2415 [$4]
2416else
2417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2418 lt_status=$lt_dlunknown
2419 cat > conftest.$ac_ext <<_LT_EOF
2420[#line $LINENO "configure"
2421#include "confdefs.h"
2422
2423#if HAVE_DLFCN_H
2424#include <dlfcn.h>
2425#endif
2426
2427#include <stdio.h>
2428
2429#ifdef RTLD_GLOBAL
2430# define LT_DLGLOBAL RTLD_GLOBAL
2431#else
2432# ifdef DL_GLOBAL
2433# define LT_DLGLOBAL DL_GLOBAL
2434# else
2435# define LT_DLGLOBAL 0
2436# endif
2437#endif
2438
2439/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2440 find out it does not work in some platform. */
2441#ifndef LT_DLLAZY_OR_NOW
2442# ifdef RTLD_LAZY
2443# define LT_DLLAZY_OR_NOW RTLD_LAZY
2444# else
2445# ifdef DL_LAZY
2446# define LT_DLLAZY_OR_NOW DL_LAZY
2447# else
2448# ifdef RTLD_NOW
2449# define LT_DLLAZY_OR_NOW RTLD_NOW
2450# else
2451# ifdef DL_NOW
2452# define LT_DLLAZY_OR_NOW DL_NOW
2453# else
2454# define LT_DLLAZY_OR_NOW 0
2455# endif
2456# endif
2457# endif
2458# endif
2459#endif
2460
2461/* When -fvisbility=hidden is used, assume the code has been annotated
2462 correspondingly for the symbols needed. */
2463#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
2464int fnord () __attribute__((visibility("default")));
2465#endif
2466
2467int fnord () { return 42; }
2468int main ()
2469{
2470 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2471 int status = $lt_dlunknown;
2472
2473 if (self)
2474 {
2475 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2476 else
2477 {
2478 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2479 else puts (dlerror ());
2480 }
2481 /* dlclose (self); */
2482 }
2483 else
2484 puts (dlerror ());
2485
2486 return status;
2487}]
2488_LT_EOF
2489 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2490 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2491 lt_status=$?
2492 case x$lt_status in
2493 x$lt_dlno_uscore) $1 ;;
2494 x$lt_dlneed_uscore) $2 ;;
2495 x$lt_dlunknown|x*) $3 ;;
2496 esac
2497 else :
2498 # compilation failed
2499 $3
2500 fi
2501fi
2502rm -fr conftest*
2503])# _LT_TRY_DLOPEN_SELF
2504
2505
2506# LT_SYS_DLOPEN_SELF
2507# ------------------
2508AC_DEFUN([LT_SYS_DLOPEN_SELF],
2509[m4_require([_LT_HEADER_DLFCN])dnl
2510if test "x$enable_dlopen" != xyes; then
2511 enable_dlopen=unknown
2512 enable_dlopen_self=unknown
2513 enable_dlopen_self_static=unknown
2514else
2515 lt_cv_dlopen=no
2516 lt_cv_dlopen_libs=
2517
2518 case $host_os in
2519 beos*)
2520 lt_cv_dlopen="load_add_on"
2521 lt_cv_dlopen_libs=
2522 lt_cv_dlopen_self=yes
2523 ;;
2524
2525 mingw* | pw32* | cegcc*)
2526 lt_cv_dlopen="LoadLibrary"
2527 lt_cv_dlopen_libs=
2528 ;;
2529
2530 cygwin*)
2531 lt_cv_dlopen="dlopen"
2532 lt_cv_dlopen_libs=
2533 ;;
2534
2535 darwin*)
2536 # if libdl is installed we need to link against it
2537 AC_CHECK_LIB([dl], [dlopen],
2538 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2539 lt_cv_dlopen="dyld"
2540 lt_cv_dlopen_libs=
2541 lt_cv_dlopen_self=yes
2542 ])
2543 ;;
2544
2545 *)
2546 AC_CHECK_FUNC([shl_load],
2547 [lt_cv_dlopen="shl_load"],
2548 [AC_CHECK_LIB([dld], [shl_load],
2549 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
2550 [AC_CHECK_FUNC([dlopen],
2551 [lt_cv_dlopen="dlopen"],
2552 [AC_CHECK_LIB([dl], [dlopen],
2553 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2554 [AC_CHECK_LIB([svld], [dlopen],
2555 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2556 [AC_CHECK_LIB([dld], [dld_link],
2557 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
2558 ])
2559 ])
2560 ])
2561 ])
2562 ])
2563 ;;
2564 esac
2565
2566 if test "x$lt_cv_dlopen" != xno; then
2567 enable_dlopen=yes
2568 else
2569 enable_dlopen=no
2570 fi
2571
2572 case $lt_cv_dlopen in
2573 dlopen)
2574 save_CPPFLAGS="$CPPFLAGS"
2575 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2576
2577 save_LDFLAGS="$LDFLAGS"
2578 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2579
2580 save_LIBS="$LIBS"
2581 LIBS="$lt_cv_dlopen_libs $LIBS"
2582
2583 AC_CACHE_CHECK([whether a program can dlopen itself],
2584 lt_cv_dlopen_self, [dnl
2585 _LT_TRY_DLOPEN_SELF(
2586 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2587 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2588 ])
2589
2590 if test "x$lt_cv_dlopen_self" = xyes; then
2591 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2592 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2593 lt_cv_dlopen_self_static, [dnl
2594 _LT_TRY_DLOPEN_SELF(
2595 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2596 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2597 ])
2598 fi
2599
2600 CPPFLAGS="$save_CPPFLAGS"
2601 LDFLAGS="$save_LDFLAGS"
2602 LIBS="$save_LIBS"
2603 ;;
2604 esac
2605
2606 case $lt_cv_dlopen_self in
2607 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2608 *) enable_dlopen_self=unknown ;;
2609 esac
2610
2611 case $lt_cv_dlopen_self_static in
2612 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2613 *) enable_dlopen_self_static=unknown ;;
2614 esac
2615fi
2616_LT_DECL([dlopen_support], [enable_dlopen], [0],
2617 [Whether dlopen is supported])
2618_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2619 [Whether dlopen of programs is supported])
2620_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2621 [Whether dlopen of statically linked programs is supported])
2622])# LT_SYS_DLOPEN_SELF
2623
2624# Old name:
2625AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2626dnl aclocal-1.4 backwards compatibility:
2627dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2628
2629
2630# _LT_COMPILER_C_O([TAGNAME])
2631# ---------------------------
2632# Check to see if options -c and -o are simultaneously supported by compiler.
2633# This macro does not hard code the compiler like AC_PROG_CC_C_O.
2634m4_defun([_LT_COMPILER_C_O],
2635[m4_require([_LT_DECL_SED])dnl
2636m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2637m4_require([_LT_TAG_COMPILER])dnl
2638AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2639 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2640 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2641 $RM -r conftest 2>/dev/null
2642 mkdir conftest
2643 cd conftest
2644 mkdir out
2645 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2646
2647 lt_compiler_flag="-o out/conftest2.$ac_objext"
2648 # Insert the option either (1) after the last *FLAGS variable, or
2649 # (2) before a word containing "conftest.", or (3) at the end.
2650 # Note that $ac_compile itself does not contain backslashes and begins
2651 # with a dollar sign (not a hyphen), so the echo should work correctly.
2652 lt_compile=`echo "$ac_compile" | $SED \
2653 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2654 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2655 -e 's:$: $lt_compiler_flag:'`
2656 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2657 (eval "$lt_compile" 2>out/conftest.err)
2658 ac_status=$?
2659 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2661 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2662 then
2663 # The compiler can only warn and ignore the option if not recognized
2664 # So say no if there are warnings
2665 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2666 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2667 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2668 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2669 fi
2670 fi
2671 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2672 $RM conftest*
2673 # SGI C++ compiler will create directory out/ii_files/ for
2674 # template instantiation
2675 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2676 $RM out/* && rmdir out
2677 cd ..
2678 $RM -r conftest
2679 $RM conftest*
2680])
2681_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2682 [Does compiler simultaneously support -c and -o options?])
2683])# _LT_COMPILER_C_O
2684
2685
2686# _LT_COMPILER_FILE_LOCKS([TAGNAME])
2687# ----------------------------------
2688# Check to see if we can do hard links to lock some files if needed
2689m4_defun([_LT_COMPILER_FILE_LOCKS],
2690[m4_require([_LT_ENABLE_LOCK])dnl
2691m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2692_LT_COMPILER_C_O([$1])
2693
2694hard_links="nottested"
2695if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2696 # do not overwrite the value of need_locks provided by the user
2697 AC_MSG_CHECKING([if we can lock with hard links])
2698 hard_links=yes
2699 $RM conftest*
2700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2701 touch conftest.a
2702 ln conftest.a conftest.b 2>&5 || hard_links=no
2703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2704 AC_MSG_RESULT([$hard_links])
2705 if test "$hard_links" = no; then
2706 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2707 need_locks=warn
2708 fi
2709else
2710 need_locks=no
2711fi
2712_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2713])# _LT_COMPILER_FILE_LOCKS
2714
2715
2716# _LT_CHECK_OBJDIR
2717# ----------------
2718m4_defun([_LT_CHECK_OBJDIR],
2719[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2720[rm -f .libs 2>/dev/null
2721mkdir .libs 2>/dev/null
2722if test -d .libs; then
2723 lt_cv_objdir=.libs
2724else
2725 # MS-DOS does not allow filenames that begin with a dot.
2726 lt_cv_objdir=_libs
2727fi
2728rmdir .libs 2>/dev/null])
2729objdir=$lt_cv_objdir
2730_LT_DECL([], [objdir], [0],
2731 [The name of the directory that contains temporary libtool files])dnl
2732m4_pattern_allow([LT_OBJDIR])dnl
2733AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
2734 [Define to the sub-directory in which libtool stores uninstalled libraries.])
2735])# _LT_CHECK_OBJDIR
2736
2737
2738# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2739# --------------------------------------
2740# Check hardcoding attributes.
2741m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2742[AC_MSG_CHECKING([how to hardcode library paths into programs])
2743_LT_TAGVAR(hardcode_action, $1)=
2744if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2745 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2746 test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2747
2748 # We can hardcode non-existent directories.
2749 if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
2750 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2751 # have to relink, otherwise we might link with an installed library
2752 # when we should be linking with a yet-to-be-installed one
2753 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2754 test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
2755 # Linking always hardcodes the temporary library directory.
2756 _LT_TAGVAR(hardcode_action, $1)=relink
2757 else
2758 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2759 _LT_TAGVAR(hardcode_action, $1)=immediate
2760 fi
2761else
2762 # We cannot hardcode anything, or else we can only hardcode existing
2763 # directories.
2764 _LT_TAGVAR(hardcode_action, $1)=unsupported
2765fi
2766AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2767
2768if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
2769 test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
2770 # Fast installation is not supported
2771 enable_fast_install=no
2772elif test "$shlibpath_overrides_runpath" = yes ||
2773 test "$enable_shared" = no; then
2774 # Fast installation is not necessary
2775 enable_fast_install=needless
2776fi
2777_LT_TAGDECL([], [hardcode_action], [0],
2778 [How to hardcode a shared library path into an executable])
2779])# _LT_LINKER_HARDCODE_LIBPATH
2780
2781
2782# _LT_CMD_STRIPLIB
2783# ----------------
2784m4_defun([_LT_CMD_STRIPLIB],
2785[m4_require([_LT_DECL_EGREP])
2786striplib=
2787old_striplib=
2788AC_MSG_CHECKING([whether stripping libraries is possible])
2789if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2790 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2791 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2792 AC_MSG_RESULT([yes])
2793else
2794# FIXME - insert some real tests, host_os isn't really good enough
2795 case $host_os in
2796 darwin*)
2797 if test -n "$STRIP" ; then
2798 striplib="$STRIP -x"
2799 old_striplib="$STRIP -S"
2800 AC_MSG_RESULT([yes])
2801 else
2802 AC_MSG_RESULT([no])
2803 fi
2804 ;;
2805 *)
2806 AC_MSG_RESULT([no])
2807 ;;
2808 esac
2809fi
2810_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2811_LT_DECL([], [striplib], [1])
2812])# _LT_CMD_STRIPLIB
2813
2814
2815# _LT_SYS_DYNAMIC_LINKER([TAG])
2816# -----------------------------
2817# PORTME Fill in your ld.so characteristics
2818m4_defun([_LT_SYS_DYNAMIC_LINKER],
2819[AC_REQUIRE([AC_CANONICAL_HOST])dnl
2820m4_require([_LT_DECL_EGREP])dnl
2821m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2822m4_require([_LT_DECL_OBJDUMP])dnl
2823m4_require([_LT_DECL_SED])dnl
2824m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2825AC_MSG_CHECKING([dynamic linker characteristics])
2826m4_if([$1],
2827 [], [
2828if test "$GCC" = yes; then
2829 case $host_os in
2830 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
2831 *) lt_awk_arg="/^libraries:/" ;;
2832 esac
2833 case $host_os in
2834 mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;;
2835 *) lt_sed_strip_eq="s,=/,/,g" ;;
2836 esac
2837 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2838 case $lt_search_path_spec in
2839 *\;*)
2840 # if the path contains ";" then we assume it to be the separator
2841 # otherwise default to the standard path separator (i.e. ":") - it is
2842 # assumed that no part of a normal pathname contains ";" but that should
2843 # okay in the real world where ";" in dirpaths is itself problematic.
2844 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2845 ;;
2846 *)
2847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2848 ;;
2849 esac
2850 # Ok, now we have the path, separated by spaces, we can step through it
2851 # and add multilib dir if necessary.
2852 lt_tmp_lt_search_path_spec=
2853 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2854 for lt_sys_path in $lt_search_path_spec; do
2855 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
2856 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
2857 else
2858 test -d "$lt_sys_path" && \
2859 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2860 fi
2861 done
2862 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2863BEGIN {RS=" "; FS="/|\n";} {
2864 lt_foo="";
2865 lt_count=0;
2866 for (lt_i = NF; lt_i > 0; lt_i--) {
2867 if ($lt_i != "" && $lt_i != ".") {
2868 if ($lt_i == "..") {
2869 lt_count++;
2870 } else {
2871 if (lt_count == 0) {
2872 lt_foo="/" $lt_i lt_foo;
2873 } else {
2874 lt_count--;
2875 }
2876 }
2877 }
2878 }
2879 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2880 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2881}'`
2882 # AWK program above erroneously prepends '/' to C:/dos/paths
2883 # for these hosts.
2884 case $host_os in
2885 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2886 $SED 's,/\([[A-Za-z]]:\),\1,g'` ;;
2887 esac
2888 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2889else
2890 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2891fi])
2892library_names_spec=
2893libname_spec='lib$name'
2894soname_spec=
2895shrext_cmds=".so"
2896postinstall_cmds=
2897postuninstall_cmds=
2898finish_cmds=
2899finish_eval=
2900shlibpath_var=
2901shlibpath_overrides_runpath=unknown
2902version_type=none
2903dynamic_linker="$host_os ld.so"
2904sys_lib_dlsearch_path_spec="/lib /usr/lib"
2905need_lib_prefix=unknown
2906hardcode_into_libs=no
2907
2908# when you set need_version to no, make sure it does not cause -set_version
2909# flags to be left without arguments
2910need_version=unknown
2911
2912case $host_os in
2913aix3*)
2914 version_type=linux
2915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2916 shlibpath_var=LIBPATH
2917
2918 # AIX 3 has no versioning support, so we append a major version to the name.
2919 soname_spec='${libname}${release}${shared_ext}$major'
2920 ;;
2921
2922aix[[4-9]]*)
2923 version_type=linux
2924 need_lib_prefix=no
2925 need_version=no
2926 hardcode_into_libs=yes
2927 if test "$host_cpu" = ia64; then
2928 # AIX 5 supports IA64
2929 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2930 shlibpath_var=LD_LIBRARY_PATH
2931 else
2932 # With GCC up to 2.95.x, collect2 would create an import file
2933 # for dependence libraries. The import file would start with
2934 # the line `#! .'. This would cause the generated library to
2935 # depend on `.', always an invalid library. This was fixed in
2936 # development snapshots of GCC prior to 3.0.
2937 case $host_os in
2938 aix4 | aix4.[[01]] | aix4.[[01]].*)
2939 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2940 echo ' yes '
2941 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
2942 :
2943 else
2944 can_build_shared=no
2945 fi
2946 ;;
2947 esac
2948 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2949 # soname into executable. Probably we can add versioning support to
2950 # collect2, so additional links can be useful in future.
2951 if test "$aix_use_runtimelinking" = yes; then
2952 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2953 # instead of lib<name>.a to let people know that these are not
2954 # typical AIX shared libraries.
2955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2956 else
2957 # We preserve .a as extension for shared libraries through AIX4.2
2958 # and later when we are not doing run time linking.
2959 library_names_spec='${libname}${release}.a $libname.a'
2960 soname_spec='${libname}${release}${shared_ext}$major'
2961 fi
2962 shlibpath_var=LIBPATH
2963 fi
2964 ;;
2965
2966amigaos*)
2967 case $host_cpu in
2968 powerpc)
2969 # Since July 2007 AmigaOS4 officially supports .so libraries.
2970 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2972 ;;
2973 m68k)
2974 library_names_spec='$libname.ixlibrary $libname.a'
2975 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2976 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
2977 ;;
2978 esac
2979 ;;
2980
2981beos*)
2982 library_names_spec='${libname}${shared_ext}'
2983 dynamic_linker="$host_os ld.so"
2984 shlibpath_var=LIBRARY_PATH
2985 ;;
2986
2987bsdi[[45]]*)
2988 version_type=linux
2989 need_version=no
2990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2991 soname_spec='${libname}${release}${shared_ext}$major'
2992 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2993 shlibpath_var=LD_LIBRARY_PATH
2994 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2995 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2996 # the default ld.so.conf also contains /usr/contrib/lib and
2997 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2998 # libtool to hard-code these into programs
2999 ;;
3000
3001cygwin* | mingw* | pw32* | cegcc*)
3002 version_type=windows
3003 shrext_cmds=".dll"
3004 need_version=no
3005 need_lib_prefix=no
3006
3007 case $GCC,$cc_basename in
3008 yes,*)
3009 # gcc
3010 library_names_spec='$libname.dll.a'
3011 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3012 postinstall_cmds='base_file=`basename \${file}`~
3013 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3014 dldir=$destdir/`dirname \$dlpath`~
3015 test -d \$dldir || mkdir -p \$dldir~
3016 $install_prog $dir/$dlname \$dldir/$dlname~
3017 chmod a+x \$dldir/$dlname~
3018 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
3019 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
3020 fi'
3021 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3022 dlpath=$dir/\$dldll~
3023 $RM \$dlpath'
3024 shlibpath_overrides_runpath=yes
3025
3026 case $host_os in
3027 cygwin*)
3028 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
3029 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3030m4_if([$1], [],[
3031 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
3032 ;;
3033 mingw* | cegcc*)
3034 # MinGW DLLs use traditional 'lib' prefix
3035 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3036 ;;
3037 pw32*)
3038 # pw32 DLLs use 'pw' prefix rather than 'lib'
3039 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3040 ;;
3041 esac
3042 dynamic_linker='Win32 ld.exe'
3043 ;;
3044
3045 *,cl*)
3046 # Native MSVC
3047 libname_spec='$name'
3048 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
3049 library_names_spec='${libname}.dll.lib'
3050
3051 case $build_os in
3052 mingw*)
3053 sys_lib_search_path_spec=
3054 lt_save_ifs=$IFS
3055 IFS=';'
3056 for lt_path in $LIB
3057 do
3058 IFS=$lt_save_ifs
3059 # Let DOS variable expansion print the short 8.3 style file name.
3060 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
3061 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
3062 done
3063 IFS=$lt_save_ifs
3064 # Convert to MSYS style.
3065 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
3066 ;;
3067 cygwin*)
3068 # Convert to unix form, then to dos form, then back to unix form
3069 # but this time dos style (no spaces!) so that the unix form looks
3070 # like /cygdrive/c/PROGRA~1:/cygdr...
3071 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
3072 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
3073 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3074 ;;
3075 *)
3076 sys_lib_search_path_spec="$LIB"
3077 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
3078 # It is most probably a Windows format PATH.
3079 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
3080 else
3081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
3082 fi
3083 # FIXME: find the short name or the path components, as spaces are
3084 # common. (e.g. "Program Files" -> "PROGRA~1")
3085 ;;
3086 esac
3087
3088 # DLL is installed to $(libdir)/../bin by postinstall_cmds
3089 postinstall_cmds='base_file=`basename \${file}`~
3090 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
3091 dldir=$destdir/`dirname \$dlpath`~
3092 test -d \$dldir || mkdir -p \$dldir~
3093 $install_prog $dir/$dlname \$dldir/$dlname'
3094 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
3095 dlpath=$dir/\$dldll~
3096 $RM \$dlpath'
3097 shlibpath_overrides_runpath=yes
3098 dynamic_linker='Win32 link.exe'
3099 ;;
3100
3101 *)
3102 # Assume MSVC wrapper
3103 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
3104 dynamic_linker='Win32 ld.exe'
3105 ;;
3106 esac
3107 # FIXME: first we should search . and the directory the executable is in
3108 shlibpath_var=PATH
3109 ;;
3110
3111darwin* | rhapsody*)
3112 dynamic_linker="$host_os dyld"
3113 version_type=darwin
3114 need_lib_prefix=no
3115 need_version=no
3116 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
3117 soname_spec='${libname}${release}${major}$shared_ext'
3118 shlibpath_overrides_runpath=yes
3119 shlibpath_var=DYLD_LIBRARY_PATH
3120 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
3121m4_if([$1], [],[
3122 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
3123 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
3124 ;;
3125
3126dgux*)
3127 version_type=linux
3128 need_lib_prefix=no
3129 need_version=no
3130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
3131 soname_spec='${libname}${release}${shared_ext}$major'
3132 shlibpath_var=LD_LIBRARY_PATH
3133 ;;
3134
3135freebsd1*)
3136 dynamic_linker=no
3137 ;;
3138
3139freebsd* | dragonfly*)
3140 # DragonFly does not have aout. When/if they implement a new
3141 # versioning mechanism, adjust this.
3142 if test -x /usr/bin/objformat; then
3143 objformat=`/usr/bin/objformat`
3144 else
3145 case $host_os in
3146 freebsd[[123]]*) objformat=aout ;;
3147 *) objformat=elf ;;
3148 esac
3149 fi
3150 version_type=freebsd-$objformat
3151 case $version_type in
3152 freebsd-elf*)
3153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3154 need_version=no
3155 need_lib_prefix=no
3156 ;;
3157 freebsd-*)
3158 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
3159 need_version=yes
3160 ;;
3161 esac
3162 shlibpath_var=LD_LIBRARY_PATH
3163 case $host_os in
3164 freebsd2*)
3165 shlibpath_overrides_runpath=yes
3166 ;;
3167 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
3168 shlibpath_overrides_runpath=yes
3169 hardcode_into_libs=yes
3170 ;;
3171 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
3172 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
3173 shlibpath_overrides_runpath=no
3174 hardcode_into_libs=yes
3175 ;;
3176 *) # from 4.6 on, and DragonFly
3177 shlibpath_overrides_runpath=yes
3178 hardcode_into_libs=yes
3179 ;;
3180 esac
3181 ;;
3182
3183gnu*)
3184 version_type=linux
3185 need_lib_prefix=no
3186 need_version=no
3187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3188 soname_spec='${libname}${release}${shared_ext}$major'
3189 shlibpath_var=LD_LIBRARY_PATH
3190 shlibpath_overrides_runpath=no
3191 hardcode_into_libs=yes
3192 ;;
3193
3194haiku*)
3195 version_type=linux
3196 need_lib_prefix=no
3197 need_version=no
3198 dynamic_linker="$host_os runtime_loader"
3199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
3200 soname_spec='${libname}${release}${shared_ext}$major'
3201 shlibpath_var=LIBRARY_PATH
3202 shlibpath_overrides_runpath=yes
3203 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
3204 hardcode_into_libs=yes
3205 ;;
3206
3207hpux9* | hpux10* | hpux11*)
3208 # Give a soname corresponding to the major version so that dld.sl refuses to
3209 # link against other versions.
3210 version_type=sunos
3211 need_lib_prefix=no
3212 need_version=no
3213 case $host_cpu in
3214 ia64*)
3215 shrext_cmds='.so'
3216 hardcode_into_libs=yes
3217 dynamic_linker="$host_os dld.so"
3218 shlibpath_var=LD_LIBRARY_PATH
3219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3221 soname_spec='${libname}${release}${shared_ext}$major'
3222 if test "X$HPUX_IA64_MODE" = X32; then
3223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
3224 else
3225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
3226 fi
3227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3228 ;;
3229 hppa*64*)
3230 shrext_cmds='.sl'
3231 hardcode_into_libs=yes
3232 dynamic_linker="$host_os dld.sl"
3233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
3234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
3235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3236 soname_spec='${libname}${release}${shared_ext}$major'
3237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
3238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
3239 ;;
3240 *)
3241 shrext_cmds='.sl'
3242 dynamic_linker="$host_os dld.sl"
3243 shlibpath_var=SHLIB_PATH
3244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3246 soname_spec='${libname}${release}${shared_ext}$major'
3247 ;;
3248 esac
3249 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
3250 postinstall_cmds='chmod 555 $lib'
3251 # or fails outright, so override atomically:
3252 install_override_mode=555
3253 ;;
3254
3255interix[[3-9]]*)
3256 version_type=linux
3257 need_lib_prefix=no
3258 need_version=no
3259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3260 soname_spec='${libname}${release}${shared_ext}$major'
3261 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
3262 shlibpath_var=LD_LIBRARY_PATH
3263 shlibpath_overrides_runpath=no
3264 hardcode_into_libs=yes
3265 ;;
3266
3267irix5* | irix6* | nonstopux*)
3268 case $host_os in
3269 nonstopux*) version_type=nonstopux ;;
3270 *)
3271 if test "$lt_cv_prog_gnu_ld" = yes; then
3272 version_type=linux
3273 else
3274 version_type=irix
3275 fi ;;
3276 esac
3277 need_lib_prefix=no
3278 need_version=no
3279 soname_spec='${libname}${release}${shared_ext}$major'
3280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
3281 case $host_os in
3282 irix5* | nonstopux*)
3283 libsuff= shlibsuff=
3284 ;;
3285 *)
3286 case $LD in # libtool.m4 will add one of these switches to LD
3287 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3288 libsuff= shlibsuff= libmagic=32-bit;;
3289 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3290 libsuff=32 shlibsuff=N32 libmagic=N32;;
3291 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3292 libsuff=64 shlibsuff=64 libmagic=64-bit;;
3293 *) libsuff= shlibsuff= libmagic=never-match;;
3294 esac
3295 ;;
3296 esac
3297 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3298 shlibpath_overrides_runpath=no
3299 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3300 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3301 hardcode_into_libs=yes
3302 ;;
3303
3304# No shared lib support for Linux oldld, aout, or coff.
3305linux*oldld* | linux*aout* | linux*coff*)
3306 dynamic_linker=no
3307 ;;
3308
3309# This must be Linux ELF.
3310linux* | k*bsd*-gnu | kopensolaris*-gnu)
3311 version_type=linux
3312 need_lib_prefix=no
3313 need_version=no
3314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3315 soname_spec='${libname}${release}${shared_ext}$major'
3316 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3317 shlibpath_var=LD_LIBRARY_PATH
3318 shlibpath_overrides_runpath=no
3319
3320 # Some binutils ld are patched to set DT_RUNPATH
3321 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
3322 [lt_cv_shlibpath_overrides_runpath=no
3323 save_LDFLAGS=$LDFLAGS
3324 save_libdir=$libdir
3325 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
3326 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
3327 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
3328 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
3329 [lt_cv_shlibpath_overrides_runpath=yes])])
3330 LDFLAGS=$save_LDFLAGS
3331 libdir=$save_libdir
3332 ])
3333 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
3334
3335 # This implies no fast_install, which is unacceptable.
3336 # Some rework will be needed to allow for fast_install
3337 # before this can be enabled.
3338 hardcode_into_libs=yes
3339
3340 # Append ld.so.conf contents to the search path
3341 if test -f /etc/ld.so.conf; then
3342 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;s/"//g;/^$/d' | tr '\n' ' '`
3343 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3344 fi
3345
3346 # We used to test for /lib/ld.so.1 and disable shared libraries on
3347 # powerpc, because MkLinux only supported shared libraries with the
3348 # GNU dynamic linker. Since this was broken with cross compilers,
3349 # most powerpc-linux boxes support dynamic linking these days and
3350 # people can always --disable-shared, the test was removed, and we
3351 # assume the GNU/Linux dynamic linker is in use.
3352 dynamic_linker='GNU/Linux ld.so'
3353 ;;
3354
3355netbsdelf*-gnu)
3356 version_type=linux
3357 need_lib_prefix=no
3358 need_version=no
3359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3360 soname_spec='${libname}${release}${shared_ext}$major'
3361 shlibpath_var=LD_LIBRARY_PATH
3362 shlibpath_overrides_runpath=no
3363 hardcode_into_libs=yes
3364 dynamic_linker='NetBSD ld.elf_so'
3365 ;;
3366
3367netbsd*)
3368 version_type=sunos
3369 need_lib_prefix=no
3370 need_version=no
3371 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
3372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3373 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3374 dynamic_linker='NetBSD (a.out) ld.so'
3375 else
3376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3377 soname_spec='${libname}${release}${shared_ext}$major'
3378 dynamic_linker='NetBSD ld.elf_so'
3379 fi
3380 shlibpath_var=LD_LIBRARY_PATH
3381 shlibpath_overrides_runpath=yes
3382 hardcode_into_libs=yes
3383 ;;
3384
3385newsos6)
3386 version_type=linux
3387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3388 shlibpath_var=LD_LIBRARY_PATH
3389 shlibpath_overrides_runpath=yes
3390 ;;
3391
3392*nto* | *qnx*)
3393 version_type=qnx
3394 need_lib_prefix=no
3395 need_version=no
3396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3397 soname_spec='${libname}${release}${shared_ext}$major'
3398 shlibpath_var=LD_LIBRARY_PATH
3399 shlibpath_overrides_runpath=no
3400 hardcode_into_libs=yes
3401 dynamic_linker='ldqnx.so'
3402 ;;
3403
3404openbsd*)
3405 version_type=sunos
3406 sys_lib_dlsearch_path_spec="/usr/lib"
3407 need_lib_prefix=no
3408 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3409 case $host_os in
3410 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3411 *) need_version=no ;;
3412 esac
3413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3414 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3415 shlibpath_var=LD_LIBRARY_PATH
3416 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3417 case $host_os in
3418 openbsd2.[[89]] | openbsd2.[[89]].*)
3419 shlibpath_overrides_runpath=no
3420 ;;
3421 *)
3422 shlibpath_overrides_runpath=yes
3423 ;;
3424 esac
3425 else
3426 shlibpath_overrides_runpath=yes
3427 fi
3428 ;;
3429
3430os2*)
3431 libname_spec='$name'
3432 shrext_cmds=".dll"
3433 need_lib_prefix=no
3434 library_names_spec='$libname${shared_ext} $libname.a'
3435 dynamic_linker='OS/2 ld.exe'
3436 shlibpath_var=LIBPATH
3437 ;;
3438
3439osf3* | osf4* | osf5*)
3440 version_type=osf
3441 need_lib_prefix=no
3442 need_version=no
3443 soname_spec='${libname}${release}${shared_ext}$major'
3444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3445 shlibpath_var=LD_LIBRARY_PATH
3446 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3447 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3448 ;;
3449
3450rdos*)
3451 dynamic_linker=no
3452 ;;
3453
3454solaris*)
3455 version_type=linux
3456 need_lib_prefix=no
3457 need_version=no
3458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3459 soname_spec='${libname}${release}${shared_ext}$major'
3460 shlibpath_var=LD_LIBRARY_PATH
3461 shlibpath_overrides_runpath=yes
3462 hardcode_into_libs=yes
3463 # ldd complains unless libraries are executable
3464 postinstall_cmds='chmod +x $lib'
3465 ;;
3466
3467sunos4*)
3468 version_type=sunos
3469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3471 shlibpath_var=LD_LIBRARY_PATH
3472 shlibpath_overrides_runpath=yes
3473 if test "$with_gnu_ld" = yes; then
3474 need_lib_prefix=no
3475 fi
3476 need_version=yes
3477 ;;
3478
3479sysv4 | sysv4.3*)
3480 version_type=linux
3481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3482 soname_spec='${libname}${release}${shared_ext}$major'
3483 shlibpath_var=LD_LIBRARY_PATH
3484 case $host_vendor in
3485 sni)
3486 shlibpath_overrides_runpath=no
3487 need_lib_prefix=no
3488 runpath_var=LD_RUN_PATH
3489 ;;
3490 siemens)
3491 need_lib_prefix=no
3492 ;;
3493 motorola)
3494 need_lib_prefix=no
3495 need_version=no
3496 shlibpath_overrides_runpath=no
3497 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3498 ;;
3499 esac
3500 ;;
3501
3502sysv4*MP*)
3503 if test -d /usr/nec ;then
3504 version_type=linux
3505 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3506 soname_spec='$libname${shared_ext}.$major'
3507 shlibpath_var=LD_LIBRARY_PATH
3508 fi
3509 ;;
3510
3511sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3512 version_type=freebsd-elf
3513 need_lib_prefix=no
3514 need_version=no
3515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3516 soname_spec='${libname}${release}${shared_ext}$major'
3517 shlibpath_var=LD_LIBRARY_PATH
3518 shlibpath_overrides_runpath=yes
3519 hardcode_into_libs=yes
3520 if test "$with_gnu_ld" = yes; then
3521 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3522 else
3523 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3524 case $host_os in
3525 sco3.2v5*)
3526 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3527 ;;
3528 esac
3529 fi
3530 sys_lib_dlsearch_path_spec='/usr/lib'
3531 ;;
3532
3533tpf*)
3534 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3535 version_type=linux
3536 need_lib_prefix=no
3537 need_version=no
3538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3539 shlibpath_var=LD_LIBRARY_PATH
3540 shlibpath_overrides_runpath=no
3541 hardcode_into_libs=yes
3542 ;;
3543
3544uts4*)
3545 version_type=linux
3546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3547 soname_spec='${libname}${release}${shared_ext}$major'
3548 shlibpath_var=LD_LIBRARY_PATH
3549 ;;
3550
3551*)
3552 dynamic_linker=no
3553 ;;
3554esac
3555AC_MSG_RESULT([$dynamic_linker])
3556test "$dynamic_linker" = no && can_build_shared=no
3557
3558variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3559if test "$GCC" = yes; then
3560 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3561fi
3562
3563if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
3564 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
3565fi
3566if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
3567 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
3568fi
3569
3570_LT_DECL([], [variables_saved_for_relink], [1],
3571 [Variables whose values should be saved in libtool wrapper scripts and
3572 restored at link time])
3573_LT_DECL([], [need_lib_prefix], [0],
3574 [Do we need the "lib" prefix for modules?])
3575_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3576_LT_DECL([], [version_type], [0], [Library versioning type])
3577_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3578_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3579_LT_DECL([], [shlibpath_overrides_runpath], [0],
3580 [Is shlibpath searched before the hard-coded library search path?])
3581_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3582_LT_DECL([], [library_names_spec], [1],
3583 [[List of archive names. First name is the real one, the rest are links.
3584 The last name is the one that the linker finds with -lNAME]])
3585_LT_DECL([], [soname_spec], [1],
3586 [[The coded name of the library, if different from the real name]])
3587_LT_DECL([], [install_override_mode], [1],
3588 [Permission mode override for installation of shared libraries])
3589_LT_DECL([], [postinstall_cmds], [2],
3590 [Command to use after installation of a shared archive])
3591_LT_DECL([], [postuninstall_cmds], [2],
3592 [Command to use after uninstallation of a shared archive])
3593_LT_DECL([], [finish_cmds], [2],
3594 [Commands used to finish a libtool library installation in a directory])
3595_LT_DECL([], [finish_eval], [1],
3596 [[As "finish_cmds", except a single script fragment to be evaled but
3597 not shown]])
3598_LT_DECL([], [hardcode_into_libs], [0],
3599 [Whether we should hardcode library paths into libraries])
3600_LT_DECL([], [sys_lib_search_path_spec], [2],
3601 [Compile-time system search path for libraries])
3602_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
3603 [Run-time system search path for libraries])
3604])# _LT_SYS_DYNAMIC_LINKER
3605
3606
3607# _LT_PATH_TOOL_PREFIX(TOOL)
3608# --------------------------
3609# find a file program which can recognize shared library
3610AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3611[m4_require([_LT_DECL_EGREP])dnl
3612AC_MSG_CHECKING([for $1])
3613AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3614[case $MAGIC_CMD in
3615[[\\/*] | ?:[\\/]*])
3616 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3617 ;;
3618*)
3619 lt_save_MAGIC_CMD="$MAGIC_CMD"
3620 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3621dnl $ac_dummy forces splitting on constant user-supplied paths.
3622dnl POSIX.2 word splitting is done only on the output of word expansions,
3623dnl not every word. This closes a longstanding sh security hole.
3624 ac_dummy="m4_if([$2], , $PATH, [$2])"
3625 for ac_dir in $ac_dummy; do
3626 IFS="$lt_save_ifs"
3627 test -z "$ac_dir" && ac_dir=.
3628 if test -f $ac_dir/$1; then
3629 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3630 if test -n "$file_magic_test_file"; then
3631 case $deplibs_check_method in
3632 "file_magic "*)
3633 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3634 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3635 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3636 $EGREP "$file_magic_regex" > /dev/null; then
3637 :
3638 else
3639 cat <<_LT_EOF 1>&2
3640
3641*** Warning: the command libtool uses to detect shared libraries,
3642*** $file_magic_cmd, produces output that libtool cannot recognize.
3643*** The result is that libtool may fail to recognize shared libraries
3644*** as such. This will affect the creation of libtool libraries that
3645*** depend on shared libraries, but programs linked with such libtool
3646*** libraries will work regardless of this problem. Nevertheless, you
3647*** may want to report the problem to your system manager and/or to
3648*** bug-libtool@gnu.org
3649
3650_LT_EOF
3651 fi ;;
3652 esac
3653 fi
3654 break
3655 fi
3656 done
3657 IFS="$lt_save_ifs"
3658 MAGIC_CMD="$lt_save_MAGIC_CMD"
3659 ;;
3660esac])
3661MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3662if test -n "$MAGIC_CMD"; then
3663 AC_MSG_RESULT($MAGIC_CMD)
3664else
3665 AC_MSG_RESULT(no)
3666fi
3667_LT_DECL([], [MAGIC_CMD], [0],
3668 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3669])# _LT_PATH_TOOL_PREFIX
3670
3671# Old name:
3672AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3673dnl aclocal-1.4 backwards compatibility:
3674dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3675
3676
3677# _LT_PATH_MAGIC
3678# --------------
3679# find a file program which can recognize a shared library
3680m4_defun([_LT_PATH_MAGIC],
3681[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3682if test -z "$lt_cv_path_MAGIC_CMD"; then
3683 if test -n "$ac_tool_prefix"; then
3684 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3685 else
3686 MAGIC_CMD=:
3687 fi
3688fi
3689])# _LT_PATH_MAGIC
3690
3691
3692# LT_PATH_LD
3693# ----------
3694# find the pathname to the GNU or non-GNU linker
3695AC_DEFUN([LT_PATH_LD],
3696[AC_REQUIRE([AC_PROG_CC])dnl
3697AC_REQUIRE([AC_CANONICAL_HOST])dnl
3698AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3699m4_require([_LT_DECL_SED])dnl
3700m4_require([_LT_DECL_EGREP])dnl
3701m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3702
3703AC_ARG_WITH([gnu-ld],
3704 [AS_HELP_STRING([--with-gnu-ld],
3705 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3706 [test "$withval" = no || with_gnu_ld=yes],
3707 [with_gnu_ld=no])dnl
3708
3709ac_prog=ld
3710if test "$GCC" = yes; then
3711 # Check if gcc -print-prog-name=ld gives a path.
3712 AC_MSG_CHECKING([for ld used by $CC])
3713 case $host in
3714 *-*-mingw*)
3715 # gcc leaves a trailing carriage return which upsets mingw
3716 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3717 *)
3718 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3719 esac
3720 case $ac_prog in
3721 # Accept absolute paths.
3722 [[\\/]]* | ?:[[\\/]]*)
3723 re_direlt='/[[^/]][[^/]]*/\.\./'
3724 # Canonicalize the pathname of ld
3725 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3726 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3727 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3728 done
3729 test -z "$LD" && LD="$ac_prog"
3730 ;;
3731 "")
3732 # If it fails, then pretend we aren't using GCC.
3733 ac_prog=ld
3734 ;;
3735 *)
3736 # If it is relative, then search for the first ld in PATH.
3737 with_gnu_ld=unknown
3738 ;;
3739 esac
3740elif test "$with_gnu_ld" = yes; then
3741 AC_MSG_CHECKING([for GNU ld])
3742else
3743 AC_MSG_CHECKING([for non-GNU ld])
3744fi
3745AC_CACHE_VAL(lt_cv_path_LD,
3746[if test -z "$LD"; then
3747 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3748 for ac_dir in $PATH; do
3749 IFS="$lt_save_ifs"
3750 test -z "$ac_dir" && ac_dir=.
3751 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3752 lt_cv_path_LD="$ac_dir/$ac_prog"
3753 # Check to see if the program is GNU ld. I'd rather use --version,
3754 # but apparently some variants of GNU ld only accept -v.
3755 # Break only if it was the GNU/non-GNU ld that we prefer.
3756 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3757 *GNU* | *'with BFD'*)
3758 test "$with_gnu_ld" != no && break
3759 ;;
3760 *)
3761 test "$with_gnu_ld" != yes && break
3762 ;;
3763 esac
3764 fi
3765 done
3766 IFS="$lt_save_ifs"
3767else
3768 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3769fi])
3770LD="$lt_cv_path_LD"
3771if test -n "$LD"; then
3772 AC_MSG_RESULT($LD)
3773else
3774 AC_MSG_RESULT(no)
3775fi
3776test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3777_LT_PATH_LD_GNU
3778AC_SUBST([LD])
3779
3780_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3781])# LT_PATH_LD
3782
3783# Old names:
3784AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3785AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3786dnl aclocal-1.4 backwards compatibility:
3787dnl AC_DEFUN([AM_PROG_LD], [])
3788dnl AC_DEFUN([AC_PROG_LD], [])
3789
3790
3791# _LT_PATH_LD_GNU
3792#- --------------
3793m4_defun([_LT_PATH_LD_GNU],
3794[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3795[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3796case `$LD -v 2>&1 </dev/null` in
3797*GNU* | *'with BFD'*)
3798 lt_cv_prog_gnu_ld=yes
3799 ;;
3800*)
3801 lt_cv_prog_gnu_ld=no
3802 ;;
3803esac])
3804with_gnu_ld=$lt_cv_prog_gnu_ld
3805])# _LT_PATH_LD_GNU
3806
3807
3808# _LT_CMD_RELOAD
3809# --------------
3810# find reload flag for linker
3811# -- PORTME Some linkers may need a different reload flag.
3812m4_defun([_LT_CMD_RELOAD],
3813[AC_CACHE_CHECK([for $LD option to reload object files],
3814 lt_cv_ld_reload_flag,
3815 [lt_cv_ld_reload_flag='-r'])
3816reload_flag=$lt_cv_ld_reload_flag
3817case $reload_flag in
3818"" | " "*) ;;
3819*) reload_flag=" $reload_flag" ;;
3820esac
3821reload_cmds='$LD$reload_flag -o $output$reload_objs'
3822case $host_os in
3823 cygwin* | mingw* | pw32* | cegcc*)
3824 if test "$GCC" != yes; then
3825 reload_cmds=false
3826 fi
3827 ;;
3828 darwin*)
3829 if test "$GCC" = yes; then
3830 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3831 else
3832 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3833 fi
3834 ;;
3835esac
3836_LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3837_LT_TAGDECL([], [reload_cmds], [2])dnl
3838])# _LT_CMD_RELOAD
3839
3840
3841# _LT_CHECK_MAGIC_METHOD
3842# ----------------------
3843# how to check for library dependencies
3844# -- PORTME fill in with the dynamic library characteristics
3845m4_defun([_LT_CHECK_MAGIC_METHOD],
3846[m4_require([_LT_DECL_EGREP])
3847m4_require([_LT_DECL_OBJDUMP])
3848AC_CACHE_CHECK([how to recognize dependent libraries],
3849lt_cv_deplibs_check_method,
3850[lt_cv_file_magic_cmd='$MAGIC_CMD'
3851lt_cv_file_magic_test_file=
3852lt_cv_deplibs_check_method='unknown'
3853# Need to set the preceding variable on all platforms that support
3854# interlibrary dependencies.
3855# 'none' -- dependencies not supported.
3856# `unknown' -- same as none, but documents that we really don't know.
3857# 'pass_all' -- all dependencies passed with no checks.
3858# 'test_compile' -- check by making test program.
3859# 'file_magic [[regex]]' -- check by looking for files in library path
3860# which responds to the $file_magic_cmd with a given extended regex.
3861# If you have `file' or equivalent on your system and you're not sure
3862# whether `pass_all' will *always* work, you probably want this one.
3863
3864case $host_os in
3865aix[[4-9]]*)
3866 lt_cv_deplibs_check_method=pass_all
3867 ;;
3868
3869beos*)
3870 lt_cv_deplibs_check_method=pass_all
3871 ;;
3872
3873bsdi[[45]]*)
3874 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3875 lt_cv_file_magic_cmd='/usr/bin/file -L'
3876 lt_cv_file_magic_test_file=/shlib/libc.so
3877 ;;
3878
3879cygwin*)
3880 # func_win32_libid is a shell function defined in ltmain.sh
3881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3882 lt_cv_file_magic_cmd='func_win32_libid'
3883 ;;
3884
3885mingw* | pw32*)
3886 # Base MSYS/MinGW do not provide the 'file' command needed by
3887 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3888 # unless we find 'file', for example because we are cross-compiling.
3889 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
3890 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
3891 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3892 lt_cv_file_magic_cmd='func_win32_libid'
3893 else
3894 # Keep this pattern in sync with the one in func_win32_libid.
3895 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3896 lt_cv_file_magic_cmd='$OBJDUMP -f'
3897 fi
3898 ;;
3899
3900cegcc*)
3901 # use the weaker test based on 'objdump'. See mingw*.
3902 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3903 lt_cv_file_magic_cmd='$OBJDUMP -f'
3904 ;;
3905
3906darwin* | rhapsody*)
3907 lt_cv_deplibs_check_method=pass_all
3908 ;;
3909
3910freebsd* | dragonfly*)
3911 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3912 case $host_cpu in
3913 i*86 )
3914 # Not sure whether the presence of OpenBSD here was a mistake.
3915 # Let's accept both of them until this is cleared up.
3916 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3917 lt_cv_file_magic_cmd=/usr/bin/file
3918 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3919 ;;
3920 esac
3921 else
3922 lt_cv_deplibs_check_method=pass_all
3923 fi
3924 ;;
3925
3926gnu*)
3927 lt_cv_deplibs_check_method=pass_all
3928 ;;
3929
3930haiku*)
3931 lt_cv_deplibs_check_method=pass_all
3932 ;;
3933
3934hpux10.20* | hpux11*)
3935 lt_cv_file_magic_cmd=/usr/bin/file
3936 case $host_cpu in
3937 ia64*)
3938 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3939 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3940 ;;
3941 hppa*64*)
3942 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3943 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3944 ;;
3945 *)
3946 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3948 ;;
3949 esac
3950 ;;
3951
3952interix[[3-9]]*)
3953 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3954 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3955 ;;
3956
3957irix5* | irix6* | nonstopux*)
3958 case $LD in
3959 *-32|*"-32 ") libmagic=32-bit;;
3960 *-n32|*"-n32 ") libmagic=N32;;
3961 *-64|*"-64 ") libmagic=64-bit;;
3962 *) libmagic=never-match;;
3963 esac
3964 lt_cv_deplibs_check_method=pass_all
3965 ;;
3966
3967# This must be Linux ELF.
3968linux* | k*bsd*-gnu | kopensolaris*-gnu)
3969 lt_cv_deplibs_check_method=pass_all
3970 ;;
3971
3972netbsd* | netbsdelf*-gnu)
3973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3974 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3975 else
3976 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3977 fi
3978 ;;
3979
3980newos6*)
3981 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3982 lt_cv_file_magic_cmd=/usr/bin/file
3983 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3984 ;;
3985
3986*nto* | *qnx*)
3987 lt_cv_deplibs_check_method=pass_all
3988 ;;
3989
3990openbsd*)
3991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3992 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3993 else
3994 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3995 fi
3996 ;;
3997
3998osf3* | osf4* | osf5*)
3999 lt_cv_deplibs_check_method=pass_all
4000 ;;
4001
4002rdos*)
4003 lt_cv_deplibs_check_method=pass_all
4004 ;;
4005
4006solaris*)
4007 lt_cv_deplibs_check_method=pass_all
4008 ;;
4009
4010sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4011 lt_cv_deplibs_check_method=pass_all
4012 ;;
4013
4014sysv4 | sysv4.3*)
4015 case $host_vendor in
4016 motorola)
4017 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]]'
4018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4019 ;;
4020 ncr)
4021 lt_cv_deplibs_check_method=pass_all
4022 ;;
4023 sequent)
4024 lt_cv_file_magic_cmd='/bin/file'
4025 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
4026 ;;
4027 sni)
4028 lt_cv_file_magic_cmd='/bin/file'
4029 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
4030 lt_cv_file_magic_test_file=/lib/libc.so
4031 ;;
4032 siemens)
4033 lt_cv_deplibs_check_method=pass_all
4034 ;;
4035 pc)
4036 lt_cv_deplibs_check_method=pass_all
4037 ;;
4038 esac
4039 ;;
4040
4041tpf*)
4042 lt_cv_deplibs_check_method=pass_all
4043 ;;
4044esac
4045])
4046
4047file_magic_glob=
4048want_nocaseglob=no
4049if test "$build" = "$host"; then
4050 case $host_os in
4051 mingw* | pw32*)
4052 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
4053 want_nocaseglob=yes
4054 else
4055 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
4056 fi
4057 ;;
4058 esac
4059fi
4060
4061file_magic_cmd=$lt_cv_file_magic_cmd
4062deplibs_check_method=$lt_cv_deplibs_check_method
4063test -z "$deplibs_check_method" && deplibs_check_method=unknown
4064
4065_LT_DECL([], [deplibs_check_method], [1],
4066 [Method to check whether dependent libraries are shared objects])
4067_LT_DECL([], [file_magic_cmd], [1],
4068 [Command to use when deplibs_check_method = "file_magic"])
4069_LT_DECL([], [file_magic_glob], [1],
4070 [How to find potential files when deplibs_check_method = "file_magic"])
4071_LT_DECL([], [want_nocaseglob], [1],
4072 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
4073])# _LT_CHECK_MAGIC_METHOD
4074
4075
4076# LT_PATH_NM
4077# ----------
4078# find the pathname to a BSD- or MS-compatible name lister
4079AC_DEFUN([LT_PATH_NM],
4080[AC_REQUIRE([AC_PROG_CC])dnl
4081AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
4082[if test -n "$NM"; then
4083 # Let the user override the test.
4084 lt_cv_path_NM="$NM"
4085else
4086 lt_nm_to_check="${ac_tool_prefix}nm"
4087 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4088 lt_nm_to_check="$lt_nm_to_check nm"
4089 fi
4090 for lt_tmp_nm in $lt_nm_to_check; do
4091 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4092 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4093 IFS="$lt_save_ifs"
4094 test -z "$ac_dir" && ac_dir=.
4095 tmp_nm="$ac_dir/$lt_tmp_nm"
4096 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4097 # Check to see if the nm accepts a BSD-compat flag.
4098 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4099 # nm: unknown option "B" ignored
4100 # Tru64's nm complains that /dev/null is an invalid object file
4101 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4102 */dev/null* | *'Invalid file or object type'*)
4103 lt_cv_path_NM="$tmp_nm -B"
4104 break
4105 ;;
4106 *)
4107 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4108 */dev/null*)
4109 lt_cv_path_NM="$tmp_nm -p"
4110 break
4111 ;;
4112 *)
4113 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4114 continue # so that we can try to find one that supports BSD flags
4115 ;;
4116 esac
4117 ;;
4118 esac
4119 fi
4120 done
4121 IFS="$lt_save_ifs"
4122 done
4123 : ${lt_cv_path_NM=no}
4124fi])
4125if test "$lt_cv_path_NM" != "no"; then
4126 NM="$lt_cv_path_NM"
4127else
4128 # Didn't find any BSD compatible name lister, look for dumpbin.
4129 if test -n "$DUMPBIN"; then :
4130 # Let the user override the test.
4131 else
4132 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
4133 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4134 *COFF*)
4135 DUMPBIN="$DUMPBIN -symbols"
4136 ;;
4137 *)
4138 DUMPBIN=:
4139 ;;
4140 esac
4141 fi
4142 AC_SUBST([DUMPBIN])
4143 if test "$DUMPBIN" != ":"; then
4144 NM="$DUMPBIN"
4145 fi
4146fi
4147test -z "$NM" && NM=nm
4148AC_SUBST([NM])
4149_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
4150
4151AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
4152 [lt_cv_nm_interface="BSD nm"
4153 echo "int some_variable = 0;" > conftest.$ac_ext
4154 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
4155 (eval "$ac_compile" 2>conftest.err)
4156 cat conftest.err >&AS_MESSAGE_LOG_FD
4157 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
4158 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4159 cat conftest.err >&AS_MESSAGE_LOG_FD
4160 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
4161 cat conftest.out >&AS_MESSAGE_LOG_FD
4162 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4163 lt_cv_nm_interface="MS dumpbin"
4164 fi
4165 rm -f conftest*])
4166])# LT_PATH_NM
4167
4168# Old names:
4169AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
4170AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
4171dnl aclocal-1.4 backwards compatibility:
4172dnl AC_DEFUN([AM_PROG_NM], [])
4173dnl AC_DEFUN([AC_PROG_NM], [])
4174
4175# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4176# --------------------------------
4177# how to determine the name of the shared library
4178# associated with a specific link library.
4179# -- PORTME fill in with the dynamic library characteristics
4180m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
4181[m4_require([_LT_DECL_EGREP])
4182m4_require([_LT_DECL_OBJDUMP])
4183m4_require([_LT_DECL_DLLTOOL])
4184AC_CACHE_CHECK([how to associate runtime and link libraries],
4185lt_cv_sharedlib_from_linklib_cmd,
4186[lt_cv_sharedlib_from_linklib_cmd='unknown'
4187
4188case $host_os in
4189cygwin* | mingw* | pw32* | cegcc*)
4190 # two different shell functions defined in ltmain.sh
4191 # decide which to use based on capabilities of $DLLTOOL
4192 case `$DLLTOOL --help 2>&1` in
4193 *--identify-strict*)
4194 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
4195 ;;
4196 *)
4197 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
4198 ;;
4199 esac
4200 ;;
4201*)
4202 # fallback: assume linklib IS sharedlib
4203 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
4204 ;;
4205esac
4206])
4207sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
4208test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
4209
4210_LT_DECL([], [sharedlib_from_linklib_cmd], [1],
4211 [Command to associate shared and link libraries])
4212])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
4213
4214
4215# _LT_PATH_MANIFEST_TOOL
4216# ----------------------
4217# locate the manifest tool
4218m4_defun([_LT_PATH_MANIFEST_TOOL],
4219[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
4220test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
4221AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
4222 [lt_cv_path_mainfest_tool=no
4223 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
4224 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
4225 cat conftest.err >&AS_MESSAGE_LOG_FD
4226 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
4227 lt_cv_path_mainfest_tool=yes
4228 fi
4229 rm -f conftest*])
4230if test "x$lt_cv_path_mainfest_tool" != xyes; then
4231 MANIFEST_TOOL=:
4232fi
4233_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
4234])# _LT_PATH_MANIFEST_TOOL
4235
4236
4237# LT_LIB_M
4238# --------
4239# check for math library
4240AC_DEFUN([LT_LIB_M],
4241[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4242LIBM=
4243case $host in
4244*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
4245 # These system don't have libm, or don't need it
4246 ;;
4247*-ncr-sysv4.3*)
4248 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
4249 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
4250 ;;
4251*)
4252 AC_CHECK_LIB(m, cos, LIBM="-lm")
4253 ;;
4254esac
4255AC_SUBST([LIBM])
4256])# LT_LIB_M
4257
4258# Old name:
4259AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
4260dnl aclocal-1.4 backwards compatibility:
4261dnl AC_DEFUN([AC_CHECK_LIBM], [])
4262
4263
4264# _LT_COMPILER_NO_RTTI([TAGNAME])
4265# -------------------------------
4266m4_defun([_LT_COMPILER_NO_RTTI],
4267[m4_require([_LT_TAG_COMPILER])dnl
4268
4269_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4270
4271if test "$GCC" = yes; then
4272 case $cc_basename in
4273 nvcc*)
4274 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
4275 *)
4276 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
4277 esac
4278
4279 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4280 lt_cv_prog_compiler_rtti_exceptions,
4281 [-fno-rtti -fno-exceptions], [],
4282 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4283fi
4284_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
4285 [Compiler flag to turn off builtin functions])
4286])# _LT_COMPILER_NO_RTTI
4287
4288
4289# _LT_CMD_GLOBAL_SYMBOLS
4290# ----------------------
4291m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
4292[AC_REQUIRE([AC_CANONICAL_HOST])dnl
4293AC_REQUIRE([AC_PROG_CC])dnl
4294AC_REQUIRE([AC_PROG_AWK])dnl
4295AC_REQUIRE([LT_PATH_NM])dnl
4296AC_REQUIRE([LT_PATH_LD])dnl
4297m4_require([_LT_DECL_SED])dnl
4298m4_require([_LT_DECL_EGREP])dnl
4299m4_require([_LT_TAG_COMPILER])dnl
4300
4301# Check for command to grab the raw symbol name followed by C symbol from nm.
4302AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4303AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4304[
4305# These are sane defaults that work on at least a few old systems.
4306# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4307
4308# Character class describing NM global symbol codes.
4309symcode='[[BCDEGRST]]'
4310
4311# Regexp to match symbols that can be accessed directly from C.
4312sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4313
4314# Define system-specific variables.
4315case $host_os in
4316aix*)
4317 symcode='[[BCDT]]'
4318 ;;
4319cygwin* | mingw* | pw32* | cegcc*)
4320 symcode='[[ABCDGISTW]]'
4321 ;;
4322hpux*)
4323 if test "$host_cpu" = ia64; then
4324 symcode='[[ABCDEGRST]]'
4325 fi
4326 ;;
4327irix* | nonstopux*)
4328 symcode='[[BCDEGRST]]'
4329 ;;
4330osf*)
4331 symcode='[[BCDEGQRST]]'
4332 ;;
4333solaris*)
4334 symcode='[[BDRT]]'
4335 ;;
4336sco3.2v5*)
4337 symcode='[[DT]]'
4338 ;;
4339sysv4.2uw2*)
4340 symcode='[[DT]]'
4341 ;;
4342sysv5* | sco5v6* | unixware* | OpenUNIX*)
4343 symcode='[[ABDT]]'
4344 ;;
4345sysv4)
4346 symcode='[[DFNSTU]]'
4347 ;;
4348esac
4349
4350# If we're using GNU nm, then use its standard symbol codes.
4351case `$NM -V 2>&1` in
4352*GNU* | *'with BFD'*)
4353 symcode='[[ABCDGIRSTW]]' ;;
4354esac
4355
4356# Transform an extracted symbol line into a proper C declaration.
4357# Some systems (esp. on ia64) link data and code symbols differently,
4358# so use this general approach.
4359lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4360
4361# Transform an extracted symbol line into symbol name and symbol address
4362lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
4363lt_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'"
4364
4365# Handle CRLF in mingw tool chain
4366opt_cr=
4367case $build_os in
4368mingw*)
4369 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4370 ;;
4371esac
4372
4373# Try without a prefix underscore, then with it.
4374for ac_symprfx in "" "_"; do
4375
4376 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4377 symxfrm="\\1 $ac_symprfx\\2 \\2"
4378
4379 # Write the raw and C identifiers.
4380 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4381 # Fake it for dumpbin and say T for any non-static function
4382 # and D for any global variable.
4383 # Also find C++ and __fastcall symbols from MSVC++,
4384 # which start with @ or ?.
4385 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4386" {last_section=section; section=\$ 3};"\
4387" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4388" \$ 0!~/External *\|/{next};"\
4389" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4390" {if(hide[section]) next};"\
4391" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
4392" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
4393" s[1]~/^[@?]/{print s[1], s[1]; next};"\
4394" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
4395" ' prfx=^$ac_symprfx]"
4396 else
4397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4398 fi
4399 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4400
4401 # Check to see that the pipe works correctly.
4402 pipe_works=no
4403
4404 rm -f conftest*
4405 cat > conftest.$ac_ext <<_LT_EOF
4406#ifdef __cplusplus
4407extern "C" {
4408#endif
4409char nm_test_var;
4410void nm_test_func(void);
4411void nm_test_func(void){}
4412#ifdef __cplusplus
4413}
4414#endif
4415int main(){nm_test_var='a';nm_test_func();return(0);}
4416_LT_EOF
4417
4418 if AC_TRY_EVAL(ac_compile); then
4419 # Now try to grab the symbols.
4420 nlist=conftest.nm
4421 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4422 # Try sorting and uniquifying the output.
4423 if sort "$nlist" | uniq > "$nlist"T; then
4424 mv -f "$nlist"T "$nlist"
4425 else
4426 rm -f "$nlist"T
4427 fi
4428
4429 # Make sure that we snagged all the symbols we need.
4430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4432 cat <<_LT_EOF > conftest.$ac_ext
4433/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4434#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
4435/* DATA imports from DLLs on WIN32 con't be const, because runtime
4436 relocations are performed -- see ld's documentation on pseudo-relocs. */
4437# define LT@&t@_DLSYM_CONST
4438#elif defined(__osf__)
4439/* This system does not cope well with relocations in const data. */
4440# define LT@&t@_DLSYM_CONST
4441#else
4442# define LT@&t@_DLSYM_CONST const
4443#endif
4444
4445#ifdef __cplusplus
4446extern "C" {
4447#endif
4448
4449_LT_EOF
4450 # Now generate the symbol file.
4451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4452
4453 cat <<_LT_EOF >> conftest.$ac_ext
4454
4455/* The mapping between symbol names and symbols. */
4456LT@&t@_DLSYM_CONST struct {
4457 const char *name;
4458 void *address;
4459}
4460lt__PROGRAM__LTX_preloaded_symbols[[]] =
4461{
4462 { "@PROGRAM@", (void *) 0 },
4463_LT_EOF
4464 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4465 cat <<\_LT_EOF >> conftest.$ac_ext
4466 {0, (void *) 0}
4467};
4468
4469/* This works around a problem in FreeBSD linker */
4470#ifdef FREEBSD_WORKAROUND
4471static const void *lt_preloaded_setup() {
4472 return lt__PROGRAM__LTX_preloaded_symbols;
4473}
4474#endif
4475
4476#ifdef __cplusplus
4477}
4478#endif
4479_LT_EOF
4480 # Now try linking the two files.
4481 mv conftest.$ac_objext conftstm.$ac_objext
4482 lt_globsym_save_LIBS=$LIBS
4483 lt_globsym_save_CFLAGS=$CFLAGS
4484 LIBS="conftstm.$ac_objext"
4485 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4486 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4487 pipe_works=yes
4488 fi
4489 LIBS=$lt_globsym_save_LIBS
4490 CFLAGS=$lt_globsym_save_CFLAGS
4491 else
4492 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4493 fi
4494 else
4495 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4496 fi
4497 else
4498 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4499 fi
4500 else
4501 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4502 cat conftest.$ac_ext >&5
4503 fi
4504 rm -rf conftest* conftst*
4505
4506 # Do not use the global_symbol_pipe unless it works.
4507 if test "$pipe_works" = yes; then
4508 break
4509 else
4510 lt_cv_sys_global_symbol_pipe=
4511 fi
4512done
4513])
4514if test -z "$lt_cv_sys_global_symbol_pipe"; then
4515 lt_cv_sys_global_symbol_to_cdecl=
4516fi
4517if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4518 AC_MSG_RESULT(failed)
4519else
4520 AC_MSG_RESULT(ok)
4521fi
4522
4523# Response file support.
4524if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4525 nm_file_list_spec='@'
4526elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4527 nm_file_list_spec='@'
4528fi
4529
4530_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4531 [Take the output of nm and produce a listing of raw symbols and C names])
4532_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4533 [Transform the output of nm in a proper C declaration])
4534_LT_DECL([global_symbol_to_c_name_address],
4535 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4536 [Transform the output of nm in a C name address pair])
4537_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4538 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4539 [Transform the output of nm in a C name address pair when lib prefix is needed])
4540_LT_DECL([], [nm_file_list_spec], [1],
4541 [Specify filename containing input files for $NM])
4542]) # _LT_CMD_GLOBAL_SYMBOLS
4543
4544
4545# _LT_COMPILER_PIC([TAGNAME])
4546# ---------------------------
4547m4_defun([_LT_COMPILER_PIC],
4548[m4_require([_LT_TAG_COMPILER])dnl
4549_LT_TAGVAR(lt_prog_compiler_wl, $1)=
4550_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4551_LT_TAGVAR(lt_prog_compiler_static, $1)=
4552
4553m4_if([$1], [CXX], [
4554 # C++ specific cases for pic, static, wl, etc.
4555 if test "$GXX" = yes; then
4556 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4557 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4558
4559 case $host_os in
4560 aix*)
4561 # All AIX code is PIC.
4562 if test "$host_cpu" = ia64; then
4563 # AIX 5 now supports IA64 processor
4564 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4565 fi
4566 ;;
4567
4568 amigaos*)
4569 case $host_cpu in
4570 powerpc)
4571 # see comment about AmigaOS4 .so support
4572 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4573 ;;
4574 m68k)
4575 # FIXME: we need at least 68020 code to build shared libraries, but
4576 # adding the `-m68020' flag to GCC prevents building anything better,
4577 # like `-m68040'.
4578 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4579 ;;
4580 esac
4581 ;;
4582
4583 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4584 # PIC is the default for these OSes.
4585 ;;
4586 mingw* | cygwin* | os2* | pw32* | cegcc*)
4587 # This hack is so that the source file can tell whether it is being
4588 # built for inclusion in a dll (and should export symbols for example).
4589 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4590 # (--disable-auto-import) libraries
4591 m4_if([$1], [GCJ], [],
4592 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4593 ;;
4594 darwin* | rhapsody*)
4595 # PIC is the default on this platform
4596 # Common symbols not allowed in MH_DYLIB files
4597 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4598 ;;
4599 *djgpp*)
4600 # DJGPP does not support shared libraries at all
4601 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4602 ;;
4603 haiku*)
4604 # PIC is the default for Haiku.
4605 # The "-static" flag exists, but is broken.
4606 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4607 ;;
4608 interix[[3-9]]*)
4609 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4610 # Instead, we relocate shared libraries at runtime.
4611 ;;
4612 sysv4*MP*)
4613 if test -d /usr/nec; then
4614 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4615 fi
4616 ;;
4617 hpux*)
4618 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4619 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4620 # sets the default TLS model and affects inlining.
4621 case $host_cpu in
4622 hppa*64*)
4623 ;;
4624 *)
4625 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4626 ;;
4627 esac
4628 ;;
4629 *qnx* | *nto*)
4630 # QNX uses GNU C++, but need to define -shared option too, otherwise
4631 # it will coredump.
4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4633 ;;
4634 *)
4635 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4636 ;;
4637 esac
4638 else
4639 case $host_os in
4640 aix[[4-9]]*)
4641 # All AIX code is PIC.
4642 if test "$host_cpu" = ia64; then
4643 # AIX 5 now supports IA64 processor
4644 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4645 else
4646 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4647 fi
4648 ;;
4649 chorus*)
4650 case $cc_basename in
4651 cxch68*)
4652 # Green Hills C++ Compiler
4653 # _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"
4654 ;;
4655 esac
4656 ;;
4657 mingw* | cygwin* | os2* | pw32* | cegcc*)
4658 # This hack is so that the source file can tell whether it is being
4659 # built for inclusion in a dll (and should export symbols for example).
4660 m4_if([$1], [GCJ], [],
4661 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4662 ;;
4663 dgux*)
4664 case $cc_basename in
4665 ec++*)
4666 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4667 ;;
4668 ghcx*)
4669 # Green Hills C++ Compiler
4670 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4671 ;;
4672 *)
4673 ;;
4674 esac
4675 ;;
4676 freebsd* | dragonfly*)
4677 # FreeBSD uses GNU C++
4678 ;;
4679 hpux9* | hpux10* | hpux11*)
4680 case $cc_basename in
4681 CC*)
4682 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4683 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4684 if test "$host_cpu" != ia64; then
4685 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4686 fi
4687 ;;
4688 aCC*)
4689 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4690 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4691 case $host_cpu in
4692 hppa*64*|ia64*)
4693 # +Z the default
4694 ;;
4695 *)
4696 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4697 ;;
4698 esac
4699 ;;
4700 *)
4701 ;;
4702 esac
4703 ;;
4704 interix*)
4705 # This is c89, which is MS Visual C++ (no shared libs)
4706 # Anyone wants to do a port?
4707 ;;
4708 irix5* | irix6* | nonstopux*)
4709 case $cc_basename in
4710 CC*)
4711 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4712 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4713 # CC pic flag -KPIC is the default.
4714 ;;
4715 *)
4716 ;;
4717 esac
4718 ;;
4719 linux* | k*bsd*-gnu | kopensolaris*-gnu)
4720 case $cc_basename in
4721 KCC*)
4722 # KAI C++ Compiler
4723 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4724 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4725 ;;
4726 ecpc* )
4727 # old Intel C++ for x86_64 which still supported -KPIC.
4728 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4729 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4730 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4731 ;;
4732 icpc* )
4733 # Intel C++, used to be incompatible with GCC.
4734 # ICC 10 doesn't accept -KPIC any more.
4735 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4736 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4737 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4738 ;;
4739 pgCC* | pgcpp*)
4740 # Portland Group C++ compiler
4741 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4742 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4743 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4744 ;;
4745 cxx*)
4746 # Compaq C++
4747 # Make sure the PIC flag is empty. It appears that all Alpha
4748 # Linux and Compaq Tru64 Unix objects are PIC.
4749 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4750 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4751 ;;
4752 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4753 # IBM XL 8.0, 9.0 on PPC and BlueGene
4754 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4755 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4756 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4757 ;;
4758 *)
4759 case `$CC -V 2>&1 | sed 5q` in
4760 *Sun\ C*)
4761 # Sun C++ 5.9
4762 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4763 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4764 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4765 ;;
4766 esac
4767 ;;
4768 esac
4769 ;;
4770 lynxos*)
4771 ;;
4772 m88k*)
4773 ;;
4774 mvs*)
4775 case $cc_basename in
4776 cxx*)
4777 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4778 ;;
4779 *)
4780 ;;
4781 esac
4782 ;;
4783 netbsd* | netbsdelf*-gnu)
4784 ;;
4785 *qnx* | *nto*)
4786 # QNX uses GNU C++, but need to define -shared option too, otherwise
4787 # it will coredump.
4788 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4789 ;;
4790 osf3* | osf4* | osf5*)
4791 case $cc_basename in
4792 KCC*)
4793 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4794 ;;
4795 RCC*)
4796 # Rational C++ 2.4.1
4797 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4798 ;;
4799 cxx*)
4800 # Digital/Compaq C++
4801 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4802 # Make sure the PIC flag is empty. It appears that all Alpha
4803 # Linux and Compaq Tru64 Unix objects are PIC.
4804 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4805 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4806 ;;
4807 *)
4808 ;;
4809 esac
4810 ;;
4811 psos*)
4812 ;;
4813 solaris*)
4814 case $cc_basename in
4815 CC* | sunCC*)
4816 # Sun C++ 4.2, 5.x and Centerline C++
4817 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4818 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4819 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4820 ;;
4821 gcx*)
4822 # Green Hills C++ Compiler
4823 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4824 ;;
4825 *)
4826 ;;
4827 esac
4828 ;;
4829 sunos4*)
4830 case $cc_basename in
4831 CC*)
4832 # Sun C++ 4.x
4833 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4834 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4835 ;;
4836 lcc*)
4837 # Lucid
4838 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4839 ;;
4840 *)
4841 ;;
4842 esac
4843 ;;
4844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4845 case $cc_basename in
4846 CC*)
4847 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4848 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4849 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4850 ;;
4851 esac
4852 ;;
4853 tandem*)
4854 case $cc_basename in
4855 NCC*)
4856 # NonStop-UX NCC 3.20
4857 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4858 ;;
4859 *)
4860 ;;
4861 esac
4862 ;;
4863 vxworks*)
4864 ;;
4865 *)
4866 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4867 ;;
4868 esac
4869 fi
4870],
4871[
4872 if test "$GCC" = yes; then
4873 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4874 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4875
4876 case $host_os in
4877 aix*)
4878 # All AIX code is PIC.
4879 if test "$host_cpu" = ia64; then
4880 # AIX 5 now supports IA64 processor
4881 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4882 fi
4883 ;;
4884
4885 amigaos*)
4886 case $host_cpu in
4887 powerpc)
4888 # see comment about AmigaOS4 .so support
4889 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4890 ;;
4891 m68k)
4892 # FIXME: we need at least 68020 code to build shared libraries, but
4893 # adding the `-m68020' flag to GCC prevents building anything better,
4894 # like `-m68040'.
4895 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4896 ;;
4897 esac
4898 ;;
4899
4900 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4901 # PIC is the default for these OSes.
4902 ;;
4903
4904 mingw* | cygwin* | pw32* | os2* | cegcc*)
4905 # This hack is so that the source file can tell whether it is being
4906 # built for inclusion in a dll (and should export symbols for example).
4907 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4908 # (--disable-auto-import) libraries
4909 m4_if([$1], [GCJ], [],
4910 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4911 ;;
4912
4913 darwin* | rhapsody*)
4914 # PIC is the default on this platform
4915 # Common symbols not allowed in MH_DYLIB files
4916 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4917 ;;
4918
4919 haiku*)
4920 # PIC is the default for Haiku.
4921 # The "-static" flag exists, but is broken.
4922 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4923 ;;
4924
4925 hpux*)
4926 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4927 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4928 # sets the default TLS model and affects inlining.
4929 case $host_cpu in
4930 hppa*64*)
4931 # +Z the default
4932 ;;
4933 *)
4934 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4935 ;;
4936 esac
4937 ;;
4938
4939 interix[[3-9]]*)
4940 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4941 # Instead, we relocate shared libraries at runtime.
4942 ;;
4943
4944 msdosdjgpp*)
4945 # Just because we use GCC doesn't mean we suddenly get shared libraries
4946 # on systems that don't support them.
4947 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4948 enable_shared=no
4949 ;;
4950
4951 *nto* | *qnx*)
4952 # QNX uses GNU C++, but need to define -shared option too, otherwise
4953 # it will coredump.
4954 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4955 ;;
4956
4957 sysv4*MP*)
4958 if test -d /usr/nec; then
4959 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4960 fi
4961 ;;
4962
4963 *)
4964 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4965 ;;
4966 esac
4967
4968 case $cc_basename in
4969 nvcc*) # Cuda Compiler Driver 2.2
4970 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4971 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC'
4972 ;;
4973 esac
4974 else
4975 # PORTME Check for flag to pass linker flags through the system compiler.
4976 case $host_os in
4977 aix*)
4978 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4979 if test "$host_cpu" = ia64; then
4980 # AIX 5 now supports IA64 processor
4981 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4982 else
4983 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4984 fi
4985 ;;
4986
4987 mingw* | cygwin* | pw32* | os2* | cegcc*)
4988 # This hack is so that the source file can tell whether it is being
4989 # built for inclusion in a dll (and should export symbols for example).
4990 m4_if([$1], [GCJ], [],
4991 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4992 ;;
4993
4994 hpux9* | hpux10* | hpux11*)
4995 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4996 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4997 # not for PA HP-UX.
4998 case $host_cpu in
4999 hppa*64*|ia64*)
5000 # +Z the default
5001 ;;
5002 *)
5003 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5004 ;;
5005 esac
5006 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5007 _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5008 ;;
5009
5010 irix5* | irix6* | nonstopux*)
5011 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5012 # PIC (with -KPIC) is the default.
5013 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5014 ;;
5015
5016 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5017 case $cc_basename in
5018 # old Intel for x86_64 which still supported -KPIC.
5019 ecc*)
5020 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5021 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5022 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5023 ;;
5024 # icc used to be incompatible with GCC.
5025 # ICC 10 doesn't accept -KPIC any more.
5026 icc* | ifort*)
5027 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5028 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5029 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
5030 ;;
5031 # Lahey Fortran 8.1.
5032 lf95*)
5033 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5034 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
5035 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
5036 ;;
5037 nagfor*)
5038 # NAG Fortran compiler
5039 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
5040 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5041 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5042 ;;
5043 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
5044 # Portland Group compilers (*not* the Pentium gcc compiler,
5045 # which looks to be a dead project)
5046 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5047 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5048 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5049 ;;
5050 ccc*)
5051 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5052 # All Alpha code is PIC.
5053 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5054 ;;
5055 xl* | bgxl* | bgf* | mpixl*)
5056 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
5057 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5058 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
5059 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
5060 ;;
5061 *)
5062 case `$CC -V 2>&1 | sed 5q` in
5063 *Sun\ F* | *Sun*Fortran*)
5064 # Sun Fortran 8.3 passes all unrecognized flags to the linker
5065 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5066 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5067 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
5068 ;;
5069 *Sun\ C*)
5070 # Sun C 5.9
5071 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5072 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5073 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5074 ;;
5075 esac
5076 ;;
5077 esac
5078 ;;
5079
5080 newsos6)
5081 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5082 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5083 ;;
5084
5085 *nto* | *qnx*)
5086 # QNX uses GNU C++, but need to define -shared option too, otherwise
5087 # it will coredump.
5088 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
5089 ;;
5090
5091 osf3* | osf4* | osf5*)
5092 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5093 # All OSF/1 code is PIC.
5094 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5095 ;;
5096
5097 rdos*)
5098 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5099 ;;
5100
5101 solaris*)
5102 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5103 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5104 case $cc_basename in
5105 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
5106 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5107 *)
5108 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5109 esac
5110 ;;
5111
5112 sunos4*)
5113 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5114 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5115 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5116 ;;
5117
5118 sysv4 | sysv4.2uw2* | sysv4.3*)
5119 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5120 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5121 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5122 ;;
5123
5124 sysv4*MP*)
5125 if test -d /usr/nec ;then
5126 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5127 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5128 fi
5129 ;;
5130
5131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5132 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5133 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5134 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5135 ;;
5136
5137 unicos*)
5138 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5139 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5140 ;;
5141
5142 uts4*)
5143 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5144 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5145 ;;
5146
5147 *)
5148 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5149 ;;
5150 esac
5151 fi
5152])
5153case $host_os in
5154 # For platforms which do not support PIC, -DPIC is meaningless:
5155 *djgpp*)
5156 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
5157 ;;
5158 *)
5159 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
5160 ;;
5161esac
5162
5163AC_CACHE_CHECK([for $compiler option to produce PIC],
5164 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
5165 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
5166_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
5167
5168#
5169# Check to make sure the PIC flag actually works.
5170#
5171if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
5172 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
5173 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
5174 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
5175 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
5176 "" | " "*) ;;
5177 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5178 esac],
5179 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
5180 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5181fi
5182_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
5183 [Additional compiler flags for building library objects])
5184
5185_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
5186 [How to pass a linker flag through the compiler])
5187#
5188# Check to make sure the static flag actually works.
5189#
5190wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
5191_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5192 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
5193 $lt_tmp_static_flag,
5194 [],
5195 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
5196_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
5197 [Compiler flag to prevent dynamic linking])
5198])# _LT_COMPILER_PIC
5199
5200
5201# _LT_LINKER_SHLIBS([TAGNAME])
5202# ----------------------------
5203# See if the linker supports building shared libraries.
5204m4_defun([_LT_LINKER_SHLIBS],
5205[AC_REQUIRE([LT_PATH_LD])dnl
5206AC_REQUIRE([LT_PATH_NM])dnl
5207m4_require([_LT_PATH_MANIFEST_TOOL])dnl
5208m4_require([_LT_FILEUTILS_DEFAULTS])dnl
5209m4_require([_LT_DECL_EGREP])dnl
5210m4_require([_LT_DECL_SED])dnl
5211m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
5212m4_require([_LT_TAG_COMPILER])dnl
5213AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5214m4_if([$1], [CXX], [
5215 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5216 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5217 case $host_os in
5218 aix[[4-9]]*)
5219 # If we're using GNU nm, then we don't want the "-C" option.
5220 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5221 # Also, AIX nm treats weak defined symbols like other global defined
5222 # symbols, whereas GNU nm marks them as "W".
5223 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5224 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
5225 else
5226 _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'
5227 fi
5228 ;;
5229 pw32*)
5230 _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5231 ;;
5232 cygwin* | mingw* | cegcc*)
5233 case $cc_basename in
5234 cl*) ;;
5235 *)
5236 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5237 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5238 ;;
5239 esac
5240 ;;
5241 linux* | k*bsd*-gnu | gnu*)
5242 _LT_TAGVAR(link_all_deplibs, $1)=no
5243 ;;
5244 *)
5245 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5246 ;;
5247 esac
5248], [
5249 runpath_var=
5250 _LT_TAGVAR(allow_undefined_flag, $1)=
5251 _LT_TAGVAR(always_export_symbols, $1)=no
5252 _LT_TAGVAR(archive_cmds, $1)=
5253 _LT_TAGVAR(archive_expsym_cmds, $1)=
5254 _LT_TAGVAR(compiler_needs_object, $1)=no
5255 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5256 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5257 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5258 _LT_TAGVAR(hardcode_automatic, $1)=no
5259 _LT_TAGVAR(hardcode_direct, $1)=no
5260 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5261 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5262 _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5263 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5264 _LT_TAGVAR(hardcode_minus_L, $1)=no
5265 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5266 _LT_TAGVAR(inherit_rpath, $1)=no
5267 _LT_TAGVAR(link_all_deplibs, $1)=unknown
5268 _LT_TAGVAR(module_cmds, $1)=
5269 _LT_TAGVAR(module_expsym_cmds, $1)=
5270 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
5271 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5272 _LT_TAGVAR(thread_safe_flag_spec, $1)=
5273 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5274 # include_expsyms should be a list of space-separated symbols to be *always*
5275 # included in the symbol list
5276 _LT_TAGVAR(include_expsyms, $1)=
5277 # exclude_expsyms can be an extended regexp of symbols to exclude
5278 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5279 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5280 # as well as any symbol that contains `d'.
5281 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
5282 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5283 # platforms (ab)use it in PIC code, but their linkers get confused if
5284 # the symbol is explicitly referenced. Since portable code cannot
5285 # rely on this symbol name, it's probably fine to never include it in
5286 # preloaded symbol tables.
5287 # Exclude shared library initialization/finalization symbols.
5288dnl Note also adjust exclude_expsyms for C++ above.
5289 extract_expsyms_cmds=
5290
5291 case $host_os in
5292 cygwin* | mingw* | pw32* | cegcc*)
5293 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5294 # When not using gcc, we currently assume that we are using
5295 # Microsoft Visual C++.
5296 if test "$GCC" != yes; then
5297 with_gnu_ld=no
5298 fi
5299 ;;
5300 interix*)
5301 # we just hope/assume this is gcc and not c89 (= MSVC++)
5302 with_gnu_ld=yes
5303 ;;
5304 openbsd*)
5305 with_gnu_ld=no
5306 ;;
5307 linux* | k*bsd*-gnu | gnu*)
5308 _LT_TAGVAR(link_all_deplibs, $1)=no
5309 ;;
5310 esac
5311
5312 _LT_TAGVAR(ld_shlibs, $1)=yes
5313
5314 # On some targets, GNU ld is compatible enough with the native linker
5315 # that we're better off using the native interface for both.
5316 lt_use_gnu_ld_interface=no
5317 if test "$with_gnu_ld" = yes; then
5318 case $host_os in
5319 aix*)
5320 # The AIX port of GNU ld has always aspired to compatibility
5321 # with the native linker. However, as the warning in the GNU ld
5322 # block says, versions before 2.19.5* couldn't really create working
5323 # shared libraries, regardless of the interface used.
5324 case `$LD -v 2>&1` in
5325 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5326 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5327 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5328 *)
5329 lt_use_gnu_ld_interface=yes
5330 ;;
5331 esac
5332 ;;
5333 *)
5334 lt_use_gnu_ld_interface=yes
5335 ;;
5336 esac
5337 fi
5338
5339 if test "$lt_use_gnu_ld_interface" = yes; then
5340 # If archive_cmds runs LD, not CC, wlarc should be empty
5341 wlarc='${wl}'
5342
5343 # Set some defaults for GNU ld with shared library support. These
5344 # are reset later if shared libraries are not supported. Putting them
5345 # here allows them to be overridden if necessary.
5346 runpath_var=LD_RUN_PATH
5347 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5348 _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5349 # ancient GNU ld didn't support --whole-archive et. al.
5350 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5351 _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5352 else
5353 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5354 fi
5355 supports_anon_versioning=no
5356 case `$LD -v 2>&1` in
5357 *GNU\ gold*) supports_anon_versioning=yes ;;
5358 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5361 *\ 2.11.*) ;; # other 2.11 versions
5362 *) supports_anon_versioning=yes ;;
5363 esac
5364
5365 # See if GNU ld supports shared libraries.
5366 case $host_os in
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches