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