Merge lp://staging/~chrisccoulson/gnome-media/ubuntu into lp://staging/~ubuntu-desktop/gnome-media/ubuntu
- ubuntu
- Merge into ubuntu
Proposed by
Chris Coulson
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp://staging/~chrisccoulson/gnome-media/ubuntu | ||||
Merge into: | lp://staging/~ubuntu-desktop/gnome-media/ubuntu | ||||
Diff against target: | None lines | ||||
To merge this branch: | bzr merge lp://staging/~chrisccoulson/gnome-media/ubuntu | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Pending | ||
Review via email:
|
Commit message
Description of the change
To post a comment you must log in.
Revision history for this message
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Chris Coulson (chrisccoulson) wrote : | # |
- 6. By Chris Coulson
-
Update to version 2.26.0-0ubuntu1
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/changelog' |
2 | --- debian/changelog 2009-03-12 21:49:02 +0000 |
3 | +++ debian/changelog 2009-03-14 23:32:45 +0000 |
4 | @@ -1,3 +1,22 @@ |
5 | +gnome-media (2.25.92-0ubuntu3) jaunty; urgency=low |
6 | + |
7 | + * debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch: |
8 | + - Make it possible to build the new gnome-volume-control and |
9 | + gst-mixer at the same time without conflicting, by |
10 | + renaming the new gnome-volume-control capplet to |
11 | + gnome-volume-control-settings. |
12 | + * debian/patches/06_autoconf.patch: |
13 | + - Recreate build system. |
14 | + * debian/control{.in}, |
15 | + debian/gnome-media-common.install, |
16 | + debian/gnome-media.install, |
17 | + debian/gnome-volume-control.install, |
18 | + debian/rules: |
19 | + - Enable the new gnome-volume-control capplet and gvc-applet |
20 | + and install these in to a new binary package - gnome-volume-control. |
21 | + |
22 | + -- Chris Coulson <chrisccoulson@googlemail.com> Sat, 14 Mar 2009 15:25:18 +0000 |
23 | + |
24 | gnome-media (2.25.92-0ubuntu2) jaunty; urgency=low |
25 | |
26 | * debian/patches/04_gst-mixer_help.patch: |
27 | |
28 | === modified file 'debian/control' |
29 | --- debian/control 2009-03-03 22:22:58 +0000 |
30 | +++ debian/control 2009-03-14 23:32:45 +0000 |
31 | @@ -13,6 +13,7 @@ |
32 | libglib2.0-dev (>= 2.16), |
33 | libgnome2-dev (>= 2.13.7), |
34 | libesd0-dev (>= 0.2.23), |
35 | + libpulse-dev, |
36 | libcanberra-gtk-dev, |
37 | libgtk2.0-dev (>= 2.13), |
38 | debhelper (>= 5.0.0), |
39 | @@ -82,3 +83,17 @@ |
40 | This package contains static libraries and development headers for the |
41 | GNOME media libraries: |
42 | * libgnome-media-profiles, to handle media profiles; |
43 | + |
44 | +Package: gnome-volume-control |
45 | +Architecture: any |
46 | +Depends: ${shlibs:Depends}, |
47 | + ${misc:Depends}, |
48 | + gnome-media-common (>= ${gnome:Version}), |
49 | + gnome-media-common (<< ${gnome:NextVersion}) |
50 | +Description: GNOME media utilities - gnome-volume-control |
51 | + This package contains the following media utilities for the |
52 | + GNOME desktop: |
53 | + * gnome-volume-control-settings - A capplet for adjusting sound |
54 | + preferences. |
55 | + * gnome-volume-control-applet - An applet that displays in the |
56 | + notification area for adjusting audio volume. |
57 | |
58 | === modified file 'debian/control.in' |
59 | --- debian/control.in 2009-03-03 22:22:58 +0000 |
60 | +++ debian/control.in 2009-03-14 23:32:45 +0000 |
61 | @@ -13,6 +13,7 @@ |
62 | libglib2.0-dev (>= 2.16), |
63 | libgnome2-dev (>= 2.13.7), |
64 | libesd0-dev (>= 0.2.23), |
65 | + libpulse-dev, |
66 | libcanberra-gtk-dev, |
67 | libgtk2.0-dev (>= 2.13), |
68 | debhelper (>= 5.0.0), |
69 | @@ -82,3 +83,17 @@ |
70 | This package contains static libraries and development headers for the |
71 | GNOME media libraries: |
72 | * libgnome-media-profiles, to handle media profiles; |
73 | + |
74 | +Package: gnome-volume-control |
75 | +Architecture: any |
76 | +Depends: ${shlibs:Depends}, |
77 | + ${misc:Depends}, |
78 | + gnome-media-common (>= ${gnome:Version}), |
79 | + gnome-media-common (<< ${gnome:NextVersion}) |
80 | +Description: GNOME media utilities - gnome-volume-control |
81 | + This package contains the following media utilities for the |
82 | + GNOME desktop: |
83 | + * gnome-volume-control-settings - A capplet for adjusting sound |
84 | + preferences. |
85 | + * gnome-volume-control-applet - An applet that displays in the |
86 | + notification area for adjusting audio volume. |
87 | |
88 | === modified file 'debian/gnome-media.install' |
89 | --- debian/gnome-media.install 2009-03-03 22:22:58 +0000 |
90 | +++ debian/gnome-media.install 2009-03-14 23:32:45 +0000 |
91 | @@ -1,2 +1,7 @@ |
92 | -debian/tmp/usr/bin |
93 | -debian/tmp/usr/share/applications |
94 | +debian/tmp/usr/bin/gnome-audio-profiles-properties |
95 | +debian/tmp/usr/bin/gnome-sound-recorder |
96 | +debian/tmp/usr/bin/gnome-volume-control |
97 | +debian/tmp/usr/bin/gstreamer-properties |
98 | +debian/tmp/usr/share/applications/gnome-sound-recorder.desktop |
99 | +debian/tmp/usr/share/applications/gnome-volume-control.desktop |
100 | +debian/tmp/usr/share/applications/gstreamer-properties.desktop |
101 | |
102 | === added file 'debian/gnome-volume-control.install' |
103 | --- debian/gnome-volume-control.install 1970-01-01 00:00:00 +0000 |
104 | +++ debian/gnome-volume-control.install 2009-03-14 23:32:45 +0000 |
105 | @@ -0,0 +1,4 @@ |
106 | +debian/tmp/etc/xdg/autostart |
107 | +debian/tmp/usr/bin/gnome-volume-control-settings |
108 | +debian/tmp/usr/bin/gnome-volume-control-applet |
109 | +debian/tmp/usr/share/applications/gnome-volume-control-settings.desktop |
110 | |
111 | === added file 'debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch' |
112 | --- debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch 1970-01-01 00:00:00 +0000 |
113 | +++ debian/patches/05_gst-mix_and_new_gvc_no_conflict.patch 2009-03-14 23:32:45 +0000 |
114 | @@ -0,0 +1,131 @@ |
115 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/configure.ac gnome-media-2.25.92.new/configure.ac |
116 | +--- gnome-media-2.25.92/configure.ac 2009-03-14 23:19:32.000000000 +0000 |
117 | ++++ gnome-media-2.25.92.new/configure.ac 2009-03-14 23:19:34.000000000 +0000 |
118 | +@@ -570,7 +570,7 @@ |
119 | + AS_HELP_STRING([--enable-gstmix], [enable gstreamer mixer]), |
120 | + ,enable_gstmix=yes) |
121 | + |
122 | +-if test "x$have_pulseaudio" = "xno" && test "x$have_gst" = "xyes" && test "x$enable_gstmix" = "xyes"; |
123 | ++if test "x$have_gst" = "xyes" && test "x$enable_gstmix" = "xyes"; |
124 | + then |
125 | + PKG_CHECK_MODULES(GSTMIXER, [ |
126 | + libgnomeui-2.0 |
127 | +@@ -652,7 +652,7 @@ |
128 | + po/Makefile.in |
129 | + gnome-volume-control/Makefile |
130 | + gnome-volume-control/data/Makefile |
131 | +-gnome-volume-control/data/gnome-volume-control.desktop.in |
132 | ++gnome-volume-control/data/gnome-volume-control-settings.desktop.in |
133 | + gnome-volume-control/data/icons/Makefile |
134 | + gnome-volume-control/data/icons/16x16/Makefile |
135 | + gnome-volume-control/data/icons/16x16/apps/Makefile |
136 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control.desktop.in.in gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control.desktop.in.in |
137 | +--- gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control.desktop.in.in 2009-03-03 17:20:56.000000000 +0000 |
138 | ++++ gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control.desktop.in.in 1970-01-01 01:00:00.000000000 +0100 |
139 | +@@ -1,14 +0,0 @@ |
140 | +-[Desktop Entry] |
141 | +-_Name=Sound |
142 | +-_Comment=Change sound volume and associate sounds with events |
143 | +-Exec=gnome-volume-control |
144 | +-Icon=gnome-volume-control |
145 | +-Terminal=false |
146 | +-Type=Application |
147 | +-StartupNotify=true |
148 | +-Categories=GNOME;GTK;Settings;HardwareSettings; |
149 | +-OnlyShowIn=GNOME; |
150 | +-X-GNOME-Bugzilla-Bugzilla=GNOME |
151 | +-X-GNOME-Bugzilla-Product=gnome-media |
152 | +-X-GNOME-Bugzilla-Component=gnome-volume-control |
153 | +-X-GNOME-Bugzilla-Version=@VERSION@ |
154 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in |
155 | +--- gnome-media-2.25.92/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in 1970-01-01 01:00:00.000000000 +0100 |
156 | ++++ gnome-media-2.25.92.new/gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in 2009-03-14 23:19:34.000000000 +0000 |
157 | +@@ -0,0 +1,14 @@ |
158 | ++[Desktop Entry] |
159 | ++_Name=Sound |
160 | ++_Comment=Change sound volume and associate sounds with events |
161 | ++Exec=gnome-volume-control-settings |
162 | ++Icon=gnome-volume-control |
163 | ++Terminal=false |
164 | ++Type=Application |
165 | ++StartupNotify=true |
166 | ++Categories=GNOME;GTK;Settings;HardwareSettings; |
167 | ++OnlyShowIn=GNOME; |
168 | ++X-GNOME-Bugzilla-Bugzilla=GNOME |
169 | ++X-GNOME-Bugzilla-Product=gnome-media |
170 | ++X-GNOME-Bugzilla-Component=gnome-volume-control |
171 | ++X-GNOME-Bugzilla-Version=@VERSION@ |
172 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/data/Makefile.am gnome-media-2.25.92.new/gnome-volume-control/data/Makefile.am |
173 | +--- gnome-media-2.25.92/gnome-volume-control/data/Makefile.am 2009-03-03 17:20:56.000000000 +0000 |
174 | ++++ gnome-media-2.25.92.new/gnome-volume-control/data/Makefile.am 2009-03-14 23:19:34.000000000 +0000 |
175 | +@@ -11,16 +11,16 @@ |
176 | + autostart_DATA = $(autostart_in_files:.desktop.in=.desktop) |
177 | + |
178 | + appsdir = $(datadir)/applications |
179 | +-apps_in_files = gnome-volume-control.desktop.in |
180 | ++apps_in_files = gnome-volume-control-settings.desktop.in |
181 | + apps_DATA = $(apps_in_files:.desktop.in=.desktop) |
182 | + |
183 | + EXTRA_DIST = \ |
184 | + $(autostart_in_files) \ |
185 | +- gnome-volume-control.desktop.in.in \ |
186 | ++ gnome-volume-control-settings.desktop.in.in \ |
187 | + $(NULL) |
188 | + |
189 | + CLEANFILES = \ |
190 | +- gnome-volume-control.desktop \ |
191 | ++ gnome-volume-control-settings.desktop \ |
192 | + $(NULL) |
193 | + |
194 | + DISTCLEANFILES = \ |
195 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/src/gvc-stream-status-icon.c gnome-media-2.25.92.new/gnome-volume-control/src/gvc-stream-status-icon.c |
196 | +--- gnome-media-2.25.92/gnome-volume-control/src/gvc-stream-status-icon.c 2009-03-03 17:20:56.000000000 +0000 |
197 | ++++ gnome-media-2.25.92.new/gnome-volume-control/src/gvc-stream-status-icon.c 2009-03-14 23:19:56.000000000 +0000 |
198 | +@@ -200,7 +200,7 @@ |
199 | + |
200 | + error = NULL; |
201 | + gdk_spawn_command_line_on_screen (gtk_widget_get_screen (icon->priv->dock), |
202 | +- "gnome-volume-control", |
203 | ++ "gnome-volume-control-settings", |
204 | + &error); |
205 | + |
206 | + if (error != NULL) { |
207 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/gnome-volume-control/src/Makefile.am gnome-media-2.25.92.new/gnome-volume-control/src/Makefile.am |
208 | +--- gnome-media-2.25.92/gnome-volume-control/src/Makefile.am 2009-03-03 17:20:56.000000000 +0000 |
209 | ++++ gnome-media-2.25.92.new/gnome-volume-control/src/Makefile.am 2009-03-14 23:19:34.000000000 +0000 |
210 | +@@ -2,7 +2,7 @@ |
211 | + |
212 | + bin_PROGRAMS = \ |
213 | + gnome-volume-control-applet \ |
214 | +- gnome-volume-control \ |
215 | ++ gnome-volume-control-settings \ |
216 | + $(NULL) |
217 | + |
218 | + AM_CPPFLAGS = \ |
219 | +@@ -48,12 +48,12 @@ |
220 | + applet-main.c \ |
221 | + $(NULL) |
222 | + |
223 | +-gnome_volume_control_LDADD = \ |
224 | ++gnome_volume_control_settings_LDADD = \ |
225 | + $(VOLUME_CONTROL_LIBS) \ |
226 | + $(PULSEAUDIO_LIBS) \ |
227 | + $(NULL) |
228 | + |
229 | +-gnome_volume_control_SOURCES = \ |
230 | ++gnome_volume_control_settings_SOURCES = \ |
231 | + gvc-mixer-stream.h \ |
232 | + gvc-mixer-stream.c \ |
233 | + gvc-channel-map.h \ |
234 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/po/POTFILES.in gnome-media-2.25.92.new/po/POTFILES.in |
235 | +--- gnome-media-2.25.92/po/POTFILES.in 2009-03-03 17:20:59.000000000 +0000 |
236 | ++++ gnome-media-2.25.92.new/po/POTFILES.in 2009-03-14 23:19:34.000000000 +0000 |
237 | +@@ -16,7 +16,7 @@ |
238 | + gnome-cd/gnome-cd.schemas.in.in |
239 | + gnome-cd/gst-cdrom.c |
240 | + gnome-cd/preferences.c |
241 | +-gnome-volume-control/data/gnome-volume-control.desktop.in.in |
242 | ++gnome-volume-control/data/gnome-volume-control-settings.desktop.in.in |
243 | + gnome-volume-control/data/gnome-volume-control-applet.desktop.in |
244 | + gnome-volume-control/data/sounds/gnome-sounds-default.xml.in.in |
245 | + gnome-volume-control/src/applet-main.c |
246 | |
247 | === modified file 'debian/patches/06_autoconf.patch' |
248 | --- debian/patches/06_autoconf.patch 2009-03-03 22:22:58 +0000 |
249 | +++ debian/patches/06_autoconf.patch 2009-03-14 23:32:45 +0000 |
250 | @@ -1,65 +1,69535 @@ |
251 | -diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.1/configure gnome-media-2.25.1.new/configure |
252 | ---- gnome-media-2.25.1/configure 2008-12-16 21:29:07.000000000 +0100 |
253 | -+++ gnome-media-2.25.1.new/configure 2009-01-05 16:03:15.000000000 +0100 |
254 | -@@ -9157,12 +9157,14 @@ |
255 | - gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GST_REQ |
256 | - gtk+-2.0 >= 2.6.0 |
257 | - libgnomeui-2.0 >= 1.102.0 |
258 | -+ launchpad-integration |
259 | - gio-2.0\"") >&5 |
260 | - ($PKG_CONFIG --exists --print-errors " |
261 | - gstreamer-$GST_MAJORMINOR >= $GST_REQ |
262 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
263 | - gtk+-2.0 >= 2.6.0 |
264 | - libgnomeui-2.0 >= 1.102.0 |
265 | -+ launchpad-integration |
266 | - gio-2.0") 2>&5 |
267 | - ac_status=$? |
268 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
269 | -@@ -9172,6 +9174,7 @@ |
270 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
271 | - gtk+-2.0 >= 2.6.0 |
272 | - libgnomeui-2.0 >= 1.102.0 |
273 | -+ launchpad-integration |
274 | - gio-2.0" 2>/dev/null` |
275 | - else |
276 | - pkg_failed=yes |
277 | -@@ -9188,12 +9191,14 @@ |
278 | - gstreamer-plugins-base-\$GST_MAJORMINOR >= \$GST_REQ |
279 | - gtk+-2.0 >= 2.6.0 |
280 | - libgnomeui-2.0 >= 1.102.0 |
281 | -+ launchpad-integration |
282 | - gio-2.0\"") >&5 |
283 | - ($PKG_CONFIG --exists --print-errors " |
284 | - gstreamer-$GST_MAJORMINOR >= $GST_REQ |
285 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
286 | - gtk+-2.0 >= 2.6.0 |
287 | - libgnomeui-2.0 >= 1.102.0 |
288 | -+ launchpad-integration |
289 | - gio-2.0") 2>&5 |
290 | - ac_status=$? |
291 | - echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
292 | -@@ -9203,6 +9208,7 @@ |
293 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
294 | - gtk+-2.0 >= 2.6.0 |
295 | - libgnomeui-2.0 >= 1.102.0 |
296 | -+ launchpad-integration |
297 | - gio-2.0" 2>/dev/null` |
298 | - else |
299 | - pkg_failed=yes |
300 | -@@ -9226,6 +9232,7 @@ |
301 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
302 | - gtk+-2.0 >= 2.6.0 |
303 | - libgnomeui-2.0 >= 1.102.0 |
304 | -+ launchpad-integration |
305 | - gio-2.0" 2>&1` |
306 | - else |
307 | - GSR_PKG_ERRORS=`$PKG_CONFIG --print-errors " |
308 | -@@ -9233,6 +9240,7 @@ |
309 | - gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQ |
310 | - gtk+-2.0 >= 2.6.0 |
311 | - libgnomeui-2.0 >= 1.102.0 |
312 | -+ launchpad-integration |
313 | - gio-2.0" 2>&1` |
314 | - fi |
315 | - # Put the nasty error message in config.log where it belongs |
316 | +diff -Nur -x '*.orig' -x '*~' gnome-media-2.25.92/aclocal.m4 gnome-media-2.25.92.new/aclocal.m4 |
317 | +--- gnome-media-2.25.92/aclocal.m4 2009-03-03 20:58:32.000000000 +0000 |
318 | ++++ gnome-media-2.25.92.new/aclocal.m4 2009-03-14 23:09:57.000000000 +0000 |
319 | +@@ -1,4 +1,4 @@ |
320 | +-# generated automatically by aclocal 1.10.1 -*- Autoconf -*- |
321 | ++# generated automatically by aclocal 1.10.2 -*- Autoconf -*- |
322 | + |
323 | + # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
324 | + # 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
325 | +@@ -13,8399 +13,1777 @@ |
326 | + |
327 | + m4_ifndef([AC_AUTOCONF_VERSION], |
328 | + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
329 | +-m4_if(AC_AUTOCONF_VERSION, [2.62],, |
330 | +-[m4_warning([this file was generated for autoconf 2.62. |
331 | ++m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.63],, |
332 | ++[m4_warning([this file was generated for autoconf 2.63. |
333 | + You have another version of autoconf. It may work, but is not guaranteed to. |
334 | + If you have problems, you may need to regenerate the build system entirely. |
335 | + To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
336 | + |
337 | +-# Copyright (C) 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc. |
338 | +-# |
339 | +-# This file is free software; the Free Software Foundation |
340 | +-# gives unlimited permission to copy and/or distribute it, |
341 | +-# with or without modifications, as long as this notice is preserved. |
342 | ++dnl AM_GCONF_SOURCE_2 |
343 | ++dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas |
344 | ++dnl (i.e. pass to gconftool-2 |
345 | ++dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where |
346 | ++dnl you should install foo.schemas files |
347 | ++dnl |
348 | + |
349 | +-# AM_AUTOMAKE_VERSION(VERSION) |
350 | +-# ---------------------------- |
351 | +-# Automake X.Y traces this macro to ensure aclocal.m4 has been |
352 | +-# generated from the m4 files accompanying Automake X.Y. |
353 | +-# (This private macro should not be called outside this file.) |
354 | +-AC_DEFUN([AM_AUTOMAKE_VERSION], |
355 | +-[am__api_version='1.10' |
356 | +-dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to |
357 | +-dnl require some minimum version. Point them to the right macro. |
358 | +-m4_if([$1], [1.10.1], [], |
359 | +- [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl |
360 | +-]) |
361 | ++AC_DEFUN([AM_GCONF_SOURCE_2], |
362 | ++[ |
363 | ++ if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then |
364 | ++ GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
365 | ++ else |
366 | ++ GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE |
367 | ++ fi |
368 | + |
369 | +-# _AM_AUTOCONF_VERSION(VERSION) |
370 | +-# ----------------------------- |
371 | +-# aclocal traces this macro to find the Autoconf version. |
372 | +-# This is a private macro too. Using m4_define simplifies |
373 | +-# the logic in aclocal, which can simply ignore this definition. |
374 | +-m4_define([_AM_AUTOCONF_VERSION], []) |
375 | ++ AC_ARG_WITH([gconf-source], |
376 | ++ AC_HELP_STRING([--with-gconf-source=sourceaddress], |
377 | ++ [Config database for installing schema files.]), |
378 | ++ [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],) |
379 | + |
380 | +-# AM_SET_CURRENT_AUTOMAKE_VERSION |
381 | +-# ------------------------------- |
382 | +-# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. |
383 | +-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. |
384 | +-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], |
385 | +-[AM_AUTOMAKE_VERSION([1.10.1])dnl |
386 | +-m4_ifndef([AC_AUTOCONF_VERSION], |
387 | +- [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
388 | +-_AM_AUTOCONF_VERSION(AC_AUTOCONF_VERSION)]) |
389 | ++ AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) |
390 | ++ AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) |
391 | + |
392 | +-# AM_AUX_DIR_EXPAND -*- Autoconf -*- |
393 | ++ if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then |
394 | ++ GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' |
395 | ++ fi |
396 | + |
397 | +-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
398 | +-# |
399 | +-# This file is free software; the Free Software Foundation |
400 | +-# gives unlimited permission to copy and/or distribute it, |
401 | +-# with or without modifications, as long as this notice is preserved. |
402 | ++ AC_ARG_WITH([gconf-schema-file-dir], |
403 | ++ AC_HELP_STRING([--with-gconf-schema-file-dir=dir], |
404 | ++ [Directory for installing schema files.]), |
405 | ++ [GCONF_SCHEMA_FILE_DIR="$withval"],) |
406 | + |
407 | +-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets |
408 | +-# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to |
409 | +-# `$srcdir', `$srcdir/..', or `$srcdir/../..'. |
410 | ++ AC_SUBST(GCONF_SCHEMA_FILE_DIR) |
411 | ++ AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) |
412 | ++ |
413 | ++ AC_ARG_ENABLE(schemas-install, |
414 | ++ [ --disable-schemas-install Disable the schemas installation], |
415 | ++ [case ${enableval} in |
416 | ++ yes|no) ;; |
417 | ++ *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;; |
418 | ++ esac]) |
419 | ++ AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) |
420 | ++]) |
421 | ++ |
422 | ++# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
423 | ++# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
424 | + # |
425 | +-# Of course, Automake must honor this variable whenever it calls a |
426 | +-# tool from the auxiliary directory. The problem is that $srcdir (and |
427 | +-# therefore $ac_aux_dir as well) can be either absolute or relative, |
428 | +-# depending on how configure is run. This is pretty annoying, since |
429 | +-# it makes $ac_aux_dir quite unusable in subdirectories: in the top |
430 | +-# source directory, any form will work fine, but in subdirectories a |
431 | +-# relative path needs to be adjusted first. |
432 | ++# This file is free software, distributed under the terms of the GNU |
433 | ++# General Public License. As a special exception to the GNU General |
434 | ++# Public License, this file may be distributed as part of a program |
435 | ++# that contains a configuration script generated by Autoconf, under |
436 | ++# the same distribution terms as the rest of that program. |
437 | + # |
438 | +-# $ac_aux_dir/missing |
439 | +-# fails when called from a subdirectory if $ac_aux_dir is relative |
440 | +-# $top_srcdir/$ac_aux_dir/missing |
441 | +-# fails if $ac_aux_dir is absolute, |
442 | +-# fails when called from a subdirectory in a VPATH build with |
443 | +-# a relative $ac_aux_dir |
444 | ++# This file can be copied and used freely without restrictions. It can |
445 | ++# be used in projects which are not available under the GNU Public License |
446 | ++# but which still want to provide support for the GNU gettext functionality. |
447 | + # |
448 | +-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir |
449 | +-# are both prefixed by $srcdir. In an in-source build this is usually |
450 | +-# harmless because $srcdir is `.', but things will broke when you |
451 | +-# start a VPATH build or use an absolute $srcdir. |
452 | ++# Macro to add for using GNU gettext. |
453 | ++# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
454 | + # |
455 | +-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, |
456 | +-# iff we strip the leading $srcdir from $ac_aux_dir. That would be: |
457 | +-# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` |
458 | +-# and then we would define $MISSING as |
459 | +-# MISSING="\${SHELL} $am_aux_dir/missing" |
460 | +-# This will work as long as MISSING is not called from configure, because |
461 | +-# unfortunately $(top_srcdir) has no meaning in configure. |
462 | +-# However there are other variables, like CC, which are often used in |
463 | +-# configure, and could therefore not use this "fixed" $ac_aux_dir. |
464 | ++# Modified to never use included libintl. |
465 | ++# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
466 | + # |
467 | +-# Another solution, used here, is to always expand $ac_aux_dir to an |
468 | +-# absolute PATH. The drawback is that using absolute paths prevent a |
469 | +-# configured tree to be moved without reconfiguration. |
470 | +- |
471 | +-AC_DEFUN([AM_AUX_DIR_EXPAND], |
472 | +-[dnl Rely on autoconf to set up CDPATH properly. |
473 | +-AC_PREREQ([2.50])dnl |
474 | +-# expand $ac_aux_dir to an absolute path |
475 | +-am_aux_dir=`cd $ac_aux_dir && pwd` |
476 | +-]) |
477 | +- |
478 | +-# AM_CONDITIONAL -*- Autoconf -*- |
479 | +- |
480 | +-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006 |
481 | +-# Free Software Foundation, Inc. |
482 | ++# Major rework to remove unused code |
483 | ++# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
484 | + # |
485 | +-# This file is free software; the Free Software Foundation |
486 | +-# gives unlimited permission to copy and/or distribute it, |
487 | +-# with or without modifications, as long as this notice is preserved. |
488 | ++# Added better handling of ALL_LINGUAS from GNU gettext version |
489 | ++# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
490 | ++# |
491 | ++# Modified to require ngettext |
492 | ++# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
493 | ++# |
494 | ++# We need this here as well, since someone might use autoconf-2.5x |
495 | ++# to configure GLib then an older version to configure a package |
496 | ++# using AM_GLIB_GNU_GETTEXT |
497 | ++AC_PREREQ(2.53) |
498 | + |
499 | +-# serial 8 |
500 | ++dnl |
501 | ++dnl We go to great lengths to make sure that aclocal won't |
502 | ++dnl try to pull in the installed version of these macros |
503 | ++dnl when running aclocal in the glib directory. |
504 | ++dnl |
505 | ++m4_copy([AC_DEFUN],[glib_DEFUN]) |
506 | ++m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
507 | ++dnl |
508 | ++dnl At the end, if we're not within glib, we'll define the public |
509 | ++dnl definitions in terms of our private definitions. |
510 | ++dnl |
511 | + |
512 | +-# AM_CONDITIONAL(NAME, SHELL-CONDITION) |
513 | +-# ------------------------------------- |
514 | +-# Define a conditional. |
515 | +-AC_DEFUN([AM_CONDITIONAL], |
516 | +-[AC_PREREQ(2.52)dnl |
517 | +- ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], |
518 | +- [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl |
519 | +-AC_SUBST([$1_TRUE])dnl |
520 | +-AC_SUBST([$1_FALSE])dnl |
521 | +-_AM_SUBST_NOTMAKE([$1_TRUE])dnl |
522 | +-_AM_SUBST_NOTMAKE([$1_FALSE])dnl |
523 | +-if $2; then |
524 | +- $1_TRUE= |
525 | +- $1_FALSE='#' |
526 | ++# GLIB_LC_MESSAGES |
527 | ++#-------------------- |
528 | ++glib_DEFUN([GLIB_LC_MESSAGES], |
529 | ++ [AC_CHECK_HEADERS([locale.h]) |
530 | ++ if test $ac_cv_header_locale_h = yes; then |
531 | ++ AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
532 | ++ [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
533 | ++ am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
534 | ++ if test $am_cv_val_LC_MESSAGES = yes; then |
535 | ++ AC_DEFINE(HAVE_LC_MESSAGES, 1, |
536 | ++ [Define if your <locale.h> file defines LC_MESSAGES.]) |
537 | ++ fi |
538 | ++ fi]) |
539 | ++ |
540 | ++# GLIB_PATH_PROG_WITH_TEST |
541 | ++#---------------------------- |
542 | ++dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
543 | ++dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
544 | ++glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
545 | ++[# Extract the first word of "$2", so it can be a program name with args. |
546 | ++set dummy $2; ac_word=[$]2 |
547 | ++AC_MSG_CHECKING([for $ac_word]) |
548 | ++AC_CACHE_VAL(ac_cv_path_$1, |
549 | ++[case "[$]$1" in |
550 | ++ /*) |
551 | ++ ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
552 | ++ ;; |
553 | ++ *) |
554 | ++ IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
555 | ++ for ac_dir in ifelse([$5], , $PATH, [$5]); do |
556 | ++ test -z "$ac_dir" && ac_dir=. |
557 | ++ if test -f $ac_dir/$ac_word; then |
558 | ++ if [$3]; then |
559 | ++ ac_cv_path_$1="$ac_dir/$ac_word" |
560 | ++ break |
561 | ++ fi |
562 | ++ fi |
563 | ++ done |
564 | ++ IFS="$ac_save_ifs" |
565 | ++dnl If no 4th arg is given, leave the cache variable unset, |
566 | ++dnl so AC_PATH_PROGS will keep looking. |
567 | ++ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
568 | ++])dnl |
569 | ++ ;; |
570 | ++esac])dnl |
571 | ++$1="$ac_cv_path_$1" |
572 | ++if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
573 | ++ AC_MSG_RESULT([$]$1) |
574 | + else |
575 | +- $1_TRUE='#' |
576 | +- $1_FALSE= |
577 | ++ AC_MSG_RESULT(no) |
578 | + fi |
579 | +-AC_CONFIG_COMMANDS_PRE( |
580 | +-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then |
581 | +- AC_MSG_ERROR([[conditional "$1" was never defined. |
582 | +-Usually this means the macro was only invoked conditionally.]]) |
583 | +-fi])]) |
584 | ++AC_SUBST($1)dnl |
585 | ++]) |
586 | + |
587 | +-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 |
588 | +-# Free Software Foundation, Inc. |
589 | +-# |
590 | +-# This file is free software; the Free Software Foundation |
591 | +-# gives unlimited permission to copy and/or distribute it, |
592 | +-# with or without modifications, as long as this notice is preserved. |
593 | ++# GLIB_WITH_NLS |
594 | ++#----------------- |
595 | ++glib_DEFUN([GLIB_WITH_NLS], |
596 | ++ dnl NLS is obligatory |
597 | ++ [USE_NLS=yes |
598 | ++ AC_SUBST(USE_NLS) |
599 | + |
600 | +-# serial 9 |
601 | ++ gt_cv_have_gettext=no |
602 | + |
603 | +-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be |
604 | +-# written in clear, in which case automake, when reading aclocal.m4, |
605 | +-# will think it sees a *use*, and therefore will trigger all it's |
606 | +-# C support machinery. Also note that it means that autoscan, seeing |
607 | +-# CC etc. in the Makefile, will ask for an AC_PROG_CC use... |
608 | ++ CATOBJEXT=NONE |
609 | ++ XGETTEXT=: |
610 | ++ INTLLIBS= |
611 | + |
612 | ++ AC_CHECK_HEADER(libintl.h, |
613 | ++ [gt_cv_func_dgettext_libintl="no" |
614 | ++ libintl_extra_libs="" |
615 | + |
616 | +-# _AM_DEPENDENCIES(NAME) |
617 | +-# ---------------------- |
618 | +-# See how the compiler implements dependency checking. |
619 | +-# NAME is "CC", "CXX", "GCJ", or "OBJC". |
620 | +-# We try a few techniques and use that to set a single cache variable. |
621 | +-# |
622 | +-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was |
623 | +-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular |
624 | +-# dependency, and given that the user is not expected to run this macro, |
625 | +-# just rely on AC_PROG_CC. |
626 | +-AC_DEFUN([_AM_DEPENDENCIES], |
627 | +-[AC_REQUIRE([AM_SET_DEPDIR])dnl |
628 | +-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl |
629 | +-AC_REQUIRE([AM_MAKE_INCLUDE])dnl |
630 | +-AC_REQUIRE([AM_DEP_TRACK])dnl |
631 | ++ # |
632 | ++ # First check in libc |
633 | ++ # |
634 | ++ AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
635 | ++ [AC_TRY_LINK([ |
636 | ++#include <libintl.h> |
637 | ++], |
638 | ++ [return !ngettext ("","", 1)], |
639 | ++ gt_cv_func_ngettext_libc=yes, |
640 | ++ gt_cv_func_ngettext_libc=no) |
641 | ++ ]) |
642 | ++ |
643 | ++ if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
644 | ++ AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
645 | ++ [AC_TRY_LINK([ |
646 | ++#include <libintl.h> |
647 | ++], |
648 | ++ [return !dgettext ("","")], |
649 | ++ gt_cv_func_dgettext_libc=yes, |
650 | ++ gt_cv_func_dgettext_libc=no) |
651 | ++ ]) |
652 | ++ fi |
653 | ++ |
654 | ++ if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
655 | ++ AC_CHECK_FUNCS(bind_textdomain_codeset) |
656 | ++ fi |
657 | + |
658 | +-ifelse([$1], CC, [depcc="$CC" am_compiler_list=], |
659 | +- [$1], CXX, [depcc="$CXX" am_compiler_list=], |
660 | +- [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], |
661 | +- [$1], UPC, [depcc="$UPC" am_compiler_list=], |
662 | +- [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], |
663 | +- [depcc="$$1" am_compiler_list=]) |
664 | ++ # |
665 | ++ # If we don't have everything we want, check in libintl |
666 | ++ # |
667 | ++ if test "$gt_cv_func_dgettext_libc" != "yes" \ |
668 | ++ || test "$gt_cv_func_ngettext_libc" != "yes" \ |
669 | ++ || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
670 | ++ |
671 | ++ AC_CHECK_LIB(intl, bindtextdomain, |
672 | ++ [AC_CHECK_LIB(intl, ngettext, |
673 | ++ [AC_CHECK_LIB(intl, dgettext, |
674 | ++ gt_cv_func_dgettext_libintl=yes)])]) |
675 | + |
676 | +-AC_CACHE_CHECK([dependency style of $depcc], |
677 | +- [am_cv_$1_dependencies_compiler_type], |
678 | +-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
679 | +- # We make a subdir and do the tests there. Otherwise we can end up |
680 | +- # making bogus files that we don't know about and never remove. For |
681 | +- # instance it was reported that on HP-UX the gcc test will end up |
682 | +- # making a dummy file named `D' -- because `-MD' means `put the output |
683 | +- # in D'. |
684 | +- mkdir conftest.dir |
685 | +- # Copy depcomp to subdir because otherwise we won't find it if we're |
686 | +- # using a relative directory. |
687 | +- cp "$am_depcomp" conftest.dir |
688 | +- cd conftest.dir |
689 | +- # We will build objects and dependencies in a subdirectory because |
690 | +- # it helps to detect inapplicable dependency modes. For instance |
691 | +- # both Tru64's cc and ICC support -MD to output dependencies as a |
692 | +- # side effect of compilation, but ICC will put the dependencies in |
693 | +- # the current directory while Tru64 will put them in the object |
694 | +- # directory. |
695 | +- mkdir sub |
696 | ++ if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
697 | ++ AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
698 | ++ AC_MSG_RESULT([]) |
699 | ++ AC_CHECK_LIB(intl, ngettext, |
700 | ++ [AC_CHECK_LIB(intl, dcgettext, |
701 | ++ [gt_cv_func_dgettext_libintl=yes |
702 | ++ libintl_extra_libs=-liconv], |
703 | ++ :,-liconv)], |
704 | ++ :,-liconv) |
705 | ++ fi |
706 | + |
707 | +- am_cv_$1_dependencies_compiler_type=none |
708 | +- if test "$am_compiler_list" = ""; then |
709 | +- am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` |
710 | +- fi |
711 | +- for depmode in $am_compiler_list; do |
712 | +- # Setup a source with many dependencies, because some compilers |
713 | +- # like to wrap large dependency lists on column 80 (with \), and |
714 | +- # we should not choose a depcomp mode which is confused by this. |
715 | +- # |
716 | +- # We need to recreate these files for each test, as the compiler may |
717 | +- # overwrite some of them when testing with obscure command lines. |
718 | +- # This happens at least with the AIX C compiler. |
719 | +- : > sub/conftest.c |
720 | +- for i in 1 2 3 4 5 6; do |
721 | +- echo '#include "conftst'$i'.h"' >> sub/conftest.c |
722 | +- # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
723 | +- # Solaris 8's {/usr,}/bin/sh. |
724 | +- touch sub/conftst$i.h |
725 | +- done |
726 | +- echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
727 | ++ # |
728 | ++ # If we found libintl, then check in it for bind_textdomain_codeset(); |
729 | ++ # we'll prefer libc if neither have bind_textdomain_codeset(), |
730 | ++ # and both have dgettext and ngettext |
731 | ++ # |
732 | ++ if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
733 | ++ glib_save_LIBS="$LIBS" |
734 | ++ LIBS="$LIBS -lintl $libintl_extra_libs" |
735 | ++ unset ac_cv_func_bind_textdomain_codeset |
736 | ++ AC_CHECK_FUNCS(bind_textdomain_codeset) |
737 | ++ LIBS="$glib_save_LIBS" |
738 | + |
739 | +- case $depmode in |
740 | +- nosideeffect) |
741 | +- # after this tag, mechanisms are not by side-effect, so they'll |
742 | +- # only be used when explicitly requested |
743 | +- if test "x$enable_dependency_tracking" = xyes; then |
744 | +- continue |
745 | +- else |
746 | +- break |
747 | +- fi |
748 | +- ;; |
749 | +- none) break ;; |
750 | +- esac |
751 | +- # We check with `-c' and `-o' for the sake of the "dashmstdout" |
752 | +- # mode. It turns out that the SunPro C++ compiler does not properly |
753 | +- # handle `-M -o', and we need to detect this. |
754 | +- if depmode=$depmode \ |
755 | +- source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
756 | +- depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
757 | +- $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
758 | +- >/dev/null 2>conftest.err && |
759 | +- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
760 | +- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
761 | +- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
762 | +- ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
763 | +- # icc doesn't choke on unknown options, it will just issue warnings |
764 | +- # or remarks (even with -Werror). So we grep stderr for any message |
765 | +- # that says an option was ignored or not supported. |
766 | +- # When given -MP, icc 7.0 and 7.1 complain thusly: |
767 | +- # icc: Command line warning: ignoring option '-M'; no argument required |
768 | +- # The diagnosis changed in icc 8.0: |
769 | +- # icc: Command line remark: option '-MP' not supported |
770 | +- if (grep 'ignoring option' conftest.err || |
771 | +- grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
772 | +- am_cv_$1_dependencies_compiler_type=$depmode |
773 | +- break |
774 | ++ if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
775 | ++ gt_cv_func_dgettext_libc=no |
776 | ++ else |
777 | ++ if test "$gt_cv_func_dgettext_libc" = "yes" \ |
778 | ++ && test "$gt_cv_func_ngettext_libc" = "yes"; then |
779 | ++ gt_cv_func_dgettext_libintl=no |
780 | ++ fi |
781 | ++ fi |
782 | ++ fi |
783 | + fi |
784 | +- fi |
785 | +- done |
786 | +- |
787 | +- cd .. |
788 | +- rm -rf conftest.dir |
789 | +-else |
790 | +- am_cv_$1_dependencies_compiler_type=none |
791 | +-fi |
792 | +-]) |
793 | +-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) |
794 | +-AM_CONDITIONAL([am__fastdep$1], [ |
795 | +- test "x$enable_dependency_tracking" != xno \ |
796 | +- && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) |
797 | +-]) |
798 | + |
799 | ++ if test "$gt_cv_func_dgettext_libc" = "yes" \ |
800 | ++ || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
801 | ++ gt_cv_have_gettext=yes |
802 | ++ fi |
803 | ++ |
804 | ++ if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
805 | ++ INTLLIBS="-lintl $libintl_extra_libs" |
806 | ++ fi |
807 | ++ |
808 | ++ if test "$gt_cv_have_gettext" = "yes"; then |
809 | ++ AC_DEFINE(HAVE_GETTEXT,1, |
810 | ++ [Define if the GNU gettext() function is already present or preinstalled.]) |
811 | ++ GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
812 | ++ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
813 | ++ if test "$MSGFMT" != "no"; then |
814 | ++ glib_save_LIBS="$LIBS" |
815 | ++ LIBS="$LIBS $INTLLIBS" |
816 | ++ AC_CHECK_FUNCS(dcgettext) |
817 | ++ MSGFMT_OPTS= |
818 | ++ AC_MSG_CHECKING([if msgfmt accepts -c]) |
819 | ++ GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
820 | ++msgid "" |
821 | ++msgstr "" |
822 | ++"Content-Type: text/plain; charset=UTF-8\n" |
823 | ++"Project-Id-Version: test 1.0\n" |
824 | ++"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
825 | ++"Last-Translator: test <foo@bar.xx>\n" |
826 | ++"Language-Team: C <LL@li.org>\n" |
827 | ++"MIME-Version: 1.0\n" |
828 | ++"Content-Transfer-Encoding: 8bit\n" |
829 | ++], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
830 | ++ AC_SUBST(MSGFMT_OPTS) |
831 | ++ AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
832 | ++ GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
833 | ++ [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
834 | ++ AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
835 | ++ return _nl_msg_cat_cntr], |
836 | ++ [CATOBJEXT=.gmo |
837 | ++ DATADIRNAME=share], |
838 | ++ [case $host in |
839 | ++ *-*-solaris*) |
840 | ++ dnl On Solaris, if bind_textdomain_codeset is in libc, |
841 | ++ dnl GNU format message catalog is always supported, |
842 | ++ dnl since both are added to the libc all together. |
843 | ++ dnl Hence, we'd like to go with DATADIRNAME=share and |
844 | ++ dnl and CATOBJEXT=.gmo in this case. |
845 | ++ AC_CHECK_FUNC(bind_textdomain_codeset, |
846 | ++ [CATOBJEXT=.gmo |
847 | ++ DATADIRNAME=share], |
848 | ++ [CATOBJEXT=.mo |
849 | ++ DATADIRNAME=lib]) |
850 | ++ ;; |
851 | ++ *) |
852 | ++ CATOBJEXT=.mo |
853 | ++ DATADIRNAME=lib |
854 | ++ ;; |
855 | ++ esac]) |
856 | ++ LIBS="$glib_save_LIBS" |
857 | ++ INSTOBJEXT=.mo |
858 | ++ else |
859 | ++ gt_cv_have_gettext=no |
860 | ++ fi |
861 | ++ fi |
862 | ++ ]) |
863 | + |
864 | +-# AM_SET_DEPDIR |
865 | +-# ------------- |
866 | +-# Choose a directory name for dependency files. |
867 | +-# This macro is AC_REQUIREd in _AM_DEPENDENCIES |
868 | +-AC_DEFUN([AM_SET_DEPDIR], |
869 | +-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
870 | +-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl |
871 | +-]) |
872 | +- |
873 | ++ if test "$gt_cv_have_gettext" = "yes" ; then |
874 | ++ AC_DEFINE(ENABLE_NLS, 1, |
875 | ++ [always defined to indicate that i18n is enabled]) |
876 | ++ fi |
877 | + |
878 | +-# AM_DEP_TRACK |
879 | +-# ------------ |
880 | +-AC_DEFUN([AM_DEP_TRACK], |
881 | +-[AC_ARG_ENABLE(dependency-tracking, |
882 | +-[ --disable-dependency-tracking speeds up one-time build |
883 | +- --enable-dependency-tracking do not reject slow dependency extractors]) |
884 | +-if test "x$enable_dependency_tracking" != xno; then |
885 | +- am_depcomp="$ac_aux_dir/depcomp" |
886 | +- AMDEPBACKSLASH='\' |
887 | +-fi |
888 | +-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) |
889 | +-AC_SUBST([AMDEPBACKSLASH])dnl |
890 | +-_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl |
891 | +-]) |
892 | +- |
893 | +-# Generate code to set up dependency tracking. -*- Autoconf -*- |
894 | +- |
895 | +-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
896 | +-# Free Software Foundation, Inc. |
897 | +-# |
898 | +-# This file is free software; the Free Software Foundation |
899 | +-# gives unlimited permission to copy and/or distribute it, |
900 | +-# with or without modifications, as long as this notice is preserved. |
901 | +- |
902 | +-#serial 3 |
903 | +- |
904 | +-# _AM_OUTPUT_DEPENDENCY_COMMANDS |
905 | +-# ------------------------------ |
906 | +-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], |
907 | +-[for mf in $CONFIG_FILES; do |
908 | +- # Strip MF so we end up with the name of the file. |
909 | +- mf=`echo "$mf" | sed -e 's/:.*$//'` |
910 | +- # Check whether this is an Automake generated Makefile or not. |
911 | +- # We used to match only the files named `Makefile.in', but |
912 | +- # some people rename them; so instead we look at the file content. |
913 | +- # Grep'ing the first line is not enough: some people post-process |
914 | +- # each Makefile.in and add a new line on top of each file to say so. |
915 | +- # Grep'ing the whole file is not good either: AIX grep has a line |
916 | +- # limit of 2048, but all sed's we know have understand at least 4000. |
917 | +- if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
918 | +- dirpart=`AS_DIRNAME("$mf")` |
919 | +- else |
920 | +- continue |
921 | +- fi |
922 | +- # Extract the definition of DEPDIR, am__include, and am__quote |
923 | +- # from the Makefile without running `make'. |
924 | +- DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
925 | +- test -z "$DEPDIR" && continue |
926 | +- am__include=`sed -n 's/^am__include = //p' < "$mf"` |
927 | +- test -z "am__include" && continue |
928 | +- am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
929 | +- # When using ansi2knr, U may be empty or an underscore; expand it |
930 | +- U=`sed -n 's/^U = //p' < "$mf"` |
931 | +- # Find all dependency output files, they are included files with |
932 | +- # $(DEPDIR) in their names. We invoke sed twice because it is the |
933 | +- # simplest approach to changing $(DEPDIR) to its actual value in the |
934 | +- # expansion. |
935 | +- for file in `sed -n " |
936 | +- s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
937 | +- sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
938 | +- # Make sure the directory exists. |
939 | +- test -f "$dirpart/$file" && continue |
940 | +- fdir=`AS_DIRNAME(["$file"])` |
941 | +- AS_MKDIR_P([$dirpart/$fdir]) |
942 | +- # echo "creating $dirpart/$file" |
943 | +- echo '# dummy' > "$dirpart/$file" |
944 | +- done |
945 | +-done |
946 | +-])# _AM_OUTPUT_DEPENDENCY_COMMANDS |
947 | +- |
948 | +- |
949 | +-# AM_OUTPUT_DEPENDENCY_COMMANDS |
950 | +-# ----------------------------- |
951 | +-# This macro should only be invoked once -- use via AC_REQUIRE. |
952 | +-# |
953 | +-# This code is only required when automatic dependency tracking |
954 | +-# is enabled. FIXME. This creates each `.P' file that we will |
955 | +-# need in order to bootstrap the dependency handling code. |
956 | +-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], |
957 | +-[AC_CONFIG_COMMANDS([depfiles], |
958 | +- [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], |
959 | +- [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) |
960 | +-]) |
961 | +- |
962 | +-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
963 | +-# Free Software Foundation, Inc. |
964 | +-# |
965 | +-# This file is free software; the Free Software Foundation |
966 | +-# gives unlimited permission to copy and/or distribute it, |
967 | +-# with or without modifications, as long as this notice is preserved. |
968 | +- |
969 | +-# serial 8 |
970 | +- |
971 | +-# AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS. |
972 | +-AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)]) |
973 | +- |
974 | +-# Do all the work for Automake. -*- Autoconf -*- |
975 | +- |
976 | +-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
977 | +-# 2005, 2006, 2008 Free Software Foundation, Inc. |
978 | +-# |
979 | +-# This file is free software; the Free Software Foundation |
980 | +-# gives unlimited permission to copy and/or distribute it, |
981 | +-# with or without modifications, as long as this notice is preserved. |
982 | +- |
983 | +-# serial 13 |
984 | +- |
985 | +-# This macro actually does too much. Some checks are only needed if |
986 | +-# your package does certain things. But this isn't really a big deal. |
987 | +- |
988 | +-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) |
989 | +-# AM_INIT_AUTOMAKE([OPTIONS]) |
990 | +-# ----------------------------------------------- |
991 | +-# The call with PACKAGE and VERSION arguments is the old style |
992 | +-# call (pre autoconf-2.50), which is being phased out. PACKAGE |
993 | +-# and VERSION should now be passed to AC_INIT and removed from |
994 | +-# the call to AM_INIT_AUTOMAKE. |
995 | +-# We support both call styles for the transition. After |
996 | +-# the next Automake release, Autoconf can make the AC_INIT |
997 | +-# arguments mandatory, and then we can depend on a new Autoconf |
998 | +-# release and drop the old call support. |
999 | +-AC_DEFUN([AM_INIT_AUTOMAKE], |
1000 | +-[AC_PREREQ([2.60])dnl |
1001 | +-dnl Autoconf wants to disallow AM_ names. We explicitly allow |
1002 | +-dnl the ones we care about. |
1003 | +-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl |
1004 | +-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
1005 | +-AC_REQUIRE([AC_PROG_INSTALL])dnl |
1006 | +-if test "`cd $srcdir && pwd`" != "`pwd`"; then |
1007 | +- # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
1008 | +- # is not polluted with repeated "-I." |
1009 | +- AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl |
1010 | +- # test to see if srcdir already configured |
1011 | +- if test -f $srcdir/config.status; then |
1012 | +- AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) |
1013 | +- fi |
1014 | +-fi |
1015 | +- |
1016 | +-# test whether we have cygpath |
1017 | +-if test -z "$CYGPATH_W"; then |
1018 | +- if (cygpath --version) >/dev/null 2>/dev/null; then |
1019 | +- CYGPATH_W='cygpath -w' |
1020 | +- else |
1021 | +- CYGPATH_W=echo |
1022 | +- fi |
1023 | +-fi |
1024 | +-AC_SUBST([CYGPATH_W]) |
1025 | +- |
1026 | +-# Define the identity of the package. |
1027 | +-dnl Distinguish between old-style and new-style calls. |
1028 | +-m4_ifval([$2], |
1029 | +-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl |
1030 | +- AC_SUBST([PACKAGE], [$1])dnl |
1031 | +- AC_SUBST([VERSION], [$2])], |
1032 | +-[_AM_SET_OPTIONS([$1])dnl |
1033 | +-dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. |
1034 | +-m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, |
1035 | +- [m4_fatal([AC_INIT should be called with package and version arguments])])dnl |
1036 | +- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl |
1037 | +- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl |
1038 | +- |
1039 | +-_AM_IF_OPTION([no-define],, |
1040 | +-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) |
1041 | +- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl |
1042 | +- |
1043 | +-# Some tools Automake needs. |
1044 | +-AC_REQUIRE([AM_SANITY_CHECK])dnl |
1045 | +-AC_REQUIRE([AC_ARG_PROGRAM])dnl |
1046 | +-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) |
1047 | +-AM_MISSING_PROG(AUTOCONF, autoconf) |
1048 | +-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) |
1049 | +-AM_MISSING_PROG(AUTOHEADER, autoheader) |
1050 | +-AM_MISSING_PROG(MAKEINFO, makeinfo) |
1051 | +-AM_PROG_INSTALL_SH |
1052 | +-AM_PROG_INSTALL_STRIP |
1053 | +-AC_REQUIRE([AM_PROG_MKDIR_P])dnl |
1054 | +-# We need awk for the "check" target. The system "awk" is bad on |
1055 | +-# some platforms. |
1056 | +-AC_REQUIRE([AC_PROG_AWK])dnl |
1057 | +-AC_REQUIRE([AC_PROG_MAKE_SET])dnl |
1058 | +-AC_REQUIRE([AM_SET_LEADING_DOT])dnl |
1059 | +-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], |
1060 | +- [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], |
1061 | +- [_AM_PROG_TAR([v7])])]) |
1062 | +-_AM_IF_OPTION([no-dependencies],, |
1063 | +-[AC_PROVIDE_IFELSE([AC_PROG_CC], |
1064 | +- [_AM_DEPENDENCIES(CC)], |
1065 | +- [define([AC_PROG_CC], |
1066 | +- defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl |
1067 | +-AC_PROVIDE_IFELSE([AC_PROG_CXX], |
1068 | +- [_AM_DEPENDENCIES(CXX)], |
1069 | +- [define([AC_PROG_CXX], |
1070 | +- defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl |
1071 | +-AC_PROVIDE_IFELSE([AC_PROG_OBJC], |
1072 | +- [_AM_DEPENDENCIES(OBJC)], |
1073 | +- [define([AC_PROG_OBJC], |
1074 | +- defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl |
1075 | +-]) |
1076 | +-]) |
1077 | +- |
1078 | +- |
1079 | +-# When config.status generates a header, we must update the stamp-h file. |
1080 | +-# This file resides in the same directory as the config header |
1081 | +-# that is generated. The stamp files are numbered to have different names. |
1082 | +- |
1083 | +-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the |
1084 | +-# loop where config.status creates the headers, so we can generate |
1085 | +-# our stamp files there. |
1086 | +-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], |
1087 | +-[# Compute $1's index in $config_headers. |
1088 | +-_am_arg=$1 |
1089 | +-_am_stamp_count=1 |
1090 | +-for _am_header in $config_headers :; do |
1091 | +- case $_am_header in |
1092 | +- $_am_arg | $_am_arg:* ) |
1093 | +- break ;; |
1094 | +- * ) |
1095 | +- _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
1096 | +- esac |
1097 | +-done |
1098 | +-echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) |
1099 | +- |
1100 | +-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
1101 | +-# |
1102 | +-# This file is free software; the Free Software Foundation |
1103 | +-# gives unlimited permission to copy and/or distribute it, |
1104 | +-# with or without modifications, as long as this notice is preserved. |
1105 | +- |
1106 | +-# AM_PROG_INSTALL_SH |
1107 | +-# ------------------ |
1108 | +-# Define $install_sh. |
1109 | +-AC_DEFUN([AM_PROG_INSTALL_SH], |
1110 | +-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
1111 | +-install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
1112 | +-AC_SUBST(install_sh)]) |
1113 | +- |
1114 | +-# Copyright (C) 2003, 2005 Free Software Foundation, Inc. |
1115 | +-# |
1116 | +-# This file is free software; the Free Software Foundation |
1117 | +-# gives unlimited permission to copy and/or distribute it, |
1118 | +-# with or without modifications, as long as this notice is preserved. |
1119 | +- |
1120 | +-# serial 2 |
1121 | +- |
1122 | +-# Check whether the underlying file-system supports filenames |
1123 | +-# with a leading dot. For instance MS-DOS doesn't. |
1124 | +-AC_DEFUN([AM_SET_LEADING_DOT], |
1125 | +-[rm -rf .tst 2>/dev/null |
1126 | +-mkdir .tst 2>/dev/null |
1127 | +-if test -d .tst; then |
1128 | +- am__leading_dot=. |
1129 | +-else |
1130 | +- am__leading_dot=_ |
1131 | +-fi |
1132 | +-rmdir .tst 2>/dev/null |
1133 | +-AC_SUBST([am__leading_dot])]) |
1134 | +- |
1135 | +-# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- |
1136 | +-# From Jim Meyering |
1137 | +- |
1138 | +-# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005 |
1139 | +-# Free Software Foundation, Inc. |
1140 | +-# |
1141 | +-# This file is free software; the Free Software Foundation |
1142 | +-# gives unlimited permission to copy and/or distribute it, |
1143 | +-# with or without modifications, as long as this notice is preserved. |
1144 | +- |
1145 | +-# serial 4 |
1146 | +- |
1147 | +-AC_DEFUN([AM_MAINTAINER_MODE], |
1148 | +-[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
1149 | +- dnl maintainer-mode is disabled by default |
1150 | +- AC_ARG_ENABLE(maintainer-mode, |
1151 | +-[ --enable-maintainer-mode enable make rules and dependencies not useful |
1152 | +- (and sometimes confusing) to the casual installer], |
1153 | +- USE_MAINTAINER_MODE=$enableval, |
1154 | +- USE_MAINTAINER_MODE=no) |
1155 | +- AC_MSG_RESULT([$USE_MAINTAINER_MODE]) |
1156 | +- AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) |
1157 | +- MAINT=$MAINTAINER_MODE_TRUE |
1158 | +- AC_SUBST(MAINT)dnl |
1159 | +-] |
1160 | +-) |
1161 | +- |
1162 | +-AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) |
1163 | +- |
1164 | +-# Check to see how 'make' treats includes. -*- Autoconf -*- |
1165 | +- |
1166 | +-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
1167 | +-# |
1168 | +-# This file is free software; the Free Software Foundation |
1169 | +-# gives unlimited permission to copy and/or distribute it, |
1170 | +-# with or without modifications, as long as this notice is preserved. |
1171 | +- |
1172 | +-# serial 3 |
1173 | +- |
1174 | +-# AM_MAKE_INCLUDE() |
1175 | +-# ----------------- |
1176 | +-# Check to see how make treats includes. |
1177 | +-AC_DEFUN([AM_MAKE_INCLUDE], |
1178 | +-[am_make=${MAKE-make} |
1179 | +-cat > confinc << 'END' |
1180 | +-am__doit: |
1181 | +- @echo done |
1182 | +-.PHONY: am__doit |
1183 | +-END |
1184 | +-# If we don't find an include directive, just comment out the code. |
1185 | +-AC_MSG_CHECKING([for style of include used by $am_make]) |
1186 | +-am__include="#" |
1187 | +-am__quote= |
1188 | +-_am_result=none |
1189 | +-# First try GNU make style include. |
1190 | +-echo "include confinc" > confmf |
1191 | +-# We grep out `Entering directory' and `Leaving directory' |
1192 | +-# messages which can occur if `w' ends up in MAKEFLAGS. |
1193 | +-# In particular we don't look at `^make:' because GNU make might |
1194 | +-# be invoked under some other name (usually "gmake"), in which |
1195 | +-# case it prints its new name instead of `make'. |
1196 | +-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
1197 | +- am__include=include |
1198 | +- am__quote= |
1199 | +- _am_result=GNU |
1200 | +-fi |
1201 | +-# Now try BSD make style include. |
1202 | +-if test "$am__include" = "#"; then |
1203 | +- echo '.include "confinc"' > confmf |
1204 | +- if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
1205 | +- am__include=.include |
1206 | +- am__quote="\"" |
1207 | +- _am_result=BSD |
1208 | +- fi |
1209 | +-fi |
1210 | +-AC_SUBST([am__include]) |
1211 | +-AC_SUBST([am__quote]) |
1212 | +-AC_MSG_RESULT([$_am_result]) |
1213 | +-rm -f confinc confmf |
1214 | +-]) |
1215 | +- |
1216 | +-# Copyright (C) 1999, 2000, 2001, 2003, 2004, 2005 |
1217 | +-# Free Software Foundation, Inc. |
1218 | +-# |
1219 | +-# This file is free software; the Free Software Foundation |
1220 | +-# gives unlimited permission to copy and/or distribute it, |
1221 | +-# with or without modifications, as long as this notice is preserved. |
1222 | +- |
1223 | +-# serial 5 |
1224 | +- |
1225 | +-# AM_PROG_CC_C_O |
1226 | +-# -------------- |
1227 | +-# Like AC_PROG_CC_C_O, but changed for automake. |
1228 | +-AC_DEFUN([AM_PROG_CC_C_O], |
1229 | +-[AC_REQUIRE([AC_PROG_CC_C_O])dnl |
1230 | +-AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
1231 | +-AC_REQUIRE_AUX_FILE([compile])dnl |
1232 | +-# FIXME: we rely on the cache variable name because |
1233 | +-# there is no other way. |
1234 | +-set dummy $CC |
1235 | +-ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']` |
1236 | +-if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
1237 | +- # Losing compiler, so override with the script. |
1238 | +- # FIXME: It is wrong to rewrite CC. |
1239 | +- # But if we don't then we get into trouble of one sort or another. |
1240 | +- # A longer-term fix would be to have automake use am__CC in this case, |
1241 | +- # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
1242 | +- CC="$am_aux_dir/compile $CC" |
1243 | +-fi |
1244 | +-dnl Make sure AC_PROG_CC is never called again, or it will override our |
1245 | +-dnl setting of CC. |
1246 | +-m4_define([AC_PROG_CC], |
1247 | +- [m4_fatal([AC_PROG_CC cannot be called after AM_PROG_CC_C_O])]) |
1248 | +-]) |
1249 | +- |
1250 | +-# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- |
1251 | +- |
1252 | +-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005 |
1253 | +-# Free Software Foundation, Inc. |
1254 | +-# |
1255 | +-# This file is free software; the Free Software Foundation |
1256 | +-# gives unlimited permission to copy and/or distribute it, |
1257 | +-# with or without modifications, as long as this notice is preserved. |
1258 | +- |
1259 | +-# serial 5 |
1260 | +- |
1261 | +-# AM_MISSING_PROG(NAME, PROGRAM) |
1262 | +-# ------------------------------ |
1263 | +-AC_DEFUN([AM_MISSING_PROG], |
1264 | +-[AC_REQUIRE([AM_MISSING_HAS_RUN]) |
1265 | +-$1=${$1-"${am_missing_run}$2"} |
1266 | +-AC_SUBST($1)]) |
1267 | +- |
1268 | +- |
1269 | +-# AM_MISSING_HAS_RUN |
1270 | +-# ------------------ |
1271 | +-# Define MISSING if not defined so far and test if it supports --run. |
1272 | +-# If it does, set am_missing_run to use it, otherwise, to nothing. |
1273 | +-AC_DEFUN([AM_MISSING_HAS_RUN], |
1274 | +-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl |
1275 | +-AC_REQUIRE_AUX_FILE([missing])dnl |
1276 | +-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
1277 | +-# Use eval to expand $SHELL |
1278 | +-if eval "$MISSING --run true"; then |
1279 | +- am_missing_run="$MISSING --run " |
1280 | +-else |
1281 | +- am_missing_run= |
1282 | +- AC_MSG_WARN([`missing' script is too old or missing]) |
1283 | +-fi |
1284 | +-]) |
1285 | +- |
1286 | +-# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1287 | +-# |
1288 | +-# This file is free software; the Free Software Foundation |
1289 | +-# gives unlimited permission to copy and/or distribute it, |
1290 | +-# with or without modifications, as long as this notice is preserved. |
1291 | +- |
1292 | +-# AM_PROG_MKDIR_P |
1293 | +-# --------------- |
1294 | +-# Check for `mkdir -p'. |
1295 | +-AC_DEFUN([AM_PROG_MKDIR_P], |
1296 | +-[AC_PREREQ([2.60])dnl |
1297 | +-AC_REQUIRE([AC_PROG_MKDIR_P])dnl |
1298 | +-dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, |
1299 | +-dnl while keeping a definition of mkdir_p for backward compatibility. |
1300 | +-dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. |
1301 | +-dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of |
1302 | +-dnl Makefile.ins that do not define MKDIR_P, so we do our own |
1303 | +-dnl adjustment using top_builddir (which is defined more often than |
1304 | +-dnl MKDIR_P). |
1305 | +-AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl |
1306 | +-case $mkdir_p in |
1307 | +- [[\\/$]]* | ?:[[\\/]]*) ;; |
1308 | +- */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
1309 | +-esac |
1310 | +-]) |
1311 | +- |
1312 | +-# Helper functions for option handling. -*- Autoconf -*- |
1313 | +- |
1314 | +-# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc. |
1315 | +-# |
1316 | +-# This file is free software; the Free Software Foundation |
1317 | +-# gives unlimited permission to copy and/or distribute it, |
1318 | +-# with or without modifications, as long as this notice is preserved. |
1319 | +- |
1320 | +-# serial 3 |
1321 | +- |
1322 | +-# _AM_MANGLE_OPTION(NAME) |
1323 | +-# ----------------------- |
1324 | +-AC_DEFUN([_AM_MANGLE_OPTION], |
1325 | +-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) |
1326 | +- |
1327 | +-# _AM_SET_OPTION(NAME) |
1328 | +-# ------------------------------ |
1329 | +-# Set option NAME. Presently that only means defining a flag for this option. |
1330 | +-AC_DEFUN([_AM_SET_OPTION], |
1331 | +-[m4_define(_AM_MANGLE_OPTION([$1]), 1)]) |
1332 | +- |
1333 | +-# _AM_SET_OPTIONS(OPTIONS) |
1334 | +-# ---------------------------------- |
1335 | +-# OPTIONS is a space-separated list of Automake options. |
1336 | +-AC_DEFUN([_AM_SET_OPTIONS], |
1337 | +-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) |
1338 | +- |
1339 | +-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) |
1340 | +-# ------------------------------------------- |
1341 | +-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. |
1342 | +-AC_DEFUN([_AM_IF_OPTION], |
1343 | +-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) |
1344 | +- |
1345 | +-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
1346 | +-# |
1347 | +-# This file is free software; the Free Software Foundation |
1348 | +-# gives unlimited permission to copy and/or distribute it, |
1349 | +-# with or without modifications, as long as this notice is preserved. |
1350 | +- |
1351 | +-# AM_RUN_LOG(COMMAND) |
1352 | +-# ------------------- |
1353 | +-# Run COMMAND, save the exit status in ac_status, and log it. |
1354 | +-# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) |
1355 | +-AC_DEFUN([AM_RUN_LOG], |
1356 | +-[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD |
1357 | +- ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD |
1358 | +- ac_status=$? |
1359 | +- echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1360 | +- (exit $ac_status); }]) |
1361 | +- |
1362 | +-# Check to make sure that the build environment is sane. -*- Autoconf -*- |
1363 | +- |
1364 | +-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005 |
1365 | +-# Free Software Foundation, Inc. |
1366 | +-# |
1367 | +-# This file is free software; the Free Software Foundation |
1368 | +-# gives unlimited permission to copy and/or distribute it, |
1369 | +-# with or without modifications, as long as this notice is preserved. |
1370 | +- |
1371 | +-# serial 4 |
1372 | +- |
1373 | +-# AM_SANITY_CHECK |
1374 | +-# --------------- |
1375 | +-AC_DEFUN([AM_SANITY_CHECK], |
1376 | +-[AC_MSG_CHECKING([whether build environment is sane]) |
1377 | +-# Just in case |
1378 | +-sleep 1 |
1379 | +-echo timestamp > conftest.file |
1380 | +-# Do `set' in a subshell so we don't clobber the current shell's |
1381 | +-# arguments. Must try -L first in case configure is actually a |
1382 | +-# symlink; some systems play weird games with the mod time of symlinks |
1383 | +-# (eg FreeBSD returns the mod time of the symlink's containing |
1384 | +-# directory). |
1385 | +-if ( |
1386 | +- set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
1387 | +- if test "$[*]" = "X"; then |
1388 | +- # -L didn't work. |
1389 | +- set X `ls -t $srcdir/configure conftest.file` |
1390 | +- fi |
1391 | +- rm -f conftest.file |
1392 | +- if test "$[*]" != "X $srcdir/configure conftest.file" \ |
1393 | +- && test "$[*]" != "X conftest.file $srcdir/configure"; then |
1394 | +- |
1395 | +- # If neither matched, then we have a broken ls. This can happen |
1396 | +- # if, for instance, CONFIG_SHELL is bash and it inherits a |
1397 | +- # broken ls alias from the environment. This has actually |
1398 | +- # happened. Such a system could not be considered "sane". |
1399 | +- AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken |
1400 | +-alias in your environment]) |
1401 | +- fi |
1402 | +- |
1403 | +- test "$[2]" = conftest.file |
1404 | +- ) |
1405 | +-then |
1406 | +- # Ok. |
1407 | +- : |
1408 | +-else |
1409 | +- AC_MSG_ERROR([newly created file is older than distributed files! |
1410 | +-Check your system clock]) |
1411 | +-fi |
1412 | +-AC_MSG_RESULT(yes)]) |
1413 | +- |
1414 | +-# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. |
1415 | +-# |
1416 | +-# This file is free software; the Free Software Foundation |
1417 | +-# gives unlimited permission to copy and/or distribute it, |
1418 | +-# with or without modifications, as long as this notice is preserved. |
1419 | +- |
1420 | +-# AM_PROG_INSTALL_STRIP |
1421 | +-# --------------------- |
1422 | +-# One issue with vendor `install' (even GNU) is that you can't |
1423 | +-# specify the program used to strip binaries. This is especially |
1424 | +-# annoying in cross-compiling environments, where the build's strip |
1425 | +-# is unlikely to handle the host's binaries. |
1426 | +-# Fortunately install-sh will honor a STRIPPROG variable, so we |
1427 | +-# always use install-sh in `make install-strip', and initialize |
1428 | +-# STRIPPROG with the value of the STRIP variable (set by the user). |
1429 | +-AC_DEFUN([AM_PROG_INSTALL_STRIP], |
1430 | +-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl |
1431 | +-# Installed binaries are usually stripped using `strip' when the user |
1432 | +-# run `make install-strip'. However `strip' might not be the right |
1433 | +-# tool to use in cross-compilation environments, therefore Automake |
1434 | +-# will honor the `STRIP' environment variable to overrule this program. |
1435 | +-dnl Don't test for $cross_compiling = yes, because it might be `maybe'. |
1436 | +-if test "$cross_compiling" != no; then |
1437 | +- AC_CHECK_TOOL([STRIP], [strip], :) |
1438 | +-fi |
1439 | +-INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
1440 | +-AC_SUBST([INSTALL_STRIP_PROGRAM])]) |
1441 | +- |
1442 | +-# Copyright (C) 2006 Free Software Foundation, Inc. |
1443 | +-# |
1444 | +-# This file is free software; the Free Software Foundation |
1445 | +-# gives unlimited permission to copy and/or distribute it, |
1446 | +-# with or without modifications, as long as this notice is preserved. |
1447 | +- |
1448 | +-# _AM_SUBST_NOTMAKE(VARIABLE) |
1449 | +-# --------------------------- |
1450 | +-# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. |
1451 | +-# This macro is traced by Automake. |
1452 | +-AC_DEFUN([_AM_SUBST_NOTMAKE]) |
1453 | +- |
1454 | +-# Check how to create a tarball. -*- Autoconf -*- |
1455 | +- |
1456 | +-# Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
1457 | +-# |
1458 | +-# This file is free software; the Free Software Foundation |
1459 | +-# gives unlimited permission to copy and/or distribute it, |
1460 | +-# with or without modifications, as long as this notice is preserved. |
1461 | +- |
1462 | +-# serial 2 |
1463 | +- |
1464 | +-# _AM_PROG_TAR(FORMAT) |
1465 | +-# -------------------- |
1466 | +-# Check how to create a tarball in format FORMAT. |
1467 | +-# FORMAT should be one of `v7', `ustar', or `pax'. |
1468 | +-# |
1469 | +-# Substitute a variable $(am__tar) that is a command |
1470 | +-# writing to stdout a FORMAT-tarball containing the directory |
1471 | +-# $tardir. |
1472 | +-# tardir=directory && $(am__tar) > result.tar |
1473 | +-# |
1474 | +-# Substitute a variable $(am__untar) that extract such |
1475 | +-# a tarball read from stdin. |
1476 | +-# $(am__untar) < result.tar |
1477 | +-AC_DEFUN([_AM_PROG_TAR], |
1478 | +-[# Always define AMTAR for backward compatibility. |
1479 | +-AM_MISSING_PROG([AMTAR], [tar]) |
1480 | +-m4_if([$1], [v7], |
1481 | +- [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], |
1482 | +- [m4_case([$1], [ustar],, [pax],, |
1483 | +- [m4_fatal([Unknown tar format])]) |
1484 | +-AC_MSG_CHECKING([how to create a $1 tar archive]) |
1485 | +-# Loop over all known methods to create a tar archive until one works. |
1486 | +-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' |
1487 | +-_am_tools=${am_cv_prog_tar_$1-$_am_tools} |
1488 | +-# Do not fold the above two line into one, because Tru64 sh and |
1489 | +-# Solaris sh will not grok spaces in the rhs of `-'. |
1490 | +-for _am_tool in $_am_tools |
1491 | +-do |
1492 | +- case $_am_tool in |
1493 | +- gnutar) |
1494 | +- for _am_tar in tar gnutar gtar; |
1495 | +- do |
1496 | +- AM_RUN_LOG([$_am_tar --version]) && break |
1497 | +- done |
1498 | +- am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' |
1499 | +- am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' |
1500 | +- am__untar="$_am_tar -xf -" |
1501 | +- ;; |
1502 | +- plaintar) |
1503 | +- # Must skip GNU tar: if it does not support --format= it doesn't create |
1504 | +- # ustar tarball either. |
1505 | +- (tar --version) >/dev/null 2>&1 && continue |
1506 | +- am__tar='tar chf - "$$tardir"' |
1507 | +- am__tar_='tar chf - "$tardir"' |
1508 | +- am__untar='tar xf -' |
1509 | +- ;; |
1510 | +- pax) |
1511 | +- am__tar='pax -L -x $1 -w "$$tardir"' |
1512 | +- am__tar_='pax -L -x $1 -w "$tardir"' |
1513 | +- am__untar='pax -r' |
1514 | +- ;; |
1515 | +- cpio) |
1516 | +- am__tar='find "$$tardir" -print | cpio -o -H $1 -L' |
1517 | +- am__tar_='find "$tardir" -print | cpio -o -H $1 -L' |
1518 | +- am__untar='cpio -i -H $1 -d' |
1519 | +- ;; |
1520 | +- none) |
1521 | +- am__tar=false |
1522 | +- am__tar_=false |
1523 | +- am__untar=false |
1524 | +- ;; |
1525 | +- esac |
1526 | +- |
1527 | +- # If the value was cached, stop now. We just wanted to have am__tar |
1528 | +- # and am__untar set. |
1529 | +- test -n "${am_cv_prog_tar_$1}" && break |
1530 | +- |
1531 | +- # tar/untar a dummy directory, and stop if the command works |
1532 | +- rm -rf conftest.dir |
1533 | +- mkdir conftest.dir |
1534 | +- echo GrepMe > conftest.dir/file |
1535 | +- AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) |
1536 | +- rm -rf conftest.dir |
1537 | +- if test -s conftest.tar; then |
1538 | +- AM_RUN_LOG([$am__untar <conftest.tar]) |
1539 | +- grep GrepMe conftest.dir/file >/dev/null 2>&1 && break |
1540 | +- fi |
1541 | +-done |
1542 | +-rm -rf conftest.dir |
1543 | +- |
1544 | +-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) |
1545 | +-AC_MSG_RESULT([$am_cv_prog_tar_$1])]) |
1546 | +-AC_SUBST([am__tar]) |
1547 | +-AC_SUBST([am__untar]) |
1548 | +-]) # _AM_PROG_TAR |
1549 | +- |
1550 | +-dnl AM_GCONF_SOURCE_2 |
1551 | +-dnl Defines GCONF_SCHEMA_CONFIG_SOURCE which is where you should install schemas |
1552 | +-dnl (i.e. pass to gconftool-2 |
1553 | +-dnl Defines GCONF_SCHEMA_FILE_DIR which is a filesystem directory where |
1554 | +-dnl you should install foo.schemas files |
1555 | +-dnl |
1556 | +- |
1557 | +-AC_DEFUN([AM_GCONF_SOURCE_2], |
1558 | +-[ |
1559 | +- if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then |
1560 | +- GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
1561 | +- else |
1562 | +- GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE |
1563 | +- fi |
1564 | +- |
1565 | +- AC_ARG_WITH([gconf-source], |
1566 | +- AC_HELP_STRING([--with-gconf-source=sourceaddress], |
1567 | +- [Config database for installing schema files.]), |
1568 | +- [GCONF_SCHEMA_CONFIG_SOURCE="$withval"],) |
1569 | +- |
1570 | +- AC_SUBST(GCONF_SCHEMA_CONFIG_SOURCE) |
1571 | +- AC_MSG_RESULT([Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation]) |
1572 | +- |
1573 | +- if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then |
1574 | +- GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas' |
1575 | +- fi |
1576 | +- |
1577 | +- AC_ARG_WITH([gconf-schema-file-dir], |
1578 | +- AC_HELP_STRING([--with-gconf-schema-file-dir=dir], |
1579 | +- [Directory for installing schema files.]), |
1580 | +- [GCONF_SCHEMA_FILE_DIR="$withval"],) |
1581 | +- |
1582 | +- AC_SUBST(GCONF_SCHEMA_FILE_DIR) |
1583 | +- AC_MSG_RESULT([Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files]) |
1584 | +- |
1585 | +- AC_ARG_ENABLE(schemas-install, |
1586 | +- [ --disable-schemas-install Disable the schemas installation], |
1587 | +- [case ${enableval} in |
1588 | +- yes|no) ;; |
1589 | +- *) AC_MSG_ERROR(bad value ${enableval} for --enable-schemas-install) ;; |
1590 | +- esac]) |
1591 | +- AM_CONDITIONAL([GCONF_SCHEMAS_INSTALL], [test "$enable_schemas_install" != no]) |
1592 | +-]) |
1593 | +- |
1594 | +-# Copyright (C) 1995-2002 Free Software Foundation, Inc. |
1595 | +-# Copyright (C) 2001-2003,2004 Red Hat, Inc. |
1596 | +-# |
1597 | +-# This file is free software, distributed under the terms of the GNU |
1598 | +-# General Public License. As a special exception to the GNU General |
1599 | +-# Public License, this file may be distributed as part of a program |
1600 | +-# that contains a configuration script generated by Autoconf, under |
1601 | +-# the same distribution terms as the rest of that program. |
1602 | +-# |
1603 | +-# This file can be copied and used freely without restrictions. It can |
1604 | +-# be used in projects which are not available under the GNU Public License |
1605 | +-# but which still want to provide support for the GNU gettext functionality. |
1606 | +-# |
1607 | +-# Macro to add for using GNU gettext. |
1608 | +-# Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 |
1609 | +-# |
1610 | +-# Modified to never use included libintl. |
1611 | +-# Owen Taylor <otaylor@redhat.com>, 12/15/1998 |
1612 | +-# |
1613 | +-# Major rework to remove unused code |
1614 | +-# Owen Taylor <otaylor@redhat.com>, 12/11/2002 |
1615 | +-# |
1616 | +-# Added better handling of ALL_LINGUAS from GNU gettext version |
1617 | +-# written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 |
1618 | +-# |
1619 | +-# Modified to require ngettext |
1620 | +-# Matthias Clasen <mclasen@redhat.com> 08/06/2004 |
1621 | +-# |
1622 | +-# We need this here as well, since someone might use autoconf-2.5x |
1623 | +-# to configure GLib then an older version to configure a package |
1624 | +-# using AM_GLIB_GNU_GETTEXT |
1625 | +-AC_PREREQ(2.53) |
1626 | +- |
1627 | +-dnl |
1628 | +-dnl We go to great lengths to make sure that aclocal won't |
1629 | +-dnl try to pull in the installed version of these macros |
1630 | +-dnl when running aclocal in the glib directory. |
1631 | +-dnl |
1632 | +-m4_copy([AC_DEFUN],[glib_DEFUN]) |
1633 | +-m4_copy([AC_REQUIRE],[glib_REQUIRE]) |
1634 | +-dnl |
1635 | +-dnl At the end, if we're not within glib, we'll define the public |
1636 | +-dnl definitions in terms of our private definitions. |
1637 | +-dnl |
1638 | +- |
1639 | +-# GLIB_LC_MESSAGES |
1640 | +-#-------------------- |
1641 | +-glib_DEFUN([GLIB_LC_MESSAGES], |
1642 | +- [AC_CHECK_HEADERS([locale.h]) |
1643 | +- if test $ac_cv_header_locale_h = yes; then |
1644 | +- AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, |
1645 | +- [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], |
1646 | +- am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) |
1647 | +- if test $am_cv_val_LC_MESSAGES = yes; then |
1648 | +- AC_DEFINE(HAVE_LC_MESSAGES, 1, |
1649 | +- [Define if your <locale.h> file defines LC_MESSAGES.]) |
1650 | +- fi |
1651 | +- fi]) |
1652 | +- |
1653 | +-# GLIB_PATH_PROG_WITH_TEST |
1654 | +-#---------------------------- |
1655 | +-dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, |
1656 | +-dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) |
1657 | +-glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], |
1658 | +-[# Extract the first word of "$2", so it can be a program name with args. |
1659 | +-set dummy $2; ac_word=[$]2 |
1660 | +-AC_MSG_CHECKING([for $ac_word]) |
1661 | +-AC_CACHE_VAL(ac_cv_path_$1, |
1662 | +-[case "[$]$1" in |
1663 | +- /*) |
1664 | +- ac_cv_path_$1="[$]$1" # Let the user override the test with a path. |
1665 | +- ;; |
1666 | +- *) |
1667 | +- IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" |
1668 | +- for ac_dir in ifelse([$5], , $PATH, [$5]); do |
1669 | +- test -z "$ac_dir" && ac_dir=. |
1670 | +- if test -f $ac_dir/$ac_word; then |
1671 | +- if [$3]; then |
1672 | +- ac_cv_path_$1="$ac_dir/$ac_word" |
1673 | +- break |
1674 | +- fi |
1675 | +- fi |
1676 | +- done |
1677 | +- IFS="$ac_save_ifs" |
1678 | +-dnl If no 4th arg is given, leave the cache variable unset, |
1679 | +-dnl so AC_PATH_PROGS will keep looking. |
1680 | +-ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" |
1681 | +-])dnl |
1682 | +- ;; |
1683 | +-esac])dnl |
1684 | +-$1="$ac_cv_path_$1" |
1685 | +-if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then |
1686 | +- AC_MSG_RESULT([$]$1) |
1687 | +-else |
1688 | +- AC_MSG_RESULT(no) |
1689 | +-fi |
1690 | +-AC_SUBST($1)dnl |
1691 | +-]) |
1692 | +- |
1693 | +-# GLIB_WITH_NLS |
1694 | +-#----------------- |
1695 | +-glib_DEFUN([GLIB_WITH_NLS], |
1696 | +- dnl NLS is obligatory |
1697 | +- [USE_NLS=yes |
1698 | +- AC_SUBST(USE_NLS) |
1699 | +- |
1700 | +- gt_cv_have_gettext=no |
1701 | +- |
1702 | +- CATOBJEXT=NONE |
1703 | +- XGETTEXT=: |
1704 | +- INTLLIBS= |
1705 | +- |
1706 | +- AC_CHECK_HEADER(libintl.h, |
1707 | +- [gt_cv_func_dgettext_libintl="no" |
1708 | +- libintl_extra_libs="" |
1709 | +- |
1710 | +- # |
1711 | +- # First check in libc |
1712 | +- # |
1713 | +- AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, |
1714 | +- [AC_TRY_LINK([ |
1715 | +-#include <libintl.h> |
1716 | +-], |
1717 | +- [return !ngettext ("","", 1)], |
1718 | +- gt_cv_func_ngettext_libc=yes, |
1719 | +- gt_cv_func_ngettext_libc=no) |
1720 | +- ]) |
1721 | +- |
1722 | +- if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1723 | +- AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, |
1724 | +- [AC_TRY_LINK([ |
1725 | +-#include <libintl.h> |
1726 | +-], |
1727 | +- [return !dgettext ("","")], |
1728 | +- gt_cv_func_dgettext_libc=yes, |
1729 | +- gt_cv_func_dgettext_libc=no) |
1730 | +- ]) |
1731 | +- fi |
1732 | +- |
1733 | +- if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
1734 | +- AC_CHECK_FUNCS(bind_textdomain_codeset) |
1735 | +- fi |
1736 | +- |
1737 | +- # |
1738 | +- # If we don't have everything we want, check in libintl |
1739 | +- # |
1740 | +- if test "$gt_cv_func_dgettext_libc" != "yes" \ |
1741 | +- || test "$gt_cv_func_ngettext_libc" != "yes" \ |
1742 | +- || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then |
1743 | +- |
1744 | +- AC_CHECK_LIB(intl, bindtextdomain, |
1745 | +- [AC_CHECK_LIB(intl, ngettext, |
1746 | +- [AC_CHECK_LIB(intl, dgettext, |
1747 | +- gt_cv_func_dgettext_libintl=yes)])]) |
1748 | +- |
1749 | +- if test "$gt_cv_func_dgettext_libintl" != "yes" ; then |
1750 | +- AC_MSG_CHECKING([if -liconv is needed to use gettext]) |
1751 | +- AC_MSG_RESULT([]) |
1752 | +- AC_CHECK_LIB(intl, ngettext, |
1753 | +- [AC_CHECK_LIB(intl, dcgettext, |
1754 | +- [gt_cv_func_dgettext_libintl=yes |
1755 | +- libintl_extra_libs=-liconv], |
1756 | +- :,-liconv)], |
1757 | +- :,-liconv) |
1758 | +- fi |
1759 | +- |
1760 | +- # |
1761 | +- # If we found libintl, then check in it for bind_textdomain_codeset(); |
1762 | +- # we'll prefer libc if neither have bind_textdomain_codeset(), |
1763 | +- # and both have dgettext and ngettext |
1764 | +- # |
1765 | +- if test "$gt_cv_func_dgettext_libintl" = "yes" ; then |
1766 | +- glib_save_LIBS="$LIBS" |
1767 | +- LIBS="$LIBS -lintl $libintl_extra_libs" |
1768 | +- unset ac_cv_func_bind_textdomain_codeset |
1769 | +- AC_CHECK_FUNCS(bind_textdomain_codeset) |
1770 | +- LIBS="$glib_save_LIBS" |
1771 | +- |
1772 | +- if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then |
1773 | +- gt_cv_func_dgettext_libc=no |
1774 | +- else |
1775 | +- if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1776 | +- && test "$gt_cv_func_ngettext_libc" = "yes"; then |
1777 | +- gt_cv_func_dgettext_libintl=no |
1778 | +- fi |
1779 | +- fi |
1780 | +- fi |
1781 | +- fi |
1782 | +- |
1783 | +- if test "$gt_cv_func_dgettext_libc" = "yes" \ |
1784 | +- || test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1785 | +- gt_cv_have_gettext=yes |
1786 | +- fi |
1787 | +- |
1788 | +- if test "$gt_cv_func_dgettext_libintl" = "yes"; then |
1789 | +- INTLLIBS="-lintl $libintl_extra_libs" |
1790 | +- fi |
1791 | +- |
1792 | +- if test "$gt_cv_have_gettext" = "yes"; then |
1793 | +- AC_DEFINE(HAVE_GETTEXT,1, |
1794 | +- [Define if the GNU gettext() function is already present or preinstalled.]) |
1795 | +- GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, |
1796 | +- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl |
1797 | +- if test "$MSGFMT" != "no"; then |
1798 | +- glib_save_LIBS="$LIBS" |
1799 | +- LIBS="$LIBS $INTLLIBS" |
1800 | +- AC_CHECK_FUNCS(dcgettext) |
1801 | +- MSGFMT_OPTS= |
1802 | +- AC_MSG_CHECKING([if msgfmt accepts -c]) |
1803 | +- GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ |
1804 | +-msgid "" |
1805 | +-msgstr "" |
1806 | +-"Content-Type: text/plain; charset=UTF-8\n" |
1807 | +-"Project-Id-Version: test 1.0\n" |
1808 | +-"PO-Revision-Date: 2007-02-15 12:01+0100\n" |
1809 | +-"Last-Translator: test <foo@bar.xx>\n" |
1810 | +-"Language-Team: C <LL@li.org>\n" |
1811 | +-"MIME-Version: 1.0\n" |
1812 | +-"Content-Transfer-Encoding: 8bit\n" |
1813 | +-], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) |
1814 | +- AC_SUBST(MSGFMT_OPTS) |
1815 | +- AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) |
1816 | +- GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, |
1817 | +- [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) |
1818 | +- AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; |
1819 | +- return _nl_msg_cat_cntr], |
1820 | +- [CATOBJEXT=.gmo |
1821 | +- DATADIRNAME=share], |
1822 | +- [case $host in |
1823 | +- *-*-solaris*) |
1824 | +- dnl On Solaris, if bind_textdomain_codeset is in libc, |
1825 | +- dnl GNU format message catalog is always supported, |
1826 | +- dnl since both are added to the libc all together. |
1827 | +- dnl Hence, we'd like to go with DATADIRNAME=share and |
1828 | +- dnl and CATOBJEXT=.gmo in this case. |
1829 | +- AC_CHECK_FUNC(bind_textdomain_codeset, |
1830 | +- [CATOBJEXT=.gmo |
1831 | +- DATADIRNAME=share], |
1832 | +- [CATOBJEXT=.mo |
1833 | +- DATADIRNAME=lib]) |
1834 | +- ;; |
1835 | +- *) |
1836 | +- CATOBJEXT=.mo |
1837 | +- DATADIRNAME=lib |
1838 | +- ;; |
1839 | +- esac]) |
1840 | +- LIBS="$glib_save_LIBS" |
1841 | +- INSTOBJEXT=.mo |
1842 | +- else |
1843 | +- gt_cv_have_gettext=no |
1844 | +- fi |
1845 | +- fi |
1846 | +- ]) |
1847 | +- |
1848 | +- if test "$gt_cv_have_gettext" = "yes" ; then |
1849 | +- AC_DEFINE(ENABLE_NLS, 1, |
1850 | +- [always defined to indicate that i18n is enabled]) |
1851 | +- fi |
1852 | +- |
1853 | +- dnl Test whether we really found GNU xgettext. |
1854 | +- if test "$XGETTEXT" != ":"; then |
1855 | +- dnl If it is not GNU xgettext we define it as : so that the |
1856 | +- dnl Makefiles still can work. |
1857 | +- if $XGETTEXT --omit-header /dev/null 2> /dev/null; then |
1858 | +- : ; |
1859 | +- else |
1860 | +- AC_MSG_RESULT( |
1861 | +- [found xgettext program is not GNU xgettext; ignore it]) |
1862 | +- XGETTEXT=":" |
1863 | +- fi |
1864 | +- fi |
1865 | +- |
1866 | +- # We need to process the po/ directory. |
1867 | +- POSUB=po |
1868 | +- |
1869 | +- AC_OUTPUT_COMMANDS( |
1870 | +- [case "$CONFIG_FILES" in *po/Makefile.in*) |
1871 | +- sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
1872 | +- esac]) |
1873 | +- |
1874 | +- dnl These rules are solely for the distribution goal. While doing this |
1875 | +- dnl we only have to keep exactly one list of the available catalogs |
1876 | +- dnl in configure.in. |
1877 | +- for lang in $ALL_LINGUAS; do |
1878 | +- GMOFILES="$GMOFILES $lang.gmo" |
1879 | +- POFILES="$POFILES $lang.po" |
1880 | +- done |
1881 | +- |
1882 | +- dnl Make all variables we use known to autoconf. |
1883 | +- AC_SUBST(CATALOGS) |
1884 | +- AC_SUBST(CATOBJEXT) |
1885 | +- AC_SUBST(DATADIRNAME) |
1886 | +- AC_SUBST(GMOFILES) |
1887 | +- AC_SUBST(INSTOBJEXT) |
1888 | +- AC_SUBST(INTLLIBS) |
1889 | +- AC_SUBST(PO_IN_DATADIR_TRUE) |
1890 | +- AC_SUBST(PO_IN_DATADIR_FALSE) |
1891 | +- AC_SUBST(POFILES) |
1892 | +- AC_SUBST(POSUB) |
1893 | +- ]) |
1894 | +- |
1895 | +-# AM_GLIB_GNU_GETTEXT |
1896 | +-# ------------------- |
1897 | +-# Do checks necessary for use of gettext. If a suitable implementation |
1898 | +-# of gettext is found in either in libintl or in the C library, |
1899 | +-# it will set INTLLIBS to the libraries needed for use of gettext |
1900 | +-# and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable |
1901 | +-# gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() |
1902 | +-# on various variables needed by the Makefile.in.in installed by |
1903 | +-# glib-gettextize. |
1904 | +-dnl |
1905 | +-glib_DEFUN([GLIB_GNU_GETTEXT], |
1906 | +- [AC_REQUIRE([AC_PROG_CC])dnl |
1907 | +- AC_REQUIRE([AC_HEADER_STDC])dnl |
1908 | +- |
1909 | +- GLIB_LC_MESSAGES |
1910 | +- GLIB_WITH_NLS |
1911 | +- |
1912 | +- if test "$gt_cv_have_gettext" = "yes"; then |
1913 | +- if test "x$ALL_LINGUAS" = "x"; then |
1914 | +- LINGUAS= |
1915 | +- else |
1916 | +- AC_MSG_CHECKING(for catalogs to be installed) |
1917 | +- NEW_LINGUAS= |
1918 | +- for presentlang in $ALL_LINGUAS; do |
1919 | +- useit=no |
1920 | +- if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then |
1921 | +- desiredlanguages="$LINGUAS" |
1922 | +- else |
1923 | +- desiredlanguages="$ALL_LINGUAS" |
1924 | +- fi |
1925 | +- for desiredlang in $desiredlanguages; do |
1926 | +- # Use the presentlang catalog if desiredlang is |
1927 | +- # a. equal to presentlang, or |
1928 | +- # b. a variant of presentlang (because in this case, |
1929 | +- # presentlang can be used as a fallback for messages |
1930 | +- # which are not translated in the desiredlang catalog). |
1931 | +- case "$desiredlang" in |
1932 | +- "$presentlang"*) useit=yes;; |
1933 | +- esac |
1934 | +- done |
1935 | +- if test $useit = yes; then |
1936 | +- NEW_LINGUAS="$NEW_LINGUAS $presentlang" |
1937 | +- fi |
1938 | +- done |
1939 | +- LINGUAS=$NEW_LINGUAS |
1940 | +- AC_MSG_RESULT($LINGUAS) |
1941 | +- fi |
1942 | +- |
1943 | +- dnl Construct list of names of catalog files to be constructed. |
1944 | +- if test -n "$LINGUAS"; then |
1945 | +- for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done |
1946 | +- fi |
1947 | +- fi |
1948 | +- |
1949 | +- dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly |
1950 | +- dnl find the mkinstalldirs script in another subdir but ($top_srcdir). |
1951 | +- dnl Try to locate is. |
1952 | +- MKINSTALLDIRS= |
1953 | +- if test -n "$ac_aux_dir"; then |
1954 | +- MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" |
1955 | +- fi |
1956 | +- if test -z "$MKINSTALLDIRS"; then |
1957 | +- MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
1958 | +- fi |
1959 | +- AC_SUBST(MKINSTALLDIRS) |
1960 | +- |
1961 | +- dnl Generate list of files to be processed by xgettext which will |
1962 | +- dnl be included in po/Makefile. |
1963 | +- test -d po || mkdir po |
1964 | +- if test "x$srcdir" != "x."; then |
1965 | +- if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then |
1966 | +- posrcprefix="$srcdir/" |
1967 | +- else |
1968 | +- posrcprefix="../$srcdir/" |
1969 | +- fi |
1970 | +- else |
1971 | +- posrcprefix="../" |
1972 | +- fi |
1973 | +- rm -f po/POTFILES |
1974 | +- sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ |
1975 | +- < $srcdir/po/POTFILES.in > po/POTFILES |
1976 | +- ]) |
1977 | +- |
1978 | +-# AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) |
1979 | +-# ------------------------------- |
1980 | +-# Define VARIABLE to the location where catalog files will |
1981 | +-# be installed by po/Makefile. |
1982 | +-glib_DEFUN([GLIB_DEFINE_LOCALEDIR], |
1983 | +-[glib_REQUIRE([GLIB_GNU_GETTEXT])dnl |
1984 | +-glib_save_prefix="$prefix" |
1985 | +-glib_save_exec_prefix="$exec_prefix" |
1986 | +-glib_save_datarootdir="$datarootdir" |
1987 | +-test "x$prefix" = xNONE && prefix=$ac_default_prefix |
1988 | +-test "x$exec_prefix" = xNONE && exec_prefix=$prefix |
1989 | +-datarootdir=`eval echo "${datarootdir}"` |
1990 | +-if test "x$CATOBJEXT" = "x.mo" ; then |
1991 | +- localedir=`eval echo "${libdir}/locale"` |
1992 | +-else |
1993 | +- localedir=`eval echo "${datadir}/locale"` |
1994 | +-fi |
1995 | +-prefix="$glib_save_prefix" |
1996 | +-exec_prefix="$glib_save_exec_prefix" |
1997 | +-datarootdir="$glib_save_datarootdir" |
1998 | +-AC_DEFINE_UNQUOTED($1, "$localedir", |
1999 | +- [Define the location where the catalogs will be installed]) |
2000 | +-]) |
2001 | +- |
2002 | +-dnl |
2003 | +-dnl Now the definitions that aclocal will find |
2004 | +-dnl |
2005 | +-ifdef(glib_configure_in,[],[ |
2006 | +-AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) |
2007 | +-AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) |
2008 | +-])dnl |
2009 | +- |
2010 | +-# GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) |
2011 | +-# |
2012 | +-# Create a temporary file with TEST-FILE as its contents and pass the |
2013 | +-# file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with |
2014 | +-# 0 and perform ACTION-IF-FAIL for any other exit status. |
2015 | +-AC_DEFUN([GLIB_RUN_PROG], |
2016 | +-[cat >conftest.foo <<_ACEOF |
2017 | +-$2 |
2018 | +-_ACEOF |
2019 | +-if AC_RUN_LOG([$1 conftest.foo]); then |
2020 | +- m4_ifval([$3], [$3], [:]) |
2021 | +-m4_ifvaln([$4], [else $4])dnl |
2022 | +-echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD |
2023 | +-sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD |
2024 | +-fi]) |
2025 | +- |
2026 | +- |
2027 | +-dnl GNOME_COMPILE_WARNINGS |
2028 | +-dnl Turn on many useful compiler warnings |
2029 | +-dnl For now, only works on GCC |
2030 | +-AC_DEFUN([GNOME_COMPILE_WARNINGS],[ |
2031 | +- dnl ****************************** |
2032 | +- dnl More compiler warnings |
2033 | +- dnl ****************************** |
2034 | +- |
2035 | +- AC_ARG_ENABLE(compile-warnings, |
2036 | +- AC_HELP_STRING([--enable-compile-warnings=@<:@no/minimum/yes/maximum/error@:>@], |
2037 | +- [Turn on compiler warnings]),, |
2038 | +- [enable_compile_warnings="m4_default([$1],[yes])"]) |
2039 | +- |
2040 | +- warnCFLAGS= |
2041 | +- if test "x$GCC" != xyes; then |
2042 | +- enable_compile_warnings=no |
2043 | +- fi |
2044 | +- |
2045 | +- warning_flags= |
2046 | +- realsave_CFLAGS="$CFLAGS" |
2047 | +- |
2048 | +- case "$enable_compile_warnings" in |
2049 | +- no) |
2050 | +- warning_flags= |
2051 | +- ;; |
2052 | +- minimum) |
2053 | +- warning_flags="-Wall" |
2054 | +- ;; |
2055 | +- yes) |
2056 | +- warning_flags="-Wall -Wmissing-prototypes" |
2057 | +- ;; |
2058 | +- maximum|error) |
2059 | +- warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith" |
2060 | +- CFLAGS="$warning_flags $CFLAGS" |
2061 | +- for option in -Wno-sign-compare; do |
2062 | +- SAVE_CFLAGS="$CFLAGS" |
2063 | +- CFLAGS="$CFLAGS $option" |
2064 | +- AC_MSG_CHECKING([whether gcc understands $option]) |
2065 | +- AC_TRY_COMPILE([], [], |
2066 | +- has_option=yes, |
2067 | +- has_option=no,) |
2068 | +- CFLAGS="$SAVE_CFLAGS" |
2069 | +- AC_MSG_RESULT($has_option) |
2070 | +- if test $has_option = yes; then |
2071 | +- warning_flags="$warning_flags $option" |
2072 | +- fi |
2073 | +- unset has_option |
2074 | +- unset SAVE_CFLAGS |
2075 | +- done |
2076 | +- unset option |
2077 | +- if test "$enable_compile_warnings" = "error" ; then |
2078 | +- warning_flags="$warning_flags -Werror" |
2079 | +- fi |
2080 | +- ;; |
2081 | +- *) |
2082 | +- AC_MSG_ERROR(Unknown argument '$enable_compile_warnings' to --enable-compile-warnings) |
2083 | +- ;; |
2084 | +- esac |
2085 | +- CFLAGS="$realsave_CFLAGS" |
2086 | +- AC_MSG_CHECKING(what warning flags to pass to the C compiler) |
2087 | +- AC_MSG_RESULT($warning_flags) |
2088 | +- |
2089 | +- AC_ARG_ENABLE(iso-c, |
2090 | +- AC_HELP_STRING([--enable-iso-c], |
2091 | +- [Try to warn if code is not ISO C ]),, |
2092 | +- [enable_iso_c=no]) |
2093 | +- |
2094 | +- AC_MSG_CHECKING(what language compliance flags to pass to the C compiler) |
2095 | +- complCFLAGS= |
2096 | +- if test "x$enable_iso_c" != "xno"; then |
2097 | +- if test "x$GCC" = "xyes"; then |
2098 | +- case " $CFLAGS " in |
2099 | +- *[\ \ ]-ansi[\ \ ]*) ;; |
2100 | +- *) complCFLAGS="$complCFLAGS -ansi" ;; |
2101 | +- esac |
2102 | +- case " $CFLAGS " in |
2103 | +- *[\ \ ]-pedantic[\ \ ]*) ;; |
2104 | +- *) complCFLAGS="$complCFLAGS -pedantic" ;; |
2105 | +- esac |
2106 | +- fi |
2107 | +- fi |
2108 | +- AC_MSG_RESULT($complCFLAGS) |
2109 | +- |
2110 | +- WARN_CFLAGS="$warning_flags $complCFLAGS" |
2111 | +- AC_SUBST(WARN_CFLAGS) |
2112 | +-]) |
2113 | +- |
2114 | +-dnl For C++, do basically the same thing. |
2115 | +- |
2116 | +-AC_DEFUN([GNOME_CXX_WARNINGS],[ |
2117 | +- AC_ARG_ENABLE(cxx-warnings, |
2118 | +- AC_HELP_STRING([--enable-cxx-warnings=@<:@no/minimum/yes@:>@] |
2119 | +- [Turn on compiler warnings.]),, |
2120 | +- [enable_cxx_warnings="m4_default([$1],[minimum])"]) |
2121 | +- |
2122 | +- AC_MSG_CHECKING(what warning flags to pass to the C++ compiler) |
2123 | +- warnCXXFLAGS= |
2124 | +- if test "x$GXX" != xyes; then |
2125 | +- enable_cxx_warnings=no |
2126 | +- fi |
2127 | +- if test "x$enable_cxx_warnings" != "xno"; then |
2128 | +- if test "x$GXX" = "xyes"; then |
2129 | +- case " $CXXFLAGS " in |
2130 | +- *[\ \ ]-Wall[\ \ ]*) ;; |
2131 | +- *) warnCXXFLAGS="-Wall -Wno-unused" ;; |
2132 | +- esac |
2133 | +- |
2134 | +- ## -W is not all that useful. And it cannot be controlled |
2135 | +- ## with individual -Wno-xxx flags, unlike -Wall |
2136 | +- if test "x$enable_cxx_warnings" = "xyes"; then |
2137 | +- warnCXXFLAGS="$warnCXXFLAGS -Wshadow -Woverloaded-virtual" |
2138 | +- fi |
2139 | +- fi |
2140 | +- fi |
2141 | +- AC_MSG_RESULT($warnCXXFLAGS) |
2142 | +- |
2143 | +- AC_ARG_ENABLE(iso-cxx, |
2144 | +- AC_HELP_STRING([--enable-iso-cxx], |
2145 | +- [Try to warn if code is not ISO C++ ]),, |
2146 | +- [enable_iso_cxx=no]) |
2147 | +- |
2148 | +- AC_MSG_CHECKING(what language compliance flags to pass to the C++ compiler) |
2149 | +- complCXXFLAGS= |
2150 | +- if test "x$enable_iso_cxx" != "xno"; then |
2151 | +- if test "x$GXX" = "xyes"; then |
2152 | +- case " $CXXFLAGS " in |
2153 | +- *[\ \ ]-ansi[\ \ ]*) ;; |
2154 | +- *) complCXXFLAGS="$complCXXFLAGS -ansi" ;; |
2155 | +- esac |
2156 | +- |
2157 | +- case " $CXXFLAGS " in |
2158 | +- *[\ \ ]-pedantic[\ \ ]*) ;; |
2159 | +- *) complCXXFLAGS="$complCXXFLAGS -pedantic" ;; |
2160 | +- esac |
2161 | +- fi |
2162 | +- fi |
2163 | +- AC_MSG_RESULT($complCXXFLAGS) |
2164 | +- |
2165 | +- WARN_CXXFLAGS="$CXXFLAGS $warnCXXFLAGS $complCXXFLAGS" |
2166 | +- AC_SUBST(WARN_CXXFLAGS) |
2167 | +-]) |
2168 | +- |
2169 | +-# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
2170 | +- |
2171 | +-# serial 52 AC_PROG_LIBTOOL |
2172 | +- |
2173 | +- |
2174 | +-# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
2175 | +-# ----------------------------------------------------------- |
2176 | +-# If this macro is not defined by Autoconf, define it here. |
2177 | +-m4_ifdef([AC_PROVIDE_IFELSE], |
2178 | +- [], |
2179 | +- [m4_define([AC_PROVIDE_IFELSE], |
2180 | +- [m4_ifdef([AC_PROVIDE_$1], |
2181 | +- [$2], [$3])])]) |
2182 | +- |
2183 | +- |
2184 | +-# AC_PROG_LIBTOOL |
2185 | +-# --------------- |
2186 | +-AC_DEFUN([AC_PROG_LIBTOOL], |
2187 | +-[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
2188 | +-dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
2189 | +-dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
2190 | +- AC_PROVIDE_IFELSE([AC_PROG_CXX], |
2191 | +- [AC_LIBTOOL_CXX], |
2192 | +- [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
2193 | +- ])]) |
2194 | +-dnl And a similar setup for Fortran 77 support |
2195 | +- AC_PROVIDE_IFELSE([AC_PROG_F77], |
2196 | +- [AC_LIBTOOL_F77], |
2197 | +- [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
2198 | +-])]) |
2199 | +- |
2200 | +-dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
2201 | +-dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
2202 | +-dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
2203 | +- AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
2204 | +- [AC_LIBTOOL_GCJ], |
2205 | +- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
2206 | +- [AC_LIBTOOL_GCJ], |
2207 | +- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
2208 | +- [AC_LIBTOOL_GCJ], |
2209 | +- [ifdef([AC_PROG_GCJ], |
2210 | +- [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
2211 | +- ifdef([A][M_PROG_GCJ], |
2212 | +- [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
2213 | +- ifdef([LT_AC_PROG_GCJ], |
2214 | +- [define([LT_AC_PROG_GCJ], |
2215 | +- defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
2216 | +-])])# AC_PROG_LIBTOOL |
2217 | +- |
2218 | +- |
2219 | +-# _AC_PROG_LIBTOOL |
2220 | +-# ---------------- |
2221 | +-AC_DEFUN([_AC_PROG_LIBTOOL], |
2222 | +-[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
2223 | +-AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
2224 | +-AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
2225 | +-AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
2226 | +- |
2227 | +-# This can be used to rebuild libtool when needed |
2228 | +-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
2229 | +- |
2230 | +-# Always use our own libtool. |
2231 | +-LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
2232 | +-AC_SUBST(LIBTOOL)dnl |
2233 | +- |
2234 | +-# Prevent multiple expansion |
2235 | +-define([AC_PROG_LIBTOOL], []) |
2236 | +-])# _AC_PROG_LIBTOOL |
2237 | +- |
2238 | +- |
2239 | +-# AC_LIBTOOL_SETUP |
2240 | +-# ---------------- |
2241 | +-AC_DEFUN([AC_LIBTOOL_SETUP], |
2242 | +-[AC_PREREQ(2.50)dnl |
2243 | +-AC_REQUIRE([AC_ENABLE_SHARED])dnl |
2244 | +-AC_REQUIRE([AC_ENABLE_STATIC])dnl |
2245 | +-AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
2246 | +-AC_REQUIRE([AC_CANONICAL_HOST])dnl |
2247 | +-AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
2248 | +-AC_REQUIRE([AC_PROG_CC])dnl |
2249 | +-AC_REQUIRE([AC_PROG_LD])dnl |
2250 | +-AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
2251 | +-AC_REQUIRE([AC_PROG_NM])dnl |
2252 | +- |
2253 | +-AC_REQUIRE([AC_PROG_LN_S])dnl |
2254 | +-AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
2255 | +-# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
2256 | +-AC_REQUIRE([AC_OBJEXT])dnl |
2257 | +-AC_REQUIRE([AC_EXEEXT])dnl |
2258 | +-dnl |
2259 | +-AC_LIBTOOL_SYS_MAX_CMD_LEN |
2260 | +-AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
2261 | +-AC_LIBTOOL_OBJDIR |
2262 | +- |
2263 | +-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
2264 | +-_LT_AC_PROG_ECHO_BACKSLASH |
2265 | +- |
2266 | +-case $host_os in |
2267 | +-aix3*) |
2268 | +- # AIX sometimes has problems with the GCC collect2 program. For some |
2269 | +- # reason, if we set the COLLECT_NAMES environment variable, the problems |
2270 | +- # vanish in a puff of smoke. |
2271 | +- if test "X${COLLECT_NAMES+set}" != Xset; then |
2272 | +- COLLECT_NAMES= |
2273 | +- export COLLECT_NAMES |
2274 | +- fi |
2275 | +- ;; |
2276 | +-esac |
2277 | +- |
2278 | +-# Sed substitution that helps us do robust quoting. It backslashifies |
2279 | +-# metacharacters that are still active within double-quoted strings. |
2280 | +-Xsed='sed -e 1s/^X//' |
2281 | +-[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
2282 | +- |
2283 | +-# Same as above, but do not quote variable references. |
2284 | +-[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
2285 | +- |
2286 | +-# Sed substitution to delay expansion of an escaped shell variable in a |
2287 | +-# double_quote_subst'ed string. |
2288 | +-delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
2289 | +- |
2290 | +-# Sed substitution to avoid accidental globbing in evaled expressions |
2291 | +-no_glob_subst='s/\*/\\\*/g' |
2292 | +- |
2293 | +-# Constants: |
2294 | +-rm="rm -f" |
2295 | +- |
2296 | +-# Global variables: |
2297 | +-default_ofile=libtool |
2298 | +-can_build_shared=yes |
2299 | +- |
2300 | +-# All known linkers require a `.a' archive for static linking (except MSVC, |
2301 | +-# which needs '.lib'). |
2302 | +-libext=a |
2303 | +-ltmain="$ac_aux_dir/ltmain.sh" |
2304 | +-ofile="$default_ofile" |
2305 | +-with_gnu_ld="$lt_cv_prog_gnu_ld" |
2306 | +- |
2307 | +-AC_CHECK_TOOL(AR, ar, false) |
2308 | +-AC_CHECK_TOOL(RANLIB, ranlib, :) |
2309 | +-AC_CHECK_TOOL(STRIP, strip, :) |
2310 | +- |
2311 | +-old_CC="$CC" |
2312 | +-old_CFLAGS="$CFLAGS" |
2313 | +- |
2314 | +-# Set sane defaults for various variables |
2315 | +-test -z "$AR" && AR=ar |
2316 | +-test -z "$AR_FLAGS" && AR_FLAGS=cru |
2317 | +-test -z "$AS" && AS=as |
2318 | +-test -z "$CC" && CC=cc |
2319 | +-test -z "$LTCC" && LTCC=$CC |
2320 | +-test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
2321 | +-test -z "$DLLTOOL" && DLLTOOL=dlltool |
2322 | +-test -z "$LD" && LD=ld |
2323 | +-test -z "$LN_S" && LN_S="ln -s" |
2324 | +-test -z "$MAGIC_CMD" && MAGIC_CMD=file |
2325 | +-test -z "$NM" && NM=nm |
2326 | +-test -z "$SED" && SED=sed |
2327 | +-test -z "$OBJDUMP" && OBJDUMP=objdump |
2328 | +-test -z "$RANLIB" && RANLIB=: |
2329 | +-test -z "$STRIP" && STRIP=: |
2330 | +-test -z "$ac_objext" && ac_objext=o |
2331 | +- |
2332 | +-# Determine commands to create old-style static archives. |
2333 | +-old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
2334 | +-old_postinstall_cmds='chmod 644 $oldlib' |
2335 | +-old_postuninstall_cmds= |
2336 | +- |
2337 | +-if test -n "$RANLIB"; then |
2338 | +- case $host_os in |
2339 | +- openbsd*) |
2340 | +- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
2341 | +- ;; |
2342 | +- *) |
2343 | +- old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
2344 | +- ;; |
2345 | +- esac |
2346 | +- old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
2347 | +-fi |
2348 | +- |
2349 | +-_LT_CC_BASENAME([$compiler]) |
2350 | +- |
2351 | +-# Only perform the check for file, if the check method requires it |
2352 | +-case $deplibs_check_method in |
2353 | +-file_magic*) |
2354 | +- if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
2355 | +- AC_PATH_MAGIC |
2356 | +- fi |
2357 | +- ;; |
2358 | +-esac |
2359 | +- |
2360 | +-_LT_REQUIRED_DARWIN_CHECKS |
2361 | +- |
2362 | +-AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
2363 | +-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
2364 | +-enable_win32_dll=yes, enable_win32_dll=no) |
2365 | +- |
2366 | +-AC_ARG_ENABLE([libtool-lock], |
2367 | +- [AC_HELP_STRING([--disable-libtool-lock], |
2368 | +- [avoid locking (might break parallel builds)])]) |
2369 | +-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
2370 | +- |
2371 | +-AC_ARG_WITH([pic], |
2372 | +- [AC_HELP_STRING([--with-pic], |
2373 | +- [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
2374 | +- [pic_mode="$withval"], |
2375 | +- [pic_mode=default]) |
2376 | +-test -z "$pic_mode" && pic_mode=default |
2377 | +- |
2378 | +-# Use C for the default configuration in the libtool script |
2379 | +-tagname= |
2380 | +-AC_LIBTOOL_LANG_C_CONFIG |
2381 | +-_LT_AC_TAGCONFIG |
2382 | +-])# AC_LIBTOOL_SETUP |
2383 | +- |
2384 | +- |
2385 | +-# _LT_AC_SYS_COMPILER |
2386 | +-# ------------------- |
2387 | +-AC_DEFUN([_LT_AC_SYS_COMPILER], |
2388 | +-[AC_REQUIRE([AC_PROG_CC])dnl |
2389 | +- |
2390 | +-# If no C compiler was specified, use CC. |
2391 | +-LTCC=${LTCC-"$CC"} |
2392 | +- |
2393 | +-# If no C compiler flags were specified, use CFLAGS. |
2394 | +-LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
2395 | +- |
2396 | +-# Allow CC to be a program name with arguments. |
2397 | +-compiler=$CC |
2398 | +-])# _LT_AC_SYS_COMPILER |
2399 | +- |
2400 | +- |
2401 | +-# _LT_CC_BASENAME(CC) |
2402 | +-# ------------------- |
2403 | +-# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
2404 | +-AC_DEFUN([_LT_CC_BASENAME], |
2405 | +-[for cc_temp in $1""; do |
2406 | +- case $cc_temp in |
2407 | +- compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
2408 | +- distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
2409 | +- \-*) ;; |
2410 | +- *) break;; |
2411 | +- esac |
2412 | +-done |
2413 | +-cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
2414 | +-]) |
2415 | +- |
2416 | +- |
2417 | +-# _LT_COMPILER_BOILERPLATE |
2418 | +-# ------------------------ |
2419 | +-# Check for compiler boilerplate output or warnings with |
2420 | +-# the simple compiler test code. |
2421 | +-AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
2422 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2423 | +-ac_outfile=conftest.$ac_objext |
2424 | +-echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
2425 | +-eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2426 | +-_lt_compiler_boilerplate=`cat conftest.err` |
2427 | +-$rm conftest* |
2428 | +-])# _LT_COMPILER_BOILERPLATE |
2429 | +- |
2430 | +- |
2431 | +-# _LT_LINKER_BOILERPLATE |
2432 | +-# ---------------------- |
2433 | +-# Check for linker boilerplate output or warnings with |
2434 | +-# the simple link test code. |
2435 | +-AC_DEFUN([_LT_LINKER_BOILERPLATE], |
2436 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2437 | +-ac_outfile=conftest.$ac_objext |
2438 | +-echo "$lt_simple_link_test_code" >conftest.$ac_ext |
2439 | +-eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
2440 | +-_lt_linker_boilerplate=`cat conftest.err` |
2441 | +-$rm -r conftest* |
2442 | +-])# _LT_LINKER_BOILERPLATE |
2443 | +- |
2444 | +-# _LT_REQUIRED_DARWIN_CHECKS |
2445 | +-# -------------------------- |
2446 | +-# Check for some things on darwin |
2447 | +-AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS],[ |
2448 | +- case $host_os in |
2449 | +- rhapsody* | darwin*) |
2450 | +- AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) |
2451 | +- AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) |
2452 | +- |
2453 | +- AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], |
2454 | +- [lt_cv_apple_cc_single_mod=no |
2455 | +- if test -z "${LT_MULTI_MODULE}"; then |
2456 | +- # By default we will add the -single_module flag. You can override |
2457 | +- # by either setting the environment variable LT_MULTI_MODULE |
2458 | +- # non-empty at configure time, or by adding -multi_module to the |
2459 | +- # link flags. |
2460 | +- echo "int foo(void){return 1;}" > conftest.c |
2461 | +- $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
2462 | +- -dynamiclib ${wl}-single_module conftest.c |
2463 | +- if test -f libconftest.dylib; then |
2464 | +- lt_cv_apple_cc_single_mod=yes |
2465 | +- rm -rf libconftest.dylib* |
2466 | +- fi |
2467 | +- rm conftest.c |
2468 | +- fi]) |
2469 | +- AC_CACHE_CHECK([for -exported_symbols_list linker flag], |
2470 | +- [lt_cv_ld_exported_symbols_list], |
2471 | +- [lt_cv_ld_exported_symbols_list=no |
2472 | +- save_LDFLAGS=$LDFLAGS |
2473 | +- echo "_main" > conftest.sym |
2474 | +- LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
2475 | +- AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], |
2476 | +- [lt_cv_ld_exported_symbols_list=yes], |
2477 | +- [lt_cv_ld_exported_symbols_list=no]) |
2478 | +- LDFLAGS="$save_LDFLAGS" |
2479 | +- ]) |
2480 | +- case $host_os in |
2481 | +- rhapsody* | darwin1.[[0123]]) |
2482 | +- _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
2483 | +- darwin1.*) |
2484 | +- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
2485 | +- darwin*) |
2486 | +- # if running on 10.5 or later, the deployment target defaults |
2487 | +- # to the OS version, if on x86, and 10.4, the deployment |
2488 | +- # target defaults to 10.4. Don't you love it? |
2489 | +- case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
2490 | +- 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) |
2491 | +- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
2492 | +- 10.[[012]]*) |
2493 | +- _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
2494 | +- 10.*) |
2495 | +- _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
2496 | +- esac |
2497 | +- ;; |
2498 | +- esac |
2499 | +- if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
2500 | +- _lt_dar_single_mod='$single_module' |
2501 | +- fi |
2502 | +- if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
2503 | +- _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
2504 | +- else |
2505 | +- _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
2506 | +- fi |
2507 | +- if test "$DSYMUTIL" != ":"; then |
2508 | +- _lt_dsymutil="~$DSYMUTIL \$lib || :" |
2509 | +- else |
2510 | +- _lt_dsymutil= |
2511 | +- fi |
2512 | +- ;; |
2513 | +- esac |
2514 | +-]) |
2515 | +- |
2516 | +-# _LT_AC_SYS_LIBPATH_AIX |
2517 | +-# ---------------------- |
2518 | +-# Links a minimal program and checks the executable |
2519 | +-# for the system default hardcoded library path. In most cases, |
2520 | +-# this is /usr/lib:/lib, but when the MPI compilers are used |
2521 | +-# the location of the communication and MPI libs are included too. |
2522 | +-# If we don't find anything, use the default library path according |
2523 | +-# to the aix ld manual. |
2524 | +-AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
2525 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2526 | +-AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
2527 | +-lt_aix_libpath_sed=' |
2528 | +- /Import File Strings/,/^$/ { |
2529 | +- /^0/ { |
2530 | +- s/^0 *\(.*\)$/\1/ |
2531 | +- p |
2532 | +- } |
2533 | +- }' |
2534 | +-aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
2535 | +-# Check for a 64-bit object if we didn't find anything. |
2536 | +-if test -z "$aix_libpath"; then |
2537 | +- aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
2538 | +-fi],[]) |
2539 | +-if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
2540 | +-])# _LT_AC_SYS_LIBPATH_AIX |
2541 | +- |
2542 | +- |
2543 | +-# _LT_AC_SHELL_INIT(ARG) |
2544 | +-# ---------------------- |
2545 | +-AC_DEFUN([_LT_AC_SHELL_INIT], |
2546 | +-[ifdef([AC_DIVERSION_NOTICE], |
2547 | +- [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
2548 | +- [AC_DIVERT_PUSH(NOTICE)]) |
2549 | +-$1 |
2550 | +-AC_DIVERT_POP |
2551 | +-])# _LT_AC_SHELL_INIT |
2552 | +- |
2553 | +- |
2554 | +-# _LT_AC_PROG_ECHO_BACKSLASH |
2555 | +-# -------------------------- |
2556 | +-# Add some code to the start of the generated configure script which |
2557 | +-# will find an echo command which doesn't interpret backslashes. |
2558 | +-AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
2559 | +-[_LT_AC_SHELL_INIT([ |
2560 | +-# Check that we are running under the correct shell. |
2561 | +-SHELL=${CONFIG_SHELL-/bin/sh} |
2562 | +- |
2563 | +-case X$ECHO in |
2564 | +-X*--fallback-echo) |
2565 | +- # Remove one level of quotation (which was required for Make). |
2566 | +- ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
2567 | +- ;; |
2568 | +-esac |
2569 | +- |
2570 | +-echo=${ECHO-echo} |
2571 | +-if test "X[$]1" = X--no-reexec; then |
2572 | +- # Discard the --no-reexec flag, and continue. |
2573 | +- shift |
2574 | +-elif test "X[$]1" = X--fallback-echo; then |
2575 | +- # Avoid inline document here, it may be left over |
2576 | +- : |
2577 | +-elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
2578 | +- # Yippee, $echo works! |
2579 | +- : |
2580 | +-else |
2581 | +- # Restart under the correct shell. |
2582 | +- exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
2583 | +-fi |
2584 | +- |
2585 | +-if test "X[$]1" = X--fallback-echo; then |
2586 | +- # used as fallback echo |
2587 | +- shift |
2588 | +- cat <<EOF |
2589 | +-[$]* |
2590 | +-EOF |
2591 | +- exit 0 |
2592 | +-fi |
2593 | +- |
2594 | +-# The HP-UX ksh and POSIX shell print the target directory to stdout |
2595 | +-# if CDPATH is set. |
2596 | +-(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
2597 | +- |
2598 | +-if test -z "$ECHO"; then |
2599 | +-if test "X${echo_test_string+set}" != Xset; then |
2600 | +-# find a string as large as possible, as long as the shell can cope with it |
2601 | +- for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
2602 | +- # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
2603 | +- if (echo_test_string=`eval $cmd`) 2>/dev/null && |
2604 | +- echo_test_string=`eval $cmd` && |
2605 | +- (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
2606 | +- then |
2607 | +- break |
2608 | +- fi |
2609 | +- done |
2610 | +-fi |
2611 | +- |
2612 | +-if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
2613 | +- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
2614 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2615 | +- : |
2616 | +-else |
2617 | +- # The Solaris, AIX, and Digital Unix default echo programs unquote |
2618 | +- # backslashes. This makes it impossible to quote backslashes using |
2619 | +- # echo "$something" | sed 's/\\/\\\\/g' |
2620 | +- # |
2621 | +- # So, first we look for a working echo in the user's PATH. |
2622 | +- |
2623 | +- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
2624 | +- for dir in $PATH /usr/ucb; do |
2625 | +- IFS="$lt_save_ifs" |
2626 | +- if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
2627 | +- test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
2628 | +- echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
2629 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2630 | +- echo="$dir/echo" |
2631 | +- break |
2632 | +- fi |
2633 | +- done |
2634 | +- IFS="$lt_save_ifs" |
2635 | +- |
2636 | +- if test "X$echo" = Xecho; then |
2637 | +- # We didn't find a better echo, so look for alternatives. |
2638 | +- if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
2639 | +- echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
2640 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2641 | +- # This shell has a builtin print -r that does the trick. |
2642 | +- echo='print -r' |
2643 | +- elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
2644 | +- test "X$CONFIG_SHELL" != X/bin/ksh; then |
2645 | +- # If we have ksh, try running configure again with it. |
2646 | +- ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
2647 | +- export ORIGINAL_CONFIG_SHELL |
2648 | +- CONFIG_SHELL=/bin/ksh |
2649 | +- export CONFIG_SHELL |
2650 | +- exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
2651 | +- else |
2652 | +- # Try using printf. |
2653 | +- echo='printf %s\n' |
2654 | +- if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
2655 | +- echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
2656 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2657 | +- # Cool, printf works |
2658 | +- : |
2659 | +- elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
2660 | +- test "X$echo_testing_string" = 'X\t' && |
2661 | +- echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
2662 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2663 | +- CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
2664 | +- export CONFIG_SHELL |
2665 | +- SHELL="$CONFIG_SHELL" |
2666 | +- export SHELL |
2667 | +- echo="$CONFIG_SHELL [$]0 --fallback-echo" |
2668 | +- elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
2669 | +- test "X$echo_testing_string" = 'X\t' && |
2670 | +- echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
2671 | +- test "X$echo_testing_string" = "X$echo_test_string"; then |
2672 | +- echo="$CONFIG_SHELL [$]0 --fallback-echo" |
2673 | +- else |
2674 | +- # maybe with a smaller string... |
2675 | +- prev=: |
2676 | +- |
2677 | +- for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
2678 | +- if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
2679 | +- then |
2680 | +- break |
2681 | +- fi |
2682 | +- prev="$cmd" |
2683 | +- done |
2684 | +- |
2685 | +- if test "$prev" != 'sed 50q "[$]0"'; then |
2686 | +- echo_test_string=`eval $prev` |
2687 | +- export echo_test_string |
2688 | +- exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
2689 | +- else |
2690 | +- # Oops. We lost completely, so just stick with echo. |
2691 | +- echo=echo |
2692 | +- fi |
2693 | +- fi |
2694 | +- fi |
2695 | +- fi |
2696 | +-fi |
2697 | +-fi |
2698 | +- |
2699 | +-# Copy echo and quote the copy suitably for passing to libtool from |
2700 | +-# the Makefile, instead of quoting the original, which is used later. |
2701 | +-ECHO=$echo |
2702 | +-if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
2703 | +- ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
2704 | +-fi |
2705 | +- |
2706 | +-AC_SUBST(ECHO) |
2707 | +-])])# _LT_AC_PROG_ECHO_BACKSLASH |
2708 | +- |
2709 | +- |
2710 | +-# _LT_AC_LOCK |
2711 | +-# ----------- |
2712 | +-AC_DEFUN([_LT_AC_LOCK], |
2713 | +-[AC_ARG_ENABLE([libtool-lock], |
2714 | +- [AC_HELP_STRING([--disable-libtool-lock], |
2715 | +- [avoid locking (might break parallel builds)])]) |
2716 | +-test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
2717 | +- |
2718 | +-# Some flags need to be propagated to the compiler or linker for good |
2719 | +-# libtool support. |
2720 | +-case $host in |
2721 | +-ia64-*-hpux*) |
2722 | +- # Find out which ABI we are using. |
2723 | +- echo 'int i;' > conftest.$ac_ext |
2724 | +- if AC_TRY_EVAL(ac_compile); then |
2725 | +- case `/usr/bin/file conftest.$ac_objext` in |
2726 | +- *ELF-32*) |
2727 | +- HPUX_IA64_MODE="32" |
2728 | +- ;; |
2729 | +- *ELF-64*) |
2730 | +- HPUX_IA64_MODE="64" |
2731 | +- ;; |
2732 | +- esac |
2733 | +- fi |
2734 | +- rm -rf conftest* |
2735 | +- ;; |
2736 | +-*-*-irix6*) |
2737 | +- # Find out which ABI we are using. |
2738 | +- echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
2739 | +- if AC_TRY_EVAL(ac_compile); then |
2740 | +- if test "$lt_cv_prog_gnu_ld" = yes; then |
2741 | +- case `/usr/bin/file conftest.$ac_objext` in |
2742 | +- *32-bit*) |
2743 | +- LD="${LD-ld} -melf32bsmip" |
2744 | +- ;; |
2745 | +- *N32*) |
2746 | +- LD="${LD-ld} -melf32bmipn32" |
2747 | +- ;; |
2748 | +- *64-bit*) |
2749 | +- LD="${LD-ld} -melf64bmip" |
2750 | +- ;; |
2751 | +- esac |
2752 | +- else |
2753 | +- case `/usr/bin/file conftest.$ac_objext` in |
2754 | +- *32-bit*) |
2755 | +- LD="${LD-ld} -32" |
2756 | +- ;; |
2757 | +- *N32*) |
2758 | +- LD="${LD-ld} -n32" |
2759 | +- ;; |
2760 | +- *64-bit*) |
2761 | +- LD="${LD-ld} -64" |
2762 | +- ;; |
2763 | +- esac |
2764 | +- fi |
2765 | +- fi |
2766 | +- rm -rf conftest* |
2767 | +- ;; |
2768 | +- |
2769 | +-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
2770 | +-s390*-*linux*|sparc*-*linux*) |
2771 | +- # Find out which ABI we are using. |
2772 | +- echo 'int i;' > conftest.$ac_ext |
2773 | +- if AC_TRY_EVAL(ac_compile); then |
2774 | +- case `/usr/bin/file conftest.o` in |
2775 | +- *32-bit*) |
2776 | +- case $host in |
2777 | +- x86_64-*kfreebsd*-gnu) |
2778 | +- LD="${LD-ld} -m elf_i386_fbsd" |
2779 | +- ;; |
2780 | +- x86_64-*linux*) |
2781 | +- LD="${LD-ld} -m elf_i386" |
2782 | +- ;; |
2783 | +- ppc64-*linux*|powerpc64-*linux*) |
2784 | +- LD="${LD-ld} -m elf32ppclinux" |
2785 | +- ;; |
2786 | +- s390x-*linux*) |
2787 | +- LD="${LD-ld} -m elf_s390" |
2788 | +- ;; |
2789 | +- sparc64-*linux*) |
2790 | +- LD="${LD-ld} -m elf32_sparc" |
2791 | +- ;; |
2792 | +- esac |
2793 | +- ;; |
2794 | +- *64-bit*) |
2795 | +- libsuff=64 |
2796 | +- case $host in |
2797 | +- x86_64-*kfreebsd*-gnu) |
2798 | +- LD="${LD-ld} -m elf_x86_64_fbsd" |
2799 | +- ;; |
2800 | +- x86_64-*linux*) |
2801 | +- LD="${LD-ld} -m elf_x86_64" |
2802 | +- ;; |
2803 | +- ppc*-*linux*|powerpc*-*linux*) |
2804 | +- LD="${LD-ld} -m elf64ppc" |
2805 | +- ;; |
2806 | +- s390*-*linux*) |
2807 | +- LD="${LD-ld} -m elf64_s390" |
2808 | +- ;; |
2809 | +- sparc*-*linux*) |
2810 | +- LD="${LD-ld} -m elf64_sparc" |
2811 | +- ;; |
2812 | +- esac |
2813 | +- ;; |
2814 | +- esac |
2815 | +- fi |
2816 | +- rm -rf conftest* |
2817 | +- ;; |
2818 | +- |
2819 | +-*-*-sco3.2v5*) |
2820 | +- # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
2821 | +- SAVE_CFLAGS="$CFLAGS" |
2822 | +- CFLAGS="$CFLAGS -belf" |
2823 | +- AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
2824 | +- [AC_LANG_PUSH(C) |
2825 | +- AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
2826 | +- AC_LANG_POP]) |
2827 | +- if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
2828 | +- # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
2829 | +- CFLAGS="$SAVE_CFLAGS" |
2830 | +- fi |
2831 | +- ;; |
2832 | +-sparc*-*solaris*) |
2833 | +- # Find out which ABI we are using. |
2834 | +- echo 'int i;' > conftest.$ac_ext |
2835 | +- if AC_TRY_EVAL(ac_compile); then |
2836 | +- case `/usr/bin/file conftest.o` in |
2837 | +- *64-bit*) |
2838 | +- case $lt_cv_prog_gnu_ld in |
2839 | +- yes*) LD="${LD-ld} -m elf64_sparc" ;; |
2840 | +- *) |
2841 | +- if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
2842 | +- LD="${LD-ld} -64" |
2843 | +- fi |
2844 | +- ;; |
2845 | +- esac |
2846 | +- ;; |
2847 | +- esac |
2848 | +- fi |
2849 | +- rm -rf conftest* |
2850 | +- ;; |
2851 | +- |
2852 | +-AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
2853 | +-[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
2854 | +- AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
2855 | +- AC_CHECK_TOOL(AS, as, false) |
2856 | +- AC_CHECK_TOOL(OBJDUMP, objdump, false) |
2857 | +- ;; |
2858 | +- ]) |
2859 | +-esac |
2860 | +- |
2861 | +-need_locks="$enable_libtool_lock" |
2862 | +- |
2863 | +-])# _LT_AC_LOCK |
2864 | +- |
2865 | +- |
2866 | +-# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2867 | +-# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
2868 | +-# ---------------------------------------------------------------- |
2869 | +-# Check whether the given compiler option works |
2870 | +-AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
2871 | +-[AC_REQUIRE([LT_AC_PROG_SED]) |
2872 | +-AC_CACHE_CHECK([$1], [$2], |
2873 | +- [$2=no |
2874 | +- ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
2875 | +- echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
2876 | +- lt_compiler_flag="$3" |
2877 | +- # Insert the option either (1) after the last *FLAGS variable, or |
2878 | +- # (2) before a word containing "conftest.", or (3) at the end. |
2879 | +- # Note that $ac_compile itself does not contain backslashes and begins |
2880 | +- # with a dollar sign (not a hyphen), so the echo should work correctly. |
2881 | +- # The option is referenced via a variable to avoid confusing sed. |
2882 | +- lt_compile=`echo "$ac_compile" | $SED \ |
2883 | +- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
2884 | +- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2885 | +- -e 's:$: $lt_compiler_flag:'` |
2886 | +- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2887 | +- (eval "$lt_compile" 2>conftest.err) |
2888 | +- ac_status=$? |
2889 | +- cat conftest.err >&AS_MESSAGE_LOG_FD |
2890 | +- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2891 | +- if (exit $ac_status) && test -s "$ac_outfile"; then |
2892 | +- # The compiler can only warn and ignore the option if not recognized |
2893 | +- # So say no if there are warnings other than the usual output. |
2894 | +- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
2895 | +- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2896 | +- if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
2897 | +- $2=yes |
2898 | +- fi |
2899 | +- fi |
2900 | +- $rm conftest* |
2901 | +-]) |
2902 | +- |
2903 | +-if test x"[$]$2" = xyes; then |
2904 | +- ifelse([$5], , :, [$5]) |
2905 | +-else |
2906 | +- ifelse([$6], , :, [$6]) |
2907 | +-fi |
2908 | +-])# AC_LIBTOOL_COMPILER_OPTION |
2909 | +- |
2910 | +- |
2911 | +-# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
2912 | +-# [ACTION-SUCCESS], [ACTION-FAILURE]) |
2913 | +-# ------------------------------------------------------------ |
2914 | +-# Check whether the given compiler option works |
2915 | +-AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
2916 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
2917 | +-AC_CACHE_CHECK([$1], [$2], |
2918 | +- [$2=no |
2919 | +- save_LDFLAGS="$LDFLAGS" |
2920 | +- LDFLAGS="$LDFLAGS $3" |
2921 | +- echo "$lt_simple_link_test_code" > conftest.$ac_ext |
2922 | +- if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
2923 | +- # The linker can only warn and ignore the option if not recognized |
2924 | +- # So say no if there are warnings |
2925 | +- if test -s conftest.err; then |
2926 | +- # Append any errors to the config.log. |
2927 | +- cat conftest.err 1>&AS_MESSAGE_LOG_FD |
2928 | +- $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
2929 | +- $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
2930 | +- if diff conftest.exp conftest.er2 >/dev/null; then |
2931 | +- $2=yes |
2932 | +- fi |
2933 | +- else |
2934 | +- $2=yes |
2935 | +- fi |
2936 | +- fi |
2937 | +- $rm -r conftest* |
2938 | +- LDFLAGS="$save_LDFLAGS" |
2939 | +-]) |
2940 | +- |
2941 | +-if test x"[$]$2" = xyes; then |
2942 | +- ifelse([$4], , :, [$4]) |
2943 | +-else |
2944 | +- ifelse([$5], , :, [$5]) |
2945 | +-fi |
2946 | +-])# AC_LIBTOOL_LINKER_OPTION |
2947 | +- |
2948 | +- |
2949 | +-# AC_LIBTOOL_SYS_MAX_CMD_LEN |
2950 | +-# -------------------------- |
2951 | +-AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
2952 | +-[# find the maximum length of command line arguments |
2953 | +-AC_MSG_CHECKING([the maximum length of command line arguments]) |
2954 | +-AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
2955 | +- i=0 |
2956 | +- teststring="ABCD" |
2957 | +- |
2958 | +- case $build_os in |
2959 | +- msdosdjgpp*) |
2960 | +- # On DJGPP, this test can blow up pretty badly due to problems in libc |
2961 | +- # (any single argument exceeding 2000 bytes causes a buffer overrun |
2962 | +- # during glob expansion). Even if it were fixed, the result of this |
2963 | +- # check would be larger than it should be. |
2964 | +- lt_cv_sys_max_cmd_len=12288; # 12K is about right |
2965 | +- ;; |
2966 | +- |
2967 | +- gnu*) |
2968 | +- # Under GNU Hurd, this test is not required because there is |
2969 | +- # no limit to the length of command line arguments. |
2970 | +- # Libtool will interpret -1 as no limit whatsoever |
2971 | +- lt_cv_sys_max_cmd_len=-1; |
2972 | +- ;; |
2973 | +- |
2974 | +- cygwin* | mingw*) |
2975 | +- # On Win9x/ME, this test blows up -- it succeeds, but takes |
2976 | +- # about 5 minutes as the teststring grows exponentially. |
2977 | +- # Worse, since 9x/ME are not pre-emptively multitasking, |
2978 | +- # you end up with a "frozen" computer, even though with patience |
2979 | +- # the test eventually succeeds (with a max line length of 256k). |
2980 | +- # Instead, let's just punt: use the minimum linelength reported by |
2981 | +- # all of the supported platforms: 8192 (on NT/2K/XP). |
2982 | +- lt_cv_sys_max_cmd_len=8192; |
2983 | +- ;; |
2984 | +- |
2985 | +- amigaos*) |
2986 | +- # On AmigaOS with pdksh, this test takes hours, literally. |
2987 | +- # So we just punt and use a minimum line length of 8192. |
2988 | +- lt_cv_sys_max_cmd_len=8192; |
2989 | +- ;; |
2990 | +- |
2991 | +- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
2992 | +- # This has been around since 386BSD, at least. Likely further. |
2993 | +- if test -x /sbin/sysctl; then |
2994 | +- lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
2995 | +- elif test -x /usr/sbin/sysctl; then |
2996 | +- lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
2997 | +- else |
2998 | +- lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
2999 | +- fi |
3000 | +- # And add a safety zone |
3001 | +- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3002 | +- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3003 | +- ;; |
3004 | +- |
3005 | +- interix*) |
3006 | +- # We know the value 262144 and hardcode it with a safety zone (like BSD) |
3007 | +- lt_cv_sys_max_cmd_len=196608 |
3008 | +- ;; |
3009 | +- |
3010 | +- osf*) |
3011 | +- # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
3012 | +- # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
3013 | +- # nice to cause kernel panics so lets avoid the loop below. |
3014 | +- # First set a reasonable default. |
3015 | +- lt_cv_sys_max_cmd_len=16384 |
3016 | +- # |
3017 | +- if test -x /sbin/sysconfig; then |
3018 | +- case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
3019 | +- *1*) lt_cv_sys_max_cmd_len=-1 ;; |
3020 | +- esac |
3021 | +- fi |
3022 | +- ;; |
3023 | +- sco3.2v5*) |
3024 | +- lt_cv_sys_max_cmd_len=102400 |
3025 | +- ;; |
3026 | +- sysv5* | sco5v6* | sysv4.2uw2*) |
3027 | +- kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
3028 | +- if test -n "$kargmax"; then |
3029 | +- lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` |
3030 | +- else |
3031 | +- lt_cv_sys_max_cmd_len=32768 |
3032 | +- fi |
3033 | +- ;; |
3034 | +- *) |
3035 | +- lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
3036 | +- if test -n "$lt_cv_sys_max_cmd_len"; then |
3037 | +- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
3038 | +- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
3039 | +- else |
3040 | +- SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
3041 | +- while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
3042 | +- = "XX$teststring") >/dev/null 2>&1 && |
3043 | +- new_result=`expr "X$teststring" : ".*" 2>&1` && |
3044 | +- lt_cv_sys_max_cmd_len=$new_result && |
3045 | +- test $i != 17 # 1/2 MB should be enough |
3046 | +- do |
3047 | +- i=`expr $i + 1` |
3048 | +- teststring=$teststring$teststring |
3049 | +- done |
3050 | +- teststring= |
3051 | +- # Add a significant safety factor because C++ compilers can tack on massive |
3052 | +- # amounts of additional arguments before passing them to the linker. |
3053 | +- # It appears as though 1/2 is a usable value. |
3054 | +- lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
3055 | +- fi |
3056 | +- ;; |
3057 | +- esac |
3058 | +-]) |
3059 | +-if test -n $lt_cv_sys_max_cmd_len ; then |
3060 | +- AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
3061 | +-else |
3062 | +- AC_MSG_RESULT(none) |
3063 | +-fi |
3064 | +-])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
3065 | +- |
3066 | +- |
3067 | +-# _LT_AC_CHECK_DLFCN |
3068 | +-# ------------------ |
3069 | +-AC_DEFUN([_LT_AC_CHECK_DLFCN], |
3070 | +-[AC_CHECK_HEADERS(dlfcn.h)dnl |
3071 | +-])# _LT_AC_CHECK_DLFCN |
3072 | +- |
3073 | +- |
3074 | +-# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
3075 | +-# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
3076 | +-# --------------------------------------------------------------------- |
3077 | +-AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
3078 | +-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
3079 | +-if test "$cross_compiling" = yes; then : |
3080 | +- [$4] |
3081 | +-else |
3082 | +- lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
3083 | +- lt_status=$lt_dlunknown |
3084 | +- cat > conftest.$ac_ext <<EOF |
3085 | +-[#line __oline__ "configure" |
3086 | +-#include "confdefs.h" |
3087 | +- |
3088 | +-#if HAVE_DLFCN_H |
3089 | +-#include <dlfcn.h> |
3090 | +-#endif |
3091 | +- |
3092 | +-#include <stdio.h> |
3093 | +- |
3094 | +-#ifdef RTLD_GLOBAL |
3095 | +-# define LT_DLGLOBAL RTLD_GLOBAL |
3096 | +-#else |
3097 | +-# ifdef DL_GLOBAL |
3098 | +-# define LT_DLGLOBAL DL_GLOBAL |
3099 | +-# else |
3100 | +-# define LT_DLGLOBAL 0 |
3101 | +-# endif |
3102 | +-#endif |
3103 | +- |
3104 | +-/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
3105 | +- find out it does not work in some platform. */ |
3106 | +-#ifndef LT_DLLAZY_OR_NOW |
3107 | +-# ifdef RTLD_LAZY |
3108 | +-# define LT_DLLAZY_OR_NOW RTLD_LAZY |
3109 | +-# else |
3110 | +-# ifdef DL_LAZY |
3111 | +-# define LT_DLLAZY_OR_NOW DL_LAZY |
3112 | +-# else |
3113 | +-# ifdef RTLD_NOW |
3114 | +-# define LT_DLLAZY_OR_NOW RTLD_NOW |
3115 | +-# else |
3116 | +-# ifdef DL_NOW |
3117 | +-# define LT_DLLAZY_OR_NOW DL_NOW |
3118 | +-# else |
3119 | +-# define LT_DLLAZY_OR_NOW 0 |
3120 | +-# endif |
3121 | +-# endif |
3122 | +-# endif |
3123 | +-# endif |
3124 | +-#endif |
3125 | +- |
3126 | +-#ifdef __cplusplus |
3127 | +-extern "C" void exit (int); |
3128 | +-#endif |
3129 | +- |
3130 | +-void fnord() { int i=42;} |
3131 | +-int main () |
3132 | +-{ |
3133 | +- void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
3134 | +- int status = $lt_dlunknown; |
3135 | +- |
3136 | +- if (self) |
3137 | +- { |
3138 | +- if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
3139 | +- else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
3140 | +- /* dlclose (self); */ |
3141 | +- } |
3142 | +- else |
3143 | +- puts (dlerror ()); |
3144 | +- |
3145 | +- exit (status); |
3146 | +-}] |
3147 | +-EOF |
3148 | +- if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
3149 | +- (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null |
3150 | +- lt_status=$? |
3151 | +- case x$lt_status in |
3152 | +- x$lt_dlno_uscore) $1 ;; |
3153 | +- x$lt_dlneed_uscore) $2 ;; |
3154 | +- x$lt_dlunknown|x*) $3 ;; |
3155 | +- esac |
3156 | +- else : |
3157 | +- # compilation failed |
3158 | +- $3 |
3159 | +- fi |
3160 | +-fi |
3161 | +-rm -fr conftest* |
3162 | +-])# _LT_AC_TRY_DLOPEN_SELF |
3163 | +- |
3164 | +- |
3165 | +-# AC_LIBTOOL_DLOPEN_SELF |
3166 | +-# ---------------------- |
3167 | +-AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
3168 | +-[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
3169 | +-if test "x$enable_dlopen" != xyes; then |
3170 | +- enable_dlopen=unknown |
3171 | +- enable_dlopen_self=unknown |
3172 | +- enable_dlopen_self_static=unknown |
3173 | +-else |
3174 | +- lt_cv_dlopen=no |
3175 | +- lt_cv_dlopen_libs= |
3176 | +- |
3177 | +- case $host_os in |
3178 | +- beos*) |
3179 | +- lt_cv_dlopen="load_add_on" |
3180 | +- lt_cv_dlopen_libs= |
3181 | +- lt_cv_dlopen_self=yes |
3182 | +- ;; |
3183 | +- |
3184 | +- mingw* | pw32*) |
3185 | +- lt_cv_dlopen="LoadLibrary" |
3186 | +- lt_cv_dlopen_libs= |
3187 | +- ;; |
3188 | +- |
3189 | +- cygwin*) |
3190 | +- lt_cv_dlopen="dlopen" |
3191 | +- lt_cv_dlopen_libs= |
3192 | +- ;; |
3193 | +- |
3194 | +- darwin*) |
3195 | +- # if libdl is installed we need to link against it |
3196 | +- AC_CHECK_LIB([dl], [dlopen], |
3197 | +- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
3198 | +- lt_cv_dlopen="dyld" |
3199 | +- lt_cv_dlopen_libs= |
3200 | +- lt_cv_dlopen_self=yes |
3201 | +- ]) |
3202 | +- ;; |
3203 | +- |
3204 | +- *) |
3205 | +- AC_CHECK_FUNC([shl_load], |
3206 | +- [lt_cv_dlopen="shl_load"], |
3207 | +- [AC_CHECK_LIB([dld], [shl_load], |
3208 | +- [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], |
3209 | +- [AC_CHECK_FUNC([dlopen], |
3210 | +- [lt_cv_dlopen="dlopen"], |
3211 | +- [AC_CHECK_LIB([dl], [dlopen], |
3212 | +- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
3213 | +- [AC_CHECK_LIB([svld], [dlopen], |
3214 | +- [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
3215 | +- [AC_CHECK_LIB([dld], [dld_link], |
3216 | +- [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) |
3217 | +- ]) |
3218 | +- ]) |
3219 | +- ]) |
3220 | +- ]) |
3221 | +- ]) |
3222 | +- ;; |
3223 | +- esac |
3224 | +- |
3225 | +- if test "x$lt_cv_dlopen" != xno; then |
3226 | +- enable_dlopen=yes |
3227 | +- else |
3228 | +- enable_dlopen=no |
3229 | +- fi |
3230 | +- |
3231 | +- case $lt_cv_dlopen in |
3232 | +- dlopen) |
3233 | +- save_CPPFLAGS="$CPPFLAGS" |
3234 | +- test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
3235 | +- |
3236 | +- save_LDFLAGS="$LDFLAGS" |
3237 | +- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
3238 | +- |
3239 | +- save_LIBS="$LIBS" |
3240 | +- LIBS="$lt_cv_dlopen_libs $LIBS" |
3241 | +- |
3242 | +- AC_CACHE_CHECK([whether a program can dlopen itself], |
3243 | +- lt_cv_dlopen_self, [dnl |
3244 | +- _LT_AC_TRY_DLOPEN_SELF( |
3245 | +- lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
3246 | +- lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
3247 | +- ]) |
3248 | +- |
3249 | +- if test "x$lt_cv_dlopen_self" = xyes; then |
3250 | +- wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
3251 | +- AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
3252 | +- lt_cv_dlopen_self_static, [dnl |
3253 | +- _LT_AC_TRY_DLOPEN_SELF( |
3254 | +- lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
3255 | +- lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
3256 | +- ]) |
3257 | +- fi |
3258 | +- |
3259 | +- CPPFLAGS="$save_CPPFLAGS" |
3260 | +- LDFLAGS="$save_LDFLAGS" |
3261 | +- LIBS="$save_LIBS" |
3262 | +- ;; |
3263 | +- esac |
3264 | +- |
3265 | +- case $lt_cv_dlopen_self in |
3266 | +- yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
3267 | +- *) enable_dlopen_self=unknown ;; |
3268 | +- esac |
3269 | +- |
3270 | +- case $lt_cv_dlopen_self_static in |
3271 | +- yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
3272 | +- *) enable_dlopen_self_static=unknown ;; |
3273 | +- esac |
3274 | +-fi |
3275 | +-])# AC_LIBTOOL_DLOPEN_SELF |
3276 | +- |
3277 | +- |
3278 | +-# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
3279 | +-# --------------------------------- |
3280 | +-# Check to see if options -c and -o are simultaneously supported by compiler |
3281 | +-AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
3282 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
3283 | +-AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
3284 | +-AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
3285 | +- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
3286 | +- [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
3287 | +- $rm -r conftest 2>/dev/null |
3288 | +- mkdir conftest |
3289 | +- cd conftest |
3290 | +- mkdir out |
3291 | +- echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
3292 | +- |
3293 | +- lt_compiler_flag="-o out/conftest2.$ac_objext" |
3294 | +- # Insert the option either (1) after the last *FLAGS variable, or |
3295 | +- # (2) before a word containing "conftest.", or (3) at the end. |
3296 | +- # Note that $ac_compile itself does not contain backslashes and begins |
3297 | +- # with a dollar sign (not a hyphen), so the echo should work correctly. |
3298 | +- lt_compile=`echo "$ac_compile" | $SED \ |
3299 | +- -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
3300 | +- -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
3301 | +- -e 's:$: $lt_compiler_flag:'` |
3302 | +- (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
3303 | +- (eval "$lt_compile" 2>out/conftest.err) |
3304 | +- ac_status=$? |
3305 | +- cat out/conftest.err >&AS_MESSAGE_LOG_FD |
3306 | +- echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
3307 | +- if (exit $ac_status) && test -s out/conftest2.$ac_objext |
3308 | +- then |
3309 | +- # The compiler can only warn and ignore the option if not recognized |
3310 | +- # So say no if there are warnings |
3311 | +- $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
3312 | +- $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
3313 | +- if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
3314 | +- _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
3315 | +- fi |
3316 | +- fi |
3317 | +- chmod u+w . 2>&AS_MESSAGE_LOG_FD |
3318 | +- $rm conftest* |
3319 | +- # SGI C++ compiler will create directory out/ii_files/ for |
3320 | +- # template instantiation |
3321 | +- test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
3322 | +- $rm out/* && rmdir out |
3323 | +- cd .. |
3324 | +- rmdir conftest |
3325 | +- $rm conftest* |
3326 | +-]) |
3327 | +-])# AC_LIBTOOL_PROG_CC_C_O |
3328 | +- |
3329 | +- |
3330 | +-# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
3331 | +-# ----------------------------------------- |
3332 | +-# Check to see if we can do hard links to lock some files if needed |
3333 | +-AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
3334 | +-[AC_REQUIRE([_LT_AC_LOCK])dnl |
3335 | +- |
3336 | +-hard_links="nottested" |
3337 | +-if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
3338 | +- # do not overwrite the value of need_locks provided by the user |
3339 | +- AC_MSG_CHECKING([if we can lock with hard links]) |
3340 | +- hard_links=yes |
3341 | +- $rm conftest* |
3342 | +- ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3343 | +- touch conftest.a |
3344 | +- ln conftest.a conftest.b 2>&5 || hard_links=no |
3345 | +- ln conftest.a conftest.b 2>/dev/null && hard_links=no |
3346 | +- AC_MSG_RESULT([$hard_links]) |
3347 | +- if test "$hard_links" = no; then |
3348 | +- AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
3349 | +- need_locks=warn |
3350 | +- fi |
3351 | +-else |
3352 | +- need_locks=no |
3353 | +-fi |
3354 | +-])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
3355 | +- |
3356 | +- |
3357 | +-# AC_LIBTOOL_OBJDIR |
3358 | +-# ----------------- |
3359 | +-AC_DEFUN([AC_LIBTOOL_OBJDIR], |
3360 | +-[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
3361 | +-[rm -f .libs 2>/dev/null |
3362 | +-mkdir .libs 2>/dev/null |
3363 | +-if test -d .libs; then |
3364 | +- lt_cv_objdir=.libs |
3365 | +-else |
3366 | +- # MS-DOS does not allow filenames that begin with a dot. |
3367 | +- lt_cv_objdir=_libs |
3368 | +-fi |
3369 | +-rmdir .libs 2>/dev/null]) |
3370 | +-objdir=$lt_cv_objdir |
3371 | +-])# AC_LIBTOOL_OBJDIR |
3372 | +- |
3373 | +- |
3374 | +-# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
3375 | +-# ---------------------------------------------- |
3376 | +-# Check hardcoding attributes. |
3377 | +-AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
3378 | +-[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
3379 | +-_LT_AC_TAGVAR(hardcode_action, $1)= |
3380 | +-if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
3381 | +- test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
3382 | +- test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
3383 | +- |
3384 | +- # We can hardcode non-existant directories. |
3385 | +- if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
3386 | +- # If the only mechanism to avoid hardcoding is shlibpath_var, we |
3387 | +- # have to relink, otherwise we might link with an installed library |
3388 | +- # when we should be linking with a yet-to-be-installed one |
3389 | +- ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
3390 | +- test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
3391 | +- # Linking always hardcodes the temporary library directory. |
3392 | +- _LT_AC_TAGVAR(hardcode_action, $1)=relink |
3393 | +- else |
3394 | +- # We can link without hardcoding, and we can hardcode nonexisting dirs. |
3395 | +- _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
3396 | +- fi |
3397 | +-else |
3398 | +- # We cannot hardcode anything, or else we can only hardcode existing |
3399 | +- # directories. |
3400 | +- _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
3401 | +-fi |
3402 | +-AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
3403 | +- |
3404 | +-if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
3405 | +- # Fast installation is not supported |
3406 | +- enable_fast_install=no |
3407 | +-elif test "$shlibpath_overrides_runpath" = yes || |
3408 | +- test "$enable_shared" = no; then |
3409 | +- # Fast installation is not necessary |
3410 | +- enable_fast_install=needless |
3411 | +-fi |
3412 | +-])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
3413 | +- |
3414 | +- |
3415 | +-# AC_LIBTOOL_SYS_LIB_STRIP |
3416 | +-# ------------------------ |
3417 | +-AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
3418 | +-[striplib= |
3419 | +-old_striplib= |
3420 | +-AC_MSG_CHECKING([whether stripping libraries is possible]) |
3421 | +-if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
3422 | +- test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
3423 | +- test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
3424 | +- AC_MSG_RESULT([yes]) |
3425 | +-else |
3426 | +-# FIXME - insert some real tests, host_os isn't really good enough |
3427 | +- case $host_os in |
3428 | +- darwin*) |
3429 | +- if test -n "$STRIP" ; then |
3430 | +- striplib="$STRIP -x" |
3431 | +- old_striplib="$STRIP -S" |
3432 | +- AC_MSG_RESULT([yes]) |
3433 | +- else |
3434 | +- AC_MSG_RESULT([no]) |
3435 | +-fi |
3436 | +- ;; |
3437 | +- *) |
3438 | +- AC_MSG_RESULT([no]) |
3439 | +- ;; |
3440 | +- esac |
3441 | +-fi |
3442 | +-])# AC_LIBTOOL_SYS_LIB_STRIP |
3443 | +- |
3444 | +- |
3445 | +-# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
3446 | +-# ----------------------------- |
3447 | +-# PORTME Fill in your ld.so characteristics |
3448 | +-AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
3449 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
3450 | +-AC_MSG_CHECKING([dynamic linker characteristics]) |
3451 | +-library_names_spec= |
3452 | +-libname_spec='lib$name' |
3453 | +-soname_spec= |
3454 | +-shrext_cmds=".so" |
3455 | +-postinstall_cmds= |
3456 | +-postuninstall_cmds= |
3457 | +-finish_cmds= |
3458 | +-finish_eval= |
3459 | +-shlibpath_var= |
3460 | +-shlibpath_overrides_runpath=unknown |
3461 | +-version_type=none |
3462 | +-dynamic_linker="$host_os ld.so" |
3463 | +-sys_lib_dlsearch_path_spec="/lib /usr/lib" |
3464 | +-m4_if($1,[],[ |
3465 | +-if test "$GCC" = yes; then |
3466 | +- case $host_os in |
3467 | +- darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
3468 | +- *) lt_awk_arg="/^libraries:/" ;; |
3469 | +- esac |
3470 | +- lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
3471 | +- if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
3472 | +- # if the path contains ";" then we assume it to be the separator |
3473 | +- # otherwise default to the standard path separator (i.e. ":") - it is |
3474 | +- # assumed that no part of a normal pathname contains ";" but that should |
3475 | +- # okay in the real world where ";" in dirpaths is itself problematic. |
3476 | +- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
3477 | +- else |
3478 | +- lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
3479 | +- fi |
3480 | +- # Ok, now we have the path, separated by spaces, we can step through it |
3481 | +- # and add multilib dir if necessary. |
3482 | +- lt_tmp_lt_search_path_spec= |
3483 | +- lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
3484 | +- for lt_sys_path in $lt_search_path_spec; do |
3485 | +- if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
3486 | +- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
3487 | +- else |
3488 | +- test -d "$lt_sys_path" && \ |
3489 | +- lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
3490 | +- fi |
3491 | +- done |
3492 | +- lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
3493 | +-BEGIN {RS=" "; FS="/|\n";} { |
3494 | +- lt_foo=""; |
3495 | +- lt_count=0; |
3496 | +- for (lt_i = NF; lt_i > 0; lt_i--) { |
3497 | +- if ($lt_i != "" && $lt_i != ".") { |
3498 | +- if ($lt_i == "..") { |
3499 | +- lt_count++; |
3500 | +- } else { |
3501 | +- if (lt_count == 0) { |
3502 | +- lt_foo="/" $lt_i lt_foo; |
3503 | +- } else { |
3504 | +- lt_count--; |
3505 | +- } |
3506 | +- } |
3507 | +- } |
3508 | +- } |
3509 | +- if (lt_foo != "") { lt_freq[[lt_foo]]++; } |
3510 | +- if (lt_freq[[lt_foo]] == 1) { print lt_foo; } |
3511 | +-}'` |
3512 | +- sys_lib_search_path_spec=`echo $lt_search_path_spec` |
3513 | +-else |
3514 | +- sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
3515 | +-fi]) |
3516 | +-need_lib_prefix=unknown |
3517 | +-hardcode_into_libs=no |
3518 | +- |
3519 | +-# when you set need_version to no, make sure it does not cause -set_version |
3520 | +-# flags to be left without arguments |
3521 | +-need_version=unknown |
3522 | +- |
3523 | +-case $host_os in |
3524 | +-aix3*) |
3525 | +- version_type=linux |
3526 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
3527 | +- shlibpath_var=LIBPATH |
3528 | +- |
3529 | +- # AIX 3 has no versioning support, so we append a major version to the name. |
3530 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3531 | +- ;; |
3532 | +- |
3533 | +-aix[[4-9]]*) |
3534 | +- version_type=linux |
3535 | +- need_lib_prefix=no |
3536 | +- need_version=no |
3537 | +- hardcode_into_libs=yes |
3538 | +- if test "$host_cpu" = ia64; then |
3539 | +- # AIX 5 supports IA64 |
3540 | +- library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
3541 | +- shlibpath_var=LD_LIBRARY_PATH |
3542 | +- else |
3543 | +- # With GCC up to 2.95.x, collect2 would create an import file |
3544 | +- # for dependence libraries. The import file would start with |
3545 | +- # the line `#! .'. This would cause the generated library to |
3546 | +- # depend on `.', always an invalid library. This was fixed in |
3547 | +- # development snapshots of GCC prior to 3.0. |
3548 | +- case $host_os in |
3549 | +- aix4 | aix4.[[01]] | aix4.[[01]].*) |
3550 | +- if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
3551 | +- echo ' yes ' |
3552 | +- echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
3553 | +- : |
3554 | +- else |
3555 | +- can_build_shared=no |
3556 | +- fi |
3557 | +- ;; |
3558 | +- esac |
3559 | +- # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
3560 | +- # soname into executable. Probably we can add versioning support to |
3561 | +- # collect2, so additional links can be useful in future. |
3562 | +- if test "$aix_use_runtimelinking" = yes; then |
3563 | +- # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
3564 | +- # instead of lib<name>.a to let people know that these are not |
3565 | +- # typical AIX shared libraries. |
3566 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3567 | +- else |
3568 | +- # We preserve .a as extension for shared libraries through AIX4.2 |
3569 | +- # and later when we are not doing run time linking. |
3570 | +- library_names_spec='${libname}${release}.a $libname.a' |
3571 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3572 | +- fi |
3573 | +- shlibpath_var=LIBPATH |
3574 | +- fi |
3575 | +- ;; |
3576 | +- |
3577 | +-amigaos*) |
3578 | +- library_names_spec='$libname.ixlibrary $libname.a' |
3579 | +- # Create ${libname}_ixlibrary.a entries in /sys/libs. |
3580 | +- 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' |
3581 | +- ;; |
3582 | +- |
3583 | +-beos*) |
3584 | +- library_names_spec='${libname}${shared_ext}' |
3585 | +- dynamic_linker="$host_os ld.so" |
3586 | +- shlibpath_var=LIBRARY_PATH |
3587 | +- ;; |
3588 | +- |
3589 | +-bsdi[[45]]*) |
3590 | +- version_type=linux |
3591 | +- need_version=no |
3592 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3593 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3594 | +- finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
3595 | +- shlibpath_var=LD_LIBRARY_PATH |
3596 | +- sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
3597 | +- sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
3598 | +- # the default ld.so.conf also contains /usr/contrib/lib and |
3599 | +- # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
3600 | +- # libtool to hard-code these into programs |
3601 | +- ;; |
3602 | +- |
3603 | +-cygwin* | mingw* | pw32*) |
3604 | +- version_type=windows |
3605 | +- shrext_cmds=".dll" |
3606 | +- need_version=no |
3607 | +- need_lib_prefix=no |
3608 | +- |
3609 | +- case $GCC,$host_os in |
3610 | +- yes,cygwin* | yes,mingw* | yes,pw32*) |
3611 | +- library_names_spec='$libname.dll.a' |
3612 | +- # DLL is installed to $(libdir)/../bin by postinstall_cmds |
3613 | +- postinstall_cmds='base_file=`basename \${file}`~ |
3614 | +- dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
3615 | +- dldir=$destdir/`dirname \$dlpath`~ |
3616 | +- test -d \$dldir || mkdir -p \$dldir~ |
3617 | +- $install_prog $dir/$dlname \$dldir/$dlname~ |
3618 | +- chmod a+x \$dldir/$dlname' |
3619 | +- postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
3620 | +- dlpath=$dir/\$dldll~ |
3621 | +- $rm \$dlpath' |
3622 | +- shlibpath_overrides_runpath=yes |
3623 | +- |
3624 | +- case $host_os in |
3625 | +- cygwin*) |
3626 | +- # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
3627 | +- soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3628 | +- sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
3629 | +- ;; |
3630 | +- mingw*) |
3631 | +- # MinGW DLLs use traditional 'lib' prefix |
3632 | +- soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3633 | +- sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
3634 | +- if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
3635 | +- # It is most probably a Windows format PATH printed by |
3636 | +- # mingw gcc, but we are running on Cygwin. Gcc prints its search |
3637 | +- # path with ; separators, and with drive letters. We can handle the |
3638 | +- # drive letters (cygwin fileutils understands them), so leave them, |
3639 | +- # especially as we might pass files found there to a mingw objdump, |
3640 | +- # which wouldn't understand a cygwinified path. Ahh. |
3641 | +- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
3642 | +- else |
3643 | +- sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
3644 | +- fi |
3645 | +- ;; |
3646 | +- pw32*) |
3647 | +- # pw32 DLLs use 'pw' prefix rather than 'lib' |
3648 | +- library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3649 | +- ;; |
3650 | +- esac |
3651 | +- ;; |
3652 | +- |
3653 | +- *) |
3654 | +- library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
3655 | +- ;; |
3656 | +- esac |
3657 | +- dynamic_linker='Win32 ld.exe' |
3658 | +- # FIXME: first we should search . and the directory the executable is in |
3659 | +- shlibpath_var=PATH |
3660 | +- ;; |
3661 | +- |
3662 | +-darwin* | rhapsody*) |
3663 | +- dynamic_linker="$host_os dyld" |
3664 | +- version_type=darwin |
3665 | +- need_lib_prefix=no |
3666 | +- need_version=no |
3667 | +- library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
3668 | +- soname_spec='${libname}${release}${major}$shared_ext' |
3669 | +- shlibpath_overrides_runpath=yes |
3670 | +- shlibpath_var=DYLD_LIBRARY_PATH |
3671 | +- shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
3672 | +- m4_if([$1], [],[ |
3673 | +- sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) |
3674 | +- sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
3675 | +- ;; |
3676 | +- |
3677 | +-dgux*) |
3678 | +- version_type=linux |
3679 | +- need_lib_prefix=no |
3680 | +- need_version=no |
3681 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
3682 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3683 | +- shlibpath_var=LD_LIBRARY_PATH |
3684 | +- ;; |
3685 | +- |
3686 | +-freebsd1*) |
3687 | +- dynamic_linker=no |
3688 | +- ;; |
3689 | +- |
3690 | +-freebsd* | dragonfly*) |
3691 | +- # DragonFly does not have aout. When/if they implement a new |
3692 | +- # versioning mechanism, adjust this. |
3693 | +- if test -x /usr/bin/objformat; then |
3694 | +- objformat=`/usr/bin/objformat` |
3695 | +- else |
3696 | +- case $host_os in |
3697 | +- freebsd[[123]]*) objformat=aout ;; |
3698 | +- *) objformat=elf ;; |
3699 | +- esac |
3700 | +- fi |
3701 | +- version_type=freebsd-$objformat |
3702 | +- case $version_type in |
3703 | +- freebsd-elf*) |
3704 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
3705 | +- need_version=no |
3706 | +- need_lib_prefix=no |
3707 | +- ;; |
3708 | +- freebsd-*) |
3709 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
3710 | +- need_version=yes |
3711 | +- ;; |
3712 | +- esac |
3713 | +- shlibpath_var=LD_LIBRARY_PATH |
3714 | +- case $host_os in |
3715 | +- freebsd2*) |
3716 | +- shlibpath_overrides_runpath=yes |
3717 | +- ;; |
3718 | +- freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
3719 | +- shlibpath_overrides_runpath=yes |
3720 | +- hardcode_into_libs=yes |
3721 | +- ;; |
3722 | +- freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ |
3723 | +- freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) |
3724 | +- shlibpath_overrides_runpath=no |
3725 | +- hardcode_into_libs=yes |
3726 | +- ;; |
3727 | +- *) # from 4.6 on, and DragonFly |
3728 | +- shlibpath_overrides_runpath=yes |
3729 | +- hardcode_into_libs=yes |
3730 | +- ;; |
3731 | +- esac |
3732 | +- ;; |
3733 | +- |
3734 | +-gnu*) |
3735 | +- version_type=linux |
3736 | +- need_lib_prefix=no |
3737 | +- need_version=no |
3738 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
3739 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3740 | +- shlibpath_var=LD_LIBRARY_PATH |
3741 | +- hardcode_into_libs=yes |
3742 | +- ;; |
3743 | +- |
3744 | +-hpux9* | hpux10* | hpux11*) |
3745 | +- # Give a soname corresponding to the major version so that dld.sl refuses to |
3746 | +- # link against other versions. |
3747 | +- version_type=sunos |
3748 | +- need_lib_prefix=no |
3749 | +- need_version=no |
3750 | +- case $host_cpu in |
3751 | +- ia64*) |
3752 | +- shrext_cmds='.so' |
3753 | +- hardcode_into_libs=yes |
3754 | +- dynamic_linker="$host_os dld.so" |
3755 | +- shlibpath_var=LD_LIBRARY_PATH |
3756 | +- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
3757 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3758 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3759 | +- if test "X$HPUX_IA64_MODE" = X32; then |
3760 | +- sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
3761 | +- else |
3762 | +- sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
3763 | +- fi |
3764 | +- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
3765 | +- ;; |
3766 | +- hppa*64*) |
3767 | +- shrext_cmds='.sl' |
3768 | +- hardcode_into_libs=yes |
3769 | +- dynamic_linker="$host_os dld.sl" |
3770 | +- shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
3771 | +- shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
3772 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3773 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3774 | +- sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
3775 | +- sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
3776 | +- ;; |
3777 | +- *) |
3778 | +- shrext_cmds='.sl' |
3779 | +- dynamic_linker="$host_os dld.sl" |
3780 | +- shlibpath_var=SHLIB_PATH |
3781 | +- shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
3782 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3783 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3784 | +- ;; |
3785 | +- esac |
3786 | +- # HP-UX runs *really* slowly unless shared libraries are mode 555. |
3787 | +- postinstall_cmds='chmod 555 $lib' |
3788 | +- ;; |
3789 | +- |
3790 | +-interix[[3-9]]*) |
3791 | +- version_type=linux |
3792 | +- need_lib_prefix=no |
3793 | +- need_version=no |
3794 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3795 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3796 | +- dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
3797 | +- shlibpath_var=LD_LIBRARY_PATH |
3798 | +- shlibpath_overrides_runpath=no |
3799 | +- hardcode_into_libs=yes |
3800 | +- ;; |
3801 | +- |
3802 | +-irix5* | irix6* | nonstopux*) |
3803 | +- case $host_os in |
3804 | +- nonstopux*) version_type=nonstopux ;; |
3805 | +- *) |
3806 | +- if test "$lt_cv_prog_gnu_ld" = yes; then |
3807 | +- version_type=linux |
3808 | +- else |
3809 | +- version_type=irix |
3810 | +- fi ;; |
3811 | +- esac |
3812 | +- need_lib_prefix=no |
3813 | +- need_version=no |
3814 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3815 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
3816 | +- case $host_os in |
3817 | +- irix5* | nonstopux*) |
3818 | +- libsuff= shlibsuff= |
3819 | +- ;; |
3820 | +- *) |
3821 | +- case $LD in # libtool.m4 will add one of these switches to LD |
3822 | +- *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
3823 | +- libsuff= shlibsuff= libmagic=32-bit;; |
3824 | +- *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
3825 | +- libsuff=32 shlibsuff=N32 libmagic=N32;; |
3826 | +- *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
3827 | +- libsuff=64 shlibsuff=64 libmagic=64-bit;; |
3828 | +- *) libsuff= shlibsuff= libmagic=never-match;; |
3829 | +- esac |
3830 | +- ;; |
3831 | +- esac |
3832 | +- shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
3833 | +- shlibpath_overrides_runpath=no |
3834 | +- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
3835 | +- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
3836 | +- hardcode_into_libs=yes |
3837 | +- ;; |
3838 | +- |
3839 | +-# No shared lib support for Linux oldld, aout, or coff. |
3840 | +-linux*oldld* | linux*aout* | linux*coff*) |
3841 | +- dynamic_linker=no |
3842 | +- ;; |
3843 | +- |
3844 | +-# This must be Linux ELF. |
3845 | +-linux* | k*bsd*-gnu) |
3846 | +- version_type=linux |
3847 | +- need_lib_prefix=no |
3848 | +- need_version=no |
3849 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3850 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3851 | +- finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
3852 | +- shlibpath_var=LD_LIBRARY_PATH |
3853 | +- shlibpath_overrides_runpath=no |
3854 | +- # This implies no fast_install, which is unacceptable. |
3855 | +- # Some rework will be needed to allow for fast_install |
3856 | +- # before this can be enabled. |
3857 | +- hardcode_into_libs=yes |
3858 | +- sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
3859 | +- sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
3860 | +- |
3861 | +- # Append ld.so.conf contents to the search path |
3862 | +- if test -f /etc/ld.so.conf; then |
3863 | +- 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' ' '` |
3864 | +- sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" |
3865 | +- fi |
3866 | +- |
3867 | +- # We used to test for /lib/ld.so.1 and disable shared libraries on |
3868 | +- # powerpc, because MkLinux only supported shared libraries with the |
3869 | +- # GNU dynamic linker. Since this was broken with cross compilers, |
3870 | +- # most powerpc-linux boxes support dynamic linking these days and |
3871 | +- # people can always --disable-shared, the test was removed, and we |
3872 | +- # assume the GNU/Linux dynamic linker is in use. |
3873 | +- dynamic_linker='GNU/Linux ld.so' |
3874 | +- ;; |
3875 | +- |
3876 | +-netbsd*) |
3877 | +- version_type=sunos |
3878 | +- need_lib_prefix=no |
3879 | +- need_version=no |
3880 | +- if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
3881 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3882 | +- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3883 | +- dynamic_linker='NetBSD (a.out) ld.so' |
3884 | +- else |
3885 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
3886 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3887 | +- dynamic_linker='NetBSD ld.elf_so' |
3888 | +- fi |
3889 | +- shlibpath_var=LD_LIBRARY_PATH |
3890 | +- shlibpath_overrides_runpath=yes |
3891 | +- hardcode_into_libs=yes |
3892 | +- ;; |
3893 | +- |
3894 | +-newsos6) |
3895 | +- version_type=linux |
3896 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3897 | +- shlibpath_var=LD_LIBRARY_PATH |
3898 | +- shlibpath_overrides_runpath=yes |
3899 | +- ;; |
3900 | +- |
3901 | +-nto-qnx*) |
3902 | +- version_type=linux |
3903 | +- need_lib_prefix=no |
3904 | +- need_version=no |
3905 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3906 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3907 | +- shlibpath_var=LD_LIBRARY_PATH |
3908 | +- shlibpath_overrides_runpath=yes |
3909 | +- ;; |
3910 | +- |
3911 | +-openbsd*) |
3912 | +- version_type=sunos |
3913 | +- sys_lib_dlsearch_path_spec="/usr/lib" |
3914 | +- need_lib_prefix=no |
3915 | +- # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
3916 | +- case $host_os in |
3917 | +- openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
3918 | +- *) need_version=no ;; |
3919 | +- esac |
3920 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3921 | +- finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
3922 | +- shlibpath_var=LD_LIBRARY_PATH |
3923 | +- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3924 | +- case $host_os in |
3925 | +- openbsd2.[[89]] | openbsd2.[[89]].*) |
3926 | +- shlibpath_overrides_runpath=no |
3927 | +- ;; |
3928 | +- *) |
3929 | +- shlibpath_overrides_runpath=yes |
3930 | +- ;; |
3931 | +- esac |
3932 | +- else |
3933 | +- shlibpath_overrides_runpath=yes |
3934 | +- fi |
3935 | +- ;; |
3936 | +- |
3937 | +-os2*) |
3938 | +- libname_spec='$name' |
3939 | +- shrext_cmds=".dll" |
3940 | +- need_lib_prefix=no |
3941 | +- library_names_spec='$libname${shared_ext} $libname.a' |
3942 | +- dynamic_linker='OS/2 ld.exe' |
3943 | +- shlibpath_var=LIBPATH |
3944 | +- ;; |
3945 | +- |
3946 | +-osf3* | osf4* | osf5*) |
3947 | +- version_type=osf |
3948 | +- need_lib_prefix=no |
3949 | +- need_version=no |
3950 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3951 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3952 | +- shlibpath_var=LD_LIBRARY_PATH |
3953 | +- sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
3954 | +- sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
3955 | +- ;; |
3956 | +- |
3957 | +-rdos*) |
3958 | +- dynamic_linker=no |
3959 | +- ;; |
3960 | +- |
3961 | +-solaris*) |
3962 | +- version_type=linux |
3963 | +- need_lib_prefix=no |
3964 | +- need_version=no |
3965 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3966 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3967 | +- shlibpath_var=LD_LIBRARY_PATH |
3968 | +- shlibpath_overrides_runpath=yes |
3969 | +- hardcode_into_libs=yes |
3970 | +- # ldd complains unless libraries are executable |
3971 | +- postinstall_cmds='chmod +x $lib' |
3972 | +- ;; |
3973 | +- |
3974 | +-sunos4*) |
3975 | +- version_type=sunos |
3976 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
3977 | +- finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
3978 | +- shlibpath_var=LD_LIBRARY_PATH |
3979 | +- shlibpath_overrides_runpath=yes |
3980 | +- if test "$with_gnu_ld" = yes; then |
3981 | +- need_lib_prefix=no |
3982 | +- fi |
3983 | +- need_version=yes |
3984 | +- ;; |
3985 | +- |
3986 | +-sysv4 | sysv4.3*) |
3987 | +- version_type=linux |
3988 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
3989 | +- soname_spec='${libname}${release}${shared_ext}$major' |
3990 | +- shlibpath_var=LD_LIBRARY_PATH |
3991 | +- case $host_vendor in |
3992 | +- sni) |
3993 | +- shlibpath_overrides_runpath=no |
3994 | +- need_lib_prefix=no |
3995 | +- export_dynamic_flag_spec='${wl}-Blargedynsym' |
3996 | +- runpath_var=LD_RUN_PATH |
3997 | +- ;; |
3998 | +- siemens) |
3999 | +- need_lib_prefix=no |
4000 | +- ;; |
4001 | +- motorola) |
4002 | +- need_lib_prefix=no |
4003 | +- need_version=no |
4004 | +- shlibpath_overrides_runpath=no |
4005 | +- sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
4006 | +- ;; |
4007 | +- esac |
4008 | +- ;; |
4009 | +- |
4010 | +-sysv4*MP*) |
4011 | +- if test -d /usr/nec ;then |
4012 | +- version_type=linux |
4013 | +- library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
4014 | +- soname_spec='$libname${shared_ext}.$major' |
4015 | +- shlibpath_var=LD_LIBRARY_PATH |
4016 | +- fi |
4017 | +- ;; |
4018 | +- |
4019 | +-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4020 | +- version_type=freebsd-elf |
4021 | +- need_lib_prefix=no |
4022 | +- need_version=no |
4023 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
4024 | +- soname_spec='${libname}${release}${shared_ext}$major' |
4025 | +- shlibpath_var=LD_LIBRARY_PATH |
4026 | +- hardcode_into_libs=yes |
4027 | +- if test "$with_gnu_ld" = yes; then |
4028 | +- sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
4029 | +- shlibpath_overrides_runpath=no |
4030 | +- else |
4031 | +- sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
4032 | +- shlibpath_overrides_runpath=yes |
4033 | +- case $host_os in |
4034 | +- sco3.2v5*) |
4035 | +- sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
4036 | +- ;; |
4037 | +- esac |
4038 | +- fi |
4039 | +- sys_lib_dlsearch_path_spec='/usr/lib' |
4040 | +- ;; |
4041 | +- |
4042 | +-uts4*) |
4043 | +- version_type=linux |
4044 | +- library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
4045 | +- soname_spec='${libname}${release}${shared_ext}$major' |
4046 | +- shlibpath_var=LD_LIBRARY_PATH |
4047 | +- ;; |
4048 | +- |
4049 | +-*) |
4050 | +- dynamic_linker=no |
4051 | +- ;; |
4052 | +-esac |
4053 | +-AC_MSG_RESULT([$dynamic_linker]) |
4054 | +-test "$dynamic_linker" = no && can_build_shared=no |
4055 | +- |
4056 | +-AC_CACHE_VAL([lt_cv_sys_lib_search_path_spec], |
4057 | +-[lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"]) |
4058 | +-sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
4059 | +-AC_CACHE_VAL([lt_cv_sys_lib_dlsearch_path_spec], |
4060 | +-[lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"]) |
4061 | +-sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
4062 | +- |
4063 | +-variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
4064 | +-if test "$GCC" = yes; then |
4065 | +- variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
4066 | +-fi |
4067 | +-])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
4068 | +- |
4069 | +- |
4070 | +-# _LT_AC_TAGCONFIG |
4071 | +-# ---------------- |
4072 | +-AC_DEFUN([_LT_AC_TAGCONFIG], |
4073 | +-[AC_REQUIRE([LT_AC_PROG_SED])dnl |
4074 | +-AC_ARG_WITH([tags], |
4075 | +- [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
4076 | +- [include additional configurations @<:@automatic@:>@])], |
4077 | +- [tagnames="$withval"]) |
4078 | +- |
4079 | +-if test -f "$ltmain" && test -n "$tagnames"; then |
4080 | +- if test ! -f "${ofile}"; then |
4081 | +- AC_MSG_WARN([output file `$ofile' does not exist]) |
4082 | +- fi |
4083 | +- |
4084 | +- if test -z "$LTCC"; then |
4085 | +- eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
4086 | +- if test -z "$LTCC"; then |
4087 | +- AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
4088 | +- else |
4089 | +- AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
4090 | +- fi |
4091 | +- fi |
4092 | +- if test -z "$LTCFLAGS"; then |
4093 | +- eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
4094 | +- fi |
4095 | +- |
4096 | +- # Extract list of available tagged configurations in $ofile. |
4097 | +- # Note that this assumes the entire list is on one line. |
4098 | +- available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
4099 | +- |
4100 | +- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4101 | +- for tagname in $tagnames; do |
4102 | +- IFS="$lt_save_ifs" |
4103 | +- # Check whether tagname contains only valid characters |
4104 | +- case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
4105 | +- "") ;; |
4106 | +- *) AC_MSG_ERROR([invalid tag name: $tagname]) |
4107 | +- ;; |
4108 | +- esac |
4109 | +- |
4110 | +- if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
4111 | +- then |
4112 | +- AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
4113 | +- fi |
4114 | +- |
4115 | +- # Update the list of available tags. |
4116 | +- if test -n "$tagname"; then |
4117 | +- echo appending configuration tag \"$tagname\" to $ofile |
4118 | +- |
4119 | +- case $tagname in |
4120 | +- CXX) |
4121 | +- if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
4122 | +- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
4123 | +- (test "X$CXX" != "Xg++"))) ; then |
4124 | +- AC_LIBTOOL_LANG_CXX_CONFIG |
4125 | +- else |
4126 | +- tagname="" |
4127 | +- fi |
4128 | +- ;; |
4129 | +- |
4130 | +- F77) |
4131 | +- if test -n "$F77" && test "X$F77" != "Xno"; then |
4132 | +- AC_LIBTOOL_LANG_F77_CONFIG |
4133 | +- else |
4134 | +- tagname="" |
4135 | +- fi |
4136 | +- ;; |
4137 | +- |
4138 | +- GCJ) |
4139 | +- if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
4140 | +- AC_LIBTOOL_LANG_GCJ_CONFIG |
4141 | +- else |
4142 | +- tagname="" |
4143 | +- fi |
4144 | +- ;; |
4145 | +- |
4146 | +- RC) |
4147 | +- AC_LIBTOOL_LANG_RC_CONFIG |
4148 | +- ;; |
4149 | +- |
4150 | +- *) |
4151 | +- AC_MSG_ERROR([Unsupported tag name: $tagname]) |
4152 | +- ;; |
4153 | +- esac |
4154 | +- |
4155 | +- # Append the new tag name to the list of available tags. |
4156 | +- if test -n "$tagname" ; then |
4157 | +- available_tags="$available_tags $tagname" |
4158 | +- fi |
4159 | +- fi |
4160 | +- done |
4161 | +- IFS="$lt_save_ifs" |
4162 | +- |
4163 | +- # Now substitute the updated list of available tags. |
4164 | +- if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
4165 | +- mv "${ofile}T" "$ofile" |
4166 | +- chmod +x "$ofile" |
4167 | +- else |
4168 | +- rm -f "${ofile}T" |
4169 | +- AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
4170 | +- fi |
4171 | +-fi |
4172 | +-])# _LT_AC_TAGCONFIG |
4173 | +- |
4174 | +- |
4175 | +-# AC_LIBTOOL_DLOPEN |
4176 | +-# ----------------- |
4177 | +-# enable checks for dlopen support |
4178 | +-AC_DEFUN([AC_LIBTOOL_DLOPEN], |
4179 | +- [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
4180 | +-])# AC_LIBTOOL_DLOPEN |
4181 | +- |
4182 | +- |
4183 | +-# AC_LIBTOOL_WIN32_DLL |
4184 | +-# -------------------- |
4185 | +-# declare package support for building win32 DLLs |
4186 | +-AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
4187 | +-[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
4188 | +-])# AC_LIBTOOL_WIN32_DLL |
4189 | +- |
4190 | +- |
4191 | +-# AC_ENABLE_SHARED([DEFAULT]) |
4192 | +-# --------------------------- |
4193 | +-# implement the --enable-shared flag |
4194 | +-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
4195 | +-AC_DEFUN([AC_ENABLE_SHARED], |
4196 | +-[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
4197 | +-AC_ARG_ENABLE([shared], |
4198 | +- [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
4199 | +- [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
4200 | +- [p=${PACKAGE-default} |
4201 | +- case $enableval in |
4202 | +- yes) enable_shared=yes ;; |
4203 | +- no) enable_shared=no ;; |
4204 | +- *) |
4205 | +- enable_shared=no |
4206 | +- # Look at the argument we got. We use all the common list separators. |
4207 | +- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4208 | +- for pkg in $enableval; do |
4209 | +- IFS="$lt_save_ifs" |
4210 | +- if test "X$pkg" = "X$p"; then |
4211 | +- enable_shared=yes |
4212 | +- fi |
4213 | +- done |
4214 | +- IFS="$lt_save_ifs" |
4215 | +- ;; |
4216 | +- esac], |
4217 | +- [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
4218 | +-])# AC_ENABLE_SHARED |
4219 | +- |
4220 | +- |
4221 | +-# AC_DISABLE_SHARED |
4222 | +-# ----------------- |
4223 | +-# set the default shared flag to --disable-shared |
4224 | +-AC_DEFUN([AC_DISABLE_SHARED], |
4225 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4226 | +-AC_ENABLE_SHARED(no) |
4227 | +-])# AC_DISABLE_SHARED |
4228 | +- |
4229 | +- |
4230 | +-# AC_ENABLE_STATIC([DEFAULT]) |
4231 | +-# --------------------------- |
4232 | +-# implement the --enable-static flag |
4233 | +-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
4234 | +-AC_DEFUN([AC_ENABLE_STATIC], |
4235 | +-[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
4236 | +-AC_ARG_ENABLE([static], |
4237 | +- [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
4238 | +- [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
4239 | +- [p=${PACKAGE-default} |
4240 | +- case $enableval in |
4241 | +- yes) enable_static=yes ;; |
4242 | +- no) enable_static=no ;; |
4243 | +- *) |
4244 | +- enable_static=no |
4245 | +- # Look at the argument we got. We use all the common list separators. |
4246 | +- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4247 | +- for pkg in $enableval; do |
4248 | +- IFS="$lt_save_ifs" |
4249 | +- if test "X$pkg" = "X$p"; then |
4250 | +- enable_static=yes |
4251 | +- fi |
4252 | +- done |
4253 | +- IFS="$lt_save_ifs" |
4254 | +- ;; |
4255 | +- esac], |
4256 | +- [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
4257 | +-])# AC_ENABLE_STATIC |
4258 | +- |
4259 | +- |
4260 | +-# AC_DISABLE_STATIC |
4261 | +-# ----------------- |
4262 | +-# set the default static flag to --disable-static |
4263 | +-AC_DEFUN([AC_DISABLE_STATIC], |
4264 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4265 | +-AC_ENABLE_STATIC(no) |
4266 | +-])# AC_DISABLE_STATIC |
4267 | +- |
4268 | +- |
4269 | +-# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
4270 | +-# --------------------------------- |
4271 | +-# implement the --enable-fast-install flag |
4272 | +-# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
4273 | +-AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
4274 | +-[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
4275 | +-AC_ARG_ENABLE([fast-install], |
4276 | +- [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
4277 | +- [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
4278 | +- [p=${PACKAGE-default} |
4279 | +- case $enableval in |
4280 | +- yes) enable_fast_install=yes ;; |
4281 | +- no) enable_fast_install=no ;; |
4282 | +- *) |
4283 | +- enable_fast_install=no |
4284 | +- # Look at the argument we got. We use all the common list separators. |
4285 | +- lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
4286 | +- for pkg in $enableval; do |
4287 | +- IFS="$lt_save_ifs" |
4288 | +- if test "X$pkg" = "X$p"; then |
4289 | +- enable_fast_install=yes |
4290 | +- fi |
4291 | +- done |
4292 | +- IFS="$lt_save_ifs" |
4293 | +- ;; |
4294 | +- esac], |
4295 | +- [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
4296 | +-])# AC_ENABLE_FAST_INSTALL |
4297 | +- |
4298 | +- |
4299 | +-# AC_DISABLE_FAST_INSTALL |
4300 | +-# ----------------------- |
4301 | +-# set the default to --disable-fast-install |
4302 | +-AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
4303 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4304 | +-AC_ENABLE_FAST_INSTALL(no) |
4305 | +-])# AC_DISABLE_FAST_INSTALL |
4306 | +- |
4307 | +- |
4308 | +-# AC_LIBTOOL_PICMODE([MODE]) |
4309 | +-# -------------------------- |
4310 | +-# implement the --with-pic flag |
4311 | +-# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
4312 | +-AC_DEFUN([AC_LIBTOOL_PICMODE], |
4313 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4314 | +-pic_mode=ifelse($#,1,$1,default) |
4315 | +-])# AC_LIBTOOL_PICMODE |
4316 | +- |
4317 | +- |
4318 | +-# AC_PROG_EGREP |
4319 | +-# ------------- |
4320 | +-# This is predefined starting with Autoconf 2.54, so this conditional |
4321 | +-# definition can be removed once we require Autoconf 2.54 or later. |
4322 | +-m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
4323 | +-[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
4324 | +- [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
4325 | +- then ac_cv_prog_egrep='grep -E' |
4326 | +- else ac_cv_prog_egrep='egrep' |
4327 | +- fi]) |
4328 | +- EGREP=$ac_cv_prog_egrep |
4329 | +- AC_SUBST([EGREP]) |
4330 | +-])]) |
4331 | +- |
4332 | +- |
4333 | +-# AC_PATH_TOOL_PREFIX |
4334 | +-# ------------------- |
4335 | +-# find a file program which can recognize shared library |
4336 | +-AC_DEFUN([AC_PATH_TOOL_PREFIX], |
4337 | +-[AC_REQUIRE([AC_PROG_EGREP])dnl |
4338 | +-AC_MSG_CHECKING([for $1]) |
4339 | +-AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
4340 | +-[case $MAGIC_CMD in |
4341 | +-[[\\/*] | ?:[\\/]*]) |
4342 | +- lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
4343 | +- ;; |
4344 | +-*) |
4345 | +- lt_save_MAGIC_CMD="$MAGIC_CMD" |
4346 | +- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4347 | +-dnl $ac_dummy forces splitting on constant user-supplied paths. |
4348 | +-dnl POSIX.2 word splitting is done only on the output of word expansions, |
4349 | +-dnl not every word. This closes a longstanding sh security hole. |
4350 | +- ac_dummy="ifelse([$2], , $PATH, [$2])" |
4351 | +- for ac_dir in $ac_dummy; do |
4352 | +- IFS="$lt_save_ifs" |
4353 | +- test -z "$ac_dir" && ac_dir=. |
4354 | +- if test -f $ac_dir/$1; then |
4355 | +- lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
4356 | +- if test -n "$file_magic_test_file"; then |
4357 | +- case $deplibs_check_method in |
4358 | +- "file_magic "*) |
4359 | +- file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
4360 | +- MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4361 | +- if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
4362 | +- $EGREP "$file_magic_regex" > /dev/null; then |
4363 | +- : |
4364 | +- else |
4365 | +- cat <<EOF 1>&2 |
4366 | +- |
4367 | +-*** Warning: the command libtool uses to detect shared libraries, |
4368 | +-*** $file_magic_cmd, produces output that libtool cannot recognize. |
4369 | +-*** The result is that libtool may fail to recognize shared libraries |
4370 | +-*** as such. This will affect the creation of libtool libraries that |
4371 | +-*** depend on shared libraries, but programs linked with such libtool |
4372 | +-*** libraries will work regardless of this problem. Nevertheless, you |
4373 | +-*** may want to report the problem to your system manager and/or to |
4374 | +-*** bug-libtool@gnu.org |
4375 | +- |
4376 | +-EOF |
4377 | +- fi ;; |
4378 | +- esac |
4379 | +- fi |
4380 | +- break |
4381 | +- fi |
4382 | +- done |
4383 | +- IFS="$lt_save_ifs" |
4384 | +- MAGIC_CMD="$lt_save_MAGIC_CMD" |
4385 | +- ;; |
4386 | +-esac]) |
4387 | +-MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
4388 | +-if test -n "$MAGIC_CMD"; then |
4389 | +- AC_MSG_RESULT($MAGIC_CMD) |
4390 | +-else |
4391 | +- AC_MSG_RESULT(no) |
4392 | +-fi |
4393 | +-])# AC_PATH_TOOL_PREFIX |
4394 | +- |
4395 | +- |
4396 | +-# AC_PATH_MAGIC |
4397 | +-# ------------- |
4398 | +-# find a file program which can recognize a shared library |
4399 | +-AC_DEFUN([AC_PATH_MAGIC], |
4400 | +-[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
4401 | +-if test -z "$lt_cv_path_MAGIC_CMD"; then |
4402 | +- if test -n "$ac_tool_prefix"; then |
4403 | +- AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
4404 | +- else |
4405 | +- MAGIC_CMD=: |
4406 | +- fi |
4407 | +-fi |
4408 | +-])# AC_PATH_MAGIC |
4409 | +- |
4410 | +- |
4411 | +-# AC_PROG_LD |
4412 | +-# ---------- |
4413 | +-# find the pathname to the GNU or non-GNU linker |
4414 | +-AC_DEFUN([AC_PROG_LD], |
4415 | +-[AC_ARG_WITH([gnu-ld], |
4416 | +- [AC_HELP_STRING([--with-gnu-ld], |
4417 | +- [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
4418 | +- [test "$withval" = no || with_gnu_ld=yes], |
4419 | +- [with_gnu_ld=no]) |
4420 | +-AC_REQUIRE([LT_AC_PROG_SED])dnl |
4421 | +-AC_REQUIRE([AC_PROG_CC])dnl |
4422 | +-AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4423 | +-AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
4424 | +-ac_prog=ld |
4425 | +-if test "$GCC" = yes; then |
4426 | +- # Check if gcc -print-prog-name=ld gives a path. |
4427 | +- AC_MSG_CHECKING([for ld used by $CC]) |
4428 | +- case $host in |
4429 | +- *-*-mingw*) |
4430 | +- # gcc leaves a trailing carriage return which upsets mingw |
4431 | +- ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4432 | +- *) |
4433 | +- ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4434 | +- esac |
4435 | +- case $ac_prog in |
4436 | +- # Accept absolute paths. |
4437 | +- [[\\/]]* | ?:[[\\/]]*) |
4438 | +- re_direlt='/[[^/]][[^/]]*/\.\./' |
4439 | +- # Canonicalize the pathname of ld |
4440 | +- ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4441 | +- while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4442 | +- ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4443 | +- done |
4444 | +- test -z "$LD" && LD="$ac_prog" |
4445 | +- ;; |
4446 | +- "") |
4447 | +- # If it fails, then pretend we aren't using GCC. |
4448 | +- ac_prog=ld |
4449 | +- ;; |
4450 | +- *) |
4451 | +- # If it is relative, then search for the first ld in PATH. |
4452 | +- with_gnu_ld=unknown |
4453 | +- ;; |
4454 | +- esac |
4455 | +-elif test "$with_gnu_ld" = yes; then |
4456 | +- AC_MSG_CHECKING([for GNU ld]) |
4457 | +-else |
4458 | +- AC_MSG_CHECKING([for non-GNU ld]) |
4459 | +-fi |
4460 | +-AC_CACHE_VAL(lt_cv_path_LD, |
4461 | +-[if test -z "$LD"; then |
4462 | +- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4463 | +- for ac_dir in $PATH; do |
4464 | +- IFS="$lt_save_ifs" |
4465 | +- test -z "$ac_dir" && ac_dir=. |
4466 | +- if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4467 | +- lt_cv_path_LD="$ac_dir/$ac_prog" |
4468 | +- # Check to see if the program is GNU ld. I'd rather use --version, |
4469 | +- # but apparently some variants of GNU ld only accept -v. |
4470 | +- # Break only if it was the GNU/non-GNU ld that we prefer. |
4471 | +- case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4472 | +- *GNU* | *'with BFD'*) |
4473 | +- test "$with_gnu_ld" != no && break |
4474 | +- ;; |
4475 | +- *) |
4476 | +- test "$with_gnu_ld" != yes && break |
4477 | +- ;; |
4478 | +- esac |
4479 | +- fi |
4480 | +- done |
4481 | +- IFS="$lt_save_ifs" |
4482 | +-else |
4483 | +- lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4484 | +-fi]) |
4485 | +-LD="$lt_cv_path_LD" |
4486 | +-if test -n "$LD"; then |
4487 | +- AC_MSG_RESULT($LD) |
4488 | +-else |
4489 | +- AC_MSG_RESULT(no) |
4490 | +-fi |
4491 | +-test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
4492 | +-AC_PROG_LD_GNU |
4493 | +-])# AC_PROG_LD |
4494 | +- |
4495 | +- |
4496 | +-# AC_PROG_LD_GNU |
4497 | +-# -------------- |
4498 | +-AC_DEFUN([AC_PROG_LD_GNU], |
4499 | +-[AC_REQUIRE([AC_PROG_EGREP])dnl |
4500 | +-AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
4501 | +-[# I'd rather use --version here, but apparently some GNU lds only accept -v. |
4502 | +-case `$LD -v 2>&1 </dev/null` in |
4503 | +-*GNU* | *'with BFD'*) |
4504 | +- lt_cv_prog_gnu_ld=yes |
4505 | +- ;; |
4506 | +-*) |
4507 | +- lt_cv_prog_gnu_ld=no |
4508 | +- ;; |
4509 | +-esac]) |
4510 | +-with_gnu_ld=$lt_cv_prog_gnu_ld |
4511 | +-])# AC_PROG_LD_GNU |
4512 | +- |
4513 | +- |
4514 | +-# AC_PROG_LD_RELOAD_FLAG |
4515 | +-# ---------------------- |
4516 | +-# find reload flag for linker |
4517 | +-# -- PORTME Some linkers may need a different reload flag. |
4518 | +-AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
4519 | +-[AC_CACHE_CHECK([for $LD option to reload object files], |
4520 | +- lt_cv_ld_reload_flag, |
4521 | +- [lt_cv_ld_reload_flag='-r']) |
4522 | +-reload_flag=$lt_cv_ld_reload_flag |
4523 | +-case $reload_flag in |
4524 | +-"" | " "*) ;; |
4525 | +-*) reload_flag=" $reload_flag" ;; |
4526 | +-esac |
4527 | +-reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4528 | +-case $host_os in |
4529 | +- darwin*) |
4530 | +- if test "$GCC" = yes; then |
4531 | +- reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4532 | +- else |
4533 | +- reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4534 | +- fi |
4535 | +- ;; |
4536 | +-esac |
4537 | +-])# AC_PROG_LD_RELOAD_FLAG |
4538 | +- |
4539 | +- |
4540 | +-# AC_DEPLIBS_CHECK_METHOD |
4541 | +-# ----------------------- |
4542 | +-# how to check for library dependencies |
4543 | +-# -- PORTME fill in with the dynamic library characteristics |
4544 | +-AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
4545 | +-[AC_CACHE_CHECK([how to recognize dependent libraries], |
4546 | +-lt_cv_deplibs_check_method, |
4547 | +-[lt_cv_file_magic_cmd='$MAGIC_CMD' |
4548 | +-lt_cv_file_magic_test_file= |
4549 | +-lt_cv_deplibs_check_method='unknown' |
4550 | +-# Need to set the preceding variable on all platforms that support |
4551 | +-# interlibrary dependencies. |
4552 | +-# 'none' -- dependencies not supported. |
4553 | +-# `unknown' -- same as none, but documents that we really don't know. |
4554 | +-# 'pass_all' -- all dependencies passed with no checks. |
4555 | +-# 'test_compile' -- check by making test program. |
4556 | +-# 'file_magic [[regex]]' -- check by looking for files in library path |
4557 | +-# which responds to the $file_magic_cmd with a given extended regex. |
4558 | +-# If you have `file' or equivalent on your system and you're not sure |
4559 | +-# whether `pass_all' will *always* work, you probably want this one. |
4560 | +- |
4561 | +-case $host_os in |
4562 | +-aix[[4-9]]*) |
4563 | +- lt_cv_deplibs_check_method=pass_all |
4564 | +- ;; |
4565 | +- |
4566 | +-beos*) |
4567 | +- lt_cv_deplibs_check_method=pass_all |
4568 | +- ;; |
4569 | +- |
4570 | +-bsdi[[45]]*) |
4571 | +- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
4572 | +- lt_cv_file_magic_cmd='/usr/bin/file -L' |
4573 | +- lt_cv_file_magic_test_file=/shlib/libc.so |
4574 | +- ;; |
4575 | +- |
4576 | +-cygwin*) |
4577 | +- # func_win32_libid is a shell function defined in ltmain.sh |
4578 | +- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4579 | +- lt_cv_file_magic_cmd='func_win32_libid' |
4580 | +- ;; |
4581 | +- |
4582 | +-mingw* | pw32*) |
4583 | +- # Base MSYS/MinGW do not provide the 'file' command needed by |
4584 | +- # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4585 | +- # unless we find 'file', for example because we are cross-compiling. |
4586 | +- if ( file / ) >/dev/null 2>&1; then |
4587 | +- lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4588 | +- lt_cv_file_magic_cmd='func_win32_libid' |
4589 | +- else |
4590 | +- lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4591 | +- lt_cv_file_magic_cmd='$OBJDUMP -f' |
4592 | +- fi |
4593 | +- ;; |
4594 | +- |
4595 | +-darwin* | rhapsody*) |
4596 | +- lt_cv_deplibs_check_method=pass_all |
4597 | +- ;; |
4598 | +- |
4599 | +-freebsd* | dragonfly*) |
4600 | +- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4601 | +- case $host_cpu in |
4602 | +- i*86 ) |
4603 | +- # Not sure whether the presence of OpenBSD here was a mistake. |
4604 | +- # Let's accept both of them until this is cleared up. |
4605 | +- lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
4606 | +- lt_cv_file_magic_cmd=/usr/bin/file |
4607 | +- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4608 | +- ;; |
4609 | +- esac |
4610 | +- else |
4611 | +- lt_cv_deplibs_check_method=pass_all |
4612 | +- fi |
4613 | +- ;; |
4614 | +- |
4615 | +-gnu*) |
4616 | +- lt_cv_deplibs_check_method=pass_all |
4617 | +- ;; |
4618 | +- |
4619 | +-hpux10.20* | hpux11*) |
4620 | +- lt_cv_file_magic_cmd=/usr/bin/file |
4621 | +- case $host_cpu in |
4622 | +- ia64*) |
4623 | +- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
4624 | +- lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4625 | +- ;; |
4626 | +- hppa*64*) |
4627 | +- [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]'] |
4628 | +- lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4629 | +- ;; |
4630 | +- *) |
4631 | +- lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
4632 | +- lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4633 | +- ;; |
4634 | +- esac |
4635 | +- ;; |
4636 | +- |
4637 | +-interix[[3-9]]*) |
4638 | +- # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4639 | +- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' |
4640 | +- ;; |
4641 | +- |
4642 | +-irix5* | irix6* | nonstopux*) |
4643 | +- case $LD in |
4644 | +- *-32|*"-32 ") libmagic=32-bit;; |
4645 | +- *-n32|*"-n32 ") libmagic=N32;; |
4646 | +- *-64|*"-64 ") libmagic=64-bit;; |
4647 | +- *) libmagic=never-match;; |
4648 | +- esac |
4649 | +- lt_cv_deplibs_check_method=pass_all |
4650 | +- ;; |
4651 | +- |
4652 | +-# This must be Linux ELF. |
4653 | +-linux* | k*bsd*-gnu) |
4654 | +- lt_cv_deplibs_check_method=pass_all |
4655 | +- ;; |
4656 | +- |
4657 | +-netbsd*) |
4658 | +- if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4659 | +- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
4660 | +- else |
4661 | +- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
4662 | +- fi |
4663 | +- ;; |
4664 | +- |
4665 | +-newos6*) |
4666 | +- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
4667 | +- lt_cv_file_magic_cmd=/usr/bin/file |
4668 | +- lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4669 | +- ;; |
4670 | +- |
4671 | +-nto-qnx*) |
4672 | +- lt_cv_deplibs_check_method=unknown |
4673 | +- ;; |
4674 | +- |
4675 | +-openbsd*) |
4676 | +- if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4677 | +- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
4678 | +- else |
4679 | +- lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
4680 | +- fi |
4681 | +- ;; |
4682 | +- |
4683 | +-osf3* | osf4* | osf5*) |
4684 | +- lt_cv_deplibs_check_method=pass_all |
4685 | +- ;; |
4686 | +- |
4687 | +-rdos*) |
4688 | +- lt_cv_deplibs_check_method=pass_all |
4689 | +- ;; |
4690 | +- |
4691 | +-solaris*) |
4692 | +- lt_cv_deplibs_check_method=pass_all |
4693 | +- ;; |
4694 | +- |
4695 | +-sysv4 | sysv4.3*) |
4696 | +- case $host_vendor in |
4697 | +- motorola) |
4698 | +- 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]]' |
4699 | +- lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4700 | +- ;; |
4701 | +- ncr) |
4702 | +- lt_cv_deplibs_check_method=pass_all |
4703 | +- ;; |
4704 | +- sequent) |
4705 | +- lt_cv_file_magic_cmd='/bin/file' |
4706 | +- lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
4707 | +- ;; |
4708 | +- sni) |
4709 | +- lt_cv_file_magic_cmd='/bin/file' |
4710 | +- lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
4711 | +- lt_cv_file_magic_test_file=/lib/libc.so |
4712 | +- ;; |
4713 | +- siemens) |
4714 | +- lt_cv_deplibs_check_method=pass_all |
4715 | +- ;; |
4716 | +- pc) |
4717 | +- lt_cv_deplibs_check_method=pass_all |
4718 | +- ;; |
4719 | +- esac |
4720 | +- ;; |
4721 | +- |
4722 | +-sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4723 | +- lt_cv_deplibs_check_method=pass_all |
4724 | +- ;; |
4725 | +-esac |
4726 | +-]) |
4727 | +-file_magic_cmd=$lt_cv_file_magic_cmd |
4728 | +-deplibs_check_method=$lt_cv_deplibs_check_method |
4729 | +-test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4730 | +-])# AC_DEPLIBS_CHECK_METHOD |
4731 | +- |
4732 | +- |
4733 | +-# AC_PROG_NM |
4734 | +-# ---------- |
4735 | +-# find the pathname to a BSD-compatible name lister |
4736 | +-AC_DEFUN([AC_PROG_NM], |
4737 | +-[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
4738 | +-[if test -n "$NM"; then |
4739 | +- # Let the user override the test. |
4740 | +- lt_cv_path_NM="$NM" |
4741 | +-else |
4742 | +- lt_nm_to_check="${ac_tool_prefix}nm" |
4743 | +- if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4744 | +- lt_nm_to_check="$lt_nm_to_check nm" |
4745 | +- fi |
4746 | +- for lt_tmp_nm in $lt_nm_to_check; do |
4747 | +- lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4748 | +- for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4749 | +- IFS="$lt_save_ifs" |
4750 | +- test -z "$ac_dir" && ac_dir=. |
4751 | +- tmp_nm="$ac_dir/$lt_tmp_nm" |
4752 | +- if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4753 | +- # Check to see if the nm accepts a BSD-compat flag. |
4754 | +- # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4755 | +- # nm: unknown option "B" ignored |
4756 | +- # Tru64's nm complains that /dev/null is an invalid object file |
4757 | +- case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4758 | +- */dev/null* | *'Invalid file or object type'*) |
4759 | +- lt_cv_path_NM="$tmp_nm -B" |
4760 | +- break |
4761 | +- ;; |
4762 | +- *) |
4763 | +- case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4764 | +- */dev/null*) |
4765 | +- lt_cv_path_NM="$tmp_nm -p" |
4766 | +- break |
4767 | +- ;; |
4768 | +- *) |
4769 | +- lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4770 | +- continue # so that we can try to find one that supports BSD flags |
4771 | +- ;; |
4772 | +- esac |
4773 | +- ;; |
4774 | +- esac |
4775 | +- fi |
4776 | +- done |
4777 | +- IFS="$lt_save_ifs" |
4778 | +- done |
4779 | +- test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4780 | +-fi]) |
4781 | +-NM="$lt_cv_path_NM" |
4782 | +-])# AC_PROG_NM |
4783 | +- |
4784 | +- |
4785 | +-# AC_CHECK_LIBM |
4786 | +-# ------------- |
4787 | +-# check for math library |
4788 | +-AC_DEFUN([AC_CHECK_LIBM], |
4789 | +-[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
4790 | +-LIBM= |
4791 | +-case $host in |
4792 | +-*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
4793 | +- # These system don't have libm, or don't need it |
4794 | +- ;; |
4795 | +-*-ncr-sysv4.3*) |
4796 | +- AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
4797 | +- AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
4798 | +- ;; |
4799 | +-*) |
4800 | +- AC_CHECK_LIB(m, cos, LIBM="-lm") |
4801 | +- ;; |
4802 | +-esac |
4803 | +-])# AC_CHECK_LIBM |
4804 | +- |
4805 | +- |
4806 | +-# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
4807 | +-# ----------------------------------- |
4808 | +-# sets LIBLTDL to the link flags for the libltdl convenience library and |
4809 | +-# LTDLINCL to the include flags for the libltdl header and adds |
4810 | +-# --enable-ltdl-convenience to the configure arguments. Note that |
4811 | +-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
4812 | +-# it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
4813 | +-# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
4814 | +-# (note the single quotes!). If your package is not flat and you're not |
4815 | +-# using automake, define top_builddir and top_srcdir appropriately in |
4816 | +-# the Makefiles. |
4817 | +-AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
4818 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4819 | +- case $enable_ltdl_convenience in |
4820 | +- no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
4821 | +- "") enable_ltdl_convenience=yes |
4822 | +- ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
4823 | +- esac |
4824 | +- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
4825 | +- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
4826 | +- # For backwards non-gettext consistent compatibility... |
4827 | +- INCLTDL="$LTDLINCL" |
4828 | +-])# AC_LIBLTDL_CONVENIENCE |
4829 | +- |
4830 | +- |
4831 | +-# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
4832 | +-# ----------------------------------- |
4833 | +-# sets LIBLTDL to the link flags for the libltdl installable library and |
4834 | +-# LTDLINCL to the include flags for the libltdl header and adds |
4835 | +-# --enable-ltdl-install to the configure arguments. Note that |
4836 | +-# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
4837 | +-# and an installed libltdl is not found, it is assumed to be `libltdl'. |
4838 | +-# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with |
4839 | +-# '${top_srcdir}/' (note the single quotes!). If your package is not |
4840 | +-# flat and you're not using automake, define top_builddir and top_srcdir |
4841 | +-# appropriately in the Makefiles. |
4842 | +-# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
4843 | +-AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
4844 | +-[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
4845 | +- AC_CHECK_LIB(ltdl, lt_dlinit, |
4846 | +- [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
4847 | +- [if test x"$enable_ltdl_install" = xno; then |
4848 | +- AC_MSG_WARN([libltdl not installed, but installation disabled]) |
4849 | +- else |
4850 | +- enable_ltdl_install=yes |
4851 | +- fi |
4852 | +- ]) |
4853 | +- if test x"$enable_ltdl_install" = x"yes"; then |
4854 | +- ac_configure_args="$ac_configure_args --enable-ltdl-install" |
4855 | +- LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
4856 | +- LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
4857 | +- else |
4858 | +- ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
4859 | +- LIBLTDL="-lltdl" |
4860 | +- LTDLINCL= |
4861 | +- fi |
4862 | +- # For backwards non-gettext consistent compatibility... |
4863 | +- INCLTDL="$LTDLINCL" |
4864 | +-])# AC_LIBLTDL_INSTALLABLE |
4865 | +- |
4866 | +- |
4867 | +-# AC_LIBTOOL_CXX |
4868 | +-# -------------- |
4869 | +-# enable support for C++ libraries |
4870 | +-AC_DEFUN([AC_LIBTOOL_CXX], |
4871 | +-[AC_REQUIRE([_LT_AC_LANG_CXX]) |
4872 | +-])# AC_LIBTOOL_CXX |
4873 | +- |
4874 | +- |
4875 | +-# _LT_AC_LANG_CXX |
4876 | +-# --------------- |
4877 | +-AC_DEFUN([_LT_AC_LANG_CXX], |
4878 | +-[AC_REQUIRE([AC_PROG_CXX]) |
4879 | +-AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
4880 | +-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
4881 | +-])# _LT_AC_LANG_CXX |
4882 | +- |
4883 | +-# _LT_AC_PROG_CXXCPP |
4884 | +-# ------------------ |
4885 | +-AC_DEFUN([_LT_AC_PROG_CXXCPP], |
4886 | +-[ |
4887 | +-AC_REQUIRE([AC_PROG_CXX]) |
4888 | +-if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
4889 | +- ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
4890 | +- (test "X$CXX" != "Xg++"))) ; then |
4891 | +- AC_PROG_CXXCPP |
4892 | +-fi |
4893 | +-])# _LT_AC_PROG_CXXCPP |
4894 | +- |
4895 | +-# AC_LIBTOOL_F77 |
4896 | +-# -------------- |
4897 | +-# enable support for Fortran 77 libraries |
4898 | +-AC_DEFUN([AC_LIBTOOL_F77], |
4899 | +-[AC_REQUIRE([_LT_AC_LANG_F77]) |
4900 | +-])# AC_LIBTOOL_F77 |
4901 | +- |
4902 | +- |
4903 | +-# _LT_AC_LANG_F77 |
4904 | +-# --------------- |
4905 | +-AC_DEFUN([_LT_AC_LANG_F77], |
4906 | +-[AC_REQUIRE([AC_PROG_F77]) |
4907 | +-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
4908 | +-])# _LT_AC_LANG_F77 |
4909 | +- |
4910 | +- |
4911 | +-# AC_LIBTOOL_GCJ |
4912 | +-# -------------- |
4913 | +-# enable support for GCJ libraries |
4914 | +-AC_DEFUN([AC_LIBTOOL_GCJ], |
4915 | +-[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
4916 | +-])# AC_LIBTOOL_GCJ |
4917 | +- |
4918 | +- |
4919 | +-# _LT_AC_LANG_GCJ |
4920 | +-# --------------- |
4921 | +-AC_DEFUN([_LT_AC_LANG_GCJ], |
4922 | +-[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
4923 | +- [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
4924 | +- [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
4925 | +- [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
4926 | +- [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
4927 | +- [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
4928 | +-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
4929 | +-])# _LT_AC_LANG_GCJ |
4930 | +- |
4931 | +- |
4932 | +-# AC_LIBTOOL_RC |
4933 | +-# ------------- |
4934 | +-# enable support for Windows resource files |
4935 | +-AC_DEFUN([AC_LIBTOOL_RC], |
4936 | +-[AC_REQUIRE([LT_AC_PROG_RC]) |
4937 | +-_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
4938 | +-])# AC_LIBTOOL_RC |
4939 | +- |
4940 | +- |
4941 | +-# AC_LIBTOOL_LANG_C_CONFIG |
4942 | +-# ------------------------ |
4943 | +-# Ensure that the configuration vars for the C compiler are |
4944 | +-# suitably defined. Those variables are subsequently used by |
4945 | +-# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
4946 | +-AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
4947 | +-AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
4948 | +-[lt_save_CC="$CC" |
4949 | +-AC_LANG_PUSH(C) |
4950 | +- |
4951 | +-# Source file extension for C test sources. |
4952 | +-ac_ext=c |
4953 | +- |
4954 | +-# Object file extension for compiled C test sources. |
4955 | +-objext=o |
4956 | +-_LT_AC_TAGVAR(objext, $1)=$objext |
4957 | +- |
4958 | +-# Code to be used in simple compile tests |
4959 | +-lt_simple_compile_test_code="int some_variable = 0;" |
4960 | +- |
4961 | +-# Code to be used in simple link tests |
4962 | +-lt_simple_link_test_code='int main(){return(0);}' |
4963 | +- |
4964 | +-_LT_AC_SYS_COMPILER |
4965 | +- |
4966 | +-# save warnings/boilerplate of simple test code |
4967 | +-_LT_COMPILER_BOILERPLATE |
4968 | +-_LT_LINKER_BOILERPLATE |
4969 | +- |
4970 | +-AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
4971 | +-AC_LIBTOOL_PROG_COMPILER_PIC($1) |
4972 | +-AC_LIBTOOL_PROG_CC_C_O($1) |
4973 | +-AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
4974 | +-AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4975 | +-AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4976 | +-AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
4977 | +-AC_LIBTOOL_SYS_LIB_STRIP |
4978 | +-AC_LIBTOOL_DLOPEN_SELF |
4979 | +- |
4980 | +-# Report which library types will actually be built |
4981 | +-AC_MSG_CHECKING([if libtool supports shared libraries]) |
4982 | +-AC_MSG_RESULT([$can_build_shared]) |
4983 | +- |
4984 | +-AC_MSG_CHECKING([whether to build shared libraries]) |
4985 | +-test "$can_build_shared" = "no" && enable_shared=no |
4986 | +- |
4987 | +-# On AIX, shared libraries and static libraries use the same namespace, and |
4988 | +-# are all built from PIC. |
4989 | +-case $host_os in |
4990 | +-aix3*) |
4991 | +- test "$enable_shared" = yes && enable_static=no |
4992 | +- if test -n "$RANLIB"; then |
4993 | +- archive_cmds="$archive_cmds~\$RANLIB \$lib" |
4994 | +- postinstall_cmds='$RANLIB $lib' |
4995 | +- fi |
4996 | +- ;; |
4997 | +- |
4998 | +-aix[[4-9]]*) |
4999 | +- if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
5000 | +- test "$enable_shared" = yes && enable_static=no |
The diff has been truncated for viewing.
Hi Sebastien,
I've done some work on gnome-media to build the new gnome-volume- control capplet alongside the existing gst-mixer. I renamed the new capplet to gnome-volume- control- settings.
Both gnome-volume- control- settings and gnome-volume- control- applet build in to a new binary package - gnome-volume- control.