Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | #! /bin/sh |
2 | ||
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated automatically using autoconf version 2.13 | |
5 | # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc. | |
6 | # | |
7 | # This configure script is free software; the Free Software Foundation | |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
10 | # Defaults: | |
11 | ac_help= | |
12 | ac_default_prefix=/usr/local | |
13 | # Any additions from configure.in: | |
14 | ac_help="$ac_help | |
15 | --enable-shared[=PKGS] build shared libraries [default=yes]" | |
16 | ac_help="$ac_help | |
17 | --enable-static[=PKGS] build static libraries [default=yes]" | |
18 | ac_help="$ac_help | |
19 | --enable-fast-install[=PKGS] optimize for fast installation [default=yes]" | |
20 | ac_help="$ac_help | |
21 | --with-gnu-ld assume the C compiler uses GNU ld [default=no]" | |
22 | ac_help="$ac_help | |
23 | --disable-libtool-lock force libtool not to do file locking" | |
24 | ac_help="$ac_help | |
25 | --disable-nls do not use Native Language Support" | |
26 | ac_help="$ac_help | |
27 | --with-included-gettext use the GNU gettext library included here" | |
28 | ac_help="$ac_help | |
29 | --enable-maintainer-mode enable make rules and dependencies not useful | |
30 | (and sometimes confusing) to the casual installer" | |
a2d91340 AC |
31 | ac_help="$ac_help |
32 | --enable-build-warnings Enable build-time compiler warnings if gcc is used" | |
252b5132 RH |
33 | |
34 | # Initialize some variables set by options. | |
35 | # The variables have the same names as the options, with | |
36 | # dashes changed to underlines. | |
37 | build=NONE | |
38 | cache_file=./config.cache | |
39 | exec_prefix=NONE | |
40 | host=NONE | |
41 | no_create= | |
42 | nonopt=NONE | |
43 | no_recursion= | |
44 | prefix=NONE | |
45 | program_prefix=NONE | |
46 | program_suffix=NONE | |
47 | program_transform_name=s,x,x, | |
48 | silent= | |
49 | site= | |
fb57846b | 50 | sitefile= |
252b5132 RH |
51 | srcdir= |
52 | target=NONE | |
53 | verbose= | |
54 | x_includes=NONE | |
55 | x_libraries=NONE | |
56 | bindir='${exec_prefix}/bin' | |
57 | sbindir='${exec_prefix}/sbin' | |
58 | libexecdir='${exec_prefix}/libexec' | |
59 | datadir='${prefix}/share' | |
60 | sysconfdir='${prefix}/etc' | |
61 | sharedstatedir='${prefix}/com' | |
62 | localstatedir='${prefix}/var' | |
63 | libdir='${exec_prefix}/lib' | |
64 | includedir='${prefix}/include' | |
65 | oldincludedir='/usr/include' | |
66 | infodir='${prefix}/info' | |
67 | mandir='${prefix}/man' | |
68 | ||
69 | # Initialize some other variables. | |
70 | subdirs= | |
71 | MFLAGS= MAKEFLAGS= | |
72 | SHELL=${CONFIG_SHELL-/bin/sh} | |
73 | # Maximum number of lines to put in a shell here document. | |
74 | ac_max_here_lines=12 | |
75 | ||
76 | ac_prev= | |
77 | for ac_option | |
78 | do | |
79 | ||
80 | # If the previous option needs an argument, assign it. | |
81 | if test -n "$ac_prev"; then | |
82 | eval "$ac_prev=\$ac_option" | |
83 | ac_prev= | |
84 | continue | |
85 | fi | |
86 | ||
87 | case "$ac_option" in | |
88 | -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | |
89 | *) ac_optarg= ;; | |
90 | esac | |
91 | ||
92 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
93 | ||
94 | case "$ac_option" in | |
95 | ||
96 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
97 | ac_prev=bindir ;; | |
98 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
99 | bindir="$ac_optarg" ;; | |
100 | ||
101 | -build | --build | --buil | --bui | --bu) | |
102 | ac_prev=build ;; | |
103 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
104 | build="$ac_optarg" ;; | |
105 | ||
106 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
107 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
108 | ac_prev=cache_file ;; | |
109 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
110 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
111 | cache_file="$ac_optarg" ;; | |
112 | ||
113 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
114 | ac_prev=datadir ;; | |
115 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
116 | | --da=*) | |
117 | datadir="$ac_optarg" ;; | |
118 | ||
119 | -disable-* | --disable-*) | |
120 | ac_feature=`echo $ac_option|sed -e 's/-*disable-//'` | |
121 | # Reject names that are not valid shell variable names. | |
122 | if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
123 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
124 | fi | |
125 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
126 | eval "enable_${ac_feature}=no" ;; | |
127 | ||
128 | -enable-* | --enable-*) | |
129 | ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'` | |
130 | # Reject names that are not valid shell variable names. | |
131 | if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
132 | { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; } | |
133 | fi | |
134 | ac_feature=`echo $ac_feature| sed 's/-/_/g'` | |
135 | case "$ac_option" in | |
136 | *=*) ;; | |
137 | *) ac_optarg=yes ;; | |
138 | esac | |
139 | eval "enable_${ac_feature}='$ac_optarg'" ;; | |
140 | ||
141 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
142 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
143 | | --exec | --exe | --ex) | |
144 | ac_prev=exec_prefix ;; | |
145 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
146 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
147 | | --exec=* | --exe=* | --ex=*) | |
148 | exec_prefix="$ac_optarg" ;; | |
149 | ||
150 | -gas | --gas | --ga | --g) | |
151 | # Obsolete; use --with-gas. | |
152 | with_gas=yes ;; | |
153 | ||
154 | -help | --help | --hel | --he) | |
155 | # Omit some internal or obsolete options to make the list less imposing. | |
156 | # This message is too long to be a string in the A/UX 3.1 sh. | |
157 | cat << EOF | |
158 | Usage: configure [options] [host] | |
159 | Options: [defaults in brackets after descriptions] | |
160 | Configuration: | |
161 | --cache-file=FILE cache test results in FILE | |
162 | --help print this message | |
163 | --no-create do not create output files | |
164 | --quiet, --silent do not print \`checking...' messages | |
fb57846b | 165 | --site-file=FILE use FILE as the site file |
252b5132 RH |
166 | --version print the version of autoconf that created configure |
167 | Directory and file names: | |
168 | --prefix=PREFIX install architecture-independent files in PREFIX | |
169 | [$ac_default_prefix] | |
170 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
171 | [same as prefix] | |
172 | --bindir=DIR user executables in DIR [EPREFIX/bin] | |
173 | --sbindir=DIR system admin executables in DIR [EPREFIX/sbin] | |
174 | --libexecdir=DIR program executables in DIR [EPREFIX/libexec] | |
175 | --datadir=DIR read-only architecture-independent data in DIR | |
176 | [PREFIX/share] | |
177 | --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc] | |
178 | --sharedstatedir=DIR modifiable architecture-independent data in DIR | |
179 | [PREFIX/com] | |
180 | --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var] | |
181 | --libdir=DIR object code libraries in DIR [EPREFIX/lib] | |
182 | --includedir=DIR C header files in DIR [PREFIX/include] | |
183 | --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include] | |
184 | --infodir=DIR info documentation in DIR [PREFIX/info] | |
185 | --mandir=DIR man documentation in DIR [PREFIX/man] | |
186 | --srcdir=DIR find the sources in DIR [configure dir or ..] | |
187 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
188 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
189 | --program-transform-name=PROGRAM | |
190 | run sed PROGRAM on installed program names | |
191 | EOF | |
192 | cat << EOF | |
193 | Host type: | |
194 | --build=BUILD configure for building on BUILD [BUILD=HOST] | |
195 | --host=HOST configure for HOST [guessed] | |
196 | --target=TARGET configure for TARGET [TARGET=HOST] | |
197 | Features and packages: | |
198 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
199 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
200 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
201 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
202 | --x-includes=DIR X include files are in DIR | |
203 | --x-libraries=DIR X library files are in DIR | |
204 | EOF | |
205 | if test -n "$ac_help"; then | |
206 | echo "--enable and --with options recognized:$ac_help" | |
207 | fi | |
208 | exit 0 ;; | |
209 | ||
210 | -host | --host | --hos | --ho) | |
211 | ac_prev=host ;; | |
212 | -host=* | --host=* | --hos=* | --ho=*) | |
213 | host="$ac_optarg" ;; | |
214 | ||
215 | -includedir | --includedir | --includedi | --included | --include \ | |
216 | | --includ | --inclu | --incl | --inc) | |
217 | ac_prev=includedir ;; | |
218 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
219 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
220 | includedir="$ac_optarg" ;; | |
221 | ||
222 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
223 | ac_prev=infodir ;; | |
224 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
225 | infodir="$ac_optarg" ;; | |
226 | ||
227 | -libdir | --libdir | --libdi | --libd) | |
228 | ac_prev=libdir ;; | |
229 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
230 | libdir="$ac_optarg" ;; | |
231 | ||
232 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
233 | | --libexe | --libex | --libe) | |
234 | ac_prev=libexecdir ;; | |
235 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
236 | | --libexe=* | --libex=* | --libe=*) | |
237 | libexecdir="$ac_optarg" ;; | |
238 | ||
239 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
240 | | --localstate | --localstat | --localsta | --localst \ | |
241 | | --locals | --local | --loca | --loc | --lo) | |
242 | ac_prev=localstatedir ;; | |
243 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
244 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
245 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
246 | localstatedir="$ac_optarg" ;; | |
247 | ||
248 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
249 | ac_prev=mandir ;; | |
250 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
251 | mandir="$ac_optarg" ;; | |
252 | ||
253 | -nfp | --nfp | --nf) | |
254 | # Obsolete; use --without-fp. | |
255 | with_fp=no ;; | |
256 | ||
257 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
258 | | --no-cr | --no-c) | |
259 | no_create=yes ;; | |
260 | ||
261 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
262 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
263 | no_recursion=yes ;; | |
264 | ||
265 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
266 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
267 | | --oldin | --oldi | --old | --ol | --o) | |
268 | ac_prev=oldincludedir ;; | |
269 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
270 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
271 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
272 | oldincludedir="$ac_optarg" ;; | |
273 | ||
274 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
275 | ac_prev=prefix ;; | |
276 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
277 | prefix="$ac_optarg" ;; | |
278 | ||
279 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
280 | | --program-pre | --program-pr | --program-p) | |
281 | ac_prev=program_prefix ;; | |
282 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
283 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
284 | program_prefix="$ac_optarg" ;; | |
285 | ||
286 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
287 | | --program-suf | --program-su | --program-s) | |
288 | ac_prev=program_suffix ;; | |
289 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
290 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
291 | program_suffix="$ac_optarg" ;; | |
292 | ||
293 | -program-transform-name | --program-transform-name \ | |
294 | | --program-transform-nam | --program-transform-na \ | |
295 | | --program-transform-n | --program-transform- \ | |
296 | | --program-transform | --program-transfor \ | |
297 | | --program-transfo | --program-transf \ | |
298 | | --program-trans | --program-tran \ | |
299 | | --progr-tra | --program-tr | --program-t) | |
300 | ac_prev=program_transform_name ;; | |
301 | -program-transform-name=* | --program-transform-name=* \ | |
302 | | --program-transform-nam=* | --program-transform-na=* \ | |
303 | | --program-transform-n=* | --program-transform-=* \ | |
304 | | --program-transform=* | --program-transfor=* \ | |
305 | | --program-transfo=* | --program-transf=* \ | |
306 | | --program-trans=* | --program-tran=* \ | |
307 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
308 | program_transform_name="$ac_optarg" ;; | |
309 | ||
310 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
311 | | -silent | --silent | --silen | --sile | --sil) | |
312 | silent=yes ;; | |
313 | ||
314 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
315 | ac_prev=sbindir ;; | |
316 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
317 | | --sbi=* | --sb=*) | |
318 | sbindir="$ac_optarg" ;; | |
319 | ||
320 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
321 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
322 | | --sharedst | --shareds | --shared | --share | --shar \ | |
323 | | --sha | --sh) | |
324 | ac_prev=sharedstatedir ;; | |
325 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
326 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
327 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
328 | | --sha=* | --sh=*) | |
329 | sharedstatedir="$ac_optarg" ;; | |
330 | ||
331 | -site | --site | --sit) | |
332 | ac_prev=site ;; | |
333 | -site=* | --site=* | --sit=*) | |
334 | site="$ac_optarg" ;; | |
335 | ||
fb57846b ILT |
336 | -site-file | --site-file | --site-fil | --site-fi | --site-f) |
337 | ac_prev=sitefile ;; | |
338 | -site-file=* | --site-file=* | --site-fil=* | --site-fi=* | --site-f=*) | |
339 | sitefile="$ac_optarg" ;; | |
340 | ||
252b5132 RH |
341 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
342 | ac_prev=srcdir ;; | |
343 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
344 | srcdir="$ac_optarg" ;; | |
345 | ||
346 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
347 | | --syscon | --sysco | --sysc | --sys | --sy) | |
348 | ac_prev=sysconfdir ;; | |
349 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
350 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
351 | sysconfdir="$ac_optarg" ;; | |
352 | ||
353 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
354 | ac_prev=target ;; | |
355 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
356 | target="$ac_optarg" ;; | |
357 | ||
358 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
359 | verbose=yes ;; | |
360 | ||
361 | -version | --version | --versio | --versi | --vers) | |
362 | echo "configure generated by autoconf version 2.13" | |
363 | exit 0 ;; | |
364 | ||
365 | -with-* | --with-*) | |
366 | ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'` | |
367 | # Reject names that are not valid shell variable names. | |
368 | if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then | |
369 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
370 | fi | |
371 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
372 | case "$ac_option" in | |
373 | *=*) ;; | |
374 | *) ac_optarg=yes ;; | |
375 | esac | |
376 | eval "with_${ac_package}='$ac_optarg'" ;; | |
377 | ||
378 | -without-* | --without-*) | |
379 | ac_package=`echo $ac_option|sed -e 's/-*without-//'` | |
380 | # Reject names that are not valid shell variable names. | |
381 | if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then | |
382 | { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; } | |
383 | fi | |
384 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
385 | eval "with_${ac_package}=no" ;; | |
386 | ||
387 | --x) | |
388 | # Obsolete; use --with-x. | |
389 | with_x=yes ;; | |
390 | ||
391 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
392 | | --x-incl | --x-inc | --x-in | --x-i) | |
393 | ac_prev=x_includes ;; | |
394 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
395 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
396 | x_includes="$ac_optarg" ;; | |
397 | ||
398 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
399 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
400 | ac_prev=x_libraries ;; | |
401 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
402 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
403 | x_libraries="$ac_optarg" ;; | |
404 | ||
405 | -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; } | |
406 | ;; | |
407 | ||
408 | *) | |
409 | if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then | |
410 | echo "configure: warning: $ac_option: invalid host type" 1>&2 | |
411 | fi | |
412 | if test "x$nonopt" != xNONE; then | |
413 | { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } | |
414 | fi | |
415 | nonopt="$ac_option" | |
416 | ;; | |
417 | ||
418 | esac | |
419 | done | |
420 | ||
421 | if test -n "$ac_prev"; then | |
422 | { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; } | |
423 | fi | |
424 | ||
425 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
426 | ||
427 | # File descriptor usage: | |
428 | # 0 standard input | |
429 | # 1 file creation | |
430 | # 2 errors and warnings | |
431 | # 3 some systems may open it to /dev/tty | |
432 | # 4 used on the Kubota Titan | |
433 | # 6 checking for... messages and results | |
434 | # 5 compiler messages saved in config.log | |
435 | if test "$silent" = yes; then | |
436 | exec 6>/dev/null | |
437 | else | |
438 | exec 6>&1 | |
439 | fi | |
440 | exec 5>./config.log | |
441 | ||
442 | echo "\ | |
443 | This file contains any messages produced by compilers while | |
444 | running configure, to aid debugging if configure makes a mistake. | |
445 | " 1>&5 | |
446 | ||
447 | # Strip out --no-create and --no-recursion so they do not pile up. | |
448 | # Also quote any args containing shell metacharacters. | |
449 | ac_configure_args= | |
450 | for ac_arg | |
451 | do | |
452 | case "$ac_arg" in | |
453 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
454 | | --no-cr | --no-c) ;; | |
455 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
456 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
457 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*) | |
458 | ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
459 | *) ac_configure_args="$ac_configure_args $ac_arg" ;; | |
460 | esac | |
461 | done | |
462 | ||
463 | # NLS nuisances. | |
464 | # Only set these to C if already set. These must not be set unconditionally | |
465 | # because not all systems understand e.g. LANG=C (notably SCO). | |
466 | # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'! | |
467 | # Non-C LC_CTYPE values break the ctype check. | |
468 | if test "${LANG+set}" = set; then LANG=C; export LANG; fi | |
469 | if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi | |
470 | if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi | |
471 | if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi | |
472 | ||
473 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
474 | rm -rf conftest* confdefs.h | |
475 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
476 | echo > confdefs.h | |
477 | ||
478 | # A filename unique to this package, relative to the directory that | |
479 | # configure is in, which we can look for to find out if srcdir is correct. | |
480 | ac_unique_file=gprof.c | |
481 | ||
482 | # Find the source files, if location was not specified. | |
483 | if test -z "$srcdir"; then | |
484 | ac_srcdir_defaulted=yes | |
485 | # Try the directory containing this script, then its parent. | |
486 | ac_prog=$0 | |
487 | ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'` | |
488 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. | |
489 | srcdir=$ac_confdir | |
490 | if test ! -r $srcdir/$ac_unique_file; then | |
491 | srcdir=.. | |
492 | fi | |
493 | else | |
494 | ac_srcdir_defaulted=no | |
495 | fi | |
496 | if test ! -r $srcdir/$ac_unique_file; then | |
497 | if test "$ac_srcdir_defaulted" = yes; then | |
498 | { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; } | |
499 | else | |
500 | { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; } | |
501 | fi | |
502 | fi | |
503 | srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'` | |
504 | ||
505 | # Prefer explicitly selected file to automatically selected ones. | |
fb57846b ILT |
506 | if test -z "$sitefile"; then |
507 | if test -z "$CONFIG_SITE"; then | |
508 | if test "x$prefix" != xNONE; then | |
509 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
510 | else | |
511 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
512 | fi | |
252b5132 | 513 | fi |
fb57846b ILT |
514 | else |
515 | CONFIG_SITE="$sitefile" | |
252b5132 RH |
516 | fi |
517 | for ac_site_file in $CONFIG_SITE; do | |
518 | if test -r "$ac_site_file"; then | |
519 | echo "loading site script $ac_site_file" | |
520 | . "$ac_site_file" | |
521 | fi | |
522 | done | |
523 | ||
524 | if test -r "$cache_file"; then | |
525 | echo "loading cache $cache_file" | |
526 | . $cache_file | |
527 | else | |
528 | echo "creating cache $cache_file" | |
529 | > $cache_file | |
530 | fi | |
531 | ||
532 | ac_ext=c | |
533 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
534 | ac_cpp='$CPP $CPPFLAGS' | |
535 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
536 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
537 | cross_compiling=$ac_cv_prog_cc_cross | |
538 | ||
539 | ac_exeext= | |
540 | ac_objext=o | |
541 | if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then | |
542 | # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu. | |
543 | if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then | |
544 | ac_n= ac_c=' | |
545 | ' ac_t=' ' | |
546 | else | |
547 | ac_n=-n ac_c= ac_t= | |
548 | fi | |
549 | else | |
550 | ac_n= ac_c='\c' ac_t= | |
551 | fi | |
552 | ||
553 | ||
554 | ||
555 | ac_aux_dir= | |
556 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
557 | if test -f $ac_dir/install-sh; then | |
558 | ac_aux_dir=$ac_dir | |
559 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
560 | break | |
561 | elif test -f $ac_dir/install.sh; then | |
562 | ac_aux_dir=$ac_dir | |
563 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
564 | break | |
565 | fi | |
566 | done | |
567 | if test -z "$ac_aux_dir"; then | |
568 | { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; } | |
569 | fi | |
570 | ac_config_guess=$ac_aux_dir/config.guess | |
571 | ac_config_sub=$ac_aux_dir/config.sub | |
572 | ac_configure=$ac_aux_dir/configure # This should be Cygnus configure. | |
573 | ||
574 | ||
575 | # Do some error checking and defaulting for the host and target type. | |
576 | # The inputs are: | |
577 | # configure --host=HOST --target=TARGET --build=BUILD NONOPT | |
578 | # | |
579 | # The rules are: | |
580 | # 1. You are not allowed to specify --host, --target, and nonopt at the | |
581 | # same time. | |
582 | # 2. Host defaults to nonopt. | |
583 | # 3. If nonopt is not specified, then host defaults to the current host, | |
584 | # as determined by config.guess. | |
585 | # 4. Target and build default to nonopt. | |
586 | # 5. If nonopt is not specified, then target and build default to host. | |
587 | ||
588 | # The aliases save the names the user supplied, while $host etc. | |
589 | # will get canonicalized. | |
590 | case $host---$target---$nonopt in | |
591 | NONE---*---* | *---NONE---* | *---*---NONE) ;; | |
592 | *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;; | |
593 | esac | |
594 | ||
595 | ||
596 | # Make sure we can run config.sub. | |
597 | if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : | |
598 | else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; } | |
599 | fi | |
600 | ||
601 | echo $ac_n "checking host system type""... $ac_c" 1>&6 | |
a2d91340 | 602 | echo "configure:603: checking host system type" >&5 |
252b5132 RH |
603 | |
604 | host_alias=$host | |
605 | case "$host_alias" in | |
606 | NONE) | |
607 | case $nonopt in | |
608 | NONE) | |
609 | if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then : | |
610 | else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; } | |
611 | fi ;; | |
612 | *) host_alias=$nonopt ;; | |
613 | esac ;; | |
614 | esac | |
615 | ||
616 | host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias` | |
617 | host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
618 | host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
619 | host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
620 | echo "$ac_t""$host" 1>&6 | |
621 | ||
622 | echo $ac_n "checking target system type""... $ac_c" 1>&6 | |
a2d91340 | 623 | echo "configure:624: checking target system type" >&5 |
252b5132 RH |
624 | |
625 | target_alias=$target | |
626 | case "$target_alias" in | |
627 | NONE) | |
628 | case $nonopt in | |
629 | NONE) target_alias=$host_alias ;; | |
630 | *) target_alias=$nonopt ;; | |
631 | esac ;; | |
632 | esac | |
633 | ||
634 | target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias` | |
635 | target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
636 | target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
637 | target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
638 | echo "$ac_t""$target" 1>&6 | |
639 | ||
640 | echo $ac_n "checking build system type""... $ac_c" 1>&6 | |
a2d91340 | 641 | echo "configure:642: checking build system type" >&5 |
252b5132 RH |
642 | |
643 | build_alias=$build | |
644 | case "$build_alias" in | |
645 | NONE) | |
646 | case $nonopt in | |
647 | NONE) build_alias=$host_alias ;; | |
648 | *) build_alias=$nonopt ;; | |
649 | esac ;; | |
650 | esac | |
651 | ||
652 | build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias` | |
653 | build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
654 | build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
655 | build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
656 | echo "$ac_t""$build" 1>&6 | |
657 | ||
658 | test "$host_alias" != "$target_alias" && | |
659 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
660 | NONENONEs,x,x, && | |
661 | program_prefix=${target_alias}- | |
662 | ||
663 | ||
664 | # Find a good install program. We prefer a C program (faster), | |
665 | # so one script is as good as another. But avoid the broken or | |
666 | # incompatible versions: | |
667 | # SysV /etc/install, /usr/sbin/install | |
668 | # SunOS /usr/etc/install | |
669 | # IRIX /sbin/install | |
670 | # AIX /bin/install | |
671 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
672 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
673 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
674 | # ./install, which can be erroneously created by make from ./install.sh. | |
675 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
a2d91340 | 676 | echo "configure:677: checking for a BSD compatible install" >&5 |
252b5132 RH |
677 | if test -z "$INSTALL"; then |
678 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
679 | echo $ac_n "(cached) $ac_c" 1>&6 | |
680 | else | |
681 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
682 | for ac_dir in $PATH; do | |
683 | # Account for people who put trailing slashes in PATH elements. | |
684 | case "$ac_dir/" in | |
685 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
686 | *) | |
687 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
688 | # Don't use installbsd from OSF since it installs stuff as root | |
689 | # by default. | |
690 | for ac_prog in ginstall scoinst install; do | |
691 | if test -f $ac_dir/$ac_prog; then | |
692 | if test $ac_prog = install && | |
693 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
694 | # AIX install. It has an incompatible calling convention. | |
695 | : | |
696 | else | |
697 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
698 | break 2 | |
699 | fi | |
700 | fi | |
701 | done | |
702 | ;; | |
703 | esac | |
704 | done | |
705 | IFS="$ac_save_IFS" | |
706 | ||
707 | fi | |
708 | if test "${ac_cv_path_install+set}" = set; then | |
709 | INSTALL="$ac_cv_path_install" | |
710 | else | |
711 | # As a last resort, use the slow shell script. We don't cache a | |
712 | # path for INSTALL within a source directory, because that will | |
713 | # break other packages using the cache if that directory is | |
714 | # removed, or if the path is relative. | |
715 | INSTALL="$ac_install_sh" | |
716 | fi | |
717 | fi | |
718 | echo "$ac_t""$INSTALL" 1>&6 | |
719 | ||
720 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
721 | # It thinks the first close brace ends the variable substitution. | |
722 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
723 | ||
724 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
725 | ||
726 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
727 | ||
728 | echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6 | |
a2d91340 | 729 | echo "configure:730: checking whether build environment is sane" >&5 |
252b5132 RH |
730 | # Just in case |
731 | sleep 1 | |
732 | echo timestamp > conftestfile | |
733 | # Do `set' in a subshell so we don't clobber the current shell's | |
734 | # arguments. Must try -L first in case configure is actually a | |
735 | # symlink; some systems play weird games with the mod time of symlinks | |
736 | # (eg FreeBSD returns the mod time of the symlink's containing | |
737 | # directory). | |
738 | if ( | |
739 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
740 | if test "$*" = "X"; then | |
741 | # -L didn't work. | |
742 | set X `ls -t $srcdir/configure conftestfile` | |
743 | fi | |
744 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
745 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
746 | ||
747 | # If neither matched, then we have a broken ls. This can happen | |
748 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
749 | # broken ls alias from the environment. This has actually | |
750 | # happened. Such a system could not be considered "sane". | |
751 | { echo "configure: error: ls -t appears to fail. Make sure there is not a broken | |
752 | alias in your environment" 1>&2; exit 1; } | |
753 | fi | |
754 | ||
755 | test "$2" = conftestfile | |
756 | ) | |
757 | then | |
758 | # Ok. | |
759 | : | |
760 | else | |
761 | { echo "configure: error: newly created file is older than distributed files! | |
762 | Check your system clock" 1>&2; exit 1; } | |
763 | fi | |
764 | rm -f conftest* | |
765 | echo "$ac_t""yes" 1>&6 | |
766 | if test "$program_transform_name" = s,x,x,; then | |
767 | program_transform_name= | |
768 | else | |
769 | # Double any \ or $. echo might interpret backslashes. | |
770 | cat <<\EOF_SED > conftestsed | |
771 | s,\\,\\\\,g; s,\$,$$,g | |
772 | EOF_SED | |
773 | program_transform_name="`echo $program_transform_name|sed -f conftestsed`" | |
774 | rm -f conftestsed | |
775 | fi | |
776 | test "$program_prefix" != NONE && | |
777 | program_transform_name="s,^,${program_prefix},; $program_transform_name" | |
778 | # Use a double $ so make ignores it. | |
779 | test "$program_suffix" != NONE && | |
780 | program_transform_name="s,\$\$,${program_suffix},; $program_transform_name" | |
781 | ||
782 | # sed with no file args requires a program. | |
783 | test "$program_transform_name" = "" && program_transform_name="s,x,x," | |
784 | ||
785 | echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 | |
a2d91340 | 786 | echo "configure:787: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
252b5132 RH |
787 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` |
788 | if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then | |
789 | echo $ac_n "(cached) $ac_c" 1>&6 | |
790 | else | |
791 | cat > conftestmake <<\EOF | |
792 | all: | |
793 | @echo 'ac_maketemp="${MAKE}"' | |
794 | EOF | |
795 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
796 | eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=` | |
797 | if test -n "$ac_maketemp"; then | |
798 | eval ac_cv_prog_make_${ac_make}_set=yes | |
799 | else | |
800 | eval ac_cv_prog_make_${ac_make}_set=no | |
801 | fi | |
802 | rm -f conftestmake | |
803 | fi | |
804 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
805 | echo "$ac_t""yes" 1>&6 | |
806 | SET_MAKE= | |
807 | else | |
808 | echo "$ac_t""no" 1>&6 | |
809 | SET_MAKE="MAKE=${MAKE-make}" | |
810 | fi | |
811 | ||
812 | ||
813 | PACKAGE=gprof | |
814 | ||
fb57846b | 815 | VERSION=2.9.5 |
252b5132 RH |
816 | |
817 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
818 | { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; } | |
819 | fi | |
820 | cat >> confdefs.h <<EOF | |
821 | #define PACKAGE "$PACKAGE" | |
822 | EOF | |
823 | ||
824 | cat >> confdefs.h <<EOF | |
825 | #define VERSION "$VERSION" | |
826 | EOF | |
827 | ||
828 | ||
829 | ||
830 | missing_dir=`cd $ac_aux_dir && pwd` | |
831 | echo $ac_n "checking for working aclocal""... $ac_c" 1>&6 | |
a2d91340 | 832 | echo "configure:833: checking for working aclocal" >&5 |
252b5132 RH |
833 | # Run test in a subshell; some versions of sh will print an error if |
834 | # an executable is not found, even if stderr is redirected. | |
835 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
836 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
837 | ACLOCAL=aclocal | |
838 | echo "$ac_t""found" 1>&6 | |
839 | else | |
840 | ACLOCAL="$missing_dir/missing aclocal" | |
841 | echo "$ac_t""missing" 1>&6 | |
842 | fi | |
843 | ||
844 | echo $ac_n "checking for working autoconf""... $ac_c" 1>&6 | |
a2d91340 | 845 | echo "configure:846: checking for working autoconf" >&5 |
252b5132 RH |
846 | # Run test in a subshell; some versions of sh will print an error if |
847 | # an executable is not found, even if stderr is redirected. | |
848 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
849 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
850 | AUTOCONF=autoconf | |
851 | echo "$ac_t""found" 1>&6 | |
852 | else | |
853 | AUTOCONF="$missing_dir/missing autoconf" | |
854 | echo "$ac_t""missing" 1>&6 | |
855 | fi | |
856 | ||
857 | echo $ac_n "checking for working automake""... $ac_c" 1>&6 | |
a2d91340 | 858 | echo "configure:859: checking for working automake" >&5 |
252b5132 RH |
859 | # Run test in a subshell; some versions of sh will print an error if |
860 | # an executable is not found, even if stderr is redirected. | |
861 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
862 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
863 | AUTOMAKE=automake | |
864 | echo "$ac_t""found" 1>&6 | |
865 | else | |
866 | AUTOMAKE="$missing_dir/missing automake" | |
867 | echo "$ac_t""missing" 1>&6 | |
868 | fi | |
869 | ||
870 | echo $ac_n "checking for working autoheader""... $ac_c" 1>&6 | |
a2d91340 | 871 | echo "configure:872: checking for working autoheader" >&5 |
252b5132 RH |
872 | # Run test in a subshell; some versions of sh will print an error if |
873 | # an executable is not found, even if stderr is redirected. | |
874 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
875 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
876 | AUTOHEADER=autoheader | |
877 | echo "$ac_t""found" 1>&6 | |
878 | else | |
879 | AUTOHEADER="$missing_dir/missing autoheader" | |
880 | echo "$ac_t""missing" 1>&6 | |
881 | fi | |
882 | ||
883 | echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6 | |
a2d91340 | 884 | echo "configure:885: checking for working makeinfo" >&5 |
252b5132 RH |
885 | # Run test in a subshell; some versions of sh will print an error if |
886 | # an executable is not found, even if stderr is redirected. | |
887 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
888 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
889 | MAKEINFO=makeinfo | |
890 | echo "$ac_t""found" 1>&6 | |
891 | else | |
892 | MAKEINFO="$missing_dir/missing makeinfo" | |
893 | echo "$ac_t""missing" 1>&6 | |
894 | fi | |
895 | ||
896 | ||
897 | ||
898 | # Check whether --enable-shared or --disable-shared was given. | |
899 | if test "${enable_shared+set}" = set; then | |
900 | enableval="$enable_shared" | |
901 | p=${PACKAGE-default} | |
902 | case "$enableval" in | |
903 | yes) enable_shared=yes ;; | |
904 | no) enable_shared=no ;; | |
905 | *) | |
906 | enable_shared=no | |
907 | # Look at the argument we got. We use all the common list separators. | |
908 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
909 | for pkg in $enableval; do | |
910 | if test "X$pkg" = "X$p"; then | |
911 | enable_shared=yes | |
912 | fi | |
913 | done | |
914 | IFS="$ac_save_ifs" | |
915 | ;; | |
916 | esac | |
917 | else | |
918 | enable_shared=yes | |
919 | fi | |
920 | ||
921 | # Check whether --enable-static or --disable-static was given. | |
922 | if test "${enable_static+set}" = set; then | |
923 | enableval="$enable_static" | |
924 | p=${PACKAGE-default} | |
925 | case "$enableval" in | |
926 | yes) enable_static=yes ;; | |
927 | no) enable_static=no ;; | |
928 | *) | |
929 | enable_static=no | |
930 | # Look at the argument we got. We use all the common list separators. | |
931 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
932 | for pkg in $enableval; do | |
933 | if test "X$pkg" = "X$p"; then | |
934 | enable_static=yes | |
935 | fi | |
936 | done | |
937 | IFS="$ac_save_ifs" | |
938 | ;; | |
939 | esac | |
940 | else | |
941 | enable_static=yes | |
942 | fi | |
943 | ||
944 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
945 | if test "${enable_fast_install+set}" = set; then | |
946 | enableval="$enable_fast_install" | |
947 | p=${PACKAGE-default} | |
948 | case "$enableval" in | |
949 | yes) enable_fast_install=yes ;; | |
950 | no) enable_fast_install=no ;; | |
951 | *) | |
952 | enable_fast_install=no | |
953 | # Look at the argument we got. We use all the common list separators. | |
954 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
955 | for pkg in $enableval; do | |
956 | if test "X$pkg" = "X$p"; then | |
957 | enable_fast_install=yes | |
958 | fi | |
959 | done | |
960 | IFS="$ac_save_ifs" | |
961 | ;; | |
962 | esac | |
963 | else | |
964 | enable_fast_install=yes | |
965 | fi | |
966 | ||
967 | # Extract the first word of "ranlib", so it can be a program name with args. | |
968 | set dummy ranlib; ac_word=$2 | |
969 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 970 | echo "configure:971: checking for $ac_word" >&5 |
252b5132 RH |
971 | if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then |
972 | echo $ac_n "(cached) $ac_c" 1>&6 | |
973 | else | |
974 | if test -n "$RANLIB"; then | |
975 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
976 | else | |
977 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
978 | ac_dummy="$PATH" | |
979 | for ac_dir in $ac_dummy; do | |
980 | test -z "$ac_dir" && ac_dir=. | |
981 | if test -f $ac_dir/$ac_word; then | |
982 | ac_cv_prog_RANLIB="ranlib" | |
983 | break | |
984 | fi | |
985 | done | |
986 | IFS="$ac_save_ifs" | |
987 | test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":" | |
988 | fi | |
989 | fi | |
990 | RANLIB="$ac_cv_prog_RANLIB" | |
991 | if test -n "$RANLIB"; then | |
992 | echo "$ac_t""$RANLIB" 1>&6 | |
993 | else | |
994 | echo "$ac_t""no" 1>&6 | |
995 | fi | |
996 | ||
997 | # Extract the first word of "gcc", so it can be a program name with args. | |
998 | set dummy gcc; ac_word=$2 | |
999 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1000 | echo "configure:1001: checking for $ac_word" >&5 |
252b5132 RH |
1001 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1002 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1003 | else | |
1004 | if test -n "$CC"; then | |
1005 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1006 | else | |
1007 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1008 | ac_dummy="$PATH" | |
1009 | for ac_dir in $ac_dummy; do | |
1010 | test -z "$ac_dir" && ac_dir=. | |
1011 | if test -f $ac_dir/$ac_word; then | |
1012 | ac_cv_prog_CC="gcc" | |
1013 | break | |
1014 | fi | |
1015 | done | |
1016 | IFS="$ac_save_ifs" | |
1017 | fi | |
1018 | fi | |
1019 | CC="$ac_cv_prog_CC" | |
1020 | if test -n "$CC"; then | |
1021 | echo "$ac_t""$CC" 1>&6 | |
1022 | else | |
1023 | echo "$ac_t""no" 1>&6 | |
1024 | fi | |
1025 | ||
1026 | if test -z "$CC"; then | |
1027 | # Extract the first word of "cc", so it can be a program name with args. | |
1028 | set dummy cc; ac_word=$2 | |
1029 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1030 | echo "configure:1031: checking for $ac_word" >&5 |
252b5132 RH |
1031 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1032 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1033 | else | |
1034 | if test -n "$CC"; then | |
1035 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1036 | else | |
1037 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1038 | ac_prog_rejected=no | |
1039 | ac_dummy="$PATH" | |
1040 | for ac_dir in $ac_dummy; do | |
1041 | test -z "$ac_dir" && ac_dir=. | |
1042 | if test -f $ac_dir/$ac_word; then | |
1043 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1044 | ac_prog_rejected=yes | |
1045 | continue | |
1046 | fi | |
1047 | ac_cv_prog_CC="cc" | |
1048 | break | |
1049 | fi | |
1050 | done | |
1051 | IFS="$ac_save_ifs" | |
1052 | if test $ac_prog_rejected = yes; then | |
1053 | # We found a bogon in the path, so make sure we never use it. | |
1054 | set dummy $ac_cv_prog_CC | |
1055 | shift | |
1056 | if test $# -gt 0; then | |
1057 | # We chose a different compiler from the bogus one. | |
1058 | # However, it has the same basename, so the bogon will be chosen | |
1059 | # first if we set CC to just the basename; use the full file name. | |
1060 | shift | |
1061 | set dummy "$ac_dir/$ac_word" "$@" | |
1062 | shift | |
1063 | ac_cv_prog_CC="$@" | |
1064 | fi | |
1065 | fi | |
1066 | fi | |
1067 | fi | |
1068 | CC="$ac_cv_prog_CC" | |
1069 | if test -n "$CC"; then | |
1070 | echo "$ac_t""$CC" 1>&6 | |
1071 | else | |
1072 | echo "$ac_t""no" 1>&6 | |
1073 | fi | |
1074 | ||
1075 | if test -z "$CC"; then | |
1076 | case "`uname -s`" in | |
1077 | *win32* | *WIN32*) | |
1078 | # Extract the first word of "cl", so it can be a program name with args. | |
1079 | set dummy cl; ac_word=$2 | |
1080 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1081 | echo "configure:1082: checking for $ac_word" >&5 |
252b5132 RH |
1082 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1083 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1084 | else | |
1085 | if test -n "$CC"; then | |
1086 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1087 | else | |
1088 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1089 | ac_dummy="$PATH" | |
1090 | for ac_dir in $ac_dummy; do | |
1091 | test -z "$ac_dir" && ac_dir=. | |
1092 | if test -f $ac_dir/$ac_word; then | |
1093 | ac_cv_prog_CC="cl" | |
1094 | break | |
1095 | fi | |
1096 | done | |
1097 | IFS="$ac_save_ifs" | |
1098 | fi | |
1099 | fi | |
1100 | CC="$ac_cv_prog_CC" | |
1101 | if test -n "$CC"; then | |
1102 | echo "$ac_t""$CC" 1>&6 | |
1103 | else | |
1104 | echo "$ac_t""no" 1>&6 | |
1105 | fi | |
1106 | ;; | |
1107 | esac | |
1108 | fi | |
1109 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1110 | fi | |
1111 | ||
1112 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
a2d91340 | 1113 | echo "configure:1114: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 RH |
1114 | |
1115 | ac_ext=c | |
1116 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1117 | ac_cpp='$CPP $CPPFLAGS' | |
1118 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1119 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1120 | cross_compiling=$ac_cv_prog_cc_cross | |
1121 | ||
1122 | cat > conftest.$ac_ext << EOF | |
1123 | ||
a2d91340 | 1124 | #line 1125 "configure" |
252b5132 RH |
1125 | #include "confdefs.h" |
1126 | ||
1127 | main(){return(0);} | |
1128 | EOF | |
a2d91340 | 1129 | if { (eval echo configure:1130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
1130 | ac_cv_prog_cc_works=yes |
1131 | # If we can't run a trivial program, we are probably using a cross compiler. | |
1132 | if (./conftest; exit) 2>/dev/null; then | |
1133 | ac_cv_prog_cc_cross=no | |
1134 | else | |
1135 | ac_cv_prog_cc_cross=yes | |
1136 | fi | |
1137 | else | |
1138 | echo "configure: failed program was:" >&5 | |
1139 | cat conftest.$ac_ext >&5 | |
1140 | ac_cv_prog_cc_works=no | |
1141 | fi | |
1142 | rm -fr conftest* | |
1143 | ac_ext=c | |
1144 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
1145 | ac_cpp='$CPP $CPPFLAGS' | |
1146 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
1147 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
1148 | cross_compiling=$ac_cv_prog_cc_cross | |
1149 | ||
1150 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
1151 | if test $ac_cv_prog_cc_works = no; then | |
1152 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
1153 | fi | |
1154 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a2d91340 | 1155 | echo "configure:1156: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
252b5132 RH |
1156 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
1157 | cross_compiling=$ac_cv_prog_cc_cross | |
1158 | ||
1159 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
a2d91340 | 1160 | echo "configure:1161: checking whether we are using GNU C" >&5 |
252b5132 RH |
1161 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
1162 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1163 | else | |
1164 | cat > conftest.c <<EOF | |
1165 | #ifdef __GNUC__ | |
1166 | yes; | |
1167 | #endif | |
1168 | EOF | |
a2d91340 | 1169 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
252b5132 RH |
1170 | ac_cv_prog_gcc=yes |
1171 | else | |
1172 | ac_cv_prog_gcc=no | |
1173 | fi | |
1174 | fi | |
1175 | ||
1176 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
1177 | ||
1178 | if test $ac_cv_prog_gcc = yes; then | |
1179 | GCC=yes | |
1180 | else | |
1181 | GCC= | |
1182 | fi | |
1183 | ||
1184 | ac_test_CFLAGS="${CFLAGS+set}" | |
1185 | ac_save_CFLAGS="$CFLAGS" | |
1186 | CFLAGS= | |
1187 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a2d91340 | 1188 | echo "configure:1189: checking whether ${CC-cc} accepts -g" >&5 |
252b5132 RH |
1189 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
1190 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1191 | else | |
1192 | echo 'void f(){}' > conftest.c | |
1193 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
1194 | ac_cv_prog_cc_g=yes | |
1195 | else | |
1196 | ac_cv_prog_cc_g=no | |
1197 | fi | |
1198 | rm -f conftest* | |
1199 | ||
1200 | fi | |
1201 | ||
1202 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
1203 | if test "$ac_test_CFLAGS" = set; then | |
1204 | CFLAGS="$ac_save_CFLAGS" | |
1205 | elif test $ac_cv_prog_cc_g = yes; then | |
1206 | if test "$GCC" = yes; then | |
1207 | CFLAGS="-g -O2" | |
1208 | else | |
1209 | CFLAGS="-g" | |
1210 | fi | |
1211 | else | |
1212 | if test "$GCC" = yes; then | |
1213 | CFLAGS="-O2" | |
1214 | else | |
1215 | CFLAGS= | |
1216 | fi | |
1217 | fi | |
1218 | ||
1219 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
1220 | if test "${with_gnu_ld+set}" = set; then | |
1221 | withval="$with_gnu_ld" | |
1222 | test "$withval" = no || with_gnu_ld=yes | |
1223 | else | |
1224 | with_gnu_ld=no | |
1225 | fi | |
1226 | ||
1227 | ac_prog=ld | |
1228 | if test "$ac_cv_prog_gcc" = yes; then | |
1229 | # Check if gcc -print-prog-name=ld gives a path. | |
1230 | echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6 | |
a2d91340 | 1231 | echo "configure:1232: checking for ld used by GCC" >&5 |
252b5132 RH |
1232 | ac_prog=`($CC -print-prog-name=ld) 2>&5` |
1233 | case "$ac_prog" in | |
1234 | # Accept absolute paths. | |
1235 | /* | [A-Za-z]:[\\/]*) | |
1236 | re_direlt='/[^/][^/]*/\.\./' | |
1237 | # Canonicalize the path of ld | |
1238 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
1239 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
1240 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
1241 | done | |
1242 | test -z "$LD" && LD="$ac_prog" | |
1243 | ;; | |
1244 | "") | |
1245 | # If it fails, then pretend we aren't using GCC. | |
1246 | ac_prog=ld | |
1247 | ;; | |
1248 | *) | |
1249 | # If it is relative, then search for the first ld in PATH. | |
1250 | with_gnu_ld=unknown | |
1251 | ;; | |
1252 | esac | |
1253 | elif test "$with_gnu_ld" = yes; then | |
1254 | echo $ac_n "checking for GNU ld""... $ac_c" 1>&6 | |
a2d91340 | 1255 | echo "configure:1256: checking for GNU ld" >&5 |
252b5132 RH |
1256 | else |
1257 | echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6 | |
a2d91340 | 1258 | echo "configure:1259: checking for non-GNU ld" >&5 |
252b5132 RH |
1259 | fi |
1260 | if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then | |
1261 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1262 | else | |
1263 | if test -z "$LD"; then | |
1264 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1265 | for ac_dir in $PATH; do | |
1266 | test -z "$ac_dir" && ac_dir=. | |
1267 | if test -f "$ac_dir/$ac_prog"; then | |
1268 | ac_cv_path_LD="$ac_dir/$ac_prog" | |
1269 | # Check to see if the program is GNU ld. I'd rather use --version, | |
1270 | # but apparently some GNU ld's only accept -v. | |
1271 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
1272 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | |
1273 | test "$with_gnu_ld" != no && break | |
1274 | else | |
1275 | test "$with_gnu_ld" != yes && break | |
1276 | fi | |
1277 | fi | |
1278 | done | |
1279 | IFS="$ac_save_ifs" | |
1280 | else | |
1281 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
1282 | fi | |
1283 | fi | |
1284 | ||
1285 | LD="$ac_cv_path_LD" | |
1286 | if test -n "$LD"; then | |
1287 | echo "$ac_t""$LD" 1>&6 | |
1288 | else | |
1289 | echo "$ac_t""no" 1>&6 | |
1290 | fi | |
1291 | test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; } | |
1292 | ||
1293 | echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6 | |
a2d91340 | 1294 | echo "configure:1295: checking if the linker ($LD) is GNU ld" >&5 |
252b5132 RH |
1295 | if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then |
1296 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1297 | else | |
1298 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
1299 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
1300 | ac_cv_prog_gnu_ld=yes | |
1301 | else | |
1302 | ac_cv_prog_gnu_ld=no | |
1303 | fi | |
1304 | fi | |
1305 | ||
1306 | echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6 | |
1307 | ||
1308 | ||
1309 | echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6 | |
a2d91340 | 1310 | echo "configure:1311: checking for BSD-compatible nm" >&5 |
252b5132 RH |
1311 | if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then |
1312 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1313 | else | |
1314 | if test -n "$NM"; then | |
1315 | # Let the user override the test. | |
1316 | ac_cv_path_NM="$NM" | |
1317 | else | |
1318 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
1319 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | |
1320 | test -z "$ac_dir" && ac_dir=. | |
1321 | if test -f $ac_dir/nm; then | |
1322 | # Check to see if the nm accepts a BSD-compat flag. | |
1323 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
1324 | # nm: unknown option "B" ignored | |
1325 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1326 | ac_cv_path_NM="$ac_dir/nm -B" | |
1327 | break | |
1328 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | |
1329 | ac_cv_path_NM="$ac_dir/nm -p" | |
1330 | break | |
1331 | else | |
1332 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | |
1333 | continue # so that we can try to find one that supports BSD flags | |
1334 | fi | |
1335 | fi | |
1336 | done | |
1337 | IFS="$ac_save_ifs" | |
1338 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | |
1339 | fi | |
1340 | fi | |
1341 | ||
1342 | NM="$ac_cv_path_NM" | |
1343 | echo "$ac_t""$NM" 1>&6 | |
1344 | ||
1345 | ||
1346 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
1347 | echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6 | |
a2d91340 | 1348 | echo "configure:1349: checking command to parse $NM output" >&5 |
252b5132 RH |
1349 | if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then |
1350 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1351 | else | |
1352 | # These are sane defaults that work on at least a few old systems. | |
1353 | # {They come from Ultrix. What could be older than Ultrix?!! ;)} | |
1354 | ||
1355 | # Character class describing NM global symbol codes. | |
1356 | ac_symcode='[BCDEGRST]' | |
1357 | ||
1358 | # Regexp to match symbols that can be accessed directly from C. | |
1359 | ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
1360 | ||
1361 | # Transform the above into a raw symbol and a C symbol. | |
1362 | ac_symxfrm='\1 \2\3 \3' | |
1363 | ||
1364 | # Transform an extracted symbol line into a proper C declaration | |
1365 | ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1366 | ||
1367 | # Define system-specific variables. | |
1368 | case "$host_os" in | |
1369 | aix*) | |
1370 | ac_symcode='[BCDT]' | |
1371 | ;; | |
1372 | cygwin* | mingw*) | |
1373 | ac_symcode='[ABCDGISTW]' | |
1374 | ;; | |
1375 | hpux*) | |
1376 | ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'" | |
1377 | ;; | |
1378 | irix*) | |
1379 | ac_symcode='[BCDEGRST]' | |
1380 | ;; | |
1381 | solaris*) | |
1382 | ac_symcode='[BDT]' | |
1383 | ;; | |
1384 | esac | |
1385 | ||
1386 | # If we're using GNU nm, then use its standard symbol codes. | |
1387 | if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then | |
1388 | ac_symcode='[ABCDGISTW]' | |
1389 | fi | |
1390 | ||
1391 | # Try without a prefix undercore, then with it. | |
1392 | for ac_symprfx in "" "_"; do | |
1393 | ||
1394 | ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'" | |
1395 | ||
1396 | # Check to see that the pipe works correctly. | |
1397 | ac_pipe_works=no | |
1398 | rm -f conftest.$ac_ext | |
1399 | cat > conftest.$ac_ext <<EOF | |
1400 | #ifdef __cplusplus | |
1401 | extern "C" { | |
1402 | #endif | |
1403 | char nm_test_var; | |
1404 | void nm_test_func(){} | |
1405 | #ifdef __cplusplus | |
1406 | } | |
1407 | #endif | |
1408 | int main(){nm_test_var='a';nm_test_func;return 0;} | |
1409 | EOF | |
1410 | ||
a2d91340 | 1411 | if { (eval echo configure:1412: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
1412 | # Now try to grab the symbols. |
1413 | ac_nlist=conftest.nm | |
1414 | ||
a2d91340 | 1415 | if { (eval echo configure:1416: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then |
252b5132 RH |
1416 | |
1417 | # Try sorting and uniquifying the output. | |
1418 | if sort "$ac_nlist" | uniq > "$ac_nlist"T; then | |
1419 | mv -f "$ac_nlist"T "$ac_nlist" | |
1420 | else | |
1421 | rm -f "$ac_nlist"T | |
1422 | fi | |
1423 | ||
1424 | # Make sure that we snagged all the symbols we need. | |
1425 | if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then | |
1426 | if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then | |
1427 | cat <<EOF > conftest.c | |
1428 | #ifdef __cplusplus | |
1429 | extern "C" { | |
1430 | #endif | |
1431 | ||
1432 | EOF | |
1433 | # Now generate the symbol file. | |
1434 | eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c' | |
1435 | ||
1436 | cat <<EOF >> conftest.c | |
1437 | #if defined (__STDC__) && __STDC__ | |
1438 | # define lt_ptr_t void * | |
1439 | #else | |
1440 | # define lt_ptr_t char * | |
1441 | # define const | |
1442 | #endif | |
1443 | ||
1444 | /* The mapping between symbol names and symbols. */ | |
1445 | const struct { | |
1446 | const char *name; | |
1447 | lt_ptr_t address; | |
1448 | } | |
1449 | lt_preloaded_symbols[] = | |
1450 | { | |
1451 | EOF | |
1452 | sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c | |
1453 | cat <<\EOF >> conftest.c | |
1454 | {0, (lt_ptr_t) 0} | |
1455 | }; | |
1456 | ||
1457 | #ifdef __cplusplus | |
1458 | } | |
1459 | #endif | |
1460 | EOF | |
1461 | # Now try linking the two files. | |
1462 | mv conftest.$ac_objext conftestm.$ac_objext | |
1463 | ac_save_LIBS="$LIBS" | |
1464 | ac_save_CFLAGS="$CFLAGS" | |
1465 | LIBS="conftestm.$ac_objext" | |
1466 | CFLAGS="$CFLAGS$no_builtin_flag" | |
a2d91340 | 1467 | if { (eval echo configure:1468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then |
252b5132 RH |
1468 | ac_pipe_works=yes |
1469 | else | |
1470 | echo "configure: failed program was:" >&5 | |
1471 | cat conftest.c >&5 | |
1472 | fi | |
1473 | LIBS="$ac_save_LIBS" | |
1474 | CFLAGS="$ac_save_CFLAGS" | |
1475 | else | |
1476 | echo "cannot find nm_test_func in $ac_nlist" >&5 | |
1477 | fi | |
1478 | else | |
1479 | echo "cannot find nm_test_var in $ac_nlist" >&5 | |
1480 | fi | |
1481 | else | |
1482 | echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1483 | fi | |
1484 | else | |
1485 | echo "$progname: failed program was:" >&5 | |
1486 | cat conftest.c >&5 | |
1487 | fi | |
1488 | rm -rf conftest* | |
1489 | ||
1490 | # Do not use the global_symbol_pipe unless it works. | |
1491 | if test "$ac_pipe_works" = yes; then | |
1492 | if test x"$ac_symprfx" = x"_"; then | |
1493 | ac_cv_sys_symbol_underscore=yes | |
1494 | else | |
1495 | ac_cv_sys_symbol_underscore=no | |
1496 | fi | |
1497 | break | |
1498 | else | |
1499 | ac_cv_sys_global_symbol_pipe= | |
1500 | fi | |
1501 | done | |
1502 | ||
1503 | fi | |
1504 | ||
1505 | ||
1506 | ac_result=yes | |
1507 | if test -z "$ac_cv_sys_global_symbol_pipe"; then | |
1508 | ac_result=no | |
1509 | fi | |
1510 | echo "$ac_t""$ac_result" 1>&6 | |
1511 | ||
1512 | echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6 | |
a2d91340 | 1513 | echo "configure:1514: checking for _ prefix in compiled symbols" >&5 |
252b5132 RH |
1514 | if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then |
1515 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1516 | else | |
1517 | ac_cv_sys_symbol_underscore=no | |
1518 | cat > conftest.$ac_ext <<EOF | |
1519 | void nm_test_func(){} | |
1520 | int main(){nm_test_func;return 0;} | |
1521 | EOF | |
a2d91340 | 1522 | if { (eval echo configure:1523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
1523 | # Now try to grab the symbols. |
1524 | ac_nlist=conftest.nm | |
a2d91340 | 1525 | if { (eval echo configure:1526: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then |
252b5132 RH |
1526 | # See whether the symbols have a leading underscore. |
1527 | if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | |
1528 | ac_cv_sys_symbol_underscore=yes | |
1529 | else | |
1530 | if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | |
1531 | : | |
1532 | else | |
1533 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | |
1534 | fi | |
1535 | fi | |
1536 | else | |
1537 | echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5 | |
1538 | fi | |
1539 | else | |
1540 | echo "configure: failed program was:" >&5 | |
1541 | cat conftest.c >&5 | |
1542 | fi | |
1543 | rm -rf conftest* | |
1544 | ||
1545 | fi | |
1546 | ||
1547 | echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6 | |
1548 | USE_SYMBOL_UNDERSCORE=${ac_cv_sys_symbol_underscore=no} | |
1549 | ||
1550 | echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 | |
a2d91340 | 1551 | echo "configure:1552: checking whether ln -s works" >&5 |
252b5132 RH |
1552 | if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then |
1553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1554 | else | |
1555 | rm -f conftestdata | |
1556 | if ln -s X conftestdata 2>/dev/null | |
1557 | then | |
1558 | rm -f conftestdata | |
1559 | ac_cv_prog_LN_S="ln -s" | |
1560 | else | |
1561 | ac_cv_prog_LN_S=ln | |
1562 | fi | |
1563 | fi | |
1564 | LN_S="$ac_cv_prog_LN_S" | |
1565 | if test "$ac_cv_prog_LN_S" = "ln -s"; then | |
1566 | echo "$ac_t""yes" 1>&6 | |
1567 | else | |
1568 | echo "$ac_t""no" 1>&6 | |
1569 | fi | |
1570 | ||
1571 | if test $host != $build; then | |
1572 | ac_tool_prefix=${host_alias}- | |
1573 | else | |
1574 | ac_tool_prefix= | |
1575 | fi | |
1576 | ||
1577 | ||
1578 | # Check for any special flags to pass to ltconfig. | |
1579 | libtool_flags="--cache-file=$cache_file" | |
1580 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | |
1581 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
1582 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | |
1583 | test "$lt_dlopen" = yes && libtool_flags="$libtool_flags --enable-dlopen" | |
1584 | test "$silent" = yes && libtool_flags="$libtool_flags --silent" | |
1585 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | |
1586 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
1587 | ||
1588 | # Some flags need to be propagated to the compiler or linker for good | |
1589 | # libtool support. | |
1590 | case "$host" in | |
1591 | *-*-irix6*) | |
1592 | # Find out which ABI we are using. | |
a2d91340 AC |
1593 | echo '#line 1594 "configure"' > conftest.$ac_ext |
1594 | if { (eval echo configure:1595: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then | |
252b5132 RH |
1595 | case "`/usr/bin/file conftest.o`" in |
1596 | *32-bit*) | |
1597 | LD="${LD-ld} -32" | |
1598 | ;; | |
1599 | *N32*) | |
1600 | LD="${LD-ld} -n32" | |
1601 | ;; | |
1602 | *64-bit*) | |
1603 | LD="${LD-ld} -64" | |
1604 | ;; | |
1605 | esac | |
1606 | fi | |
1607 | rm -rf conftest* | |
1608 | ;; | |
1609 | ||
1610 | *-*-sco3.2v5*) | |
1611 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1612 | SAVE_CFLAGS="$CFLAGS" | |
1613 | CFLAGS="$CFLAGS -belf" | |
1614 | echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6 | |
a2d91340 | 1615 | echo "configure:1616: checking whether the C compiler needs -belf" >&5 |
252b5132 RH |
1616 | if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then |
1617 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1618 | else | |
1619 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 1620 | #line 1621 "configure" |
252b5132 RH |
1621 | #include "confdefs.h" |
1622 | ||
1623 | int main() { | |
1624 | ||
1625 | ; return 0; } | |
1626 | EOF | |
a2d91340 | 1627 | if { (eval echo configure:1628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
1628 | rm -rf conftest* |
1629 | lt_cv_cc_needs_belf=yes | |
1630 | else | |
1631 | echo "configure: failed program was:" >&5 | |
1632 | cat conftest.$ac_ext >&5 | |
1633 | rm -rf conftest* | |
1634 | lt_cv_cc_needs_belf=no | |
1635 | fi | |
1636 | rm -f conftest* | |
1637 | fi | |
1638 | ||
1639 | echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6 | |
1640 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1641 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1642 | CFLAGS="$SAVE_CFLAGS" | |
1643 | fi | |
1644 | ;; | |
1645 | ||
1646 | *-*-cygwin*) | |
1647 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
1648 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
1649 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1650 | echo "configure:1651: checking for $ac_word" >&5 |
252b5132 RH |
1651 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
1652 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1653 | else | |
1654 | if test -n "$DLLTOOL"; then | |
1655 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1656 | else | |
1657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1658 | ac_dummy="$PATH" | |
1659 | for ac_dir in $ac_dummy; do | |
1660 | test -z "$ac_dir" && ac_dir=. | |
1661 | if test -f $ac_dir/$ac_word; then | |
1662 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
1663 | break | |
1664 | fi | |
1665 | done | |
1666 | IFS="$ac_save_ifs" | |
1667 | fi | |
1668 | fi | |
1669 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1670 | if test -n "$DLLTOOL"; then | |
1671 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1672 | else | |
1673 | echo "$ac_t""no" 1>&6 | |
1674 | fi | |
1675 | ||
1676 | ||
1677 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
1678 | if test -n "$ac_tool_prefix"; then | |
1679 | # Extract the first word of "dlltool", so it can be a program name with args. | |
1680 | set dummy dlltool; ac_word=$2 | |
1681 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1682 | echo "configure:1683: checking for $ac_word" >&5 |
252b5132 RH |
1683 | if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then |
1684 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1685 | else | |
1686 | if test -n "$DLLTOOL"; then | |
1687 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
1688 | else | |
1689 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1690 | ac_dummy="$PATH" | |
1691 | for ac_dir in $ac_dummy; do | |
1692 | test -z "$ac_dir" && ac_dir=. | |
1693 | if test -f $ac_dir/$ac_word; then | |
1694 | ac_cv_prog_DLLTOOL="dlltool" | |
1695 | break | |
1696 | fi | |
1697 | done | |
1698 | IFS="$ac_save_ifs" | |
1699 | test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false" | |
1700 | fi | |
1701 | fi | |
1702 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
1703 | if test -n "$DLLTOOL"; then | |
1704 | echo "$ac_t""$DLLTOOL" 1>&6 | |
1705 | else | |
1706 | echo "$ac_t""no" 1>&6 | |
1707 | fi | |
1708 | ||
1709 | else | |
1710 | DLLTOOL="false" | |
1711 | fi | |
1712 | fi | |
1713 | ||
1714 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
1715 | set dummy ${ac_tool_prefix}as; ac_word=$2 | |
1716 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1717 | echo "configure:1718: checking for $ac_word" >&5 |
252b5132 RH |
1718 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1719 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1720 | else | |
1721 | if test -n "$AS"; then | |
1722 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1723 | else | |
1724 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1725 | ac_dummy="$PATH" | |
1726 | for ac_dir in $ac_dummy; do | |
1727 | test -z "$ac_dir" && ac_dir=. | |
1728 | if test -f $ac_dir/$ac_word; then | |
1729 | ac_cv_prog_AS="${ac_tool_prefix}as" | |
1730 | break | |
1731 | fi | |
1732 | done | |
1733 | IFS="$ac_save_ifs" | |
1734 | fi | |
1735 | fi | |
1736 | AS="$ac_cv_prog_AS" | |
1737 | if test -n "$AS"; then | |
1738 | echo "$ac_t""$AS" 1>&6 | |
1739 | else | |
1740 | echo "$ac_t""no" 1>&6 | |
1741 | fi | |
1742 | ||
1743 | ||
1744 | if test -z "$ac_cv_prog_AS"; then | |
1745 | if test -n "$ac_tool_prefix"; then | |
1746 | # Extract the first word of "as", so it can be a program name with args. | |
1747 | set dummy as; ac_word=$2 | |
1748 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1749 | echo "configure:1750: checking for $ac_word" >&5 |
252b5132 RH |
1750 | if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then |
1751 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1752 | else | |
1753 | if test -n "$AS"; then | |
1754 | ac_cv_prog_AS="$AS" # Let the user override the test. | |
1755 | else | |
1756 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1757 | ac_dummy="$PATH" | |
1758 | for ac_dir in $ac_dummy; do | |
1759 | test -z "$ac_dir" && ac_dir=. | |
1760 | if test -f $ac_dir/$ac_word; then | |
1761 | ac_cv_prog_AS="as" | |
1762 | break | |
1763 | fi | |
1764 | done | |
1765 | IFS="$ac_save_ifs" | |
1766 | test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false" | |
1767 | fi | |
1768 | fi | |
1769 | AS="$ac_cv_prog_AS" | |
1770 | if test -n "$AS"; then | |
1771 | echo "$ac_t""$AS" 1>&6 | |
1772 | else | |
1773 | echo "$ac_t""no" 1>&6 | |
1774 | fi | |
1775 | ||
1776 | else | |
1777 | AS="false" | |
1778 | fi | |
1779 | fi | |
1780 | ||
1781 | ||
1782 | ;; | |
1783 | ||
1784 | esac | |
1785 | ||
1786 | # enable the --disable-libtool-lock switch | |
1787 | ||
1788 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | |
1789 | if test "${enable_libtool_lock+set}" = set; then | |
1790 | enableval="$enable_libtool_lock" | |
1791 | need_locks=$enableval | |
1792 | else | |
1793 | need_locks=yes | |
1794 | fi | |
1795 | ||
1796 | ||
1797 | if test x"$need_locks" = xno; then | |
1798 | libtool_flags="$libtool_flags --disable-lock" | |
1799 | fi | |
1800 | ||
1801 | ||
1802 | # Save cache, so that ltconfig can load it | |
1803 | cat > confcache <<\EOF | |
1804 | # This file is a shell script that caches the results of configure | |
1805 | # tests run on this system so they can be shared between configure | |
1806 | # scripts and configure runs. It is not useful on other systems. | |
1807 | # If it contains results you don't want to keep, you may remove or edit it. | |
1808 | # | |
1809 | # By default, configure uses ./config.cache as the cache file, | |
1810 | # creating it if it does not exist already. You can give configure | |
1811 | # the --cache-file=FILE option to use a different cache file; that is | |
1812 | # what configure does when it calls configure scripts in | |
1813 | # subdirectories, so they share the cache. | |
1814 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
1815 | # config.status only pays attention to the cache file if you give it the | |
1816 | # --recheck option to rerun configure. | |
1817 | # | |
1818 | EOF | |
1819 | # The following way of writing the cache mishandles newlines in values, | |
1820 | # but we know of no workaround that is simple, portable, and efficient. | |
1821 | # So, don't put newlines in cache variables' values. | |
1822 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
1823 | # and sets the high bit in the cache file unless we assign to the vars. | |
1824 | (set) 2>&1 | | |
1825 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
1826 | *ac_space=\ *) | |
1827 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
1828 | # turns \\\\ into \\, and sed turns \\ into \). | |
1829 | sed -n \ | |
1830 | -e "s/'/'\\\\''/g" \ | |
1831 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
1832 | ;; | |
1833 | *) | |
1834 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
1835 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
1836 | ;; | |
1837 | esac >> confcache | |
1838 | if cmp -s $cache_file confcache; then | |
1839 | : | |
1840 | else | |
1841 | if test -w $cache_file; then | |
1842 | echo "updating cache $cache_file" | |
1843 | cat confcache > $cache_file | |
1844 | else | |
1845 | echo "not updating unwritable cache $cache_file" | |
1846 | fi | |
1847 | fi | |
1848 | rm -f confcache | |
1849 | ||
1850 | ||
1851 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | |
1852 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | |
1853 | LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \ | |
1854 | DLLTOOL="$DLLTOOL" AS="$AS" \ | |
1855 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | |
1856 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | |
1857 | || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } | |
1858 | ||
1859 | # Reload cache, that may have been modified by ltconfig | |
1860 | if test -r "$cache_file"; then | |
1861 | echo "loading cache $cache_file" | |
1862 | . $cache_file | |
1863 | else | |
1864 | echo "creating cache $cache_file" | |
1865 | > $cache_file | |
1866 | fi | |
1867 | ||
1868 | ||
1869 | # This can be used to rebuild libtool when needed | |
1870 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | |
1871 | ||
1872 | # Always use our own libtool. | |
1873 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1874 | ||
1875 | # Redirect the config.log output again, so that the ltconfig log is not | |
1876 | # clobbered by the next message. | |
1877 | exec 5>>./config.log | |
1878 | ||
1879 | ||
1880 | ||
1881 | ||
1882 | ||
1883 | ||
1884 | # Extract the first word of "gcc", so it can be a program name with args. | |
1885 | set dummy gcc; ac_word=$2 | |
1886 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1887 | echo "configure:1888: checking for $ac_word" >&5 |
252b5132 RH |
1888 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1889 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1890 | else | |
1891 | if test -n "$CC"; then | |
1892 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1893 | else | |
1894 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1895 | ac_dummy="$PATH" | |
1896 | for ac_dir in $ac_dummy; do | |
1897 | test -z "$ac_dir" && ac_dir=. | |
1898 | if test -f $ac_dir/$ac_word; then | |
1899 | ac_cv_prog_CC="gcc" | |
1900 | break | |
1901 | fi | |
1902 | done | |
1903 | IFS="$ac_save_ifs" | |
1904 | fi | |
1905 | fi | |
1906 | CC="$ac_cv_prog_CC" | |
1907 | if test -n "$CC"; then | |
1908 | echo "$ac_t""$CC" 1>&6 | |
1909 | else | |
1910 | echo "$ac_t""no" 1>&6 | |
1911 | fi | |
1912 | ||
1913 | if test -z "$CC"; then | |
1914 | # Extract the first word of "cc", so it can be a program name with args. | |
1915 | set dummy cc; ac_word=$2 | |
1916 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1917 | echo "configure:1918: checking for $ac_word" >&5 |
252b5132 RH |
1918 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1919 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1920 | else | |
1921 | if test -n "$CC"; then | |
1922 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1923 | else | |
1924 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1925 | ac_prog_rejected=no | |
1926 | ac_dummy="$PATH" | |
1927 | for ac_dir in $ac_dummy; do | |
1928 | test -z "$ac_dir" && ac_dir=. | |
1929 | if test -f $ac_dir/$ac_word; then | |
1930 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1931 | ac_prog_rejected=yes | |
1932 | continue | |
1933 | fi | |
1934 | ac_cv_prog_CC="cc" | |
1935 | break | |
1936 | fi | |
1937 | done | |
1938 | IFS="$ac_save_ifs" | |
1939 | if test $ac_prog_rejected = yes; then | |
1940 | # We found a bogon in the path, so make sure we never use it. | |
1941 | set dummy $ac_cv_prog_CC | |
1942 | shift | |
1943 | if test $# -gt 0; then | |
1944 | # We chose a different compiler from the bogus one. | |
1945 | # However, it has the same basename, so the bogon will be chosen | |
1946 | # first if we set CC to just the basename; use the full file name. | |
1947 | shift | |
1948 | set dummy "$ac_dir/$ac_word" "$@" | |
1949 | shift | |
1950 | ac_cv_prog_CC="$@" | |
1951 | fi | |
1952 | fi | |
1953 | fi | |
1954 | fi | |
1955 | CC="$ac_cv_prog_CC" | |
1956 | if test -n "$CC"; then | |
1957 | echo "$ac_t""$CC" 1>&6 | |
1958 | else | |
1959 | echo "$ac_t""no" 1>&6 | |
1960 | fi | |
1961 | ||
1962 | if test -z "$CC"; then | |
1963 | case "`uname -s`" in | |
1964 | *win32* | *WIN32*) | |
1965 | # Extract the first word of "cl", so it can be a program name with args. | |
1966 | set dummy cl; ac_word=$2 | |
1967 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 1968 | echo "configure:1969: checking for $ac_word" >&5 |
252b5132 RH |
1969 | if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then |
1970 | echo $ac_n "(cached) $ac_c" 1>&6 | |
1971 | else | |
1972 | if test -n "$CC"; then | |
1973 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1974 | else | |
1975 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
1976 | ac_dummy="$PATH" | |
1977 | for ac_dir in $ac_dummy; do | |
1978 | test -z "$ac_dir" && ac_dir=. | |
1979 | if test -f $ac_dir/$ac_word; then | |
1980 | ac_cv_prog_CC="cl" | |
1981 | break | |
1982 | fi | |
1983 | done | |
1984 | IFS="$ac_save_ifs" | |
1985 | fi | |
1986 | fi | |
1987 | CC="$ac_cv_prog_CC" | |
1988 | if test -n "$CC"; then | |
1989 | echo "$ac_t""$CC" 1>&6 | |
1990 | else | |
1991 | echo "$ac_t""no" 1>&6 | |
1992 | fi | |
1993 | ;; | |
1994 | esac | |
1995 | fi | |
1996 | test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; } | |
1997 | fi | |
1998 | ||
1999 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 | |
a2d91340 | 2000 | echo "configure:2001: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 |
252b5132 RH |
2001 | |
2002 | ac_ext=c | |
2003 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2004 | ac_cpp='$CPP $CPPFLAGS' | |
2005 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2006 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2007 | cross_compiling=$ac_cv_prog_cc_cross | |
2008 | ||
2009 | cat > conftest.$ac_ext << EOF | |
2010 | ||
a2d91340 | 2011 | #line 2012 "configure" |
252b5132 RH |
2012 | #include "confdefs.h" |
2013 | ||
2014 | main(){return(0);} | |
2015 | EOF | |
a2d91340 | 2016 | if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2017 | ac_cv_prog_cc_works=yes |
2018 | # If we can't run a trivial program, we are probably using a cross compiler. | |
2019 | if (./conftest; exit) 2>/dev/null; then | |
2020 | ac_cv_prog_cc_cross=no | |
2021 | else | |
2022 | ac_cv_prog_cc_cross=yes | |
2023 | fi | |
2024 | else | |
2025 | echo "configure: failed program was:" >&5 | |
2026 | cat conftest.$ac_ext >&5 | |
2027 | ac_cv_prog_cc_works=no | |
2028 | fi | |
2029 | rm -fr conftest* | |
2030 | ac_ext=c | |
2031 | # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. | |
2032 | ac_cpp='$CPP $CPPFLAGS' | |
2033 | ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' | |
2034 | ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' | |
2035 | cross_compiling=$ac_cv_prog_cc_cross | |
2036 | ||
2037 | echo "$ac_t""$ac_cv_prog_cc_works" 1>&6 | |
2038 | if test $ac_cv_prog_cc_works = no; then | |
2039 | { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; } | |
2040 | fi | |
2041 | echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 | |
a2d91340 | 2042 | echo "configure:2043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 |
252b5132 RH |
2043 | echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 |
2044 | cross_compiling=$ac_cv_prog_cc_cross | |
2045 | ||
2046 | echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 | |
a2d91340 | 2047 | echo "configure:2048: checking whether we are using GNU C" >&5 |
252b5132 RH |
2048 | if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then |
2049 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2050 | else | |
2051 | cat > conftest.c <<EOF | |
2052 | #ifdef __GNUC__ | |
2053 | yes; | |
2054 | #endif | |
2055 | EOF | |
a2d91340 | 2056 | if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2057: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then |
252b5132 RH |
2057 | ac_cv_prog_gcc=yes |
2058 | else | |
2059 | ac_cv_prog_gcc=no | |
2060 | fi | |
2061 | fi | |
2062 | ||
2063 | echo "$ac_t""$ac_cv_prog_gcc" 1>&6 | |
2064 | ||
2065 | if test $ac_cv_prog_gcc = yes; then | |
2066 | GCC=yes | |
2067 | else | |
2068 | GCC= | |
2069 | fi | |
2070 | ||
2071 | ac_test_CFLAGS="${CFLAGS+set}" | |
2072 | ac_save_CFLAGS="$CFLAGS" | |
2073 | CFLAGS= | |
2074 | echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 | |
a2d91340 | 2075 | echo "configure:2076: checking whether ${CC-cc} accepts -g" >&5 |
252b5132 RH |
2076 | if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then |
2077 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2078 | else | |
2079 | echo 'void f(){}' > conftest.c | |
2080 | if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then | |
2081 | ac_cv_prog_cc_g=yes | |
2082 | else | |
2083 | ac_cv_prog_cc_g=no | |
2084 | fi | |
2085 | rm -f conftest* | |
2086 | ||
2087 | fi | |
2088 | ||
2089 | echo "$ac_t""$ac_cv_prog_cc_g" 1>&6 | |
2090 | if test "$ac_test_CFLAGS" = set; then | |
2091 | CFLAGS="$ac_save_CFLAGS" | |
2092 | elif test $ac_cv_prog_cc_g = yes; then | |
2093 | if test "$GCC" = yes; then | |
2094 | CFLAGS="-g -O2" | |
2095 | else | |
2096 | CFLAGS="-g" | |
2097 | fi | |
2098 | else | |
2099 | if test "$GCC" = yes; then | |
2100 | CFLAGS="-O2" | |
2101 | else | |
2102 | CFLAGS= | |
2103 | fi | |
2104 | fi | |
2105 | ||
2106 | # Find a good install program. We prefer a C program (faster), | |
2107 | # so one script is as good as another. But avoid the broken or | |
2108 | # incompatible versions: | |
2109 | # SysV /etc/install, /usr/sbin/install | |
2110 | # SunOS /usr/etc/install | |
2111 | # IRIX /sbin/install | |
2112 | # AIX /bin/install | |
2113 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2114 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2115 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2116 | # ./install, which can be erroneously created by make from ./install.sh. | |
2117 | echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 | |
a2d91340 | 2118 | echo "configure:2119: checking for a BSD compatible install" >&5 |
252b5132 RH |
2119 | if test -z "$INSTALL"; then |
2120 | if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then | |
2121 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2122 | else | |
2123 | IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":" | |
2124 | for ac_dir in $PATH; do | |
2125 | # Account for people who put trailing slashes in PATH elements. | |
2126 | case "$ac_dir/" in | |
2127 | /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;; | |
2128 | *) | |
2129 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2130 | # Don't use installbsd from OSF since it installs stuff as root | |
2131 | # by default. | |
2132 | for ac_prog in ginstall scoinst install; do | |
2133 | if test -f $ac_dir/$ac_prog; then | |
2134 | if test $ac_prog = install && | |
2135 | grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then | |
2136 | # AIX install. It has an incompatible calling convention. | |
2137 | : | |
2138 | else | |
2139 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2140 | break 2 | |
2141 | fi | |
2142 | fi | |
2143 | done | |
2144 | ;; | |
2145 | esac | |
2146 | done | |
2147 | IFS="$ac_save_IFS" | |
2148 | ||
2149 | fi | |
2150 | if test "${ac_cv_path_install+set}" = set; then | |
2151 | INSTALL="$ac_cv_path_install" | |
2152 | else | |
2153 | # As a last resort, use the slow shell script. We don't cache a | |
2154 | # path for INSTALL within a source directory, because that will | |
2155 | # break other packages using the cache if that directory is | |
2156 | # removed, or if the path is relative. | |
2157 | INSTALL="$ac_install_sh" | |
2158 | fi | |
2159 | fi | |
2160 | echo "$ac_t""$INSTALL" 1>&6 | |
2161 | ||
2162 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2163 | # It thinks the first close brace ends the variable substitution. | |
2164 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2165 | ||
2166 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}' | |
2167 | ||
2168 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2169 | ||
2170 | ||
2171 | echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 | |
a2d91340 | 2172 | echo "configure:2173: checking for POSIXized ISC" >&5 |
252b5132 RH |
2173 | if test -d /etc/conf/kconfig.d && |
2174 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 | |
2175 | then | |
2176 | echo "$ac_t""yes" 1>&6 | |
2177 | ISC=yes # If later tests want to check for ISC. | |
2178 | cat >> confdefs.h <<\EOF | |
2179 | #define _POSIX_SOURCE 1 | |
2180 | EOF | |
2181 | ||
2182 | if test "$GCC" = yes; then | |
2183 | CC="$CC -posix" | |
2184 | else | |
2185 | CC="$CC -Xp" | |
2186 | fi | |
2187 | else | |
2188 | echo "$ac_t""no" 1>&6 | |
2189 | ISC= | |
2190 | fi | |
2191 | ||
2192 | ||
2193 | ALL_LINGUAS= | |
2194 | echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 | |
a2d91340 | 2195 | echo "configure:2196: checking how to run the C preprocessor" >&5 |
252b5132 RH |
2196 | # On Suns, sometimes $CPP names a directory. |
2197 | if test -n "$CPP" && test -d "$CPP"; then | |
2198 | CPP= | |
2199 | fi | |
2200 | if test -z "$CPP"; then | |
2201 | if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then | |
2202 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2203 | else | |
2204 | # This must be in double quotes, not single quotes, because CPP may get | |
2205 | # substituted into the Makefile and "${CC-cc}" will confuse make. | |
2206 | CPP="${CC-cc} -E" | |
2207 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2208 | # not just through cpp. | |
2209 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2210 | #line 2211 "configure" |
252b5132 RH |
2211 | #include "confdefs.h" |
2212 | #include <assert.h> | |
2213 | Syntax Error | |
2214 | EOF | |
2215 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 2216 | { (eval echo configure:2217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2217 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2218 | if test -z "$ac_err"; then | |
2219 | : | |
2220 | else | |
2221 | echo "$ac_err" >&5 | |
2222 | echo "configure: failed program was:" >&5 | |
2223 | cat conftest.$ac_ext >&5 | |
2224 | rm -rf conftest* | |
2225 | CPP="${CC-cc} -E -traditional-cpp" | |
2226 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2227 | #line 2228 "configure" |
252b5132 RH |
2228 | #include "confdefs.h" |
2229 | #include <assert.h> | |
2230 | Syntax Error | |
2231 | EOF | |
2232 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 2233 | { (eval echo configure:2234: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2234 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2235 | if test -z "$ac_err"; then | |
2236 | : | |
2237 | else | |
2238 | echo "$ac_err" >&5 | |
2239 | echo "configure: failed program was:" >&5 | |
2240 | cat conftest.$ac_ext >&5 | |
2241 | rm -rf conftest* | |
2242 | CPP="${CC-cc} -nologo -E" | |
2243 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2244 | #line 2245 "configure" |
252b5132 RH |
2245 | #include "confdefs.h" |
2246 | #include <assert.h> | |
2247 | Syntax Error | |
2248 | EOF | |
2249 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 2250 | { (eval echo configure:2251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2251 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2252 | if test -z "$ac_err"; then | |
2253 | : | |
2254 | else | |
2255 | echo "$ac_err" >&5 | |
2256 | echo "configure: failed program was:" >&5 | |
2257 | cat conftest.$ac_ext >&5 | |
2258 | rm -rf conftest* | |
2259 | CPP=/lib/cpp | |
2260 | fi | |
2261 | rm -f conftest* | |
2262 | fi | |
2263 | rm -f conftest* | |
2264 | fi | |
2265 | rm -f conftest* | |
2266 | ac_cv_prog_CPP="$CPP" | |
2267 | fi | |
2268 | CPP="$ac_cv_prog_CPP" | |
2269 | else | |
2270 | ac_cv_prog_CPP="$CPP" | |
2271 | fi | |
2272 | echo "$ac_t""$CPP" 1>&6 | |
2273 | ||
2274 | echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 | |
a2d91340 | 2275 | echo "configure:2276: checking for ANSI C header files" >&5 |
252b5132 RH |
2276 | if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then |
2277 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2278 | else | |
2279 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2280 | #line 2281 "configure" |
252b5132 RH |
2281 | #include "confdefs.h" |
2282 | #include <stdlib.h> | |
2283 | #include <stdarg.h> | |
2284 | #include <string.h> | |
2285 | #include <float.h> | |
2286 | EOF | |
2287 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 2288 | { (eval echo configure:2289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2289 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2290 | if test -z "$ac_err"; then | |
2291 | rm -rf conftest* | |
2292 | ac_cv_header_stdc=yes | |
2293 | else | |
2294 | echo "$ac_err" >&5 | |
2295 | echo "configure: failed program was:" >&5 | |
2296 | cat conftest.$ac_ext >&5 | |
2297 | rm -rf conftest* | |
2298 | ac_cv_header_stdc=no | |
2299 | fi | |
2300 | rm -f conftest* | |
2301 | ||
2302 | if test $ac_cv_header_stdc = yes; then | |
2303 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2304 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2305 | #line 2306 "configure" |
252b5132 RH |
2306 | #include "confdefs.h" |
2307 | #include <string.h> | |
2308 | EOF | |
2309 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2310 | egrep "memchr" >/dev/null 2>&1; then | |
2311 | : | |
2312 | else | |
2313 | rm -rf conftest* | |
2314 | ac_cv_header_stdc=no | |
2315 | fi | |
2316 | rm -f conftest* | |
2317 | ||
2318 | fi | |
2319 | ||
2320 | if test $ac_cv_header_stdc = yes; then | |
2321 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2322 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2323 | #line 2324 "configure" |
252b5132 RH |
2324 | #include "confdefs.h" |
2325 | #include <stdlib.h> | |
2326 | EOF | |
2327 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2328 | egrep "free" >/dev/null 2>&1; then | |
2329 | : | |
2330 | else | |
2331 | rm -rf conftest* | |
2332 | ac_cv_header_stdc=no | |
2333 | fi | |
2334 | rm -f conftest* | |
2335 | ||
2336 | fi | |
2337 | ||
2338 | if test $ac_cv_header_stdc = yes; then | |
2339 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2340 | if test "$cross_compiling" = yes; then | |
2341 | : | |
2342 | else | |
2343 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2344 | #line 2345 "configure" |
252b5132 RH |
2345 | #include "confdefs.h" |
2346 | #include <ctype.h> | |
2347 | #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2348 | #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2349 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2350 | int main () { int i; for (i = 0; i < 256; i++) | |
2351 | if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); | |
2352 | exit (0); } | |
2353 | ||
2354 | EOF | |
a2d91340 | 2355 | if { (eval echo configure:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
2356 | then |
2357 | : | |
2358 | else | |
2359 | echo "configure: failed program was:" >&5 | |
2360 | cat conftest.$ac_ext >&5 | |
2361 | rm -fr conftest* | |
2362 | ac_cv_header_stdc=no | |
2363 | fi | |
2364 | rm -fr conftest* | |
2365 | fi | |
2366 | ||
2367 | fi | |
2368 | fi | |
2369 | ||
2370 | echo "$ac_t""$ac_cv_header_stdc" 1>&6 | |
2371 | if test $ac_cv_header_stdc = yes; then | |
2372 | cat >> confdefs.h <<\EOF | |
2373 | #define STDC_HEADERS 1 | |
2374 | EOF | |
2375 | ||
2376 | fi | |
2377 | ||
2378 | echo $ac_n "checking for working const""... $ac_c" 1>&6 | |
a2d91340 | 2379 | echo "configure:2380: checking for working const" >&5 |
252b5132 RH |
2380 | if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then |
2381 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2382 | else | |
2383 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2384 | #line 2385 "configure" |
252b5132 RH |
2385 | #include "confdefs.h" |
2386 | ||
2387 | int main() { | |
2388 | ||
2389 | /* Ultrix mips cc rejects this. */ | |
2390 | typedef int charset[2]; const charset x; | |
2391 | /* SunOS 4.1.1 cc rejects this. */ | |
2392 | char const *const *ccp; | |
2393 | char **p; | |
2394 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
2395 | struct point {int x, y;}; | |
2396 | static struct point const zero = {0,0}; | |
2397 | /* AIX XL C 1.02.0.0 rejects this. | |
2398 | It does not let you subtract one const X* pointer from another in an arm | |
2399 | of an if-expression whose if-part is not a constant expression */ | |
2400 | const char *g = "string"; | |
2401 | ccp = &g + (g ? g-g : 0); | |
2402 | /* HPUX 7.0 cc rejects these. */ | |
2403 | ++ccp; | |
2404 | p = (char**) ccp; | |
2405 | ccp = (char const *const *) p; | |
2406 | { /* SCO 3.2v4 cc rejects this. */ | |
2407 | char *t; | |
2408 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
2409 | ||
2410 | *t++ = 0; | |
2411 | } | |
2412 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
2413 | int x[] = {25, 17}; | |
2414 | const int *foo = &x[0]; | |
2415 | ++foo; | |
2416 | } | |
2417 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
2418 | typedef const int *iptr; | |
2419 | iptr p = 0; | |
2420 | ++p; | |
2421 | } | |
2422 | { /* AIX XL C 1.02.0.0 rejects this saying | |
2423 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
2424 | struct s { int j; const int *ap[3]; }; | |
2425 | struct s *b; b->j = 5; | |
2426 | } | |
2427 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
2428 | const int foo = 10; | |
2429 | } | |
2430 | ||
2431 | ; return 0; } | |
2432 | EOF | |
a2d91340 | 2433 | if { (eval echo configure:2434: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2434 | rm -rf conftest* |
2435 | ac_cv_c_const=yes | |
2436 | else | |
2437 | echo "configure: failed program was:" >&5 | |
2438 | cat conftest.$ac_ext >&5 | |
2439 | rm -rf conftest* | |
2440 | ac_cv_c_const=no | |
2441 | fi | |
2442 | rm -f conftest* | |
2443 | fi | |
2444 | ||
2445 | echo "$ac_t""$ac_cv_c_const" 1>&6 | |
2446 | if test $ac_cv_c_const = no; then | |
2447 | cat >> confdefs.h <<\EOF | |
2448 | #define const | |
2449 | EOF | |
2450 | ||
2451 | fi | |
2452 | ||
2453 | echo $ac_n "checking for inline""... $ac_c" 1>&6 | |
a2d91340 | 2454 | echo "configure:2455: checking for inline" >&5 |
252b5132 RH |
2455 | if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then |
2456 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2457 | else | |
2458 | ac_cv_c_inline=no | |
2459 | for ac_kw in inline __inline__ __inline; do | |
2460 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2461 | #line 2462 "configure" |
252b5132 RH |
2462 | #include "confdefs.h" |
2463 | ||
2464 | int main() { | |
2465 | } $ac_kw foo() { | |
2466 | ; return 0; } | |
2467 | EOF | |
a2d91340 | 2468 | if { (eval echo configure:2469: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
2469 | rm -rf conftest* |
2470 | ac_cv_c_inline=$ac_kw; break | |
2471 | else | |
2472 | echo "configure: failed program was:" >&5 | |
2473 | cat conftest.$ac_ext >&5 | |
2474 | fi | |
2475 | rm -f conftest* | |
2476 | done | |
2477 | ||
2478 | fi | |
2479 | ||
2480 | echo "$ac_t""$ac_cv_c_inline" 1>&6 | |
2481 | case "$ac_cv_c_inline" in | |
2482 | inline | yes) ;; | |
2483 | no) cat >> confdefs.h <<\EOF | |
2484 | #define inline | |
2485 | EOF | |
2486 | ;; | |
2487 | *) cat >> confdefs.h <<EOF | |
2488 | #define inline $ac_cv_c_inline | |
2489 | EOF | |
2490 | ;; | |
2491 | esac | |
2492 | ||
2493 | echo $ac_n "checking for off_t""... $ac_c" 1>&6 | |
a2d91340 | 2494 | echo "configure:2495: checking for off_t" >&5 |
252b5132 RH |
2495 | if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then |
2496 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2497 | else | |
2498 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2499 | #line 2500 "configure" |
252b5132 RH |
2500 | #include "confdefs.h" |
2501 | #include <sys/types.h> | |
2502 | #if STDC_HEADERS | |
2503 | #include <stdlib.h> | |
2504 | #include <stddef.h> | |
2505 | #endif | |
2506 | EOF | |
2507 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2508 | egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2509 | rm -rf conftest* | |
2510 | ac_cv_type_off_t=yes | |
2511 | else | |
2512 | rm -rf conftest* | |
2513 | ac_cv_type_off_t=no | |
2514 | fi | |
2515 | rm -f conftest* | |
2516 | ||
2517 | fi | |
2518 | echo "$ac_t""$ac_cv_type_off_t" 1>&6 | |
2519 | if test $ac_cv_type_off_t = no; then | |
2520 | cat >> confdefs.h <<\EOF | |
2521 | #define off_t long | |
2522 | EOF | |
2523 | ||
2524 | fi | |
2525 | ||
2526 | echo $ac_n "checking for size_t""... $ac_c" 1>&6 | |
a2d91340 | 2527 | echo "configure:2528: checking for size_t" >&5 |
252b5132 RH |
2528 | if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then |
2529 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2530 | else | |
2531 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2532 | #line 2533 "configure" |
252b5132 RH |
2533 | #include "confdefs.h" |
2534 | #include <sys/types.h> | |
2535 | #if STDC_HEADERS | |
2536 | #include <stdlib.h> | |
2537 | #include <stddef.h> | |
2538 | #endif | |
2539 | EOF | |
2540 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2541 | egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then | |
2542 | rm -rf conftest* | |
2543 | ac_cv_type_size_t=yes | |
2544 | else | |
2545 | rm -rf conftest* | |
2546 | ac_cv_type_size_t=no | |
2547 | fi | |
2548 | rm -f conftest* | |
2549 | ||
2550 | fi | |
2551 | echo "$ac_t""$ac_cv_type_size_t" 1>&6 | |
2552 | if test $ac_cv_type_size_t = no; then | |
2553 | cat >> confdefs.h <<\EOF | |
2554 | #define size_t unsigned | |
2555 | EOF | |
2556 | ||
2557 | fi | |
2558 | ||
2559 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
2560 | # for constant arguments. Useless! | |
2561 | echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 | |
a2d91340 | 2562 | echo "configure:2563: checking for working alloca.h" >&5 |
252b5132 RH |
2563 | if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then |
2564 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2565 | else | |
2566 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2567 | #line 2568 "configure" |
252b5132 RH |
2568 | #include "confdefs.h" |
2569 | #include <alloca.h> | |
2570 | int main() { | |
2571 | char *p = alloca(2 * sizeof(int)); | |
2572 | ; return 0; } | |
2573 | EOF | |
a2d91340 | 2574 | if { (eval echo configure:2575: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2575 | rm -rf conftest* |
2576 | ac_cv_header_alloca_h=yes | |
2577 | else | |
2578 | echo "configure: failed program was:" >&5 | |
2579 | cat conftest.$ac_ext >&5 | |
2580 | rm -rf conftest* | |
2581 | ac_cv_header_alloca_h=no | |
2582 | fi | |
2583 | rm -f conftest* | |
2584 | fi | |
2585 | ||
2586 | echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 | |
2587 | if test $ac_cv_header_alloca_h = yes; then | |
2588 | cat >> confdefs.h <<\EOF | |
2589 | #define HAVE_ALLOCA_H 1 | |
2590 | EOF | |
2591 | ||
2592 | fi | |
2593 | ||
2594 | echo $ac_n "checking for alloca""... $ac_c" 1>&6 | |
a2d91340 | 2595 | echo "configure:2596: checking for alloca" >&5 |
252b5132 RH |
2596 | if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then |
2597 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2598 | else | |
2599 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2600 | #line 2601 "configure" |
252b5132 RH |
2601 | #include "confdefs.h" |
2602 | ||
2603 | #ifdef __GNUC__ | |
2604 | # define alloca __builtin_alloca | |
2605 | #else | |
2606 | # ifdef _MSC_VER | |
2607 | # include <malloc.h> | |
2608 | # define alloca _alloca | |
2609 | # else | |
2610 | # if HAVE_ALLOCA_H | |
2611 | # include <alloca.h> | |
2612 | # else | |
2613 | # ifdef _AIX | |
2614 | #pragma alloca | |
2615 | # else | |
2616 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
2617 | char *alloca (); | |
2618 | # endif | |
2619 | # endif | |
2620 | # endif | |
2621 | # endif | |
2622 | #endif | |
2623 | ||
2624 | int main() { | |
2625 | char *p = (char *) alloca(1); | |
2626 | ; return 0; } | |
2627 | EOF | |
a2d91340 | 2628 | if { (eval echo configure:2629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2629 | rm -rf conftest* |
2630 | ac_cv_func_alloca_works=yes | |
2631 | else | |
2632 | echo "configure: failed program was:" >&5 | |
2633 | cat conftest.$ac_ext >&5 | |
2634 | rm -rf conftest* | |
2635 | ac_cv_func_alloca_works=no | |
2636 | fi | |
2637 | rm -f conftest* | |
2638 | fi | |
2639 | ||
2640 | echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 | |
2641 | if test $ac_cv_func_alloca_works = yes; then | |
2642 | cat >> confdefs.h <<\EOF | |
2643 | #define HAVE_ALLOCA 1 | |
2644 | EOF | |
2645 | ||
2646 | fi | |
2647 | ||
2648 | if test $ac_cv_func_alloca_works = no; then | |
2649 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
2650 | # that cause trouble. Some versions do not even contain alloca or | |
2651 | # contain a buggy version. If you still want to use their alloca, | |
2652 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
2653 | ALLOCA=alloca.${ac_objext} | |
2654 | cat >> confdefs.h <<\EOF | |
2655 | #define C_ALLOCA 1 | |
2656 | EOF | |
2657 | ||
2658 | ||
2659 | echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 | |
a2d91340 | 2660 | echo "configure:2661: checking whether alloca needs Cray hooks" >&5 |
252b5132 RH |
2661 | if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then |
2662 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2663 | else | |
2664 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2665 | #line 2666 "configure" |
252b5132 RH |
2666 | #include "confdefs.h" |
2667 | #if defined(CRAY) && ! defined(CRAY2) | |
2668 | webecray | |
2669 | #else | |
2670 | wenotbecray | |
2671 | #endif | |
2672 | ||
2673 | EOF | |
2674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2675 | egrep "webecray" >/dev/null 2>&1; then | |
2676 | rm -rf conftest* | |
2677 | ac_cv_os_cray=yes | |
2678 | else | |
2679 | rm -rf conftest* | |
2680 | ac_cv_os_cray=no | |
2681 | fi | |
2682 | rm -f conftest* | |
2683 | ||
2684 | fi | |
2685 | ||
2686 | echo "$ac_t""$ac_cv_os_cray" 1>&6 | |
2687 | if test $ac_cv_os_cray = yes; then | |
2688 | for ac_func in _getb67 GETB67 getb67; do | |
2689 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a2d91340 | 2690 | echo "configure:2691: checking for $ac_func" >&5 |
252b5132 RH |
2691 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2692 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2693 | else | |
2694 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2695 | #line 2696 "configure" |
252b5132 RH |
2696 | #include "confdefs.h" |
2697 | /* System header to define __stub macros and hopefully few prototypes, | |
2698 | which can conflict with char $ac_func(); below. */ | |
2699 | #include <assert.h> | |
2700 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2701 | /* We use char because int might match the return type of a gcc2 | |
2702 | builtin and then its argument prototype would still apply. */ | |
2703 | char $ac_func(); | |
2704 | ||
2705 | int main() { | |
2706 | ||
2707 | /* The GNU C library defines this for functions which it implements | |
2708 | to always fail with ENOSYS. Some functions are actually named | |
2709 | something starting with __ and the normal name is an alias. */ | |
2710 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2711 | choke me | |
2712 | #else | |
2713 | $ac_func(); | |
2714 | #endif | |
2715 | ||
2716 | ; return 0; } | |
2717 | EOF | |
a2d91340 | 2718 | if { (eval echo configure:2719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2719 | rm -rf conftest* |
2720 | eval "ac_cv_func_$ac_func=yes" | |
2721 | else | |
2722 | echo "configure: failed program was:" >&5 | |
2723 | cat conftest.$ac_ext >&5 | |
2724 | rm -rf conftest* | |
2725 | eval "ac_cv_func_$ac_func=no" | |
2726 | fi | |
2727 | rm -f conftest* | |
2728 | fi | |
2729 | ||
2730 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2731 | echo "$ac_t""yes" 1>&6 | |
2732 | cat >> confdefs.h <<EOF | |
2733 | #define CRAY_STACKSEG_END $ac_func | |
2734 | EOF | |
2735 | ||
2736 | break | |
2737 | else | |
2738 | echo "$ac_t""no" 1>&6 | |
2739 | fi | |
2740 | ||
2741 | done | |
2742 | fi | |
2743 | ||
2744 | echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 | |
a2d91340 | 2745 | echo "configure:2746: checking stack direction for C alloca" >&5 |
252b5132 RH |
2746 | if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then |
2747 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2748 | else | |
2749 | if test "$cross_compiling" = yes; then | |
2750 | ac_cv_c_stack_direction=0 | |
2751 | else | |
2752 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2753 | #line 2754 "configure" |
252b5132 RH |
2754 | #include "confdefs.h" |
2755 | find_stack_direction () | |
2756 | { | |
2757 | static char *addr = 0; | |
2758 | auto char dummy; | |
2759 | if (addr == 0) | |
2760 | { | |
2761 | addr = &dummy; | |
2762 | return find_stack_direction (); | |
2763 | } | |
2764 | else | |
2765 | return (&dummy > addr) ? 1 : -1; | |
2766 | } | |
2767 | main () | |
2768 | { | |
2769 | exit (find_stack_direction() < 0); | |
2770 | } | |
2771 | EOF | |
a2d91340 | 2772 | if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
2773 | then |
2774 | ac_cv_c_stack_direction=1 | |
2775 | else | |
2776 | echo "configure: failed program was:" >&5 | |
2777 | cat conftest.$ac_ext >&5 | |
2778 | rm -fr conftest* | |
2779 | ac_cv_c_stack_direction=-1 | |
2780 | fi | |
2781 | rm -fr conftest* | |
2782 | fi | |
2783 | ||
2784 | fi | |
2785 | ||
2786 | echo "$ac_t""$ac_cv_c_stack_direction" 1>&6 | |
2787 | cat >> confdefs.h <<EOF | |
2788 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
2789 | EOF | |
2790 | ||
2791 | fi | |
2792 | ||
2793 | for ac_hdr in unistd.h | |
2794 | do | |
2795 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
2796 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a2d91340 | 2797 | echo "configure:2798: checking for $ac_hdr" >&5 |
252b5132 RH |
2798 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
2799 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2800 | else | |
2801 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2802 | #line 2803 "configure" |
252b5132 RH |
2803 | #include "confdefs.h" |
2804 | #include <$ac_hdr> | |
2805 | EOF | |
2806 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 2807 | { (eval echo configure:2808: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
2808 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
2809 | if test -z "$ac_err"; then | |
2810 | rm -rf conftest* | |
2811 | eval "ac_cv_header_$ac_safe=yes" | |
2812 | else | |
2813 | echo "$ac_err" >&5 | |
2814 | echo "configure: failed program was:" >&5 | |
2815 | cat conftest.$ac_ext >&5 | |
2816 | rm -rf conftest* | |
2817 | eval "ac_cv_header_$ac_safe=no" | |
2818 | fi | |
2819 | rm -f conftest* | |
2820 | fi | |
2821 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
2822 | echo "$ac_t""yes" 1>&6 | |
2823 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
2824 | cat >> confdefs.h <<EOF | |
2825 | #define $ac_tr_hdr 1 | |
2826 | EOF | |
2827 | ||
2828 | else | |
2829 | echo "$ac_t""no" 1>&6 | |
2830 | fi | |
2831 | done | |
2832 | ||
2833 | for ac_func in getpagesize | |
2834 | do | |
2835 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a2d91340 | 2836 | echo "configure:2837: checking for $ac_func" >&5 |
252b5132 RH |
2837 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
2838 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2839 | else | |
2840 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2841 | #line 2842 "configure" |
252b5132 RH |
2842 | #include "confdefs.h" |
2843 | /* System header to define __stub macros and hopefully few prototypes, | |
2844 | which can conflict with char $ac_func(); below. */ | |
2845 | #include <assert.h> | |
2846 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2847 | /* We use char because int might match the return type of a gcc2 | |
2848 | builtin and then its argument prototype would still apply. */ | |
2849 | char $ac_func(); | |
2850 | ||
2851 | int main() { | |
2852 | ||
2853 | /* The GNU C library defines this for functions which it implements | |
2854 | to always fail with ENOSYS. Some functions are actually named | |
2855 | something starting with __ and the normal name is an alias. */ | |
2856 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
2857 | choke me | |
2858 | #else | |
2859 | $ac_func(); | |
2860 | #endif | |
2861 | ||
2862 | ; return 0; } | |
2863 | EOF | |
a2d91340 | 2864 | if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
2865 | rm -rf conftest* |
2866 | eval "ac_cv_func_$ac_func=yes" | |
2867 | else | |
2868 | echo "configure: failed program was:" >&5 | |
2869 | cat conftest.$ac_ext >&5 | |
2870 | rm -rf conftest* | |
2871 | eval "ac_cv_func_$ac_func=no" | |
2872 | fi | |
2873 | rm -f conftest* | |
2874 | fi | |
2875 | ||
2876 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
2877 | echo "$ac_t""yes" 1>&6 | |
2878 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
2879 | cat >> confdefs.h <<EOF | |
2880 | #define $ac_tr_func 1 | |
2881 | EOF | |
2882 | ||
2883 | else | |
2884 | echo "$ac_t""no" 1>&6 | |
2885 | fi | |
2886 | done | |
2887 | ||
2888 | echo $ac_n "checking for working mmap""... $ac_c" 1>&6 | |
a2d91340 | 2889 | echo "configure:2890: checking for working mmap" >&5 |
252b5132 RH |
2890 | if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then |
2891 | echo $ac_n "(cached) $ac_c" 1>&6 | |
2892 | else | |
2893 | if test "$cross_compiling" = yes; then | |
2894 | ac_cv_func_mmap_fixed_mapped=no | |
2895 | else | |
2896 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 2897 | #line 2898 "configure" |
252b5132 RH |
2898 | #include "confdefs.h" |
2899 | ||
2900 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
2901 | Here is a matrix of mmap possibilities: | |
2902 | mmap private not fixed | |
2903 | mmap private fixed at somewhere currently unmapped | |
2904 | mmap private fixed at somewhere already mapped | |
2905 | mmap shared not fixed | |
2906 | mmap shared fixed at somewhere currently unmapped | |
2907 | mmap shared fixed at somewhere already mapped | |
2908 | For private mappings, we should verify that changes cannot be read() | |
2909 | back from the file, nor mmap's back from the file at a different | |
2910 | address. (There have been systems where private was not correctly | |
2911 | implemented like the infamous i386 svr4.0, and systems where the | |
2912 | VM page cache was not coherent with the filesystem buffer cache | |
2913 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
2914 | For shared mappings, we should conversely verify that changes get | |
2915 | propogated back to all the places they're supposed to be. | |
2916 | ||
2917 | Grep wants private fixed already mapped. | |
2918 | The main things grep needs to know about mmap are: | |
2919 | * does it exist and is it safe to write into the mmap'd area | |
2920 | * how to use it (BSD variants) */ | |
2921 | #include <sys/types.h> | |
2922 | #include <fcntl.h> | |
2923 | #include <sys/mman.h> | |
2924 | ||
2925 | /* This mess was copied from the GNU getpagesize.h. */ | |
2926 | #ifndef HAVE_GETPAGESIZE | |
2927 | # ifdef HAVE_UNISTD_H | |
2928 | # include <unistd.h> | |
2929 | # endif | |
2930 | ||
2931 | /* Assume that all systems that can run configure have sys/param.h. */ | |
2932 | # ifndef HAVE_SYS_PARAM_H | |
2933 | # define HAVE_SYS_PARAM_H 1 | |
2934 | # endif | |
2935 | ||
2936 | # ifdef _SC_PAGESIZE | |
2937 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
2938 | # else /* no _SC_PAGESIZE */ | |
2939 | # ifdef HAVE_SYS_PARAM_H | |
2940 | # include <sys/param.h> | |
2941 | # ifdef EXEC_PAGESIZE | |
2942 | # define getpagesize() EXEC_PAGESIZE | |
2943 | # else /* no EXEC_PAGESIZE */ | |
2944 | # ifdef NBPG | |
2945 | # define getpagesize() NBPG * CLSIZE | |
2946 | # ifndef CLSIZE | |
2947 | # define CLSIZE 1 | |
2948 | # endif /* no CLSIZE */ | |
2949 | # else /* no NBPG */ | |
2950 | # ifdef NBPC | |
2951 | # define getpagesize() NBPC | |
2952 | # else /* no NBPC */ | |
2953 | # ifdef PAGESIZE | |
2954 | # define getpagesize() PAGESIZE | |
2955 | # endif /* PAGESIZE */ | |
2956 | # endif /* no NBPC */ | |
2957 | # endif /* no NBPG */ | |
2958 | # endif /* no EXEC_PAGESIZE */ | |
2959 | # else /* no HAVE_SYS_PARAM_H */ | |
2960 | # define getpagesize() 8192 /* punt totally */ | |
2961 | # endif /* no HAVE_SYS_PARAM_H */ | |
2962 | # endif /* no _SC_PAGESIZE */ | |
2963 | ||
2964 | #endif /* no HAVE_GETPAGESIZE */ | |
2965 | ||
2966 | #ifdef __cplusplus | |
2967 | extern "C" { void *malloc(unsigned); } | |
2968 | #else | |
2969 | char *malloc(); | |
2970 | #endif | |
2971 | ||
2972 | int | |
2973 | main() | |
2974 | { | |
2975 | char *data, *data2, *data3; | |
2976 | int i, pagesize; | |
2977 | int fd; | |
2978 | ||
2979 | pagesize = getpagesize(); | |
2980 | ||
2981 | /* | |
2982 | * First, make a file with some known garbage in it. | |
2983 | */ | |
2984 | data = malloc(pagesize); | |
2985 | if (!data) | |
2986 | exit(1); | |
2987 | for (i = 0; i < pagesize; ++i) | |
2988 | *(data + i) = rand(); | |
2989 | umask(0); | |
2990 | fd = creat("conftestmmap", 0600); | |
2991 | if (fd < 0) | |
2992 | exit(1); | |
2993 | if (write(fd, data, pagesize) != pagesize) | |
2994 | exit(1); | |
2995 | close(fd); | |
2996 | ||
2997 | /* | |
2998 | * Next, try to mmap the file at a fixed address which | |
2999 | * already has something else allocated at it. If we can, | |
3000 | * also make sure that we see the same garbage. | |
3001 | */ | |
3002 | fd = open("conftestmmap", O_RDWR); | |
3003 | if (fd < 0) | |
3004 | exit(1); | |
3005 | data2 = malloc(2 * pagesize); | |
3006 | if (!data2) | |
3007 | exit(1); | |
3008 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
3009 | if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE, | |
3010 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
3011 | exit(1); | |
3012 | for (i = 0; i < pagesize; ++i) | |
3013 | if (*(data + i) != *(data2 + i)) | |
3014 | exit(1); | |
3015 | ||
3016 | /* | |
3017 | * Finally, make sure that changes to the mapped area | |
3018 | * do not percolate back to the file as seen by read(). | |
3019 | * (This is a bug on some variants of i386 svr4.0.) | |
3020 | */ | |
3021 | for (i = 0; i < pagesize; ++i) | |
3022 | *(data2 + i) = *(data2 + i) + 1; | |
3023 | data3 = malloc(pagesize); | |
3024 | if (!data3) | |
3025 | exit(1); | |
3026 | if (read(fd, data3, pagesize) != pagesize) | |
3027 | exit(1); | |
3028 | for (i = 0; i < pagesize; ++i) | |
3029 | if (*(data + i) != *(data3 + i)) | |
3030 | exit(1); | |
3031 | close(fd); | |
3032 | unlink("conftestmmap"); | |
3033 | exit(0); | |
3034 | } | |
3035 | ||
3036 | EOF | |
a2d91340 | 3037 | if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null |
252b5132 RH |
3038 | then |
3039 | ac_cv_func_mmap_fixed_mapped=yes | |
3040 | else | |
3041 | echo "configure: failed program was:" >&5 | |
3042 | cat conftest.$ac_ext >&5 | |
3043 | rm -fr conftest* | |
3044 | ac_cv_func_mmap_fixed_mapped=no | |
3045 | fi | |
3046 | rm -fr conftest* | |
3047 | fi | |
3048 | ||
3049 | fi | |
3050 | ||
3051 | echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6 | |
3052 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
3053 | cat >> confdefs.h <<\EOF | |
3054 | #define HAVE_MMAP 1 | |
3055 | EOF | |
3056 | ||
3057 | fi | |
3058 | ||
3059 | ||
3060 | for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
3061 | unistd.h values.h sys/param.h | |
3062 | do | |
3063 | ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` | |
3064 | echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 | |
a2d91340 | 3065 | echo "configure:3066: checking for $ac_hdr" >&5 |
252b5132 RH |
3066 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3067 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3068 | else | |
3069 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3070 | #line 3071 "configure" |
252b5132 RH |
3071 | #include "confdefs.h" |
3072 | #include <$ac_hdr> | |
3073 | EOF | |
3074 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 3075 | { (eval echo configure:3076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3076 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3077 | if test -z "$ac_err"; then | |
3078 | rm -rf conftest* | |
3079 | eval "ac_cv_header_$ac_safe=yes" | |
3080 | else | |
3081 | echo "$ac_err" >&5 | |
3082 | echo "configure: failed program was:" >&5 | |
3083 | cat conftest.$ac_ext >&5 | |
3084 | rm -rf conftest* | |
3085 | eval "ac_cv_header_$ac_safe=no" | |
3086 | fi | |
3087 | rm -f conftest* | |
3088 | fi | |
3089 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3090 | echo "$ac_t""yes" 1>&6 | |
3091 | ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` | |
3092 | cat >> confdefs.h <<EOF | |
3093 | #define $ac_tr_hdr 1 | |
3094 | EOF | |
3095 | ||
3096 | else | |
3097 | echo "$ac_t""no" 1>&6 | |
3098 | fi | |
3099 | done | |
3100 | ||
3101 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
3102 | __argz_count __argz_stringify __argz_next | |
3103 | do | |
3104 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a2d91340 | 3105 | echo "configure:3106: checking for $ac_func" >&5 |
252b5132 RH |
3106 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3107 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3108 | else | |
3109 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3110 | #line 3111 "configure" |
252b5132 RH |
3111 | #include "confdefs.h" |
3112 | /* System header to define __stub macros and hopefully few prototypes, | |
3113 | which can conflict with char $ac_func(); below. */ | |
3114 | #include <assert.h> | |
3115 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3116 | /* We use char because int might match the return type of a gcc2 | |
3117 | builtin and then its argument prototype would still apply. */ | |
3118 | char $ac_func(); | |
3119 | ||
3120 | int main() { | |
3121 | ||
3122 | /* The GNU C library defines this for functions which it implements | |
3123 | to always fail with ENOSYS. Some functions are actually named | |
3124 | something starting with __ and the normal name is an alias. */ | |
3125 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3126 | choke me | |
3127 | #else | |
3128 | $ac_func(); | |
3129 | #endif | |
3130 | ||
3131 | ; return 0; } | |
3132 | EOF | |
a2d91340 | 3133 | if { (eval echo configure:3134: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3134 | rm -rf conftest* |
3135 | eval "ac_cv_func_$ac_func=yes" | |
3136 | else | |
3137 | echo "configure: failed program was:" >&5 | |
3138 | cat conftest.$ac_ext >&5 | |
3139 | rm -rf conftest* | |
3140 | eval "ac_cv_func_$ac_func=no" | |
3141 | fi | |
3142 | rm -f conftest* | |
3143 | fi | |
3144 | ||
3145 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3146 | echo "$ac_t""yes" 1>&6 | |
3147 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3148 | cat >> confdefs.h <<EOF | |
3149 | #define $ac_tr_func 1 | |
3150 | EOF | |
3151 | ||
3152 | else | |
3153 | echo "$ac_t""no" 1>&6 | |
3154 | fi | |
3155 | done | |
3156 | ||
3157 | ||
3158 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
3159 | for ac_func in stpcpy | |
3160 | do | |
3161 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a2d91340 | 3162 | echo "configure:3163: checking for $ac_func" >&5 |
252b5132 RH |
3163 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3164 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3165 | else | |
3166 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3167 | #line 3168 "configure" |
252b5132 RH |
3168 | #include "confdefs.h" |
3169 | /* System header to define __stub macros and hopefully few prototypes, | |
3170 | which can conflict with char $ac_func(); below. */ | |
3171 | #include <assert.h> | |
3172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3173 | /* We use char because int might match the return type of a gcc2 | |
3174 | builtin and then its argument prototype would still apply. */ | |
3175 | char $ac_func(); | |
3176 | ||
3177 | int main() { | |
3178 | ||
3179 | /* The GNU C library defines this for functions which it implements | |
3180 | to always fail with ENOSYS. Some functions are actually named | |
3181 | something starting with __ and the normal name is an alias. */ | |
3182 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3183 | choke me | |
3184 | #else | |
3185 | $ac_func(); | |
3186 | #endif | |
3187 | ||
3188 | ; return 0; } | |
3189 | EOF | |
a2d91340 | 3190 | if { (eval echo configure:3191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3191 | rm -rf conftest* |
3192 | eval "ac_cv_func_$ac_func=yes" | |
3193 | else | |
3194 | echo "configure: failed program was:" >&5 | |
3195 | cat conftest.$ac_ext >&5 | |
3196 | rm -rf conftest* | |
3197 | eval "ac_cv_func_$ac_func=no" | |
3198 | fi | |
3199 | rm -f conftest* | |
3200 | fi | |
3201 | ||
3202 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3203 | echo "$ac_t""yes" 1>&6 | |
3204 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3205 | cat >> confdefs.h <<EOF | |
3206 | #define $ac_tr_func 1 | |
3207 | EOF | |
3208 | ||
3209 | else | |
3210 | echo "$ac_t""no" 1>&6 | |
3211 | fi | |
3212 | done | |
3213 | ||
3214 | fi | |
3215 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
3216 | cat >> confdefs.h <<\EOF | |
3217 | #define HAVE_STPCPY 1 | |
3218 | EOF | |
3219 | ||
3220 | fi | |
3221 | ||
3222 | if test $ac_cv_header_locale_h = yes; then | |
3223 | echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 | |
a2d91340 | 3224 | echo "configure:3225: checking for LC_MESSAGES" >&5 |
252b5132 RH |
3225 | if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then |
3226 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3227 | else | |
3228 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3229 | #line 3230 "configure" |
252b5132 RH |
3230 | #include "confdefs.h" |
3231 | #include <locale.h> | |
3232 | int main() { | |
3233 | return LC_MESSAGES | |
3234 | ; return 0; } | |
3235 | EOF | |
a2d91340 | 3236 | if { (eval echo configure:3237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3237 | rm -rf conftest* |
3238 | am_cv_val_LC_MESSAGES=yes | |
3239 | else | |
3240 | echo "configure: failed program was:" >&5 | |
3241 | cat conftest.$ac_ext >&5 | |
3242 | rm -rf conftest* | |
3243 | am_cv_val_LC_MESSAGES=no | |
3244 | fi | |
3245 | rm -f conftest* | |
3246 | fi | |
3247 | ||
3248 | echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6 | |
3249 | if test $am_cv_val_LC_MESSAGES = yes; then | |
3250 | cat >> confdefs.h <<\EOF | |
3251 | #define HAVE_LC_MESSAGES 1 | |
3252 | EOF | |
3253 | ||
3254 | fi | |
3255 | fi | |
3256 | echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 | |
a2d91340 | 3257 | echo "configure:3258: checking whether NLS is requested" >&5 |
252b5132 RH |
3258 | # Check whether --enable-nls or --disable-nls was given. |
3259 | if test "${enable_nls+set}" = set; then | |
3260 | enableval="$enable_nls" | |
3261 | USE_NLS=$enableval | |
3262 | else | |
3263 | USE_NLS=yes | |
3264 | fi | |
3265 | ||
3266 | echo "$ac_t""$USE_NLS" 1>&6 | |
3267 | ||
3268 | ||
3269 | USE_INCLUDED_LIBINTL=no | |
3270 | ||
3271 | if test "$USE_NLS" = "yes"; then | |
3272 | cat >> confdefs.h <<\EOF | |
3273 | #define ENABLE_NLS 1 | |
3274 | EOF | |
3275 | ||
3276 | echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 | |
a2d91340 | 3277 | echo "configure:3278: checking whether included gettext is requested" >&5 |
252b5132 RH |
3278 | # Check whether --with-included-gettext or --without-included-gettext was given. |
3279 | if test "${with_included_gettext+set}" = set; then | |
3280 | withval="$with_included_gettext" | |
3281 | nls_cv_force_use_gnu_gettext=$withval | |
3282 | else | |
3283 | nls_cv_force_use_gnu_gettext=no | |
3284 | fi | |
3285 | ||
3286 | echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6 | |
3287 | ||
3288 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
3289 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
3290 | nls_cv_header_intl= | |
3291 | nls_cv_header_libgt= | |
3292 | CATOBJEXT=NONE | |
3293 | ||
3294 | ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` | |
3295 | echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 | |
a2d91340 | 3296 | echo "configure:3297: checking for libintl.h" >&5 |
252b5132 RH |
3297 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3298 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3299 | else | |
3300 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3301 | #line 3302 "configure" |
252b5132 RH |
3302 | #include "confdefs.h" |
3303 | #include <libintl.h> | |
3304 | EOF | |
3305 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 3306 | { (eval echo configure:3307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3307 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3308 | if test -z "$ac_err"; then | |
3309 | rm -rf conftest* | |
3310 | eval "ac_cv_header_$ac_safe=yes" | |
3311 | else | |
3312 | echo "$ac_err" >&5 | |
3313 | echo "configure: failed program was:" >&5 | |
3314 | cat conftest.$ac_ext >&5 | |
3315 | rm -rf conftest* | |
3316 | eval "ac_cv_header_$ac_safe=no" | |
3317 | fi | |
3318 | rm -f conftest* | |
3319 | fi | |
3320 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3321 | echo "$ac_t""yes" 1>&6 | |
3322 | echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6 | |
a2d91340 | 3323 | echo "configure:3324: checking for gettext in libc" >&5 |
252b5132 RH |
3324 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then |
3325 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3326 | else | |
3327 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3328 | #line 3329 "configure" |
252b5132 RH |
3329 | #include "confdefs.h" |
3330 | #include <libintl.h> | |
3331 | int main() { | |
3332 | return (int) gettext ("") | |
3333 | ; return 0; } | |
3334 | EOF | |
a2d91340 | 3335 | if { (eval echo configure:3336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3336 | rm -rf conftest* |
3337 | gt_cv_func_gettext_libc=yes | |
3338 | else | |
3339 | echo "configure: failed program was:" >&5 | |
3340 | cat conftest.$ac_ext >&5 | |
3341 | rm -rf conftest* | |
3342 | gt_cv_func_gettext_libc=no | |
3343 | fi | |
3344 | rm -f conftest* | |
3345 | fi | |
3346 | ||
3347 | echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6 | |
3348 | ||
3349 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
3350 | echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6 | |
a2d91340 | 3351 | echo "configure:3352: checking for bindtextdomain in -lintl" >&5 |
252b5132 RH |
3352 | ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'` |
3353 | if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then | |
3354 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3355 | else | |
3356 | ac_save_LIBS="$LIBS" | |
3357 | LIBS="-lintl $LIBS" | |
3358 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3359 | #line 3360 "configure" |
252b5132 RH |
3360 | #include "confdefs.h" |
3361 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3362 | /* We use char because int might match the return type of a gcc2 | |
3363 | builtin and then its argument prototype would still apply. */ | |
3364 | char bindtextdomain(); | |
3365 | ||
3366 | int main() { | |
3367 | bindtextdomain() | |
3368 | ; return 0; } | |
3369 | EOF | |
a2d91340 | 3370 | if { (eval echo configure:3371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3371 | rm -rf conftest* |
3372 | eval "ac_cv_lib_$ac_lib_var=yes" | |
3373 | else | |
3374 | echo "configure: failed program was:" >&5 | |
3375 | cat conftest.$ac_ext >&5 | |
3376 | rm -rf conftest* | |
3377 | eval "ac_cv_lib_$ac_lib_var=no" | |
3378 | fi | |
3379 | rm -f conftest* | |
3380 | LIBS="$ac_save_LIBS" | |
3381 | ||
3382 | fi | |
3383 | if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then | |
3384 | echo "$ac_t""yes" 1>&6 | |
3385 | echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6 | |
a2d91340 | 3386 | echo "configure:3387: checking for gettext in libintl" >&5 |
252b5132 RH |
3387 | if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then |
3388 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3389 | else | |
3390 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3391 | #line 3392 "configure" |
252b5132 RH |
3392 | #include "confdefs.h" |
3393 | ||
3394 | int main() { | |
3395 | return (int) gettext ("") | |
3396 | ; return 0; } | |
3397 | EOF | |
a2d91340 | 3398 | if { (eval echo configure:3399: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3399 | rm -rf conftest* |
3400 | gt_cv_func_gettext_libintl=yes | |
3401 | else | |
3402 | echo "configure: failed program was:" >&5 | |
3403 | cat conftest.$ac_ext >&5 | |
3404 | rm -rf conftest* | |
3405 | gt_cv_func_gettext_libintl=no | |
3406 | fi | |
3407 | rm -f conftest* | |
3408 | fi | |
3409 | ||
3410 | echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6 | |
3411 | else | |
3412 | echo "$ac_t""no" 1>&6 | |
3413 | fi | |
3414 | ||
3415 | fi | |
3416 | ||
3417 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
3418 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
3419 | cat >> confdefs.h <<\EOF | |
3420 | #define HAVE_GETTEXT 1 | |
3421 | EOF | |
3422 | ||
3423 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3424 | set dummy msgfmt; ac_word=$2 | |
3425 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3426 | echo "configure:3427: checking for $ac_word" >&5 |
252b5132 RH |
3427 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
3428 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3429 | else | |
3430 | case "$MSGFMT" in | |
3431 | /*) | |
3432 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3433 | ;; | |
3434 | *) | |
3435 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3436 | for ac_dir in $PATH; do | |
3437 | test -z "$ac_dir" && ac_dir=. | |
3438 | if test -f $ac_dir/$ac_word; then | |
3439 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3440 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3441 | break | |
3442 | fi | |
3443 | fi | |
3444 | done | |
3445 | IFS="$ac_save_ifs" | |
3446 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
3447 | ;; | |
3448 | esac | |
3449 | fi | |
3450 | MSGFMT="$ac_cv_path_MSGFMT" | |
3451 | if test -n "$MSGFMT"; then | |
3452 | echo "$ac_t""$MSGFMT" 1>&6 | |
3453 | else | |
3454 | echo "$ac_t""no" 1>&6 | |
3455 | fi | |
3456 | if test "$MSGFMT" != "no"; then | |
3457 | for ac_func in dcgettext | |
3458 | do | |
3459 | echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 | |
a2d91340 | 3460 | echo "configure:3461: checking for $ac_func" >&5 |
252b5132 RH |
3461 | if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then |
3462 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3463 | else | |
3464 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3465 | #line 3466 "configure" |
252b5132 RH |
3466 | #include "confdefs.h" |
3467 | /* System header to define __stub macros and hopefully few prototypes, | |
3468 | which can conflict with char $ac_func(); below. */ | |
3469 | #include <assert.h> | |
3470 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3471 | /* We use char because int might match the return type of a gcc2 | |
3472 | builtin and then its argument prototype would still apply. */ | |
3473 | char $ac_func(); | |
3474 | ||
3475 | int main() { | |
3476 | ||
3477 | /* The GNU C library defines this for functions which it implements | |
3478 | to always fail with ENOSYS. Some functions are actually named | |
3479 | something starting with __ and the normal name is an alias. */ | |
3480 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3481 | choke me | |
3482 | #else | |
3483 | $ac_func(); | |
3484 | #endif | |
3485 | ||
3486 | ; return 0; } | |
3487 | EOF | |
a2d91340 | 3488 | if { (eval echo configure:3489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3489 | rm -rf conftest* |
3490 | eval "ac_cv_func_$ac_func=yes" | |
3491 | else | |
3492 | echo "configure: failed program was:" >&5 | |
3493 | cat conftest.$ac_ext >&5 | |
3494 | rm -rf conftest* | |
3495 | eval "ac_cv_func_$ac_func=no" | |
3496 | fi | |
3497 | rm -f conftest* | |
3498 | fi | |
3499 | ||
3500 | if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then | |
3501 | echo "$ac_t""yes" 1>&6 | |
3502 | ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` | |
3503 | cat >> confdefs.h <<EOF | |
3504 | #define $ac_tr_func 1 | |
3505 | EOF | |
3506 | ||
3507 | else | |
3508 | echo "$ac_t""no" 1>&6 | |
3509 | fi | |
3510 | done | |
3511 | ||
3512 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3513 | set dummy gmsgfmt; ac_word=$2 | |
3514 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3515 | echo "configure:3516: checking for $ac_word" >&5 |
252b5132 RH |
3516 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3517 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3518 | else | |
3519 | case "$GMSGFMT" in | |
3520 | /*) | |
3521 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3522 | ;; | |
3523 | ?:/*) | |
3524 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3525 | ;; | |
3526 | *) | |
3527 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3528 | ac_dummy="$PATH" | |
3529 | for ac_dir in $ac_dummy; do | |
3530 | test -z "$ac_dir" && ac_dir=. | |
3531 | if test -f $ac_dir/$ac_word; then | |
3532 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3533 | break | |
3534 | fi | |
3535 | done | |
3536 | IFS="$ac_save_ifs" | |
3537 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3538 | ;; | |
3539 | esac | |
3540 | fi | |
3541 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3542 | if test -n "$GMSGFMT"; then | |
3543 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3544 | else | |
3545 | echo "$ac_t""no" 1>&6 | |
3546 | fi | |
3547 | ||
3548 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3549 | set dummy xgettext; ac_word=$2 | |
3550 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3551 | echo "configure:3552: checking for $ac_word" >&5 |
252b5132 RH |
3552 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3553 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3554 | else | |
3555 | case "$XGETTEXT" in | |
3556 | /*) | |
3557 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3558 | ;; | |
3559 | *) | |
3560 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3561 | for ac_dir in $PATH; do | |
3562 | test -z "$ac_dir" && ac_dir=. | |
3563 | if test -f $ac_dir/$ac_word; then | |
3564 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3565 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3566 | break | |
3567 | fi | |
3568 | fi | |
3569 | done | |
3570 | IFS="$ac_save_ifs" | |
3571 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3572 | ;; | |
3573 | esac | |
3574 | fi | |
3575 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3576 | if test -n "$XGETTEXT"; then | |
3577 | echo "$ac_t""$XGETTEXT" 1>&6 | |
3578 | else | |
3579 | echo "$ac_t""no" 1>&6 | |
3580 | fi | |
3581 | ||
3582 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3583 | #line 3584 "configure" |
252b5132 RH |
3584 | #include "confdefs.h" |
3585 | ||
3586 | int main() { | |
3587 | extern int _nl_msg_cat_cntr; | |
3588 | return _nl_msg_cat_cntr | |
3589 | ; return 0; } | |
3590 | EOF | |
a2d91340 | 3591 | if { (eval echo configure:3592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then |
252b5132 RH |
3592 | rm -rf conftest* |
3593 | CATOBJEXT=.gmo | |
3594 | DATADIRNAME=share | |
3595 | else | |
3596 | echo "configure: failed program was:" >&5 | |
3597 | cat conftest.$ac_ext >&5 | |
3598 | rm -rf conftest* | |
3599 | CATOBJEXT=.mo | |
3600 | DATADIRNAME=lib | |
3601 | fi | |
3602 | rm -f conftest* | |
3603 | INSTOBJEXT=.mo | |
3604 | fi | |
3605 | fi | |
3606 | ||
3607 | else | |
3608 | echo "$ac_t""no" 1>&6 | |
3609 | fi | |
3610 | ||
3611 | ||
3612 | ||
3613 | if test "$CATOBJEXT" = "NONE"; then | |
3614 | nls_cv_use_gnu_gettext=yes | |
3615 | fi | |
3616 | fi | |
3617 | ||
3618 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
3619 | INTLOBJS="\$(GETTOBJS)" | |
3620 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
3621 | set dummy msgfmt; ac_word=$2 | |
3622 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3623 | echo "configure:3624: checking for $ac_word" >&5 |
252b5132 RH |
3624 | if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then |
3625 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3626 | else | |
3627 | case "$MSGFMT" in | |
3628 | /*) | |
3629 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
3630 | ;; | |
3631 | *) | |
3632 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3633 | for ac_dir in $PATH; do | |
3634 | test -z "$ac_dir" && ac_dir=. | |
3635 | if test -f $ac_dir/$ac_word; then | |
3636 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
3637 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
3638 | break | |
3639 | fi | |
3640 | fi | |
3641 | done | |
3642 | IFS="$ac_save_ifs" | |
3643 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
3644 | ;; | |
3645 | esac | |
3646 | fi | |
3647 | MSGFMT="$ac_cv_path_MSGFMT" | |
3648 | if test -n "$MSGFMT"; then | |
3649 | echo "$ac_t""$MSGFMT" 1>&6 | |
3650 | else | |
3651 | echo "$ac_t""no" 1>&6 | |
3652 | fi | |
3653 | ||
3654 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
3655 | set dummy gmsgfmt; ac_word=$2 | |
3656 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3657 | echo "configure:3658: checking for $ac_word" >&5 |
252b5132 RH |
3658 | if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then |
3659 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3660 | else | |
3661 | case "$GMSGFMT" in | |
3662 | /*) | |
3663 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
3664 | ;; | |
3665 | ?:/*) | |
3666 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path. | |
3667 | ;; | |
3668 | *) | |
3669 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" | |
3670 | ac_dummy="$PATH" | |
3671 | for ac_dir in $ac_dummy; do | |
3672 | test -z "$ac_dir" && ac_dir=. | |
3673 | if test -f $ac_dir/$ac_word; then | |
3674 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
3675 | break | |
3676 | fi | |
3677 | done | |
3678 | IFS="$ac_save_ifs" | |
3679 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" | |
3680 | ;; | |
3681 | esac | |
3682 | fi | |
3683 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
3684 | if test -n "$GMSGFMT"; then | |
3685 | echo "$ac_t""$GMSGFMT" 1>&6 | |
3686 | else | |
3687 | echo "$ac_t""no" 1>&6 | |
3688 | fi | |
3689 | ||
3690 | # Extract the first word of "xgettext", so it can be a program name with args. | |
3691 | set dummy xgettext; ac_word=$2 | |
3692 | echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 | |
a2d91340 | 3693 | echo "configure:3694: checking for $ac_word" >&5 |
252b5132 RH |
3694 | if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then |
3695 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3696 | else | |
3697 | case "$XGETTEXT" in | |
3698 | /*) | |
3699 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
3700 | ;; | |
3701 | *) | |
3702 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
3703 | for ac_dir in $PATH; do | |
3704 | test -z "$ac_dir" && ac_dir=. | |
3705 | if test -f $ac_dir/$ac_word; then | |
3706 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
3707 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
3708 | break | |
3709 | fi | |
3710 | fi | |
3711 | done | |
3712 | IFS="$ac_save_ifs" | |
3713 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
3714 | ;; | |
3715 | esac | |
3716 | fi | |
3717 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
3718 | if test -n "$XGETTEXT"; then | |
3719 | echo "$ac_t""$XGETTEXT" 1>&6 | |
3720 | else | |
3721 | echo "$ac_t""no" 1>&6 | |
3722 | fi | |
3723 | ||
3724 | ||
3725 | USE_INCLUDED_LIBINTL=yes | |
3726 | CATOBJEXT=.gmo | |
3727 | INSTOBJEXT=.mo | |
3728 | DATADIRNAME=share | |
3729 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
3730 | INTLLIBS=$INTLDEPS | |
3731 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
3732 | nls_cv_header_intl=libintl.h | |
3733 | nls_cv_header_libgt=libgettext.h | |
3734 | fi | |
3735 | ||
3736 | if test "$XGETTEXT" != ":"; then | |
3737 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
3738 | : ; | |
3739 | else | |
3740 | echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6 | |
3741 | XGETTEXT=":" | |
3742 | fi | |
3743 | fi | |
3744 | ||
3745 | # We need to process the po/ directory. | |
3746 | POSUB=po | |
3747 | else | |
3748 | DATADIRNAME=share | |
3749 | nls_cv_header_intl=libintl.h | |
3750 | nls_cv_header_libgt=libgettext.h | |
3751 | fi | |
3752 | ||
3753 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
3754 | # because some of the sources are only built for this goal. | |
3755 | if test "$PACKAGE" = gettext; then | |
3756 | USE_NLS=yes | |
3757 | USE_INCLUDED_LIBINTL=yes | |
3758 | fi | |
3759 | ||
3760 | for lang in $ALL_LINGUAS; do | |
3761 | GMOFILES="$GMOFILES $lang.gmo" | |
3762 | POFILES="$POFILES $lang.po" | |
3763 | done | |
3764 | ||
3765 | ||
3766 | ||
3767 | ||
3768 | ||
3769 | ||
3770 | ||
3771 | ||
3772 | ||
3773 | ||
3774 | ||
3775 | ||
3776 | ||
3777 | ||
3778 | if test "x$CATOBJEXT" != "x"; then | |
3779 | if test "x$ALL_LINGUAS" = "x"; then | |
3780 | LINGUAS= | |
3781 | else | |
3782 | echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 | |
a2d91340 | 3783 | echo "configure:3784: checking for catalogs to be installed" >&5 |
252b5132 RH |
3784 | NEW_LINGUAS= |
3785 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
3786 | case "$ALL_LINGUAS" in | |
3787 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
3788 | esac | |
3789 | done | |
3790 | LINGUAS=$NEW_LINGUAS | |
3791 | echo "$ac_t""$LINGUAS" 1>&6 | |
3792 | fi | |
3793 | ||
3794 | if test -n "$LINGUAS"; then | |
3795 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
3796 | fi | |
3797 | fi | |
3798 | ||
3799 | if test $ac_cv_header_locale_h = yes; then | |
3800 | INCLUDE_LOCALE_H="#include <locale.h>" | |
3801 | else | |
3802 | INCLUDE_LOCALE_H="\ | |
3803 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
3804 | fi | |
3805 | ||
3806 | ||
3807 | if test -f $srcdir/po2tbl.sed.in; then | |
3808 | if test "$CATOBJEXT" = ".cat"; then | |
3809 | ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'` | |
3810 | echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6 | |
a2d91340 | 3811 | echo "configure:3812: checking for linux/version.h" >&5 |
252b5132 RH |
3812 | if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then |
3813 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3814 | else | |
3815 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3816 | #line 3817 "configure" |
252b5132 RH |
3817 | #include "confdefs.h" |
3818 | #include <linux/version.h> | |
3819 | EOF | |
3820 | ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" | |
a2d91340 | 3821 | { (eval echo configure:3822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } |
252b5132 RH |
3822 | ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` |
3823 | if test -z "$ac_err"; then | |
3824 | rm -rf conftest* | |
3825 | eval "ac_cv_header_$ac_safe=yes" | |
3826 | else | |
3827 | echo "$ac_err" >&5 | |
3828 | echo "configure: failed program was:" >&5 | |
3829 | cat conftest.$ac_ext >&5 | |
3830 | rm -rf conftest* | |
3831 | eval "ac_cv_header_$ac_safe=no" | |
3832 | fi | |
3833 | rm -f conftest* | |
3834 | fi | |
3835 | if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then | |
3836 | echo "$ac_t""yes" 1>&6 | |
3837 | msgformat=linux | |
3838 | else | |
3839 | echo "$ac_t""no" 1>&6 | |
3840 | msgformat=xopen | |
3841 | fi | |
3842 | ||
3843 | ||
3844 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed | |
3845 | fi | |
3846 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
3847 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
3848 | fi | |
3849 | ||
3850 | if test "$PACKAGE" = "gettext"; then | |
3851 | GT_NO="#NO#" | |
3852 | GT_YES= | |
3853 | else | |
3854 | GT_NO= | |
3855 | GT_YES="#YES#" | |
3856 | fi | |
3857 | ||
3858 | ||
3859 | ||
3860 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
3861 | ||
3862 | ||
3863 | l= | |
3864 | ||
3865 | ||
3866 | if test -d $srcdir/po; then | |
3867 | test -d po || mkdir po | |
3868 | if test "x$srcdir" != "x."; then | |
3869 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
3870 | posrcprefix="$srcdir/" | |
3871 | else | |
3872 | posrcprefix="../$srcdir/" | |
3873 | fi | |
3874 | else | |
3875 | posrcprefix="../" | |
3876 | fi | |
3877 | rm -f po/POTFILES | |
3878 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
3879 | < $srcdir/po/POTFILES.in > po/POTFILES | |
3880 | fi | |
3881 | ||
3882 | ||
3883 | echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 | |
a2d91340 | 3884 | echo "configure:3885: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
252b5132 RH |
3885 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
3886 | if test "${enable_maintainer_mode+set}" = set; then | |
3887 | enableval="$enable_maintainer_mode" | |
3888 | USE_MAINTAINER_MODE=$enableval | |
3889 | else | |
3890 | USE_MAINTAINER_MODE=no | |
3891 | fi | |
3892 | ||
3893 | echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6 | |
3894 | ||
3895 | ||
3896 | if test $USE_MAINTAINER_MODE = yes; then | |
3897 | MAINTAINER_MODE_TRUE= | |
3898 | MAINTAINER_MODE_FALSE='#' | |
3899 | else | |
3900 | MAINTAINER_MODE_TRUE='#' | |
3901 | MAINTAINER_MODE_FALSE= | |
3902 | fi | |
3903 | MAINT=$MAINTAINER_MODE_TRUE | |
3904 | ||
3905 | ||
3906 | echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 | |
a2d91340 | 3907 | echo "configure:3908: checking for Cygwin environment" >&5 |
252b5132 RH |
3908 | if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then |
3909 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3910 | else | |
3911 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3912 | #line 3913 "configure" |
252b5132 RH |
3913 | #include "confdefs.h" |
3914 | ||
3915 | int main() { | |
3916 | ||
3917 | #ifndef __CYGWIN__ | |
3918 | #define __CYGWIN__ __CYGWIN32__ | |
3919 | #endif | |
3920 | return __CYGWIN__; | |
3921 | ; return 0; } | |
3922 | EOF | |
a2d91340 | 3923 | if { (eval echo configure:3924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
3924 | rm -rf conftest* |
3925 | ac_cv_cygwin=yes | |
3926 | else | |
3927 | echo "configure: failed program was:" >&5 | |
3928 | cat conftest.$ac_ext >&5 | |
3929 | rm -rf conftest* | |
3930 | ac_cv_cygwin=no | |
3931 | fi | |
3932 | rm -f conftest* | |
3933 | rm -f conftest* | |
3934 | fi | |
3935 | ||
3936 | echo "$ac_t""$ac_cv_cygwin" 1>&6 | |
3937 | CYGWIN= | |
3938 | test "$ac_cv_cygwin" = yes && CYGWIN=yes | |
3939 | echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 | |
a2d91340 | 3940 | echo "configure:3941: checking for mingw32 environment" >&5 |
252b5132 RH |
3941 | if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then |
3942 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3943 | else | |
3944 | cat > conftest.$ac_ext <<EOF | |
a2d91340 | 3945 | #line 3946 "configure" |
252b5132 RH |
3946 | #include "confdefs.h" |
3947 | ||
3948 | int main() { | |
3949 | return __MINGW32__; | |
3950 | ; return 0; } | |
3951 | EOF | |
a2d91340 | 3952 | if { (eval echo configure:3953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then |
252b5132 RH |
3953 | rm -rf conftest* |
3954 | ac_cv_mingw32=yes | |
3955 | else | |
3956 | echo "configure: failed program was:" >&5 | |
3957 | cat conftest.$ac_ext >&5 | |
3958 | rm -rf conftest* | |
3959 | ac_cv_mingw32=no | |
3960 | fi | |
3961 | rm -f conftest* | |
3962 | rm -f conftest* | |
3963 | fi | |
3964 | ||
3965 | echo "$ac_t""$ac_cv_mingw32" 1>&6 | |
3966 | MINGW32= | |
3967 | test "$ac_cv_mingw32" = yes && MINGW32=yes | |
3968 | ||
3969 | ||
3970 | echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 | |
a2d91340 | 3971 | echo "configure:3972: checking for executable suffix" >&5 |
252b5132 RH |
3972 | if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then |
3973 | echo $ac_n "(cached) $ac_c" 1>&6 | |
3974 | else | |
3975 | if test "$CYGWIN" = yes || test "$MINGW32" = yes; then | |
3976 | ac_cv_exeext=.exe | |
3977 | else | |
3978 | rm -f conftest* | |
3979 | echo 'int main () { return 0; }' > conftest.$ac_ext | |
3980 | ac_cv_exeext= | |
a2d91340 | 3981 | if { (eval echo configure:3982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then |
252b5132 RH |
3982 | for file in conftest.*; do |
3983 | case $file in | |
3984 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
3985 | *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;; | |
3986 | esac | |
3987 | done | |
3988 | else | |
3989 | { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; } | |
3990 | fi | |
3991 | rm -f conftest* | |
3992 | test x"${ac_cv_exeext}" = x && ac_cv_exeext=no | |
3993 | fi | |
3994 | fi | |
3995 | ||
3996 | EXEEXT="" | |
3997 | test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext} | |
3998 | echo "$ac_t""${ac_cv_exeext}" 1>&6 | |
3999 | ac_exeext=$EXEEXT | |
4000 | ||
4001 | ||
a2d91340 AC |
4002 | build_warnings="-W -Wall" |
4003 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
4004 | if test "${enable_build_warnings+set}" = set; then | |
4005 | enableval="$enable_build_warnings" | |
4006 | case "${enableval}" in | |
4007 | yes) ;; | |
4008 | no) build_warnings="-w";; | |
4009 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4010 | build_warnings="${build_warnings} ${t}";; | |
4011 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
4012 | build_warnings="${t} ${build_warnings}";; | |
4013 | *) build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
4014 | esac | |
4015 | if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then | |
4016 | echo "Setting warning flags = $build_warnings" 6>&1 | |
4017 | fi | |
4018 | fi | |
4019 | WARN_CFLAGS="" | |
4020 | if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then | |
4021 | WARN_CFLAGS="${build_warnings}" | |
4022 | fi | |
4023 | ||
4024 | ||
252b5132 RH |
4025 | trap '' 1 2 15 |
4026 | cat > confcache <<\EOF | |
4027 | # This file is a shell script that caches the results of configure | |
4028 | # tests run on this system so they can be shared between configure | |
4029 | # scripts and configure runs. It is not useful on other systems. | |
4030 | # If it contains results you don't want to keep, you may remove or edit it. | |
4031 | # | |
4032 | # By default, configure uses ./config.cache as the cache file, | |
4033 | # creating it if it does not exist already. You can give configure | |
4034 | # the --cache-file=FILE option to use a different cache file; that is | |
4035 | # what configure does when it calls configure scripts in | |
4036 | # subdirectories, so they share the cache. | |
4037 | # Giving --cache-file=/dev/null disables caching, for debugging configure. | |
4038 | # config.status only pays attention to the cache file if you give it the | |
4039 | # --recheck option to rerun configure. | |
4040 | # | |
4041 | EOF | |
4042 | # The following way of writing the cache mishandles newlines in values, | |
4043 | # but we know of no workaround that is simple, portable, and efficient. | |
4044 | # So, don't put newlines in cache variables' values. | |
4045 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4046 | # and sets the high bit in the cache file unless we assign to the vars. | |
4047 | (set) 2>&1 | | |
4048 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4049 | *ac_space=\ *) | |
4050 | # `set' does not quote correctly, so add quotes (double-quote substitution | |
4051 | # turns \\\\ into \\, and sed turns \\ into \). | |
4052 | sed -n \ | |
4053 | -e "s/'/'\\\\''/g" \ | |
4054 | -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p" | |
4055 | ;; | |
4056 | *) | |
4057 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4058 | sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p' | |
4059 | ;; | |
4060 | esac >> confcache | |
4061 | if cmp -s $cache_file confcache; then | |
4062 | : | |
4063 | else | |
4064 | if test -w $cache_file; then | |
4065 | echo "updating cache $cache_file" | |
4066 | cat confcache > $cache_file | |
4067 | else | |
4068 | echo "not updating unwritable cache $cache_file" | |
4069 | fi | |
4070 | fi | |
4071 | rm -f confcache | |
4072 | ||
4073 | trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15 | |
4074 | ||
4075 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
4076 | # Let make expand exec_prefix. | |
4077 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
4078 | ||
4079 | # Any assignment to VPATH causes Sun make to only execute | |
4080 | # the first set of double-colon rules, so remove it if not needed. | |
4081 | # If there is a colon in the path, we need to keep it. | |
4082 | if test "x$srcdir" = x.; then | |
4083 | ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d' | |
4084 | fi | |
4085 | ||
4086 | trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15 | |
4087 | ||
4088 | DEFS=-DHAVE_CONFIG_H | |
4089 | ||
4090 | # Without the "./", some shells look in PATH for config.status. | |
4091 | : ${CONFIG_STATUS=./config.status} | |
4092 | ||
4093 | echo creating $CONFIG_STATUS | |
4094 | rm -f $CONFIG_STATUS | |
4095 | cat > $CONFIG_STATUS <<EOF | |
4096 | #! /bin/sh | |
4097 | # Generated automatically by configure. | |
4098 | # Run this file to recreate the current configuration. | |
4099 | # This directory was configured as follows, | |
4100 | # on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
4101 | # | |
4102 | # $0 $ac_configure_args | |
4103 | # | |
4104 | # Compiler output produced by configure, useful for debugging | |
4105 | # configure, is in ./config.log if it exists. | |
4106 | ||
4107 | ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]" | |
4108 | for ac_option | |
4109 | do | |
4110 | case "\$ac_option" in | |
4111 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
4112 | echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion" | |
4113 | exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;; | |
4114 | -version | --version | --versio | --versi | --vers | --ver | --ve | --v) | |
4115 | echo "$CONFIG_STATUS generated by autoconf version 2.13" | |
4116 | exit 0 ;; | |
4117 | -help | --help | --hel | --he | --h) | |
4118 | echo "\$ac_cs_usage"; exit 0 ;; | |
4119 | *) echo "\$ac_cs_usage"; exit 1 ;; | |
4120 | esac | |
4121 | done | |
4122 | ||
4123 | ac_given_srcdir=$srcdir | |
4124 | ac_given_INSTALL="$INSTALL" | |
4125 | ||
4126 | trap 'rm -fr `echo "Makefile po/Makefile.in:po/Make-in gconfig.h:gconfig.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15 | |
4127 | EOF | |
4128 | cat >> $CONFIG_STATUS <<EOF | |
4129 | ||
4130 | # Protect against being on the right side of a sed subst in config.status. | |
4131 | sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g; | |
4132 | s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF | |
4133 | $ac_vpsub | |
4134 | $extrasub | |
4135 | s%@SHELL@%$SHELL%g | |
4136 | s%@CFLAGS@%$CFLAGS%g | |
4137 | s%@CPPFLAGS@%$CPPFLAGS%g | |
4138 | s%@CXXFLAGS@%$CXXFLAGS%g | |
4139 | s%@FFLAGS@%$FFLAGS%g | |
4140 | s%@DEFS@%$DEFS%g | |
4141 | s%@LDFLAGS@%$LDFLAGS%g | |
4142 | s%@LIBS@%$LIBS%g | |
4143 | s%@exec_prefix@%$exec_prefix%g | |
4144 | s%@prefix@%$prefix%g | |
4145 | s%@program_transform_name@%$program_transform_name%g | |
4146 | s%@bindir@%$bindir%g | |
4147 | s%@sbindir@%$sbindir%g | |
4148 | s%@libexecdir@%$libexecdir%g | |
4149 | s%@datadir@%$datadir%g | |
4150 | s%@sysconfdir@%$sysconfdir%g | |
4151 | s%@sharedstatedir@%$sharedstatedir%g | |
4152 | s%@localstatedir@%$localstatedir%g | |
4153 | s%@libdir@%$libdir%g | |
4154 | s%@includedir@%$includedir%g | |
4155 | s%@oldincludedir@%$oldincludedir%g | |
4156 | s%@infodir@%$infodir%g | |
4157 | s%@mandir@%$mandir%g | |
4158 | s%@host@%$host%g | |
4159 | s%@host_alias@%$host_alias%g | |
4160 | s%@host_cpu@%$host_cpu%g | |
4161 | s%@host_vendor@%$host_vendor%g | |
4162 | s%@host_os@%$host_os%g | |
4163 | s%@target@%$target%g | |
4164 | s%@target_alias@%$target_alias%g | |
4165 | s%@target_cpu@%$target_cpu%g | |
4166 | s%@target_vendor@%$target_vendor%g | |
4167 | s%@target_os@%$target_os%g | |
4168 | s%@build@%$build%g | |
4169 | s%@build_alias@%$build_alias%g | |
4170 | s%@build_cpu@%$build_cpu%g | |
4171 | s%@build_vendor@%$build_vendor%g | |
4172 | s%@build_os@%$build_os%g | |
4173 | s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g | |
4174 | s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g | |
4175 | s%@INSTALL_DATA@%$INSTALL_DATA%g | |
4176 | s%@PACKAGE@%$PACKAGE%g | |
4177 | s%@VERSION@%$VERSION%g | |
4178 | s%@ACLOCAL@%$ACLOCAL%g | |
4179 | s%@AUTOCONF@%$AUTOCONF%g | |
4180 | s%@AUTOMAKE@%$AUTOMAKE%g | |
4181 | s%@AUTOHEADER@%$AUTOHEADER%g | |
4182 | s%@MAKEINFO@%$MAKEINFO%g | |
4183 | s%@SET_MAKE@%$SET_MAKE%g | |
4184 | s%@RANLIB@%$RANLIB%g | |
4185 | s%@CC@%$CC%g | |
4186 | s%@LD@%$LD%g | |
4187 | s%@NM@%$NM%g | |
4188 | s%@USE_SYMBOL_UNDERSCORE@%$USE_SYMBOL_UNDERSCORE%g | |
4189 | s%@LN_S@%$LN_S%g | |
4190 | s%@DLLTOOL@%$DLLTOOL%g | |
4191 | s%@AS@%$AS%g | |
4192 | s%@LIBTOOL@%$LIBTOOL%g | |
4193 | s%@CPP@%$CPP%g | |
4194 | s%@ALLOCA@%$ALLOCA%g | |
4195 | s%@USE_NLS@%$USE_NLS%g | |
4196 | s%@MSGFMT@%$MSGFMT%g | |
4197 | s%@GMSGFMT@%$GMSGFMT%g | |
4198 | s%@XGETTEXT@%$XGETTEXT%g | |
4199 | s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g | |
4200 | s%@CATALOGS@%$CATALOGS%g | |
4201 | s%@CATOBJEXT@%$CATOBJEXT%g | |
4202 | s%@DATADIRNAME@%$DATADIRNAME%g | |
4203 | s%@GMOFILES@%$GMOFILES%g | |
4204 | s%@INSTOBJEXT@%$INSTOBJEXT%g | |
4205 | s%@INTLDEPS@%$INTLDEPS%g | |
4206 | s%@INTLLIBS@%$INTLLIBS%g | |
4207 | s%@INTLOBJS@%$INTLOBJS%g | |
4208 | s%@POFILES@%$POFILES%g | |
4209 | s%@POSUB@%$POSUB%g | |
4210 | s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g | |
4211 | s%@GT_NO@%$GT_NO%g | |
4212 | s%@GT_YES@%$GT_YES%g | |
4213 | s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g | |
4214 | s%@l@%$l%g | |
4215 | s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g | |
4216 | s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g | |
4217 | s%@MAINT@%$MAINT%g | |
4218 | s%@EXEEXT@%$EXEEXT%g | |
a2d91340 | 4219 | s%@WARN_CFLAGS@%$WARN_CFLAGS%g |
252b5132 RH |
4220 | |
4221 | CEOF | |
4222 | EOF | |
4223 | ||
4224 | cat >> $CONFIG_STATUS <<\EOF | |
4225 | ||
4226 | # Split the substitutions into bite-sized pieces for seds with | |
4227 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
4228 | ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script. | |
4229 | ac_file=1 # Number of current file. | |
4230 | ac_beg=1 # First line for current file. | |
4231 | ac_end=$ac_max_sed_cmds # Line after last line for current file. | |
4232 | ac_more_lines=: | |
4233 | ac_sed_cmds="" | |
4234 | while $ac_more_lines; do | |
4235 | if test $ac_beg -gt 1; then | |
4236 | sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file | |
4237 | else | |
4238 | sed "${ac_end}q" conftest.subs > conftest.s$ac_file | |
4239 | fi | |
4240 | if test ! -s conftest.s$ac_file; then | |
4241 | ac_more_lines=false | |
4242 | rm -f conftest.s$ac_file | |
4243 | else | |
4244 | if test -z "$ac_sed_cmds"; then | |
4245 | ac_sed_cmds="sed -f conftest.s$ac_file" | |
4246 | else | |
4247 | ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file" | |
4248 | fi | |
4249 | ac_file=`expr $ac_file + 1` | |
4250 | ac_beg=$ac_end | |
4251 | ac_end=`expr $ac_end + $ac_max_sed_cmds` | |
4252 | fi | |
4253 | done | |
4254 | if test -z "$ac_sed_cmds"; then | |
4255 | ac_sed_cmds=cat | |
4256 | fi | |
4257 | EOF | |
4258 | ||
4259 | cat >> $CONFIG_STATUS <<EOF | |
4260 | ||
4261 | CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile.in:po/Make-in"} | |
4262 | EOF | |
4263 | cat >> $CONFIG_STATUS <<\EOF | |
4264 | for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then | |
4265 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4266 | case "$ac_file" in | |
4267 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4268 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4269 | *) ac_file_in="${ac_file}.in" ;; | |
4270 | esac | |
4271 | ||
4272 | # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories. | |
4273 | ||
4274 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4275 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4276 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4277 | # The file is in a subdirectory. | |
4278 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4279 | ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`" | |
4280 | # A "../" for each directory in $ac_dir_suffix. | |
4281 | ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'` | |
4282 | else | |
4283 | ac_dir_suffix= ac_dots= | |
4284 | fi | |
4285 | ||
4286 | case "$ac_given_srcdir" in | |
4287 | .) srcdir=. | |
4288 | if test -z "$ac_dots"; then top_srcdir=. | |
4289 | else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;; | |
4290 | /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;; | |
4291 | *) # Relative path. | |
4292 | srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix" | |
4293 | top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
4294 | esac | |
4295 | ||
4296 | case "$ac_given_INSTALL" in | |
4297 | [/$]*) INSTALL="$ac_given_INSTALL" ;; | |
4298 | *) INSTALL="$ac_dots$ac_given_INSTALL" ;; | |
4299 | esac | |
4300 | ||
4301 | echo creating "$ac_file" | |
4302 | rm -f "$ac_file" | |
4303 | configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure." | |
4304 | case "$ac_file" in | |
4305 | *Makefile*) ac_comsub="1i\\ | |
4306 | # $configure_input" ;; | |
4307 | *) ac_comsub= ;; | |
4308 | esac | |
4309 | ||
4310 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4311 | sed -e "$ac_comsub | |
4312 | s%@configure_input@%$configure_input%g | |
4313 | s%@srcdir@%$srcdir%g | |
4314 | s%@top_srcdir@%$top_srcdir%g | |
4315 | s%@INSTALL@%$INSTALL%g | |
4316 | " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file | |
4317 | fi; done | |
4318 | rm -f conftest.s* | |
4319 | ||
4320 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
4321 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
4322 | # | |
4323 | # ac_d sets the value in "#define NAME VALUE" lines. | |
4324 | ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
4325 | ac_dB='\([ ][ ]*\)[^ ]*%\1#\2' | |
4326 | ac_dC='\3' | |
4327 | ac_dD='%g' | |
4328 | # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE". | |
4329 | ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4330 | ac_uB='\([ ]\)%\1#\2define\3' | |
4331 | ac_uC=' ' | |
4332 | ac_uD='\4%g' | |
4333 | # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
4334 | ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
4335 | ac_eB='$%\1#\2define\3' | |
4336 | ac_eC=' ' | |
4337 | ac_eD='%g' | |
4338 | ||
4339 | if test "${CONFIG_HEADERS+set}" != set; then | |
4340 | EOF | |
4341 | cat >> $CONFIG_STATUS <<EOF | |
4342 | CONFIG_HEADERS="gconfig.h:gconfig.in" | |
4343 | EOF | |
4344 | cat >> $CONFIG_STATUS <<\EOF | |
4345 | fi | |
4346 | for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then | |
4347 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
4348 | case "$ac_file" in | |
4349 | *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'` | |
4350 | ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
4351 | *) ac_file_in="${ac_file}.in" ;; | |
4352 | esac | |
4353 | ||
4354 | echo creating $ac_file | |
4355 | ||
4356 | rm -f conftest.frag conftest.in conftest.out | |
4357 | ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"` | |
4358 | cat $ac_file_inputs > conftest.in | |
4359 | ||
4360 | EOF | |
4361 | ||
4362 | # Transform confdefs.h into a sed script conftest.vals that substitutes | |
4363 | # the proper values into config.h.in to produce config.h. And first: | |
4364 | # Protect against being on the right side of a sed subst in config.status. | |
4365 | # Protect against being in an unquoted here document in config.status. | |
4366 | rm -f conftest.vals | |
4367 | cat > conftest.hdr <<\EOF | |
4368 | s/[\\&%]/\\&/g | |
4369 | s%[\\$`]%\\&%g | |
4370 | s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp | |
4371 | s%ac_d%ac_u%gp | |
4372 | s%ac_u%ac_e%gp | |
4373 | EOF | |
4374 | sed -n -f conftest.hdr confdefs.h > conftest.vals | |
4375 | rm -f conftest.hdr | |
4376 | ||
4377 | # This sed command replaces #undef with comments. This is necessary, for | |
4378 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
4379 | # on some systems where configure will not decide to define it. | |
4380 | cat >> conftest.vals <<\EOF | |
4381 | s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */% | |
4382 | EOF | |
4383 | ||
4384 | # Break up conftest.vals because some shells have a limit on | |
4385 | # the size of here documents, and old seds have small limits too. | |
4386 | ||
4387 | rm -f conftest.tail | |
4388 | while : | |
4389 | do | |
4390 | ac_lines=`grep -c . conftest.vals` | |
4391 | # grep -c gives empty output for an empty file on some AIX systems. | |
4392 | if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi | |
4393 | # Write a limited-size here document to conftest.frag. | |
4394 | echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS | |
4395 | sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS | |
4396 | echo 'CEOF | |
4397 | sed -f conftest.frag conftest.in > conftest.out | |
4398 | rm -f conftest.in | |
4399 | mv conftest.out conftest.in | |
4400 | ' >> $CONFIG_STATUS | |
4401 | sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail | |
4402 | rm -f conftest.vals | |
4403 | mv conftest.tail conftest.vals | |
4404 | done | |
4405 | rm -f conftest.vals | |
4406 | ||
4407 | cat >> $CONFIG_STATUS <<\EOF | |
4408 | rm -f conftest.frag conftest.h | |
4409 | echo "/* $ac_file. Generated automatically by configure. */" > conftest.h | |
4410 | cat conftest.in >> conftest.h | |
4411 | rm -f conftest.in | |
4412 | if cmp -s $ac_file conftest.h 2>/dev/null; then | |
4413 | echo "$ac_file is unchanged" | |
4414 | rm -f conftest.h | |
4415 | else | |
4416 | # Remove last slash and all that follows it. Not all systems have dirname. | |
4417 | ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'` | |
4418 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then | |
4419 | # The file is in a subdirectory. | |
4420 | test ! -d "$ac_dir" && mkdir "$ac_dir" | |
4421 | fi | |
4422 | rm -f $ac_file | |
4423 | mv conftest.h $ac_file | |
4424 | fi | |
4425 | fi; done | |
4426 | ||
4427 | EOF | |
4428 | cat >> $CONFIG_STATUS <<EOF | |
4429 | ||
4430 | ||
4431 | EOF | |
4432 | cat >> $CONFIG_STATUS <<\EOF | |
4433 | test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h | |
4434 | sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile | |
4435 | exit 0 | |
4436 | EOF | |
4437 | chmod +x $CONFIG_STATUS | |
4438 | rm -fr confdefs* $ac_clean_files | |
4439 | test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1 | |
4440 |