Merge lp:~dbusmenu-team/libdbusmenu/ubuntu into lp:~ubuntu-desktop/libdbusmenu/ubuntu

Proposed by Ted Gould
Status: Merged
Merged at revision: 113
Proposed branch: lp:~dbusmenu-team/libdbusmenu/ubuntu
Merge into: lp:~ubuntu-desktop/libdbusmenu/ubuntu
Diff against target: 26707 lines (+11405/-10855)
91 files modified
ChangeLog (+312/-0)
Makefile.in (+1/-6)
aclocal.m4 (+8374/-9)
configure (+21/-25)
configure.ac (+3/-3)
debian/changelog (+16/-0)
docs/Makefile.in (+1/-6)
docs/libdbusmenu-glib/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/Makefile.in (+1/-6)
docs/libdbusmenu-glib/reference/html/annotation-glossary.html (+12/-3)
docs/libdbusmenu-glib/reference/html/api-index-full.html (+9/-9)
docs/libdbusmenu-glib/reference/html/ch01.html (+4/-4)
docs/libdbusmenu-glib/reference/html/index.html (+3/-3)
docs/libdbusmenu-glib/reference/html/index.sgml (+1/-0)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClient.html (+79/-160)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuClientMenuitem.html (+17/-40)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitem.html (+277/-387)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuMenuitemProxy.html (+30/-44)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib-DbusmenuServer.html (+43/-82)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp (+6/-6)
docs/libdbusmenu-glib/reference/html/libdbusmenu-glib.devhelp2 (+6/-6)
docs/libdbusmenu-glib/reference/html/object-tree.html (+3/-3)
docs/libdbusmenu-glib/reference/html/style.css (+2/-1)
docs/libdbusmenu-glib/reference/tmpl/client-menuitem.sgml (+0/-3)
docs/libdbusmenu-glib/reference/tmpl/client.sgml (+3/-5)
docs/libdbusmenu-glib/reference/tmpl/menuitem-proxy.sgml (+0/-4)
docs/libdbusmenu-glib/reference/tmpl/menuitem.sgml (+4/-4)
docs/libdbusmenu-glib/reference/tmpl/server.sgml (+0/-4)
docs/libdbusmenu-glib/reference/version.xml (+1/-1)
docs/libdbusmenu-glib/reference/xml/annotation-glossary.xml (+10/-0)
docs/libdbusmenu-glib/reference/xml/client-menuitem.xml (+8/-20)
docs/libdbusmenu-glib/reference/xml/client.xml (+47/-105)
docs/libdbusmenu-glib/reference/xml/menuitem-proxy.xml (+17/-32)
docs/libdbusmenu-glib/reference/xml/menuitem.xml (+119/-221)
docs/libdbusmenu-glib/reference/xml/server.xml (+21/-52)
docs/libdbusmenu-gtk/Makefile.in (+1/-6)
docs/libdbusmenu-gtk/reference/Makefile.am (+1/-1)
docs/libdbusmenu-gtk/reference/Makefile.in (+2/-7)
docs/libdbusmenu-gtk/reference/html/Genericmenuitem.html (+0/-360)
docs/libdbusmenu-gtk/reference/html/api-index-full.html (+5/-72)
docs/libdbusmenu-gtk/reference/html/ch01.html (+5/-7)
docs/libdbusmenu-gtk/reference/html/index.html (+3/-6)
docs/libdbusmenu-gtk/reference/html/index.sgml (+0/-22)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkClient.html (+48/-77)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-DbusmenuGtkMenu.html (+28/-45)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk-menuitem.html (+34/-58)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp (+2/-19)
docs/libdbusmenu-gtk/reference/html/libdbusmenu-gtk.devhelp2 (+2/-19)
docs/libdbusmenu-gtk/reference/html/object-tree.html (+4/-4)
docs/libdbusmenu-gtk/reference/html/style.css (+2/-1)
docs/libdbusmenu-gtk/reference/libdbusmenu-gtk-docs.sgml (+1/-1)
docs/libdbusmenu-gtk/reference/tmpl/client.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/genericmenuitem.sgml (+0/-131)
docs/libdbusmenu-gtk/reference/tmpl/libdbusmenu-gtk-unused.sgml (+118/-0)
docs/libdbusmenu-gtk/reference/tmpl/menu.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/tmpl/menuitem.sgml (+0/-2)
docs/libdbusmenu-gtk/reference/version.xml (+1/-1)
docs/libdbusmenu-gtk/reference/xml/api-index-full.xml (+0/-18)
docs/libdbusmenu-gtk/reference/xml/client.xml (+31/-58)
docs/libdbusmenu-gtk/reference/xml/genericmenuitem.xml (+1/-221)
docs/libdbusmenu-gtk/reference/xml/menu.xml (+17/-31)
docs/libdbusmenu-gtk/reference/xml/menuitem.xml (+20/-42)
libdbusmenu-glib/Makefile.am (+2/-1)
libdbusmenu-glib/Makefile.in (+3/-7)
libdbusmenu-glib/client.c (+74/-9)
libdbusmenu-glib/client.h (+28/-1)
libdbusmenu-glib/dbusmenu-glib.h (+37/-0)
libdbusmenu-glib/menuitem.c (+8/-2)
libdbusmenu-glib/server.c (+9/-2)
libdbusmenu-gtk/Makefile.am (+9/-2)
libdbusmenu-gtk/Makefile.in (+52/-10)
libdbusmenu-gtk/client.c (+30/-6)
libdbusmenu-gtk/dbusmenu-gtk.h (+41/-0)
libdbusmenu-gtk/menuitem.h (+2/-2)
libdbusmenu-gtk/parser.c (+679/-0)
libdbusmenu-gtk/parser.h (+37/-0)
libdbusmenu-gtk/serializablemenuitem.c (+288/-0)
libdbusmenu-gtk/serializablemenuitem.h (+115/-0)
m4/gnome-doc-utils.m4 (+0/-56)
m4/gtk-doc.m4 (+0/-61)
m4/intltool.m4 (+0/-216)
m4/libtool.m4 (+0/-7377)
m4/ltoptions.m4 (+0/-368)
m4/ltsugar.m4 (+0/-123)
m4/ltversion.m4 (+0/-23)
m4/lt~obsolete.m4 (+0/-92)
tests/Makefile.am (+33/-2)
tests/Makefile.in (+63/-10)
tests/test-gtk-parser.c (+115/-0)
tools/Makefile.in (+1/-6)
tools/testapp/Makefile.in (+1/-6)
To merge this branch: bzr merge lp:~dbusmenu-team/libdbusmenu/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+47725@code.launchpad.net

This proposal supersedes a proposal from 2011-01-27.

Description of the change

0.3.94

To post a comment you must log in.
lp:~dbusmenu-team/libdbusmenu/ubuntu updated
113. By Ken VanDine

releasing version 0.3.94-0ubuntu1

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: