]>
Commit | Line | Data |
---|---|---|
705db0b5 | 1 | #! /bin/sh |
705db0b5 | 2 | # Guess values for system-dependent variables and create Makefiles. |
18569462 | 3 | # Generated by Autoconf 2.49d. |
705db0b5 | 4 | # |
5141b016 | 5 | # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 | 6 | # Free Software Foundation, Inc. |
705db0b5 AD |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. | |
9 | ||
18569462 AD |
10 | # Be Bourne compatible |
11 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
12 | emulate sh | |
13 | NULLCMD=: | |
14 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
15 | set -o posix | |
16 | fi | |
17 | ||
18 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
19 | as_expr=expr | |
20 | else | |
21 | as_expr=false | |
22 | fi | |
23 | ||
5141b016 AD |
24 | rm -f conf$$ conf$$.exe conf$$.file |
25 | echo >conf$$.file | |
26 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
27 | # We could just check for DJGPP; but this test a) works b) is more generic |
28 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 29 | if test -f conf$$.exe; then |
18569462 AD |
30 | # Don't use ln at all; we don't have any links |
31 | as_ln_s='cp -p' | |
32 | else | |
33 | as_ln_s='ln -s' | |
34 | fi | |
5141b016 | 35 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
36 | as_ln_s=ln |
37 | else | |
38 | as_ln_s='cp -p' | |
39 | fi | |
5141b016 | 40 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 41 | |
5141b016 | 42 | as_executable_p="test -f" |
18569462 AD |
43 | |
44 | # Support unset when possible. | |
45 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
46 | as_unset=unset | |
47 | else | |
48 | as_unset=false | |
49 | fi | |
50 | ||
51 | # NLS nuisances. | |
52 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
53 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
54 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
55 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
56 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
57 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
58 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
59 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
60 | ||
61 | # IFS | |
62 | # We need space, tab and new line, in precisely that order. | |
63 | as_nl=' | |
64 | ' | |
65 | IFS=" $as_nl" | |
66 | ||
67 | # CDPATH. | |
68 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
69 | ||
70 | # Name of the host. | |
71 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
72 | # so uname gets run too. | |
73 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
74 | ||
75 | # Name of the executable. | |
76 | as_me=`echo "$0" | sed 's,.*/,,'` | |
77 | ||
78 | cat >config.log <<EOF | |
79 | This file contains any messages produced by compilers while | |
80 | running configure, to aid debugging if configure makes a mistake. | |
81 | ||
82 | It was created by $as_me 2.49d, executed with | |
83 | > $0 $@ | |
84 | ||
85 | EOF | |
86 | { | |
87 | cat <<_ASUNAME | |
88 | ## ---------- ## | |
89 | ## Platform. ## | |
90 | ## ---------- ## | |
91 | ||
92 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
93 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
94 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
95 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
96 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
97 | ||
98 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
99 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
100 | ||
101 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
102 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
103 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
104 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
105 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
106 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
107 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
108 | ||
109 | PATH = $PATH | |
110 | ||
111 | _ASUNAME | |
112 | } >>config.log | |
113 | ||
114 | cat >>config.log <<EOF | |
115 | ## ------------ ## | |
116 | ## Core tests. ## | |
117 | ## ------------ ## | |
118 | ||
119 | EOF | |
120 | ||
121 | # File descriptor usage: | |
122 | # 0 standard input | |
123 | # 1 file creation | |
124 | # 2 errors and warnings | |
125 | # 5 compiler messages saved in config.log | |
126 | # 6 checking for... messages and results | |
127 | exec 5>>config.log | |
128 | exec 6>&1 | |
129 | ||
130 | # | |
131 | # Initializations. | |
132 | # | |
705db0b5 | 133 | ac_default_prefix=/usr/local |
18569462 AD |
134 | cross_compiling=no |
135 | subdirs= | |
136 | MFLAGS= MAKEFLAGS= | |
137 | SHELL=${CONFIG_SHELL-/bin/sh} | |
138 | ||
139 | # Maximum number of lines to put in a shell here document. | |
140 | # This variable seems obsolete. It should probably be removed, and | |
141 | # only ac_max_sed_lines should be used. | |
142 | : ${ac_max_here_lines=38} | |
143 | ||
144 | # Avoid depending upon Character Ranges. | |
145 | ac_cr_az='abcdefghijklmnopqrstuvwxyz' | |
146 | ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
147 | ac_cr_09='0123456789' | |
148 | ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09 | |
149 | ||
150 | # Sed expression to map a string onto a valid sh and CPP variable names. | |
151 | ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g" | |
152 | ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g" | |
153 | ||
154 | ac_unique_file="src/reduce.c" | |
155 | # Factoring default headers for most tests. | |
156 | ac_includes_default="\ | |
157 | #include <stdio.h> | |
158 | #include <sys/types.h> | |
159 | #include <sys/stat.h> | |
160 | #if STDC_HEADERS | |
161 | # include <stdlib.h> | |
162 | # include <stddef.h> | |
163 | #else | |
164 | # if HAVE_STDLIB_H | |
165 | # include <stdlib.h> | |
166 | # endif | |
167 | #endif | |
168 | #if HAVE_STRING_H | |
169 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
170 | # include <memory.h> | |
171 | # endif | |
172 | # include <string.h> | |
173 | #else | |
174 | # if HAVE_STRINGS_H | |
175 | # include <strings.h> | |
176 | # endif | |
177 | #endif | |
178 | #if HAVE_INTTYPES_H | |
179 | # include <inttypes.h> | |
180 | #endif | |
181 | #if HAVE_UNISTD_H | |
182 | # include <unistd.h> | |
183 | #endif" | |
705db0b5 AD |
184 | |
185 | # Initialize some variables set by options. | |
18569462 AD |
186 | ac_init_help= |
187 | ac_init_version=false | |
705db0b5 AD |
188 | # The variables have the same names as the options, with |
189 | # dashes changed to underlines. | |
18569462 | 190 | cache_file=/dev/null |
705db0b5 | 191 | exec_prefix=NONE |
705db0b5 | 192 | no_create= |
705db0b5 AD |
193 | no_recursion= |
194 | prefix=NONE | |
195 | program_prefix=NONE | |
196 | program_suffix=NONE | |
197 | program_transform_name=s,x,x, | |
198 | silent= | |
199 | site= | |
200 | srcdir= | |
705db0b5 AD |
201 | verbose= |
202 | x_includes=NONE | |
203 | x_libraries=NONE | |
18569462 AD |
204 | |
205 | # Installation directory options. | |
206 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
207 | # and all the variables that are supposed to be based on exec_prefix | |
208 | # by default will actually change. | |
209 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
705db0b5 AD |
210 | bindir='${exec_prefix}/bin' |
211 | sbindir='${exec_prefix}/sbin' | |
212 | libexecdir='${exec_prefix}/libexec' | |
213 | datadir='${prefix}/share' | |
214 | sysconfdir='${prefix}/etc' | |
215 | sharedstatedir='${prefix}/com' | |
216 | localstatedir='${prefix}/var' | |
217 | libdir='${exec_prefix}/lib' | |
218 | includedir='${prefix}/include' | |
219 | oldincludedir='/usr/include' | |
220 | infodir='${prefix}/info' | |
221 | mandir='${prefix}/man' | |
222 | ||
18569462 AD |
223 | # Identity of this package. |
224 | PACKAGE_NAME= | |
225 | PACKAGE_TARNAME= | |
226 | PACKAGE_VERSION= | |
227 | PACKAGE_STRING= | |
228 | PACKAGE_BUGREPORT= | |
705db0b5 AD |
229 | |
230 | ac_prev= | |
231 | for ac_option | |
232 | do | |
705db0b5 AD |
233 | # If the previous option needs an argument, assign it. |
234 | if test -n "$ac_prev"; then | |
235 | eval "$ac_prev=\$ac_option" | |
236 | ac_prev= | |
237 | continue | |
238 | fi | |
239 | ||
18569462 | 240 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
705db0b5 AD |
241 | |
242 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
243 | ||
18569462 | 244 | case $ac_option in |
705db0b5 AD |
245 | |
246 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
247 | ac_prev=bindir ;; | |
248 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
18569462 | 249 | bindir=$ac_optarg ;; |
705db0b5 AD |
250 | |
251 | -build | --build | --buil | --bui | --bu) | |
18569462 | 252 | ac_prev=build_alias ;; |
705db0b5 | 253 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
18569462 | 254 | build_alias=$ac_optarg ;; |
705db0b5 AD |
255 | |
256 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
257 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
258 | ac_prev=cache_file ;; | |
259 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
260 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
18569462 AD |
261 | cache_file=$ac_optarg ;; |
262 | ||
263 | --config-cache | -C) | |
264 | cache_file=config.cache ;; | |
705db0b5 AD |
265 | |
266 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
267 | ac_prev=datadir ;; | |
268 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
269 | | --da=*) | |
18569462 | 270 | datadir=$ac_optarg ;; |
705db0b5 AD |
271 | |
272 | -disable-* | --disable-*) | |
18569462 | 273 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
705db0b5 | 274 | # Reject names that are not valid shell variable names. |
18569462 | 275 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
5141b016 | 276 | { { echo "$as_me:276: error: invalid feature name: $ac_feature" >&5 |
18569462 AD |
277 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} |
278 | { (exit 1); exit 1; }; } | |
279 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
280 | eval "enable_$ac_feature=no" ;; | |
705db0b5 AD |
281 | |
282 | -enable-* | --enable-*) | |
18569462 | 283 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
705db0b5 | 284 | # Reject names that are not valid shell variable names. |
18569462 | 285 | expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
5141b016 | 286 | { { echo "$as_me:286: error: invalid feature name: $ac_feature" >&5 |
18569462 AD |
287 | echo "$as_me: error: invalid feature name: $ac_feature" >&2;} |
288 | { (exit 1); exit 1; }; } | |
289 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
290 | case $ac_option in | |
291 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
292 | *) ac_optarg=yes ;; |
293 | esac | |
18569462 | 294 | eval "enable_$ac_feature='$ac_optarg'" ;; |
705db0b5 AD |
295 | |
296 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
297 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
298 | | --exec | --exe | --ex) | |
299 | ac_prev=exec_prefix ;; | |
300 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
301 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
302 | | --exec=* | --exe=* | --ex=*) | |
18569462 | 303 | exec_prefix=$ac_optarg ;; |
705db0b5 AD |
304 | |
305 | -gas | --gas | --ga | --g) | |
306 | # Obsolete; use --with-gas. | |
307 | with_gas=yes ;; | |
308 | ||
18569462 AD |
309 | -help | --help | --hel | --he | -h) |
310 | ac_init_help=long ;; | |
311 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
312 | ac_init_help=recursive ;; | |
313 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
314 | ac_init_help=short ;; | |
705db0b5 AD |
315 | |
316 | -host | --host | --hos | --ho) | |
18569462 | 317 | ac_prev=host_alias ;; |
705db0b5 | 318 | -host=* | --host=* | --hos=* | --ho=*) |
18569462 | 319 | host_alias=$ac_optarg ;; |
705db0b5 AD |
320 | |
321 | -includedir | --includedir | --includedi | --included | --include \ | |
322 | | --includ | --inclu | --incl | --inc) | |
323 | ac_prev=includedir ;; | |
324 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
325 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
18569462 | 326 | includedir=$ac_optarg ;; |
705db0b5 AD |
327 | |
328 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
329 | ac_prev=infodir ;; | |
330 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
18569462 | 331 | infodir=$ac_optarg ;; |
705db0b5 AD |
332 | |
333 | -libdir | --libdir | --libdi | --libd) | |
334 | ac_prev=libdir ;; | |
335 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
18569462 | 336 | libdir=$ac_optarg ;; |
705db0b5 AD |
337 | |
338 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
339 | | --libexe | --libex | --libe) | |
340 | ac_prev=libexecdir ;; | |
341 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
342 | | --libexe=* | --libex=* | --libe=*) | |
18569462 | 343 | libexecdir=$ac_optarg ;; |
705db0b5 AD |
344 | |
345 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
346 | | --localstate | --localstat | --localsta | --localst \ | |
347 | | --locals | --local | --loca | --loc | --lo) | |
348 | ac_prev=localstatedir ;; | |
349 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
350 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
351 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
18569462 | 352 | localstatedir=$ac_optarg ;; |
705db0b5 AD |
353 | |
354 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
355 | ac_prev=mandir ;; | |
356 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
18569462 | 357 | mandir=$ac_optarg ;; |
705db0b5 AD |
358 | |
359 | -nfp | --nfp | --nf) | |
360 | # Obsolete; use --without-fp. | |
361 | with_fp=no ;; | |
362 | ||
363 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
364 | | --no-cr | --no-c) | |
365 | no_create=yes ;; | |
366 | ||
367 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
368 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
369 | no_recursion=yes ;; | |
370 | ||
371 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
372 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
373 | | --oldin | --oldi | --old | --ol | --o) | |
374 | ac_prev=oldincludedir ;; | |
375 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
376 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
377 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
18569462 | 378 | oldincludedir=$ac_optarg ;; |
705db0b5 AD |
379 | |
380 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
381 | ac_prev=prefix ;; | |
382 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
18569462 | 383 | prefix=$ac_optarg ;; |
705db0b5 AD |
384 | |
385 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
386 | | --program-pre | --program-pr | --program-p) | |
387 | ac_prev=program_prefix ;; | |
388 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
389 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
18569462 | 390 | program_prefix=$ac_optarg ;; |
705db0b5 AD |
391 | |
392 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
393 | | --program-suf | --program-su | --program-s) | |
394 | ac_prev=program_suffix ;; | |
395 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
396 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
18569462 | 397 | program_suffix=$ac_optarg ;; |
705db0b5 AD |
398 | |
399 | -program-transform-name | --program-transform-name \ | |
400 | | --program-transform-nam | --program-transform-na \ | |
401 | | --program-transform-n | --program-transform- \ | |
402 | | --program-transform | --program-transfor \ | |
403 | | --program-transfo | --program-transf \ | |
404 | | --program-trans | --program-tran \ | |
405 | | --progr-tra | --program-tr | --program-t) | |
406 | ac_prev=program_transform_name ;; | |
407 | -program-transform-name=* | --program-transform-name=* \ | |
408 | | --program-transform-nam=* | --program-transform-na=* \ | |
409 | | --program-transform-n=* | --program-transform-=* \ | |
410 | | --program-transform=* | --program-transfor=* \ | |
411 | | --program-transfo=* | --program-transf=* \ | |
412 | | --program-trans=* | --program-tran=* \ | |
413 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
18569462 | 414 | program_transform_name=$ac_optarg ;; |
705db0b5 AD |
415 | |
416 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
417 | | -silent | --silent | --silen | --sile | --sil) | |
418 | silent=yes ;; | |
419 | ||
420 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
421 | ac_prev=sbindir ;; | |
422 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
423 | | --sbi=* | --sb=*) | |
18569462 | 424 | sbindir=$ac_optarg ;; |
705db0b5 AD |
425 | |
426 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
427 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
428 | | --sharedst | --shareds | --shared | --share | --shar \ | |
429 | | --sha | --sh) | |
430 | ac_prev=sharedstatedir ;; | |
431 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
432 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
433 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
434 | | --sha=* | --sh=*) | |
18569462 | 435 | sharedstatedir=$ac_optarg ;; |
705db0b5 AD |
436 | |
437 | -site | --site | --sit) | |
438 | ac_prev=site ;; | |
439 | -site=* | --site=* | --sit=*) | |
18569462 | 440 | site=$ac_optarg ;; |
705db0b5 AD |
441 | |
442 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
443 | ac_prev=srcdir ;; | |
444 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
18569462 | 445 | srcdir=$ac_optarg ;; |
705db0b5 AD |
446 | |
447 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
448 | | --syscon | --sysco | --sysc | --sys | --sy) | |
449 | ac_prev=sysconfdir ;; | |
450 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
451 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
18569462 | 452 | sysconfdir=$ac_optarg ;; |
705db0b5 AD |
453 | |
454 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
18569462 | 455 | ac_prev=target_alias ;; |
705db0b5 | 456 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
18569462 | 457 | target_alias=$ac_optarg ;; |
705db0b5 AD |
458 | |
459 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
460 | verbose=yes ;; | |
461 | ||
18569462 AD |
462 | -version | --version | --versio | --versi | --vers | -V) |
463 | ac_init_version=: ;; | |
705db0b5 AD |
464 | |
465 | -with-* | --with-*) | |
18569462 | 466 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
705db0b5 | 467 | # Reject names that are not valid shell variable names. |
18569462 | 468 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
5141b016 | 469 | { { echo "$as_me:469: error: invalid package name: $ac_package" >&5 |
18569462 AD |
470 | echo "$as_me: error: invalid package name: $ac_package" >&2;} |
471 | { (exit 1); exit 1; }; } | |
705db0b5 | 472 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
18569462 AD |
473 | case $ac_option in |
474 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
705db0b5 AD |
475 | *) ac_optarg=yes ;; |
476 | esac | |
18569462 | 477 | eval "with_$ac_package='$ac_optarg'" ;; |
705db0b5 AD |
478 | |
479 | -without-* | --without-*) | |
18569462 | 480 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
705db0b5 | 481 | # Reject names that are not valid shell variable names. |
18569462 | 482 | expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null && |
5141b016 | 483 | { { echo "$as_me:483: error: invalid package name: $ac_package" >&5 |
18569462 AD |
484 | echo "$as_me: error: invalid package name: $ac_package" >&2;} |
485 | { (exit 1); exit 1; }; } | |
486 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
487 | eval "with_$ac_package=no" ;; | |
705db0b5 AD |
488 | |
489 | --x) | |
490 | # Obsolete; use --with-x. | |
491 | with_x=yes ;; | |
492 | ||
493 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
494 | | --x-incl | --x-inc | --x-in | --x-i) | |
495 | ac_prev=x_includes ;; | |
496 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
497 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
18569462 | 498 | x_includes=$ac_optarg ;; |
705db0b5 AD |
499 | |
500 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
501 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
502 | ac_prev=x_libraries ;; | |
503 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
504 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
18569462 | 505 | x_libraries=$ac_optarg ;; |
705db0b5 | 506 | |
5141b016 | 507 | -*) { { echo "$as_me:507: error: unrecognized option: $ac_option |
18569462 AD |
508 | Try \`$0 --help' for more information." >&5 |
509 | echo "$as_me: error: unrecognized option: $ac_option | |
510 | Try \`$0 --help' for more information." >&2;} | |
511 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
512 | ;; |
513 | ||
18569462 AD |
514 | *=*) |
515 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
516 | # Reject names that are not valid shell variable names. | |
517 | expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null && | |
5141b016 | 518 | { { echo "$as_me:518: error: invalid variable name: $ac_envvar" >&5 |
18569462 AD |
519 | echo "$as_me: error: invalid variable name: $ac_envvar" >&2;} |
520 | { (exit 1); exit 1; }; } | |
521 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
522 | eval "$ac_envvar='$ac_optarg'" | |
523 | export $ac_envvar ;; | |
524 | ||
705db0b5 | 525 | *) |
18569462 | 526 | # FIXME: should be removed in autoconf 3.0. |
5141b016 | 527 | { echo "$as_me:527: WARNING: you should use --build, --host, --target" >&5 |
18569462 AD |
528 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2;} |
529 | expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null && | |
5141b016 | 530 | { echo "$as_me:530: WARNING: invalid host type: $ac_option" >&5 |
18569462 AD |
531 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2;} |
532 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
705db0b5 AD |
533 | ;; |
534 | ||
535 | esac | |
536 | done | |
537 | ||
538 | if test -n "$ac_prev"; then | |
18569462 | 539 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
5141b016 | 540 | { { echo "$as_me:540: error: missing argument to $ac_option" >&5 |
18569462 AD |
541 | echo "$as_me: error: missing argument to $ac_option" >&2;} |
542 | { (exit 1); exit 1; }; } | |
705db0b5 | 543 | fi |
705db0b5 | 544 | |
18569462 AD |
545 | # Be sure to have absolute paths. |
546 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
547 | localstatedir libdir includedir oldincludedir infodir mandir \ | |
548 | exec_prefix prefix | |
705db0b5 | 549 | do |
18569462 AD |
550 | eval ac_val=$`echo $ac_var` |
551 | case $ac_val in | |
552 | [\\/$]* | ?:[\\/]* ) ;; | |
553 | NONE ) ;; | |
5141b016 | 554 | *) { { echo "$as_me:554: error: expected an absolute path for --$ac_var: $ac_val" >&5 |
18569462 AD |
555 | echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2;} |
556 | { (exit 1); exit 1; }; };; | |
705db0b5 AD |
557 | esac |
558 | done | |
559 | ||
18569462 AD |
560 | # There might be people who depend on the old broken behavior: `$host' |
561 | # used to hold the argument of --host etc. | |
562 | build=$build_alias | |
563 | host=$host_alias | |
564 | target=$target_alias | |
565 | ||
566 | # FIXME: should be removed in autoconf 3.0. | |
567 | if test "x$host_alias" != x; then | |
568 | if test "x$build_alias" = x; then | |
569 | cross_compiling=maybe | |
5141b016 | 570 | { echo "$as_me:570: WARNING: If you wanted to set the --build type, don't use --host. |
18569462 AD |
571 | If a cross compiler is detected then cross compile mode will be used." >&5 |
572 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
573 | If a cross compiler is detected then cross compile mode will be used." >&2;} | |
574 | elif test "x$build_alias" != "x$host_alias"; then | |
575 | cross_compiling=yes | |
576 | fi | |
577 | fi | |
705db0b5 | 578 | |
18569462 AD |
579 | ac_tool_prefix= |
580 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
705db0b5 | 581 | |
18569462 | 582 | test "$silent" = yes && exec 6>/dev/null |
705db0b5 AD |
583 | |
584 | # Find the source files, if location was not specified. | |
585 | if test -z "$srcdir"; then | |
586 | ac_srcdir_defaulted=yes | |
587 | # Try the directory containing this script, then its parent. | |
588 | ac_prog=$0 | |
18569462 | 589 | ac_confdir=`echo "$ac_prog" | sed 's%/[^/][^/]*$%%'` |
705db0b5 AD |
590 | test "x$ac_confdir" = "x$ac_prog" && ac_confdir=. |
591 | srcdir=$ac_confdir | |
592 | if test ! -r $srcdir/$ac_unique_file; then | |
593 | srcdir=.. | |
594 | fi | |
595 | else | |
596 | ac_srcdir_defaulted=no | |
597 | fi | |
598 | if test ! -r $srcdir/$ac_unique_file; then | |
599 | if test "$ac_srcdir_defaulted" = yes; then | |
5141b016 | 600 | { { echo "$as_me:600: error: cannot find sources in $ac_confdir or .." >&5 |
18569462 AD |
601 | echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2;} |
602 | { (exit 1); exit 1; }; } | |
705db0b5 | 603 | else |
5141b016 | 604 | { { echo "$as_me:604: error: cannot find sources in $srcdir" >&5 |
18569462 AD |
605 | echo "$as_me: error: cannot find sources in $srcdir" >&2;} |
606 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
607 | fi |
608 | fi | |
18569462 AD |
609 | srcdir=`echo "$srcdir" | sed 's%\([^/]\)/*$%\1%'` |
610 | ac_env_build_alias_set=${build_alias+set} | |
611 | ac_env_build_alias_value=$build_alias | |
612 | ac_cv_env_build_alias_set=${build_alias+set} | |
613 | ac_cv_env_build_alias_value=$build_alias | |
614 | ac_env_host_alias_set=${host_alias+set} | |
615 | ac_env_host_alias_value=$host_alias | |
616 | ac_cv_env_host_alias_set=${host_alias+set} | |
617 | ac_cv_env_host_alias_value=$host_alias | |
618 | ac_env_target_alias_set=${target_alias+set} | |
619 | ac_env_target_alias_value=$target_alias | |
620 | ac_cv_env_target_alias_set=${target_alias+set} | |
621 | ac_cv_env_target_alias_value=$target_alias | |
622 | ac_env_CC_set=${CC+set} | |
623 | ac_env_CC_value=$CC | |
624 | ac_cv_env_CC_set=${CC+set} | |
625 | ac_cv_env_CC_value=$CC | |
626 | ac_env_CFLAGS_set=${CFLAGS+set} | |
627 | ac_env_CFLAGS_value=$CFLAGS | |
628 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
629 | ac_cv_env_CFLAGS_value=$CFLAGS | |
630 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
631 | ac_env_LDFLAGS_value=$LDFLAGS | |
632 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
633 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
634 | ac_env_CPP_set=${CPP+set} | |
635 | ac_env_CPP_value=$CPP | |
636 | ac_cv_env_CPP_set=${CPP+set} | |
637 | ac_cv_env_CPP_value=$CPP | |
638 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
639 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
640 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
641 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
642 | ||
643 | # | |
644 | # Report the --help message. | |
645 | # | |
646 | if test "$ac_init_help" = "long"; then | |
647 | # Omit some internal or obsolete options to make the list less imposing. | |
648 | # This message is too long to be a string in the A/UX 3.1 sh. | |
649 | cat <<EOF | |
650 | \`configure' configures this package to adapt to many kinds of systems. | |
651 | ||
652 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
653 | ||
654 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
655 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
656 | ||
657 | Defaults for the options are specified in brackets. | |
658 | ||
659 | Configuration: | |
660 | -h, --help display this help and exit | |
661 | --help=short display options specific to this package | |
662 | --help=recursive display the short help of all the included packages | |
663 | -V, --version display version information and exit | |
664 | -q, --quiet, --silent do not print \`checking...' messages | |
665 | --cache-file=FILE cache test results in FILE [disabled] | |
666 | -C, --config-cache alias for \`--cache-file=config.cache' | |
667 | -n, --no-create do not create output files | |
668 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
669 | ||
670 | EOF | |
671 | ||
672 | cat <<EOF | |
673 | Installation directories: | |
674 | --prefix=PREFIX install architecture-independent files in PREFIX | |
675 | [$ac_default_prefix] | |
676 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
677 | [PREFIX] | |
678 | ||
679 | By default, \`make install' will install all the files in | |
680 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
681 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
682 | for instance \`--prefix=\$HOME'. | |
683 | ||
684 | For better control, use the options below. | |
685 | ||
686 | Fine tuning of the installation directories: | |
687 | --bindir=DIR user executables [EPREFIX/bin] | |
688 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
689 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
690 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
691 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
692 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
693 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
694 | --libdir=DIR object code libraries [EPREFIX/lib] | |
695 | --includedir=DIR C header files [PREFIX/include] | |
696 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
697 | --infodir=DIR info documentation [PREFIX/info] | |
698 | --mandir=DIR man documentation [PREFIX/man] | |
699 | EOF | |
700 | ||
701 | cat <<\EOF | |
702 | ||
703 | Program names: | |
704 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
705 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
706 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
707 | EOF | |
708 | fi | |
709 | ||
710 | if test -n "$ac_init_help"; then | |
711 | ||
712 | cat <<\EOF | |
713 | ||
714 | Optional Features: | |
715 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
716 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
717 | --enable-gcc-warnings turn on lots of GCC warnings (not recommended) | |
718 | --disable-nls do not use Native Language Support | |
719 | ||
720 | Optional Packages: | |
721 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
722 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
723 | --with-included-gettext use the GNU gettext library included here | |
724 | --with-catgets use catgets functions if available | |
725 | ||
726 | Some influential environment variables: | |
727 | CC C compiler command | |
728 | CFLAGS C compiler flags | |
729 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
730 | nonstandard directory <lib dir> | |
731 | CPP C preprocessor | |
732 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
733 | headers in a nonstandard directory <include dir> | |
734 | ||
735 | Use these variables to override the choices made by `configure' or to help | |
736 | it to find libraries and programs with nonstandard names/locations. | |
737 | ||
738 | EOF | |
739 | fi | |
740 | ||
741 | if test "$ac_init_help" = "recursive"; then | |
742 | # If there are subdirs, report their specific --help. | |
743 | ac_popdir=`pwd` | |
744 | for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue | |
745 | cd $ac_subdir | |
746 | # A "../" for each directory in /$ac_subdir. | |
747 | ac_dots=`echo $ac_subdir | | |
748 | sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'` | |
749 | ||
750 | case $srcdir in | |
751 | .) # No --srcdir option. We are building in place. | |
752 | ac_sub_srcdir=$srcdir ;; | |
753 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
754 | ac_sub_srcdir=$srcdir/$ac_subdir ;; | |
755 | *) # Relative path. | |
756 | ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;; | |
757 | esac | |
758 | ||
759 | # Check for guested configure; otherwise get Cygnus style configure. | |
760 | if test -f $ac_sub_srcdir/configure.gnu; then | |
761 | echo | |
762 | $SHELL $ac_sub_srcdir/configure.gnu --help=recursive | |
763 | elif test -f $ac_sub_srcdir/configure; then | |
764 | echo | |
765 | $SHELL $ac_sub_srcdir/configure --help=recursive | |
766 | elif test -f $ac_sub_srcdir/configure.ac || | |
767 | test -f $ac_sub_srcdir/configure.in; then | |
768 | echo | |
769 | $ac_configure --help | |
770 | else | |
5141b016 | 771 | { echo "$as_me:771: WARNING: no configuration information is in $ac_subdir" >&5 |
18569462 AD |
772 | echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2;} |
773 | fi | |
774 | cd $ac_popdir | |
775 | done | |
776 | fi | |
777 | ||
778 | test -n "$ac_init_help" && exit 0 | |
779 | if $ac_init_version; then | |
780 | cat <<\EOF | |
781 | ||
5141b016 | 782 | Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
18569462 AD |
783 | Free Software Foundation, Inc. |
784 | This configure script is free software; the Free Software Foundation | |
785 | gives unlimited permission to copy, distribute and modify it. | |
786 | EOF | |
787 | exit 0 | |
788 | fi | |
789 | ||
790 | # Keep a trace of the command line. | |
791 | # Strip out --no-create and --no-recursion so they do not pile up. | |
792 | # Also quote any args containing shell meta-characters. | |
793 | ac_configure_args= | |
794 | ac_sep= | |
795 | for ac_arg | |
796 | do | |
797 | case $ac_arg in | |
798 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
799 | | --no-cr | --no-c) ;; | |
800 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
801 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;; | |
802 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
803 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` | |
804 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
805 | ac_sep=" " ;; | |
806 | *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg" | |
807 | ac_sep=" " ;; | |
808 | esac | |
809 | # Get rid of the leading space. | |
810 | done | |
811 | ||
812 | # When interrupted or exit'd, cleanup temporary files, and complete | |
813 | # config.log. We remove comments because anyway the quotes in there | |
814 | # would cause problems or look ugly. | |
815 | trap 'exit_status=$? | |
816 | # Save into config.log some information that might help in debugging. | |
817 | echo >&5 | |
818 | echo "## ----------------- ##" >&5 | |
819 | echo "## Cache variables. ##" >&5 | |
820 | echo "## ----------------- ##" >&5 | |
821 | echo >&5 | |
822 | # The following way of writing the cache mishandles newlines in values, | |
823 | { | |
824 | (set) 2>&1 | | |
825 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
826 | *ac_space=\ *) | |
827 | sed -n \ | |
828 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
829 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
830 | ;; | |
831 | *) | |
832 | sed -n \ | |
833 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
834 | ;; | |
835 | esac; | |
836 | } >&5 | |
837 | sed "/^$/d" confdefs.h >conftest.log | |
838 | if test -s conftest.log; then | |
839 | echo >&5 | |
840 | echo "## ------------ ##" >&5 | |
841 | echo "## confdefs.h. ##" >&5 | |
842 | echo "## ------------ ##" >&5 | |
843 | echo >&5 | |
844 | cat conftest.log >&5 | |
845 | fi | |
846 | (echo; echo) >&5 | |
847 | test "$ac_signal" != 0 && | |
848 | echo "$as_me: caught signal $ac_signal" >&5 | |
849 | echo "$as_me: exit $exit_status" >&5 | |
5141b016 | 850 | rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files && |
18569462 AD |
851 | exit $exit_status |
852 | ' 0 | |
853 | for ac_signal in 1 2 13 15; do | |
854 | trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal | |
855 | done | |
856 | ac_signal=0 | |
857 | ||
858 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
859 | rm -rf conftest* confdefs.h | |
860 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
861 | echo >confdefs.h | |
705db0b5 | 862 | |
18569462 | 863 | # Let the site file select an alternate cache file if it wants to. |
705db0b5 AD |
864 | # Prefer explicitly selected file to automatically selected ones. |
865 | if test -z "$CONFIG_SITE"; then | |
866 | if test "x$prefix" != xNONE; then | |
867 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
868 | else | |
869 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
870 | fi | |
871 | fi | |
872 | for ac_site_file in $CONFIG_SITE; do | |
873 | if test -r "$ac_site_file"; then | |
5141b016 | 874 | { echo "$as_me:874: loading site script $ac_site_file" >&5 |
18569462 AD |
875 | echo "$as_me: loading site script $ac_site_file" >&6;} |
876 | cat "$ac_site_file" >&5 | |
705db0b5 AD |
877 | . "$ac_site_file" |
878 | fi | |
879 | done | |
880 | ||
881 | if test -r "$cache_file"; then | |
18569462 AD |
882 | # Some versions of bash will fail to source /dev/null (special |
883 | # files actually), so we avoid doing that. | |
884 | if test -f "$cache_file"; then | |
5141b016 | 885 | { echo "$as_me:885: loading cache $cache_file" >&5 |
18569462 AD |
886 | echo "$as_me: loading cache $cache_file" >&6;} |
887 | case $cache_file in | |
888 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
889 | *) . ./$cache_file;; | |
890 | esac | |
891 | fi | |
705db0b5 | 892 | else |
5141b016 | 893 | { echo "$as_me:893: creating cache $cache_file" >&5 |
18569462 AD |
894 | echo "$as_me: creating cache $cache_file" >&6;} |
895 | >$cache_file | |
896 | fi | |
897 | ||
898 | # Check that the precious variables saved in the cache have kept the same | |
899 | # value. | |
900 | ac_suggest_removing_cache=false | |
901 | for ac_var in `(set) 2>&1 | | |
902 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
903 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
904 | eval ac_new_set=\$ac_env_${ac_var}_set | |
905 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
906 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
907 | case $ac_old_set,$ac_new_set in | |
908 | set,) | |
5141b016 | 909 | { echo "$as_me:909: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
18569462 AD |
910 | echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
911 | ac_suggest_removing_cache=: ;; | |
912 | ,set) | |
5141b016 | 913 | { echo "$as_me:913: WARNING: \`$ac_var' was not set in the previous run" >&5 |
18569462 AD |
914 | echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;} |
915 | ac_suggest_removing_cache=: ;; | |
916 | ,);; | |
917 | *) | |
918 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
5141b016 | 919 | { echo "$as_me:919: WARNING: \`$ac_var' has changed since the previous run:" >&5 |
18569462 | 920 | echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;} |
5141b016 | 921 | { echo "$as_me:921: WARNING: former value: $ac_old_val" >&5 |
18569462 | 922 | echo "$as_me: WARNING: former value: $ac_old_val" >&2;} |
5141b016 | 923 | { echo "$as_me:923: WARNING: current value: $ac_new_val" >&5 |
18569462 AD |
924 | echo "$as_me: WARNING: current value: $ac_new_val" >&2;} |
925 | ac_suggest_removing_cache=: | |
926 | fi;; | |
927 | esac | |
928 | done | |
929 | if $ac_suggest_removing_cache; then | |
5141b016 | 930 | { echo "$as_me:930: WARNING: changes in the environment can compromise the build" >&5 |
18569462 | 931 | echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;} |
5141b016 | 932 | { echo "$as_me:932: WARNING: consider removing $cache_file and starting over" >&5 |
18569462 | 933 | echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;} |
705db0b5 AD |
934 | fi |
935 | ||
936 | ac_ext=c | |
705db0b5 | 937 | ac_cpp='$CPP $CPPFLAGS' |
18569462 AD |
938 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
939 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
940 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
941 | ||
942 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
943 | *c*,-n*) ECHO_N= ECHO_C=' | |
944 | ' ECHO_T=' ' ;; | |
945 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
946 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
947 | esac | |
5141b016 AD |
948 | echo "#! $SHELL" >conftest.sh |
949 | echo "exit 0" >>conftest.sh | |
950 | chmod +x conftest.sh | |
951 | if { (echo "$as_me:951: PATH=\".;.\"; conftest.sh") >&5 | |
952 | (PATH=".;."; conftest.sh) 2>&5 | |
953 | ac_status=$? | |
954 | echo "$as_me:954: \$? = $ac_status" >&5 | |
955 | (exit $ac_status); }; then | |
956 | ac_path_separator=';' | |
957 | else | |
958 | ac_path_separator=: | |
959 | fi | |
960 | PATH_SEPARATOR="$ac_path_separator" | |
961 | rm -f conftest.sh | |
705db0b5 AD |
962 | |
963 | ac_aux_dir= | |
964 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
965 | if test -f $ac_dir/install-sh; then | |
966 | ac_aux_dir=$ac_dir | |
967 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
968 | break | |
969 | elif test -f $ac_dir/install.sh; then | |
970 | ac_aux_dir=$ac_dir | |
971 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
972 | break | |
18569462 AD |
973 | elif test -f $ac_dir/shtool; then |
974 | ac_aux_dir=$ac_dir | |
975 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
976 | break | |
705db0b5 AD |
977 | fi |
978 | done | |
979 | if test -z "$ac_aux_dir"; then | |
5141b016 | 980 | { { echo "$as_me:980: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 |
18569462 AD |
981 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} |
982 | { (exit 1); exit 1; }; } | |
705db0b5 | 983 | fi |
18569462 AD |
984 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" |
985 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
986 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
705db0b5 AD |
987 | |
988 | # Find a good install program. We prefer a C program (faster), | |
989 | # so one script is as good as another. But avoid the broken or | |
990 | # incompatible versions: | |
991 | # SysV /etc/install, /usr/sbin/install | |
992 | # SunOS /usr/etc/install | |
993 | # IRIX /sbin/install | |
994 | # AIX /bin/install | |
18569462 | 995 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
705db0b5 AD |
996 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
997 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
998 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
999 | # ./install, which can be erroneously created by make from ./install.sh. | |
5141b016 | 1000 | echo "$as_me:1000: checking for a BSD compatible install" >&5 |
18569462 | 1001 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
705db0b5 | 1002 | if test -z "$INSTALL"; then |
18569462 AD |
1003 | if test "${ac_cv_path_install+set}" = set; then |
1004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1005 | else |
5141b016 | 1006 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
705db0b5 | 1007 | for ac_dir in $PATH; do |
5141b016 | 1008 | IFS=$ac_save_IFS |
705db0b5 | 1009 | # Account for people who put trailing slashes in PATH elements. |
18569462 AD |
1010 | case $ac_dir/ in |
1011 | / | ./ | .// | /cC/* \ | |
1012 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
1013 | | /usr/ucb/* ) ;; | |
705db0b5 AD |
1014 | *) |
1015 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1016 | # Don't use installbsd from OSF since it installs stuff as root | |
1017 | # by default. | |
1018 | for ac_prog in ginstall scoinst install; do | |
5141b016 | 1019 | if $as_executable_p "$ac_dir/$ac_prog"; then |
705db0b5 | 1020 | if test $ac_prog = install && |
18569462 | 1021 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
705db0b5 AD |
1022 | # AIX install. It has an incompatible calling convention. |
1023 | : | |
18569462 AD |
1024 | elif test $ac_prog = install && |
1025 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
1026 | # program-specific install script used by HP pwplus--don't use. | |
1027 | : | |
705db0b5 AD |
1028 | else |
1029 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
1030 | break 2 | |
1031 | fi | |
1032 | fi | |
1033 | done | |
1034 | ;; | |
1035 | esac | |
1036 | done | |
705db0b5 AD |
1037 | |
1038 | fi | |
1039 | if test "${ac_cv_path_install+set}" = set; then | |
18569462 | 1040 | INSTALL=$ac_cv_path_install |
705db0b5 AD |
1041 | else |
1042 | # As a last resort, use the slow shell script. We don't cache a | |
1043 | # path for INSTALL within a source directory, because that will | |
1044 | # break other packages using the cache if that directory is | |
1045 | # removed, or if the path is relative. | |
18569462 | 1046 | INSTALL=$ac_install_sh |
705db0b5 AD |
1047 | fi |
1048 | fi | |
5141b016 | 1049 | echo "$as_me:1049: result: $INSTALL" >&5 |
18569462 | 1050 | echo "${ECHO_T}$INSTALL" >&6 |
705db0b5 AD |
1051 | |
1052 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1053 | # It thinks the first close brace ends the variable substitution. | |
1054 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1055 | ||
18569462 | 1056 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
705db0b5 AD |
1057 | |
1058 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1059 | ||
5141b016 | 1060 | echo "$as_me:1060: checking whether build environment is sane" >&5 |
18569462 | 1061 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 |
705db0b5 AD |
1062 | # Just in case |
1063 | sleep 1 | |
1064 | echo timestamp > conftestfile | |
1065 | # Do `set' in a subshell so we don't clobber the current shell's | |
1066 | # arguments. Must try -L first in case configure is actually a | |
1067 | # symlink; some systems play weird games with the mod time of symlinks | |
1068 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1069 | # directory). | |
1070 | if ( | |
1071 | set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` | |
1072 | if test "$*" = "X"; then | |
1073 | # -L didn't work. | |
1074 | set X `ls -t $srcdir/configure conftestfile` | |
1075 | fi | |
1076 | if test "$*" != "X $srcdir/configure conftestfile" \ | |
1077 | && test "$*" != "X conftestfile $srcdir/configure"; then | |
1078 | ||
1079 | # If neither matched, then we have a broken ls. This can happen | |
1080 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1081 | # broken ls alias from the environment. This has actually | |
1082 | # happened. Such a system could not be considered "sane". | |
5141b016 | 1083 | { { echo "$as_me:1083: error: ls -t appears to fail. Make sure there is not a broken |
18569462 AD |
1084 | alias in your environment" >&5 |
1085 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1086 | alias in your environment" >&2;} | |
1087 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1088 | fi |
1089 | ||
1090 | test "$2" = conftestfile | |
1091 | ) | |
1092 | then | |
1093 | # Ok. | |
1094 | : | |
1095 | else | |
5141b016 | 1096 | { { echo "$as_me:1096: error: newly created file is older than distributed files! |
18569462 AD |
1097 | Check your system clock" >&5 |
1098 | echo "$as_me: error: newly created file is older than distributed files! | |
1099 | Check your system clock" >&2;} | |
1100 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
1101 | fi |
1102 | rm -f conftest* | |
5141b016 | 1103 | echo "$as_me:1103: result: yes" >&5 |
18569462 | 1104 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1105 | if test "$program_transform_name" = s,x,x,; then |
1106 | program_transform_name= | |
1107 | else | |
1108 | # Double any \ or $. echo might interpret backslashes. | |
18569462 | 1109 | cat <<\EOF >conftest.sed |
705db0b5 | 1110 | s,\\,\\\\,g; s,\$,$$,g |
18569462 AD |
1111 | EOF |
1112 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1113 | rm -f conftest.sed | |
705db0b5 AD |
1114 | fi |
1115 | test "$program_prefix" != NONE && | |
18569462 | 1116 | program_transform_name="s,^,${program_prefix},;$program_transform_name" |
705db0b5 AD |
1117 | # Use a double $ so make ignores it. |
1118 | test "$program_suffix" != NONE && | |
18569462 | 1119 | program_transform_name="s,\$\$,${program_suffix},;$program_transform_name" |
705db0b5 AD |
1120 | |
1121 | # sed with no file args requires a program. | |
18569462 | 1122 | test -z "$program_transform_name" && program_transform_name="s,x,x," |
705db0b5 | 1123 | |
5141b016 | 1124 | echo "$as_me:1124: checking whether ${MAKE-make} sets \${MAKE}" >&5 |
18569462 AD |
1125 | echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6 |
1126 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'` | |
1127 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1128 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 1129 | else |
18569462 | 1130 | cat >conftest.make <<\EOF |
705db0b5 AD |
1131 | all: |
1132 | @echo 'ac_maketemp="${MAKE}"' | |
1133 | EOF | |
1134 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
18569462 | 1135 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
705db0b5 AD |
1136 | if test -n "$ac_maketemp"; then |
1137 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1138 | else | |
1139 | eval ac_cv_prog_make_${ac_make}_set=no | |
1140 | fi | |
18569462 | 1141 | rm -f conftest.make |
705db0b5 AD |
1142 | fi |
1143 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5141b016 | 1144 | echo "$as_me:1144: result: yes" >&5 |
18569462 | 1145 | echo "${ECHO_T}yes" >&6 |
705db0b5 AD |
1146 | SET_MAKE= |
1147 | else | |
5141b016 | 1148 | echo "$as_me:1148: result: no" >&5 |
18569462 | 1149 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1150 | SET_MAKE="MAKE=${MAKE-make}" |
1151 | fi | |
1152 | ||
705db0b5 AD |
1153 | PACKAGE=bison |
1154 | ||
1155 | VERSION=1.28a | |
1156 | ||
1157 | if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then | |
5141b016 | 1158 | { { echo "$as_me:1158: error: source directory already configured; run \"make distclean\" there first" >&5 |
18569462 AD |
1159 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
1160 | { (exit 1); exit 1; }; } | |
705db0b5 | 1161 | fi |
18569462 AD |
1162 | |
1163 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
1164 | #define PACKAGE "$PACKAGE" |
1165 | EOF | |
1166 | ||
18569462 | 1167 | cat >>confdefs.h <<EOF |
705db0b5 AD |
1168 | #define VERSION "$VERSION" |
1169 | EOF | |
1170 | ||
705db0b5 | 1171 | missing_dir=`cd $ac_aux_dir && pwd` |
5141b016 | 1172 | echo "$as_me:1172: checking for working aclocal" >&5 |
18569462 | 1173 | echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6 |
705db0b5 AD |
1174 | # Run test in a subshell; some versions of sh will print an error if |
1175 | # an executable is not found, even if stderr is redirected. | |
1176 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1177 | if (aclocal --version) < /dev/null > /dev/null 2>&1; then | |
1178 | ACLOCAL=aclocal | |
5141b016 | 1179 | echo "$as_me:1179: result: found" >&5 |
18569462 | 1180 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1181 | else |
1182 | ACLOCAL="$missing_dir/missing aclocal" | |
5141b016 | 1183 | echo "$as_me:1183: result: missing" >&5 |
18569462 | 1184 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1185 | fi |
1186 | ||
5141b016 | 1187 | echo "$as_me:1187: checking for working autoconf" >&5 |
18569462 | 1188 | echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 |
705db0b5 AD |
1189 | # Run test in a subshell; some versions of sh will print an error if |
1190 | # an executable is not found, even if stderr is redirected. | |
1191 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1192 | if (autoconf --version) < /dev/null > /dev/null 2>&1; then | |
1193 | AUTOCONF=autoconf | |
5141b016 | 1194 | echo "$as_me:1194: result: found" >&5 |
18569462 | 1195 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1196 | else |
1197 | AUTOCONF="$missing_dir/missing autoconf" | |
5141b016 | 1198 | echo "$as_me:1198: result: missing" >&5 |
18569462 | 1199 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1200 | fi |
1201 | ||
5141b016 | 1202 | echo "$as_me:1202: checking for working automake" >&5 |
18569462 | 1203 | echo $ECHO_N "checking for working automake... $ECHO_C" >&6 |
705db0b5 AD |
1204 | # Run test in a subshell; some versions of sh will print an error if |
1205 | # an executable is not found, even if stderr is redirected. | |
1206 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1207 | if (automake --version) < /dev/null > /dev/null 2>&1; then | |
1208 | AUTOMAKE=automake | |
5141b016 | 1209 | echo "$as_me:1209: result: found" >&5 |
18569462 | 1210 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1211 | else |
1212 | AUTOMAKE="$missing_dir/missing automake" | |
5141b016 | 1213 | echo "$as_me:1213: result: missing" >&5 |
18569462 | 1214 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1215 | fi |
1216 | ||
5141b016 | 1217 | echo "$as_me:1217: checking for working autoheader" >&5 |
18569462 | 1218 | echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 |
705db0b5 AD |
1219 | # Run test in a subshell; some versions of sh will print an error if |
1220 | # an executable is not found, even if stderr is redirected. | |
1221 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1222 | if (autoheader --version) < /dev/null > /dev/null 2>&1; then | |
1223 | AUTOHEADER=autoheader | |
5141b016 | 1224 | echo "$as_me:1224: result: found" >&5 |
18569462 | 1225 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1226 | else |
1227 | AUTOHEADER="$missing_dir/missing autoheader" | |
5141b016 | 1228 | echo "$as_me:1228: result: missing" >&5 |
18569462 | 1229 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1230 | fi |
1231 | ||
5141b016 | 1232 | echo "$as_me:1232: checking for working makeinfo" >&5 |
18569462 | 1233 | echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 |
705db0b5 AD |
1234 | # Run test in a subshell; some versions of sh will print an error if |
1235 | # an executable is not found, even if stderr is redirected. | |
1236 | # Redirect stdin to placate older versions of autoconf. Sigh. | |
1237 | if (makeinfo --version) < /dev/null > /dev/null 2>&1; then | |
1238 | MAKEINFO=makeinfo | |
5141b016 | 1239 | echo "$as_me:1239: result: found" >&5 |
18569462 | 1240 | echo "${ECHO_T}found" >&6 |
705db0b5 AD |
1241 | else |
1242 | MAKEINFO="$missing_dir/missing makeinfo" | |
5141b016 | 1243 | echo "$as_me:1243: result: missing" >&5 |
18569462 | 1244 | echo "${ECHO_T}missing" >&6 |
705db0b5 AD |
1245 | fi |
1246 | ||
18569462 | 1247 | ac_config_headers="$ac_config_headers config.h:config.hin" |
705db0b5 | 1248 | |
18569462 | 1249 | ac_config_commands="$ac_config_commands default-1" |
705db0b5 AD |
1250 | |
1251 | # Initialize the test suite. | |
1252 | AT_TESTPATH=../src | |
1253 | ||
1254 | # Try to be compatible with both Autoconf 2.13 and 2.50. | |
1255 | if test -z "$ECHO_C$ECHO_N$ECHO_T"; then | |
1256 | ECHO_C="$ac_c" | |
1257 | ECHO_N="$ac_n" | |
1258 | ECHO_T="$ac_t" | |
705db0b5 | 1259 | |
18569462 | 1260 | fi |
705db0b5 AD |
1261 | |
1262 | # Checks for programs. | |
18569462 AD |
1263 | ac_ext=c |
1264 | ac_cpp='$CPP $CPPFLAGS' | |
1265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1268 | if test -n "$ac_tool_prefix"; then | |
1269 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1270 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
5141b016 | 1271 | echo "$as_me:1271: checking for $ac_word" >&5 |
18569462 AD |
1272 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1273 | if test "${ac_cv_prog_CC+set}" = set; then | |
1274 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1275 | else |
1276 | if test -n "$CC"; then | |
1277 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1278 | else | |
5141b016 | 1279 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1280 | ac_dummy="$PATH" |
1281 | for ac_dir in $ac_dummy; do | |
1282 | IFS=$ac_save_IFS | |
1283 | test -z "$ac_dir" && ac_dir=. | |
1284 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1285 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1286 | break | |
1287 | done | |
1288 | ||
705db0b5 AD |
1289 | fi |
1290 | fi | |
18569462 | 1291 | CC=$ac_cv_prog_CC |
705db0b5 | 1292 | if test -n "$CC"; then |
5141b016 | 1293 | echo "$as_me:1293: result: $CC" >&5 |
18569462 | 1294 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1295 | else |
5141b016 | 1296 | echo "$as_me:1296: result: no" >&5 |
18569462 | 1297 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1298 | fi |
1299 | ||
18569462 AD |
1300 | fi |
1301 | if test -z "$ac_cv_prog_CC"; then | |
1302 | ac_ct_CC=$CC | |
1303 | # Extract the first word of "gcc", so it can be a program name with args. | |
1304 | set dummy gcc; ac_word=$2 | |
5141b016 | 1305 | echo "$as_me:1305: checking for $ac_word" >&5 |
18569462 AD |
1306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1307 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1309 | else | |
1310 | if test -n "$ac_ct_CC"; then | |
1311 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1312 | else | |
5141b016 | 1313 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1314 | ac_dummy="$PATH" |
1315 | for ac_dir in $ac_dummy; do | |
1316 | IFS=$ac_save_IFS | |
1317 | test -z "$ac_dir" && ac_dir=. | |
1318 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1319 | ac_cv_prog_ac_ct_CC="gcc" | |
1320 | break | |
1321 | done | |
1322 | ||
705db0b5 AD |
1323 | fi |
1324 | fi | |
18569462 AD |
1325 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1326 | if test -n "$ac_ct_CC"; then | |
5141b016 | 1327 | echo "$as_me:1327: result: $ac_ct_CC" >&5 |
18569462 AD |
1328 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1329 | else | |
5141b016 | 1330 | echo "$as_me:1330: result: no" >&5 |
18569462 | 1331 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1332 | fi |
18569462 AD |
1333 | |
1334 | CC=$ac_ct_CC | |
705db0b5 | 1335 | else |
18569462 | 1336 | CC="$ac_cv_prog_CC" |
705db0b5 AD |
1337 | fi |
1338 | ||
18569462 AD |
1339 | if test -z "$CC"; then |
1340 | if test -n "$ac_tool_prefix"; then | |
1341 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1342 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
5141b016 | 1343 | echo "$as_me:1343: checking for $ac_word" >&5 |
18569462 AD |
1344 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1345 | if test "${ac_cv_prog_CC+set}" = set; then | |
1346 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
1347 | else |
1348 | if test -n "$CC"; then | |
1349 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1350 | else | |
5141b016 | 1351 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1352 | ac_dummy="$PATH" |
1353 | for ac_dir in $ac_dummy; do | |
1354 | IFS=$ac_save_IFS | |
1355 | test -z "$ac_dir" && ac_dir=. | |
1356 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1357 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1358 | break | |
1359 | done | |
1360 | ||
705db0b5 AD |
1361 | fi |
1362 | fi | |
18569462 | 1363 | CC=$ac_cv_prog_CC |
705db0b5 | 1364 | if test -n "$CC"; then |
5141b016 | 1365 | echo "$as_me:1365: result: $CC" >&5 |
18569462 | 1366 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1367 | else |
5141b016 | 1368 | echo "$as_me:1368: result: no" >&5 |
18569462 | 1369 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
1370 | fi |
1371 | ||
18569462 AD |
1372 | fi |
1373 | if test -z "$ac_cv_prog_CC"; then | |
1374 | ac_ct_CC=$CC | |
1375 | # Extract the first word of "cc", so it can be a program name with args. | |
1376 | set dummy cc; ac_word=$2 | |
5141b016 | 1377 | echo "$as_me:1377: checking for $ac_word" >&5 |
18569462 AD |
1378 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1379 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1381 | else | |
1382 | if test -n "$ac_ct_CC"; then | |
1383 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1384 | else | |
5141b016 | 1385 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1386 | ac_dummy="$PATH" |
1387 | for ac_dir in $ac_dummy; do | |
1388 | IFS=$ac_save_IFS | |
1389 | test -z "$ac_dir" && ac_dir=. | |
1390 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1391 | ac_cv_prog_ac_ct_CC="cc" | |
1392 | break | |
1393 | done | |
705db0b5 | 1394 | |
18569462 AD |
1395 | fi |
1396 | fi | |
1397 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1398 | if test -n "$ac_ct_CC"; then | |
5141b016 | 1399 | echo "$as_me:1399: result: $ac_ct_CC" >&5 |
18569462 AD |
1400 | echo "${ECHO_T}$ac_ct_CC" >&6 |
1401 | else | |
5141b016 | 1402 | echo "$as_me:1402: result: no" >&5 |
18569462 AD |
1403 | echo "${ECHO_T}no" >&6 |
1404 | fi | |
705db0b5 | 1405 | |
18569462 AD |
1406 | CC=$ac_ct_CC |
1407 | else | |
1408 | CC="$ac_cv_prog_CC" | |
1409 | fi | |
705db0b5 | 1410 | |
18569462 AD |
1411 | fi |
1412 | if test -z "$CC"; then | |
1413 | # Extract the first word of "cc", so it can be a program name with args. | |
1414 | set dummy cc; ac_word=$2 | |
5141b016 | 1415 | echo "$as_me:1415: checking for $ac_word" >&5 |
18569462 AD |
1416 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1417 | if test "${ac_cv_prog_CC+set}" = set; then | |
1418 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1419 | else | |
1420 | if test -n "$CC"; then | |
1421 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1422 | else | |
1423 | ac_prog_rejected=no | |
5141b016 | 1424 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1425 | ac_dummy="$PATH" |
1426 | for ac_dir in $ac_dummy; do | |
1427 | IFS=$ac_save_IFS | |
1428 | test -z "$ac_dir" && ac_dir=. | |
1429 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1430 | if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then | |
1431 | ac_prog_rejected=yes | |
1432 | continue | |
1433 | fi | |
1434 | ac_cv_prog_CC="cc" | |
1435 | break | |
1436 | done | |
705db0b5 | 1437 | |
18569462 AD |
1438 | if test $ac_prog_rejected = yes; then |
1439 | # We found a bogon in the path, so make sure we never use it. | |
1440 | set dummy $ac_cv_prog_CC | |
1441 | shift | |
1442 | if test $# != 0; then | |
1443 | # We chose a different compiler from the bogus one. | |
1444 | # However, it has the same basename, so the bogon will be chosen | |
1445 | # first if we set CC to just the basename; use the full file name. | |
1446 | shift | |
1447 | set dummy "$ac_dir/$ac_word" ${1+"$@"} | |
1448 | shift | |
1449 | ac_cv_prog_CC="$@" | |
705db0b5 | 1450 | fi |
18569462 AD |
1451 | fi |
1452 | fi | |
1453 | fi | |
1454 | CC=$ac_cv_prog_CC | |
1455 | if test -n "$CC"; then | |
5141b016 | 1456 | echo "$as_me:1456: result: $CC" >&5 |
18569462 | 1457 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1458 | else |
5141b016 | 1459 | echo "$as_me:1459: result: no" >&5 |
18569462 | 1460 | echo "${ECHO_T}no" >&6 |
705db0b5 | 1461 | fi |
705db0b5 | 1462 | |
705db0b5 | 1463 | fi |
18569462 AD |
1464 | if test -z "$CC"; then |
1465 | if test -n "$ac_tool_prefix"; then | |
1466 | for ac_prog in cl | |
1467 | do | |
1468 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1469 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5141b016 | 1470 | echo "$as_me:1470: checking for $ac_word" >&5 |
18569462 AD |
1471 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1472 | if test "${ac_cv_prog_CC+set}" = set; then | |
1473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1474 | else | |
1475 | if test -n "$CC"; then | |
1476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1477 | else | |
5141b016 | 1478 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1479 | ac_dummy="$PATH" |
1480 | for ac_dir in $ac_dummy; do | |
1481 | IFS=$ac_save_IFS | |
1482 | test -z "$ac_dir" && ac_dir=. | |
1483 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1484 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1485 | break | |
1486 | done | |
705db0b5 | 1487 | |
18569462 AD |
1488 | fi |
1489 | fi | |
1490 | CC=$ac_cv_prog_CC | |
1491 | if test -n "$CC"; then | |
5141b016 | 1492 | echo "$as_me:1492: result: $CC" >&5 |
18569462 | 1493 | echo "${ECHO_T}$CC" >&6 |
705db0b5 | 1494 | else |
5141b016 | 1495 | echo "$as_me:1495: result: no" >&5 |
18569462 AD |
1496 | echo "${ECHO_T}no" >&6 |
1497 | fi | |
1498 | ||
1499 | test -n "$CC" && break | |
1500 | done | |
1501 | fi | |
1502 | if test -z "$CC"; then | |
1503 | ac_ct_CC=$CC | |
1504 | for ac_prog in cl | |
1505 | do | |
1506 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1507 | set dummy $ac_prog; ac_word=$2 | |
5141b016 | 1508 | echo "$as_me:1508: checking for $ac_word" >&5 |
18569462 AD |
1509 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
1510 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1512 | else | |
1513 | if test -n "$ac_ct_CC"; then | |
1514 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1515 | else | |
5141b016 | 1516 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
1517 | ac_dummy="$PATH" |
1518 | for ac_dir in $ac_dummy; do | |
1519 | IFS=$ac_save_IFS | |
1520 | test -z "$ac_dir" && ac_dir=. | |
1521 | $as_executable_p "$ac_dir/$ac_word" || continue | |
1522 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1523 | break | |
1524 | done | |
1525 | ||
1526 | fi | |
1527 | fi | |
1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1529 | if test -n "$ac_ct_CC"; then | |
5141b016 | 1530 | echo "$as_me:1530: result: $ac_ct_CC" >&5 |
18569462 | 1531 | echo "${ECHO_T}$ac_ct_CC" >&6 |
705db0b5 | 1532 | else |
5141b016 | 1533 | echo "$as_me:1533: result: no" >&5 |
18569462 AD |
1534 | echo "${ECHO_T}no" >&6 |
1535 | fi | |
1536 | ||
1537 | test -n "$ac_ct_CC" && break | |
1538 | done | |
1539 | ||
1540 | CC=$ac_ct_CC | |
705db0b5 | 1541 | fi |
18569462 | 1542 | |
705db0b5 AD |
1543 | fi |
1544 | ||
5141b016 | 1545 | test -z "$CC" && { { echo "$as_me:1545: error: no acceptable cc found in \$PATH" >&5 |
18569462 AD |
1546 | echo "$as_me: error: no acceptable cc found in \$PATH" >&2;} |
1547 | { (exit 1); exit 1; }; } | |
1548 | ||
5141b016 AD |
1549 | cat >conftest.$ac_ext <<_ACEOF |
1550 | #line 1550 "configure" | |
18569462 AD |
1551 | #include "confdefs.h" |
1552 | ||
1553 | int | |
1554 | main () | |
1555 | { | |
1556 | ||
1557 | ; | |
1558 | return 0; | |
1559 | } | |
1560 | _ACEOF | |
5141b016 AD |
1561 | ac_clean_files_save=$ac_clean_files |
1562 | ac_clean_files="$ac_clean_files a.out a.exe" | |
1563 | # Try to create an executable without -o first, disregard a.out. | |
1564 | # It will help us diagnose broken compiler, and finding out an intuition | |
1565 | # of exeext. | |
1566 | echo "$as_me:1566: checking for C compiler default output" >&5 | |
1567 | echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6 | |
18569462 | 1568 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
5141b016 | 1569 | if { (eval echo "$as_me:1569: \"$ac_link_default\"") >&5 |
18569462 AD |
1570 | (eval $ac_link_default) 2>&5 |
1571 | ac_status=$? | |
5141b016 | 1572 | echo "$as_me:1572: \$? = $ac_status" >&5 |
18569462 AD |
1573 | (exit $ac_status); }; then |
1574 | for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do | |
1575 | case $ac_file in | |
5141b016 AD |
1576 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; |
1577 | a.out ) # We found the default executable, but exeext='' is most | |
1578 | # certainly right. | |
1579 | break;; | |
18569462 AD |
1580 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
1581 | export ac_cv_exeext | |
1582 | break;; | |
1583 | * ) break;; | |
1584 | esac | |
1585 | done | |
1586 | else | |
1587 | echo "$as_me: failed program was:" >&5 | |
1588 | cat conftest.$ac_ext >&5 | |
5141b016 AD |
1589 | { { echo "$as_me:1589: error: C compiler cannot create executables" >&5 |
1590 | echo "$as_me: error: C compiler cannot create executables" >&2;} | |
1591 | { (exit 77); exit 77; }; } | |
1592 | fi | |
1593 | ||
1594 | ac_exeext=$ac_cv_exeext | |
1595 | echo "$as_me:1595: result: $ac_file" >&5 | |
1596 | echo "${ECHO_T}$ac_file" >&6 | |
1597 | ||
1598 | # Check the compiler produces executables we can run. If not, either | |
1599 | # the compiler is broken, or we cross compile. | |
1600 | echo "$as_me:1600: checking whether the C compiler works" >&5 | |
1601 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1602 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1603 | # If not cross compiling, check that we can run a simple program. | |
1604 | if test "$cross_compiling" != yes; then | |
1605 | if { ac_try='./$ac_file' | |
1606 | { (eval echo "$as_me:1606: \"$ac_try\"") >&5 | |
1607 | (eval $ac_try) 2>&5 | |
1608 | ac_status=$? | |
1609 | echo "$as_me:1609: \$? = $ac_status" >&5 | |
1610 | (exit $ac_status); }; }; then | |
1611 | cross_compiling=no | |
1612 | else | |
1613 | if test "$cross_compiling" = maybe; then | |
1614 | cross_compiling=yes | |
1615 | else | |
1616 | { { echo "$as_me:1616: error: cannot run C compiled programs. | |
1617 | If you meant to cross compile, use \`--host'." >&5 | |
1618 | echo "$as_me: error: cannot run C compiled programs. | |
1619 | If you meant to cross compile, use \`--host'." >&2;} | |
1620 | { (exit 1); exit 1; }; } | |
1621 | fi | |
1622 | fi | |
18569462 | 1623 | fi |
5141b016 AD |
1624 | echo "$as_me:1624: result: yes" >&5 |
1625 | echo "${ECHO_T}yes" >&6 | |
18569462 AD |
1626 | |
1627 | rm -f a.out a.exe conftest$ac_cv_exeext | |
5141b016 AD |
1628 | ac_clean_files=$ac_clean_files_save |
1629 | # Check the compiler produces executables we can run. If not, either | |
1630 | # the compiler is broken, or we cross compile. | |
1631 | echo "$as_me:1631: checking whether we are cross compiling" >&5 | |
1632 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1633 | echo "$as_me:1633: result: $cross_compiling" >&5 | |
1634 | echo "${ECHO_T}$cross_compiling" >&6 | |
18569462 | 1635 | |
5141b016 AD |
1636 | echo "$as_me:1636: checking for executable suffix" >&5 |
1637 | echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6 | |
1638 | if { (eval echo "$as_me:1638: \"$ac_link\"") >&5 | |
18569462 AD |
1639 | (eval $ac_link) 2>&5 |
1640 | ac_status=$? | |
5141b016 | 1641 | echo "$as_me:1641: \$? = $ac_status" >&5 |
18569462 AD |
1642 | (exit $ac_status); }; then |
1643 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1644 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1645 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1646 | # `rm'. | |
1647 | for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do | |
1648 | case $ac_file in | |
1649 | *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1650 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1651 | export ac_cv_exeext | |
1652 | break;; | |
1653 | * ) break;; | |
1654 | esac | |
1655 | done | |
705db0b5 | 1656 | else |
5141b016 | 1657 | { { echo "$as_me:1657: error: cannot compute EXEEXT: cannot compile and link" >&5 |
18569462 AD |
1658 | echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;} |
1659 | { (exit 1); exit 1; }; } | |
705db0b5 | 1660 | fi |
705db0b5 | 1661 | |
5141b016 AD |
1662 | rm -f conftest$ac_cv_exeext |
1663 | echo "$as_me:1663: result: $ac_cv_exeext" >&5 | |
18569462 | 1664 | echo "${ECHO_T}$ac_cv_exeext" >&6 |
5141b016 AD |
1665 | |
1666 | rm -f conftest.$ac_ext | |
18569462 AD |
1667 | EXEEXT=$ac_cv_exeext |
1668 | ac_exeext=$EXEEXT | |
5141b016 AD |
1669 | echo "$as_me:1669: checking for object suffix" >&5 |
1670 | echo $ECHO_N "checking for object suffix... $ECHO_C" >&6 | |
1671 | if test "${ac_cv_objext+set}" = set; then | |
1672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1673 | else | |
1674 | cat >conftest.$ac_ext <<_ACEOF | |
1675 | #line 1675 "configure" | |
18569462 AD |
1676 | #include "confdefs.h" |
1677 | ||
1678 | int | |
1679 | main () | |
1680 | { | |
1681 | ||
1682 | ; | |
1683 | return 0; | |
1684 | } | |
1685 | _ACEOF | |
5141b016 AD |
1686 | rm -f conftest.o conftest.obj |
1687 | if { (eval echo "$as_me:1687: \"$ac_compile\"") >&5 | |
1688 | (eval $ac_compile) 2>&5 | |
18569462 | 1689 | ac_status=$? |
5141b016 AD |
1690 | echo "$as_me:1690: \$? = $ac_status" >&5 |
1691 | (exit $ac_status); }; then | |
1692 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1693 | case $ac_file in | |
1694 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;; | |
1695 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1696 | break;; | |
1697 | esac | |
1698 | done | |
18569462 AD |
1699 | else |
1700 | echo "$as_me: failed program was:" >&5 | |
1701 | cat conftest.$ac_ext >&5 | |
5141b016 AD |
1702 | { { echo "$as_me:1702: error: cannot compute OBJEXT: cannot compile" >&5 |
1703 | echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;} | |
1704 | { (exit 1); exit 1; }; } | |
18569462 | 1705 | fi |
18569462 | 1706 | |
5141b016 AD |
1707 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1708 | fi | |
1709 | echo "$as_me:1709: result: $ac_cv_objext" >&5 | |
1710 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1711 | OBJEXT=$ac_cv_objext | |
1712 | ac_objext=$OBJEXT | |
1713 | echo "$as_me:1713: checking whether we are using the GNU C compiler" >&5 | |
18569462 AD |
1714 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
1715 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1716 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1717 | else | |
1718 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1719 | #line 1719 "configure" |
18569462 | 1720 | #include "confdefs.h" |
705db0b5 | 1721 | |
18569462 AD |
1722 | int |
1723 | main () | |
1724 | { | |
1725 | #ifndef __GNUC__ | |
1726 | choke me | |
1727 | #endif | |
1728 | ||
1729 | ; | |
1730 | return 0; | |
1731 | } | |
1732 | _ACEOF | |
1733 | rm -f conftest.$ac_objext | |
5141b016 | 1734 | if { (eval echo "$as_me:1734: \"$ac_compile\"") >&5 |
18569462 AD |
1735 | (eval $ac_compile) 2>&5 |
1736 | ac_status=$? | |
5141b016 | 1737 | echo "$as_me:1737: \$? = $ac_status" >&5 |
18569462 | 1738 | (exit $ac_status); } && |
5141b016 AD |
1739 | { ac_try='test -s conftest.$ac_objext' |
1740 | { (eval echo "$as_me:1740: \"$ac_try\"") >&5 | |
18569462 AD |
1741 | (eval $ac_try) 2>&5 |
1742 | ac_status=$? | |
5141b016 | 1743 | echo "$as_me:1743: \$? = $ac_status" >&5 |
18569462 AD |
1744 | (exit $ac_status); }; }; then |
1745 | ac_compiler_gnu=yes | |
1746 | else | |
1747 | echo "$as_me: failed program was:" >&5 | |
1748 | cat conftest.$ac_ext >&5 | |
1749 | ac_compiler_gnu=no | |
1750 | fi | |
1751 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1752 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
1753 | ||
1754 | fi | |
5141b016 | 1755 | echo "$as_me:1755: result: $ac_cv_c_compiler_gnu" >&5 |
18569462 AD |
1756 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
1757 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
1758 | ac_test_CFLAGS=${CFLAGS+set} | |
1759 | ac_save_CFLAGS=$CFLAGS | |
1760 | CFLAGS="-g" | |
5141b016 | 1761 | echo "$as_me:1761: checking whether $CC accepts -g" >&5 |
18569462 AD |
1762 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
1763 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
1764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1765 | else | |
1766 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1767 | #line 1767 "configure" |
18569462 AD |
1768 | #include "confdefs.h" |
1769 | ||
1770 | int | |
1771 | main () | |
1772 | { | |
1773 | ||
1774 | ; | |
1775 | return 0; | |
1776 | } | |
1777 | _ACEOF | |
1778 | rm -f conftest.$ac_objext | |
5141b016 | 1779 | if { (eval echo "$as_me:1779: \"$ac_compile\"") >&5 |
18569462 AD |
1780 | (eval $ac_compile) 2>&5 |
1781 | ac_status=$? | |
5141b016 | 1782 | echo "$as_me:1782: \$? = $ac_status" >&5 |
18569462 | 1783 | (exit $ac_status); } && |
5141b016 AD |
1784 | { ac_try='test -s conftest.$ac_objext' |
1785 | { (eval echo "$as_me:1785: \"$ac_try\"") >&5 | |
18569462 AD |
1786 | (eval $ac_try) 2>&5 |
1787 | ac_status=$? | |
5141b016 | 1788 | echo "$as_me:1788: \$? = $ac_status" >&5 |
18569462 AD |
1789 | (exit $ac_status); }; }; then |
1790 | ac_cv_prog_cc_g=yes | |
1791 | else | |
1792 | echo "$as_me: failed program was:" >&5 | |
1793 | cat conftest.$ac_ext >&5 | |
1794 | ac_cv_prog_cc_g=no | |
1795 | fi | |
1796 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1797 | fi | |
5141b016 | 1798 | echo "$as_me:1798: result: $ac_cv_prog_cc_g" >&5 |
18569462 | 1799 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
705db0b5 | 1800 | if test "$ac_test_CFLAGS" = set; then |
18569462 | 1801 | CFLAGS=$ac_save_CFLAGS |
705db0b5 AD |
1802 | elif test $ac_cv_prog_cc_g = yes; then |
1803 | if test "$GCC" = yes; then | |
1804 | CFLAGS="-g -O2" | |
1805 | else | |
1806 | CFLAGS="-g" | |
1807 | fi | |
1808 | else | |
1809 | if test "$GCC" = yes; then | |
1810 | CFLAGS="-O2" | |
1811 | else | |
1812 | CFLAGS= | |
1813 | fi | |
1814 | fi | |
18569462 AD |
1815 | # Some people use a C++ compiler to compile C. Since we use `exit', |
1816 | # in C++ we need to declare it. In case someone uses the same compiler | |
1817 | # for both compiling C and C++ we need to have the C++ compiler decide | |
1818 | # the declaration of exit, since it's the most demanding environment. | |
1819 | cat >conftest.$ac_ext <<_ACEOF | |
1820 | #ifndef __cplusplus | |
1821 | choke me | |
1822 | #endif | |
1823 | _ACEOF | |
1824 | rm -f conftest.$ac_objext | |
5141b016 | 1825 | if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5 |
18569462 AD |
1826 | (eval $ac_compile) 2>&5 |
1827 | ac_status=$? | |
5141b016 | 1828 | echo "$as_me:1828: \$? = $ac_status" >&5 |
18569462 | 1829 | (exit $ac_status); } && |
5141b016 AD |
1830 | { ac_try='test -s conftest.$ac_objext' |
1831 | { (eval echo "$as_me:1831: \"$ac_try\"") >&5 | |
18569462 AD |
1832 | (eval $ac_try) 2>&5 |
1833 | ac_status=$? | |
5141b016 | 1834 | echo "$as_me:1834: \$? = $ac_status" >&5 |
18569462 AD |
1835 | (exit $ac_status); }; }; then |
1836 | for ac_declaration in \ | |
1837 | ''\ | |
1838 | '#include <stdlib.h>' \ | |
1839 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
1840 | 'extern "C" void std::exit (int); using std::exit;' \ | |
1841 | 'extern "C" void exit (int) throw ();' \ | |
1842 | 'extern "C" void exit (int);' \ | |
1843 | 'void exit (int);' | |
1844 | do | |
1845 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1846 | #line 1846 "configure" |
18569462 AD |
1847 | #include "confdefs.h" |
1848 | #include <stdlib.h> | |
1849 | $ac_declaration | |
1850 | int | |
1851 | main () | |
1852 | { | |
1853 | exit (42); | |
1854 | ; | |
1855 | return 0; | |
1856 | } | |
1857 | _ACEOF | |
1858 | rm -f conftest.$ac_objext | |
5141b016 | 1859 | if { (eval echo "$as_me:1859: \"$ac_compile\"") >&5 |
18569462 AD |
1860 | (eval $ac_compile) 2>&5 |
1861 | ac_status=$? | |
5141b016 | 1862 | echo "$as_me:1862: \$? = $ac_status" >&5 |
18569462 | 1863 | (exit $ac_status); } && |
5141b016 AD |
1864 | { ac_try='test -s conftest.$ac_objext' |
1865 | { (eval echo "$as_me:1865: \"$ac_try\"") >&5 | |
18569462 AD |
1866 | (eval $ac_try) 2>&5 |
1867 | ac_status=$? | |
5141b016 | 1868 | echo "$as_me:1868: \$? = $ac_status" >&5 |
18569462 AD |
1869 | (exit $ac_status); }; }; then |
1870 | : | |
1871 | else | |
1872 | echo "$as_me: failed program was:" >&5 | |
1873 | cat conftest.$ac_ext >&5 | |
1874 | continue | |
1875 | fi | |
1876 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1877 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1878 | #line 1878 "configure" |
18569462 AD |
1879 | #include "confdefs.h" |
1880 | $ac_declaration | |
1881 | int | |
1882 | main () | |
1883 | { | |
1884 | exit (42); | |
1885 | ; | |
1886 | return 0; | |
1887 | } | |
1888 | _ACEOF | |
1889 | rm -f conftest.$ac_objext | |
5141b016 | 1890 | if { (eval echo "$as_me:1890: \"$ac_compile\"") >&5 |
18569462 AD |
1891 | (eval $ac_compile) 2>&5 |
1892 | ac_status=$? | |
5141b016 | 1893 | echo "$as_me:1893: \$? = $ac_status" >&5 |
18569462 | 1894 | (exit $ac_status); } && |
5141b016 AD |
1895 | { ac_try='test -s conftest.$ac_objext' |
1896 | { (eval echo "$as_me:1896: \"$ac_try\"") >&5 | |
18569462 AD |
1897 | (eval $ac_try) 2>&5 |
1898 | ac_status=$? | |
5141b016 | 1899 | echo "$as_me:1899: \$? = $ac_status" >&5 |
18569462 AD |
1900 | (exit $ac_status); }; }; then |
1901 | break | |
1902 | else | |
1903 | echo "$as_me: failed program was:" >&5 | |
1904 | cat conftest.$ac_ext >&5 | |
1905 | fi | |
1906 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1907 | done | |
1908 | echo '#ifdef __cplusplus' >>confdefs.h | |
1909 | echo $ac_declaration >>confdefs.h | |
1910 | echo '#endif' >>confdefs.h | |
1911 | ||
1912 | else | |
1913 | echo "$as_me: failed program was:" >&5 | |
1914 | cat conftest.$ac_ext >&5 | |
1915 | fi | |
1916 | rm -f conftest.$ac_objext conftest.$ac_ext | |
1917 | ac_ext=c | |
1918 | ac_cpp='$CPP $CPPFLAGS' | |
1919 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1920 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1921 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 1922 | |
18569462 AD |
1923 | ac_ext=c |
1924 | ac_cpp='$CPP $CPPFLAGS' | |
1925 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1926 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1927 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5141b016 | 1928 | echo "$as_me:1928: checking how to run the C preprocessor" >&5 |
18569462 | 1929 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 |
705db0b5 AD |
1930 | # On Suns, sometimes $CPP names a directory. |
1931 | if test -n "$CPP" && test -d "$CPP"; then | |
1932 | CPP= | |
1933 | fi | |
1934 | if test -z "$CPP"; then | |
18569462 AD |
1935 | if test "${ac_cv_prog_CPP+set}" = set; then |
1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1937 | else | |
1938 | # Double quotes because CPP needs to be expanded | |
1939 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
1940 | do | |
1941 | # Use a header file that comes with gcc, so configuring glibc | |
1942 | # with a fresh cross-compiler works. | |
1943 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
1944 | # not just through cpp. "Syntax error" is here to catch this case. | |
1945 | ac_c_preproc_warn_flag=maybe | |
1946 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1947 | #line 1947 "configure" |
705db0b5 AD |
1948 | #include "confdefs.h" |
1949 | #include <assert.h> | |
18569462 AD |
1950 | Syntax error |
1951 | _ACEOF | |
5141b016 | 1952 | if { (eval echo "$as_me:1952: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
1953 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
1954 | ac_status=$? | |
1955 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1956 | rm -f conftest.er1 | |
1957 | cat conftest.err >&5 | |
5141b016 | 1958 | echo "$as_me:1958: \$? = $ac_status" >&5 |
18569462 AD |
1959 | (exit $ac_status); }; then |
1960 | if test -s conftest.err; then | |
1961 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1962 | else | |
1963 | ac_cpp_err= | |
1964 | fi | |
705db0b5 | 1965 | else |
18569462 AD |
1966 | ac_cpp_err=yes |
1967 | fi | |
1968 | if test -z "$ac_cpp_err"; then | |
1969 | # Now check whether non-existent headers can be detected and how | |
1970 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
1971 | if test -z "$ac_cpp_err"; then | |
1972 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 1973 | #line 1973 "configure" |
705db0b5 | 1974 | #include "confdefs.h" |
18569462 AD |
1975 | #include <ac_nonexistent.h> |
1976 | _ACEOF | |
5141b016 | 1977 | if { (eval echo "$as_me:1977: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
1978 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
1979 | ac_status=$? | |
1980 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
1981 | rm -f conftest.er1 | |
1982 | cat conftest.err >&5 | |
5141b016 | 1983 | echo "$as_me:1983: \$? = $ac_status" >&5 |
18569462 AD |
1984 | (exit $ac_status); }; then |
1985 | if test -s conftest.err; then | |
1986 | ac_cpp_err=$ac_c_preproc_warn_flag | |
1987 | else | |
1988 | ac_cpp_err= | |
1989 | fi | |
1990 | else | |
1991 | ac_cpp_err=yes | |
1992 | fi | |
1993 | if test -z "$ac_cpp_err"; then | |
1994 | # cannot detect missing includes at all | |
1995 | ac_cpp_err=yes | |
1996 | else | |
1997 | echo "$as_me: failed program was:" >&5 | |
1998 | cat conftest.$ac_ext >&5 | |
1999 | if test "x$ac_cpp_err" = xmaybe; then | |
2000 | ac_c_preproc_warn_flag=yes | |
2001 | else | |
2002 | ac_c_preproc_warn_flag= | |
2003 | fi | |
2004 | ac_cpp_err= | |
2005 | fi | |
2006 | rm -f conftest.err conftest.$ac_ext | |
2007 | fi | |
705db0b5 | 2008 | else |
18569462 | 2009 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 2010 | cat conftest.$ac_ext >&5 |
18569462 AD |
2011 | |
2012 | fi | |
2013 | rm -f conftest.err conftest.$ac_ext | |
2014 | if test -z "$ac_cpp_err"; then | |
2015 | break | |
2016 | fi | |
2017 | done | |
2018 | ac_cv_prog_CPP=$CPP | |
2019 | ||
2020 | fi | |
2021 | CPP=$ac_cv_prog_CPP | |
2022 | else | |
2023 | # Use a header file that comes with gcc, so configuring glibc | |
2024 | # with a fresh cross-compiler works. | |
2025 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2026 | # not just through cpp. "Syntax error" is here to catch this case. | |
2027 | ac_c_preproc_warn_flag=maybe | |
2028 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 2029 | #line 2029 "configure" |
705db0b5 AD |
2030 | #include "confdefs.h" |
2031 | #include <assert.h> | |
18569462 AD |
2032 | Syntax error |
2033 | _ACEOF | |
5141b016 | 2034 | if { (eval echo "$as_me:2034: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
2035 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
2036 | ac_status=$? | |
2037 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2038 | rm -f conftest.er1 | |
2039 | cat conftest.err >&5 | |
5141b016 | 2040 | echo "$as_me:2040: \$? = $ac_status" >&5 |
18569462 AD |
2041 | (exit $ac_status); }; then |
2042 | if test -s conftest.err; then | |
2043 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2044 | else | |
2045 | ac_cpp_err= | |
2046 | fi | |
705db0b5 | 2047 | else |
18569462 | 2048 | ac_cpp_err=yes |
705db0b5 | 2049 | fi |
18569462 AD |
2050 | if test -z "$ac_cpp_err"; then |
2051 | # Now check whether non-existent headers can be detected and how | |
2052 | # Skip if ac_cpp_err is not empty - ac_cpp is broken | |
2053 | if test -z "$ac_cpp_err"; then | |
2054 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 2055 | #line 2055 "configure" |
18569462 AD |
2056 | #include "confdefs.h" |
2057 | #include <ac_nonexistent.h> | |
2058 | _ACEOF | |
5141b016 | 2059 | if { (eval echo "$as_me:2059: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
2060 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
2061 | ac_status=$? | |
2062 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2063 | rm -f conftest.er1 | |
2064 | cat conftest.err >&5 | |
5141b016 | 2065 | echo "$as_me:2065: \$? = $ac_status" >&5 |
18569462 AD |
2066 | (exit $ac_status); }; then |
2067 | if test -s conftest.err; then | |
2068 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2069 | else | |
2070 | ac_cpp_err= | |
2071 | fi | |
2072 | else | |
2073 | ac_cpp_err=yes | |
705db0b5 | 2074 | fi |
18569462 AD |
2075 | if test -z "$ac_cpp_err"; then |
2076 | # cannot detect missing includes at all | |
2077 | ac_cpp_err=yes | |
2078 | else | |
2079 | echo "$as_me: failed program was:" >&5 | |
2080 | cat conftest.$ac_ext >&5 | |
2081 | if test "x$ac_cpp_err" = xmaybe; then | |
2082 | ac_c_preproc_warn_flag=yes | |
2083 | else | |
2084 | ac_c_preproc_warn_flag= | |
2085 | fi | |
2086 | ac_cpp_err= | |
705db0b5 | 2087 | fi |
18569462 | 2088 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 2089 | fi |
705db0b5 | 2090 | else |
18569462 AD |
2091 | echo "$as_me: failed program was:" >&5 |
2092 | cat conftest.$ac_ext >&5 | |
2093 | ||
705db0b5 | 2094 | fi |
18569462 AD |
2095 | rm -f conftest.err conftest.$ac_ext |
2096 | ac_cv_prog_CPP=$CPP | |
2097 | fi | |
5141b016 | 2098 | echo "$as_me:2098: result: $CPP" >&5 |
18569462 AD |
2099 | echo "${ECHO_T}$CPP" >&6 |
2100 | if test -n "$ac_cpp_err"; then | |
5141b016 | 2101 | { { echo "$as_me:2101: error: C preprocessor \"$CPP\" fails sanity check" >&5 |
18569462 AD |
2102 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} |
2103 | { (exit 1); exit 1; }; } | |
2104 | fi | |
2105 | ac_ext=c | |
2106 | ac_cpp='$CPP $CPPFLAGS' | |
2107 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2108 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2109 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
705db0b5 | 2110 | |
5141b016 | 2111 | echo "$as_me:2111: checking for minix/config.h" >&5 |
18569462 AD |
2112 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 |
2113 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
2114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2115 | else |
18569462 | 2116 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2117 | #line 2117 "configure" |
705db0b5 AD |
2118 | #include "confdefs.h" |
2119 | #include <minix/config.h> | |
18569462 | 2120 | _ACEOF |
5141b016 | 2121 | if { (eval echo "$as_me:2121: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
2122 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
2123 | ac_status=$? | |
2124 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2125 | rm -f conftest.er1 | |
2126 | cat conftest.err >&5 | |
5141b016 | 2127 | echo "$as_me:2127: \$? = $ac_status" >&5 |
18569462 AD |
2128 | (exit $ac_status); }; then |
2129 | if test -s conftest.err; then | |
2130 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2131 | else | |
2132 | ac_cpp_err= | |
2133 | fi | |
2134 | else | |
2135 | ac_cpp_err=yes | |
2136 | fi | |
2137 | if test -z "$ac_cpp_err"; then | |
2138 | ac_cv_header_minix_config_h=yes | |
2139 | else | |
2140 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 2141 | cat conftest.$ac_ext >&5 |
18569462 | 2142 | ac_cv_header_minix_config_h=no |
705db0b5 | 2143 | fi |
18569462 | 2144 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 2145 | fi |
5141b016 | 2146 | echo "$as_me:2146: result: $ac_cv_header_minix_config_h" >&5 |
18569462 AD |
2147 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 |
2148 | if test $ac_cv_header_minix_config_h = yes; then | |
705db0b5 AD |
2149 | MINIX=yes |
2150 | else | |
18569462 | 2151 | MINIX= |
705db0b5 AD |
2152 | fi |
2153 | ||
2154 | if test "$MINIX" = yes; then | |
18569462 AD |
2155 | |
2156 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2157 | #define _POSIX_SOURCE 1 |
2158 | EOF | |
2159 | ||
18569462 | 2160 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2161 | #define _POSIX_1_SOURCE 2 |
2162 | EOF | |
2163 | ||
18569462 | 2164 | cat >>confdefs.h <<\EOF |
705db0b5 AD |
2165 | #define _MINIX 1 |
2166 | EOF | |
2167 | ||
2168 | fi | |
2169 | ||
5141b016 | 2170 | echo "$as_me:2170: checking for POSIXized ISC" >&5 |
18569462 | 2171 | echo $ECHO_N "checking for POSIXized ISC... $ECHO_C" >&6 |
705db0b5 | 2172 | if test -d /etc/conf/kconfig.d && |
18569462 | 2173 | grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 |
705db0b5 | 2174 | then |
5141b016 | 2175 | echo "$as_me:2175: result: yes" >&5 |
18569462 | 2176 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2177 | ISC=yes # If later tests want to check for ISC. |
18569462 AD |
2178 | |
2179 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2180 | #define _POSIX_SOURCE 1 |
2181 | EOF | |
2182 | ||
2183 | if test "$GCC" = yes; then | |
2184 | CC="$CC -posix" | |
2185 | else | |
2186 | CC="$CC -Xp" | |
2187 | fi | |
2188 | else | |
5141b016 | 2189 | echo "$as_me:2189: result: no" >&5 |
18569462 | 2190 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
2191 | ISC= |
2192 | fi | |
2193 | ||
5141b016 | 2194 | echo "$as_me:2194: checking for ${CC-cc} option to accept ANSI C" >&5 |
18569462 AD |
2195 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6 |
2196 | if test "${am_cv_prog_cc_stdc+set}" = set; then | |
2197 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2198 | else |
2199 | am_cv_prog_cc_stdc=no | |
2200 | ac_save_CC="$CC" | |
2201 | # Don't try gcc -ansi; that turns off useful extensions and | |
2202 | # breaks some systems' header files. | |
2203 | # AIX -qlanglvl=ansi | |
2204 | # Ultrix and OSF/1 -std1 | |
2205 | # HP-UX -Aa -D_HPUX_SOURCE | |
2206 | # SVR4 -Xc -D__EXTENSIONS__ | |
2207 | for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2208 | do | |
2209 | CC="$ac_save_CC $ac_arg" | |
18569462 | 2210 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2211 | #line 2211 "configure" |
705db0b5 AD |
2212 | #include "confdefs.h" |
2213 | #include <stdarg.h> | |
2214 | #include <stdio.h> | |
2215 | #include <sys/types.h> | |
2216 | #include <sys/stat.h> | |
2217 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2218 | struct buf { int x; }; | |
2219 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2220 | static char *e (p, i) | |
2221 | char **p; | |
2222 | int i; | |
2223 | { | |
2224 | return p[i]; | |
2225 | } | |
2226 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2227 | { | |
2228 | char *s; | |
2229 | va_list v; | |
2230 | va_start (v,p); | |
2231 | s = g (p, va_arg (v,int)); | |
2232 | va_end (v); | |
2233 | return s; | |
2234 | } | |
2235 | int test (int i, double x); | |
2236 | struct s1 {int (*f) (int a);}; | |
2237 | struct s2 {int (*f) (double a);}; | |
2238 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2239 | int argc; | |
2240 | char **argv; | |
2241 | ||
18569462 AD |
2242 | int |
2243 | main () | |
2244 | { | |
705db0b5 AD |
2245 | |
2246 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2247 | ||
18569462 AD |
2248 | ; |
2249 | return 0; | |
2250 | } | |
2251 | _ACEOF | |
2252 | rm -f conftest.$ac_objext | |
5141b016 | 2253 | if { (eval echo "$as_me:2253: \"$ac_compile\"") >&5 |
18569462 AD |
2254 | (eval $ac_compile) 2>&5 |
2255 | ac_status=$? | |
5141b016 | 2256 | echo "$as_me:2256: \$? = $ac_status" >&5 |
18569462 | 2257 | (exit $ac_status); } && |
5141b016 AD |
2258 | { ac_try='test -s conftest.$ac_objext' |
2259 | { (eval echo "$as_me:2259: \"$ac_try\"") >&5 | |
18569462 AD |
2260 | (eval $ac_try) 2>&5 |
2261 | ac_status=$? | |
5141b016 | 2262 | echo "$as_me:2262: \$? = $ac_status" >&5 |
18569462 | 2263 | (exit $ac_status); }; }; then |
705db0b5 AD |
2264 | am_cv_prog_cc_stdc="$ac_arg"; break |
2265 | else | |
18569462 AD |
2266 | echo "$as_me: failed program was:" >&5 |
2267 | cat conftest.$ac_ext >&5 | |
705db0b5 | 2268 | fi |
18569462 | 2269 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2270 | done |
2271 | CC="$ac_save_CC" | |
2272 | ||
2273 | fi | |
2274 | ||
2275 | if test -z "$am_cv_prog_cc_stdc"; then | |
5141b016 | 2276 | echo "$as_me:2276: result: none needed" >&5 |
18569462 | 2277 | echo "${ECHO_T}none needed" >&6 |
705db0b5 | 2278 | else |
5141b016 | 2279 | echo "$as_me:2279: result: $am_cv_prog_cc_stdc" >&5 |
18569462 | 2280 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6 |
705db0b5 AD |
2281 | fi |
2282 | case "x$am_cv_prog_cc_stdc" in | |
2283 | x|xno) ;; | |
2284 | *) CC="$CC $am_cv_prog_cc_stdc" ;; | |
2285 | esac | |
2286 | ||
2287 | # Find a good install program. We prefer a C program (faster), | |
2288 | # so one script is as good as another. But avoid the broken or | |
2289 | # incompatible versions: | |
2290 | # SysV /etc/install, /usr/sbin/install | |
2291 | # SunOS /usr/etc/install | |
2292 | # IRIX /sbin/install | |
2293 | # AIX /bin/install | |
18569462 | 2294 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
705db0b5 AD |
2295 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2296 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2297 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2298 | # ./install, which can be erroneously created by make from ./install.sh. | |
5141b016 | 2299 | echo "$as_me:2299: checking for a BSD compatible install" >&5 |
18569462 | 2300 | echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6 |
705db0b5 | 2301 | if test -z "$INSTALL"; then |
18569462 AD |
2302 | if test "${ac_cv_path_install+set}" = set; then |
2303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2304 | else |
5141b016 | 2305 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
705db0b5 | 2306 | for ac_dir in $PATH; do |
5141b016 | 2307 | IFS=$ac_save_IFS |
705db0b5 | 2308 | # Account for people who put trailing slashes in PATH elements. |
18569462 AD |
2309 | case $ac_dir/ in |
2310 | / | ./ | .// | /cC/* \ | |
2311 | | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \ | |
2312 | | /usr/ucb/* ) ;; | |
705db0b5 AD |
2313 | *) |
2314 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2315 | # Don't use installbsd from OSF since it installs stuff as root | |
2316 | # by default. | |
2317 | for ac_prog in ginstall scoinst install; do | |
5141b016 | 2318 | if $as_executable_p "$ac_dir/$ac_prog"; then |
705db0b5 | 2319 | if test $ac_prog = install && |
18569462 | 2320 | grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then |
705db0b5 AD |
2321 | # AIX install. It has an incompatible calling convention. |
2322 | : | |
18569462 AD |
2323 | elif test $ac_prog = install && |
2324 | grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then | |
2325 | # program-specific install script used by HP pwplus--don't use. | |
2326 | : | |
705db0b5 AD |
2327 | else |
2328 | ac_cv_path_install="$ac_dir/$ac_prog -c" | |
2329 | break 2 | |
2330 | fi | |
2331 | fi | |
2332 | done | |
2333 | ;; | |
2334 | esac | |
2335 | done | |
705db0b5 AD |
2336 | |
2337 | fi | |
2338 | if test "${ac_cv_path_install+set}" = set; then | |
18569462 | 2339 | INSTALL=$ac_cv_path_install |
705db0b5 AD |
2340 | else |
2341 | # As a last resort, use the slow shell script. We don't cache a | |
2342 | # path for INSTALL within a source directory, because that will | |
2343 | # break other packages using the cache if that directory is | |
2344 | # removed, or if the path is relative. | |
18569462 | 2345 | INSTALL=$ac_install_sh |
705db0b5 AD |
2346 | fi |
2347 | fi | |
5141b016 | 2348 | echo "$as_me:2348: result: $INSTALL" >&5 |
18569462 | 2349 | echo "${ECHO_T}$INSTALL" >&6 |
705db0b5 AD |
2350 | |
2351 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2352 | # It thinks the first close brace ends the variable substitution. | |
2353 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2354 | ||
18569462 | 2355 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
705db0b5 AD |
2356 | |
2357 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2358 | ||
18569462 AD |
2359 | if test -n "$ac_tool_prefix"; then |
2360 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2361 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5141b016 | 2362 | echo "$as_me:2362: checking for $ac_word" >&5 |
18569462 AD |
2363 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2364 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2366 | else |
2367 | if test -n "$RANLIB"; then | |
2368 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2369 | else | |
5141b016 | 2370 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2371 | ac_dummy="$PATH" |
2372 | for ac_dir in $ac_dummy; do | |
2373 | IFS=$ac_save_IFS | |
2374 | test -z "$ac_dir" && ac_dir=. | |
2375 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2376 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2377 | break | |
2378 | done | |
2379 | ||
705db0b5 AD |
2380 | fi |
2381 | fi | |
18569462 | 2382 | RANLIB=$ac_cv_prog_RANLIB |
705db0b5 | 2383 | if test -n "$RANLIB"; then |
5141b016 | 2384 | echo "$as_me:2384: result: $RANLIB" >&5 |
18569462 AD |
2385 | echo "${ECHO_T}$RANLIB" >&6 |
2386 | else | |
5141b016 | 2387 | echo "$as_me:2387: result: no" >&5 |
18569462 AD |
2388 | echo "${ECHO_T}no" >&6 |
2389 | fi | |
2390 | ||
2391 | fi | |
2392 | if test -z "$ac_cv_prog_RANLIB"; then | |
2393 | ac_ct_RANLIB=$RANLIB | |
2394 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2395 | set dummy ranlib; ac_word=$2 | |
5141b016 | 2396 | echo "$as_me:2396: checking for $ac_word" >&5 |
18569462 AD |
2397 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2398 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2399 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2400 | else | |
2401 | if test -n "$ac_ct_RANLIB"; then | |
2402 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2403 | else | |
5141b016 | 2404 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2405 | ac_dummy="$PATH" |
2406 | for ac_dir in $ac_dummy; do | |
2407 | IFS=$ac_save_IFS | |
2408 | test -z "$ac_dir" && ac_dir=. | |
2409 | $as_executable_p "$ac_dir/$ac_word" || continue | |
2410 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2411 | break | |
2412 | done | |
2413 | ||
2414 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2415 | fi | |
2416 | fi | |
2417 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2418 | if test -n "$ac_ct_RANLIB"; then | |
5141b016 | 2419 | echo "$as_me:2419: result: $ac_ct_RANLIB" >&5 |
18569462 AD |
2420 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 |
2421 | else | |
5141b016 | 2422 | echo "$as_me:2422: result: no" >&5 |
18569462 AD |
2423 | echo "${ECHO_T}no" >&6 |
2424 | fi | |
2425 | ||
2426 | RANLIB=$ac_ct_RANLIB | |
705db0b5 | 2427 | else |
18569462 | 2428 | RANLIB="$ac_cv_prog_RANLIB" |
705db0b5 AD |
2429 | fi |
2430 | ||
2431 | # GNU M4 is needed to build the testsuite. | |
2432 | for ac_prog in gm4 gnum4 m4 | |
2433 | do | |
18569462 | 2434 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
705db0b5 | 2435 | set dummy $ac_prog; ac_word=$2 |
5141b016 | 2436 | echo "$as_me:2436: checking for $ac_word" >&5 |
18569462 AD |
2437 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
2438 | if test "${ac_cv_path_M4+set}" = set; then | |
2439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2440 | else |
18569462 AD |
2441 | case $M4 in |
2442 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
2443 | ac_cv_path_M4="$M4" # Let the user override the test with a path. |
2444 | ;; | |
705db0b5 | 2445 | *) |
5141b016 | 2446 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
2447 | ac_dummy="$PATH" |
2448 | for ac_dir in $ac_dummy; do | |
2449 | IFS=$ac_save_IFS | |
2450 | test -z "$ac_dir" && ac_dir=. | |
2451 | if $as_executable_p "$ac_dir/$ac_word"; then | |
2452 | ac_cv_path_M4="$ac_dir/$ac_word" | |
2453 | break | |
2454 | fi | |
2455 | done | |
2456 | ||
705db0b5 AD |
2457 | ;; |
2458 | esac | |
2459 | fi | |
18569462 AD |
2460 | M4=$ac_cv_path_M4 |
2461 | ||
705db0b5 | 2462 | if test -n "$M4"; then |
5141b016 | 2463 | echo "$as_me:2463: result: $M4" >&5 |
18569462 | 2464 | echo "${ECHO_T}$M4" >&6 |
705db0b5 | 2465 | else |
5141b016 | 2466 | echo "$as_me:2466: result: no" >&5 |
18569462 | 2467 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
2468 | fi |
2469 | ||
18569462 | 2470 | test -n "$M4" && break |
705db0b5 AD |
2471 | done |
2472 | test -n "$M4" || M4="m4" | |
2473 | ||
5141b016 | 2474 | echo "$as_me:2474: checking whether m4 supports frozen files" >&5 |
18569462 AD |
2475 | echo $ECHO_N "checking whether m4 supports frozen files... $ECHO_C" >&6 |
2476 | if test "${ac_cv_prog_gnu_m4+set}" = set; then | |
2477 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
2478 | else |
2479 | ac_cv_prog_gnu_m4=no | |
2480 | if test x"$M4" != x; then | |
2481 | case `$M4 --help < /dev/null 2>&1` in | |
2482 | *reload-state*) ac_cv_prog_gnu_m4=yes ;; | |
2483 | esac | |
2484 | fi | |
2485 | fi | |
5141b016 | 2486 | echo "$as_me:2486: result: $ac_cv_prog_gnu_m4" >&5 |
18569462 | 2487 | echo "${ECHO_T}$ac_cv_prog_gnu_m4" >&6 |
705db0b5 AD |
2488 | if test "$ac_cv_prog_gnu_m4" != yes; then |
2489 | missing_dir=`cd $ac_aux_dir && pwd` | |
2490 | M4="$missing_dir/missing m4" | |
2491 | fi | |
2492 | ||
2493 | # Check whether --enable-gcc-warnings or --disable-gcc-warnings was given. | |
2494 | if test "${enable_gcc_warnings+set}" = set; then | |
2495 | enableval="$enable_gcc_warnings" | |
2496 | case "${enableval}" in | |
2497 | yes|no) ;; | |
5141b016 | 2498 | *) { { echo "$as_me:2498: error: bad value ${enableval} for gcc-warnings option" >&5 |
18569462 AD |
2499 | echo "$as_me: error: bad value ${enableval} for gcc-warnings option" >&2;} |
2500 | { (exit 1); exit 1; }; } ;; | |
705db0b5 AD |
2501 | esac |
2502 | ||
2503 | else | |
2504 | enableval=no | |
2505 | ||
18569462 | 2506 | fi; |
705db0b5 | 2507 | if test "${enableval}" = yes; then |
5141b016 | 2508 | echo "$as_me:2508: checking whether compiler accepts -Wall" >&5 |
18569462 | 2509 | echo $ECHO_N "checking whether compiler accepts -Wall... $ECHO_C" >&6 |
705db0b5 AD |
2510 | |
2511 | ac_save_CFLAGS="$CFLAGS" | |
2512 | CFLAGS="$CFLAGS -Wall" | |
18569462 | 2513 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2514 | #line 2514 "configure" |
705db0b5 AD |
2515 | #include "confdefs.h" |
2516 | ||
18569462 AD |
2517 | int |
2518 | main () | |
2519 | { | |
705db0b5 | 2520 | int x; |
18569462 AD |
2521 | ; |
2522 | return 0; | |
2523 | } | |
2524 | _ACEOF | |
2525 | rm -f conftest.$ac_objext | |
5141b016 | 2526 | if { (eval echo "$as_me:2526: \"$ac_compile\"") >&5 |
18569462 AD |
2527 | (eval $ac_compile) 2>&5 |
2528 | ac_status=$? | |
5141b016 | 2529 | echo "$as_me:2529: \$? = $ac_status" >&5 |
18569462 | 2530 | (exit $ac_status); } && |
5141b016 AD |
2531 | { ac_try='test -s conftest.$ac_objext' |
2532 | { (eval echo "$as_me:2532: \"$ac_try\"") >&5 | |
18569462 AD |
2533 | (eval $ac_try) 2>&5 |
2534 | ac_status=$? | |
5141b016 | 2535 | echo "$as_me:2535: \$? = $ac_status" >&5 |
18569462 | 2536 | (exit $ac_status); }; }; then |
705db0b5 | 2537 | WARNING_CFLAGS="$WARNING_CFLAGS -Wall" |
5141b016 | 2538 | echo "$as_me:2538: result: yes" >&5 |
18569462 | 2539 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2540 | else |
18569462 AD |
2541 | echo "$as_me: failed program was:" >&5 |
2542 | cat conftest.$ac_ext >&5 | |
5141b016 | 2543 | echo "$as_me:2543: result: no" >&5 |
18569462 | 2544 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2545 | fi |
18569462 | 2546 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2547 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2548 | echo "$as_me:2548: checking whether compiler accepts -W" >&5 |
18569462 | 2549 | echo $ECHO_N "checking whether compiler accepts -W... $ECHO_C" >&6 |
705db0b5 AD |
2550 | |
2551 | ac_save_CFLAGS="$CFLAGS" | |
2552 | CFLAGS="$CFLAGS -W" | |
18569462 | 2553 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2554 | #line 2554 "configure" |
705db0b5 AD |
2555 | #include "confdefs.h" |
2556 | ||
18569462 AD |
2557 | int |
2558 | main () | |
2559 | { | |
705db0b5 | 2560 | int x; |
18569462 AD |
2561 | ; |
2562 | return 0; | |
2563 | } | |
2564 | _ACEOF | |
2565 | rm -f conftest.$ac_objext | |
5141b016 | 2566 | if { (eval echo "$as_me:2566: \"$ac_compile\"") >&5 |
18569462 AD |
2567 | (eval $ac_compile) 2>&5 |
2568 | ac_status=$? | |
5141b016 | 2569 | echo "$as_me:2569: \$? = $ac_status" >&5 |
18569462 | 2570 | (exit $ac_status); } && |
5141b016 AD |
2571 | { ac_try='test -s conftest.$ac_objext' |
2572 | { (eval echo "$as_me:2572: \"$ac_try\"") >&5 | |
18569462 AD |
2573 | (eval $ac_try) 2>&5 |
2574 | ac_status=$? | |
5141b016 | 2575 | echo "$as_me:2575: \$? = $ac_status" >&5 |
18569462 | 2576 | (exit $ac_status); }; }; then |
705db0b5 | 2577 | WARNING_CFLAGS="$WARNING_CFLAGS -W" |
5141b016 | 2578 | echo "$as_me:2578: result: yes" >&5 |
18569462 | 2579 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2580 | else |
18569462 AD |
2581 | echo "$as_me: failed program was:" >&5 |
2582 | cat conftest.$ac_ext >&5 | |
5141b016 | 2583 | echo "$as_me:2583: result: no" >&5 |
18569462 | 2584 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2585 | fi |
18569462 | 2586 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2587 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2588 | echo "$as_me:2588: checking whether compiler accepts -Wbad-function-cast" >&5 |
18569462 | 2589 | echo $ECHO_N "checking whether compiler accepts -Wbad-function-cast... $ECHO_C" >&6 |
705db0b5 AD |
2590 | |
2591 | ac_save_CFLAGS="$CFLAGS" | |
2592 | CFLAGS="$CFLAGS -Wbad-function-cast" | |
18569462 | 2593 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2594 | #line 2594 "configure" |
705db0b5 AD |
2595 | #include "confdefs.h" |
2596 | ||
18569462 AD |
2597 | int |
2598 | main () | |
2599 | { | |
705db0b5 | 2600 | int x; |
18569462 AD |
2601 | ; |
2602 | return 0; | |
2603 | } | |
2604 | _ACEOF | |
2605 | rm -f conftest.$ac_objext | |
5141b016 | 2606 | if { (eval echo "$as_me:2606: \"$ac_compile\"") >&5 |
18569462 AD |
2607 | (eval $ac_compile) 2>&5 |
2608 | ac_status=$? | |
5141b016 | 2609 | echo "$as_me:2609: \$? = $ac_status" >&5 |
18569462 | 2610 | (exit $ac_status); } && |
5141b016 AD |
2611 | { ac_try='test -s conftest.$ac_objext' |
2612 | { (eval echo "$as_me:2612: \"$ac_try\"") >&5 | |
18569462 AD |
2613 | (eval $ac_try) 2>&5 |
2614 | ac_status=$? | |
5141b016 | 2615 | echo "$as_me:2615: \$? = $ac_status" >&5 |
18569462 | 2616 | (exit $ac_status); }; }; then |
705db0b5 | 2617 | WARNING_CFLAGS="$WARNING_CFLAGS -Wbad-function-cast" |
5141b016 | 2618 | echo "$as_me:2618: result: yes" >&5 |
18569462 | 2619 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2620 | else |
18569462 AD |
2621 | echo "$as_me: failed program was:" >&5 |
2622 | cat conftest.$ac_ext >&5 | |
5141b016 | 2623 | echo "$as_me:2623: result: no" >&5 |
18569462 | 2624 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2625 | fi |
18569462 | 2626 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2627 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2628 | echo "$as_me:2628: checking whether compiler accepts -Wcast-align" >&5 |
18569462 | 2629 | echo $ECHO_N "checking whether compiler accepts -Wcast-align... $ECHO_C" >&6 |
705db0b5 AD |
2630 | |
2631 | ac_save_CFLAGS="$CFLAGS" | |
2632 | CFLAGS="$CFLAGS -Wcast-align" | |
18569462 | 2633 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2634 | #line 2634 "configure" |
705db0b5 AD |
2635 | #include "confdefs.h" |
2636 | ||
18569462 AD |
2637 | int |
2638 | main () | |
2639 | { | |
705db0b5 | 2640 | int x; |
18569462 AD |
2641 | ; |
2642 | return 0; | |
2643 | } | |
2644 | _ACEOF | |
2645 | rm -f conftest.$ac_objext | |
5141b016 | 2646 | if { (eval echo "$as_me:2646: \"$ac_compile\"") >&5 |
18569462 AD |
2647 | (eval $ac_compile) 2>&5 |
2648 | ac_status=$? | |
5141b016 | 2649 | echo "$as_me:2649: \$? = $ac_status" >&5 |
18569462 | 2650 | (exit $ac_status); } && |
5141b016 AD |
2651 | { ac_try='test -s conftest.$ac_objext' |
2652 | { (eval echo "$as_me:2652: \"$ac_try\"") >&5 | |
18569462 AD |
2653 | (eval $ac_try) 2>&5 |
2654 | ac_status=$? | |
5141b016 | 2655 | echo "$as_me:2655: \$? = $ac_status" >&5 |
18569462 | 2656 | (exit $ac_status); }; }; then |
705db0b5 | 2657 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-align" |
5141b016 | 2658 | echo "$as_me:2658: result: yes" >&5 |
18569462 | 2659 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2660 | else |
18569462 AD |
2661 | echo "$as_me: failed program was:" >&5 |
2662 | cat conftest.$ac_ext >&5 | |
5141b016 | 2663 | echo "$as_me:2663: result: no" >&5 |
18569462 | 2664 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2665 | fi |
18569462 | 2666 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2667 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2668 | echo "$as_me:2668: checking whether compiler accepts -Wcast-qual" >&5 |
18569462 | 2669 | echo $ECHO_N "checking whether compiler accepts -Wcast-qual... $ECHO_C" >&6 |
705db0b5 AD |
2670 | |
2671 | ac_save_CFLAGS="$CFLAGS" | |
2672 | CFLAGS="$CFLAGS -Wcast-qual" | |
18569462 | 2673 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2674 | #line 2674 "configure" |
705db0b5 AD |
2675 | #include "confdefs.h" |
2676 | ||
18569462 AD |
2677 | int |
2678 | main () | |
2679 | { | |
705db0b5 | 2680 | int x; |
18569462 AD |
2681 | ; |
2682 | return 0; | |
2683 | } | |
2684 | _ACEOF | |
2685 | rm -f conftest.$ac_objext | |
5141b016 | 2686 | if { (eval echo "$as_me:2686: \"$ac_compile\"") >&5 |
18569462 AD |
2687 | (eval $ac_compile) 2>&5 |
2688 | ac_status=$? | |
5141b016 | 2689 | echo "$as_me:2689: \$? = $ac_status" >&5 |
18569462 | 2690 | (exit $ac_status); } && |
5141b016 AD |
2691 | { ac_try='test -s conftest.$ac_objext' |
2692 | { (eval echo "$as_me:2692: \"$ac_try\"") >&5 | |
18569462 AD |
2693 | (eval $ac_try) 2>&5 |
2694 | ac_status=$? | |
5141b016 | 2695 | echo "$as_me:2695: \$? = $ac_status" >&5 |
18569462 | 2696 | (exit $ac_status); }; }; then |
705db0b5 | 2697 | WARNING_CFLAGS="$WARNING_CFLAGS -Wcast-qual" |
5141b016 | 2698 | echo "$as_me:2698: result: yes" >&5 |
18569462 | 2699 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2700 | else |
18569462 AD |
2701 | echo "$as_me: failed program was:" >&5 |
2702 | cat conftest.$ac_ext >&5 | |
5141b016 | 2703 | echo "$as_me:2703: result: no" >&5 |
18569462 | 2704 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2705 | fi |
18569462 | 2706 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2707 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2708 | echo "$as_me:2708: checking whether compiler accepts -Wmissing-declarations" >&5 |
18569462 | 2709 | echo $ECHO_N "checking whether compiler accepts -Wmissing-declarations... $ECHO_C" >&6 |
705db0b5 AD |
2710 | |
2711 | ac_save_CFLAGS="$CFLAGS" | |
2712 | CFLAGS="$CFLAGS -Wmissing-declarations" | |
18569462 | 2713 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2714 | #line 2714 "configure" |
705db0b5 AD |
2715 | #include "confdefs.h" |
2716 | ||
18569462 AD |
2717 | int |
2718 | main () | |
2719 | { | |
705db0b5 | 2720 | int x; |
18569462 AD |
2721 | ; |
2722 | return 0; | |
2723 | } | |
2724 | _ACEOF | |
2725 | rm -f conftest.$ac_objext | |
5141b016 | 2726 | if { (eval echo "$as_me:2726: \"$ac_compile\"") >&5 |
18569462 AD |
2727 | (eval $ac_compile) 2>&5 |
2728 | ac_status=$? | |
5141b016 | 2729 | echo "$as_me:2729: \$? = $ac_status" >&5 |
18569462 | 2730 | (exit $ac_status); } && |
5141b016 AD |
2731 | { ac_try='test -s conftest.$ac_objext' |
2732 | { (eval echo "$as_me:2732: \"$ac_try\"") >&5 | |
18569462 AD |
2733 | (eval $ac_try) 2>&5 |
2734 | ac_status=$? | |
5141b016 | 2735 | echo "$as_me:2735: \$? = $ac_status" >&5 |
18569462 | 2736 | (exit $ac_status); }; }; then |
705db0b5 | 2737 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-declarations" |
5141b016 | 2738 | echo "$as_me:2738: result: yes" >&5 |
18569462 | 2739 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2740 | else |
18569462 AD |
2741 | echo "$as_me: failed program was:" >&5 |
2742 | cat conftest.$ac_ext >&5 | |
5141b016 | 2743 | echo "$as_me:2743: result: no" >&5 |
18569462 | 2744 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2745 | fi |
18569462 | 2746 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2747 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2748 | echo "$as_me:2748: checking whether compiler accepts -Wmissing-prototypes" >&5 |
18569462 | 2749 | echo $ECHO_N "checking whether compiler accepts -Wmissing-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
2750 | |
2751 | ac_save_CFLAGS="$CFLAGS" | |
2752 | CFLAGS="$CFLAGS -Wmissing-prototypes" | |
18569462 | 2753 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2754 | #line 2754 "configure" |
705db0b5 AD |
2755 | #include "confdefs.h" |
2756 | ||
18569462 AD |
2757 | int |
2758 | main () | |
2759 | { | |
705db0b5 | 2760 | int x; |
18569462 AD |
2761 | ; |
2762 | return 0; | |
2763 | } | |
2764 | _ACEOF | |
2765 | rm -f conftest.$ac_objext | |
5141b016 | 2766 | if { (eval echo "$as_me:2766: \"$ac_compile\"") >&5 |
18569462 AD |
2767 | (eval $ac_compile) 2>&5 |
2768 | ac_status=$? | |
5141b016 | 2769 | echo "$as_me:2769: \$? = $ac_status" >&5 |
18569462 | 2770 | (exit $ac_status); } && |
5141b016 AD |
2771 | { ac_try='test -s conftest.$ac_objext' |
2772 | { (eval echo "$as_me:2772: \"$ac_try\"") >&5 | |
18569462 AD |
2773 | (eval $ac_try) 2>&5 |
2774 | ac_status=$? | |
5141b016 | 2775 | echo "$as_me:2775: \$? = $ac_status" >&5 |
18569462 | 2776 | (exit $ac_status); }; }; then |
705db0b5 | 2777 | WARNING_CFLAGS="$WARNING_CFLAGS -Wmissing-prototypes" |
5141b016 | 2778 | echo "$as_me:2778: result: yes" >&5 |
18569462 | 2779 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2780 | else |
18569462 AD |
2781 | echo "$as_me: failed program was:" >&5 |
2782 | cat conftest.$ac_ext >&5 | |
5141b016 | 2783 | echo "$as_me:2783: result: no" >&5 |
18569462 | 2784 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2785 | fi |
18569462 | 2786 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2787 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2788 | echo "$as_me:2788: checking whether compiler accepts -Wnested-externs" >&5 |
18569462 | 2789 | echo $ECHO_N "checking whether compiler accepts -Wnested-externs... $ECHO_C" >&6 |
705db0b5 AD |
2790 | |
2791 | ac_save_CFLAGS="$CFLAGS" | |
2792 | CFLAGS="$CFLAGS -Wnested-externs" | |
18569462 | 2793 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2794 | #line 2794 "configure" |
705db0b5 AD |
2795 | #include "confdefs.h" |
2796 | ||
18569462 AD |
2797 | int |
2798 | main () | |
2799 | { | |
705db0b5 | 2800 | int x; |
18569462 AD |
2801 | ; |
2802 | return 0; | |
2803 | } | |
2804 | _ACEOF | |
2805 | rm -f conftest.$ac_objext | |
5141b016 | 2806 | if { (eval echo "$as_me:2806: \"$ac_compile\"") >&5 |
18569462 AD |
2807 | (eval $ac_compile) 2>&5 |
2808 | ac_status=$? | |
5141b016 | 2809 | echo "$as_me:2809: \$? = $ac_status" >&5 |
18569462 | 2810 | (exit $ac_status); } && |
5141b016 AD |
2811 | { ac_try='test -s conftest.$ac_objext' |
2812 | { (eval echo "$as_me:2812: \"$ac_try\"") >&5 | |
18569462 AD |
2813 | (eval $ac_try) 2>&5 |
2814 | ac_status=$? | |
5141b016 | 2815 | echo "$as_me:2815: \$? = $ac_status" >&5 |
18569462 | 2816 | (exit $ac_status); }; }; then |
705db0b5 | 2817 | WARNING_CFLAGS="$WARNING_CFLAGS -Wnested-externs" |
5141b016 | 2818 | echo "$as_me:2818: result: yes" >&5 |
18569462 | 2819 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2820 | else |
18569462 AD |
2821 | echo "$as_me: failed program was:" >&5 |
2822 | cat conftest.$ac_ext >&5 | |
5141b016 | 2823 | echo "$as_me:2823: result: no" >&5 |
18569462 | 2824 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2825 | fi |
18569462 | 2826 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2827 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2828 | echo "$as_me:2828: checking whether compiler accepts -Wshadow" >&5 |
18569462 | 2829 | echo $ECHO_N "checking whether compiler accepts -Wshadow... $ECHO_C" >&6 |
705db0b5 AD |
2830 | |
2831 | ac_save_CFLAGS="$CFLAGS" | |
2832 | CFLAGS="$CFLAGS -Wshadow" | |
18569462 | 2833 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2834 | #line 2834 "configure" |
705db0b5 AD |
2835 | #include "confdefs.h" |
2836 | ||
18569462 AD |
2837 | int |
2838 | main () | |
2839 | { | |
705db0b5 | 2840 | int x; |
18569462 AD |
2841 | ; |
2842 | return 0; | |
2843 | } | |
2844 | _ACEOF | |
2845 | rm -f conftest.$ac_objext | |
5141b016 | 2846 | if { (eval echo "$as_me:2846: \"$ac_compile\"") >&5 |
18569462 AD |
2847 | (eval $ac_compile) 2>&5 |
2848 | ac_status=$? | |
5141b016 | 2849 | echo "$as_me:2849: \$? = $ac_status" >&5 |
18569462 | 2850 | (exit $ac_status); } && |
5141b016 AD |
2851 | { ac_try='test -s conftest.$ac_objext' |
2852 | { (eval echo "$as_me:2852: \"$ac_try\"") >&5 | |
18569462 AD |
2853 | (eval $ac_try) 2>&5 |
2854 | ac_status=$? | |
5141b016 | 2855 | echo "$as_me:2855: \$? = $ac_status" >&5 |
18569462 | 2856 | (exit $ac_status); }; }; then |
705db0b5 | 2857 | WARNING_CFLAGS="$WARNING_CFLAGS -Wshadow" |
5141b016 | 2858 | echo "$as_me:2858: result: yes" >&5 |
18569462 | 2859 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2860 | else |
18569462 AD |
2861 | echo "$as_me: failed program was:" >&5 |
2862 | cat conftest.$ac_ext >&5 | |
5141b016 | 2863 | echo "$as_me:2863: result: no" >&5 |
18569462 | 2864 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2865 | fi |
18569462 | 2866 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2867 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2868 | echo "$as_me:2868: checking whether compiler accepts -Wstrict-prototypes" >&5 |
18569462 | 2869 | echo $ECHO_N "checking whether compiler accepts -Wstrict-prototypes... $ECHO_C" >&6 |
705db0b5 AD |
2870 | |
2871 | ac_save_CFLAGS="$CFLAGS" | |
2872 | CFLAGS="$CFLAGS -Wstrict-prototypes" | |
18569462 | 2873 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2874 | #line 2874 "configure" |
705db0b5 AD |
2875 | #include "confdefs.h" |
2876 | ||
18569462 AD |
2877 | int |
2878 | main () | |
2879 | { | |
705db0b5 | 2880 | int x; |
18569462 AD |
2881 | ; |
2882 | return 0; | |
2883 | } | |
2884 | _ACEOF | |
2885 | rm -f conftest.$ac_objext | |
5141b016 | 2886 | if { (eval echo "$as_me:2886: \"$ac_compile\"") >&5 |
18569462 AD |
2887 | (eval $ac_compile) 2>&5 |
2888 | ac_status=$? | |
5141b016 | 2889 | echo "$as_me:2889: \$? = $ac_status" >&5 |
18569462 | 2890 | (exit $ac_status); } && |
5141b016 AD |
2891 | { ac_try='test -s conftest.$ac_objext' |
2892 | { (eval echo "$as_me:2892: \"$ac_try\"") >&5 | |
18569462 AD |
2893 | (eval $ac_try) 2>&5 |
2894 | ac_status=$? | |
5141b016 | 2895 | echo "$as_me:2895: \$? = $ac_status" >&5 |
18569462 | 2896 | (exit $ac_status); }; }; then |
705db0b5 | 2897 | WARNING_CFLAGS="$WARNING_CFLAGS -Wstrict-prototypes" |
5141b016 | 2898 | echo "$as_me:2898: result: yes" >&5 |
18569462 | 2899 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2900 | else |
18569462 AD |
2901 | echo "$as_me: failed program was:" >&5 |
2902 | cat conftest.$ac_ext >&5 | |
5141b016 | 2903 | echo "$as_me:2903: result: no" >&5 |
18569462 | 2904 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2905 | fi |
18569462 | 2906 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 2907 | CFLAGS="$ac_save_CFLAGS" |
5141b016 | 2908 | echo "$as_me:2908: checking whether compiler accepts -Wwrite-strings" >&5 |
18569462 | 2909 | echo $ECHO_N "checking whether compiler accepts -Wwrite-strings... $ECHO_C" >&6 |
705db0b5 AD |
2910 | |
2911 | ac_save_CFLAGS="$CFLAGS" | |
2912 | CFLAGS="$CFLAGS -Wwrite-strings" | |
18569462 | 2913 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2914 | #line 2914 "configure" |
705db0b5 AD |
2915 | #include "confdefs.h" |
2916 | ||
18569462 AD |
2917 | int |
2918 | main () | |
2919 | { | |
705db0b5 | 2920 | int x; |
18569462 AD |
2921 | ; |
2922 | return 0; | |
2923 | } | |
2924 | _ACEOF | |
2925 | rm -f conftest.$ac_objext | |
5141b016 | 2926 | if { (eval echo "$as_me:2926: \"$ac_compile\"") >&5 |
18569462 AD |
2927 | (eval $ac_compile) 2>&5 |
2928 | ac_status=$? | |
5141b016 | 2929 | echo "$as_me:2929: \$? = $ac_status" >&5 |
18569462 | 2930 | (exit $ac_status); } && |
5141b016 AD |
2931 | { ac_try='test -s conftest.$ac_objext' |
2932 | { (eval echo "$as_me:2932: \"$ac_try\"") >&5 | |
18569462 AD |
2933 | (eval $ac_try) 2>&5 |
2934 | ac_status=$? | |
5141b016 | 2935 | echo "$as_me:2935: \$? = $ac_status" >&5 |
18569462 | 2936 | (exit $ac_status); }; }; then |
705db0b5 | 2937 | WARNING_CFLAGS="$WARNING_CFLAGS -Wwrite-strings" |
5141b016 | 2938 | echo "$as_me:2938: result: yes" >&5 |
18569462 | 2939 | echo "${ECHO_T}yes" >&6 |
705db0b5 | 2940 | else |
18569462 AD |
2941 | echo "$as_me: failed program was:" >&5 |
2942 | cat conftest.$ac_ext >&5 | |
5141b016 | 2943 | echo "$as_me:2943: result: no" >&5 |
18569462 | 2944 | echo "${ECHO_T}no" >&6 |
705db0b5 | 2945 | fi |
18569462 | 2946 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
2947 | CFLAGS="$ac_save_CFLAGS" |
2948 | CFLAGS="$CFLAGS $WARNING_CFLAGS" | |
2949 | fi | |
2950 | ||
2951 | # Checks for libraries. | |
18569462 AD |
2952 | |
2953 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
2954 | #define _GNU_SOURCE 1 |
2955 | EOF | |
2956 | ||
705db0b5 | 2957 | # Checks for header files. |
5141b016 | 2958 | echo "$as_me:2958: checking for ANSI C header files" >&5 |
18569462 AD |
2959 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
2960 | if test "${ac_cv_header_stdc+set}" = set; then | |
2961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 2962 | else |
18569462 | 2963 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 2964 | #line 2964 "configure" |
705db0b5 AD |
2965 | #include "confdefs.h" |
2966 | #include <stdlib.h> | |
2967 | #include <stdarg.h> | |
2968 | #include <string.h> | |
2969 | #include <float.h> | |
18569462 AD |
2970 | |
2971 | _ACEOF | |
5141b016 | 2972 | if { (eval echo "$as_me:2972: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
2973 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
2974 | ac_status=$? | |
2975 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
2976 | rm -f conftest.er1 | |
2977 | cat conftest.err >&5 | |
5141b016 | 2978 | echo "$as_me:2978: \$? = $ac_status" >&5 |
18569462 AD |
2979 | (exit $ac_status); }; then |
2980 | if test -s conftest.err; then | |
2981 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2982 | else | |
2983 | ac_cpp_err= | |
2984 | fi | |
2985 | else | |
2986 | ac_cpp_err=yes | |
2987 | fi | |
2988 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
2989 | ac_cv_header_stdc=yes |
2990 | else | |
18569462 | 2991 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 2992 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
2993 | ac_cv_header_stdc=no |
2994 | fi | |
18569462 | 2995 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
2996 | |
2997 | if test $ac_cv_header_stdc = yes; then | |
2998 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 2999 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3000 | #line 3000 "configure" |
705db0b5 AD |
3001 | #include "confdefs.h" |
3002 | #include <string.h> | |
18569462 AD |
3003 | |
3004 | _ACEOF | |
705db0b5 AD |
3005 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3006 | egrep "memchr" >/dev/null 2>&1; then | |
3007 | : | |
3008 | else | |
705db0b5 AD |
3009 | ac_cv_header_stdc=no |
3010 | fi | |
3011 | rm -f conftest* | |
3012 | ||
3013 | fi | |
3014 | ||
3015 | if test $ac_cv_header_stdc = yes; then | |
3016 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3017 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3018 | #line 3018 "configure" |
705db0b5 AD |
3019 | #include "confdefs.h" |
3020 | #include <stdlib.h> | |
18569462 AD |
3021 | |
3022 | _ACEOF | |
705db0b5 AD |
3023 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3024 | egrep "free" >/dev/null 2>&1; then | |
3025 | : | |
3026 | else | |
705db0b5 AD |
3027 | ac_cv_header_stdc=no |
3028 | fi | |
3029 | rm -f conftest* | |
3030 | ||
3031 | fi | |
3032 | ||
3033 | if test $ac_cv_header_stdc = yes; then | |
3034 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3035 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3036 | : |
3037 | else | |
18569462 | 3038 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3039 | #line 3039 "configure" |
705db0b5 AD |
3040 | #include "confdefs.h" |
3041 | #include <ctype.h> | |
18569462 AD |
3042 | #if ((' ' & 0x0FF) == 0x020) |
3043 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3044 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3045 | #else | |
3046 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3047 | || ('j' <= (c) && (c) <= 'r') \ | |
3048 | || ('s' <= (c) && (c) <= 'z')) | |
3049 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3050 | #endif | |
705db0b5 | 3051 | |
18569462 AD |
3052 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3053 | int | |
3054 | main () | |
3055 | { | |
3056 | int i; | |
3057 | for (i = 0; i < 256; i++) | |
3058 | if (XOR (islower (i), ISLOWER (i)) | |
3059 | || toupper (i) != TOUPPER (i)) | |
3060 | exit(2); | |
3061 | exit (0); | |
3062 | } | |
3063 | _ACEOF | |
3064 | rm -f conftest$ac_exeext | |
5141b016 | 3065 | if { (eval echo "$as_me:3065: \"$ac_link\"") >&5 |
18569462 AD |
3066 | (eval $ac_link) 2>&5 |
3067 | ac_status=$? | |
5141b016 AD |
3068 | echo "$as_me:3068: \$? = $ac_status" >&5 |
3069 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3070 | { (eval echo "$as_me:3070: \"$ac_try\"") >&5 | |
18569462 AD |
3071 | (eval $ac_try) 2>&5 |
3072 | ac_status=$? | |
3073 | echo "$as_me:3073: \$? = $ac_status" >&5 | |
3074 | (exit $ac_status); }; }; then | |
705db0b5 AD |
3075 | : |
3076 | else | |
18569462 AD |
3077 | echo "$as_me: program exited with status $ac_status" >&5 |
3078 | echo "$as_me: failed program was:" >&5 | |
3079 | cat conftest.$ac_ext >&5 | |
3080 | ac_cv_header_stdc=no | |
705db0b5 | 3081 | fi |
18569462 | 3082 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3083 | fi |
705db0b5 AD |
3084 | fi |
3085 | fi | |
18569462 AD |
3086 | echo "$as_me:3086: result: $ac_cv_header_stdc" >&5 |
3087 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
705db0b5 | 3088 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3089 | |
3090 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3091 | #define STDC_HEADERS 1 |
3092 | EOF | |
3093 | ||
3094 | fi | |
3095 | ||
18569462 | 3096 | for ac_header in ctype.h locale.h memory.h stdlib.h string.h unistd.h |
705db0b5 | 3097 | do |
18569462 AD |
3098 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
3099 | echo "$as_me:3099: checking for $ac_header" >&5 | |
3100 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3101 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3102 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3103 | else | |
3104 | cat >conftest.$ac_ext <<_ACEOF | |
3105 | #line 3105 "configure" | |
705db0b5 | 3106 | #include "confdefs.h" |
18569462 AD |
3107 | #include <$ac_header> |
3108 | _ACEOF | |
3109 | if { (eval echo "$as_me:3109: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
3110 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
3111 | ac_status=$? | |
3112 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3113 | rm -f conftest.er1 | |
3114 | cat conftest.err >&5 | |
3115 | echo "$as_me:3115: \$? = $ac_status" >&5 | |
3116 | (exit $ac_status); }; then | |
3117 | if test -s conftest.err; then | |
3118 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3119 | else | |
3120 | ac_cpp_err= | |
3121 | fi | |
3122 | else | |
3123 | ac_cpp_err=yes | |
3124 | fi | |
3125 | if test -z "$ac_cpp_err"; then | |
3126 | eval "$ac_ac_Header=yes" | |
3127 | else | |
3128 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3129 | cat conftest.$ac_ext >&5 |
18569462 | 3130 | eval "$ac_ac_Header=no" |
705db0b5 | 3131 | fi |
18569462 | 3132 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3133 | fi |
18569462 AD |
3134 | echo "$as_me:3134: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
3135 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
3136 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3137 | cat >>confdefs.h <<EOF | |
3138 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 3139 | EOF |
18569462 | 3140 | |
705db0b5 AD |
3141 | fi |
3142 | done | |
3143 | ||
705db0b5 AD |
3144 | # Checks for typedefs. |
3145 | ||
3146 | # Checks for structures. | |
3147 | ||
3148 | # Checks for compiler characteristics. | |
18569462 AD |
3149 | echo "$as_me:3149: checking for $CC option to accept ANSI C" >&5 |
3150 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3151 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
3152 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3153 | else | |
3154 | ac_cv_prog_cc_stdc=no | |
3155 | ac_save_CC=$CC | |
3156 | cat >conftest.$ac_ext <<_ACEOF | |
3157 | #line 3157 "configure" | |
705db0b5 | 3158 | #include "confdefs.h" |
18569462 AD |
3159 | #include <stdarg.h> |
3160 | #include <stdio.h> | |
3161 | #include <sys/types.h> | |
3162 | #include <sys/stat.h> | |
3163 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3164 | struct buf { int x; }; | |
3165 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3166 | static char *e (p, i) | |
3167 | char **p; | |
3168 | int i; | |
3169 | { | |
3170 | return p[i]; | |
705db0b5 | 3171 | } |
18569462 AD |
3172 | static char *f (char * (*g) (char **, int), char **p, ...) |
3173 | { | |
3174 | char *s; | |
3175 | va_list v; | |
3176 | va_start (v,p); | |
3177 | s = g (p, va_arg (v,int)); | |
3178 | va_end (v); | |
3179 | return s; | |
705db0b5 | 3180 | } |
18569462 AD |
3181 | int test (int i, double x); |
3182 | struct s1 {int (*f) (int a);}; | |
3183 | struct s2 {int (*f) (double a);}; | |
3184 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3185 | int argc; | |
3186 | char **argv; | |
3187 | int | |
3188 | main () | |
3189 | { | |
3190 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3191 | ; | |
3192 | return 0; | |
705db0b5 | 3193 | } |
18569462 AD |
3194 | _ACEOF |
3195 | # Don't try gcc -ansi; that turns off useful extensions and | |
3196 | # breaks some systems' header files. | |
3197 | # AIX -qlanglvl=ansi | |
3198 | # Ultrix and OSF/1 -std1 | |
3199 | # HP-UX 10.20 and later -Ae | |
3200 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3201 | # SVR4 -Xc -D__EXTENSIONS__ | |
3202 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3203 | do | |
3204 | CC="$ac_save_CC $ac_arg" | |
3205 | rm -f conftest.$ac_objext | |
3206 | if { (eval echo "$as_me:3206: \"$ac_compile\"") >&5 | |
3207 | (eval $ac_compile) 2>&5 | |
3208 | ac_status=$? | |
3209 | echo "$as_me:3209: \$? = $ac_status" >&5 | |
3210 | (exit $ac_status); } && | |
5141b016 AD |
3211 | { ac_try='test -s conftest.$ac_objext' |
3212 | { (eval echo "$as_me:3212: \"$ac_try\"") >&5 | |
18569462 AD |
3213 | (eval $ac_try) 2>&5 |
3214 | ac_status=$? | |
5141b016 | 3215 | echo "$as_me:3215: \$? = $ac_status" >&5 |
18569462 AD |
3216 | (exit $ac_status); }; }; then |
3217 | ac_cv_prog_cc_stdc=$ac_arg | |
3218 | break | |
3219 | else | |
3220 | echo "$as_me: failed program was:" >&5 | |
3221 | cat conftest.$ac_ext >&5 | |
3222 | fi | |
3223 | rm -f conftest.$ac_objext | |
3224 | done | |
3225 | rm -f conftest.$ac_ext conftest.$ac_objext | |
3226 | CC=$ac_save_CC | |
705db0b5 | 3227 | |
18569462 AD |
3228 | fi |
3229 | ||
3230 | case "x$ac_cv_prog_cc_stdc" in | |
3231 | x|xno) | |
5141b016 | 3232 | echo "$as_me:3232: result: none needed" >&5 |
18569462 AD |
3233 | echo "${ECHO_T}none needed" >&6 ;; |
3234 | *) | |
5141b016 | 3235 | echo "$as_me:3235: result: $ac_cv_prog_cc_stdc" >&5 |
18569462 AD |
3236 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
3237 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
3238 | esac | |
3239 | ||
5141b016 | 3240 | echo "$as_me:3240: checking for an ANSI C-conforming const" >&5 |
18569462 AD |
3241 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 |
3242 | if test "${ac_cv_c_const+set}" = set; then | |
3243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3244 | else | |
3245 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3246 | #line 3246 "configure" |
18569462 AD |
3247 | #include "confdefs.h" |
3248 | ||
3249 | int | |
3250 | main () | |
3251 | { | |
3252 | /* FIXME: Include the comments suggested by Paul. */ | |
3253 | #ifndef __cplusplus | |
3254 | /* Ultrix mips cc rejects this. */ | |
3255 | typedef int charset[2]; | |
3256 | const charset x; | |
3257 | /* SunOS 4.1.1 cc rejects this. */ | |
3258 | char const *const *ccp; | |
3259 | char **p; | |
3260 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3261 | struct point {int x, y;}; | |
3262 | static struct point const zero = {0,0}; | |
3263 | /* AIX XL C 1.02.0.0 rejects this. | |
3264 | It does not let you subtract one const X* pointer from another in | |
3265 | an arm of an if-expression whose if-part is not a constant | |
3266 | expression */ | |
3267 | const char *g = "string"; | |
3268 | ccp = &g + (g ? g-g : 0); | |
3269 | /* HPUX 7.0 cc rejects these. */ | |
3270 | ++ccp; | |
3271 | p = (char**) ccp; | |
3272 | ccp = (char const *const *) p; | |
3273 | { /* SCO 3.2v4 cc rejects this. */ | |
3274 | char *t; | |
3275 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3276 | ||
3277 | *t++ = 0; | |
3278 | } | |
3279 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3280 | int x[] = {25, 17}; | |
3281 | const int *foo = &x[0]; | |
3282 | ++foo; | |
3283 | } | |
3284 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3285 | typedef const int *iptr; | |
3286 | iptr p = 0; | |
3287 | ++p; | |
3288 | } | |
3289 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3290 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3291 | struct s { int j; const int *ap[3]; }; | |
3292 | struct s *b; b->j = 5; | |
3293 | } | |
3294 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3295 | const int foo = 10; | |
3296 | } | |
3297 | #endif | |
3298 | ||
3299 | ; | |
3300 | return 0; | |
3301 | } | |
3302 | _ACEOF | |
3303 | rm -f conftest.$ac_objext | |
5141b016 | 3304 | if { (eval echo "$as_me:3304: \"$ac_compile\"") >&5 |
18569462 AD |
3305 | (eval $ac_compile) 2>&5 |
3306 | ac_status=$? | |
5141b016 | 3307 | echo "$as_me:3307: \$? = $ac_status" >&5 |
18569462 | 3308 | (exit $ac_status); } && |
5141b016 AD |
3309 | { ac_try='test -s conftest.$ac_objext' |
3310 | { (eval echo "$as_me:3310: \"$ac_try\"") >&5 | |
18569462 AD |
3311 | (eval $ac_try) 2>&5 |
3312 | ac_status=$? | |
5141b016 | 3313 | echo "$as_me:3313: \$? = $ac_status" >&5 |
18569462 | 3314 | (exit $ac_status); }; }; then |
705db0b5 AD |
3315 | ac_cv_c_const=yes |
3316 | else | |
18569462 AD |
3317 | echo "$as_me: failed program was:" >&5 |
3318 | cat conftest.$ac_ext >&5 | |
3319 | ac_cv_c_const=no | |
705db0b5 | 3320 | fi |
18569462 | 3321 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 3322 | fi |
5141b016 | 3323 | echo "$as_me:3323: result: $ac_cv_c_const" >&5 |
18569462 | 3324 | echo "${ECHO_T}$ac_cv_c_const" >&6 |
705db0b5 | 3325 | if test $ac_cv_c_const = no; then |
18569462 AD |
3326 | |
3327 | cat >>confdefs.h <<\EOF | |
3328 | #define const | |
705db0b5 AD |
3329 | EOF |
3330 | ||
3331 | fi | |
3332 | ||
5141b016 | 3333 | echo "$as_me:3333: checking for inline" >&5 |
18569462 AD |
3334 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 |
3335 | if test "${ac_cv_c_inline+set}" = set; then | |
3336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
3337 | else |
3338 | ac_cv_c_inline=no | |
3339 | for ac_kw in inline __inline__ __inline; do | |
18569462 | 3340 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3341 | #line 3341 "configure" |
705db0b5 | 3342 | #include "confdefs.h" |
18569462 | 3343 | #ifndef __cplusplus |
5141b016 | 3344 | static $ac_kw int static_foo () {return 0; } |
18569462 AD |
3345 | $ac_kw int foo () {return 0; } |
3346 | #endif | |
705db0b5 | 3347 | |
18569462 AD |
3348 | _ACEOF |
3349 | rm -f conftest.$ac_objext | |
5141b016 | 3350 | if { (eval echo "$as_me:3350: \"$ac_compile\"") >&5 |
18569462 AD |
3351 | (eval $ac_compile) 2>&5 |
3352 | ac_status=$? | |
5141b016 | 3353 | echo "$as_me:3353: \$? = $ac_status" >&5 |
18569462 | 3354 | (exit $ac_status); } && |
5141b016 AD |
3355 | { ac_try='test -s conftest.$ac_objext' |
3356 | { (eval echo "$as_me:3356: \"$ac_try\"") >&5 | |
18569462 AD |
3357 | (eval $ac_try) 2>&5 |
3358 | ac_status=$? | |
5141b016 | 3359 | echo "$as_me:3359: \$? = $ac_status" >&5 |
18569462 | 3360 | (exit $ac_status); }; }; then |
705db0b5 AD |
3361 | ac_cv_c_inline=$ac_kw; break |
3362 | else | |
18569462 AD |
3363 | echo "$as_me: failed program was:" >&5 |
3364 | cat conftest.$ac_ext >&5 | |
705db0b5 | 3365 | fi |
18569462 | 3366 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 AD |
3367 | done |
3368 | ||
3369 | fi | |
5141b016 | 3370 | echo "$as_me:3370: result: $ac_cv_c_inline" >&5 |
18569462 AD |
3371 | echo "${ECHO_T}$ac_cv_c_inline" >&6 |
3372 | case $ac_cv_c_inline in | |
705db0b5 | 3373 | inline | yes) ;; |
18569462 AD |
3374 | no) |
3375 | cat >>confdefs.h <<\EOF | |
3376 | #define inline | |
705db0b5 AD |
3377 | EOF |
3378 | ;; | |
18569462 | 3379 | *) cat >>confdefs.h <<EOF |
705db0b5 AD |
3380 | #define inline $ac_cv_c_inline |
3381 | EOF | |
3382 | ;; | |
3383 | esac | |
3384 | ||
5141b016 | 3385 | echo "$as_me:3385: checking for function prototypes" >&5 |
18569462 | 3386 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 3387 | if test "$am_cv_prog_cc_stdc" != no; then |
5141b016 | 3388 | echo "$as_me:3388: result: yes" >&5 |
18569462 AD |
3389 | echo "${ECHO_T}yes" >&6 |
3390 | ||
3391 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3392 | #define PROTOTYPES 1 |
3393 | EOF | |
3394 | ||
3395 | U= ANSI2KNR= | |
3396 | else | |
5141b016 | 3397 | echo "$as_me:3397: result: no" >&5 |
18569462 | 3398 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
3399 | U=_ ANSI2KNR=./ansi2knr |
3400 | # Ensure some checks needed by ansi2knr itself. | |
5141b016 | 3401 | echo "$as_me:3401: checking for ANSI C header files" >&5 |
18569462 AD |
3402 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
3403 | if test "${ac_cv_header_stdc+set}" = set; then | |
3404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3405 | else |
18569462 | 3406 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3407 | #line 3407 "configure" |
705db0b5 AD |
3408 | #include "confdefs.h" |
3409 | #include <stdlib.h> | |
3410 | #include <stdarg.h> | |
3411 | #include <string.h> | |
3412 | #include <float.h> | |
18569462 AD |
3413 | |
3414 | _ACEOF | |
5141b016 | 3415 | if { (eval echo "$as_me:3415: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
3416 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
3417 | ac_status=$? | |
3418 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3419 | rm -f conftest.er1 | |
3420 | cat conftest.err >&5 | |
5141b016 | 3421 | echo "$as_me:3421: \$? = $ac_status" >&5 |
18569462 AD |
3422 | (exit $ac_status); }; then |
3423 | if test -s conftest.err; then | |
3424 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3425 | else | |
3426 | ac_cpp_err= | |
3427 | fi | |
3428 | else | |
3429 | ac_cpp_err=yes | |
3430 | fi | |
3431 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
3432 | ac_cv_header_stdc=yes |
3433 | else | |
18569462 | 3434 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 3435 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
3436 | ac_cv_header_stdc=no |
3437 | fi | |
18569462 | 3438 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
3439 | |
3440 | if test $ac_cv_header_stdc = yes; then | |
3441 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 3442 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3443 | #line 3443 "configure" |
705db0b5 AD |
3444 | #include "confdefs.h" |
3445 | #include <string.h> | |
18569462 AD |
3446 | |
3447 | _ACEOF | |
705db0b5 AD |
3448 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3449 | egrep "memchr" >/dev/null 2>&1; then | |
3450 | : | |
3451 | else | |
705db0b5 AD |
3452 | ac_cv_header_stdc=no |
3453 | fi | |
3454 | rm -f conftest* | |
3455 | ||
3456 | fi | |
3457 | ||
3458 | if test $ac_cv_header_stdc = yes; then | |
3459 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 3460 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3461 | #line 3461 "configure" |
705db0b5 AD |
3462 | #include "confdefs.h" |
3463 | #include <stdlib.h> | |
18569462 AD |
3464 | |
3465 | _ACEOF | |
705db0b5 AD |
3466 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3467 | egrep "free" >/dev/null 2>&1; then | |
3468 | : | |
3469 | else | |
705db0b5 AD |
3470 | ac_cv_header_stdc=no |
3471 | fi | |
3472 | rm -f conftest* | |
3473 | ||
3474 | fi | |
3475 | ||
3476 | if test $ac_cv_header_stdc = yes; then | |
3477 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 3478 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
3479 | : |
3480 | else | |
18569462 | 3481 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3482 | #line 3482 "configure" |
705db0b5 AD |
3483 | #include "confdefs.h" |
3484 | #include <ctype.h> | |
18569462 AD |
3485 | #if ((' ' & 0x0FF) == 0x020) |
3486 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3487 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3488 | #else | |
3489 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
3490 | || ('j' <= (c) && (c) <= 'r') \ | |
3491 | || ('s' <= (c) && (c) <= 'z')) | |
3492 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3493 | #endif | |
705db0b5 | 3494 | |
18569462 AD |
3495 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3496 | int | |
3497 | main () | |
3498 | { | |
3499 | int i; | |
3500 | for (i = 0; i < 256; i++) | |
3501 | if (XOR (islower (i), ISLOWER (i)) | |
3502 | || toupper (i) != TOUPPER (i)) | |
3503 | exit(2); | |
3504 | exit (0); | |
3505 | } | |
3506 | _ACEOF | |
3507 | rm -f conftest$ac_exeext | |
5141b016 | 3508 | if { (eval echo "$as_me:3508: \"$ac_link\"") >&5 |
18569462 AD |
3509 | (eval $ac_link) 2>&5 |
3510 | ac_status=$? | |
5141b016 AD |
3511 | echo "$as_me:3511: \$? = $ac_status" >&5 |
3512 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3513 | { (eval echo "$as_me:3513: \"$ac_try\"") >&5 | |
18569462 AD |
3514 | (eval $ac_try) 2>&5 |
3515 | ac_status=$? | |
5141b016 | 3516 | echo "$as_me:3516: \$? = $ac_status" >&5 |
18569462 | 3517 | (exit $ac_status); }; }; then |
705db0b5 AD |
3518 | : |
3519 | else | |
18569462 AD |
3520 | echo "$as_me: program exited with status $ac_status" >&5 |
3521 | echo "$as_me: failed program was:" >&5 | |
3522 | cat conftest.$ac_ext >&5 | |
3523 | ac_cv_header_stdc=no | |
705db0b5 | 3524 | fi |
18569462 | 3525 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3526 | fi |
705db0b5 AD |
3527 | fi |
3528 | fi | |
5141b016 | 3529 | echo "$as_me:3529: result: $ac_cv_header_stdc" >&5 |
18569462 | 3530 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 3531 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
3532 | |
3533 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3534 | #define STDC_HEADERS 1 |
3535 | EOF | |
3536 | ||
3537 | fi | |
3538 | ||
18569462 | 3539 | for ac_header in string.h |
705db0b5 | 3540 | do |
18569462 | 3541 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 3542 | echo "$as_me:3542: checking for $ac_header" >&5 |
18569462 AD |
3543 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3544 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3546 | else | |
3547 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3548 | #line 3548 "configure" |
705db0b5 | 3549 | #include "confdefs.h" |
18569462 AD |
3550 | #include <$ac_header> |
3551 | _ACEOF | |
5141b016 | 3552 | if { (eval echo "$as_me:3552: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
3553 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
3554 | ac_status=$? | |
3555 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3556 | rm -f conftest.er1 | |
3557 | cat conftest.err >&5 | |
5141b016 | 3558 | echo "$as_me:3558: \$? = $ac_status" >&5 |
18569462 AD |
3559 | (exit $ac_status); }; then |
3560 | if test -s conftest.err; then | |
3561 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3562 | else | |
3563 | ac_cpp_err= | |
3564 | fi | |
3565 | else | |
3566 | ac_cpp_err=yes | |
3567 | fi | |
3568 | if test -z "$ac_cpp_err"; then | |
3569 | eval "$ac_ac_Header=yes" | |
3570 | else | |
3571 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 3572 | cat conftest.$ac_ext >&5 |
18569462 | 3573 | eval "$ac_ac_Header=no" |
705db0b5 | 3574 | fi |
18569462 | 3575 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 3576 | fi |
5141b016 | 3577 | echo "$as_me:3577: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
3578 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
3579 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3580 | cat >>confdefs.h <<EOF | |
3581 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 3582 | EOF |
18569462 | 3583 | |
705db0b5 AD |
3584 | fi |
3585 | done | |
3586 | ||
3587 | fi | |
3588 | ||
705db0b5 AD |
3589 | # Checks for library functions. |
3590 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3591 | # for constant arguments. Useless! | |
5141b016 | 3592 | echo "$as_me:3592: checking for working alloca.h" >&5 |
18569462 AD |
3593 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 |
3594 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3596 | else |
18569462 | 3597 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3598 | #line 3598 "configure" |
705db0b5 AD |
3599 | #include "confdefs.h" |
3600 | #include <alloca.h> | |
18569462 AD |
3601 | int |
3602 | main () | |
3603 | { | |
3604 | char *p = (char *) alloca (2 * sizeof (int)); | |
3605 | ; | |
3606 | return 0; | |
3607 | } | |
3608 | _ACEOF | |
3609 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 3610 | if { (eval echo "$as_me:3610: \"$ac_link\"") >&5 |
18569462 AD |
3611 | (eval $ac_link) 2>&5 |
3612 | ac_status=$? | |
5141b016 | 3613 | echo "$as_me:3613: \$? = $ac_status" >&5 |
18569462 | 3614 | (exit $ac_status); } && |
5141b016 AD |
3615 | { ac_try='test -s conftest$ac_exeext' |
3616 | { (eval echo "$as_me:3616: \"$ac_try\"") >&5 | |
18569462 AD |
3617 | (eval $ac_try) 2>&5 |
3618 | ac_status=$? | |
5141b016 | 3619 | echo "$as_me:3619: \$? = $ac_status" >&5 |
18569462 AD |
3620 | (exit $ac_status); }; }; then |
3621 | ac_cv_working_alloca_h=yes | |
3622 | else | |
3623 | echo "$as_me: failed program was:" >&5 | |
3624 | cat conftest.$ac_ext >&5 | |
3625 | ac_cv_working_alloca_h=no | |
3626 | fi | |
3627 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3628 | fi | |
5141b016 | 3629 | echo "$as_me:3629: result: $ac_cv_working_alloca_h" >&5 |
18569462 AD |
3630 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 |
3631 | if test $ac_cv_working_alloca_h = yes; then | |
3632 | ||
3633 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3634 | #define HAVE_ALLOCA_H 1 |
3635 | EOF | |
3636 | ||
3637 | fi | |
3638 | ||
5141b016 | 3639 | echo "$as_me:3639: checking for alloca" >&5 |
18569462 AD |
3640 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 |
3641 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 3643 | else |
18569462 | 3644 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 3645 | #line 3645 "configure" |
705db0b5 | 3646 | #include "confdefs.h" |
705db0b5 AD |
3647 | #ifdef __GNUC__ |
3648 | # define alloca __builtin_alloca | |
3649 | #else | |
3650 | # ifdef _MSC_VER | |
3651 | # include <malloc.h> | |
3652 | # define alloca _alloca | |
3653 | # else | |
3654 | # if HAVE_ALLOCA_H | |
3655 | # include <alloca.h> | |
3656 | # else | |
3657 | # ifdef _AIX | |
3658 | #pragma alloca | |
3659 | # else | |
3660 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3661 | char *alloca (); | |
3662 | # endif | |
3663 | # endif | |
3664 | # endif | |
3665 | # endif | |
3666 | #endif | |
3667 | ||
18569462 AD |
3668 | int |
3669 | main () | |
3670 | { | |
3671 | char *p = (char *) alloca (1); | |
3672 | ; | |
3673 | return 0; | |
3674 | } | |
3675 | _ACEOF | |
3676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 3677 | if { (eval echo "$as_me:3677: \"$ac_link\"") >&5 |
18569462 AD |
3678 | (eval $ac_link) 2>&5 |
3679 | ac_status=$? | |
5141b016 | 3680 | echo "$as_me:3680: \$? = $ac_status" >&5 |
18569462 | 3681 | (exit $ac_status); } && |
5141b016 AD |
3682 | { ac_try='test -s conftest$ac_exeext' |
3683 | { (eval echo "$as_me:3683: \"$ac_try\"") >&5 | |
18569462 AD |
3684 | (eval $ac_try) 2>&5 |
3685 | ac_status=$? | |
5141b016 | 3686 | echo "$as_me:3686: \$? = $ac_status" >&5 |
18569462 | 3687 | (exit $ac_status); }; }; then |
705db0b5 AD |
3688 | ac_cv_func_alloca_works=yes |
3689 | else | |
18569462 AD |
3690 | echo "$as_me: failed program was:" >&5 |
3691 | cat conftest.$ac_ext >&5 | |
3692 | ac_cv_func_alloca_works=no | |
705db0b5 | 3693 | fi |
18569462 | 3694 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 3695 | fi |
5141b016 | 3696 | echo "$as_me:3696: result: $ac_cv_func_alloca_works" >&5 |
18569462 | 3697 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 |
705db0b5 | 3698 | |
705db0b5 | 3699 | if test $ac_cv_func_alloca_works = yes; then |
18569462 AD |
3700 | |
3701 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
3702 | #define HAVE_ALLOCA 1 |
3703 | EOF | |
3704 | ||
18569462 AD |
3705 | else |
3706 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3707 | # that cause trouble. Some versions do not even contain alloca or | |
3708 | # contain a buggy version. If you still want to use their alloca, | |
3709 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3710 | ||
3711 | ALLOCA=alloca.$ac_objext | |
3712 | ||
3713 | cat >>confdefs.h <<\EOF | |
3714 | #define C_ALLOCA 1 | |
3715 | EOF | |
3716 | ||
5141b016 | 3717 | echo "$as_me:3717: checking whether \`alloca.c' needs Cray hooks" >&5 |
18569462 AD |
3718 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 |
3719 | if test "${ac_cv_os_cray+set}" = set; then | |
3720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3721 | else | |
3722 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3723 | #line 3723 "configure" |
18569462 AD |
3724 | #include "confdefs.h" |
3725 | #if defined(CRAY) && ! defined(CRAY2) | |
3726 | webecray | |
3727 | #else | |
3728 | wenotbecray | |
3729 | #endif | |
3730 | ||
3731 | _ACEOF | |
3732 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3733 | egrep "webecray" >/dev/null 2>&1; then | |
3734 | ac_cv_os_cray=yes | |
3735 | else | |
3736 | ac_cv_os_cray=no | |
3737 | fi | |
3738 | rm -f conftest* | |
3739 | ||
3740 | fi | |
5141b016 | 3741 | echo "$as_me:3741: result: $ac_cv_os_cray" >&5 |
18569462 AD |
3742 | echo "${ECHO_T}$ac_cv_os_cray" >&6 |
3743 | if test $ac_cv_os_cray = yes; then | |
3744 | for ac_func in _getb67 GETB67 getb67; do | |
3745 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5141b016 | 3746 | echo "$as_me:3746: checking for $ac_func" >&5 |
18569462 AD |
3747 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
3748 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3749 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3750 | else | |
3751 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3752 | #line 3752 "configure" |
18569462 AD |
3753 | #include "confdefs.h" |
3754 | /* System header to define __stub macros and hopefully few prototypes, | |
3755 | which can conflict with char $ac_func (); below. */ | |
3756 | #include <assert.h> | |
3757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3758 | #ifdef __cplusplus | |
3759 | extern "C" | |
3760 | #endif | |
3761 | /* We use char because int might match the return type of a gcc2 | |
3762 | builtin and then its argument prototype would still apply. */ | |
3763 | char $ac_func (); | |
3764 | char (*f) (); | |
3765 | ||
3766 | int | |
3767 | main () | |
3768 | { | |
3769 | /* The GNU C library defines this for functions which it implements | |
3770 | to always fail with ENOSYS. Some functions are actually named | |
3771 | something starting with __ and the normal name is an alias. */ | |
3772 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3773 | choke me | |
3774 | #else | |
3775 | f = $ac_func; | |
3776 | #endif | |
3777 | ||
3778 | ; | |
3779 | return 0; | |
3780 | } | |
3781 | _ACEOF | |
3782 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 3783 | if { (eval echo "$as_me:3783: \"$ac_link\"") >&5 |
18569462 AD |
3784 | (eval $ac_link) 2>&5 |
3785 | ac_status=$? | |
5141b016 | 3786 | echo "$as_me:3786: \$? = $ac_status" >&5 |
18569462 | 3787 | (exit $ac_status); } && |
5141b016 AD |
3788 | { ac_try='test -s conftest$ac_exeext' |
3789 | { (eval echo "$as_me:3789: \"$ac_try\"") >&5 | |
18569462 AD |
3790 | (eval $ac_try) 2>&5 |
3791 | ac_status=$? | |
5141b016 | 3792 | echo "$as_me:3792: \$? = $ac_status" >&5 |
18569462 AD |
3793 | (exit $ac_status); }; }; then |
3794 | eval "$ac_ac_var=yes" | |
3795 | else | |
3796 | echo "$as_me: failed program was:" >&5 | |
3797 | cat conftest.$ac_ext >&5 | |
3798 | eval "$ac_ac_var=no" | |
3799 | fi | |
3800 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3801 | fi | |
5141b016 | 3802 | echo "$as_me:3802: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
3803 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
3804 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3805 | ||
3806 | cat >>confdefs.h <<EOF | |
3807 | #define CRAY_STACKSEG_END $ac_func | |
3808 | EOF | |
3809 | ||
3810 | break | |
3811 | fi | |
3812 | ||
3813 | done | |
3814 | fi | |
3815 | ||
5141b016 | 3816 | echo "$as_me:3816: checking stack direction for C alloca" >&5 |
18569462 AD |
3817 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 |
3818 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3819 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3820 | else | |
3821 | if test "$cross_compiling" = yes; then | |
3822 | ac_cv_c_stack_direction=0 | |
3823 | else | |
3824 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3825 | #line 3825 "configure" |
18569462 AD |
3826 | #include "confdefs.h" |
3827 | int | |
3828 | find_stack_direction () | |
3829 | { | |
3830 | static char *addr = 0; | |
3831 | auto char dummy; | |
3832 | if (addr == 0) | |
3833 | { | |
3834 | addr = &dummy; | |
3835 | return find_stack_direction (); | |
3836 | } | |
3837 | else | |
3838 | return (&dummy > addr) ? 1 : -1; | |
3839 | } | |
3840 | ||
3841 | int | |
3842 | main () | |
3843 | { | |
3844 | exit (find_stack_direction () < 0); | |
3845 | } | |
3846 | _ACEOF | |
3847 | rm -f conftest$ac_exeext | |
5141b016 | 3848 | if { (eval echo "$as_me:3848: \"$ac_link\"") >&5 |
18569462 AD |
3849 | (eval $ac_link) 2>&5 |
3850 | ac_status=$? | |
5141b016 AD |
3851 | echo "$as_me:3851: \$? = $ac_status" >&5 |
3852 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3853 | { (eval echo "$as_me:3853: \"$ac_try\"") >&5 | |
18569462 AD |
3854 | (eval $ac_try) 2>&5 |
3855 | ac_status=$? | |
5141b016 | 3856 | echo "$as_me:3856: \$? = $ac_status" >&5 |
18569462 AD |
3857 | (exit $ac_status); }; }; then |
3858 | ac_cv_c_stack_direction=1 | |
3859 | else | |
3860 | echo "$as_me: program exited with status $ac_status" >&5 | |
3861 | echo "$as_me: failed program was:" >&5 | |
3862 | cat conftest.$ac_ext >&5 | |
3863 | ac_cv_c_stack_direction=-1 | |
3864 | fi | |
3865 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3866 | fi | |
3867 | fi | |
5141b016 | 3868 | echo "$as_me:3868: result: $ac_cv_c_stack_direction" >&5 |
18569462 AD |
3869 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 |
3870 | ||
3871 | cat >>confdefs.h <<EOF | |
3872 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3873 | EOF | |
3874 | ||
3875 | fi | |
3876 | ||
3877 | for ac_func in mkstemp setlocale | |
3878 | do | |
3879 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5141b016 | 3880 | echo "$as_me:3880: checking for $ac_func" >&5 |
18569462 AD |
3881 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
3882 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
3883 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3884 | else | |
3885 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3886 | #line 3886 "configure" |
18569462 AD |
3887 | #include "confdefs.h" |
3888 | /* System header to define __stub macros and hopefully few prototypes, | |
3889 | which can conflict with char $ac_func (); below. */ | |
3890 | #include <assert.h> | |
3891 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3892 | #ifdef __cplusplus | |
3893 | extern "C" | |
3894 | #endif | |
3895 | /* We use char because int might match the return type of a gcc2 | |
3896 | builtin and then its argument prototype would still apply. */ | |
3897 | char $ac_func (); | |
3898 | char (*f) (); | |
3899 | ||
3900 | int | |
3901 | main () | |
3902 | { | |
3903 | /* The GNU C library defines this for functions which it implements | |
3904 | to always fail with ENOSYS. Some functions are actually named | |
3905 | something starting with __ and the normal name is an alias. */ | |
3906 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3907 | choke me | |
3908 | #else | |
3909 | f = $ac_func; | |
3910 | #endif | |
3911 | ||
3912 | ; | |
3913 | return 0; | |
3914 | } | |
3915 | _ACEOF | |
3916 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 3917 | if { (eval echo "$as_me:3917: \"$ac_link\"") >&5 |
18569462 AD |
3918 | (eval $ac_link) 2>&5 |
3919 | ac_status=$? | |
5141b016 | 3920 | echo "$as_me:3920: \$? = $ac_status" >&5 |
18569462 | 3921 | (exit $ac_status); } && |
5141b016 AD |
3922 | { ac_try='test -s conftest$ac_exeext' |
3923 | { (eval echo "$as_me:3923: \"$ac_try\"") >&5 | |
18569462 AD |
3924 | (eval $ac_try) 2>&5 |
3925 | ac_status=$? | |
5141b016 | 3926 | echo "$as_me:3926: \$? = $ac_status" >&5 |
18569462 AD |
3927 | (exit $ac_status); }; }; then |
3928 | eval "$ac_ac_var=yes" | |
3929 | else | |
3930 | echo "$as_me: failed program was:" >&5 | |
3931 | cat conftest.$ac_ext >&5 | |
3932 | eval "$ac_ac_var=no" | |
3933 | fi | |
3934 | rm -f conftest$ac_exeext conftest.$ac_ext | |
3935 | fi | |
5141b016 | 3936 | echo "$as_me:3936: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
3937 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
3938 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
3939 | cat >>confdefs.h <<EOF | |
3940 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
3941 | EOF | |
3942 | ||
3943 | fi | |
3944 | done | |
3945 | ||
3946 | for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h | |
3947 | do | |
3948 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
5141b016 | 3949 | echo "$as_me:3949: checking for $ac_header" >&5 |
18569462 AD |
3950 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
3951 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
3952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3953 | else | |
3954 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 3955 | #line 3955 "configure" |
18569462 AD |
3956 | #include "confdefs.h" |
3957 | #include <$ac_header> | |
3958 | _ACEOF | |
5141b016 | 3959 | if { (eval echo "$as_me:3959: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
3960 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
3961 | ac_status=$? | |
3962 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
3963 | rm -f conftest.er1 | |
3964 | cat conftest.err >&5 | |
5141b016 | 3965 | echo "$as_me:3965: \$? = $ac_status" >&5 |
18569462 AD |
3966 | (exit $ac_status); }; then |
3967 | if test -s conftest.err; then | |
3968 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3969 | else | |
3970 | ac_cpp_err= | |
3971 | fi | |
3972 | else | |
3973 | ac_cpp_err=yes | |
3974 | fi | |
3975 | if test -z "$ac_cpp_err"; then | |
3976 | eval "$ac_ac_Header=yes" | |
3977 | else | |
3978 | echo "$as_me: failed program was:" >&5 | |
3979 | cat conftest.$ac_ext >&5 | |
3980 | eval "$ac_ac_Header=no" | |
3981 | fi | |
3982 | rm -f conftest.err conftest.$ac_ext | |
3983 | fi | |
5141b016 | 3984 | echo "$as_me:3984: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
3985 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
3986 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
3987 | cat >>confdefs.h <<EOF | |
3988 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
3989 | EOF | |
3990 | ||
3991 | fi | |
3992 | done | |
3993 | ||
5141b016 | 3994 | echo "$as_me:3994: checking whether stpcpy is declared" >&5 |
18569462 AD |
3995 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 |
3996 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
3997 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3998 | else | |
3999 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4000 | #line 4000 "configure" |
18569462 AD |
4001 | #include "confdefs.h" |
4002 | $ac_includes_default | |
4003 | int | |
4004 | main () | |
4005 | { | |
4006 | #ifndef stpcpy | |
4007 | char *p = (char *) stpcpy; | |
4008 | #endif | |
4009 | ||
4010 | ; | |
4011 | return 0; | |
4012 | } | |
4013 | _ACEOF | |
4014 | rm -f conftest.$ac_objext | |
5141b016 | 4015 | if { (eval echo "$as_me:4015: \"$ac_compile\"") >&5 |
18569462 AD |
4016 | (eval $ac_compile) 2>&5 |
4017 | ac_status=$? | |
5141b016 | 4018 | echo "$as_me:4018: \$? = $ac_status" >&5 |
18569462 | 4019 | (exit $ac_status); } && |
5141b016 AD |
4020 | { ac_try='test -s conftest.$ac_objext' |
4021 | { (eval echo "$as_me:4021: \"$ac_try\"") >&5 | |
18569462 AD |
4022 | (eval $ac_try) 2>&5 |
4023 | ac_status=$? | |
5141b016 | 4024 | echo "$as_me:4024: \$? = $ac_status" >&5 |
18569462 AD |
4025 | (exit $ac_status); }; }; then |
4026 | ac_cv_have_decl_stpcpy=yes | |
4027 | else | |
4028 | echo "$as_me: failed program was:" >&5 | |
4029 | cat conftest.$ac_ext >&5 | |
4030 | ac_cv_have_decl_stpcpy=no | |
4031 | fi | |
4032 | rm -f conftest.$ac_objext conftest.$ac_ext | |
705db0b5 | 4033 | fi |
5141b016 | 4034 | echo "$as_me:4034: result: $ac_cv_have_decl_stpcpy" >&5 |
18569462 AD |
4035 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 |
4036 | if test $ac_cv_have_decl_stpcpy = yes; then | |
705db0b5 | 4037 | |
18569462 AD |
4038 | cat >>confdefs.h <<EOF |
4039 | #define HAVE_DECL_STPCPY 1 | |
705db0b5 AD |
4040 | EOF |
4041 | ||
18569462 AD |
4042 | else |
4043 | cat >>confdefs.h <<EOF | |
4044 | #define HAVE_DECL_STPCPY 0 | |
4045 | EOF | |
705db0b5 | 4046 | |
18569462 | 4047 | fi |
5141b016 | 4048 | echo "$as_me:4048: checking whether strndup is declared" >&5 |
18569462 AD |
4049 | echo $ECHO_N "checking whether strndup is declared... $ECHO_C" >&6 |
4050 | if test "${ac_cv_have_decl_strndup+set}" = set; then | |
4051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4052 | else |
18569462 | 4053 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4054 | #line 4054 "configure" |
705db0b5 | 4055 | #include "confdefs.h" |
18569462 AD |
4056 | $ac_includes_default |
4057 | int | |
4058 | main () | |
4059 | { | |
4060 | #ifndef strndup | |
4061 | char *p = (char *) strndup; | |
705db0b5 AD |
4062 | #endif |
4063 | ||
18569462 AD |
4064 | ; |
4065 | return 0; | |
4066 | } | |
4067 | _ACEOF | |
4068 | rm -f conftest.$ac_objext | |
5141b016 | 4069 | if { (eval echo "$as_me:4069: \"$ac_compile\"") >&5 |
18569462 AD |
4070 | (eval $ac_compile) 2>&5 |
4071 | ac_status=$? | |
5141b016 | 4072 | echo "$as_me:4072: \$? = $ac_status" >&5 |
18569462 | 4073 | (exit $ac_status); } && |
5141b016 AD |
4074 | { ac_try='test -s conftest.$ac_objext' |
4075 | { (eval echo "$as_me:4075: \"$ac_try\"") >&5 | |
18569462 AD |
4076 | (eval $ac_try) 2>&5 |
4077 | ac_status=$? | |
5141b016 | 4078 | echo "$as_me:4078: \$? = $ac_status" >&5 |
18569462 AD |
4079 | (exit $ac_status); }; }; then |
4080 | ac_cv_have_decl_strndup=yes | |
705db0b5 | 4081 | else |
18569462 AD |
4082 | echo "$as_me: failed program was:" >&5 |
4083 | cat conftest.$ac_ext >&5 | |
4084 | ac_cv_have_decl_strndup=no | |
705db0b5 | 4085 | fi |
18569462 | 4086 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4087 | fi |
5141b016 | 4088 | echo "$as_me:4088: result: $ac_cv_have_decl_strndup" >&5 |
18569462 AD |
4089 | echo "${ECHO_T}$ac_cv_have_decl_strndup" >&6 |
4090 | if test $ac_cv_have_decl_strndup = yes; then | |
705db0b5 | 4091 | |
18569462 AD |
4092 | cat >>confdefs.h <<EOF |
4093 | #define HAVE_DECL_STRNDUP 1 | |
4094 | EOF | |
705db0b5 | 4095 | |
18569462 AD |
4096 | else |
4097 | cat >>confdefs.h <<EOF | |
4098 | #define HAVE_DECL_STRNDUP 0 | |
4099 | EOF | |
705db0b5 | 4100 | |
18569462 | 4101 | fi |
5141b016 | 4102 | echo "$as_me:4102: checking whether strnlen is declared" >&5 |
18569462 AD |
4103 | echo $ECHO_N "checking whether strnlen is declared... $ECHO_C" >&6 |
4104 | if test "${ac_cv_have_decl_strnlen+set}" = set; then | |
4105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4106 | else | |
4107 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4108 | #line 4108 "configure" |
18569462 AD |
4109 | #include "confdefs.h" |
4110 | $ac_includes_default | |
4111 | int | |
4112 | main () | |
4113 | { | |
4114 | #ifndef strnlen | |
4115 | char *p = (char *) strnlen; | |
705db0b5 AD |
4116 | #endif |
4117 | ||
18569462 AD |
4118 | ; |
4119 | return 0; | |
4120 | } | |
4121 | _ACEOF | |
4122 | rm -f conftest.$ac_objext | |
5141b016 | 4123 | if { (eval echo "$as_me:4123: \"$ac_compile\"") >&5 |
18569462 AD |
4124 | (eval $ac_compile) 2>&5 |
4125 | ac_status=$? | |
5141b016 | 4126 | echo "$as_me:4126: \$? = $ac_status" >&5 |
18569462 | 4127 | (exit $ac_status); } && |
5141b016 AD |
4128 | { ac_try='test -s conftest.$ac_objext' |
4129 | { (eval echo "$as_me:4129: \"$ac_try\"") >&5 | |
18569462 AD |
4130 | (eval $ac_try) 2>&5 |
4131 | ac_status=$? | |
5141b016 | 4132 | echo "$as_me:4132: \$? = $ac_status" >&5 |
18569462 AD |
4133 | (exit $ac_status); }; }; then |
4134 | ac_cv_have_decl_strnlen=yes | |
705db0b5 | 4135 | else |
18569462 AD |
4136 | echo "$as_me: failed program was:" >&5 |
4137 | cat conftest.$ac_ext >&5 | |
4138 | ac_cv_have_decl_strnlen=no | |
705db0b5 | 4139 | fi |
18569462 | 4140 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4141 | fi |
5141b016 | 4142 | echo "$as_me:4142: result: $ac_cv_have_decl_strnlen" >&5 |
18569462 AD |
4143 | echo "${ECHO_T}$ac_cv_have_decl_strnlen" >&6 |
4144 | if test $ac_cv_have_decl_strnlen = yes; then | |
705db0b5 | 4145 | |
18569462 AD |
4146 | cat >>confdefs.h <<EOF |
4147 | #define HAVE_DECL_STRNLEN 1 | |
705db0b5 AD |
4148 | EOF |
4149 | ||
705db0b5 | 4150 | else |
18569462 AD |
4151 | cat >>confdefs.h <<EOF |
4152 | #define HAVE_DECL_STRNLEN 0 | |
4153 | EOF | |
705db0b5 | 4154 | |
705db0b5 | 4155 | fi |
5141b016 | 4156 | echo "$as_me:4156: checking whether memchr is declared" >&5 |
18569462 AD |
4157 | echo $ECHO_N "checking whether memchr is declared... $ECHO_C" >&6 |
4158 | if test "${ac_cv_have_decl_memchr+set}" = set; then | |
4159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4160 | else |
18569462 | 4161 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4162 | #line 4162 "configure" |
705db0b5 | 4163 | #include "confdefs.h" |
18569462 AD |
4164 | $ac_includes_default |
4165 | int | |
705db0b5 AD |
4166 | main () |
4167 | { | |
18569462 AD |
4168 | #ifndef memchr |
4169 | char *p = (char *) memchr; | |
4170 | #endif | |
4171 | ||
4172 | ; | |
4173 | return 0; | |
705db0b5 | 4174 | } |
18569462 AD |
4175 | _ACEOF |
4176 | rm -f conftest.$ac_objext | |
5141b016 | 4177 | if { (eval echo "$as_me:4177: \"$ac_compile\"") >&5 |
18569462 AD |
4178 | (eval $ac_compile) 2>&5 |
4179 | ac_status=$? | |
5141b016 | 4180 | echo "$as_me:4180: \$? = $ac_status" >&5 |
18569462 | 4181 | (exit $ac_status); } && |
5141b016 AD |
4182 | { ac_try='test -s conftest.$ac_objext' |
4183 | { (eval echo "$as_me:4183: \"$ac_try\"") >&5 | |
18569462 AD |
4184 | (eval $ac_try) 2>&5 |
4185 | ac_status=$? | |
5141b016 | 4186 | echo "$as_me:4186: \$? = $ac_status" >&5 |
18569462 AD |
4187 | (exit $ac_status); }; }; then |
4188 | ac_cv_have_decl_memchr=yes | |
705db0b5 | 4189 | else |
18569462 AD |
4190 | echo "$as_me: failed program was:" >&5 |
4191 | cat conftest.$ac_ext >&5 | |
4192 | ac_cv_have_decl_memchr=no | |
705db0b5 | 4193 | fi |
18569462 | 4194 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4195 | fi |
5141b016 | 4196 | echo "$as_me:4196: result: $ac_cv_have_decl_memchr" >&5 |
18569462 AD |
4197 | echo "${ECHO_T}$ac_cv_have_decl_memchr" >&6 |
4198 | if test $ac_cv_have_decl_memchr = yes; then | |
705db0b5 | 4199 | |
18569462 AD |
4200 | cat >>confdefs.h <<EOF |
4201 | #define HAVE_DECL_MEMCHR 1 | |
4202 | EOF | |
705db0b5 | 4203 | |
18569462 AD |
4204 | else |
4205 | cat >>confdefs.h <<EOF | |
4206 | #define HAVE_DECL_MEMCHR 0 | |
705db0b5 AD |
4207 | EOF |
4208 | ||
4209 | fi | |
4210 | ||
18569462 | 4211 | for ac_func in stpcpy strndup strnlen memchr |
705db0b5 | 4212 | do |
18569462 | 4213 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 4214 | echo "$as_me:4214: checking for $ac_func" >&5 |
18569462 AD |
4215 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4216 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4218 | else | |
4219 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4220 | #line 4220 "configure" |
705db0b5 AD |
4221 | #include "confdefs.h" |
4222 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4223 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4224 | #include <assert.h> |
4225 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4226 | #ifdef __cplusplus |
4227 | extern "C" | |
4228 | #endif | |
705db0b5 | 4229 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4230 | builtin and then its argument prototype would still apply. */ |
4231 | char $ac_func (); | |
4232 | char (*f) (); | |
705db0b5 | 4233 | |
18569462 AD |
4234 | int |
4235 | main () | |
4236 | { | |
705db0b5 AD |
4237 | /* The GNU C library defines this for functions which it implements |
4238 | to always fail with ENOSYS. Some functions are actually named | |
4239 | something starting with __ and the normal name is an alias. */ | |
4240 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4241 | choke me | |
4242 | #else | |
18569462 | 4243 | f = $ac_func; |
705db0b5 AD |
4244 | #endif |
4245 | ||
18569462 AD |
4246 | ; |
4247 | return 0; | |
4248 | } | |
4249 | _ACEOF | |
4250 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 4251 | if { (eval echo "$as_me:4251: \"$ac_link\"") >&5 |
18569462 AD |
4252 | (eval $ac_link) 2>&5 |
4253 | ac_status=$? | |
5141b016 | 4254 | echo "$as_me:4254: \$? = $ac_status" >&5 |
18569462 | 4255 | (exit $ac_status); } && |
5141b016 AD |
4256 | { ac_try='test -s conftest$ac_exeext' |
4257 | { (eval echo "$as_me:4257: \"$ac_try\"") >&5 | |
18569462 AD |
4258 | (eval $ac_try) 2>&5 |
4259 | ac_status=$? | |
5141b016 | 4260 | echo "$as_me:4260: \$? = $ac_status" >&5 |
18569462 AD |
4261 | (exit $ac_status); }; }; then |
4262 | eval "$ac_ac_var=yes" | |
705db0b5 | 4263 | else |
18569462 AD |
4264 | echo "$as_me: failed program was:" >&5 |
4265 | cat conftest.$ac_ext >&5 | |
4266 | eval "$ac_ac_var=no" | |
705db0b5 | 4267 | fi |
18569462 | 4268 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4269 | fi |
5141b016 | 4270 | echo "$as_me:4270: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
4271 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
4272 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4273 | cat >>confdefs.h <<EOF | |
4274 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 4275 | EOF |
18569462 | 4276 | |
705db0b5 | 4277 | else |
18569462 | 4278 | LIBOBJS="$LIBOBJS $ac_func.$ac_objext" |
705db0b5 AD |
4279 | fi |
4280 | done | |
4281 | ||
18569462 | 4282 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4283 | #define HAVE_DONE_WORKING_MALLOC_CHECK 1 |
4284 | EOF | |
4285 | ||
5141b016 | 4286 | echo "$as_me:4286: checking for working malloc" >&5 |
18569462 AD |
4287 | echo $ECHO_N "checking for working malloc... $ECHO_C" >&6 |
4288 | if test "${jm_cv_func_working_malloc+set}" = set; then | |
4289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4290 | else |
4291 | if test "$cross_compiling" = yes; then | |
4292 | jm_cv_func_working_malloc=no | |
4293 | else | |
18569462 | 4294 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4295 | #line 4295 "configure" |
705db0b5 AD |
4296 | #include "confdefs.h" |
4297 | ||
4298 | char *malloc (); | |
4299 | int | |
4300 | main () | |
4301 | { | |
4302 | exit (malloc (0) ? 0 : 1); | |
4303 | } | |
18569462 AD |
4304 | |
4305 | _ACEOF | |
4306 | rm -f conftest$ac_exeext | |
5141b016 | 4307 | if { (eval echo "$as_me:4307: \"$ac_link\"") >&5 |
18569462 AD |
4308 | (eval $ac_link) 2>&5 |
4309 | ac_status=$? | |
5141b016 AD |
4310 | echo "$as_me:4310: \$? = $ac_status" >&5 |
4311 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4312 | { (eval echo "$as_me:4312: \"$ac_try\"") >&5 | |
18569462 AD |
4313 | (eval $ac_try) 2>&5 |
4314 | ac_status=$? | |
5141b016 | 4315 | echo "$as_me:4315: \$? = $ac_status" >&5 |
18569462 | 4316 | (exit $ac_status); }; }; then |
705db0b5 AD |
4317 | jm_cv_func_working_malloc=yes |
4318 | else | |
18569462 AD |
4319 | echo "$as_me: program exited with status $ac_status" >&5 |
4320 | echo "$as_me: failed program was:" >&5 | |
4321 | cat conftest.$ac_ext >&5 | |
4322 | jm_cv_func_working_malloc=no | |
705db0b5 | 4323 | fi |
18569462 | 4324 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 AD |
4325 | fi |
4326 | ||
705db0b5 | 4327 | fi |
5141b016 | 4328 | echo "$as_me:4328: result: $jm_cv_func_working_malloc" >&5 |
18569462 | 4329 | echo "${ECHO_T}$jm_cv_func_working_malloc" >&6 |
705db0b5 | 4330 | if test $jm_cv_func_working_malloc = no; then |
18569462 | 4331 | |
705db0b5 | 4332 | LIBOBJS="$LIBOBJS malloc.$ac_objext" |
18569462 AD |
4333 | |
4334 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4335 | #define malloc rpl_malloc |
4336 | EOF | |
4337 | ||
4338 | fi | |
4339 | ||
18569462 | 4340 | cat >>confdefs.h <<EOF |
705db0b5 AD |
4341 | #define HAVE_DONE_WORKING_REALLOC_CHECK 1 |
4342 | EOF | |
4343 | ||
5141b016 | 4344 | echo "$as_me:4344: checking for working realloc" >&5 |
18569462 AD |
4345 | echo $ECHO_N "checking for working realloc... $ECHO_C" >&6 |
4346 | if test "${jm_cv_func_working_realloc+set}" = set; then | |
4347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
4348 | else |
4349 | if test "$cross_compiling" = yes; then | |
4350 | jm_cv_func_working_realloc=no | |
4351 | else | |
18569462 | 4352 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4353 | #line 4353 "configure" |
705db0b5 AD |
4354 | #include "confdefs.h" |
4355 | ||
4356 | char *realloc (); | |
4357 | int | |
4358 | main () | |
4359 | { | |
4360 | exit (realloc (0, 0) ? 0 : 1); | |
4361 | } | |
18569462 AD |
4362 | |
4363 | _ACEOF | |
4364 | rm -f conftest$ac_exeext | |
5141b016 | 4365 | if { (eval echo "$as_me:4365: \"$ac_link\"") >&5 |
18569462 AD |
4366 | (eval $ac_link) 2>&5 |
4367 | ac_status=$? | |
5141b016 AD |
4368 | echo "$as_me:4368: \$? = $ac_status" >&5 |
4369 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4370 | { (eval echo "$as_me:4370: \"$ac_try\"") >&5 | |
18569462 AD |
4371 | (eval $ac_try) 2>&5 |
4372 | ac_status=$? | |
5141b016 | 4373 | echo "$as_me:4373: \$? = $ac_status" >&5 |
18569462 | 4374 | (exit $ac_status); }; }; then |
705db0b5 AD |
4375 | jm_cv_func_working_realloc=yes |
4376 | else | |
18569462 AD |
4377 | echo "$as_me: program exited with status $ac_status" >&5 |
4378 | echo "$as_me: failed program was:" >&5 | |
4379 | cat conftest.$ac_ext >&5 | |
4380 | jm_cv_func_working_realloc=no | |
705db0b5 | 4381 | fi |
18569462 | 4382 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 AD |
4383 | fi |
4384 | ||
705db0b5 | 4385 | fi |
5141b016 | 4386 | echo "$as_me:4386: result: $jm_cv_func_working_realloc" >&5 |
18569462 | 4387 | echo "${ECHO_T}$jm_cv_func_working_realloc" >&6 |
705db0b5 | 4388 | if test $jm_cv_func_working_realloc = no; then |
18569462 | 4389 | |
705db0b5 | 4390 | LIBOBJS="$LIBOBJS realloc.$ac_objext" |
18569462 AD |
4391 | |
4392 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
4393 | #define realloc rpl_realloc |
4394 | EOF | |
4395 | ||
4396 | fi | |
4397 | ||
18569462 | 4398 | for ac_func in isascii iswprint mbrtowc |
705db0b5 | 4399 | do |
18569462 | 4400 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 4401 | echo "$as_me:4401: checking for $ac_func" >&5 |
18569462 AD |
4402 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
4403 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
4404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4405 | else | |
4406 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4407 | #line 4407 "configure" |
705db0b5 AD |
4408 | #include "confdefs.h" |
4409 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 4410 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
4411 | #include <assert.h> |
4412 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
4413 | #ifdef __cplusplus |
4414 | extern "C" | |
4415 | #endif | |
705db0b5 | 4416 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
4417 | builtin and then its argument prototype would still apply. */ |
4418 | char $ac_func (); | |
4419 | char (*f) (); | |
705db0b5 | 4420 | |
18569462 AD |
4421 | int |
4422 | main () | |
4423 | { | |
705db0b5 AD |
4424 | /* The GNU C library defines this for functions which it implements |
4425 | to always fail with ENOSYS. Some functions are actually named | |
4426 | something starting with __ and the normal name is an alias. */ | |
4427 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4428 | choke me | |
4429 | #else | |
18569462 | 4430 | f = $ac_func; |
705db0b5 AD |
4431 | #endif |
4432 | ||
18569462 AD |
4433 | ; |
4434 | return 0; | |
4435 | } | |
4436 | _ACEOF | |
4437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 4438 | if { (eval echo "$as_me:4438: \"$ac_link\"") >&5 |
18569462 AD |
4439 | (eval $ac_link) 2>&5 |
4440 | ac_status=$? | |
5141b016 | 4441 | echo "$as_me:4441: \$? = $ac_status" >&5 |
18569462 | 4442 | (exit $ac_status); } && |
5141b016 AD |
4443 | { ac_try='test -s conftest$ac_exeext' |
4444 | { (eval echo "$as_me:4444: \"$ac_try\"") >&5 | |
18569462 AD |
4445 | (eval $ac_try) 2>&5 |
4446 | ac_status=$? | |
5141b016 | 4447 | echo "$as_me:4447: \$? = $ac_status" >&5 |
18569462 AD |
4448 | (exit $ac_status); }; }; then |
4449 | eval "$ac_ac_var=yes" | |
4450 | else | |
4451 | echo "$as_me: failed program was:" >&5 | |
4452 | cat conftest.$ac_ext >&5 | |
4453 | eval "$ac_ac_var=no" | |
4454 | fi | |
4455 | rm -f conftest$ac_exeext conftest.$ac_ext | |
4456 | fi | |
5141b016 | 4457 | echo "$as_me:4457: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
4458 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
4459 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
4460 | cat >>confdefs.h <<EOF | |
4461 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 4462 | EOF |
705db0b5 | 4463 | |
705db0b5 AD |
4464 | fi |
4465 | done | |
4466 | ||
18569462 | 4467 | for ac_header in limits.h stdlib.h string.h wchar.h wctype.h |
705db0b5 | 4468 | do |
18569462 | 4469 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 4470 | echo "$as_me:4470: checking for $ac_header" >&5 |
18569462 AD |
4471 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4472 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4474 | else | |
4475 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4476 | #line 4476 "configure" |
705db0b5 | 4477 | #include "confdefs.h" |
18569462 AD |
4478 | #include <$ac_header> |
4479 | _ACEOF | |
5141b016 | 4480 | if { (eval echo "$as_me:4480: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
4481 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
4482 | ac_status=$? | |
4483 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4484 | rm -f conftest.er1 | |
4485 | cat conftest.err >&5 | |
5141b016 | 4486 | echo "$as_me:4486: \$? = $ac_status" >&5 |
18569462 AD |
4487 | (exit $ac_status); }; then |
4488 | if test -s conftest.err; then | |
4489 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4490 | else | |
4491 | ac_cpp_err= | |
4492 | fi | |
4493 | else | |
4494 | ac_cpp_err=yes | |
4495 | fi | |
4496 | if test -z "$ac_cpp_err"; then | |
4497 | eval "$ac_ac_Header=yes" | |
4498 | else | |
4499 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4500 | cat conftest.$ac_ext >&5 |
18569462 | 4501 | eval "$ac_ac_Header=no" |
705db0b5 | 4502 | fi |
18569462 | 4503 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4504 | fi |
5141b016 | 4505 | echo "$as_me:4505: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4506 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
4507 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4508 | cat >>confdefs.h <<EOF | |
4509 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 4510 | EOF |
18569462 | 4511 | |
705db0b5 AD |
4512 | fi |
4513 | done | |
4514 | ||
5141b016 | 4515 | echo "$as_me:4515: checking for ANSI C header files" >&5 |
18569462 AD |
4516 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4517 | if test "${ac_cv_header_stdc+set}" = set; then | |
4518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4519 | else |
18569462 | 4520 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4521 | #line 4521 "configure" |
705db0b5 AD |
4522 | #include "confdefs.h" |
4523 | #include <stdlib.h> | |
4524 | #include <stdarg.h> | |
4525 | #include <string.h> | |
4526 | #include <float.h> | |
18569462 AD |
4527 | |
4528 | _ACEOF | |
5141b016 | 4529 | if { (eval echo "$as_me:4529: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
4530 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
4531 | ac_status=$? | |
4532 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4533 | rm -f conftest.er1 | |
4534 | cat conftest.err >&5 | |
5141b016 | 4535 | echo "$as_me:4535: \$? = $ac_status" >&5 |
18569462 AD |
4536 | (exit $ac_status); }; then |
4537 | if test -s conftest.err; then | |
4538 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4539 | else | |
4540 | ac_cpp_err= | |
4541 | fi | |
4542 | else | |
4543 | ac_cpp_err=yes | |
4544 | fi | |
4545 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4546 | ac_cv_header_stdc=yes |
4547 | else | |
18569462 | 4548 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4549 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4550 | ac_cv_header_stdc=no |
4551 | fi | |
18569462 | 4552 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4553 | |
4554 | if test $ac_cv_header_stdc = yes; then | |
4555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4556 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4557 | #line 4557 "configure" |
705db0b5 AD |
4558 | #include "confdefs.h" |
4559 | #include <string.h> | |
18569462 AD |
4560 | |
4561 | _ACEOF | |
705db0b5 AD |
4562 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4563 | egrep "memchr" >/dev/null 2>&1; then | |
4564 | : | |
4565 | else | |
705db0b5 AD |
4566 | ac_cv_header_stdc=no |
4567 | fi | |
4568 | rm -f conftest* | |
4569 | ||
4570 | fi | |
4571 | ||
4572 | if test $ac_cv_header_stdc = yes; then | |
4573 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4574 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4575 | #line 4575 "configure" |
705db0b5 AD |
4576 | #include "confdefs.h" |
4577 | #include <stdlib.h> | |
18569462 AD |
4578 | |
4579 | _ACEOF | |
705db0b5 AD |
4580 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4581 | egrep "free" >/dev/null 2>&1; then | |
4582 | : | |
4583 | else | |
705db0b5 AD |
4584 | ac_cv_header_stdc=no |
4585 | fi | |
4586 | rm -f conftest* | |
4587 | ||
4588 | fi | |
4589 | ||
4590 | if test $ac_cv_header_stdc = yes; then | |
4591 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4592 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4593 | : |
4594 | else | |
18569462 | 4595 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4596 | #line 4596 "configure" |
705db0b5 AD |
4597 | #include "confdefs.h" |
4598 | #include <ctype.h> | |
18569462 AD |
4599 | #if ((' ' & 0x0FF) == 0x020) |
4600 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4601 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4602 | #else | |
4603 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4604 | || ('j' <= (c) && (c) <= 'r') \ | |
4605 | || ('s' <= (c) && (c) <= 'z')) | |
4606 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4607 | #endif | |
705db0b5 | 4608 | |
18569462 AD |
4609 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4610 | int | |
4611 | main () | |
4612 | { | |
4613 | int i; | |
4614 | for (i = 0; i < 256; i++) | |
4615 | if (XOR (islower (i), ISLOWER (i)) | |
4616 | || toupper (i) != TOUPPER (i)) | |
4617 | exit(2); | |
4618 | exit (0); | |
4619 | } | |
4620 | _ACEOF | |
4621 | rm -f conftest$ac_exeext | |
5141b016 | 4622 | if { (eval echo "$as_me:4622: \"$ac_link\"") >&5 |
18569462 AD |
4623 | (eval $ac_link) 2>&5 |
4624 | ac_status=$? | |
5141b016 AD |
4625 | echo "$as_me:4625: \$? = $ac_status" >&5 |
4626 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4627 | { (eval echo "$as_me:4627: \"$ac_try\"") >&5 | |
18569462 AD |
4628 | (eval $ac_try) 2>&5 |
4629 | ac_status=$? | |
5141b016 | 4630 | echo "$as_me:4630: \$? = $ac_status" >&5 |
18569462 | 4631 | (exit $ac_status); }; }; then |
705db0b5 AD |
4632 | : |
4633 | else | |
18569462 AD |
4634 | echo "$as_me: program exited with status $ac_status" >&5 |
4635 | echo "$as_me: failed program was:" >&5 | |
4636 | cat conftest.$ac_ext >&5 | |
4637 | ac_cv_header_stdc=no | |
705db0b5 | 4638 | fi |
18569462 | 4639 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4640 | fi |
705db0b5 AD |
4641 | fi |
4642 | fi | |
5141b016 | 4643 | echo "$as_me:4643: result: $ac_cv_header_stdc" >&5 |
18569462 | 4644 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4645 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
4646 | |
4647 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4648 | #define STDC_HEADERS 1 |
4649 | EOF | |
4650 | ||
4651 | fi | |
4652 | ||
5141b016 | 4653 | echo "$as_me:4653: checking whether backslash-a works in strings" >&5 |
18569462 AD |
4654 | echo $ECHO_N "checking whether backslash-a works in strings... $ECHO_C" >&6 |
4655 | if test "${ac_cv_c_backslash_a+set}" = set; then | |
4656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4657 | else |
18569462 | 4658 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4659 | #line 4659 "configure" |
705db0b5 AD |
4660 | #include "confdefs.h" |
4661 | ||
18569462 AD |
4662 | int |
4663 | main () | |
4664 | { | |
705db0b5 AD |
4665 | |
4666 | #if '\a' == 'a' | |
4667 | syntax error; | |
4668 | #endif | |
4669 | char buf['\a' == 'a' ? -1 : 1]; | |
4670 | buf[0] = '\a'; | |
4671 | return buf[0] != "\a"[0]; | |
18569462 AD |
4672 | |
4673 | ; | |
4674 | return 0; | |
4675 | } | |
4676 | _ACEOF | |
4677 | rm -f conftest.$ac_objext | |
5141b016 | 4678 | if { (eval echo "$as_me:4678: \"$ac_compile\"") >&5 |
18569462 AD |
4679 | (eval $ac_compile) 2>&5 |
4680 | ac_status=$? | |
5141b016 | 4681 | echo "$as_me:4681: \$? = $ac_status" >&5 |
18569462 | 4682 | (exit $ac_status); } && |
5141b016 AD |
4683 | { ac_try='test -s conftest.$ac_objext' |
4684 | { (eval echo "$as_me:4684: \"$ac_try\"") >&5 | |
18569462 AD |
4685 | (eval $ac_try) 2>&5 |
4686 | ac_status=$? | |
5141b016 | 4687 | echo "$as_me:4687: \$? = $ac_status" >&5 |
18569462 | 4688 | (exit $ac_status); }; }; then |
705db0b5 AD |
4689 | ac_cv_c_backslash_a=yes |
4690 | else | |
18569462 AD |
4691 | echo "$as_me: failed program was:" >&5 |
4692 | cat conftest.$ac_ext >&5 | |
4693 | ac_cv_c_backslash_a=no | |
705db0b5 | 4694 | fi |
18569462 | 4695 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4696 | fi |
5141b016 | 4697 | echo "$as_me:4697: result: $ac_cv_c_backslash_a" >&5 |
18569462 | 4698 | echo "${ECHO_T}$ac_cv_c_backslash_a" >&6 |
705db0b5 | 4699 | if test $ac_cv_c_backslash_a = yes; then |
18569462 AD |
4700 | |
4701 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4702 | #define HAVE_C_BACKSLASH_A 1 |
4703 | EOF | |
4704 | ||
4705 | fi | |
4706 | ||
18569462 | 4707 | for ac_header in stdlib.h |
705db0b5 | 4708 | do |
18569462 | 4709 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 4710 | echo "$as_me:4710: checking for $ac_header" >&5 |
18569462 AD |
4711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4712 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4714 | else | |
4715 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4716 | #line 4716 "configure" |
705db0b5 | 4717 | #include "confdefs.h" |
18569462 AD |
4718 | #include <$ac_header> |
4719 | _ACEOF | |
5141b016 | 4720 | if { (eval echo "$as_me:4720: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
4721 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
4722 | ac_status=$? | |
4723 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4724 | rm -f conftest.er1 | |
4725 | cat conftest.err >&5 | |
5141b016 | 4726 | echo "$as_me:4726: \$? = $ac_status" >&5 |
18569462 AD |
4727 | (exit $ac_status); }; then |
4728 | if test -s conftest.err; then | |
4729 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4730 | else | |
4731 | ac_cpp_err= | |
4732 | fi | |
4733 | else | |
4734 | ac_cpp_err=yes | |
4735 | fi | |
4736 | if test -z "$ac_cpp_err"; then | |
4737 | eval "$ac_ac_Header=yes" | |
4738 | else | |
4739 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4740 | cat conftest.$ac_ext >&5 |
18569462 | 4741 | eval "$ac_ac_Header=no" |
705db0b5 | 4742 | fi |
18569462 | 4743 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4744 | fi |
5141b016 | 4745 | echo "$as_me:4745: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4746 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
4747 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
4748 | cat >>confdefs.h <<EOF | |
4749 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 4750 | EOF |
18569462 | 4751 | |
705db0b5 AD |
4752 | fi |
4753 | done | |
4754 | ||
5141b016 | 4755 | echo "$as_me:4755: checking for mbstate_t" >&5 |
18569462 AD |
4756 | echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6 |
4757 | if test "${ac_cv_type_mbstate_t+set}" = set; then | |
4758 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4759 | else |
18569462 | 4760 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4761 | #line 4761 "configure" |
705db0b5 AD |
4762 | #include "confdefs.h" |
4763 | ||
4764 | #if HAVE_STDLIB_H | |
4765 | # include <stdlib.h> | |
4766 | #endif | |
4767 | #include <wchar.h> | |
18569462 AD |
4768 | int |
4769 | main () | |
4770 | { | |
705db0b5 | 4771 | mbstate_t x; return sizeof x; |
18569462 AD |
4772 | ; |
4773 | return 0; | |
4774 | } | |
4775 | _ACEOF | |
4776 | rm -f conftest.$ac_objext | |
5141b016 | 4777 | if { (eval echo "$as_me:4777: \"$ac_compile\"") >&5 |
18569462 AD |
4778 | (eval $ac_compile) 2>&5 |
4779 | ac_status=$? | |
5141b016 | 4780 | echo "$as_me:4780: \$? = $ac_status" >&5 |
18569462 | 4781 | (exit $ac_status); } && |
5141b016 AD |
4782 | { ac_try='test -s conftest.$ac_objext' |
4783 | { (eval echo "$as_me:4783: \"$ac_try\"") >&5 | |
18569462 AD |
4784 | (eval $ac_try) 2>&5 |
4785 | ac_status=$? | |
5141b016 | 4786 | echo "$as_me:4786: \$? = $ac_status" >&5 |
18569462 | 4787 | (exit $ac_status); }; }; then |
705db0b5 AD |
4788 | ac_cv_type_mbstate_t=yes |
4789 | else | |
18569462 AD |
4790 | echo "$as_me: failed program was:" >&5 |
4791 | cat conftest.$ac_ext >&5 | |
4792 | ac_cv_type_mbstate_t=no | |
705db0b5 | 4793 | fi |
18569462 | 4794 | rm -f conftest.$ac_objext conftest.$ac_ext |
705db0b5 | 4795 | fi |
5141b016 | 4796 | echo "$as_me:4796: result: $ac_cv_type_mbstate_t" >&5 |
18569462 | 4797 | echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6 |
705db0b5 | 4798 | if test $ac_cv_type_mbstate_t = no; then |
18569462 AD |
4799 | |
4800 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4801 | #define mbstate_t int |
4802 | EOF | |
4803 | ||
4804 | fi | |
705db0b5 | 4805 | |
5141b016 | 4806 | echo "$as_me:4806: checking for function prototypes" >&5 |
18569462 | 4807 | echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6 |
705db0b5 | 4808 | if test "$am_cv_prog_cc_stdc" != no; then |
5141b016 | 4809 | echo "$as_me:4809: result: yes" >&5 |
18569462 AD |
4810 | echo "${ECHO_T}yes" >&6 |
4811 | ||
4812 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4813 | #define PROTOTYPES 1 |
4814 | EOF | |
4815 | ||
4816 | U= ANSI2KNR= | |
4817 | else | |
5141b016 | 4818 | echo "$as_me:4818: result: no" >&5 |
18569462 | 4819 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
4820 | U=_ ANSI2KNR=./ansi2knr |
4821 | # Ensure some checks needed by ansi2knr itself. | |
5141b016 | 4822 | echo "$as_me:4822: checking for ANSI C header files" >&5 |
18569462 AD |
4823 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 |
4824 | if test "${ac_cv_header_stdc+set}" = set; then | |
4825 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 4826 | else |
18569462 | 4827 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4828 | #line 4828 "configure" |
705db0b5 AD |
4829 | #include "confdefs.h" |
4830 | #include <stdlib.h> | |
4831 | #include <stdarg.h> | |
4832 | #include <string.h> | |
4833 | #include <float.h> | |
18569462 AD |
4834 | |
4835 | _ACEOF | |
5141b016 | 4836 | if { (eval echo "$as_me:4836: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
4837 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
4838 | ac_status=$? | |
4839 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4840 | rm -f conftest.er1 | |
4841 | cat conftest.err >&5 | |
5141b016 | 4842 | echo "$as_me:4842: \$? = $ac_status" >&5 |
18569462 AD |
4843 | (exit $ac_status); }; then |
4844 | if test -s conftest.err; then | |
4845 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4846 | else | |
4847 | ac_cpp_err= | |
4848 | fi | |
4849 | else | |
4850 | ac_cpp_err=yes | |
4851 | fi | |
4852 | if test -z "$ac_cpp_err"; then | |
705db0b5 AD |
4853 | ac_cv_header_stdc=yes |
4854 | else | |
18569462 | 4855 | echo "$as_me: failed program was:" >&5 |
705db0b5 | 4856 | cat conftest.$ac_ext >&5 |
705db0b5 AD |
4857 | ac_cv_header_stdc=no |
4858 | fi | |
18569462 | 4859 | rm -f conftest.err conftest.$ac_ext |
705db0b5 AD |
4860 | |
4861 | if test $ac_cv_header_stdc = yes; then | |
4862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
18569462 | 4863 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4864 | #line 4864 "configure" |
705db0b5 AD |
4865 | #include "confdefs.h" |
4866 | #include <string.h> | |
18569462 AD |
4867 | |
4868 | _ACEOF | |
705db0b5 AD |
4869 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4870 | egrep "memchr" >/dev/null 2>&1; then | |
4871 | : | |
4872 | else | |
705db0b5 AD |
4873 | ac_cv_header_stdc=no |
4874 | fi | |
4875 | rm -f conftest* | |
4876 | ||
4877 | fi | |
4878 | ||
4879 | if test $ac_cv_header_stdc = yes; then | |
4880 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
18569462 | 4881 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4882 | #line 4882 "configure" |
705db0b5 AD |
4883 | #include "confdefs.h" |
4884 | #include <stdlib.h> | |
18569462 AD |
4885 | |
4886 | _ACEOF | |
705db0b5 AD |
4887 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4888 | egrep "free" >/dev/null 2>&1; then | |
4889 | : | |
4890 | else | |
705db0b5 AD |
4891 | ac_cv_header_stdc=no |
4892 | fi | |
4893 | rm -f conftest* | |
4894 | ||
4895 | fi | |
4896 | ||
4897 | if test $ac_cv_header_stdc = yes; then | |
4898 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
18569462 | 4899 | if test "$cross_compiling" = yes; then |
705db0b5 AD |
4900 | : |
4901 | else | |
18569462 | 4902 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 4903 | #line 4903 "configure" |
705db0b5 AD |
4904 | #include "confdefs.h" |
4905 | #include <ctype.h> | |
18569462 AD |
4906 | #if ((' ' & 0x0FF) == 0x020) |
4907 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4908 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4909 | #else | |
4910 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
4911 | || ('j' <= (c) && (c) <= 'r') \ | |
4912 | || ('s' <= (c) && (c) <= 'z')) | |
4913 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4914 | #endif | |
705db0b5 | 4915 | |
18569462 AD |
4916 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4917 | int | |
4918 | main () | |
4919 | { | |
4920 | int i; | |
4921 | for (i = 0; i < 256; i++) | |
4922 | if (XOR (islower (i), ISLOWER (i)) | |
4923 | || toupper (i) != TOUPPER (i)) | |
4924 | exit(2); | |
4925 | exit (0); | |
4926 | } | |
4927 | _ACEOF | |
4928 | rm -f conftest$ac_exeext | |
5141b016 | 4929 | if { (eval echo "$as_me:4929: \"$ac_link\"") >&5 |
18569462 AD |
4930 | (eval $ac_link) 2>&5 |
4931 | ac_status=$? | |
5141b016 AD |
4932 | echo "$as_me:4932: \$? = $ac_status" >&5 |
4933 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4934 | { (eval echo "$as_me:4934: \"$ac_try\"") >&5 | |
18569462 AD |
4935 | (eval $ac_try) 2>&5 |
4936 | ac_status=$? | |
5141b016 | 4937 | echo "$as_me:4937: \$? = $ac_status" >&5 |
18569462 | 4938 | (exit $ac_status); }; }; then |
705db0b5 AD |
4939 | : |
4940 | else | |
18569462 AD |
4941 | echo "$as_me: program exited with status $ac_status" >&5 |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | cat conftest.$ac_ext >&5 | |
4944 | ac_cv_header_stdc=no | |
705db0b5 | 4945 | fi |
18569462 | 4946 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 4947 | fi |
705db0b5 AD |
4948 | fi |
4949 | fi | |
5141b016 | 4950 | echo "$as_me:4950: result: $ac_cv_header_stdc" >&5 |
18569462 | 4951 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 |
705db0b5 | 4952 | if test $ac_cv_header_stdc = yes; then |
18569462 AD |
4953 | |
4954 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
4955 | #define STDC_HEADERS 1 |
4956 | EOF | |
4957 | ||
4958 | fi | |
4959 | ||
18569462 | 4960 | for ac_header in string.h |
705db0b5 | 4961 | do |
18569462 | 4962 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 4963 | echo "$as_me:4963: checking for $ac_header" >&5 |
18569462 AD |
4964 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
4965 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
4966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4967 | else | |
4968 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 4969 | #line 4969 "configure" |
705db0b5 | 4970 | #include "confdefs.h" |
18569462 AD |
4971 | #include <$ac_header> |
4972 | _ACEOF | |
5141b016 | 4973 | if { (eval echo "$as_me:4973: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
4974 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
4975 | ac_status=$? | |
4976 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
4977 | rm -f conftest.er1 | |
4978 | cat conftest.err >&5 | |
5141b016 | 4979 | echo "$as_me:4979: \$? = $ac_status" >&5 |
18569462 AD |
4980 | (exit $ac_status); }; then |
4981 | if test -s conftest.err; then | |
4982 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4983 | else | |
4984 | ac_cpp_err= | |
4985 | fi | |
4986 | else | |
4987 | ac_cpp_err=yes | |
4988 | fi | |
4989 | if test -z "$ac_cpp_err"; then | |
4990 | eval "$ac_ac_Header=yes" | |
4991 | else | |
4992 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 4993 | cat conftest.$ac_ext >&5 |
18569462 | 4994 | eval "$ac_ac_Header=no" |
705db0b5 | 4995 | fi |
18569462 | 4996 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 4997 | fi |
5141b016 | 4998 | echo "$as_me:4998: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
4999 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5000 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5001 | cat >>confdefs.h <<EOF | |
5002 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 5003 | EOF |
18569462 | 5004 | |
705db0b5 AD |
5005 | fi |
5006 | done | |
5007 | ||
5008 | fi | |
5009 | ||
5141b016 AD |
5010 | for ac_func in strerror strerror_r vprintf doprnt |
5011 | do | |
5012 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5013 | echo "$as_me:5013: checking for $ac_func" >&5 | |
5014 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5015 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
18569462 | 5016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
705db0b5 | 5017 | else |
18569462 | 5018 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 5019 | #line 5019 "configure" |
705db0b5 | 5020 | #include "confdefs.h" |
5141b016 AD |
5021 | /* System header to define __stub macros and hopefully few prototypes, |
5022 | which can conflict with char $ac_func (); below. */ | |
5023 | #include <assert.h> | |
5024 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5025 | #ifdef __cplusplus | |
5026 | extern "C" | |
5027 | #endif | |
5028 | /* We use char because int might match the return type of a gcc2 | |
5029 | builtin and then its argument prototype would still apply. */ | |
5030 | char $ac_func (); | |
5031 | char (*f) (); | |
5032 | ||
18569462 AD |
5033 | int |
5034 | main () | |
5035 | { | |
5141b016 AD |
5036 | /* The GNU C library defines this for functions which it implements |
5037 | to always fail with ENOSYS. Some functions are actually named | |
5038 | something starting with __ and the normal name is an alias. */ | |
5039 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5040 | choke me | |
5041 | #else | |
5042 | f = $ac_func; | |
5043 | #endif | |
5044 | ||
18569462 AD |
5045 | ; |
5046 | return 0; | |
5047 | } | |
5048 | _ACEOF | |
5141b016 AD |
5049 | rm -f conftest.$ac_objext conftest$ac_exeext |
5050 | if { (eval echo "$as_me:5050: \"$ac_link\"") >&5 | |
5051 | (eval $ac_link) 2>&5 | |
18569462 | 5052 | ac_status=$? |
5141b016 | 5053 | echo "$as_me:5053: \$? = $ac_status" >&5 |
18569462 | 5054 | (exit $ac_status); } && |
5141b016 AD |
5055 | { ac_try='test -s conftest$ac_exeext' |
5056 | { (eval echo "$as_me:5056: \"$ac_try\"") >&5 | |
18569462 AD |
5057 | (eval $ac_try) 2>&5 |
5058 | ac_status=$? | |
5141b016 | 5059 | echo "$as_me:5059: \$? = $ac_status" >&5 |
18569462 | 5060 | (exit $ac_status); }; }; then |
5141b016 | 5061 | eval "$ac_ac_var=yes" |
705db0b5 | 5062 | else |
18569462 AD |
5063 | echo "$as_me: failed program was:" >&5 |
5064 | cat conftest.$ac_ext >&5 | |
5141b016 | 5065 | eval "$ac_ac_var=no" |
705db0b5 | 5066 | fi |
5141b016 | 5067 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5068 | fi |
5141b016 AD |
5069 | echo "$as_me:5069: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
5070 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5071 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5072 | cat >>confdefs.h <<EOF | |
5073 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 AD |
5074 | EOF |
5075 | ||
5076 | fi | |
5141b016 | 5077 | done |
705db0b5 | 5078 | |
5141b016 AD |
5079 | echo "$as_me:5079: checking for ANSI C header files" >&5 |
5080 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5081 | if test "${ac_cv_header_stdc+set}" = set; then | |
18569462 AD |
5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5083 | else | |
5084 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 5085 | #line 5085 "configure" |
18569462 | 5086 | #include "confdefs.h" |
5141b016 AD |
5087 | #include <stdlib.h> |
5088 | #include <stdarg.h> | |
5089 | #include <string.h> | |
5090 | #include <float.h> | |
5091 | ||
18569462 | 5092 | _ACEOF |
5141b016 AD |
5093 | if { (eval echo "$as_me:5093: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
5094 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
18569462 | 5095 | ac_status=$? |
5141b016 AD |
5096 | egrep -v '^ *\+' conftest.er1 >conftest.err |
5097 | rm -f conftest.er1 | |
5098 | cat conftest.err >&5 | |
5099 | echo "$as_me:5099: \$? = $ac_status" >&5 | |
5100 | (exit $ac_status); }; then | |
5101 | if test -s conftest.err; then | |
5102 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5103 | else | |
5104 | ac_cpp_err= | |
5105 | fi | |
705db0b5 | 5106 | else |
5141b016 | 5107 | ac_cpp_err=yes |
705db0b5 | 5108 | fi |
5141b016 AD |
5109 | if test -z "$ac_cpp_err"; then |
5110 | ac_cv_header_stdc=yes | |
18569462 | 5111 | else |
5141b016 AD |
5112 | echo "$as_me: failed program was:" >&5 |
5113 | cat conftest.$ac_ext >&5 | |
5114 | ac_cv_header_stdc=no | |
5115 | fi | |
5116 | rm -f conftest.err conftest.$ac_ext | |
18569462 | 5117 | |
5141b016 AD |
5118 | if test $ac_cv_header_stdc = yes; then |
5119 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5120 | cat >conftest.$ac_ext <<_ACEOF | |
5121 | #line 5121 "configure" | |
5122 | #include "confdefs.h" | |
5123 | #include <string.h> | |
5124 | ||
5125 | _ACEOF | |
5126 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5127 | egrep "memchr" >/dev/null 2>&1; then | |
5128 | : | |
5129 | else | |
5130 | ac_cv_header_stdc=no | |
5131 | fi | |
5132 | rm -f conftest* | |
5133 | ||
5134 | fi | |
5135 | ||
5136 | if test $ac_cv_header_stdc = yes; then | |
5137 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5138 | cat >conftest.$ac_ext <<_ACEOF | |
5139 | #line 5139 "configure" | |
5140 | #include "confdefs.h" | |
5141 | #include <stdlib.h> | |
5142 | ||
5143 | _ACEOF | |
5144 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5145 | egrep "free" >/dev/null 2>&1; then | |
5146 | : | |
5147 | else | |
5148 | ac_cv_header_stdc=no | |
5149 | fi | |
5150 | rm -f conftest* | |
5151 | ||
5152 | fi | |
5153 | ||
5154 | if test $ac_cv_header_stdc = yes; then | |
5155 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5156 | if test "$cross_compiling" = yes; then | |
5157 | : | |
5158 | else | |
5159 | cat >conftest.$ac_ext <<_ACEOF | |
5160 | #line 5160 "configure" | |
5161 | #include "confdefs.h" | |
5162 | #include <ctype.h> | |
5163 | #if ((' ' & 0x0FF) == 0x020) | |
5164 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5165 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5166 | #else | |
5167 | # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
5168 | || ('j' <= (c) && (c) <= 'r') \ | |
5169 | || ('s' <= (c) && (c) <= 'z')) | |
5170 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5171 | #endif | |
5172 | ||
5173 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5174 | int | |
5175 | main () | |
5176 | { | |
5177 | int i; | |
5178 | for (i = 0; i < 256; i++) | |
5179 | if (XOR (islower (i), ISLOWER (i)) | |
5180 | || toupper (i) != TOUPPER (i)) | |
5181 | exit(2); | |
5182 | exit (0); | |
5183 | } | |
5184 | _ACEOF | |
5185 | rm -f conftest$ac_exeext | |
5186 | if { (eval echo "$as_me:5186: \"$ac_link\"") >&5 | |
5187 | (eval $ac_link) 2>&5 | |
5188 | ac_status=$? | |
5189 | echo "$as_me:5189: \$? = $ac_status" >&5 | |
5190 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5191 | { (eval echo "$as_me:5191: \"$ac_try\"") >&5 | |
5192 | (eval $ac_try) 2>&5 | |
5193 | ac_status=$? | |
5194 | echo "$as_me:5194: \$? = $ac_status" >&5 | |
5195 | (exit $ac_status); }; }; then | |
5196 | : | |
5197 | else | |
5198 | echo "$as_me: program exited with status $ac_status" >&5 | |
5199 | echo "$as_me: failed program was:" >&5 | |
5200 | cat conftest.$ac_ext >&5 | |
5201 | ac_cv_header_stdc=no | |
5202 | fi | |
5203 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5204 | fi | |
5205 | fi | |
5206 | fi | |
5207 | echo "$as_me:5207: result: $ac_cv_header_stdc" >&5 | |
5208 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
5209 | if test $ac_cv_header_stdc = yes; then | |
5210 | ||
5211 | cat >>confdefs.h <<\EOF | |
5212 | #define STDC_HEADERS 1 | |
5213 | EOF | |
5214 | ||
5215 | fi | |
5216 | ||
5217 | echo "$as_me:5217: checking whether strerror_r is declared" >&5 | |
5218 | echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6 | |
5219 | if test "${ac_cv_have_decl_strerror_r+set}" = set; then | |
5220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5221 | else | |
5222 | cat >conftest.$ac_ext <<_ACEOF | |
5223 | #line 5223 "configure" | |
5224 | #include "confdefs.h" | |
5225 | $ac_includes_default | |
5226 | int | |
5227 | main () | |
5228 | { | |
5229 | #ifndef strerror_r | |
5230 | char *p = (char *) strerror_r; | |
5231 | #endif | |
5232 | ||
5233 | ; | |
5234 | return 0; | |
5235 | } | |
5236 | _ACEOF | |
5237 | rm -f conftest.$ac_objext | |
5238 | if { (eval echo "$as_me:5238: \"$ac_compile\"") >&5 | |
5239 | (eval $ac_compile) 2>&5 | |
5240 | ac_status=$? | |
5241 | echo "$as_me:5241: \$? = $ac_status" >&5 | |
5242 | (exit $ac_status); } && | |
5243 | { ac_try='test -s conftest.$ac_objext' | |
5244 | { (eval echo "$as_me:5244: \"$ac_try\"") >&5 | |
5245 | (eval $ac_try) 2>&5 | |
5246 | ac_status=$? | |
5247 | echo "$as_me:5247: \$? = $ac_status" >&5 | |
5248 | (exit $ac_status); }; }; then | |
5249 | ac_cv_have_decl_strerror_r=yes | |
5250 | else | |
5251 | echo "$as_me: failed program was:" >&5 | |
5252 | cat conftest.$ac_ext >&5 | |
5253 | ac_cv_have_decl_strerror_r=no | |
5254 | fi | |
5255 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5256 | fi | |
5257 | echo "$as_me:5257: result: $ac_cv_have_decl_strerror_r" >&5 | |
5258 | echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6 | |
5259 | if test $ac_cv_have_decl_strerror_r = yes; then | |
5260 | ||
5261 | cat >>confdefs.h <<EOF | |
5262 | #define HAVE_DECL_STRERROR_R 1 | |
5263 | EOF | |
5264 | ||
5265 | else | |
5266 | cat >>confdefs.h <<EOF | |
5267 | #define HAVE_DECL_STRERROR_R 0 | |
5268 | EOF | |
5269 | ||
5270 | fi | |
5271 | ||
5272 | for ac_func in strerror_r | |
5273 | do | |
5274 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` | |
5275 | echo "$as_me:5275: checking for $ac_func" >&5 | |
5276 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5277 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5278 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5279 | else | |
5280 | cat >conftest.$ac_ext <<_ACEOF | |
5281 | #line 5281 "configure" | |
5282 | #include "confdefs.h" | |
5283 | /* System header to define __stub macros and hopefully few prototypes, | |
5284 | which can conflict with char $ac_func (); below. */ | |
5285 | #include <assert.h> | |
5286 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5287 | #ifdef __cplusplus | |
5288 | extern "C" | |
5289 | #endif | |
5290 | /* We use char because int might match the return type of a gcc2 | |
5291 | builtin and then its argument prototype would still apply. */ | |
5292 | char $ac_func (); | |
5293 | char (*f) (); | |
5294 | ||
5295 | int | |
5296 | main () | |
5297 | { | |
5298 | /* The GNU C library defines this for functions which it implements | |
5299 | to always fail with ENOSYS. Some functions are actually named | |
5300 | something starting with __ and the normal name is an alias. */ | |
5301 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5302 | choke me | |
5303 | #else | |
5304 | f = $ac_func; | |
5305 | #endif | |
5306 | ||
5307 | ; | |
5308 | return 0; | |
5309 | } | |
5310 | _ACEOF | |
5311 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5312 | if { (eval echo "$as_me:5312: \"$ac_link\"") >&5 | |
5313 | (eval $ac_link) 2>&5 | |
5314 | ac_status=$? | |
5315 | echo "$as_me:5315: \$? = $ac_status" >&5 | |
5316 | (exit $ac_status); } && | |
5317 | { ac_try='test -s conftest$ac_exeext' | |
5318 | { (eval echo "$as_me:5318: \"$ac_try\"") >&5 | |
5319 | (eval $ac_try) 2>&5 | |
5320 | ac_status=$? | |
5321 | echo "$as_me:5321: \$? = $ac_status" >&5 | |
5322 | (exit $ac_status); }; }; then | |
5323 | eval "$ac_ac_var=yes" | |
5324 | else | |
5325 | echo "$as_me: failed program was:" >&5 | |
5326 | cat conftest.$ac_ext >&5 | |
5327 | eval "$ac_ac_var=no" | |
5328 | fi | |
5329 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5330 | fi | |
5331 | echo "$as_me:5331: result: `eval echo '${'$ac_ac_var'}'`" >&5 | |
5332 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 | |
5333 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5334 | cat >>confdefs.h <<EOF | |
5335 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
5336 | EOF | |
5337 | ||
5338 | fi | |
5339 | done | |
5340 | ||
5341 | if test $ac_cv_func_strerror_r = yes; then | |
5342 | ||
5343 | for ac_header in string.h | |
5344 | do | |
5345 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` | |
5346 | echo "$as_me:5346: checking for $ac_header" >&5 | |
5347 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5348 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5349 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5350 | else | |
5351 | cat >conftest.$ac_ext <<_ACEOF | |
5352 | #line 5352 "configure" | |
5353 | #include "confdefs.h" | |
5354 | #include <$ac_header> | |
5355 | _ACEOF | |
5356 | if { (eval echo "$as_me:5356: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 | |
5357 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 | |
5358 | ac_status=$? | |
5359 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5360 | rm -f conftest.er1 | |
5361 | cat conftest.err >&5 | |
5362 | echo "$as_me:5362: \$? = $ac_status" >&5 | |
5363 | (exit $ac_status); }; then | |
5364 | if test -s conftest.err; then | |
5365 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5366 | else | |
5367 | ac_cpp_err= | |
5368 | fi | |
5369 | else | |
5370 | ac_cpp_err=yes | |
5371 | fi | |
5372 | if test -z "$ac_cpp_err"; then | |
5373 | eval "$ac_ac_Header=yes" | |
5374 | else | |
5375 | echo "$as_me: failed program was:" >&5 | |
5376 | cat conftest.$ac_ext >&5 | |
5377 | eval "$ac_ac_Header=no" | |
5378 | fi | |
5379 | rm -f conftest.err conftest.$ac_ext | |
5380 | fi | |
5381 | echo "$as_me:5381: result: `eval echo '${'$ac_ac_Header'}'`" >&5 | |
5382 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 | |
5383 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5384 | cat >>confdefs.h <<EOF | |
5385 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
5386 | EOF | |
5387 | ||
5388 | fi | |
5389 | done | |
5390 | ||
5391 | echo "$as_me:5391: checking for working strerror_r" >&5 | |
5392 | echo $ECHO_N "checking for working strerror_r... $ECHO_C" >&6 | |
5393 | if test "${ac_cv_func_strerror_r_works+set}" = set; then | |
5394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5395 | else | |
5396 | ||
5397 | cat >conftest.$ac_ext <<_ACEOF | |
5398 | #line 5398 "configure" | |
5399 | #include "confdefs.h" | |
5400 | ||
5401 | # include <stdio.h> | |
5402 | # if HAVE_STRING_H | |
5403 | # include <string.h> | |
5404 | # endif | |
5405 | ||
5406 | int | |
5407 | main () | |
5408 | { | |
5409 | ||
5410 | char buf[100]; | |
5411 | char x = *strerror_r (0, buf, sizeof buf); | |
5412 | ||
5413 | ; | |
5414 | return 0; | |
5415 | } | |
5416 | _ACEOF | |
5417 | rm -f conftest.$ac_objext | |
5418 | if { (eval echo "$as_me:5418: \"$ac_compile\"") >&5 | |
5419 | (eval $ac_compile) 2>&5 | |
5420 | ac_status=$? | |
5421 | echo "$as_me:5421: \$? = $ac_status" >&5 | |
5422 | (exit $ac_status); } && | |
5423 | { ac_try='test -s conftest.$ac_objext' | |
5424 | { (eval echo "$as_me:5424: \"$ac_try\"") >&5 | |
5425 | (eval $ac_try) 2>&5 | |
5426 | ac_status=$? | |
5427 | echo "$as_me:5427: \$? = $ac_status" >&5 | |
5428 | (exit $ac_status); }; }; then | |
5429 | ac_cv_func_strerror_r_works=yes | |
5430 | else | |
5431 | echo "$as_me: failed program was:" >&5 | |
5432 | cat conftest.$ac_ext >&5 | |
5433 | ac_cv_func_strerror_r_works=no | |
5434 | ||
5435 | fi | |
5436 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5437 | if test $ac_cv_func_strerror_r_works = no; then | |
5438 | # strerror_r seems not to work, but now we have to choose between | |
5439 | # systems that have relatively inaccessible declarations for the | |
5440 | # function. BeOS and DEC UNIX 4.0 fall in this category, but the | |
5441 | # former has a strerror_r that returns char*, while the latter | |
5442 | # has a strerror_r that returns `int'. | |
5443 | # This test should segfault on the DEC system. | |
5444 | if test "$cross_compiling" = yes; then | |
5445 | ac_cv_func_strerror_r_works=no | |
5446 | else | |
5447 | cat >conftest.$ac_ext <<_ACEOF | |
5448 | #line 5448 "configure" | |
5449 | #include "confdefs.h" | |
5450 | ||
5451 | # include <stdio.h> | |
5452 | # include <string.h> | |
5453 | # include <ctype.h> | |
5454 | ||
5455 | extern char *strerror_r (); | |
5456 | ||
5457 | int | |
5458 | main () | |
5459 | { | |
5460 | char buf[100]; | |
5461 | char x = *strerror_r (0, buf, sizeof buf); | |
5462 | exit (!isalpha (x)); | |
5463 | } | |
5464 | ||
5465 | _ACEOF | |
5466 | rm -f conftest$ac_exeext | |
5467 | if { (eval echo "$as_me:5467: \"$ac_link\"") >&5 | |
5468 | (eval $ac_link) 2>&5 | |
5469 | ac_status=$? | |
5470 | echo "$as_me:5470: \$? = $ac_status" >&5 | |
5471 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5472 | { (eval echo "$as_me:5472: \"$ac_try\"") >&5 | |
5473 | (eval $ac_try) 2>&5 | |
5474 | ac_status=$? | |
5475 | echo "$as_me:5475: \$? = $ac_status" >&5 | |
5476 | (exit $ac_status); }; }; then | |
5477 | ac_cv_func_strerror_r_works=yes | |
5478 | else | |
5479 | echo "$as_me: program exited with status $ac_status" >&5 | |
5480 | echo "$as_me: failed program was:" >&5 | |
5481 | cat conftest.$ac_ext >&5 | |
5482 | ac_cv_func_strerror_r_works=no | |
5483 | fi | |
5484 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5485 | fi | |
5486 | fi | |
5487 | ||
5488 | fi | |
5489 | echo "$as_me:5489: result: $ac_cv_func_strerror_r_works" >&5 | |
5490 | echo "${ECHO_T}$ac_cv_func_strerror_r_works" >&6 | |
5491 | if test $ac_cv_func_strerror_r_works = yes; then | |
5492 | ||
5493 | cat >>confdefs.h <<EOF | |
5494 | #define HAVE_WORKING_STRERROR_R 1 | |
5495 | EOF | |
5496 | ||
5497 | fi | |
5498 | fi | |
5499 | ||
5500 | ALL_LINGUAS="de es et fr ja nl ru" | |
5501 | echo "$as_me:5501: checking for off_t" >&5 | |
5502 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5503 | if test "${ac_cv_type_off_t+set}" = set; then | |
5504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5505 | else | |
5506 | cat >conftest.$ac_ext <<_ACEOF | |
5507 | #line 5507 "configure" | |
5508 | #include "confdefs.h" | |
5509 | $ac_includes_default | |
5510 | int | |
5511 | main () | |
5512 | { | |
5513 | if ((off_t *) 0) | |
5514 | return 0; | |
5515 | if (sizeof (off_t)) | |
5516 | return 0; | |
5517 | ; | |
5518 | return 0; | |
5519 | } | |
5520 | _ACEOF | |
5521 | rm -f conftest.$ac_objext | |
5522 | if { (eval echo "$as_me:5522: \"$ac_compile\"") >&5 | |
5523 | (eval $ac_compile) 2>&5 | |
5524 | ac_status=$? | |
5525 | echo "$as_me:5525: \$? = $ac_status" >&5 | |
5526 | (exit $ac_status); } && | |
5527 | { ac_try='test -s conftest.$ac_objext' | |
5528 | { (eval echo "$as_me:5528: \"$ac_try\"") >&5 | |
5529 | (eval $ac_try) 2>&5 | |
5530 | ac_status=$? | |
5531 | echo "$as_me:5531: \$? = $ac_status" >&5 | |
5532 | (exit $ac_status); }; }; then | |
5533 | ac_cv_type_off_t=yes | |
5534 | else | |
5535 | echo "$as_me: failed program was:" >&5 | |
5536 | cat conftest.$ac_ext >&5 | |
5537 | ac_cv_type_off_t=no | |
5538 | fi | |
5539 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5540 | fi | |
5541 | echo "$as_me:5541: result: $ac_cv_type_off_t" >&5 | |
5542 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5543 | if test $ac_cv_type_off_t = yes; then | |
5544 | : | |
5545 | else | |
5546 | ||
5547 | cat >>confdefs.h <<EOF | |
5548 | #define off_t long | |
5549 | EOF | |
5550 | ||
5551 | fi | |
5552 | ||
5553 | echo "$as_me:5553: checking for size_t" >&5 | |
5554 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5555 | if test "${ac_cv_type_size_t+set}" = set; then | |
5556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5557 | else | |
5558 | cat >conftest.$ac_ext <<_ACEOF | |
5559 | #line 5559 "configure" | |
5560 | #include "confdefs.h" | |
5561 | $ac_includes_default | |
5562 | int | |
5563 | main () | |
5564 | { | |
5565 | if ((size_t *) 0) | |
5566 | return 0; | |
5567 | if (sizeof (size_t)) | |
5568 | return 0; | |
5569 | ; | |
5570 | return 0; | |
5571 | } | |
5572 | _ACEOF | |
5573 | rm -f conftest.$ac_objext | |
5574 | if { (eval echo "$as_me:5574: \"$ac_compile\"") >&5 | |
5575 | (eval $ac_compile) 2>&5 | |
5576 | ac_status=$? | |
5577 | echo "$as_me:5577: \$? = $ac_status" >&5 | |
5578 | (exit $ac_status); } && | |
5579 | { ac_try='test -s conftest.$ac_objext' | |
5580 | { (eval echo "$as_me:5580: \"$ac_try\"") >&5 | |
5581 | (eval $ac_try) 2>&5 | |
5582 | ac_status=$? | |
5583 | echo "$as_me:5583: \$? = $ac_status" >&5 | |
5584 | (exit $ac_status); }; }; then | |
5585 | ac_cv_type_size_t=yes | |
5586 | else | |
5587 | echo "$as_me: failed program was:" >&5 | |
5588 | cat conftest.$ac_ext >&5 | |
5589 | ac_cv_type_size_t=no | |
5590 | fi | |
5591 | rm -f conftest.$ac_objext conftest.$ac_ext | |
5592 | fi | |
5593 | echo "$as_me:5593: result: $ac_cv_type_size_t" >&5 | |
5594 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5595 | if test $ac_cv_type_size_t = yes; then | |
5596 | : | |
5597 | else | |
5598 | ||
5599 | cat >>confdefs.h <<EOF | |
705db0b5 AD |
5600 | #define size_t unsigned |
5601 | EOF | |
5602 | ||
5603 | fi | |
5604 | ||
18569462 | 5605 | for ac_header in stdlib.h unistd.h |
705db0b5 | 5606 | do |
18569462 | 5607 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 5608 | echo "$as_me:5608: checking for $ac_header" >&5 |
18569462 AD |
5609 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5610 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5612 | else | |
5613 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 5614 | #line 5614 "configure" |
705db0b5 | 5615 | #include "confdefs.h" |
18569462 AD |
5616 | #include <$ac_header> |
5617 | _ACEOF | |
5141b016 | 5618 | if { (eval echo "$as_me:5618: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
5619 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
5620 | ac_status=$? | |
5621 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5622 | rm -f conftest.er1 | |
5623 | cat conftest.err >&5 | |
5141b016 | 5624 | echo "$as_me:5624: \$? = $ac_status" >&5 |
18569462 AD |
5625 | (exit $ac_status); }; then |
5626 | if test -s conftest.err; then | |
5627 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5628 | else | |
5629 | ac_cpp_err= | |
5630 | fi | |
5631 | else | |
5632 | ac_cpp_err=yes | |
5633 | fi | |
5634 | if test -z "$ac_cpp_err"; then | |
5635 | eval "$ac_ac_Header=yes" | |
5636 | else | |
5637 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5638 | cat conftest.$ac_ext >&5 |
18569462 | 5639 | eval "$ac_ac_Header=no" |
705db0b5 | 5640 | fi |
18569462 | 5641 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5642 | fi |
5141b016 | 5643 | echo "$as_me:5643: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
5644 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5645 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5646 | cat >>confdefs.h <<EOF | |
5647 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 5648 | EOF |
18569462 | 5649 | |
705db0b5 AD |
5650 | fi |
5651 | done | |
5652 | ||
5653 | for ac_func in getpagesize | |
5654 | do | |
18569462 | 5655 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 5656 | echo "$as_me:5656: checking for $ac_func" >&5 |
18569462 AD |
5657 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5658 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5659 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5660 | else | |
5661 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 5662 | #line 5662 "configure" |
705db0b5 AD |
5663 | #include "confdefs.h" |
5664 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 5665 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
5666 | #include <assert.h> |
5667 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
5668 | #ifdef __cplusplus |
5669 | extern "C" | |
5670 | #endif | |
705db0b5 | 5671 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
5672 | builtin and then its argument prototype would still apply. */ |
5673 | char $ac_func (); | |
5674 | char (*f) (); | |
705db0b5 | 5675 | |
18569462 AD |
5676 | int |
5677 | main () | |
5678 | { | |
705db0b5 AD |
5679 | /* The GNU C library defines this for functions which it implements |
5680 | to always fail with ENOSYS. Some functions are actually named | |
5681 | something starting with __ and the normal name is an alias. */ | |
5682 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5683 | choke me | |
5684 | #else | |
18569462 | 5685 | f = $ac_func; |
705db0b5 AD |
5686 | #endif |
5687 | ||
18569462 AD |
5688 | ; |
5689 | return 0; | |
5690 | } | |
5691 | _ACEOF | |
5692 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 5693 | if { (eval echo "$as_me:5693: \"$ac_link\"") >&5 |
18569462 AD |
5694 | (eval $ac_link) 2>&5 |
5695 | ac_status=$? | |
5141b016 | 5696 | echo "$as_me:5696: \$? = $ac_status" >&5 |
18569462 | 5697 | (exit $ac_status); } && |
5141b016 AD |
5698 | { ac_try='test -s conftest$ac_exeext' |
5699 | { (eval echo "$as_me:5699: \"$ac_try\"") >&5 | |
18569462 AD |
5700 | (eval $ac_try) 2>&5 |
5701 | ac_status=$? | |
5141b016 | 5702 | echo "$as_me:5702: \$? = $ac_status" >&5 |
18569462 AD |
5703 | (exit $ac_status); }; }; then |
5704 | eval "$ac_ac_var=yes" | |
5705 | else | |
5706 | echo "$as_me: failed program was:" >&5 | |
5707 | cat conftest.$ac_ext >&5 | |
5708 | eval "$ac_ac_var=no" | |
5709 | fi | |
5710 | rm -f conftest$ac_exeext conftest.$ac_ext | |
5711 | fi | |
5141b016 | 5712 | echo "$as_me:5712: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
5713 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
5714 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
5715 | cat >>confdefs.h <<EOF | |
5716 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 5717 | EOF |
705db0b5 | 5718 | |
705db0b5 AD |
5719 | fi |
5720 | done | |
5721 | ||
5141b016 | 5722 | echo "$as_me:5722: checking for working mmap" >&5 |
18569462 AD |
5723 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 |
5724 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
5725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
5726 | else |
5727 | if test "$cross_compiling" = yes; then | |
5728 | ac_cv_func_mmap_fixed_mapped=no | |
5729 | else | |
18569462 | 5730 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 5731 | #line 5731 "configure" |
705db0b5 | 5732 | #include "confdefs.h" |
705db0b5 AD |
5733 | /* Thanks to Mike Haertel and Jim Avera for this test. |
5734 | Here is a matrix of mmap possibilities: | |
5735 | mmap private not fixed | |
5736 | mmap private fixed at somewhere currently unmapped | |
5737 | mmap private fixed at somewhere already mapped | |
5738 | mmap shared not fixed | |
5739 | mmap shared fixed at somewhere currently unmapped | |
5740 | mmap shared fixed at somewhere already mapped | |
5741 | For private mappings, we should verify that changes cannot be read() | |
5742 | back from the file, nor mmap's back from the file at a different | |
5743 | address. (There have been systems where private was not correctly | |
5744 | implemented like the infamous i386 svr4.0, and systems where the | |
18569462 | 5745 | VM page cache was not coherent with the file system buffer cache |
705db0b5 AD |
5746 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
5747 | For shared mappings, we should conversely verify that changes get | |
5748 | propogated back to all the places they're supposed to be. | |
5749 | ||
5750 | Grep wants private fixed already mapped. | |
5751 | The main things grep needs to know about mmap are: | |
5752 | * does it exist and is it safe to write into the mmap'd area | |
5753 | * how to use it (BSD variants) */ | |
5754 | #include <sys/types.h> | |
5755 | #include <fcntl.h> | |
5756 | #include <sys/mman.h> | |
705db0b5 | 5757 | |
18569462 AD |
5758 | #if STDC_HEADERS || HAVE_STDLIB_H |
5759 | # include <stdlib.h> | |
5760 | #else | |
5761 | char *malloc (); | |
5762 | #endif | |
5763 | #if HAVE_UNISTD_H | |
705db0b5 AD |
5764 | # include <unistd.h> |
5765 | #endif | |
18569462 | 5766 | #include <sys/stat.h> |
705db0b5 AD |
5767 | |
5768 | /* This mess was copied from the GNU getpagesize.h. */ | |
18569462 | 5769 | #if !HAVE_GETPAGESIZE |
705db0b5 | 5770 | /* Assume that all systems that can run configure have sys/param.h. */ |
18569462 | 5771 | # if !HAVE_SYS_PARAM_H |
705db0b5 AD |
5772 | # define HAVE_SYS_PARAM_H 1 |
5773 | # endif | |
5774 | ||
5775 | # ifdef _SC_PAGESIZE | |
5776 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
5777 | # else /* no _SC_PAGESIZE */ | |
18569462 | 5778 | # if HAVE_SYS_PARAM_H |
705db0b5 AD |
5779 | # include <sys/param.h> |
5780 | # ifdef EXEC_PAGESIZE | |
5781 | # define getpagesize() EXEC_PAGESIZE | |
5782 | # else /* no EXEC_PAGESIZE */ | |
5783 | # ifdef NBPG | |
5784 | # define getpagesize() NBPG * CLSIZE | |
5785 | # ifndef CLSIZE | |
5786 | # define CLSIZE 1 | |
5787 | # endif /* no CLSIZE */ | |
5788 | # else /* no NBPG */ | |
5789 | # ifdef NBPC | |
5790 | # define getpagesize() NBPC | |
5791 | # else /* no NBPC */ | |
5792 | # ifdef PAGESIZE | |
5793 | # define getpagesize() PAGESIZE | |
5794 | # endif /* PAGESIZE */ | |
5795 | # endif /* no NBPC */ | |
5796 | # endif /* no NBPG */ | |
5797 | # endif /* no EXEC_PAGESIZE */ | |
5798 | # else /* no HAVE_SYS_PARAM_H */ | |
5799 | # define getpagesize() 8192 /* punt totally */ | |
5800 | # endif /* no HAVE_SYS_PARAM_H */ | |
5801 | # endif /* no _SC_PAGESIZE */ | |
5802 | ||
5803 | #endif /* no HAVE_GETPAGESIZE */ | |
5804 | ||
705db0b5 | 5805 | int |
18569462 | 5806 | main () |
705db0b5 | 5807 | { |
18569462 AD |
5808 | char *data, *data2, *data3; |
5809 | int i, pagesize; | |
5810 | int fd; | |
5811 | ||
5812 | pagesize = getpagesize (); | |
5813 | ||
5814 | /* First, make a file with some known garbage in it. */ | |
5815 | data = (char *) malloc (pagesize); | |
5816 | if (!data) | |
5817 | exit (1); | |
5818 | for (i = 0; i < pagesize; ++i) | |
5819 | *(data + i) = rand (); | |
5820 | umask (0); | |
5821 | fd = creat ("conftest.mmap", 0600); | |
5822 | if (fd < 0) | |
5823 | exit (1); | |
5824 | if (write (fd, data, pagesize) != pagesize) | |
5825 | exit (1); | |
5826 | close (fd); | |
5827 | ||
5828 | /* Next, try to mmap the file at a fixed address which already has | |
5829 | something else allocated at it. If we can, also make sure that | |
5830 | we see the same garbage. */ | |
5831 | fd = open ("conftest.mmap", O_RDWR); | |
5832 | if (fd < 0) | |
5833 | exit (1); | |
5834 | data2 = (char *) malloc (2 * pagesize); | |
5835 | if (!data2) | |
5836 | exit (1); | |
5837 | data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1); | |
5838 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
5839 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
5840 | exit (1); | |
5841 | for (i = 0; i < pagesize; ++i) | |
5842 | if (*(data + i) != *(data2 + i)) | |
5843 | exit (1); | |
5844 | ||
5845 | /* Finally, make sure that changes to the mapped area do not | |
5846 | percolate back to the file as seen by read(). (This is a bug on | |
5847 | some variants of i386 svr4.0.) */ | |
5848 | for (i = 0; i < pagesize; ++i) | |
5849 | *(data2 + i) = *(data2 + i) + 1; | |
5850 | data3 = (char *) malloc (pagesize); | |
5851 | if (!data3) | |
5852 | exit (1); | |
5853 | if (read (fd, data3, pagesize) != pagesize) | |
5854 | exit (1); | |
5855 | for (i = 0; i < pagesize; ++i) | |
5856 | if (*(data + i) != *(data3 + i)) | |
5857 | exit (1); | |
5858 | close (fd); | |
5859 | exit (0); | |
705db0b5 | 5860 | } |
18569462 AD |
5861 | _ACEOF |
5862 | rm -f conftest$ac_exeext | |
5141b016 | 5863 | if { (eval echo "$as_me:5863: \"$ac_link\"") >&5 |
18569462 AD |
5864 | (eval $ac_link) 2>&5 |
5865 | ac_status=$? | |
5141b016 AD |
5866 | echo "$as_me:5866: \$? = $ac_status" >&5 |
5867 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5868 | { (eval echo "$as_me:5868: \"$ac_try\"") >&5 | |
18569462 AD |
5869 | (eval $ac_try) 2>&5 |
5870 | ac_status=$? | |
5141b016 | 5871 | echo "$as_me:5871: \$? = $ac_status" >&5 |
18569462 | 5872 | (exit $ac_status); }; }; then |
705db0b5 AD |
5873 | ac_cv_func_mmap_fixed_mapped=yes |
5874 | else | |
18569462 AD |
5875 | echo "$as_me: program exited with status $ac_status" >&5 |
5876 | echo "$as_me: failed program was:" >&5 | |
5877 | cat conftest.$ac_ext >&5 | |
5878 | ac_cv_func_mmap_fixed_mapped=no | |
705db0b5 | 5879 | fi |
18569462 | 5880 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 5881 | fi |
705db0b5 | 5882 | fi |
5141b016 | 5883 | echo "$as_me:5883: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
18569462 | 5884 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 |
705db0b5 | 5885 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
18569462 AD |
5886 | |
5887 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
5888 | #define HAVE_MMAP 1 |
5889 | EOF | |
5890 | ||
5891 | fi | |
18569462 | 5892 | rm -f conftest.mmap |
705db0b5 | 5893 | |
18569462 | 5894 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ |
705db0b5 AD |
5895 | unistd.h sys/param.h |
5896 | do | |
18569462 | 5897 | ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh` |
5141b016 | 5898 | echo "$as_me:5898: checking for $ac_header" >&5 |
18569462 AD |
5899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 |
5900 | if eval "test \"\${$ac_ac_Header+set}\" = set"; then | |
5901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5902 | else | |
5903 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 5904 | #line 5904 "configure" |
705db0b5 | 5905 | #include "confdefs.h" |
18569462 AD |
5906 | #include <$ac_header> |
5907 | _ACEOF | |
5141b016 | 5908 | if { (eval echo "$as_me:5908: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
5909 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
5910 | ac_status=$? | |
5911 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
5912 | rm -f conftest.er1 | |
5913 | cat conftest.err >&5 | |
5141b016 | 5914 | echo "$as_me:5914: \$? = $ac_status" >&5 |
18569462 AD |
5915 | (exit $ac_status); }; then |
5916 | if test -s conftest.err; then | |
5917 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5918 | else | |
5919 | ac_cpp_err= | |
5920 | fi | |
5921 | else | |
5922 | ac_cpp_err=yes | |
5923 | fi | |
5924 | if test -z "$ac_cpp_err"; then | |
5925 | eval "$ac_ac_Header=yes" | |
5926 | else | |
5927 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 5928 | cat conftest.$ac_ext >&5 |
18569462 | 5929 | eval "$ac_ac_Header=no" |
705db0b5 | 5930 | fi |
18569462 | 5931 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 5932 | fi |
5141b016 | 5933 | echo "$as_me:5933: result: `eval echo '${'$ac_ac_Header'}'`" >&5 |
18569462 AD |
5934 | echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6 |
5935 | if test `eval echo '${'$ac_ac_Header'}'` = yes; then | |
5936 | cat >>confdefs.h <<EOF | |
5937 | #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1 | |
705db0b5 | 5938 | EOF |
18569462 | 5939 | |
705db0b5 AD |
5940 | fi |
5941 | done | |
5942 | ||
18569462 | 5943 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ |
705db0b5 AD |
5944 | strdup __argz_count __argz_stringify __argz_next |
5945 | do | |
18569462 | 5946 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 5947 | echo "$as_me:5947: checking for $ac_func" >&5 |
18569462 AD |
5948 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
5949 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5951 | else | |
5952 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 5953 | #line 5953 "configure" |
705db0b5 AD |
5954 | #include "confdefs.h" |
5955 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 5956 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
5957 | #include <assert.h> |
5958 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
5959 | #ifdef __cplusplus |
5960 | extern "C" | |
5961 | #endif | |
705db0b5 | 5962 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
5963 | builtin and then its argument prototype would still apply. */ |
5964 | char $ac_func (); | |
5965 | char (*f) (); | |
705db0b5 | 5966 | |
18569462 AD |
5967 | int |
5968 | main () | |
5969 | { | |
705db0b5 AD |
5970 | /* The GNU C library defines this for functions which it implements |
5971 | to always fail with ENOSYS. Some functions are actually named | |
5972 | something starting with __ and the normal name is an alias. */ | |
5973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5974 | choke me | |
5975 | #else | |
18569462 | 5976 | f = $ac_func; |
705db0b5 AD |
5977 | #endif |
5978 | ||
18569462 AD |
5979 | ; |
5980 | return 0; | |
5981 | } | |
5982 | _ACEOF | |
5983 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 5984 | if { (eval echo "$as_me:5984: \"$ac_link\"") >&5 |
18569462 AD |
5985 | (eval $ac_link) 2>&5 |
5986 | ac_status=$? | |
5141b016 | 5987 | echo "$as_me:5987: \$? = $ac_status" >&5 |
18569462 | 5988 | (exit $ac_status); } && |
5141b016 AD |
5989 | { ac_try='test -s conftest$ac_exeext' |
5990 | { (eval echo "$as_me:5990: \"$ac_try\"") >&5 | |
18569462 AD |
5991 | (eval $ac_try) 2>&5 |
5992 | ac_status=$? | |
5141b016 | 5993 | echo "$as_me:5993: \$? = $ac_status" >&5 |
18569462 AD |
5994 | (exit $ac_status); }; }; then |
5995 | eval "$ac_ac_var=yes" | |
5996 | else | |
5997 | echo "$as_me: failed program was:" >&5 | |
5998 | cat conftest.$ac_ext >&5 | |
5999 | eval "$ac_ac_var=no" | |
6000 | fi | |
6001 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6002 | fi | |
5141b016 | 6003 | echo "$as_me:6003: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
6004 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
6005 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6006 | cat >>confdefs.h <<EOF | |
6007 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 6008 | EOF |
705db0b5 | 6009 | |
705db0b5 AD |
6010 | fi |
6011 | done | |
6012 | ||
705db0b5 | 6013 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
18569462 AD |
6014 | |
6015 | for ac_func in stpcpy | |
705db0b5 | 6016 | do |
18569462 | 6017 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 6018 | echo "$as_me:6018: checking for $ac_func" >&5 |
18569462 AD |
6019 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6020 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6022 | else | |
6023 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 6024 | #line 6024 "configure" |
705db0b5 AD |
6025 | #include "confdefs.h" |
6026 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6027 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
6028 | #include <assert.h> |
6029 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6030 | #ifdef __cplusplus |
6031 | extern "C" | |
6032 | #endif | |
705db0b5 | 6033 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6034 | builtin and then its argument prototype would still apply. */ |
6035 | char $ac_func (); | |
6036 | char (*f) (); | |
705db0b5 | 6037 | |
18569462 AD |
6038 | int |
6039 | main () | |
6040 | { | |
705db0b5 AD |
6041 | /* The GNU C library defines this for functions which it implements |
6042 | to always fail with ENOSYS. Some functions are actually named | |
6043 | something starting with __ and the normal name is an alias. */ | |
6044 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6045 | choke me | |
6046 | #else | |
18569462 | 6047 | f = $ac_func; |
705db0b5 AD |
6048 | #endif |
6049 | ||
18569462 AD |
6050 | ; |
6051 | return 0; | |
6052 | } | |
6053 | _ACEOF | |
6054 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6055 | if { (eval echo "$as_me:6055: \"$ac_link\"") >&5 |
18569462 AD |
6056 | (eval $ac_link) 2>&5 |
6057 | ac_status=$? | |
5141b016 | 6058 | echo "$as_me:6058: \$? = $ac_status" >&5 |
18569462 | 6059 | (exit $ac_status); } && |
5141b016 AD |
6060 | { ac_try='test -s conftest$ac_exeext' |
6061 | { (eval echo "$as_me:6061: \"$ac_try\"") >&5 | |
18569462 AD |
6062 | (eval $ac_try) 2>&5 |
6063 | ac_status=$? | |
5141b016 | 6064 | echo "$as_me:6064: \$? = $ac_status" >&5 |
18569462 AD |
6065 | (exit $ac_status); }; }; then |
6066 | eval "$ac_ac_var=yes" | |
6067 | else | |
6068 | echo "$as_me: failed program was:" >&5 | |
6069 | cat conftest.$ac_ext >&5 | |
6070 | eval "$ac_ac_var=no" | |
6071 | fi | |
6072 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6073 | fi | |
5141b016 | 6074 | echo "$as_me:6074: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
6075 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
6076 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6077 | cat >>confdefs.h <<EOF | |
6078 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 6079 | EOF |
705db0b5 | 6080 | |
705db0b5 AD |
6081 | fi |
6082 | done | |
6083 | ||
6084 | fi | |
6085 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
18569462 AD |
6086 | |
6087 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6088 | #define HAVE_STPCPY 1 |
6089 | EOF | |
6090 | ||
6091 | fi | |
6092 | ||
6093 | if test $ac_cv_header_locale_h = yes; then | |
5141b016 | 6094 | echo "$as_me:6094: checking for LC_MESSAGES" >&5 |
18569462 AD |
6095 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 |
6096 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
6097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6098 | else |
18569462 | 6099 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6100 | #line 6100 "configure" |
705db0b5 AD |
6101 | #include "confdefs.h" |
6102 | #include <locale.h> | |
18569462 AD |
6103 | int |
6104 | main () | |
6105 | { | |
705db0b5 | 6106 | return LC_MESSAGES |
18569462 AD |
6107 | ; |
6108 | return 0; | |
6109 | } | |
6110 | _ACEOF | |
6111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6112 | if { (eval echo "$as_me:6112: \"$ac_link\"") >&5 |
18569462 AD |
6113 | (eval $ac_link) 2>&5 |
6114 | ac_status=$? | |
5141b016 | 6115 | echo "$as_me:6115: \$? = $ac_status" >&5 |
18569462 | 6116 | (exit $ac_status); } && |
5141b016 AD |
6117 | { ac_try='test -s conftest$ac_exeext' |
6118 | { (eval echo "$as_me:6118: \"$ac_try\"") >&5 | |
18569462 AD |
6119 | (eval $ac_try) 2>&5 |
6120 | ac_status=$? | |
5141b016 | 6121 | echo "$as_me:6121: \$? = $ac_status" >&5 |
18569462 | 6122 | (exit $ac_status); }; }; then |
705db0b5 AD |
6123 | am_cv_val_LC_MESSAGES=yes |
6124 | else | |
18569462 AD |
6125 | echo "$as_me: failed program was:" >&5 |
6126 | cat conftest.$ac_ext >&5 | |
6127 | am_cv_val_LC_MESSAGES=no | |
705db0b5 | 6128 | fi |
18569462 | 6129 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6130 | fi |
5141b016 | 6131 | echo "$as_me:6131: result: $am_cv_val_LC_MESSAGES" >&5 |
18569462 | 6132 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 |
705db0b5 | 6133 | if test $am_cv_val_LC_MESSAGES = yes; then |
18569462 AD |
6134 | |
6135 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6136 | #define HAVE_LC_MESSAGES 1 |
6137 | EOF | |
6138 | ||
6139 | fi | |
6140 | fi | |
5141b016 | 6141 | echo "$as_me:6141: checking whether NLS is requested" >&5 |
18569462 | 6142 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 |
705db0b5 AD |
6143 | # Check whether --enable-nls or --disable-nls was given. |
6144 | if test "${enable_nls+set}" = set; then | |
6145 | enableval="$enable_nls" | |
6146 | USE_NLS=$enableval | |
6147 | else | |
6148 | USE_NLS=yes | |
18569462 | 6149 | fi; |
5141b016 | 6150 | echo "$as_me:6150: result: $USE_NLS" >&5 |
18569462 | 6151 | echo "${ECHO_T}$USE_NLS" >&6 |
705db0b5 AD |
6152 | |
6153 | USE_INCLUDED_LIBINTL=no | |
6154 | ||
6155 | if test "$USE_NLS" = "yes"; then | |
18569462 AD |
6156 | |
6157 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6158 | #define ENABLE_NLS 1 |
6159 | EOF | |
6160 | ||
5141b016 | 6161 | echo "$as_me:6161: checking whether included gettext is requested" >&5 |
18569462 AD |
6162 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 |
6163 | ||
6164 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
705db0b5 AD |
6165 | if test "${with_included_gettext+set}" = set; then |
6166 | withval="$with_included_gettext" | |
6167 | nls_cv_force_use_gnu_gettext=$withval | |
6168 | else | |
6169 | nls_cv_force_use_gnu_gettext=no | |
18569462 | 6170 | fi; |
5141b016 | 6171 | echo "$as_me:6171: result: $nls_cv_force_use_gnu_gettext" >&5 |
18569462 | 6172 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 |
705db0b5 AD |
6173 | |
6174 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
6175 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
6176 | nls_cv_header_intl= | |
6177 | nls_cv_header_libgt= | |
6178 | CATOBJEXT=NONE | |
6179 | ||
5141b016 | 6180 | echo "$as_me:6180: checking for libintl.h" >&5 |
18569462 AD |
6181 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 |
6182 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6184 | else |
18569462 | 6185 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6186 | #line 6186 "configure" |
705db0b5 AD |
6187 | #include "confdefs.h" |
6188 | #include <libintl.h> | |
18569462 | 6189 | _ACEOF |
5141b016 | 6190 | if { (eval echo "$as_me:6190: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
6191 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
6192 | ac_status=$? | |
6193 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
6194 | rm -f conftest.er1 | |
6195 | cat conftest.err >&5 | |
5141b016 | 6196 | echo "$as_me:6196: \$? = $ac_status" >&5 |
18569462 AD |
6197 | (exit $ac_status); }; then |
6198 | if test -s conftest.err; then | |
6199 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6200 | else | |
6201 | ac_cpp_err= | |
6202 | fi | |
6203 | else | |
6204 | ac_cpp_err=yes | |
6205 | fi | |
6206 | if test -z "$ac_cpp_err"; then | |
6207 | ac_cv_header_libintl_h=yes | |
6208 | else | |
6209 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 6210 | cat conftest.$ac_ext >&5 |
18569462 | 6211 | ac_cv_header_libintl_h=no |
705db0b5 | 6212 | fi |
18569462 | 6213 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 6214 | fi |
5141b016 | 6215 | echo "$as_me:6215: result: $ac_cv_header_libintl_h" >&5 |
18569462 AD |
6216 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 |
6217 | if test $ac_cv_header_libintl_h = yes; then | |
5141b016 | 6218 | echo "$as_me:6218: checking for gettext in libc" >&5 |
18569462 AD |
6219 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 |
6220 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
6221 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6222 | else |
18569462 | 6223 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6224 | #line 6224 "configure" |
705db0b5 AD |
6225 | #include "confdefs.h" |
6226 | #include <libintl.h> | |
18569462 AD |
6227 | int |
6228 | main () | |
6229 | { | |
705db0b5 | 6230 | return (int) gettext ("") |
18569462 AD |
6231 | ; |
6232 | return 0; | |
6233 | } | |
6234 | _ACEOF | |
6235 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6236 | if { (eval echo "$as_me:6236: \"$ac_link\"") >&5 |
18569462 AD |
6237 | (eval $ac_link) 2>&5 |
6238 | ac_status=$? | |
5141b016 | 6239 | echo "$as_me:6239: \$? = $ac_status" >&5 |
18569462 | 6240 | (exit $ac_status); } && |
5141b016 AD |
6241 | { ac_try='test -s conftest$ac_exeext' |
6242 | { (eval echo "$as_me:6242: \"$ac_try\"") >&5 | |
18569462 AD |
6243 | (eval $ac_try) 2>&5 |
6244 | ac_status=$? | |
5141b016 | 6245 | echo "$as_me:6245: \$? = $ac_status" >&5 |
18569462 | 6246 | (exit $ac_status); }; }; then |
705db0b5 AD |
6247 | gt_cv_func_gettext_libc=yes |
6248 | else | |
18569462 AD |
6249 | echo "$as_me: failed program was:" >&5 |
6250 | cat conftest.$ac_ext >&5 | |
6251 | gt_cv_func_gettext_libc=no | |
705db0b5 | 6252 | fi |
18569462 | 6253 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 | 6254 | fi |
5141b016 | 6255 | echo "$as_me:6255: result: $gt_cv_func_gettext_libc" >&5 |
18569462 | 6256 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 |
705db0b5 AD |
6257 | |
6258 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5141b016 | 6259 | echo "$as_me:6259: checking for bindtextdomain in -lintl" >&5 |
18569462 AD |
6260 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 |
6261 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
6262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6263 | else |
18569462 | 6264 | ac_check_lib_save_LIBS=$LIBS |
705db0b5 | 6265 | LIBS="-lintl $LIBS" |
18569462 | 6266 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6267 | #line 6267 "configure" |
705db0b5 | 6268 | #include "confdefs.h" |
18569462 | 6269 | |
705db0b5 | 6270 | /* Override any gcc2 internal prototype to avoid an error. */ |
18569462 AD |
6271 | #ifdef __cplusplus |
6272 | extern "C" | |
6273 | #endif | |
705db0b5 | 6274 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6275 | builtin and then its argument prototype would still apply. */ |
6276 | char bindtextdomain (); | |
6277 | int | |
6278 | main () | |
6279 | { | |
6280 | bindtextdomain (); | |
6281 | ; | |
6282 | return 0; | |
6283 | } | |
6284 | _ACEOF | |
6285 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6286 | if { (eval echo "$as_me:6286: \"$ac_link\"") >&5 |
18569462 AD |
6287 | (eval $ac_link) 2>&5 |
6288 | ac_status=$? | |
5141b016 | 6289 | echo "$as_me:6289: \$? = $ac_status" >&5 |
18569462 | 6290 | (exit $ac_status); } && |
5141b016 AD |
6291 | { ac_try='test -s conftest$ac_exeext' |
6292 | { (eval echo "$as_me:6292: \"$ac_try\"") >&5 | |
18569462 AD |
6293 | (eval $ac_try) 2>&5 |
6294 | ac_status=$? | |
5141b016 | 6295 | echo "$as_me:6295: \$? = $ac_status" >&5 |
18569462 AD |
6296 | (exit $ac_status); }; }; then |
6297 | ac_cv_lib_intl_bindtextdomain=yes | |
6298 | else | |
6299 | echo "$as_me: failed program was:" >&5 | |
6300 | cat conftest.$ac_ext >&5 | |
6301 | ac_cv_lib_intl_bindtextdomain=no | |
6302 | fi | |
6303 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6304 | LIBS=$ac_check_lib_save_LIBS | |
6305 | fi | |
5141b016 | 6306 | echo "$as_me:6306: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
18569462 AD |
6307 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 |
6308 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
6309 | ||
5141b016 | 6310 | echo "$as_me:6310: checking for gettext in -lintl" >&5 |
18569462 AD |
6311 | echo $ECHO_N "checking for gettext in -lintl... $ECHO_C" >&6 |
6312 | if test "${ac_cv_lib_intl_gettext+set}" = set; then | |
6313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6314 | else | |
6315 | ac_check_lib_save_LIBS=$LIBS | |
705db0b5 | 6316 | LIBS="-lintl $LIBS" |
18569462 | 6317 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6318 | #line 6318 "configure" |
705db0b5 | 6319 | #include "confdefs.h" |
18569462 | 6320 | |
705db0b5 | 6321 | /* Override any gcc2 internal prototype to avoid an error. */ |
18569462 AD |
6322 | #ifdef __cplusplus |
6323 | extern "C" | |
6324 | #endif | |
705db0b5 | 6325 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6326 | builtin and then its argument prototype would still apply. */ |
6327 | char gettext (); | |
6328 | int | |
6329 | main () | |
6330 | { | |
6331 | gettext (); | |
6332 | ; | |
6333 | return 0; | |
6334 | } | |
6335 | _ACEOF | |
6336 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6337 | if { (eval echo "$as_me:6337: \"$ac_link\"") >&5 |
18569462 AD |
6338 | (eval $ac_link) 2>&5 |
6339 | ac_status=$? | |
5141b016 | 6340 | echo "$as_me:6340: \$? = $ac_status" >&5 |
18569462 | 6341 | (exit $ac_status); } && |
5141b016 AD |
6342 | { ac_try='test -s conftest$ac_exeext' |
6343 | { (eval echo "$as_me:6343: \"$ac_try\"") >&5 | |
18569462 AD |
6344 | (eval $ac_try) 2>&5 |
6345 | ac_status=$? | |
5141b016 | 6346 | echo "$as_me:6346: \$? = $ac_status" >&5 |
18569462 AD |
6347 | (exit $ac_status); }; }; then |
6348 | ac_cv_lib_intl_gettext=yes | |
6349 | else | |
6350 | echo "$as_me: failed program was:" >&5 | |
6351 | cat conftest.$ac_ext >&5 | |
6352 | ac_cv_lib_intl_gettext=no | |
6353 | fi | |
6354 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6355 | LIBS=$ac_check_lib_save_LIBS | |
6356 | fi | |
5141b016 | 6357 | echo "$as_me:6357: result: $ac_cv_lib_intl_gettext" >&5 |
18569462 AD |
6358 | echo "${ECHO_T}$ac_cv_lib_intl_gettext" >&6 |
6359 | if test $ac_cv_lib_intl_gettext = yes; then | |
6360 | cat >>confdefs.h <<EOF | |
6361 | #define HAVE_LIBINTL 1 | |
705db0b5 AD |
6362 | EOF |
6363 | ||
6364 | LIBS="-lintl $LIBS" | |
6365 | ||
705db0b5 AD |
6366 | fi |
6367 | ||
705db0b5 AD |
6368 | fi |
6369 | ||
6370 | fi | |
6371 | ||
6372 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
6373 | || test "$ac_cv_lib_intl_gettext" = "yes"; then | |
18569462 AD |
6374 | |
6375 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6376 | #define HAVE_GETTEXT 1 |
6377 | EOF | |
6378 | ||
6379 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6380 | set dummy msgfmt; ac_word=$2 | |
5141b016 | 6381 | echo "$as_me:6381: checking for $ac_word" >&5 |
18569462 AD |
6382 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6383 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6385 | else |
6386 | case "$MSGFMT" in | |
6387 | /*) | |
6388 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6389 | ;; | |
6390 | *) | |
6391 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6392 | for ac_dir in $PATH; do | |
6393 | test -z "$ac_dir" && ac_dir=. | |
6394 | if test -f $ac_dir/$ac_word; then | |
6395 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6396 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6397 | break | |
6398 | fi | |
6399 | fi | |
6400 | done | |
6401 | IFS="$ac_save_ifs" | |
6402 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
6403 | ;; | |
6404 | esac | |
6405 | fi | |
6406 | MSGFMT="$ac_cv_path_MSGFMT" | |
6407 | if test -n "$MSGFMT"; then | |
5141b016 | 6408 | echo "$as_me:6408: result: $MSGFMT" >&5 |
18569462 | 6409 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6410 | else |
5141b016 | 6411 | echo "$as_me:6411: result: no" >&5 |
18569462 | 6412 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6413 | fi |
6414 | if test "$MSGFMT" != "no"; then | |
18569462 AD |
6415 | |
6416 | for ac_func in dcgettext | |
705db0b5 | 6417 | do |
18569462 | 6418 | ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh` |
5141b016 | 6419 | echo "$as_me:6419: checking for $ac_func" >&5 |
18569462 AD |
6420 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 |
6421 | if eval "test \"\${$ac_ac_var+set}\" = set"; then | |
6422 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6423 | else | |
6424 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 6425 | #line 6425 "configure" |
705db0b5 AD |
6426 | #include "confdefs.h" |
6427 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6428 | which can conflict with char $ac_func (); below. */ |
705db0b5 AD |
6429 | #include <assert.h> |
6430 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6431 | #ifdef __cplusplus |
6432 | extern "C" | |
6433 | #endif | |
705db0b5 | 6434 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6435 | builtin and then its argument prototype would still apply. */ |
6436 | char $ac_func (); | |
6437 | char (*f) (); | |
705db0b5 | 6438 | |
18569462 AD |
6439 | int |
6440 | main () | |
6441 | { | |
705db0b5 AD |
6442 | /* The GNU C library defines this for functions which it implements |
6443 | to always fail with ENOSYS. Some functions are actually named | |
6444 | something starting with __ and the normal name is an alias. */ | |
6445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6446 | choke me | |
6447 | #else | |
18569462 | 6448 | f = $ac_func; |
705db0b5 AD |
6449 | #endif |
6450 | ||
18569462 AD |
6451 | ; |
6452 | return 0; | |
6453 | } | |
6454 | _ACEOF | |
6455 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6456 | if { (eval echo "$as_me:6456: \"$ac_link\"") >&5 |
18569462 AD |
6457 | (eval $ac_link) 2>&5 |
6458 | ac_status=$? | |
5141b016 | 6459 | echo "$as_me:6459: \$? = $ac_status" >&5 |
18569462 | 6460 | (exit $ac_status); } && |
5141b016 AD |
6461 | { ac_try='test -s conftest$ac_exeext' |
6462 | { (eval echo "$as_me:6462: \"$ac_try\"") >&5 | |
18569462 AD |
6463 | (eval $ac_try) 2>&5 |
6464 | ac_status=$? | |
5141b016 | 6465 | echo "$as_me:6465: \$? = $ac_status" >&5 |
18569462 AD |
6466 | (exit $ac_status); }; }; then |
6467 | eval "$ac_ac_var=yes" | |
6468 | else | |
6469 | echo "$as_me: failed program was:" >&5 | |
6470 | cat conftest.$ac_ext >&5 | |
6471 | eval "$ac_ac_var=no" | |
6472 | fi | |
6473 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6474 | fi | |
5141b016 | 6475 | echo "$as_me:6475: result: `eval echo '${'$ac_ac_var'}'`" >&5 |
18569462 AD |
6476 | echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6 |
6477 | if test `eval echo '${'$ac_ac_var'}'` = yes; then | |
6478 | cat >>confdefs.h <<EOF | |
6479 | #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1 | |
705db0b5 | 6480 | EOF |
705db0b5 | 6481 | |
705db0b5 AD |
6482 | fi |
6483 | done | |
6484 | ||
6485 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6486 | set dummy gmsgfmt; ac_word=$2 | |
5141b016 | 6487 | echo "$as_me:6487: checking for $ac_word" >&5 |
18569462 AD |
6488 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6489 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6491 | else |
18569462 AD |
6492 | case $GMSGFMT in |
6493 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6494 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6495 | ;; | |
705db0b5 | 6496 | *) |
5141b016 | 6497 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6498 | ac_dummy="$PATH" |
6499 | for ac_dir in $ac_dummy; do | |
6500 | IFS=$ac_save_IFS | |
6501 | test -z "$ac_dir" && ac_dir=. | |
6502 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6503 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6504 | break | |
6505 | fi | |
6506 | done | |
6507 | ||
705db0b5 AD |
6508 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6509 | ;; | |
6510 | esac | |
6511 | fi | |
18569462 AD |
6512 | GMSGFMT=$ac_cv_path_GMSGFMT |
6513 | ||
705db0b5 | 6514 | if test -n "$GMSGFMT"; then |
5141b016 | 6515 | echo "$as_me:6515: result: $GMSGFMT" >&5 |
18569462 | 6516 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6517 | else |
5141b016 | 6518 | echo "$as_me:6518: result: no" >&5 |
18569462 | 6519 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6520 | fi |
6521 | ||
6522 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6523 | set dummy xgettext; ac_word=$2 | |
5141b016 | 6524 | echo "$as_me:6524: checking for $ac_word" >&5 |
18569462 AD |
6525 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6526 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6528 | else |
6529 | case "$XGETTEXT" in | |
6530 | /*) | |
6531 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6532 | ;; | |
6533 | *) | |
6534 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6535 | for ac_dir in $PATH; do | |
6536 | test -z "$ac_dir" && ac_dir=. | |
6537 | if test -f $ac_dir/$ac_word; then | |
6538 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6539 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6540 | break | |
6541 | fi | |
6542 | fi | |
6543 | done | |
6544 | IFS="$ac_save_ifs" | |
6545 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6546 | ;; | |
6547 | esac | |
6548 | fi | |
6549 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6550 | if test -n "$XGETTEXT"; then | |
5141b016 | 6551 | echo "$as_me:6551: result: $XGETTEXT" >&5 |
18569462 | 6552 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6553 | else |
5141b016 | 6554 | echo "$as_me:6554: result: no" >&5 |
18569462 | 6555 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6556 | fi |
6557 | ||
18569462 | 6558 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6559 | #line 6559 "configure" |
705db0b5 AD |
6560 | #include "confdefs.h" |
6561 | ||
18569462 AD |
6562 | int |
6563 | main () | |
6564 | { | |
705db0b5 AD |
6565 | extern int _nl_msg_cat_cntr; |
6566 | return _nl_msg_cat_cntr | |
18569462 AD |
6567 | ; |
6568 | return 0; | |
6569 | } | |
6570 | _ACEOF | |
6571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6572 | if { (eval echo "$as_me:6572: \"$ac_link\"") >&5 |
18569462 AD |
6573 | (eval $ac_link) 2>&5 |
6574 | ac_status=$? | |
5141b016 | 6575 | echo "$as_me:6575: \$? = $ac_status" >&5 |
18569462 | 6576 | (exit $ac_status); } && |
5141b016 AD |
6577 | { ac_try='test -s conftest$ac_exeext' |
6578 | { (eval echo "$as_me:6578: \"$ac_try\"") >&5 | |
18569462 AD |
6579 | (eval $ac_try) 2>&5 |
6580 | ac_status=$? | |
5141b016 | 6581 | echo "$as_me:6581: \$? = $ac_status" >&5 |
18569462 | 6582 | (exit $ac_status); }; }; then |
705db0b5 AD |
6583 | CATOBJEXT=.gmo |
6584 | DATADIRNAME=share | |
6585 | else | |
18569462 AD |
6586 | echo "$as_me: failed program was:" >&5 |
6587 | cat conftest.$ac_ext >&5 | |
6588 | CATOBJEXT=.mo | |
705db0b5 AD |
6589 | DATADIRNAME=lib |
6590 | fi | |
18569462 | 6591 | rm -f conftest$ac_exeext conftest.$ac_ext |
705db0b5 AD |
6592 | INSTOBJEXT=.mo |
6593 | fi | |
6594 | fi | |
705db0b5 | 6595 | |
18569462 | 6596 | fi |
705db0b5 AD |
6597 | |
6598 | if test "$CATOBJEXT" = "NONE"; then | |
5141b016 | 6599 | echo "$as_me:6599: checking whether catgets can be used" >&5 |
18569462 AD |
6600 | echo $ECHO_N "checking whether catgets can be used... $ECHO_C" >&6 |
6601 | ||
6602 | # Check whether --with-catgets or --without-catgets was given. | |
705db0b5 AD |
6603 | if test "${with_catgets+set}" = set; then |
6604 | withval="$with_catgets" | |
6605 | nls_cv_use_catgets=$withval | |
6606 | else | |
6607 | nls_cv_use_catgets=no | |
18569462 | 6608 | fi; |
5141b016 | 6609 | echo "$as_me:6609: result: $nls_cv_use_catgets" >&5 |
18569462 | 6610 | echo "${ECHO_T}$nls_cv_use_catgets" >&6 |
705db0b5 AD |
6611 | |
6612 | if test "$nls_cv_use_catgets" = "yes"; then | |
18569462 | 6613 | |
5141b016 | 6614 | echo "$as_me:6614: checking for main in -li" >&5 |
18569462 AD |
6615 | echo $ECHO_N "checking for main in -li... $ECHO_C" >&6 |
6616 | if test "${ac_cv_lib_i_main+set}" = set; then | |
6617 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6618 | else |
18569462 | 6619 | ac_check_lib_save_LIBS=$LIBS |
705db0b5 | 6620 | LIBS="-li $LIBS" |
18569462 | 6621 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6622 | #line 6622 "configure" |
705db0b5 AD |
6623 | #include "confdefs.h" |
6624 | ||
18569462 AD |
6625 | int |
6626 | main () | |
6627 | { | |
6628 | main (); | |
6629 | ; | |
6630 | return 0; | |
6631 | } | |
6632 | _ACEOF | |
6633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6634 | if { (eval echo "$as_me:6634: \"$ac_link\"") >&5 |
18569462 AD |
6635 | (eval $ac_link) 2>&5 |
6636 | ac_status=$? | |
5141b016 | 6637 | echo "$as_me:6637: \$? = $ac_status" >&5 |
18569462 | 6638 | (exit $ac_status); } && |
5141b016 AD |
6639 | { ac_try='test -s conftest$ac_exeext' |
6640 | { (eval echo "$as_me:6640: \"$ac_try\"") >&5 | |
18569462 AD |
6641 | (eval $ac_try) 2>&5 |
6642 | ac_status=$? | |
5141b016 | 6643 | echo "$as_me:6643: \$? = $ac_status" >&5 |
18569462 AD |
6644 | (exit $ac_status); }; }; then |
6645 | ac_cv_lib_i_main=yes | |
6646 | else | |
6647 | echo "$as_me: failed program was:" >&5 | |
6648 | cat conftest.$ac_ext >&5 | |
6649 | ac_cv_lib_i_main=no | |
6650 | fi | |
6651 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6652 | LIBS=$ac_check_lib_save_LIBS | |
6653 | fi | |
5141b016 | 6654 | echo "$as_me:6654: result: $ac_cv_lib_i_main" >&5 |
18569462 AD |
6655 | echo "${ECHO_T}$ac_cv_lib_i_main" >&6 |
6656 | if test $ac_cv_lib_i_main = yes; then | |
6657 | cat >>confdefs.h <<EOF | |
6658 | #define HAVE_LIBI 1 | |
705db0b5 AD |
6659 | EOF |
6660 | ||
6661 | LIBS="-li $LIBS" | |
6662 | ||
705db0b5 AD |
6663 | fi |
6664 | ||
5141b016 | 6665 | echo "$as_me:6665: checking for catgets" >&5 |
18569462 AD |
6666 | echo $ECHO_N "checking for catgets... $ECHO_C" >&6 |
6667 | if test "${ac_cv_func_catgets+set}" = set; then | |
6668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6669 | else |
18569462 | 6670 | cat >conftest.$ac_ext <<_ACEOF |
5141b016 | 6671 | #line 6671 "configure" |
705db0b5 AD |
6672 | #include "confdefs.h" |
6673 | /* System header to define __stub macros and hopefully few prototypes, | |
18569462 | 6674 | which can conflict with char catgets (); below. */ |
705db0b5 AD |
6675 | #include <assert.h> |
6676 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18569462 AD |
6677 | #ifdef __cplusplus |
6678 | extern "C" | |
6679 | #endif | |
705db0b5 | 6680 | /* We use char because int might match the return type of a gcc2 |
18569462 AD |
6681 | builtin and then its argument prototype would still apply. */ |
6682 | char catgets (); | |
6683 | char (*f) (); | |
705db0b5 | 6684 | |
18569462 AD |
6685 | int |
6686 | main () | |
6687 | { | |
705db0b5 AD |
6688 | /* The GNU C library defines this for functions which it implements |
6689 | to always fail with ENOSYS. Some functions are actually named | |
6690 | something starting with __ and the normal name is an alias. */ | |
6691 | #if defined (__stub_catgets) || defined (__stub___catgets) | |
6692 | choke me | |
6693 | #else | |
18569462 | 6694 | f = catgets; |
705db0b5 AD |
6695 | #endif |
6696 | ||
18569462 AD |
6697 | ; |
6698 | return 0; | |
6699 | } | |
6700 | _ACEOF | |
6701 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5141b016 | 6702 | if { (eval echo "$as_me:6702: \"$ac_link\"") >&5 |
18569462 AD |
6703 | (eval $ac_link) 2>&5 |
6704 | ac_status=$? | |
5141b016 | 6705 | echo "$as_me:6705: \$? = $ac_status" >&5 |
18569462 | 6706 | (exit $ac_status); } && |
5141b016 AD |
6707 | { ac_try='test -s conftest$ac_exeext' |
6708 | { (eval echo "$as_me:6708: \"$ac_try\"") >&5 | |
18569462 AD |
6709 | (eval $ac_try) 2>&5 |
6710 | ac_status=$? | |
5141b016 | 6711 | echo "$as_me:6711: \$? = $ac_status" >&5 |
18569462 AD |
6712 | (exit $ac_status); }; }; then |
6713 | ac_cv_func_catgets=yes | |
6714 | else | |
6715 | echo "$as_me: failed program was:" >&5 | |
6716 | cat conftest.$ac_ext >&5 | |
6717 | ac_cv_func_catgets=no | |
6718 | fi | |
6719 | rm -f conftest$ac_exeext conftest.$ac_ext | |
6720 | fi | |
5141b016 | 6721 | echo "$as_me:6721: result: $ac_cv_func_catgets" >&5 |
18569462 AD |
6722 | echo "${ECHO_T}$ac_cv_func_catgets" >&6 |
6723 | if test $ac_cv_func_catgets = yes; then | |
6724 | ||
6725 | cat >>confdefs.h <<\EOF | |
705db0b5 AD |
6726 | #define HAVE_CATGETS 1 |
6727 | EOF | |
6728 | ||
6729 | INTLOBJS="\$(CATOBJS)" | |
6730 | # Extract the first word of "gencat", so it can be a program name with args. | |
6731 | set dummy gencat; ac_word=$2 | |
5141b016 | 6732 | echo "$as_me:6732: checking for $ac_word" >&5 |
18569462 AD |
6733 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6734 | if test "${ac_cv_path_GENCAT+set}" = set; then | |
6735 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6736 | else |
18569462 AD |
6737 | case $GENCAT in |
6738 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6739 | ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path. |
6740 | ;; | |
705db0b5 | 6741 | *) |
5141b016 | 6742 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6743 | ac_dummy="$PATH" |
6744 | for ac_dir in $ac_dummy; do | |
6745 | IFS=$ac_save_IFS | |
6746 | test -z "$ac_dir" && ac_dir=. | |
6747 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6748 | ac_cv_path_GENCAT="$ac_dir/$ac_word" | |
6749 | break | |
6750 | fi | |
6751 | done | |
6752 | ||
705db0b5 AD |
6753 | test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no" |
6754 | ;; | |
6755 | esac | |
6756 | fi | |
18569462 AD |
6757 | GENCAT=$ac_cv_path_GENCAT |
6758 | ||
705db0b5 | 6759 | if test -n "$GENCAT"; then |
5141b016 | 6760 | echo "$as_me:6760: result: $GENCAT" >&5 |
18569462 | 6761 | echo "${ECHO_T}$GENCAT" >&6 |
705db0b5 | 6762 | else |
5141b016 | 6763 | echo "$as_me:6763: result: no" >&5 |
18569462 | 6764 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6765 | fi |
6766 | if test "$GENCAT" != "no"; then | |
6767 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6768 | set dummy gmsgfmt; ac_word=$2 | |
5141b016 | 6769 | echo "$as_me:6769: checking for $ac_word" >&5 |
18569462 AD |
6770 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6771 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6772 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6773 | else |
18569462 AD |
6774 | case $GMSGFMT in |
6775 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6776 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6777 | ;; | |
705db0b5 | 6778 | *) |
5141b016 | 6779 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6780 | ac_dummy="$PATH" |
6781 | for ac_dir in $ac_dummy; do | |
6782 | IFS=$ac_save_IFS | |
6783 | test -z "$ac_dir" && ac_dir=. | |
6784 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6785 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6786 | break | |
6787 | fi | |
6788 | done | |
6789 | ||
705db0b5 AD |
6790 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" |
6791 | ;; | |
6792 | esac | |
6793 | fi | |
18569462 AD |
6794 | GMSGFMT=$ac_cv_path_GMSGFMT |
6795 | ||
705db0b5 | 6796 | if test -n "$GMSGFMT"; then |
5141b016 | 6797 | echo "$as_me:6797: result: $GMSGFMT" >&5 |
18569462 | 6798 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6799 | else |
5141b016 | 6800 | echo "$as_me:6800: result: no" >&5 |
18569462 | 6801 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6802 | fi |
6803 | ||
6804 | if test "$GMSGFMT" = "no"; then | |
6805 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6806 | set dummy msgfmt; ac_word=$2 | |
5141b016 | 6807 | echo "$as_me:6807: checking for $ac_word" >&5 |
18569462 AD |
6808 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6809 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6810 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6811 | else |
6812 | case "$GMSGFMT" in | |
6813 | /*) | |
6814 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
6815 | ;; | |
6816 | *) | |
6817 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6818 | for ac_dir in $PATH; do | |
6819 | test -z "$ac_dir" && ac_dir=. | |
6820 | if test -f $ac_dir/$ac_word; then | |
6821 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6822 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6823 | break | |
6824 | fi | |
6825 | fi | |
6826 | done | |
6827 | IFS="$ac_save_ifs" | |
6828 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no" | |
6829 | ;; | |
6830 | esac | |
6831 | fi | |
6832 | GMSGFMT="$ac_cv_path_GMSGFMT" | |
6833 | if test -n "$GMSGFMT"; then | |
5141b016 | 6834 | echo "$as_me:6834: result: $GMSGFMT" >&5 |
18569462 | 6835 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6836 | else |
5141b016 | 6837 | echo "$as_me:6837: result: no" >&5 |
18569462 | 6838 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6839 | fi |
6840 | ||
6841 | fi | |
6842 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6843 | set dummy xgettext; ac_word=$2 | |
5141b016 | 6844 | echo "$as_me:6844: checking for $ac_word" >&5 |
18569462 AD |
6845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6846 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6848 | else |
6849 | case "$XGETTEXT" in | |
6850 | /*) | |
6851 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6852 | ;; | |
6853 | *) | |
6854 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6855 | for ac_dir in $PATH; do | |
6856 | test -z "$ac_dir" && ac_dir=. | |
6857 | if test -f $ac_dir/$ac_word; then | |
6858 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6859 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6860 | break | |
6861 | fi | |
6862 | fi | |
6863 | done | |
6864 | IFS="$ac_save_ifs" | |
6865 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6866 | ;; | |
6867 | esac | |
6868 | fi | |
6869 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
6870 | if test -n "$XGETTEXT"; then | |
5141b016 | 6871 | echo "$as_me:6871: result: $XGETTEXT" >&5 |
18569462 | 6872 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 6873 | else |
5141b016 | 6874 | echo "$as_me:6874: result: no" >&5 |
18569462 | 6875 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6876 | fi |
6877 | ||
6878 | USE_INCLUDED_LIBINTL=yes | |
6879 | CATOBJEXT=.cat | |
6880 | INSTOBJEXT=.cat | |
6881 | DATADIRNAME=lib | |
6882 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
6883 | INTLLIBS=$INTLDEPS | |
6884 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
6885 | nls_cv_header_intl=intl/libintl.h | |
6886 | nls_cv_header_libgt=intl/libgettext.h | |
6887 | fi | |
705db0b5 AD |
6888 | fi |
6889 | ||
6890 | fi | |
6891 | fi | |
6892 | ||
6893 | if test "$CATOBJEXT" = "NONE"; then | |
6894 | nls_cv_use_gnu_gettext=yes | |
6895 | fi | |
6896 | fi | |
6897 | ||
6898 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
6899 | INTLOBJS="\$(GETTOBJS)" | |
6900 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
6901 | set dummy msgfmt; ac_word=$2 | |
5141b016 | 6902 | echo "$as_me:6902: checking for $ac_word" >&5 |
18569462 AD |
6903 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6904 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
6905 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6906 | else |
6907 | case "$MSGFMT" in | |
6908 | /*) | |
6909 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
6910 | ;; | |
6911 | *) | |
6912 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6913 | for ac_dir in $PATH; do | |
6914 | test -z "$ac_dir" && ac_dir=. | |
6915 | if test -f $ac_dir/$ac_word; then | |
6916 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
6917 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
6918 | break | |
6919 | fi | |
6920 | fi | |
6921 | done | |
6922 | IFS="$ac_save_ifs" | |
6923 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
6924 | ;; | |
6925 | esac | |
6926 | fi | |
6927 | MSGFMT="$ac_cv_path_MSGFMT" | |
6928 | if test -n "$MSGFMT"; then | |
5141b016 | 6929 | echo "$as_me:6929: result: $MSGFMT" >&5 |
18569462 | 6930 | echo "${ECHO_T}$MSGFMT" >&6 |
705db0b5 | 6931 | else |
5141b016 | 6932 | echo "$as_me:6932: result: no" >&5 |
18569462 | 6933 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6934 | fi |
6935 | ||
6936 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
6937 | set dummy gmsgfmt; ac_word=$2 | |
5141b016 | 6938 | echo "$as_me:6938: checking for $ac_word" >&5 |
18569462 AD |
6939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6940 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
6941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 | 6942 | else |
18569462 AD |
6943 | case $GMSGFMT in |
6944 | [\\/]* | ?:[\\/]*) | |
705db0b5 AD |
6945 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
6946 | ;; | |
705db0b5 | 6947 | *) |
5141b016 | 6948 | ac_save_IFS=$IFS; IFS=$ac_path_separator |
18569462 AD |
6949 | ac_dummy="$PATH" |
6950 | for ac_dir in $ac_dummy; do | |
6951 | IFS=$ac_save_IFS | |
6952 | test -z "$ac_dir" && ac_dir=. | |
6953 | if $as_executable_p "$ac_dir/$ac_word"; then | |
6954 | ac_cv_path_GMSGFMT="$ac_dir/$ac_word" | |
6955 | break | |
6956 | fi | |
6957 | done | |
6958 | ||
705db0b5 AD |
6959 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
6960 | ;; | |
6961 | esac | |
6962 | fi | |
18569462 AD |
6963 | GMSGFMT=$ac_cv_path_GMSGFMT |
6964 | ||
705db0b5 | 6965 | if test -n "$GMSGFMT"; then |
5141b016 | 6966 | echo "$as_me:6966: result: $GMSGFMT" >&5 |
18569462 | 6967 | echo "${ECHO_T}$GMSGFMT" >&6 |
705db0b5 | 6968 | else |
5141b016 | 6969 | echo "$as_me:6969: result: no" >&5 |
18569462 | 6970 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
6971 | fi |
6972 | ||
6973 | # Extract the first word of "xgettext", so it can be a program name with args. | |
6974 | set dummy xgettext; ac_word=$2 | |
5141b016 | 6975 | echo "$as_me:6975: checking for $ac_word" >&5 |
18569462 AD |
6976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
6977 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
6978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
705db0b5 AD |
6979 | else |
6980 | case "$XGETTEXT" in | |
6981 | /*) | |
6982 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
6983 | ;; | |
6984 | *) | |
6985 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
6986 | for ac_dir in $PATH; do | |
6987 | test -z "$ac_dir" && ac_dir=. | |
6988 | if test -f $ac_dir/$ac_word; then | |
6989 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
6990 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
6991 | break | |
6992 | fi | |
6993 | fi | |
6994 | done | |
6995 | IFS="$ac_save_ifs" | |
6996 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
6997 | ;; | |
6998 | esac | |
6999 | fi | |
7000 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7001 | if test -n "$XGETTEXT"; then | |
5141b016 | 7002 | echo "$as_me:7002: result: $XGETTEXT" >&5 |
18569462 | 7003 | echo "${ECHO_T}$XGETTEXT" >&6 |
705db0b5 | 7004 | else |
5141b016 | 7005 | echo "$as_me:7005: result: no" >&5 |
18569462 | 7006 | echo "${ECHO_T}no" >&6 |
705db0b5 AD |
7007 | fi |
7008 | ||
705db0b5 AD |
7009 | USE_INCLUDED_LIBINTL=yes |
7010 | CATOBJEXT=.gmo | |
7011 | INSTOBJEXT=.mo | |
7012 | DATADIRNAME=share | |
7013 | INTLDEPS='$(top_builddir)/intl/libintl.a' | |
7014 | INTLLIBS=$INTLDEPS | |
7015 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7016 | nls_cv_header_intl=intl/libintl.h | |
7017 | nls_cv_header_libgt=intl/libgettext.h | |
7018 | fi | |
7019 | ||
7020 | if test "$XGETTEXT" != ":"; then | |
7021 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7022 | : ; | |
7023 | else | |
5141b016 | 7024 | echo "$as_me:7024: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
18569462 | 7025 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 |
705db0b5 AD |
7026 | XGETTEXT=":" |
7027 | fi | |
7028 | fi | |
7029 | ||
7030 | # We need to process the po/ directory. | |
7031 | POSUB=po | |
7032 | else | |
7033 | DATADIRNAME=share | |
7034 | nls_cv_header_intl=intl/libintl.h | |
7035 | nls_cv_header_libgt=intl/libgettext.h | |
7036 | fi | |
7037 | if test -z "$nls_cv_header_intl"; then | |
7038 | # Clean out junk possibly left behind by a previous configuration. | |
7039 | rm -f intl/libintl.h | |
7040 | fi | |
18569462 AD |
7041 | ac_sources="$nls_cv_header_libgt" |
7042 | ac_dests="$nls_cv_header_intl" | |
7043 | while test -n "$ac_sources"; do | |
7044 | set $ac_dests; ac_dest=$1; shift; ac_dests=$* | |
7045 | set $ac_sources; ac_source=$1; shift; ac_sources=$* | |
7046 | ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source" | |
7047 | done | |
7048 | ac_config_links="$ac_config_links $ac_config_links_1" | |
705db0b5 | 7049 | |
18569462 | 7050 | ac_config_commands="$ac_config_commands default-2" |
705db0b5 AD |
7051 | |
7052 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
7053 | # because some of the sources are only built for this goal. | |
7054 | if test "$PACKAGE" = gettext; then | |
7055 | USE_NLS=yes | |
7056 | USE_INCLUDED_LIBINTL=yes | |
7057 | fi | |
7058 | ||
7059 | for lang in $ALL_LINGUAS; do | |
7060 | GMOFILES="$GMOFILES $lang.gmo" | |
7061 | POFILES="$POFILES $lang.po" | |
7062 | done | |
7063 | ||
705db0b5 AD |
7064 | if test "x$CATOBJEXT" != "x"; then |
7065 | if test "x$ALL_LINGUAS" = "x"; then | |
7066 | LINGUAS= | |
7067 | else | |
5141b016 | 7068 | echo "$as_me:7068: checking for catalogs to be installed" >&5 |
18569462 | 7069 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 |
705db0b5 AD |
7070 | NEW_LINGUAS= |
7071 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
7072 | case "$ALL_LINGUAS" in | |
7073 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
7074 | esac | |
7075 | done | |
7076 | LINGUAS=$NEW_LINGUAS | |
5141b016 | 7077 | echo "$as_me:7077: result: $LINGUAS" >&5 |
18569462 | 7078 | echo "${ECHO_T}$LINGUAS" >&6 |
705db0b5 AD |
7079 | fi |
7080 | ||
7081 | if test -n "$LINGUAS"; then | |
7082 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
7083 | fi | |
7084 | fi | |
7085 | ||
7086 | if test $ac_cv_header_locale_h = yes; then | |
7087 | INCLUDE_LOCALE_H="#include <locale.h>" | |
7088 | else | |
7089 | INCLUDE_LOCALE_H="\ | |
7090 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
7091 | fi | |
705db0b5 AD |
7092 | |
7093 | test -d intl || mkdir intl | |
7094 | if test "$CATOBJEXT" = ".cat"; then | |
5141b016 | 7095 | echo "$as_me:7095: checking for linux/version.h" >&5 |
18569462 AD |
7096 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 |
7097 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
7098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7099 | else | |
7100 | cat >conftest.$ac_ext <<_ACEOF | |
5141b016 | 7101 | #line 7101 "configure" |
705db0b5 AD |
7102 | #include "confdefs.h" |
7103 | #include <linux/version.h> | |
18569462 | 7104 | _ACEOF |
5141b016 | 7105 | if { (eval echo "$as_me:7105: \"$ac_cpp conftest.$ac_ext >/dev/null\"") >&5 |
18569462 AD |
7106 | (eval $ac_cpp conftest.$ac_ext >/dev/null) 2>conftest.er1 |
7107 | ac_status=$? | |
7108 | egrep -v '^ *\+' conftest.er1 >conftest.err | |
7109 | rm -f conftest.er1 | |
7110 | cat conftest.err >&5 | |
5141b016 | 7111 | echo "$as_me:7111: \$? = $ac_status" >&5 |
18569462 AD |
7112 | (exit $ac_status); }; then |
7113 | if test -s conftest.err; then | |
7114 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7115 | else | |
7116 | ac_cpp_err= | |
7117 | fi | |
7118 | else | |
7119 | ac_cpp_err=yes | |
7120 | fi | |
7121 | if test -z "$ac_cpp_err"; then | |
7122 | ac_cv_header_linux_version_h=yes | |
7123 | else | |
7124 | echo "$as_me: failed program was:" >&5 | |
705db0b5 | 7125 | cat conftest.$ac_ext >&5 |
18569462 | 7126 | ac_cv_header_linux_version_h=no |
705db0b5 | 7127 | fi |
18569462 | 7128 | rm -f conftest.err conftest.$ac_ext |
705db0b5 | 7129 | fi |
5141b016 | 7130 | echo "$as_me:7130: result: $ac_cv_header_linux_version_h" >&5 |
18569462 AD |
7131 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 |
7132 | if test $ac_cv_header_linux_version_h = yes; then | |
705db0b5 AD |
7133 | msgformat=linux |
7134 | else | |
18569462 | 7135 | msgformat=xopen |
705db0b5 AD |
7136 | fi |
7137 | ||
705db0b5 AD |
7138 | sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed |
7139 | fi | |
7140 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
7141 | $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed | |
7142 | ||
7143 | if test "$PACKAGE" = "gettext"; then | |
7144 | GT_NO="#NO#" | |
7145 | GT_YES= | |
7146 | else | |
7147 | GT_NO= | |
7148 | GT_YES="#YES#" | |
7149 | fi | |
705db0b5 AD |
7150 | |
7151 | MKINSTALLDIRS= | |
7152 | if test -n "$ac_aux_dir"; then | |
7153 | MKINSTALLDIRS="\$(top_srcdir)/$ac_aux_dir/mkinstalldirs" | |
7154 | fi | |
7155 | if test -z "$MKINSTALLDIRS"; then | |
7156 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
7157 | fi | |
705db0b5 AD |
7158 | |
7159 | l= | |
705db0b5 AD |
7160 | |
7161 | test -d po || mkdir po | |
7162 | case "$srcdir" in | |
7163 | .) | |
7164 | posrcprefix="../" ;; | |
7165 | /* | [A-Za-z]:*) | |
7166 | posrcprefix="$srcdir/" ;; | |
7167 | *) | |
7168 | posrcprefix="../$srcdir/" ;; | |
7169 | esac | |
7170 | rm -f po/POTFILES | |
7171 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
7172 | < $srcdir/po/POTFILES.in > po/POTFILES | |
705db0b5 | 7173 | |
705db0b5 AD |
7174 | # This is necessary so that .o files in LIBOBJS are also built via |
7175 | # the ANSI2KNR-filtering rules. | |
7176 | LIBOBJS=`echo $LIBOBJS|sed 's/\.o /\$U.o /g;s/\.o$/\$U.o/'` | |
7177 | ||
18569462 AD |
7178 | ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in lib/Makefile src/Makefile doc/Makefile m4/Makefile tests/Makefile tests/atconfig" |
7179 | cat >confcache <<\_ACEOF | |
705db0b5 AD |
7180 | # This file is a shell script that caches the results of configure |
7181 | # tests run on this system so they can be shared between configure | |
18569462 AD |
7182 | # scripts and configure runs, see configure's option --config-cache. |
7183 | # It is not useful on other systems. If it contains results you don't | |
7184 | # want to keep, you may remove or edit it. | |
705db0b5 | 7185 | # |
18569462 AD |
7186 | # config.status only pays attention to the cache file if you give it |
7187 | # the --recheck option to rerun configure. | |
705db0b5 | 7188 | # |
18569462 AD |
7189 | # `ac_cv_env_foo' variables (set or unset) will be overriden when |
7190 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7191 | # following values. | |
7192 | ||
7193 | _ACEOF | |
7194 | ||
705db0b5 AD |
7195 | # The following way of writing the cache mishandles newlines in values, |
7196 | # but we know of no workaround that is simple, portable, and efficient. | |
7197 | # So, don't put newlines in cache variables' values. | |
7198 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7199 | # and sets the high bit in the cache file unless we assign to the vars. | |
18569462 AD |
7200 | { |
7201 | (set) 2>&1 | | |
7202 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
7203 | *ac_space=\ *) | |
7204 | # `set' does not quote correctly, so add quotes (double-quote | |
7205 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
7206 | sed -n \ | |
7207 | "s/'/'\\\\''/g; | |
7208 | s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7209 | ;; | |
7210 | *) | |
7211 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7212 | sed -n \ | |
7213 | "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
7214 | ;; | |
7215 | esac; | |
7216 | } | | |
7217 | sed ' | |
7218 | t clear | |
7219 | : clear | |
7220 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7221 | t end | |
7222 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7223 | : end' >>confcache | |
7224 | if cmp -s $cache_file confcache; then :; else | |
705db0b5 | 7225 | if test -w $cache_file; then |
18569462 AD |
7226 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
7227 | cat confcache >$cache_file | |
705db0b5 AD |
7228 | else |
7229 | echo "not updating unwritable cache $cache_file" | |
7230 | fi | |
7231 | fi | |
7232 | rm -f confcache | |
7233 | ||
705db0b5 AD |
7234 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
7235 | # Let make expand exec_prefix. | |
7236 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7237 | ||
5141b016 AD |
7238 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
7239 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
7240 | # trailing colons and then remove the whole line if VPATH becomes empty | |
7241 | # (actually we leave an empty line to preserve line numbers). | |
705db0b5 | 7242 | if test "x$srcdir" = x.; then |
5141b016 AD |
7243 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
7244 | s/:*\$(srcdir):*/:/; | |
7245 | s/:*\${srcdir}:*/:/; | |
7246 | s/:*@srcdir@:*/:/; | |
7247 | s/^\([^=]*=[ ]*\):*/\1/; | |
7248 | s/:*$//; | |
7249 | s/^[^=]*=[ ]*$//; | |
7250 | }' | |
705db0b5 AD |
7251 | fi |
7252 | ||
705db0b5 AD |
7253 | DEFS=-DHAVE_CONFIG_H |
7254 | ||
705db0b5 | 7255 | : ${CONFIG_STATUS=./config.status} |
18569462 AD |
7256 | ac_clean_files_save=$ac_clean_files |
7257 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
5141b016 | 7258 | { echo "$as_me:7258: creating $CONFIG_STATUS" >&5 |
18569462 AD |
7259 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
7260 | cat >$CONFIG_STATUS <<\_ACEOF | |
705db0b5 AD |
7261 | #! /bin/sh |
7262 | # Generated automatically by configure. | |
7263 | # Run this file to recreate the current configuration. | |
705db0b5 | 7264 | # Compiler output produced by configure, useful for debugging |
18569462 | 7265 | # configure, is in config.log if it exists. |
705db0b5 | 7266 | |
18569462 AD |
7267 | debug=false |
7268 | as_me=`echo "$0" | sed 's,.*/,,'` | |
7269 | SHELL=${CONFIG_SHELL-/bin/sh} | |
7270 | ||
7271 | # Be Bourne compatible | |
7272 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
7273 | emulate sh | |
7274 | NULLCMD=: | |
7275 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
7276 | set -o posix | |
7277 | fi | |
7278 | ||
7279 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7280 | as_expr=expr | |
7281 | else | |
7282 | as_expr=false | |
7283 | fi | |
7284 | ||
5141b016 AD |
7285 | rm -f conf$$ conf$$.exe conf$$.file |
7286 | echo >conf$$.file | |
7287 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
18569462 AD |
7288 | # We could just check for DJGPP; but this test a) works b) is more generic |
7289 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
5141b016 | 7290 | if test -f conf$$.exe; then |
18569462 AD |
7291 | # Don't use ln at all; we don't have any links |
7292 | as_ln_s='cp -p' | |
7293 | else | |
7294 | as_ln_s='ln -s' | |
7295 | fi | |
5141b016 | 7296 | elif ln conf$$.file conf$$ 2>/dev/null; then |
18569462 AD |
7297 | as_ln_s=ln |
7298 | else | |
7299 | as_ln_s='cp -p' | |
7300 | fi | |
5141b016 | 7301 | rm -f conf$$ conf$$.exe conf$$.file |
18569462 | 7302 | |
5141b016 | 7303 | as_executable_p="test -f" |
18569462 AD |
7304 | |
7305 | # Support unset when possible. | |
7306 | if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
7307 | as_unset=unset | |
7308 | else | |
7309 | as_unset=false | |
7310 | fi | |
7311 | ||
7312 | # NLS nuisances. | |
7313 | $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; } | |
7314 | $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; } | |
7315 | $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; } | |
7316 | $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; } | |
7317 | $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; } | |
7318 | $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; } | |
7319 | $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; } | |
7320 | $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; } | |
7321 | ||
7322 | # IFS | |
7323 | # We need space, tab and new line, in precisely that order. | |
7324 | as_nl=' | |
7325 | ' | |
7326 | IFS=" $as_nl" | |
7327 | ||
7328 | # CDPATH. | |
7329 | $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; } | |
7330 | ||
7331 | # File descriptor usage: | |
7332 | # 0 standard input | |
7333 | # 1 file creation | |
7334 | # 2 errors and warnings | |
7335 | # 5 compiler messages saved in config.log | |
7336 | # 6 checking for... messages and results | |
7337 | exec 5>>config.log | |
7338 | exec 6>&1 | |
7339 | ||
7340 | cat >&5 << EOF | |
7341 | ||
7342 | ## ----------------------- ## | |
7343 | ## Running config.status. ## | |
7344 | ## ----------------------- ## | |
7345 | ||
7346 | This file was extended by $as_me 2.49d, executed with | |
7347 | > $0 $@ | |
7348 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7349 | ||
7350 | EOF | |
7351 | ||
7352 | _ACEOF | |
7353 | ||
7354 | # Files that config.status was made for. | |
7355 | if test -n "$ac_config_files"; then | |
7356 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7357 | fi | |
7358 | ||
7359 | if test -n "$ac_config_headers"; then | |
7360 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7361 | fi | |
7362 | ||
7363 | if test -n "$ac_config_links"; then | |
7364 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7365 | fi | |
7366 | ||
7367 | if test -n "$ac_config_commands"; then | |
7368 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7369 | fi | |
7370 | ||
7371 | cat >>$CONFIG_STATUS <<\EOF | |
7372 | ||
7373 | ac_cs_usage="\ | |
7374 | \`$as_me' instantiates files from templates according to the | |
7375 | current configuration. | |
7376 | ||
7377 | Usage: $0 [OPTIONS] [FILE]... | |
7378 | ||
7379 | -h, --help print this help, then exit | |
7380 | -V, --version print version number, then exit | |
7381 | -d, --debug don't remove temporary files | |
7382 | --recheck update $as_me by reconfiguring in the same conditions | |
7383 | --file=FILE[:TEMPLATE] | |
7384 | instantiate the configuration file FILE | |
7385 | --header=FILE[:TEMPLATE] | |
7386 | instantiate the configuration header FILE | |
7387 | ||
7388 | Configuration files: | |
7389 | $config_files | |
7390 | ||
7391 | Configuration headers: | |
7392 | $config_headers | |
7393 | ||
7394 | Configuration links: | |
7395 | $config_links | |
7396 | ||
7397 | Configuration commands: | |
7398 | $config_commands | |
7399 | ||
7400 | Report bugs to <bug-autoconf@gnu.org>." | |
7401 | EOF | |
7402 | ||
7403 | cat >>$CONFIG_STATUS <<EOF | |
7404 | ac_cs_version="\\ | |
7405 | $CONFIG_STATUS generated by $as_me (Autoconf 2.49d). | |
7406 | Configured on host $ac_hostname by | |
7407 | `echo "$0 $ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`" | |
7408 | srcdir=$srcdir | |
7409 | INSTALL="$INSTALL" | |
7410 | EOF | |
7411 | ||
7412 | cat >>$CONFIG_STATUS <<\EOF | |
7413 | # If no file are specified by the user, then we need to provide default | |
7414 | # value. By we need to know if files were specified by the user. | |
7415 | ac_need_defaults=: | |
7416 | while test $# != 0 | |
705db0b5 | 7417 | do |
18569462 AD |
7418 | case $1 in |
7419 | --*=*) | |
7420 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7421 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7422 | shift | |
7423 | set dummy "$ac_option" "$ac_optarg" ${1+"$@"} | |
7424 | shift | |
7425 | ;; | |
7426 | -*);; | |
7427 | *) # This is not an option, so the user has probably given explicit | |
7428 | # arguments. | |
7429 | ac_need_defaults=false;; | |
7430 | esac | |
7431 | ||
7432 | case $1 in | |
7433 | # Handling of the options. | |
7434 | EOF | |
7435 | cat >>$CONFIG_STATUS <<EOF | |
705db0b5 | 7436 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
18569462 AD |
7437 | echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" |
7438 | exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
7439 | EOF | |
7440 | cat >>$CONFIG_STATUS <<\EOF | |
7441 | --version | --vers* | -V ) | |
7442 | echo "$ac_cs_version"; exit 0 ;; | |
7443 | --he | --h) | |
7444 | # Conflict between --help and --header | |
5141b016 | 7445 | { { echo "$as_me:7445: error: ambiguous option: $1 |
18569462 AD |
7446 | Try \`$0 --help' for more information." >&5 |
7447 | echo "$as_me: error: ambiguous option: $1 | |
7448 | Try \`$0 --help' for more information." >&2;} | |
7449 | { (exit 1); exit 1; }; };; | |
7450 | --help | --hel | -h ) | |
7451 | echo "$ac_cs_usage"; exit 0 ;; | |
7452 | --debug | --d* | -d ) | |
7453 | debug=: ;; | |
7454 | --file | --fil | --fi | --f ) | |
7455 | shift | |
7456 | CONFIG_FILES="$CONFIG_FILES $1" | |
7457 | ac_need_defaults=false;; | |
7458 | --header | --heade | --head | --hea ) | |
7459 | shift | |
7460 | CONFIG_HEADERS="$CONFIG_HEADERS $1" | |
7461 | ac_need_defaults=false;; | |
7462 | ||
7463 | # Handling of arguments. | |
7464 | 'Makefile' ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7465 | 'intl/Makefile' ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; | |
7466 | 'po/Makefile.in' ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; | |
7467 | 'lib/Makefile' ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
7468 | 'src/Makefile' ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | |
7469 | 'doc/Makefile' ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
7470 | 'm4/Makefile' ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | |
7471 | 'tests/Makefile' ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | |
7472 | 'tests/atconfig' ) CONFIG_FILES="$CONFIG_FILES tests/atconfig" ;; | |
7473 | '$ac_config_links_1' ) CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;; | |
7474 | 'default-1' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
7475 | 'default-2' ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;; | |
7476 | 'config.h' ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;; | |
7477 | ||
7478 | # This is an error. | |
5141b016 | 7479 | -*) { { echo "$as_me:7479: error: unrecognized option: $1 |
18569462 AD |
7480 | Try \`$0 --help' for more information." >&5 |
7481 | echo "$as_me: error: unrecognized option: $1 | |
7482 | Try \`$0 --help' for more information." >&2;} | |
7483 | { (exit 1); exit 1; }; } ;; | |
5141b016 | 7484 | *) { { echo "$as_me:7484: error: invalid argument: $1" >&5 |
18569462 AD |
7485 | echo "$as_me: error: invalid argument: $1" >&2;} |
7486 | { (exit 1); exit 1; }; };; | |
705db0b5 | 7487 | esac |
18569462 | 7488 | shift |
705db0b5 AD |
7489 | done |
7490 | ||
18569462 AD |
7491 | EOF |
7492 | ||
7493 | cat >>$CONFIG_STATUS <<\EOF | |
7494 | # If the user did not use the arguments to specify the items to instantiate, | |
7495 | # then the envvar interface is used. Set only those that are not. | |
7496 | # We use the long form for the default assignment because of an extremely | |
7497 | # bizarre bug on SunOS 4.1.3. | |
7498 | if $ac_need_defaults; then | |
7499 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7500 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7501 | test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links | |
7502 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7503 | fi | |
7504 | ||
7505 | # Create a temporary directory, and hook for its removal unless debugging. | |
7506 | $debug || | |
7507 | { | |
7508 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7509 | trap '{ (exit $?); exit $?; }' 1 2 13 15 | |
7510 | } | |
7511 | ||
7512 | # Create a (secure) tmp directory for tmp files. | |
7513 | : ${TMPDIR=/tmp} | |
7514 | { | |
7515 | tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
7516 | test -n "$tmp" && test -d "$tmp" | |
7517 | } || | |
7518 | { | |
7519 | tmp=$TMPDIR/cs$$-$RANDOM | |
7520 | (umask 077 && mkdir $tmp) | |
7521 | } || | |
7522 | { | |
7523 | echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
7524 | { (exit 1); exit 1; } | |
7525 | } | |
705db0b5 | 7526 | |
705db0b5 | 7527 | EOF |
705db0b5 | 7528 | |
18569462 AD |
7529 | cat >>$CONFIG_STATUS <<EOF |
7530 | # | |
7531 | # INIT-COMMANDS section. | |
7532 | # | |
7533 | ||
7534 | EOF | |
7535 | ||
7536 | cat >>$CONFIG_STATUS <<EOF | |
705db0b5 | 7537 | |
18569462 AD |
7538 | # |
7539 | # CONFIG_FILES section. | |
7540 | # | |
7541 | ||
7542 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7543 | # This happens for instance when ./config.status config.h | |
7544 | if test -n "\$CONFIG_FILES"; then | |
7545 | # Protect against being on the right side of a sed subst in config.status. | |
7546 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7547 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7548 | s,@SHELL@,$SHELL,;t t | |
7549 | s,@exec_prefix@,$exec_prefix,;t t | |
7550 | s,@prefix@,$prefix,;t t | |
7551 | s,@program_transform_name@,$program_transform_name,;t t | |
7552 | s,@bindir@,$bindir,;t t | |
7553 | s,@sbindir@,$sbindir,;t t | |
7554 | s,@libexecdir@,$libexecdir,;t t | |
7555 | s,@datadir@,$datadir,;t t | |
7556 | s,@sysconfdir@,$sysconfdir,;t t | |
7557 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7558 | s,@localstatedir@,$localstatedir,;t t | |
7559 | s,@libdir@,$libdir,;t t | |
7560 | s,@includedir@,$includedir,;t t | |
7561 | s,@oldincludedir@,$oldincludedir,;t t | |
7562 | s,@infodir@,$infodir,;t t | |
7563 | s,@mandir@,$mandir,;t t | |
7564 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7565 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7566 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7567 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7568 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7569 | s,@ECHO_C@,$ECHO_C,;t t | |
7570 | s,@ECHO_N@,$ECHO_N,;t t | |
7571 | s,@ECHO_T@,$ECHO_T,;t t | |
5141b016 | 7572 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t |
18569462 AD |
7573 | s,@DEFS@,$DEFS,;t t |
7574 | s,@LIBS@,$LIBS,;t t | |
7575 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7576 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7577 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7578 | s,@PACKAGE@,$PACKAGE,;t t | |
7579 | s,@VERSION@,$VERSION,;t t | |
7580 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7581 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7582 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7583 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7584 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7585 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7586 | s,@AT_TESTPATH@,$AT_TESTPATH,;t t | |
7587 | s,@CC@,$CC,;t t | |
7588 | s,@CFLAGS@,$CFLAGS,;t t | |
7589 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7590 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
18569462 | 7591 | s,@EXEEXT@,$EXEEXT,;t t |
5141b016 | 7592 | s,@OBJEXT@,$OBJEXT,;t t |
18569462 AD |
7593 | s,@CPP@,$CPP,;t t |
7594 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7595 | s,@RANLIB@,$RANLIB,;t t | |
7596 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7597 | s,@M4@,$M4,;t t | |
7598 | s,@WARNING_CFLAGS@,$WARNING_CFLAGS,;t t | |
7599 | s,@U@,$U,;t t | |
7600 | s,@ANSI2KNR@,$ANSI2KNR,;t t | |
7601 | s,@ALLOCA@,$ALLOCA,;t t | |
7602 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7603 | s,@USE_NLS@,$USE_NLS,;t t | |
7604 | s,@MSGFMT@,$MSGFMT,;t t | |
7605 | s,@GMSGFMT@,$GMSGFMT,;t t | |
7606 | s,@XGETTEXT@,$XGETTEXT,;t t | |
7607 | s,@GENCAT@,$GENCAT,;t t | |
7608 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
7609 | s,@CATALOGS@,$CATALOGS,;t t | |
7610 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
7611 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
7612 | s,@GMOFILES@,$GMOFILES,;t t | |
7613 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
7614 | s,@INTLDEPS@,$INTLDEPS,;t t | |
7615 | s,@INTLLIBS@,$INTLLIBS,;t t | |
7616 | s,@INTLOBJS@,$INTLOBJS,;t t | |
7617 | s,@POFILES@,$POFILES,;t t | |
7618 | s,@POSUB@,$POSUB,;t t | |
7619 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
7620 | s,@GT_NO@,$GT_NO,;t t | |
7621 | s,@GT_YES@,$GT_YES,;t t | |
7622 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
7623 | s,@l@,$l,;t t | |
705db0b5 | 7624 | CEOF |
18569462 | 7625 | |
705db0b5 AD |
7626 | EOF |
7627 | ||
18569462 AD |
7628 | cat >>$CONFIG_STATUS <<\EOF |
7629 | # Split the substitutions into bite-sized pieces for seds with | |
7630 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7631 | ac_max_sed_lines=48 | |
7632 | ac_sed_frag=1 # Number of current file. | |
7633 | ac_beg=1 # First line for current file. | |
7634 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7635 | ac_more_lines=: | |
7636 | ac_sed_cmds= | |
7637 | while $ac_more_lines; do | |
7638 | if test $ac_beg -gt 1; then | |
7639 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7640 | else | |
7641 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7642 | fi | |
7643 | if test ! -s $tmp/subs.frag; then | |
7644 | ac_more_lines=false | |
705db0b5 | 7645 | else |
18569462 AD |
7646 | # The purpose of the label and of the branching condition is to |
7647 | # speed up the sed processing (if there are no `@' at all, there | |
7648 | # is no need to browse any of the substitutions). | |
7649 | # These are the two extra sed commands mentioned above. | |
7650 | (echo ':t | |
7651 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7652 | if test -z "$ac_sed_cmds"; then | |
7653 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7654 | else | |
7655 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7656 | fi | |
7657 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7658 | ac_beg=$ac_end | |
7659 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
705db0b5 | 7660 | fi |
18569462 AD |
7661 | done |
7662 | if test -z "$ac_sed_cmds"; then | |
7663 | ac_sed_cmds=cat | |
705db0b5 | 7664 | fi |
18569462 | 7665 | fi # test -n "$CONFIG_FILES" |
705db0b5 | 7666 | |
705db0b5 | 7667 | EOF |
18569462 AD |
7668 | cat >>$CONFIG_STATUS <<\EOF |
7669 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
705db0b5 | 7670 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7671 | case $ac_file in |
7672 | - | *:- | *:-:* ) # input from stdin | |
7673 | cat >$tmp/stdin | |
7674 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7675 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7676 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7677 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7678 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7679 | esac |
7680 | ||
18569462 AD |
7681 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
7682 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7683 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7684 | X"$ac_file" : 'X\(//\)$' \| \ | |
7685 | X"$ac_file" : 'X\(/\)' \| \ | |
7686 | . : '\(.\)' 2>/dev/null || | |
7687 | echo X"$ac_file" | | |
7688 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7689 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7690 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7691 | /^X\(\/\).*/{ s//\1/; q; } | |
7692 | s/.*/./; q'` | |
705db0b5 | 7693 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7694 | { case "$ac_dir" in |
7695 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7696 | *) as_incr_dir=.;; | |
7697 | esac | |
7698 | as_dummy="$ac_dir" | |
7699 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7700 | case $as_mkdir_dir in | |
7701 | # Skip DOS drivespec | |
7702 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7703 | *) | |
7704 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7705 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7706 | ;; | |
7707 | esac | |
7708 | done; } | |
7709 | ||
7710 | ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`" | |
705db0b5 | 7711 | # A "../" for each directory in $ac_dir_suffix. |
18569462 | 7712 | ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'` |
705db0b5 AD |
7713 | else |
7714 | ac_dir_suffix= ac_dots= | |
7715 | fi | |
7716 | ||
18569462 AD |
7717 | case $srcdir in |
7718 | .) ac_srcdir=. | |
7719 | if test -z "$ac_dots"; then | |
7720 | ac_top_srcdir=. | |
7721 | else | |
7722 | ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'` | |
7723 | fi ;; | |
7724 | [\\/]* | ?:[\\/]* ) | |
7725 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7726 | ac_top_srcdir=$srcdir ;; | |
705db0b5 | 7727 | *) # Relative path. |
18569462 AD |
7728 | ac_srcdir=$ac_dots$srcdir$ac_dir_suffix |
7729 | ac_top_srcdir=$ac_dots$srcdir ;; | |
705db0b5 AD |
7730 | esac |
7731 | ||
18569462 AD |
7732 | case $INSTALL in |
7733 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7734 | *) ac_INSTALL=$ac_dots$INSTALL ;; | |
705db0b5 AD |
7735 | esac |
7736 | ||
18569462 | 7737 | if test x"$ac_file" != x-; then |
5141b016 | 7738 | { echo "$as_me:7738: creating $ac_file" >&5 |
18569462 AD |
7739 | echo "$as_me: creating $ac_file" >&6;} |
7740 | rm -f "$ac_file" | |
7741 | fi | |
7742 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7743 | # use $as_me), people would be surprised to read: | |
7744 | # /* config.h. Generated automatically by config.status. */ | |
7745 | configure_input="Generated automatically from `echo $ac_file_in | | |
7746 | sed 's,.*/,,'` by configure." | |
7747 | ||
7748 | # First look for the input files in the build tree, otherwise in the | |
7749 | # src tree. | |
7750 | ac_file_inputs=`IFS=: | |
7751 | for f in $ac_file_in; do | |
7752 | case $f in | |
7753 | -) echo $tmp/stdin ;; | |
7754 | [\\/$]* | ?:[\\/]*) | |
7755 | # Absolute | |
5141b016 | 7756 | test -f "$f" || { { echo "$as_me:7756: error: cannot find input file: $f" >&5 |
18569462 AD |
7757 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7758 | { (exit 1); exit 1; }; } | |
7759 | echo $f;; | |
7760 | *) # Relative | |
7761 | if test -f "$f"; then | |
7762 | # Build tree | |
7763 | echo $f | |
7764 | elif test -f "$srcdir/$f"; then | |
7765 | # Source tree | |
7766 | echo $srcdir/$f | |
7767 | else | |
7768 | # /dev/null tree | |
5141b016 | 7769 | { { echo "$as_me:7769: error: cannot find input file: $f" >&5 |
18569462 AD |
7770 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7771 | { (exit 1); exit 1; }; } | |
7772 | fi;; | |
7773 | esac | |
7774 | done` || { (exit 1); exit 1; } | |
7775 | EOF | |
7776 | cat >>$CONFIG_STATUS <<EOF | |
7777 | sed "$ac_vpsub | |
7778 | $extrasub | |
7779 | EOF | |
7780 | cat >>$CONFIG_STATUS <<\EOF | |
7781 | :t | |
7782 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7783 | s,@configure_input@,$configure_input,;t t | |
7784 | s,@srcdir@,$ac_srcdir,;t t | |
7785 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7786 | s,@INSTALL@,$ac_INSTALL,;t t | |
7787 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7788 | rm -f $tmp/stdin | |
7789 | if test x"$ac_file" != x-; then | |
7790 | mv $tmp/out $ac_file | |
7791 | else | |
7792 | cat $tmp/out | |
7793 | rm -f $tmp/out | |
7794 | fi | |
7795 | ||
7796 | done | |
7797 | EOF | |
7798 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 7799 | |
18569462 AD |
7800 | # |
7801 | # CONFIG_HEADER section. | |
7802 | # | |
705db0b5 AD |
7803 | |
7804 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7805 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7806 | # | |
7807 | # ac_d sets the value in "#define NAME VALUE" lines. | |
18569462 AD |
7808 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
7809 | ac_dB='[ ].*$,\1#\2' | |
7810 | ac_dC=' ' | |
7811 | ac_dD=',;t' | |
7812 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7813 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7814 | ac_uB='$,\1#\2define\3' | |
705db0b5 | 7815 | ac_uC=' ' |
18569462 AD |
7816 | ac_uD=',;t' |
7817 | ||
7818 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
705db0b5 | 7819 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
18569462 AD |
7820 | case $ac_file in |
7821 | - | *:- | *:-:* ) # input from stdin | |
7822 | cat >$tmp/stdin | |
7823 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7824 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7825 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7826 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7827 | * ) ac_file_in=$ac_file.in ;; | |
705db0b5 AD |
7828 | esac |
7829 | ||
5141b016 | 7830 | test x"$ac_file" != x- && { echo "$as_me:7830: creating $ac_file" >&5 |
18569462 AD |
7831 | echo "$as_me: creating $ac_file" >&6;} |
7832 | ||
7833 | # First look for the input files in the build tree, otherwise in the | |
7834 | # src tree. | |
7835 | ac_file_inputs=`IFS=: | |
7836 | for f in $ac_file_in; do | |
7837 | case $f in | |
7838 | -) echo $tmp/stdin ;; | |
7839 | [\\/$]* | ?:[\\/]*) | |
7840 | # Absolute | |
5141b016 | 7841 | test -f "$f" || { { echo "$as_me:7841: error: cannot find input file: $f" >&5 |
18569462 AD |
7842 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7843 | { (exit 1); exit 1; }; } | |
7844 | echo $f;; | |
7845 | *) # Relative | |
7846 | if test -f "$f"; then | |
7847 | # Build tree | |
7848 | echo $f | |
7849 | elif test -f "$srcdir/$f"; then | |
7850 | # Source tree | |
7851 | echo $srcdir/$f | |
7852 | else | |
7853 | # /dev/null tree | |
5141b016 | 7854 | { { echo "$as_me:7854: error: cannot find input file: $f" >&5 |
18569462 AD |
7855 | echo "$as_me: error: cannot find input file: $f" >&2;} |
7856 | { (exit 1); exit 1; }; } | |
7857 | fi;; | |
7858 | esac | |
7859 | done` || { (exit 1); exit 1; } | |
7860 | # Remove the trailing spaces. | |
7861 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7862 | ||
7863 | EOF | |
7864 | ||
7865 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7866 | # `conftest.undefs', that substitutes the proper values into | |
7867 | # config.h.in to produce config.h. The first handles `#define' | |
7868 | # templates, and the second `#undef' templates. | |
7869 | # And first: Protect against being on the right side of a sed subst in | |
7870 | # config.status. Protect against being in an unquoted here document | |
7871 | # in config.status. | |
7872 | rm -f conftest.defines conftest.undefs | |
7873 | # Using a here document instead of a string reduces the quoting nightmare. | |
7874 | # Putting comments in sed scripts is not portable. | |
7875 | # | |
7876 | # `end' is used to avoid that the second main sed command (meant for | |
7877 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7878 | # See the Autoconf documentation for `clear'. | |
7879 | cat >confdef2sed.sed <<\EOF | |
7880 | s/[\\&,]/\\&/g | |
7881 | s,[\\$`],\\&,g | |
7882 | t clear | |
7883 | : clear | |
7884 | s,^[ ]*#[ ]*define[ ][ ]*\(\([^ (][^ (]*\)([^)]*)\)[ ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp | |
7885 | t end | |
7886 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7887 | : end | |
7888 | EOF | |
7889 | # If some macros were called several times there might be several times | |
7890 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7891 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7892 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7893 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7894 | rm -f confdef2sed.sed | |
705db0b5 AD |
7895 | |
7896 | # This sed command replaces #undef with comments. This is necessary, for | |
7897 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7898 | # on some systems where configure will not decide to define it. | |
18569462 AD |
7899 | cat >>conftest.undefs <<\EOF |
7900 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
705db0b5 AD |
7901 | EOF |
7902 | ||
18569462 AD |
7903 | # Break up conftest.defines because some shells have a limit on the size |
7904 | # of here documents, and old seds have small limits too (100 cmds). | |
7905 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7906 | echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7907 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7908 | echo ' :' >>$CONFIG_STATUS | |
7909 | rm -f conftest.tail | |
7910 | while grep . conftest.defines >/dev/null | |
7911 | do | |
7912 | # Write a limited-size here document to $tmp/defines.sed. | |
7913 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7914 | # Speed up: don't consider the non `#define' lines. | |
7915 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7916 | # Work around the forget-to-reset-the-flag bug. | |
7917 | echo 't clr' >>$CONFIG_STATUS | |
7918 | echo ': clr' >>$CONFIG_STATUS | |
7919 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7920 | echo 'CEOF | |
7921 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7922 | rm -f $tmp/in | |
7923 | mv $tmp/out $tmp/in | |
7924 | ' >>$CONFIG_STATUS | |
7925 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7926 | rm -f conftest.defines | |
7927 | mv conftest.tail conftest.defines | |
7928 | done | |
7929 | rm -f conftest.defines | |
7930 | echo ' fi # egrep' >>$CONFIG_STATUS | |
7931 | echo >>$CONFIG_STATUS | |
705db0b5 | 7932 | |
18569462 AD |
7933 | # Break up conftest.undefs because some shells have a limit on the size |
7934 | # of here documents, and old seds have small limits too (100 cmds). | |
7935 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
705db0b5 | 7936 | rm -f conftest.tail |
18569462 | 7937 | while grep . conftest.undefs >/dev/null |
705db0b5 | 7938 | do |
18569462 AD |
7939 | # Write a limited-size here document to $tmp/undefs.sed. |
7940 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7941 | # Speed up: don't consider the non `#undef' | |
7942 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7943 | # Work around the forget-to-reset-the-flag bug. | |
7944 | echo 't clr' >>$CONFIG_STATUS | |
7945 | echo ': clr' >>$CONFIG_STATUS | |
7946 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
705db0b5 | 7947 | echo 'CEOF |
18569462 AD |
7948 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
7949 | rm -f $tmp/in | |
7950 | mv $tmp/out $tmp/in | |
7951 | ' >>$CONFIG_STATUS | |
7952 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7953 | rm -f conftest.undefs | |
7954 | mv conftest.tail conftest.undefs | |
705db0b5 | 7955 | done |
18569462 AD |
7956 | rm -f conftest.undefs |
7957 | ||
7958 | cat >>$CONFIG_STATUS <<\EOF | |
7959 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7960 | # use $as_me), people would be surprised to read: | |
7961 | # /* config.h. Generated automatically by config.status. */ | |
7962 | if test x"$ac_file" = x-; then | |
7963 | echo "/* Generated automatically by configure. */" >$tmp/config.h | |
705db0b5 | 7964 | else |
18569462 AD |
7965 | echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h |
7966 | fi | |
7967 | cat $tmp/in >>$tmp/config.h | |
7968 | rm -f $tmp/in | |
7969 | if test x"$ac_file" != x-; then | |
7970 | if cmp -s $ac_file $tmp/config.h 2>/dev/null; then | |
5141b016 | 7971 | { echo "$as_me:7971: $ac_file is unchanged" >&5 |
18569462 AD |
7972 | echo "$as_me: $ac_file is unchanged" >&6;} |
7973 | else | |
7974 | ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7975 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7976 | X"$ac_file" : 'X\(//\)$' \| \ | |
7977 | X"$ac_file" : 'X\(/\)' \| \ | |
7978 | . : '\(.\)' 2>/dev/null || | |
7979 | echo X"$ac_file" | | |
7980 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7981 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7982 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7983 | /^X\(\/\).*/{ s//\1/; q; } | |
7984 | s/.*/./; q'` | |
705db0b5 | 7985 | if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then |
18569462 AD |
7986 | { case "$ac_dir" in |
7987 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
7988 | *) as_incr_dir=.;; | |
7989 | esac | |
7990 | as_dummy="$ac_dir" | |
7991 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
7992 | case $as_mkdir_dir in | |
7993 | # Skip DOS drivespec | |
7994 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
7995 | *) | |
7996 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
7997 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
7998 | ;; | |
7999 | esac | |
8000 | done; } | |
8001 | ||
8002 | fi | |
8003 | rm -f $ac_file | |
8004 | mv $tmp/config.h $ac_file | |
705db0b5 | 8005 | fi |
18569462 AD |
8006 | else |
8007 | cat $tmp/config.h | |
8008 | rm -f $tmp/config.h | |
705db0b5 | 8009 | fi |
18569462 | 8010 | done |
705db0b5 | 8011 | EOF |
18569462 | 8012 | cat >>$CONFIG_STATUS <<\EOF |
705db0b5 | 8013 | |
18569462 AD |
8014 | # |
8015 | # CONFIG_LINKS section. | |
8016 | # | |
705db0b5 | 8017 | |
18569462 AD |
8018 | for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue |
8019 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8020 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
705db0b5 | 8021 | |
5141b016 | 8022 | { echo "$as_me:8022: linking $srcdir/$ac_source to $ac_dest" >&5 |
18569462 | 8023 | echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;} |
705db0b5 AD |
8024 | |
8025 | if test ! -r $srcdir/$ac_source; then | |
5141b016 | 8026 | { { echo "$as_me:8026: error: $srcdir/$ac_source: File not found" >&5 |
18569462 AD |
8027 | echo "$as_me: error: $srcdir/$ac_source: File not found" >&2;} |
8028 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
8029 | fi |
8030 | rm -f $ac_dest | |
8031 | ||
8032 | # Make relative symlinks. | |
18569462 AD |
8033 | ac_dest_dir=`$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
8034 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8035 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8036 | X"$ac_dest" : 'X\(/\)' \| \ | |
8037 | . : '\(.\)' 2>/dev/null || | |
8038 | echo X"$ac_dest" | | |
8039 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8040 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8041 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8042 | /^X\(\/\).*/{ s//\1/; q; } | |
8043 | s/.*/./; q'` | |
705db0b5 | 8044 | if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then |
18569462 AD |
8045 | { case "$ac_dest_dir" in |
8046 | [\\/]* | ?:[\\/]* ) as_incr_dir=;; | |
8047 | *) as_incr_dir=.;; | |
8048 | esac | |
8049 | as_dummy="$ac_dest_dir" | |
8050 | for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do | |
8051 | case $as_mkdir_dir in | |
8052 | # Skip DOS drivespec | |
8053 | ?:) as_incr_dir=$as_mkdir_dir ;; | |
8054 | *) | |
8055 | as_incr_dir=$as_incr_dir/$as_mkdir_dir | |
8056 | test -d "$as_incr_dir" || mkdir "$as_incr_dir" | |
8057 | ;; | |
8058 | esac | |
8059 | done; } | |
8060 | ||
8061 | ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's,^\./,,'`" | |
705db0b5 | 8062 | # A "../" for each directory in $ac_dest_dir_suffix. |
18569462 | 8063 | ac_dots=`echo $ac_dest_dir_suffix|sed 's,/[^/]*,../,g'` |
705db0b5 AD |
8064 | else |
8065 | ac_dest_dir_suffix= ac_dots= | |
8066 | fi | |
8067 | ||
18569462 AD |
8068 | case $srcdir in |
8069 | [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;; | |
8070 | *) ac_rel_source=$ac_dots$srcdir/$ac_source ;; | |
705db0b5 AD |
8071 | esac |
8072 | ||
8073 | # Make a symlink if possible; otherwise try a hard link. | |
18569462 AD |
8074 | ln -s $ac_rel_source $ac_dest 2>/dev/null || |
8075 | ln $srcdir/$ac_source $ac_dest || | |
5141b016 | 8076 | { { echo "$as_me:8076: error: cannot link $ac_dest to $srcdir/$ac_source" >&5 |
18569462 AD |
8077 | echo "$as_me: error: cannot link $ac_dest to $srcdir/$ac_source" >&2;} |
8078 | { (exit 1); exit 1; }; } | |
705db0b5 AD |
8079 | done |
8080 | EOF | |
18569462 | 8081 | cat >>$CONFIG_STATUS <<\EOF |
705db0b5 | 8082 | |
18569462 AD |
8083 | # |
8084 | # CONFIG_COMMANDS section. | |
8085 | # | |
8086 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8087 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8088 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
705db0b5 | 8089 | |
18569462 AD |
8090 | case $ac_dest in |
8091 | default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; | |
8092 | default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*) | |
705db0b5 | 8093 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile |
18569462 AD |
8094 | esac ;; |
8095 | esac | |
8096 | done | |
8097 | EOF | |
8098 | ||
8099 | cat >>$CONFIG_STATUS <<\EOF | |
705db0b5 | 8100 | |
5141b016 | 8101 | { (exit 0); exit 0; } |
705db0b5 AD |
8102 | EOF |
8103 | chmod +x $CONFIG_STATUS | |
18569462 AD |
8104 | ac_clean_files=$ac_clean_files_save |
8105 | ||
8106 | test "$no_create" = yes || $SHELL $CONFIG_STATUS || { (exit 1); exit 1; } | |
705db0b5 | 8107 |