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

Proposed by Ted Gould
Status: Merged
Merged at revision: 240
Proposed branch: lp:~indicator-applet-developers/indicator-application/ubuntu
Merge into: lp:~ubuntu-desktop/indicator-application/ubuntu
Diff against target: 9970 lines (+8784/-218)
34 files modified
AUTHORS (+1/-0)
ChangeLog (+68/-0)
Makefile.in (+5/-2)
aclocal.m4 (+2/-2)
bindings/mono/Makefile.in (+5/-2)
bindings/mono/examples/IndicatorExample.cs (+3/-2)
config.h.in (+3/-0)
configure (+234/-62)
configure.ac (+33/-11)
debian/changelog (+10/-0)
docs/reference/Makefile.am (+1/-1)
docs/reference/Makefile.in (+1/-1)
docs/reference/html/ch01.html (+1/-1)
docs/reference/html/index.html (+1/-1)
docs/reference/libappindicator-docs.sgml (+1/-1)
docs/reference/tmpl/app-indicator.sgml (+2/-0)
docs/reference/version.xml (+1/-1)
m4/gtk-doc.m4 (+61/-0)
m4/libtool.m4 (+7377/-0)
m4/ltoptions.m4 (+368/-0)
m4/ltsugar.m4 (+123/-0)
m4/ltversion.m4 (+23/-0)
m4/lt~obsolete.m4 (+92/-0)
src/AppIndicator-0.1.metadata (+1/-0)
src/Makefile.am (+47/-18)
src/Makefile.in (+132/-26)
src/app-indicator.c (+39/-5)
src/appindicator3-0.1.pc.in (+14/-0)
src/application-service-appstore.c (+18/-0)
src/application-service-appstore.h (+1/-0)
src/application-service-watcher.c (+95/-58)
src/application-service-watcher.h (+3/-4)
src/indicator-application.c (+7/-0)
src/notification-watcher.xml (+11/-20)
To merge this branch: bzr merge lp:~indicator-applet-developers/indicator-application/ubuntu
Reviewer Review Type Date Requested Status
Ken VanDine Pending
Review via email: mp+43038@code.launchpad.net

Description of the change

0.2.90

To post a comment you must log in.

Preview Diff

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

Subscribers

People subscribed via source and target branches

to all changes: