"Fossies" - the Fresh Open Source Software Archive 
Member "tin-2.6.2/configure" (24 Dec 2022, 997271 Bytes) of package /linux/misc/tin-2.6.2.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style:
standard) with prefixed line numbers and
code folding option.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure":
2.6.1_vs_2.6.2.
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.52.20221009.
4 #
5 # Copyright 2003-2021,2022 Thomas E. Dickey
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10
11 # Avoid depending upon Character Ranges.
12 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15 as_cr_digits='0123456789'
16 as_cr_alnum=$as_cr_Letters$as_cr_digits
17
18 # Sed expression to map a string onto a valid variable name.
19 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20
21 # Sed expression to map a string onto a valid CPP name.
22 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23
24 # Be Bourne compatible
25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26 emulate sh
27 NULLCMD=:
28 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29 set -o posix
30 fi
31
32 # Name of the executable.
33 as_me=`echo "$0" |sed 's,.*[\\/],,'`
34
35 if expr a : '\(a\)' >/dev/null 2>&1; then
36 as_expr="expr"
37 else
38 as_expr="false"
39 fi
40
41 rm -f conf$$ conf$$.exe conf$$.file
42 echo >conf$$.file
43 if ln -s conf$$.file conf$$ 2>/dev/null; then
44 # We could just check for DJGPP; but this test a) works b) is more generic
45 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
46 if test -f conf$$.exe; then
47 # Don't use ln at all; we don't have any links
48 as_ln_s='cp -p'
49 else
50 as_ln_s='ln -s'
51 fi
52 elif ln conf$$.file conf$$ 2>/dev/null; then
53 as_ln_s='ln'
54 else
55 as_ln_s='cp -p'
56 fi
57 rm -f conf$$ conf$$.exe conf$$.file
58
59 as_executable_p="test -f"
60
61 # Support unset when possible.
62 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
63 as_unset="unset"
64 else
65 as_unset="false"
66 fi
67
68 # NLS nuisances.
69 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
70 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
71 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
72 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
73 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
74 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
75 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
76 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
77
78 # IFS
79 # We need space, tab and new line, in precisely that order.
80 as_nl='
81 '
82 IFS=" $as_nl"
83
84 # CDPATH.
85 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
86
87 # Name of the host.
88 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
89 # so uname gets run too.
90 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
91
92 exec 6>&1
93
94 #
95 # Initializations.
96 #
97 ac_default_prefix=/usr/local
98 cross_compiling=no
99 subdirs=
100 MFLAGS=
101 MAKEFLAGS=
102 SHELL=${CONFIG_SHELL-/bin/sh}
103
104 # Maximum number of lines to put in a shell here document.
105 # This variable seems obsolete. It should probably be removed, and
106 # only ac_max_sed_lines should be used.
107 : "${ac_max_here_lines=38}"
108
109 ac_unique_file="include/tin.h"
110 ac_default_prefix=/usr/local
111 # Factoring default headers for most tests.
112 ac_includes_default="\
113 #include <stdio.h>
114 #if HAVE_SYS_TYPES_H
115 # include <sys/types.h>
116 #endif
117 #if HAVE_SYS_STAT_H
118 # include <sys/stat.h>
119 #endif
120 #if STDC_HEADERS
121 # include <stdlib.h>
122 # include <stddef.h>
123 #else
124 # if HAVE_STDLIB_H
125 # include <stdlib.h>
126 # endif
127 #endif
128 #if HAVE_STRING_H
129 # if !STDC_HEADERS && HAVE_MEMORY_H
130 # include <memory.h>
131 # endif
132 # include <string.h>
133 #endif
134 #if HAVE_STRINGS_H
135 # include <strings.h>
136 #endif
137 #if HAVE_INTTYPES_H
138 # include <inttypes.h>
139 #else
140 # if HAVE_STDINT_H
141 # include <stdint.h>
142 # endif
143 #endif
144 #if HAVE_UNISTD_H
145 # include <unistd.h>
146 #endif"
147
148 # Initialize some variables set by options.
149 ac_init_help=
150 ac_init_version=false
151 # The variables have the same names as the options, with
152 # dashes changed to underlines.
153 cache_file=/dev/null
154 exec_prefix=NONE
155 no_create=
156 no_recursion=
157 prefix=NONE
158 program_prefix=NONE
159 program_suffix=NONE
160 program_transform_name=s,x,x,
161 silent=
162 site=
163 srcdir=
164 verbose=
165 x_includes=NONE
166 x_libraries=NONE
167
168 # Installation directory options.
169 # These are left unexpanded so users can "make install exec_prefix=/foo"
170 # and all the variables that are supposed to be based on exec_prefix
171 # by default will actually change.
172 # Use braces instead of parens because sh, perl, etc. also accept them.
173 bindir='${exec_prefix}/bin'
174 sbindir='${exec_prefix}/sbin'
175 libexecdir='${exec_prefix}/libexec'
176 datarootdir='${prefix}/share'
177 datadir='${datarootdir}'
178 sysconfdir='${prefix}/etc'
179 sharedstatedir='${prefix}/com'
180 localstatedir='${prefix}/var'
181 runstatedir='${localstatedir}/run'
182 libdir='${exec_prefix}/lib'
183 includedir='${prefix}/include'
184 oldincludedir='/usr/include'
185 infodir='${datarootdir}/info'
186 mandir='${datarootdir}/man'
187
188 # Identity of this package.
189 PACKAGE_NAME=
190 PACKAGE_TARNAME=
191 PACKAGE_VERSION=
192 PACKAGE_STRING=
193 PACKAGE_BUGREPORT=
194
195 ac_prev=
196 for ac_option
197 do
198 # If the previous option needs an argument, assign it.
199 if test -n "$ac_prev"; then
200 eval "$ac_prev=\$ac_option"
201 ac_prev=
202 continue
203 fi
204
205 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
206
207 # Accept the important Cygnus configure options, so we can diagnose typos.
208
209 case "$ac_option" in
210
211 -bindir | --bindir | --bindi | --bind | --bin | --bi)
212 ac_prev=bindir ;;
213 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
214 bindir=$ac_optarg ;;
215
216 -build | --build | --buil | --bui | --bu)
217 ac_prev=build_alias ;;
218 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
219 build_alias=$ac_optarg ;;
220
221 -cache-file | --cache-file | --cache-fil | --cache-fi \
222 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
223 ac_prev=cache_file ;;
224 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
225 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
226 cache_file=$ac_optarg ;;
227
228 --config-cache | -C)
229 cache_file=config.cache ;;
230
231 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
232 ac_prev=datadir ;;
233 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
234 | --da=*)
235 datadir=$ac_optarg ;;
236
237 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
238 | --dataroo | --dataro | --datar)
239 ac_prev=datarootdir ;;
240 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
241 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
242 datarootdir=$ac_optarg ;;
243
244 -disable-* | --disable-*)
245 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
246 # Reject names that are not valid shell variable names.
247 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
248 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
249 { (exit 1); exit 1; }; }
250 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
251 eval "enable_$ac_feature=no" ;;
252
253 -enable-* | --enable-*)
254 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
255 # Reject names that are not valid shell variable names.
256 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
257 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
258 { (exit 1); exit 1; }; }
259 ac_feature=`echo "$ac_feature" | sed 's/-/_/g'`
260 case "$ac_option" in
261 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
262 *) ac_optarg=yes ;;
263 esac
264 eval "enable_$ac_feature='$ac_optarg'" ;;
265
266 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
267 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
268 | --exec | --exe | --ex)
269 ac_prev=exec_prefix ;;
270 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
271 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
272 | --exec=* | --exe=* | --ex=*)
273 exec_prefix=$ac_optarg ;;
274
275 -gas | --gas | --ga | --g)
276 # Obsolete; use --with-gas.
277 with_gas=yes ;;
278
279 -help | --help | --hel | --he | -h)
280 ac_init_help=long ;;
281 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
282 ac_init_help=recursive ;;
283 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
284 ac_init_help=short ;;
285
286 -host | --host | --hos | --ho)
287 ac_prev=host_alias ;;
288 -host=* | --host=* | --hos=* | --ho=*)
289 host_alias=$ac_optarg ;;
290
291 -includedir | --includedir | --includedi | --included | --include \
292 | --includ | --inclu | --incl | --inc)
293 ac_prev=includedir ;;
294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
295 | --includ=* | --inclu=* | --incl=* | --inc=*)
296 includedir=$ac_optarg ;;
297
298 -infodir | --infodir | --infodi | --infod | --info | --inf)
299 ac_prev=infodir ;;
300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
301 infodir=$ac_optarg ;;
302
303 -libdir | --libdir | --libdi | --libd)
304 ac_prev=libdir ;;
305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
306 libdir=$ac_optarg ;;
307
308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
309 | --libexe | --libex | --libe)
310 ac_prev=libexecdir ;;
311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
312 | --libexe=* | --libex=* | --libe=*)
313 libexecdir=$ac_optarg ;;
314
315 -localstatedir | --localstatedir | --localstatedi | --localstated \
316 | --localstate | --localstat | --localsta | --localst \
317 | --locals | --local | --loca | --loc | --lo)
318 ac_prev=localstatedir ;;
319 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
320 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
321 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
322 localstatedir=$ac_optarg ;;
323
324 -runstatedir | --runstatedir | --runstatedi | --runstated \
325 | --runstate | --runstat | --runsta | --runst \
326 | --runs | --run | --ru)
327 ac_prev=runstatedir ;;
328 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
329 | --runstate=* | --runstat=* | --runsta=* | --runst=* \
330 | --runs=* | --run=* | --ru=*)
331 runstatedir=$ac_optarg ;;
332
333 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
334 ac_prev=mandir ;;
335 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
336 mandir=$ac_optarg ;;
337
338 -nfp | --nfp | --nf)
339 # Obsolete; use --without-fp.
340 with_fp=no ;;
341
342 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
343 | --no-cr | --no-c)
344 no_create=yes ;;
345
346 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
347 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
348 no_recursion=yes ;;
349
350 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
351 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
352 | --oldin | --oldi | --old | --ol | --o)
353 ac_prev=oldincludedir ;;
354 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
355 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
356 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
357 oldincludedir=$ac_optarg ;;
358
359 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
360 ac_prev=prefix ;;
361 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
362 prefix=$ac_optarg ;;
363
364 -program-prefix | --program-prefix | --program-prefi | --program-pref \
365 | --program-pre | --program-pr | --program-p)
366 ac_prev=program_prefix ;;
367 -program-prefix=* | --program-prefix=* | --program-prefi=* \
368 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
369 program_prefix=$ac_optarg ;;
370
371 -program-suffix | --program-suffix | --program-suffi | --program-suff \
372 | --program-suf | --program-su | --program-s)
373 ac_prev=program_suffix ;;
374 -program-suffix=* | --program-suffix=* | --program-suffi=* \
375 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
376 program_suffix=$ac_optarg ;;
377
378 -program-transform-name | --program-transform-name \
379 | --program-transform-nam | --program-transform-na \
380 | --program-transform-n | --program-transform- \
381 | --program-transform | --program-transfor \
382 | --program-transfo | --program-transf \
383 | --program-trans | --program-tran \
384 | --progr-tra | --program-tr | --program-t)
385 ac_prev=program_transform_name ;;
386 -program-transform-name=* | --program-transform-name=* \
387 | --program-transform-nam=* | --program-transform-na=* \
388 | --program-transform-n=* | --program-transform-=* \
389 | --program-transform=* | --program-transfor=* \
390 | --program-transfo=* | --program-transf=* \
391 | --program-trans=* | --program-tran=* \
392 | --progr-tra=* | --program-tr=* | --program-t=*)
393 program_transform_name=$ac_optarg ;;
394
395 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
396 | -silent | --silent | --silen | --sile | --sil)
397 silent=yes ;;
398
399 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
400 ac_prev=sbindir ;;
401 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
402 | --sbi=* | --sb=*)
403 sbindir=$ac_optarg ;;
404
405 -sharedstatedir | --sharedstatedir | --sharedstatedi \
406 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
407 | --sharedst | --shareds | --shared | --share | --shar \
408 | --sha | --sh)
409 ac_prev=sharedstatedir ;;
410 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
411 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
412 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
413 | --sha=* | --sh=*)
414 sharedstatedir=$ac_optarg ;;
415
416 -site | --site | --sit)
417 ac_prev=site ;;
418 -site=* | --site=* | --sit=*)
419 site=$ac_optarg ;;
420
421 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
422 ac_prev=srcdir ;;
423 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
424 srcdir=$ac_optarg ;;
425
426 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
427 | --syscon | --sysco | --sysc | --sys | --sy)
428 ac_prev=sysconfdir ;;
429 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
430 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
431 sysconfdir=$ac_optarg ;;
432
433 -target | --target | --targe | --targ | --tar | --ta | --t)
434 ac_prev=target_alias ;;
435 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
436 target_alias=$ac_optarg ;;
437
438 -v | -verbose | --verbose | --verbos | --verbo | --verb)
439 verbose=yes ;;
440
441 -version | --version | --versio | --versi | --vers | -V)
442 ac_init_version=: ;;
443
444 -with-* | --with-*)
445 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
446 # Reject names that are not valid shell variable names.
447 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
448 { echo "$as_me: error: invalid package name: $ac_package" >&2
449 { (exit 1); exit 1; }; }
450 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
451 case "$ac_option" in
452 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
453 *) ac_optarg=yes ;;
454 esac
455 eval "with_$ac_package='$ac_optarg'" ;;
456
457 -without-* | --without-*)
458 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
459 # Reject names that are not valid shell variable names.
460 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
461 { echo "$as_me: error: invalid package name: $ac_package" >&2
462 { (exit 1); exit 1; }; }
463 ac_package=`echo "$ac_package" | sed 's/-/_/g'`
464 eval "with_$ac_package=no" ;;
465
466 --x)
467 # Obsolete; use --with-x.
468 with_x=yes ;;
469
470 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
471 | --x-incl | --x-inc | --x-in | --x-i)
472 ac_prev=x_includes ;;
473 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
474 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
475 x_includes=$ac_optarg ;;
476
477 -x-libraries | --x-libraries | --x-librarie | --x-librari \
478 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
479 ac_prev=x_libraries ;;
480 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
481 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
482 x_libraries=$ac_optarg ;;
483
484 -*) { echo "$as_me: error: unrecognized option: $ac_option
485 Try \`$0 --help' for more information." >&2
486 { (exit 1); exit 1; }; }
487 ;;
488
489 *=*)
490 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
491 # Reject names that are not valid shell variable names.
492 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
493 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
494 { (exit 1); exit 1; }; }
495 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
496 eval "$ac_envvar='$ac_optarg'"
497 export "$ac_envvar" ;;
498
499 *)
500 # FIXME: should be removed in autoconf 3.0.
501 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
502 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
503 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
504 : "${build_alias=$ac_option}" "${host_alias=$ac_option}" "${target_alias=$ac_option}"
505 ;;
506
507 esac
508 done
509
510 if test -n "$ac_prev"; then
511 ac_option=--`echo "$ac_prev" | sed 's/_/-/g'`
512 { echo "$as_me: error: missing argument to $ac_option" >&2
513 { (exit 1); exit 1; }; }
514 fi
515
516 # Be sure to have absolute paths.
517 for ac_var in exec_prefix prefix
518 do
519 eval ac_val=$`echo "$ac_var"`
520 case "$ac_val" in
521 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
522 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
523 { (exit 1); exit 1; }; };;
524 esac
525 done
526
527 # Be sure to have absolute paths.
528 for ac_var in bindir sbindir libexecdir datarootdir datadir sysconfdir sharedstatedir \
529 localstatedir libdir includedir oldincludedir infodir mandir
530 do
531 eval ac_val=$`echo "$ac_var"`
532 case "$ac_val" in
533 [\\/$]* | ?:[\\/]* ) ;;
534 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
535 { (exit 1); exit 1; }; };;
536 esac
537 done
538
539 # There might be people who depend on the old broken behavior: `$host'
540 # used to hold the argument of --host etc.
541 build=$build_alias
542 host=$host_alias
543 target=$target_alias
544
545 # FIXME: should be removed in autoconf 3.0.
546 if test "x$host_alias" != x; then
547 if test "x$build_alias" = x; then
548 cross_compiling=maybe
549 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
550 If a cross compiler is detected then cross compile mode will be used." >&2
551 elif test "x$build_alias" != "x$host_alias"; then
552 cross_compiling=yes
553 fi
554 fi
555
556 ac_tool_prefix=
557 test -n "$host_alias" && ac_tool_prefix=$host_alias-
558
559 test "$silent" = yes && exec 6>/dev/null
560
561 # Find the source files, if location was not specified.
562 if test -z "$srcdir"; then
563 ac_srcdir_defaulted=yes
564 # Try the directory containing this script, then its parent.
565 ac_prog=$0
566 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
567 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
568 srcdir=$ac_confdir
569 if test ! -r "$srcdir/$ac_unique_file"; then
570 srcdir=..
571 fi
572 else
573 ac_srcdir_defaulted=no
574 fi
575 if test ! -r "$srcdir/$ac_unique_file"; then
576 if test "$ac_srcdir_defaulted" = yes; then
577 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
578 { (exit 1); exit 1; }; }
579 else
580 { echo "$as_me: error: cannot find sources in $srcdir" >&2
581 { (exit 1); exit 1; }; }
582 fi
583 fi
584 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
585 ac_env_build_alias_set=${build_alias+set}
586 ac_env_build_alias_value=$build_alias
587 ac_cv_env_build_alias_set=${build_alias+set}
588 ac_cv_env_build_alias_value=$build_alias
589 ac_env_host_alias_set=${host_alias+set}
590 ac_env_host_alias_value=$host_alias
591 ac_cv_env_host_alias_set=${host_alias+set}
592 ac_cv_env_host_alias_value=$host_alias
593 ac_env_target_alias_set=${target_alias+set}
594 ac_env_target_alias_value=$target_alias
595 ac_cv_env_target_alias_set=${target_alias+set}
596 ac_cv_env_target_alias_value=$target_alias
597 ac_env_CC_set=${CC+set}
598 ac_env_CC_value=$CC
599 ac_cv_env_CC_set=${CC+set}
600 ac_cv_env_CC_value=$CC
601 ac_env_CFLAGS_set=${CFLAGS+set}
602 ac_env_CFLAGS_value=$CFLAGS
603 ac_cv_env_CFLAGS_set=${CFLAGS+set}
604 ac_cv_env_CFLAGS_value=$CFLAGS
605 ac_env_LDFLAGS_set=${LDFLAGS+set}
606 ac_env_LDFLAGS_value=$LDFLAGS
607 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
608 ac_cv_env_LDFLAGS_value=$LDFLAGS
609 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
610 ac_env_CPPFLAGS_value=$CPPFLAGS
611 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
612 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
613 ac_env_CPP_set=${CPP+set}
614 ac_env_CPP_value=$CPP
615 ac_cv_env_CPP_set=${CPP+set}
616 ac_cv_env_CPP_value=$CPP
617
618 #
619 # Report the --help message.
620 #
621 if test "$ac_init_help" = "long"; then
622 # Omit some internal or obsolete options to make the list less imposing.
623 # This message is too long to be a string in the A/UX 3.1 sh.
624 cat <<EOF
625 \`configure' configures this package to adapt to many kinds of systems.
626
627 Usage: $0 [OPTION]... [VAR=VALUE]...
628
629 To assign environment variables (e.g., CC, CFLAGS...), specify them as
630 VAR=VALUE. See below for descriptions of some of the useful variables.
631
632 Defaults for the options are specified in brackets.
633
634 Configuration:
635 -h, --help display this help and exit
636 --help=short display options specific to this package
637 --help=recursive display the short help of all the included packages
638 -V, --version display version information and exit
639 -q, --quiet, --silent do not print \`checking...' messages
640 --cache-file=FILE cache test results in FILE [disabled]
641 -C, --config-cache alias for \`--cache-file=config.cache'
642 -n, --no-create do not create output files
643 --srcdir=DIR find the sources in DIR [configure dir or \`..']
644
645 EOF
646
647 cat <<EOF
648 Installation directories:
649 --prefix=PREFIX install architecture-independent files in PREFIX
650 [$ac_default_prefix]
651 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
652 [PREFIX]
653
654 By default, \`make install' will install all the files in
655 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
656 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
657 for instance \`--prefix=\$HOME'.
658
659 For better control, use the options below.
660
661 Fine tuning of the installation directories:
662 --bindir=DIR user executables [EPREFIX/bin]
663 --sbindir=DIR system admin executables [EPREFIX/sbin]
664 --libexecdir=DIR program executables [EPREFIX/libexec]
665 --datarootdir=DIR read-only architecture-independent data [PREFIX/share]
666 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
667 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
668 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
669 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
670 --runstatedir=DIR extra definition of runtime data [LOCALSTATEDIR/run]
671 --libdir=DIR object code libraries [EPREFIX/lib]
672 --includedir=DIR C header files [PREFIX/include]
673 --oldincludedir=DIR C header files for non-gcc [/usr/include]
674 --infodir=DIR info documentation [DATAROOTDIR/info]
675 --mandir=DIR man documentation [DATAROOTDIR/man]
676 EOF
677
678 cat <<\EOF
679
680 Program names:
681 --program-prefix=PREFIX prepend PREFIX to installed program names
682 --program-suffix=SUFFIX append SUFFIX to installed program names
683 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
684
685 X features:
686 --x-includes=DIR X include files are in DIR
687 --x-libraries=DIR X library files are in DIR
688
689 System types:
690 --build=BUILD configure for building on BUILD [guessed]
691 --host=HOST build programs to run on HOST [BUILD]
692 EOF
693 fi
694
695 if test -n "$ac_init_help"; then
696
697 cat <<\EOF
698
699 Optional Packages:
700 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
701 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
702
703 Optional Features:
704 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
705 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
706
707 --with-install-prefix prefixes actual install location (default: /)
708 --with-build-cc=XXX the build C compiler ($BUILD_CC)
709 --with-build-cpp=XXX the build C preprocessor ($BUILD_CPP)
710 --with-build-cflags=XXX the build C compiler-flags ($BUILD_CFLAGS)
711 --with-build-cppflags=XXX the build C preprocessor-flags ($BUILD_CPPFLAGS)
712 --with-build-ldflags=XXX the build linker-flags ($BUILD_LDFLAGS)
713 --with-build-libs=XXX the build libraries (${BUILD_LIBS})
714 --disable-heapsort disable heapsort() as alternative to qsort
715 --with-ispell (default: from system path)
716 --with-metamail (default: from system path)
717 --with-sum (default: from system path)
718 --with-editor=PROG specify editor (default: vi)
719 --with-mailer=PROG specify default mailer-program (default: mailx)
720 --with-mailbox=DIR directory for incoming mailboxes (default: empty)
721 --with-pkg-config{=path} enable/disable use of pkg-config
722 --disable-pgp-gpg disable PGP/GPG Support
723 --with-pgp (default: from system path)
724 --with-pgpk (default: from system path)
725 --with-gpg (default: from system path)
726 --with-slrnface (default: from system path)
727 --with-shell=PROG default $SHELL program (default: sh)
728 --disable-nntp disable reading via NNTP
729 --enable-nntp-only enable reading via NNTP only
730 --enable-debug turn on debug support
731 --disable-echo do not display "compiling" commands
732 --enable-prototypes check for optional prototypes
733 --enable-warnings turn on GCC compiler warnings
734 --with-x use the X Window System
735 --with-libdir=PATH news-library (default: /usr/lib/news)
736 --with-spooldir=PATH news spool-directory (default: /var/spool/news)
737 --with-nov-dir=PATH news overview-directory (default: $SPOOLDIR)
738 --with-nov-fname specify names of overview files (default: .overview)
739 --with-inews-dir=PATH directory containing "inews" (default: $INEWSPATH)
740 --with-socks=path link with socks library if available
741 --with-socks5=path link with socks5 library if available
742 --disable-fcntl disable fcntl() locking
743 --enable-lockf enable lockf() locking
744 --enable-flock enable flock() locking
745 --with-screen=xxx specify screen type, which must be one of:
746 termcap, terminfo, curses, ncurses, ncursesw, or
747 pdcurses (replaces options --enable-curses and
748 --with-ncurses)
749 --with-curses-dir=DIR directory in which (n)curses is installed
750 --with-ncurses link with ncurses if available (deprecated)
751 --enable-curses use curses interface (deprecated)
752 --with-pcre=PATH use installed pcre versus bundled
753 --with-pcre2-config=PATH use pcre2 in favour of pcre
754 --with-dbmalloc test: use Conor Cahill's dbmalloc library
755 --with-dmalloc test: use Gray Watson's dmalloc library
756 --with-trace use debugging/traces for screen output
757 --with-domain-name sets $DOMAIN_NAME (default: empty)
758 --with-nntp-default-server
759 (sets NNTP_DEFAULT_SERVER)
760 (default: news.$DOMAIN_NAME)
761 --enable-mh-mail-handling
762 use MH style mail handling for mailgroups
763 --enable-cancel-locks enable creation of Cancel-Locks
764 --with-cancel-locks=PATH use installed canlock versus bundled
765 --disable-gsasl don't use GNU SASL
766 --disable-8bit-keys disable 8-bit keycode support
767 --disable-color disable ANSI-color support
768 --disable-etiquette disable printing of posting-etiquette
769 --disable-break-long-lines
770 don't break long mime-encoded lines
771 --disable-mime-strict-charset
772 force MM_CHARSET obeyance
773 --with-mime-default-charset=CHARSET
774 fallback for $MM_CHARSET (default: US-ASCII)
775 --with-iso-to-ascii ISO -> ASCII conversion (default: -1)
776 --disable-locale disable locale support
777 --disable-posting disable posting
778 --disable-shell-escape disable shell escape
779 --enable-fascist-newsadmin
780 have fascist newsadmin
781 --disable-inverse-video disable inverse video and highlighting
782 --disable-piping disable piping support
783 --disable-printing disable printer support
784 --disable-append-pid disable appending .pid to tmp-files
785 --disable-xhdr-xref disable XHDR XREF fallback
786 --enable-broken-listgroup-fix
787 send extra GROUP command before LISTGROUP
788 --enable-broken-system-fix
789 ignore system()s return value
790 --with-defaults-dir=PATH
791 directory containing tin.defaults file
792 (default: /etc/tin)
793 --disable-ipv6 disable IPv6 support (default: enabled)
794 --enable-long-article-numbers
795 enable long article numbers (default: disabled)
796 --with-nntps=ssl enable NNTPS, needs LibreSSL, OpenSSL or GnuTLS
797 possible values: libtls, openssl, gnutls
798 --with-coffee coffee support
799 --with-libiconv-prefix=DIR
800 search for libiconv in DIR/include and DIR/lib
801 --disable-nls do not use Native Language Support
802 --with-included-gettext use the GNU gettext library included here
803 --with-textdomain=PKG NLS text-domain (default is package name)
804 --disable-included-msgs use included messages, for i18n support
805 --with-Xaw3d link with Xaw 3d library
806 --with-Xaw3dxft link with Xaw 3d xft library
807 --with-neXtaw link with neXT Athena library
808 --with-XawPlus link with Athena-Plus library
809
810 Some influential environment variables:
811 CC C compiler command
812 CFLAGS C compiler flags
813 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
814 nonstandard directory <lib dir>
815 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
816 headers in a nonstandard directory <include dir>
817 CPP C preprocessor
818
819 Use these variables to override the choices made by `configure' or to help
820 it to find libraries and programs with nonstandard names/locations.
821
822 EOF
823 fi
824
825 if test "$ac_init_help" = "recursive"; then
826 # If there are subdirs, report their specific --help.
827 ac_popdir=`pwd`
828 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
829 cd "$ac_subdir"
830 # A "../" for each directory in /$ac_subdir.
831 ac_dots=`echo "$ac_subdir" |
832 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
833
834 case "$srcdir" in
835 .) # No --srcdir option. We are building in place.
836 ac_sub_srcdir="$srcdir" ;;
837 [\\/]* | ?:[\\/]* ) # Absolute path.
838 ac_sub_srcdir="$srcdir/$ac_subdir" ;;
839 *) # Relative path.
840 ac_sub_srcdir="$ac_dots$srcdir/$ac_subdir" ;;
841 esac
842
843 # Check for guested configure; otherwise get Cygnus style configure.
844 if test -f "$ac_sub_srcdir/configure.gnu"; then
845 echo
846 $SHELL "$ac_sub_srcdir/configure.gnu" --help=recursive
847 elif test -f "$ac_sub_srcdir/configure"; then
848 echo
849 $SHELL "$ac_sub_srcdir/configure" --help=recursive
850 elif test -f "$ac_sub_srcdir/configure.ac" ||
851 test -f "$ac_sub_srcdir/configure.in"; then
852 echo
853 "$ac_configure" --help
854 else
855 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
856 fi
857 cd "$ac_popdir"
858 done
859 fi
860
861 test -n "$ac_init_help" && exit 0
862 if "$ac_init_version"; then
863 cat <<\EOF
864
865 Copyright 2003-2021,2022 Thomas E. Dickey
866 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
867 Free Software Foundation, Inc.
868 This configure script is free software; the Free Software Foundation
869 gives unlimited permission to copy, distribute and modify it.
870 EOF
871 exit 0
872 fi
873 exec 5>config.log
874 cat >&5 <<EOF
875 This file contains any messages produced by compilers while
876 running configure, to aid debugging if configure makes a mistake.
877
878 It was created by $as_me, which was
879 generated by GNU Autoconf 2.52.20221009. Invocation command line was
880
881 $ $0 $@
882
883 EOF
884 {
885 cat <<_ASUNAME
886 ## ---------- ##
887 ## Platform. ##
888 ## ---------- ##
889
890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
895
896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
898
899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
902 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
906
907 PATH = $PATH
908
909 _ASUNAME
910 } >&5
911
912 cat >&5 <<EOF
913 ## ------------ ##
914 ## Core tests. ##
915 ## ------------ ##
916
917 EOF
918
919 # Keep a trace of the command line.
920 # Strip out --no-create and --no-recursion so they do not pile up.
921 # Also quote any args containing shell meta-characters.
922 ac_configure_args=
923 ac_sep=
924 for ac_arg
925 do
926 case "$ac_arg" in
927 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
928 | --no-cr | --no-c) ;;
929 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
930 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
931 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
932 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
933 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
934 ac_sep=" " ;;
935 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
936 ac_sep=" " ;;
937 esac
938 # Get rid of the leading space.
939 done
940
941 # When interrupted or exit'd, cleanup temporary files, and complete
942 # config.log. We remove comments because anyway the quotes in there
943 # would cause problems or look ugly.
944 trap 'exit_status=$?
945 # Save into config.log some information that might help in debugging.
946 echo >&5
947 echo "## ----------------- ##" >&5
948 echo "## Cache variables. ##" >&5
949 echo "## ----------------- ##" >&5
950 echo >&5
951 # The following way of writing the cache mishandles newlines in values,
952 {
953 (set) 2>&1 |
954 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
955 *ac_space=\ *)
956 sed -n \
957 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
958 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
959 ;;
960 *)
961 sed -n \
962 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
963 ;;
964 esac;
965 } >&5
966 sed "/^$/d" confdefs.h >conftest.log
967 if test -s conftest.log; then
968 echo >&5
969 echo "## ------------ ##" >&5
970 echo "## confdefs.h. ##" >&5
971 echo "## ------------ ##" >&5
972 echo >&5
973 cat conftest.log >&5
974 fi
975 (echo; echo) >&5
976 test "$ac_signal" != 0 &&
977 echo "$as_me: caught signal $ac_signal" >&5
978 echo "$as_me: exit $exit_status" >&5
979 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
980 exit $exit_status
981 ' 0
982 for ac_signal in 1 2 13 15; do
983 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' "$ac_signal"
984 done
985 ac_signal=0
986
987 # confdefs.h avoids OS command line length limits that DEFS can exceed.
988 rm -rf conftest* confdefs.h
989 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
990 echo >confdefs.h
991
992 # Let the site file select an alternate cache file if it wants to.
993 # Prefer explicitly selected file to automatically selected ones.
994 if test -z "$CONFIG_SITE"; then
995 if test "x$prefix" != xNONE; then
996 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
997 else
998 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
999 fi
1000 fi
1001 for ac_site_file in $CONFIG_SITE; do
1002 if test -r "$ac_site_file"; then
1003 { echo "$as_me:1003: loading site script $ac_site_file" >&5
1004 echo "$as_me: loading site script $ac_site_file" >&6;}
1005 cat "$ac_site_file" >&5
1006 . "$ac_site_file"
1007 fi
1008 done
1009
1010 if test -r "$cache_file"; then
1011 # Some versions of bash will fail to source /dev/null (special
1012 # files actually), so we avoid doing that.
1013 if test -f "$cache_file"; then
1014 { echo "$as_me:1014: loading cache $cache_file" >&5
1015 echo "$as_me: loading cache $cache_file" >&6;}
1016 case $cache_file in
1017 [\\/]* | ?:[\\/]* ) . $cache_file;;
1018 *) . ./$cache_file;;
1019 esac
1020 fi
1021 else
1022 { echo "$as_me:1022: creating cache $cache_file" >&5
1023 echo "$as_me: creating cache $cache_file" >&6;}
1024 >$cache_file
1025 fi
1026
1027 # Check that the precious variables saved in the cache have kept the same
1028 # value.
1029 ac_cache_corrupted=false
1030 for ac_var in `(set) 2>&1 |
1031 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1032 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1033 eval ac_new_set=\$ac_env_${ac_var}_set
1034 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1035 eval ac_new_val="\$ac_env_${ac_var}_value"
1036 case "$ac_old_set,$ac_new_set" in
1037 set,)
1038 { echo "$as_me:1038: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1039 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1040 ac_cache_corrupted=: ;;
1041 ,set)
1042 { echo "$as_me:1042: error: \`$ac_var' was not set in the previous run" >&5
1043 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1044 ac_cache_corrupted=: ;;
1045 ,);;
1046 *)
1047 if test "x$ac_old_val" != "x$ac_new_val"; then
1048 { echo "$as_me:1048: error: \`$ac_var' has changed since the previous run:" >&5
1049 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1050 { echo "$as_me:1050: former value: $ac_old_val" >&5
1051 echo "$as_me: former value: $ac_old_val" >&2;}
1052 { echo "$as_me:1052: current value: $ac_new_val" >&5
1053 echo "$as_me: current value: $ac_new_val" >&2;}
1054 ac_cache_corrupted=:
1055 fi;;
1056 esac
1057 # Pass precious variables to config.status. It doesn't matter if
1058 # we pass some twice (in addition to the command line arguments).
1059 if test "$ac_new_set" = set; then
1060 case "$ac_new_val" in
1061 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1062 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1063 ac_configure_args="$ac_configure_args '$ac_arg'"
1064 ;;
1065 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1066 ;;
1067 esac
1068 fi
1069 done
1070 if "$ac_cache_corrupted"; then
1071 { echo "$as_me:1071: error: changes in the environment can compromise the build" >&5
1072 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1073 { { echo "$as_me:1073: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1074 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1075 { (exit 1); exit 1; }; }
1076 fi
1077
1078 ac_ext=c
1079 ac_cpp='$CPP $CPPFLAGS'
1080 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1081 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1083 ac_main_return="return"
1084
1085 case `echo "testing\c" 2>/dev/null; echo 1,2,3`,`echo -n testing 2>/dev/null; echo 1,2,3` in
1086 *c*,-n*) ECHO_N=
1087 ECHO_C= # newlines do not sed ;-) only broken shells would use this case anyway
1088 ECHO_T=' '
1089 ;;
1090 *c*,* ) ECHO_N=-n
1091 ECHO_C=
1092 ECHO_T=
1093 ;;
1094 *) ECHO_N=
1095 ECHO_C='\c'
1096 ECHO_T=
1097 ;;
1098 esac
1099 echo "#! $SHELL" >conftest.sh
1100 echo "exit 0" >>conftest.sh
1101 chmod +x conftest.sh
1102 if { (echo "$as_me:1102: PATH=\".;.\"; conftest.sh") >&5
1103 (PATH=".;."; conftest.sh) 2>&5
1104 ac_status=$?
1105 echo "$as_me:1105: \$? = $ac_status" >&5
1106 (exit "$ac_status"); }; then
1107 ac_path_separator=';'
1108 else
1109 ac_path_separator=:
1110 fi
1111 PATH_SEPARATOR="$ac_path_separator"
1112 rm -f conftest.sh
1113
1114 ac_config_headers="$ac_config_headers include/autoconf.h:include/autoconf.hin"
1115
1116 PACKAGE=tin
1117 VERSION=2.6.2
1118
1119 cat >>confdefs.h <<EOF
1120 #define PACKAGE "$PACKAGE"
1121 EOF
1122
1123 cat >>confdefs.h <<EOF
1124 #define VERSION "$VERSION"
1125 EOF
1126
1127 EXTRAO_DEP='#'
1128
1129 ac_aux_dir=
1130 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1131 if test -f "$ac_dir/install-sh"; then
1132 ac_aux_dir=$ac_dir
1133 ac_install_sh="$ac_aux_dir/install-sh -c"
1134 break
1135 elif test -f "$ac_dir/install.sh"; then
1136 ac_aux_dir=$ac_dir
1137 ac_install_sh="$ac_aux_dir/install.sh -c"
1138 break
1139 elif test -f "$ac_dir/shtool"; then
1140 ac_aux_dir=$ac_dir
1141 ac_install_sh="$ac_aux_dir/shtool install -c"
1142 break
1143 fi
1144 done
1145 if test -z "$ac_aux_dir"; then
1146 { { echo "$as_me:1146: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1147 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1148 { (exit 1); exit 1; }; }
1149 fi
1150 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1151 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1152 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1153
1154 # Make sure we can run config.sub.
1155 $ac_config_sub sun4 >/dev/null 2>&1 ||
1156 { { echo "$as_me:1156: error: cannot run $ac_config_sub" >&5
1157 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1158 { (exit 1); exit 1; }; }
1159
1160 echo "$as_me:1160: checking build system type" >&5
1161 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1162 if test "${ac_cv_build+set}" = set; then
1163 echo $ECHO_N "(cached) $ECHO_C" >&6
1164 else
1165 ac_cv_build_alias=$build_alias
1166 test -z "$ac_cv_build_alias" &&
1167 ac_cv_build_alias=`$ac_config_guess`
1168 test -z "$ac_cv_build_alias" &&
1169 { { echo "$as_me:1169: error: cannot guess build type; you must specify one" >&5
1170 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1171 { (exit 1); exit 1; }; }
1172 ac_cv_build=`$ac_config_sub "$ac_cv_build_alias"` ||
1173 { { echo "$as_me:1173: error: $ac_config_sub $ac_cv_build_alias failed." >&5
1174 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
1175 { (exit 1); exit 1; }; }
1176
1177 fi
1178 echo "$as_me:1178: result: $ac_cv_build" >&5
1179 echo "${ECHO_T}$ac_cv_build" >&6
1180 build=$ac_cv_build
1181 build_cpu=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1182 build_vendor=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1183 build_os=`echo "$ac_cv_build" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1184
1185 if test -f "$srcdir/config.guess" || test -f "$ac_aux_dir/config.guess" ; then
1186 echo "$as_me:1186: checking host system type" >&5
1187 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1188 if test "${ac_cv_host+set}" = set; then
1189 echo $ECHO_N "(cached) $ECHO_C" >&6
1190 else
1191 ac_cv_host_alias=$host_alias
1192 test -z "$ac_cv_host_alias" &&
1193 ac_cv_host_alias=$ac_cv_build_alias
1194 ac_cv_host=`$ac_config_sub "$ac_cv_host_alias"` ||
1195 { { echo "$as_me:1195: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1196 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1197 { (exit 1); exit 1; }; }
1198
1199 fi
1200 echo "$as_me:1200: result: $ac_cv_host" >&5
1201 echo "${ECHO_T}$ac_cv_host" >&6
1202 host=$ac_cv_host
1203 host_cpu=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1204 host_vendor=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1205 host_os=`echo "$ac_cv_host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1206
1207 system_name="$host_os"
1208 else
1209 system_name="`(uname -s -r) 2>/dev/null`"
1210 if test -z "$system_name" ; then
1211 system_name="`(hostname) 2>/dev/null`"
1212 fi
1213 fi
1214 test -n "$system_name" &&
1215 cat >>confdefs.h <<EOF
1216 #define SYSTEM_NAME "$system_name"
1217 EOF
1218
1219 if test "${cf_cv_system_name+set}" = set; then
1220 echo $ECHO_N "(cached) $ECHO_C" >&6
1221 else
1222 cf_cv_system_name="$system_name"
1223 fi
1224
1225 test -z "$system_name" && system_name="$cf_cv_system_name"
1226 test -n "$cf_cv_system_name" && echo "$as_me:1226: result: Configuring for $cf_cv_system_name" >&5
1227 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
1228
1229 if test ".$system_name" != ".$cf_cv_system_name" ; then
1230 echo "$as_me:1230: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
1231 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
1232 { { echo "$as_me:1232: error: \"Please remove config.cache and try again.\"" >&5
1233 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
1234 { (exit 1); exit 1; }; }
1235 fi
1236
1237 echo "$as_me:1237: checking for PATH separator" >&5
1238 echo $ECHO_N "checking for PATH separator... $ECHO_C" >&6
1239 case "$cf_cv_system_name" in
1240 os2*) PATH_SEPARATOR=';' ;;
1241 *) ${PATH_SEPARATOR:=':'} ;;
1242 esac
1243
1244 echo "$as_me:1244: result: $PATH_SEPARATOR" >&5
1245 echo "${ECHO_T}$PATH_SEPARATOR" >&6
1246
1247 # Check whether --with-install-prefix or --without-install-prefix was given.
1248 if test "${with_install_prefix+set}" = set; then
1249 withval="$with_install_prefix"
1250
1251 else
1252 withval="${DESTDIR:-/}"
1253 fi; if true ; then
1254
1255 if test "x$prefix" != xNONE; then
1256 cf_path_syntax="$prefix"
1257 else
1258 cf_path_syntax="$ac_default_prefix"
1259 fi
1260
1261 case ".$withval" in
1262 .\$\(*\)*|.\'*\'*)
1263 ;;
1264 ..|./*|.\\*)
1265 ;;
1266 .[a-zA-Z]:[\\/]*) # OS/2 EMX
1267 ;;
1268 .\$\{*prefix\}*|.\$\{*dir\}*)
1269 eval withval="$withval"
1270 case ".$withval" in
1271 .NONE/*)
1272 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
1273 ;;
1274 esac
1275 ;;
1276 .no|.NONE/*)
1277 withval=`echo "$withval" | sed -e s%NONE%$cf_path_syntax%`
1278 ;;
1279 *)
1280 { { echo "$as_me:1280: error: expected a pathname, not \"$withval\"" >&5
1281 echo "$as_me: error: expected a pathname, not \"$withval\"" >&2;}
1282 { (exit 1); exit 1; }; }
1283 ;;
1284 esac
1285
1286 fi
1287 eval DESTDIR="$withval"
1288
1289 case ".$DESTDIR" in # (vi
1290 ./) DESTDIR=
1291 ;; # (vi
1292 ./*/) ;; # (vi
1293 ./*) DESTDIR="$DESTDIR/"
1294 ;;
1295 esac
1296
1297 test "$program_prefix" != NONE &&
1298 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1299 # Use a double $ so make ignores it.
1300 test "$program_suffix" != NONE &&
1301 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1302 # Double any \ or $. echo might interpret backslashes.
1303 # By default was `s,x,x', remove it if useless.
1304 cat <<\_ACEOF >conftest.sed
1305 s/[\\$]/&&/g;s/;s,x,x,$//
1306 _ACEOF
1307 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1308 rm conftest.sed
1309
1310 ### Compiler/options that autoconf doesn't get right
1311 case "$host_os" in
1312 aix*) #(vi
1313 if test "$CC" = ""; then
1314 # Extract the first word of "xlc", so it can be a program name with args.
1315 set dummy xlc; ac_word=$2
1316 echo "$as_me:1316: checking for $ac_word" >&5
1317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1318 if test "${ac_cv_path_XLC+set}" = set; then
1319 echo $ECHO_N "(cached) $ECHO_C" >&6
1320 else
1321 case $XLC in
1322 [\\/]* | ?:[\\/]*)
1323 ac_cv_path_XLC="$XLC" # Let the user override the test with a path.
1324 ;;
1325 *)
1326 ac_save_IFS=$IFS; IFS=$ac_path_separator
1327 ac_dummy="$PATH"
1328 for ac_dir in $ac_dummy; do
1329 IFS=$ac_save_IFS
1330 test -z "$ac_dir" && ac_dir=.
1331 if $as_executable_p "$ac_dir/$ac_word"; then
1332 ac_cv_path_XLC="$ac_dir/$ac_word"
1333 echo "$as_me:1333: found $ac_dir/$ac_word" >&5
1334 break
1335 fi
1336 done
1337
1338 ;;
1339 esac
1340 fi
1341 XLC=$ac_cv_path_XLC
1342
1343 if test -n "$XLC"; then
1344 echo "$as_me:1344: result: $XLC" >&5
1345 echo "${ECHO_T}$XLC" >&6
1346 else
1347 echo "$as_me:1347: result: no" >&5
1348 echo "${ECHO_T}no" >&6
1349 fi
1350
1351 if test "$ac_cv_path_XLC" != ""; then
1352 CC="$ac_cv_path_XLC"
1353 fi
1354 fi
1355 ;;
1356 hpux*) #(vi
1357 test "$CC" != "cc" && test -z "$CFLAGS" && CFLAGS="-O"
1358 ;;
1359 esac
1360
1361 ### Native Language Support
1362 ALL_LINGUAS="da de en_GB es et fr ru sv tr zh_CN zh_TW"
1363
1364 ### Checks for programs
1365 save_CFLAGS="$CFLAGS"
1366
1367 ac_ext=c
1368 ac_cpp='$CPP $CPPFLAGS'
1369 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
1370 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
1371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1372 ac_main_return="return"
1373 if test -n "$ac_tool_prefix"; then
1374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1376 echo "$as_me:1376: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_CC+set}" = set; then
1379 echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381 if test -n "$CC"; then
1382 ac_cv_prog_CC="$CC" # Let the user override the test.
1383 else
1384 ac_save_IFS=$IFS; IFS=$ac_path_separator
1385 ac_dummy="$PATH"
1386 for ac_dir in $ac_dummy; do
1387 IFS=$ac_save_IFS
1388 test -z "$ac_dir" && ac_dir=.
1389 $as_executable_p "$ac_dir/$ac_word" || continue
1390 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1391 echo "$as_me:1391: found $ac_dir/$ac_word" >&5
1392 break
1393 done
1394
1395 fi
1396 fi
1397 CC=$ac_cv_prog_CC
1398 if test -n "$CC"; then
1399 echo "$as_me:1399: result: $CC" >&5
1400 echo "${ECHO_T}$CC" >&6
1401 else
1402 echo "$as_me:1402: result: no" >&5
1403 echo "${ECHO_T}no" >&6
1404 fi
1405
1406 fi
1407 if test -z "$ac_cv_prog_CC"; then
1408 ac_ct_CC=$CC
1409 # Extract the first word of "gcc", so it can be a program name with args.
1410 set dummy gcc; ac_word=$2
1411 echo "$as_me:1411: checking for $ac_word" >&5
1412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1413 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1414 echo $ECHO_N "(cached) $ECHO_C" >&6
1415 else
1416 if test -n "$ac_ct_CC"; then
1417 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1418 else
1419 ac_save_IFS=$IFS; IFS=$ac_path_separator
1420 ac_dummy="$PATH"
1421 for ac_dir in $ac_dummy; do
1422 IFS=$ac_save_IFS
1423 test -z "$ac_dir" && ac_dir=.
1424 $as_executable_p "$ac_dir/$ac_word" || continue
1425 ac_cv_prog_ac_ct_CC="gcc"
1426 echo "$as_me:1426: found $ac_dir/$ac_word" >&5
1427 break
1428 done
1429
1430 fi
1431 fi
1432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1433 if test -n "$ac_ct_CC"; then
1434 echo "$as_me:1434: result: $ac_ct_CC" >&5
1435 echo "${ECHO_T}$ac_ct_CC" >&6
1436 else
1437 echo "$as_me:1437: result: no" >&5
1438 echo "${ECHO_T}no" >&6
1439 fi
1440
1441 CC=$ac_ct_CC
1442 else
1443 CC="$ac_cv_prog_CC"
1444 fi
1445
1446 if test -z "$CC"; then
1447 if test -n "$ac_tool_prefix"; then
1448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1449 set dummy ${ac_tool_prefix}cc; ac_word=$2
1450 echo "$as_me:1450: checking for $ac_word" >&5
1451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1452 if test "${ac_cv_prog_CC+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454 else
1455 if test -n "$CC"; then
1456 ac_cv_prog_CC="$CC" # Let the user override the test.
1457 else
1458 ac_save_IFS=$IFS; IFS=$ac_path_separator
1459 ac_dummy="$PATH"
1460 for ac_dir in $ac_dummy; do
1461 IFS=$ac_save_IFS
1462 test -z "$ac_dir" && ac_dir=.
1463 $as_executable_p "$ac_dir/$ac_word" || continue
1464 ac_cv_prog_CC="${ac_tool_prefix}cc"
1465 echo "$as_me:1465: found $ac_dir/$ac_word" >&5
1466 break
1467 done
1468
1469 fi
1470 fi
1471 CC=$ac_cv_prog_CC
1472 if test -n "$CC"; then
1473 echo "$as_me:1473: result: $CC" >&5
1474 echo "${ECHO_T}$CC" >&6
1475 else
1476 echo "$as_me:1476: result: no" >&5
1477 echo "${ECHO_T}no" >&6
1478 fi
1479
1480 fi
1481 if test -z "$ac_cv_prog_CC"; then
1482 ac_ct_CC=$CC
1483 # Extract the first word of "cc", so it can be a program name with args.
1484 set dummy cc; ac_word=$2
1485 echo "$as_me:1485: checking for $ac_word" >&5
1486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1487 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1488 echo $ECHO_N "(cached) $ECHO_C" >&6
1489 else
1490 if test -n "$ac_ct_CC"; then
1491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1492 else
1493 ac_save_IFS=$IFS; IFS=$ac_path_separator
1494 ac_dummy="$PATH"
1495 for ac_dir in $ac_dummy; do
1496 IFS=$ac_save_IFS
1497 test -z "$ac_dir" && ac_dir=.
1498 $as_executable_p "$ac_dir/$ac_word" || continue
1499 ac_cv_prog_ac_ct_CC="cc"
1500 echo "$as_me:1500: found $ac_dir/$ac_word" >&5
1501 break
1502 done
1503
1504 fi
1505 fi
1506 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1507 if test -n "$ac_ct_CC"; then
1508 echo "$as_me:1508: result: $ac_ct_CC" >&5
1509 echo "${ECHO_T}$ac_ct_CC" >&6
1510 else
1511 echo "$as_me:1511: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 CC=$ac_ct_CC
1516 else
1517 CC="$ac_cv_prog_CC"
1518 fi
1519
1520 fi
1521 if test -z "$CC"; then
1522 # Extract the first word of "cc", so it can be a program name with args.
1523 set dummy cc; ac_word=$2
1524 echo "$as_me:1524: checking for $ac_word" >&5
1525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1526 if test "${ac_cv_prog_CC+set}" = set; then
1527 echo $ECHO_N "(cached) $ECHO_C" >&6
1528 else
1529 if test -n "$CC"; then
1530 ac_cv_prog_CC="$CC" # Let the user override the test.
1531 else
1532 ac_prog_rejected=no
1533 ac_save_IFS=$IFS; IFS=$ac_path_separator
1534 ac_dummy="$PATH"
1535 for ac_dir in $ac_dummy; do
1536 IFS=$ac_save_IFS
1537 test -z "$ac_dir" && ac_dir=.
1538 $as_executable_p "$ac_dir/$ac_word" || continue
1539 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1540 ac_prog_rejected=yes
1541 continue
1542 fi
1543 ac_cv_prog_CC="cc"
1544 echo "$as_me:1544: found $ac_dir/$ac_word" >&5
1545 break
1546 done
1547
1548 if test "$ac_prog_rejected" = yes; then
1549 # We found a bogon in the path, so make sure we never use it.
1550 set dummy $ac_cv_prog_CC
1551 shift
1552 if test $# != 0; then
1553 # We chose a different compiler from the bogus one.
1554 # However, it has the same basename, so the bogon will be chosen
1555 # first if we set CC to just the basename; use the full file name.
1556 shift
1557 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1558 shift
1559 ac_cv_prog_CC="$@"
1560 fi
1561 fi
1562 fi
1563 fi
1564 CC=$ac_cv_prog_CC
1565 if test -n "$CC"; then
1566 echo "$as_me:1566: result: $CC" >&5
1567 echo "${ECHO_T}$CC" >&6
1568 else
1569 echo "$as_me:1569: result: no" >&5
1570 echo "${ECHO_T}no" >&6
1571 fi
1572
1573 fi
1574 if test -z "$CC"; then
1575 if test -n "$ac_tool_prefix"; then
1576 for ac_prog in cl
1577 do
1578 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1579 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1580 echo "$as_me:1580: checking for $ac_word" >&5
1581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1582 if test "${ac_cv_prog_CC+set}" = set; then
1583 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 else
1585 if test -n "$CC"; then
1586 ac_cv_prog_CC="$CC" # Let the user override the test.
1587 else
1588 ac_save_IFS=$IFS; IFS=$ac_path_separator
1589 ac_dummy="$PATH"
1590 for ac_dir in $ac_dummy; do
1591 IFS=$ac_save_IFS
1592 test -z "$ac_dir" && ac_dir=.
1593 $as_executable_p "$ac_dir/$ac_word" || continue
1594 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1595 echo "$as_me:1595: found $ac_dir/$ac_word" >&5
1596 break
1597 done
1598
1599 fi
1600 fi
1601 CC=$ac_cv_prog_CC
1602 if test -n "$CC"; then
1603 echo "$as_me:1603: result: $CC" >&5
1604 echo "${ECHO_T}$CC" >&6
1605 else
1606 echo "$as_me:1606: result: no" >&5
1607 echo "${ECHO_T}no" >&6
1608 fi
1609
1610 test -n "$CC" && break
1611 done
1612 fi
1613 if test -z "$CC"; then
1614 ac_ct_CC=$CC
1615 for ac_prog in cl
1616 do
1617 # Extract the first word of "$ac_prog", so it can be a program name with args.
1618 set dummy $ac_prog; ac_word=$2
1619 echo "$as_me:1619: checking for $ac_word" >&5
1620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622 echo $ECHO_N "(cached) $ECHO_C" >&6
1623 else
1624 if test -n "$ac_ct_CC"; then
1625 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1626 else
1627 ac_save_IFS=$IFS; IFS=$ac_path_separator
1628 ac_dummy="$PATH"
1629 for ac_dir in $ac_dummy; do
1630 IFS=$ac_save_IFS
1631 test -z "$ac_dir" && ac_dir=.
1632 $as_executable_p "$ac_dir/$ac_word" || continue
1633 ac_cv_prog_ac_ct_CC="$ac_prog"
1634 echo "$as_me:1634: found $ac_dir/$ac_word" >&5
1635 break
1636 done
1637
1638 fi
1639 fi
1640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1641 if test -n "$ac_ct_CC"; then
1642 echo "$as_me:1642: result: $ac_ct_CC" >&5
1643 echo "${ECHO_T}$ac_ct_CC" >&6
1644 else
1645 echo "$as_me:1645: result: no" >&5
1646 echo "${ECHO_T}no" >&6
1647 fi
1648
1649 test -n "$ac_ct_CC" && break
1650 done
1651
1652 CC=$ac_ct_CC
1653 fi
1654
1655 fi
1656
1657 test -z "$CC" && { { echo "$as_me:1657: error: no acceptable cc found in \$PATH" >&5
1658 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1659 { (exit 1); exit 1; }; }
1660
1661 # Provide some information about the compiler.
1662 echo "$as_me:1662:" \
1663 "checking for C compiler version" >&5
1664 ac_compiler=`set X $ac_compile; echo "$2"`
1665 { (eval echo "$as_me:1665: \"$ac_compiler --version </dev/null >&5\"") >&5
1666 (eval $ac_compiler --version </dev/null >&5) 2>&5
1667 ac_status=$?
1668 echo "$as_me:1668: \$? = $ac_status" >&5
1669 (exit "$ac_status"); }
1670 { (eval echo "$as_me:1670: \"$ac_compiler -v </dev/null >&5\"") >&5
1671 (eval $ac_compiler -v </dev/null >&5) 2>&5
1672 ac_status=$?
1673 echo "$as_me:1673: \$? = $ac_status" >&5
1674 (exit "$ac_status"); }
1675 { (eval echo "$as_me:1675: \"$ac_compiler -V </dev/null >&5\"") >&5
1676 (eval $ac_compiler -V </dev/null >&5) 2>&5
1677 ac_status=$?
1678 echo "$as_me:1678: \$? = $ac_status" >&5
1679 (exit "$ac_status"); }
1680
1681 cat >"conftest.$ac_ext" <<_ACEOF
1682 #line 1682 "configure"
1683 #include "confdefs.h"
1684
1685 int
1686 main (void)
1687 {
1688
1689 ;
1690 return 0;
1691 }
1692 _ACEOF
1693 ac_clean_files_save=$ac_clean_files
1694 ac_clean_files="$ac_clean_files a.out a.exe"
1695 # Try to create an executable without -o first, disregard a.out.
1696 # It will help us diagnose broken compilers, and finding out an intuition
1697 # of exeext.
1698 echo "$as_me:1698: checking for C compiler default output" >&5
1699 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1700 ac_link_default=`echo "$ac_link" | sed 's/ -o *"conftest[^"]*"//'`
1701 if { (eval echo "$as_me:1701: \"$ac_link_default\"") >&5
1702 (eval $ac_link_default) 2>&5
1703 ac_status=$?
1704 echo "$as_me:1704: \$? = $ac_status" >&5
1705 (exit "$ac_status"); }; then
1706 # Find the output, starting from the most likely. This scheme is
1707 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1708 # resort.
1709 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1710 ls a.out conftest 2>/dev/null;
1711 ls a.* conftest.* 2>/dev/null`; do
1712 case $ac_file in
1713 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1714 a.out ) # We found the default executable, but exeext='' is most
1715 # certainly right.
1716 break;;
1717 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1718 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1719 export ac_cv_exeext
1720 break;;
1721 * ) break;;
1722 esac
1723 done
1724 else
1725 echo "$as_me: failed program was:" >&5
1726 cat "conftest.$ac_ext" >&5
1727 { { echo "$as_me:1727: error: C compiler cannot create executables" >&5
1728 echo "$as_me: error: C compiler cannot create executables" >&2;}
1729 { (exit 77); exit 77; }; }
1730 fi
1731
1732 ac_exeext=$ac_cv_exeext
1733 echo "$as_me:1733: result: $ac_file" >&5
1734 echo "${ECHO_T}$ac_file" >&6
1735
1736 # Check the compiler produces executables we can run. If not, either
1737 # the compiler is broken, or we cross compile.
1738 echo "$as_me:1738: checking whether the C compiler works" >&5
1739 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1740 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1741 # If not cross compiling, check that we can run a simple program.
1742 if test "$cross_compiling" != yes; then
1743 if { ac_try='./$ac_file'
1744 { (eval echo "$as_me:1744: \"$ac_try\"") >&5
1745 (eval $ac_try) 2>&5
1746 ac_status=$?
1747 echo "$as_me:1747: \$? = $ac_status" >&5
1748 (exit "$ac_status"); }; }; then
1749 cross_compiling=no
1750 else
1751 if test "$cross_compiling" = maybe; then
1752 cross_compiling=yes
1753 else
1754 { { echo "$as_me:1754: error: cannot run C compiled programs.
1755 If you meant to cross compile, use \`--host'." >&5
1756 echo "$as_me: error: cannot run C compiled programs.
1757 If you meant to cross compile, use \`--host'." >&2;}
1758 { (exit 1); exit 1; }; }
1759 fi
1760 fi
1761 fi
1762 echo "$as_me:1762: result: yes" >&5
1763 echo "${ECHO_T}yes" >&6
1764
1765 rm -f a.out a.exe "conftest$ac_cv_exeext"
1766 ac_clean_files=$ac_clean_files_save
1767 # Check the compiler produces executables we can run. If not, either
1768 # the compiler is broken, or we cross compile.
1769 echo "$as_me:1769: checking whether we are cross compiling" >&5
1770 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1771 echo "$as_me:1771: result: $cross_compiling" >&5
1772 echo "${ECHO_T}$cross_compiling" >&6
1773
1774 echo "$as_me:1774: checking for executable suffix" >&5
1775 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1776 if { (eval echo "$as_me:1776: \"$ac_link\"") >&5
1777 (eval $ac_link) 2>&5
1778 ac_status=$?
1779 echo "$as_me:1779: \$? = $ac_status" >&5
1780 (exit "$ac_status"); }; then
1781 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1782 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1783 # work properly (i.e., refer to `conftest.exe'), while it won't with
1784 # `rm'.
1785 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1786 case $ac_file in
1787 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1789 export ac_cv_exeext
1790 break;;
1791 * ) break;;
1792 esac
1793 done
1794 else
1795 { { echo "$as_me:1795: error: cannot compute EXEEXT: cannot compile and link" >&5
1796 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1797 { (exit 1); exit 1; }; }
1798 fi
1799
1800 rm -f "conftest$ac_cv_exeext"
1801 echo "$as_me:1801: result: $ac_cv_exeext" >&5
1802 echo "${ECHO_T}$ac_cv_exeext" >&6
1803
1804 rm -f "conftest.$ac_ext"
1805 EXEEXT=$ac_cv_exeext
1806 ac_exeext=$EXEEXT
1807 echo "$as_me:1807: checking for object suffix" >&5
1808 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1809 if test "${ac_cv_objext+set}" = set; then
1810 echo $ECHO_N "(cached) $ECHO_C" >&6
1811 else
1812 cat >"conftest.$ac_ext" <<_ACEOF
1813 #line 1813 "configure"
1814 #include "confdefs.h"
1815
1816 int
1817 main (void)
1818 {
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 rm -f conftest.o conftest.obj
1825 if { (eval echo "$as_me:1825: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:1828: \$? = $ac_status" >&5
1829 (exit "$ac_status"); }; then
1830 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1831 case $ac_file in
1832 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1834 break;;
1835 esac
1836 done
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 cat "conftest.$ac_ext" >&5
1840 { { echo "$as_me:1840: error: cannot compute OBJEXT: cannot compile" >&5
1841 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1842 { (exit 1); exit 1; }; }
1843 fi
1844
1845 rm -f "conftest.$ac_cv_objext" "conftest.$ac_ext"
1846 fi
1847 echo "$as_me:1847: result: $ac_cv_objext" >&5
1848 echo "${ECHO_T}$ac_cv_objext" >&6
1849 OBJEXT=$ac_cv_objext
1850 ac_objext=$OBJEXT
1851 echo "$as_me:1851: checking whether we are using the GNU C compiler" >&5
1852 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1853 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1854 echo $ECHO_N "(cached) $ECHO_C" >&6
1855 else
1856 cat >"conftest.$ac_ext" <<_ACEOF
1857 #line 1857 "configure"
1858 #include "confdefs.h"
1859
1860 int
1861 main (void)
1862 {
1863 #ifndef __GNUC__
1864 choke me
1865 #endif
1866
1867 ;
1868 return 0;
1869 }
1870 _ACEOF
1871 rm -f "conftest.$ac_objext"
1872 if { (eval echo "$as_me:1872: \"$ac_compile\"") >&5
1873 (eval $ac_compile) 2>&5
1874 ac_status=$?
1875 echo "$as_me:1875: \$? = $ac_status" >&5
1876 (exit "$ac_status"); } &&
1877 { ac_try='test -s "conftest.$ac_objext"'
1878 { (eval echo "$as_me:1878: \"$ac_try\"") >&5
1879 (eval $ac_try) 2>&5
1880 ac_status=$?
1881 echo "$as_me:1881: \$? = $ac_status" >&5
1882 (exit "$ac_status"); }; }; then
1883 ac_compiler_gnu=yes
1884 else
1885 echo "$as_me: failed program was:" >&5
1886 cat "conftest.$ac_ext" >&5
1887 ac_compiler_gnu=no
1888 fi
1889 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1890 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1891
1892 fi
1893 echo "$as_me:1893: result: $ac_cv_c_compiler_gnu" >&5
1894 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1895 GCC=`test $ac_compiler_gnu = yes && echo yes`
1896 ac_test_CFLAGS=${CFLAGS+set}
1897 ac_save_CFLAGS=$CFLAGS
1898 CFLAGS="-g"
1899 echo "$as_me:1899: checking whether $CC accepts -g" >&5
1900 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1901 if test "${ac_cv_prog_cc_g+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1903 else
1904 cat >"conftest.$ac_ext" <<_ACEOF
1905 #line 1905 "configure"
1906 #include "confdefs.h"
1907
1908 int
1909 main (void)
1910 {
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 rm -f "conftest.$ac_objext"
1917 if { (eval echo "$as_me:1917: \"$ac_compile\"") >&5
1918 (eval $ac_compile) 2>&5
1919 ac_status=$?
1920 echo "$as_me:1920: \$? = $ac_status" >&5
1921 (exit "$ac_status"); } &&
1922 { ac_try='test -s "conftest.$ac_objext"'
1923 { (eval echo "$as_me:1923: \"$ac_try\"") >&5
1924 (eval $ac_try) 2>&5
1925 ac_status=$?
1926 echo "$as_me:1926: \$? = $ac_status" >&5
1927 (exit "$ac_status"); }; }; then
1928 ac_cv_prog_cc_g=yes
1929 else
1930 echo "$as_me: failed program was:" >&5
1931 cat "conftest.$ac_ext" >&5
1932 ac_cv_prog_cc_g=no
1933 fi
1934 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
1935 fi
1936 echo "$as_me:1936: result: $ac_cv_prog_cc_g" >&5
1937 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1938 if test "$ac_test_CFLAGS" = set; then
1939 CFLAGS=$ac_save_CFLAGS
1940 elif test $ac_cv_prog_cc_g = yes; then
1941 if test "$GCC" = yes; then
1942 CFLAGS="-g -O2"
1943 else
1944 CFLAGS="-g"
1945 fi
1946 else
1947 if test "$GCC" = yes; then
1948 CFLAGS="-O2"
1949 else
1950 CFLAGS=
1951 fi
1952 fi
1953 # Some people use a C++ compiler to compile C. Since we use `exit',
1954 # in C++ we need to declare it. In case someone uses the same compiler
1955 # for both compiling C and C++ we need to have the C++ compiler decide
1956 # the declaration of exit, since it's the most demanding environment.
1957 cat >"conftest.$ac_ext" <<_ACEOF
1958 #ifndef __cplusplus
1959 choke me
1960 #endif
1961 _ACEOF
1962 rm -f "conftest.$ac_objext"
1963 if { (eval echo "$as_me:1963: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:1966: \$? = $ac_status" >&5
1967 (exit "$ac_status"); } &&
1968 { ac_try='test -s "conftest.$ac_objext"'
1969 { (eval echo "$as_me:1969: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:1972: \$? = $ac_status" >&5
1973 (exit "$ac_status"); }; }; then
1974 for ac_declaration in \
1975 ''\
1976 '#include <stdlib.h>' \
1977 'extern "C" void std::exit (int) throw (); using std::exit;' \
1978 'extern "C" void std::exit (int); using std::exit;' \
1979 'extern "C" void exit (int) throw ();' \
1980 'extern "C" void exit (int);' \
1981 'void exit (int);'
1982 do
1983 cat >"conftest.$ac_ext" <<_ACEOF
1984 #line 1984 "configure"
1985 #include "confdefs.h"
1986 #include <stdlib.h>
1987 $ac_declaration
1988 int
1989 main (void)
1990 {
1991 exit (42);
1992 ;
1993 return 0;
1994 }
1995 _ACEOF
1996 rm -f "conftest.$ac_objext"
1997 if { (eval echo "$as_me:1997: \"$ac_compile\"") >&5
1998 (eval $ac_compile) 2>&5
1999 ac_status=$?
2000 echo "$as_me:2000: \$? = $ac_status" >&5
2001 (exit "$ac_status"); } &&
2002 { ac_try='test -s "conftest.$ac_objext"'
2003 { (eval echo "$as_me:2003: \"$ac_try\"") >&5
2004 (eval $ac_try) 2>&5
2005 ac_status=$?
2006 echo "$as_me:2006: \$? = $ac_status" >&5
2007 (exit "$ac_status"); }; }; then
2008 :
2009 else
2010 echo "$as_me: failed program was:" >&5
2011 cat "conftest.$ac_ext" >&5
2012 continue
2013 fi
2014 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2015 cat >"conftest.$ac_ext" <<_ACEOF
2016 #line 2016 "configure"
2017 #include "confdefs.h"
2018 $ac_declaration
2019 int
2020 main (void)
2021 {
2022 exit (42);
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 rm -f "conftest.$ac_objext"
2028 if { (eval echo "$as_me:2028: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2030 ac_status=$?
2031 echo "$as_me:2031: \$? = $ac_status" >&5
2032 (exit "$ac_status"); } &&
2033 { ac_try='test -s "conftest.$ac_objext"'
2034 { (eval echo "$as_me:2034: \"$ac_try\"") >&5
2035 (eval $ac_try) 2>&5
2036 ac_status=$?
2037 echo "$as_me:2037: \$? = $ac_status" >&5
2038 (exit "$ac_status"); }; }; then
2039 break
2040 else
2041 echo "$as_me: failed program was:" >&5
2042 cat "conftest.$ac_ext" >&5
2043 fi
2044 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2045 done
2046 rm -rf conftest*
2047 if test -n "$ac_declaration"; then
2048 echo '#ifdef __cplusplus' >>confdefs.h
2049 echo "$ac_declaration" >>confdefs.h
2050 echo '#endif' >>confdefs.h
2051 fi
2052
2053 else
2054 echo "$as_me: failed program was:" >&5
2055 cat "conftest.$ac_ext" >&5
2056 fi
2057 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2061 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 ac_main_return="return"
2064
2065 GCC_VERSION=none
2066 if test "$GCC" = yes ; then
2067 echo "$as_me:2067: checking version of $CC" >&5
2068 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2069 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2070 test -z "$GCC_VERSION" && GCC_VERSION=unknown
2071 echo "$as_me:2071: result: $GCC_VERSION" >&5
2072 echo "${ECHO_T}$GCC_VERSION" >&6
2073 fi
2074
2075 INTEL_COMPILER=no
2076
2077 if test "$GCC" = yes ; then
2078 case "$host_os" in
2079 linux*|gnu*)
2080 echo "$as_me:2080: checking if this is really Intel C compiler" >&5
2081 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
2082 cf_save_CFLAGS="$CFLAGS"
2083 CFLAGS="$CFLAGS -no-gcc"
2084 cat >"conftest.$ac_ext" <<_ACEOF
2085 #line 2085 "configure"
2086 #include "confdefs.h"
2087
2088 int
2089 main (void)
2090 {
2091
2092 #ifdef __INTEL_COMPILER
2093 #else
2094 make an error
2095 #endif
2096
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 rm -f "conftest.$ac_objext"
2102 if { (eval echo "$as_me:2102: \"$ac_compile\"") >&5
2103 (eval $ac_compile) 2>&5
2104 ac_status=$?
2105 echo "$as_me:2105: \$? = $ac_status" >&5
2106 (exit "$ac_status"); } &&
2107 { ac_try='test -s "conftest.$ac_objext"'
2108 { (eval echo "$as_me:2108: \"$ac_try\"") >&5
2109 (eval $ac_try) 2>&5
2110 ac_status=$?
2111 echo "$as_me:2111: \$? = $ac_status" >&5
2112 (exit "$ac_status"); }; }; then
2113 INTEL_COMPILER=yes
2114 cf_save_CFLAGS="$cf_save_CFLAGS -we147"
2115
2116 else
2117 echo "$as_me: failed program was:" >&5
2118 cat "conftest.$ac_ext" >&5
2119 fi
2120 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2121 CFLAGS="$cf_save_CFLAGS"
2122 echo "$as_me:2122: result: $INTEL_COMPILER" >&5
2123 echo "${ECHO_T}$INTEL_COMPILER" >&6
2124 ;;
2125 esac
2126 fi
2127
2128 CLANG_COMPILER=no
2129
2130 if test "$GCC" = yes ; then
2131 echo "$as_me:2131: checking if this is really Clang C compiler" >&5
2132 echo $ECHO_N "checking if this is really Clang C compiler... $ECHO_C" >&6
2133 cf_save_CFLAGS="$CFLAGS"
2134 cat >"conftest.$ac_ext" <<_ACEOF
2135 #line 2135 "configure"
2136 #include "confdefs.h"
2137
2138 int
2139 main (void)
2140 {
2141
2142 #ifdef __clang__
2143 #else
2144 make an error
2145 #endif
2146
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 rm -f "conftest.$ac_objext"
2152 if { (eval echo "$as_me:2152: \"$ac_compile\"") >&5
2153 (eval $ac_compile) 2>&5
2154 ac_status=$?
2155 echo "$as_me:2155: \$? = $ac_status" >&5
2156 (exit "$ac_status"); } &&
2157 { ac_try='test -s "conftest.$ac_objext"'
2158 { (eval echo "$as_me:2158: \"$ac_try\"") >&5
2159 (eval $ac_try) 2>&5
2160 ac_status=$?
2161 echo "$as_me:2161: \$? = $ac_status" >&5
2162 (exit "$ac_status"); }; }; then
2163 CLANG_COMPILER=yes
2164
2165 else
2166 echo "$as_me: failed program was:" >&5
2167 cat "conftest.$ac_ext" >&5
2168 fi
2169 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
2170 CFLAGS="$cf_save_CFLAGS"
2171 echo "$as_me:2171: result: $CLANG_COMPILER" >&5
2172 echo "${ECHO_T}$CLANG_COMPILER" >&6
2173 fi
2174
2175 CLANG_VERSION=none
2176
2177 if test "x$CLANG_COMPILER" = "xyes" ; then
2178 case "$CC" in
2179 c[1-9][0-9]|*/c[1-9][0-9])
2180 { echo "$as_me:2180: WARNING: replacing broken compiler alias $CC" >&5
2181 echo "$as_me: WARNING: replacing broken compiler alias $CC" >&2;}
2182 CFLAGS="$CFLAGS -std=`echo "$CC" | sed -e 's%.*/%%'`"
2183 CC=clang
2184 ;;
2185 esac
2186
2187 echo "$as_me:2187: checking version of $CC" >&5
2188 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
2189 CLANG_VERSION="`$CC --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(CLANG[^)]*) //' -e 's/^.*(Debian[^)]*) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
2190 test -z "$CLANG_VERSION" && CLANG_VERSION=unknown
2191 echo "$as_me:2191: result: $CLANG_VERSION" >&5
2192 echo "${ECHO_T}$CLANG_VERSION" >&6
2193
2194 for cf_clang_opt in \
2195 -Qunused-arguments \
2196 -Wno-error=implicit-function-declaration
2197 do
2198 echo "$as_me:2198: checking if option $cf_clang_opt works" >&5
2199 echo $ECHO_N "checking if option $cf_clang_opt works... $ECHO_C" >&6
2200 cf_save_CFLAGS="$CFLAGS"
2201 CFLAGS="$CFLAGS $cf_clang_opt"
2202 cat >"conftest.$ac_ext" <<_ACEOF
2203 #line 2203 "configure"
2204 #include "confdefs.h"
2205
2206 #include <stdio.h>
2207 int
2208 main (void)
2209 {
2210
2211 printf("hello!\\n");
2212 ;
2213 return 0;
2214 }
2215 _ACEOF
2216 rm -f "conftest.$ac_objext" "conftest$ac_exeext"
2217 if { (eval echo "$as_me:2217: \"$ac_link\"") >&5
2218 (eval $ac_link) 2>&5
2219 ac_status=$?
2220 echo "$as_me:2220: \$? = $ac_status" >&5
2221 (exit "$ac_status"); } &&
2222 { ac_try='test -s "conftest$ac_exeext"'
2223 { (eval echo "$as_me:2223: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:2226: \$? = $ac_status" >&5
2227 (exit "$ac_status"); }; }; then
2228
2229 cf_clang_optok=yes
2230 else
2231 echo "$as_me: failed program was:" >&5
2232 cat "conftest.$ac_ext" >&5
2233
2234 cf_clang_optok=no
2235 fi
2236 rm -f "conftest.$ac_objext" "conftest$ac_exeext" "conftest.$ac_ext"
2237 echo "$as_me:2237: result: $cf_clang_optok" >&5
2238 echo "${ECHO_T}$cf_clang_optok" >&6
2239 CFLAGS="$cf_save_CFLAGS"
2240 if test "$cf_clang_optok" = yes; then
2241 test -n "$verbose" && echo " adding option $cf_clang_opt" 1>&6
2242
2243 echo "${as_me:-configure}:2243: testing adding option $cf_clang_opt ..." 1>&5
2244
2245 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2246 CFLAGS="${CFLAGS}$cf_clang_opt"
2247
2248 fi
2249 done
2250 fi
2251
2252 echo "$as_me:2252: checking for $CC option to accept ANSI C" >&5
2253 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2254 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2256 else
2257 ac_cv_prog_cc_stdc=no
2258 ac_save_CC=$CC
2259 cat >"conftest.$ac_ext" <<_ACEOF
2260 #line 2260 "configure"
2261 #include "confdefs.h"
2262 #include <stdarg.h>
2263 #include <stdio.h>
2264 #include <sys/types.h>
2265 #include <sys/stat.h>
2266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2267 struct buf { int x; };
2268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2269 static char *e (p, i)
2270 char **p;
2271 int i;
2272 {
2273 return p[i];
2274 }
2275 static char *f (char * (*g) (char **, int), char **p, ...)
2276 {
2277 char *s;
2278 va_list v;
2279 va_start (v,p);
2280 s = g (p, va_arg (v,int));
2281 va_end (v);
2282 return s;
2283 }
2284 int test (int i, double x);
2285 struct s1 {int (*f) (int a);};
2286 struct s2 {int (*f) (double a);};
2287 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2288 int argc;
2289 char **argv;
2290 int
2291 main (void)
2292 {
2293 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2294 ;
2295 return 0;
2296 }
2297 _ACEOF
2298 # Don't try gcc -ansi; that turns off useful extensions and
2299 # breaks some systems' header files.
2300 # AIX -qlanglvl=ansi
2301 # Ultrix and OSF/1 -std1
2302 # HP-UX 10.20 and later -Ae
2303 # HP-UX older versions -Aa -D_HPUX_SOURCE
2304 # SVR4 -Xc -D__EXTENSIONS__
2305 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2306 do
2307 CC="$ac_save_CC $ac_arg"
2308 rm -f "conftest.$ac_objext"
2309 if { (eval echo "$as_me:2309: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>&5
2311 ac_status=$?
2312 echo "$as_me:2312: \$? = $ac_status" >&5
2313 (exit "$ac_status"); } &&
2314 { ac_try='test -s "conftest.$ac_objext"'
2315 { (eval echo "$as_me:2315: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:2318: \$? = $ac_status" >&5
2319 (exit "$ac_status"); }; }; then
2320 ac_cv_prog_cc_stdc=$ac_arg
2321 break
2322 else
2323 echo "$as_me: failed program was:" >&5
2324 cat "conftest.$ac_ext" >&5
2325 fi
2326 rm -f "conftest.$ac_objext"
2327 done
2328 rm -f "conftest.$ac_ext" "conftest.$ac_objext"
2329 CC=$ac_save_CC
2330
2331 fi
2332
2333 case "x$ac_cv_prog_cc_stdc" in
2334 x|xno)
2335 echo "$as_me:2335: result: none needed" >&5
2336 echo "${ECHO_T}none needed" >&6 ;;
2337 *)
2338 echo "$as_me:2338: result: $ac_cv_prog_cc_stdc" >&5
2339 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2340 CC="$CC $ac_cv_prog_cc_stdc" ;;
2341 esac
2342
2343 # This should have been defined by AC_PROG_CC
2344 : "${CC:=cc}"
2345
2346 echo "$as_me:2346: checking \$CFLAGS variable" >&5
2347 echo $ECHO_N "checking \$CFLAGS variable... $ECHO_C" >&6
2348 case "x$CFLAGS" in
2349 *-[IUD]*)
2350 echo "$as_me:2350: result: broken" >&5
2351 echo "${ECHO_T}broken" >&6
2352 { echo "$as_me:2352: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&5
2353 echo "$as_me: WARNING: your environment uses the CFLAGS variable to hold CPPFLAGS options" >&2;}
2354 cf_flags="$CFLAGS"
2355 CFLAGS=
2356 for cf_arg in $cf_flags
2357 do
2358
2359 cf_fix_cppflags=no
2360 cf_new_cflags=
2361 cf_new_cppflags=
2362 cf_new_extra_cppflags=
2363
2364 for cf_add_cflags in $cf_arg
2365 do
2366 case "$cf_fix_cppflags" in
2367 no)
2368 case "$cf_add_cflags" in
2369 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2370 case "$cf_add_cflags" in
2371 -D*)
2372 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2373
2374 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2375 && test -z "${cf_tst_cflags}" \
2376 && cf_fix_cppflags=yes
2377
2378 if test "$cf_fix_cppflags" = yes ; then
2379
2380 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2381 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2382
2383 continue
2384 elif test "${cf_tst_cflags}" = "\"'" ; then
2385
2386 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2387 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2388
2389 continue
2390 fi
2391 ;;
2392 esac
2393 case "$CPPFLAGS" in
2394 *$cf_add_cflags)
2395 ;;
2396 *)
2397 case "$cf_add_cflags" in
2398 -D*)
2399 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2400
2401 CPPFLAGS=`echo "$CPPFLAGS" | \
2402 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2403 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2404
2405 ;;
2406 esac
2407
2408 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2409 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2410
2411 ;;
2412 esac
2413 ;;
2414 *)
2415
2416 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2417 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2418
2419 ;;
2420 esac
2421 ;;
2422 yes)
2423
2424 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2425 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2426
2427 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2428
2429 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2430 && test -z "${cf_tst_cflags}" \
2431 && cf_fix_cppflags=no
2432 ;;
2433 esac
2434 done
2435
2436 if test -n "$cf_new_cflags" ; then
2437
2438 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2439 CFLAGS="${CFLAGS}$cf_new_cflags"
2440
2441 fi
2442
2443 if test -n "$cf_new_cppflags" ; then
2444
2445 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2446 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2447
2448 fi
2449
2450 if test -n "$cf_new_extra_cppflags" ; then
2451
2452 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2453 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2454
2455 fi
2456
2457 done
2458 ;;
2459 *)
2460 echo "$as_me:2460: result: ok" >&5
2461 echo "${ECHO_T}ok" >&6
2462 ;;
2463 esac
2464
2465 echo "$as_me:2465: checking \$CC variable" >&5
2466 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2467 case "$CC" in
2468 *[\ \ ]-*)
2469 echo "$as_me:2469: result: broken" >&5
2470 echo "${ECHO_T}broken" >&6
2471 { echo "$as_me:2471: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2472 echo "$as_me: WARNING: your environment uses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2473 # humor him...
2474 cf_prog=`echo "$CC" | sed -e 's/ / /g' -e 's/[ ]* / /g' -e 's/[ ]*[ ]-[^ ].*//'`
2475 cf_flags=`echo "$CC" | ${AWK:-awk} -v prog="$cf_prog" '{ printf("%s", substr($0,1+length(prog))); }'`
2476 CC="$cf_prog"
2477 for cf_arg in $cf_flags
2478 do
2479 case "x$cf_arg" in
2480 x-[IUDfgOW]*)
2481
2482 cf_fix_cppflags=no
2483 cf_new_cflags=
2484 cf_new_cppflags=
2485 cf_new_extra_cppflags=
2486
2487 for cf_add_cflags in $cf_arg
2488 do
2489 case "$cf_fix_cppflags" in
2490 no)
2491 case "$cf_add_cflags" in
2492 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
2493 case "$cf_add_cflags" in
2494 -D*)
2495 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2496
2497 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2498 && test -z "${cf_tst_cflags}" \
2499 && cf_fix_cppflags=yes
2500
2501 if test "$cf_fix_cppflags" = yes ; then
2502
2503 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2504 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2505
2506 continue
2507 elif test "${cf_tst_cflags}" = "\"'" ; then
2508
2509 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2510 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2511
2512 continue
2513 fi
2514 ;;
2515 esac
2516 case "$CPPFLAGS" in
2517 *$cf_add_cflags)
2518 ;;
2519 *)
2520 case "$cf_add_cflags" in
2521 -D*)
2522 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2523
2524 CPPFLAGS=`echo "$CPPFLAGS" | \
2525 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2526 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2527
2528 ;;
2529 esac
2530
2531 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
2532 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
2533
2534 ;;
2535 esac
2536 ;;
2537 *)
2538
2539 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
2540 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
2541
2542 ;;
2543 esac
2544 ;;
2545 yes)
2546
2547 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
2548 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
2549
2550 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
2551
2552 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
2553 && test -z "${cf_tst_cflags}" \
2554 && cf_fix_cppflags=no
2555 ;;
2556 esac
2557 done
2558
2559 if test -n "$cf_new_cflags" ; then
2560
2561 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
2562 CFLAGS="${CFLAGS}$cf_new_cflags"
2563
2564 fi
2565
2566 if test -n "$cf_new_cppflags" ; then
2567
2568 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
2569 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
2570
2571 fi
2572
2573 if test -n "$cf_new_extra_cppflags" ; then
2574
2575 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
2576 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
2577
2578 fi
2579
2580 ;;
2581 *)
2582 CC="$CC $cf_arg"
2583 ;;
2584 esac
2585 done
2586 test -n "$verbose" && echo " resulting CC: '$CC'" 1>&6
2587
2588 echo "${as_me:-configure}:2588: testing resulting CC: '$CC' ..." 1>&5
2589
2590 test -n "$verbose" && echo " resulting CFLAGS: '$CFLAGS'" 1>&6
2591
2592 echo "${as_me:-configure}:2592: testing resulting CFLAGS: '$CFLAGS' ..." 1>&5
2593
2594 test -n "$verbose" && echo " resulting CPPFLAGS: '$CPPFLAGS'" 1>&6
2595
2596 echo "${as_me:-configure}:2596: testing resulting CPPFLAGS: '$CPPFLAGS' ..." 1>&5
2597
2598 ;;
2599 *)
2600 echo "$as_me:2600: result: ok" >&5
2601 echo "${ECHO_T}ok" >&6
2602 ;;
2603 esac
2604
2605 for ac_prog in ggrep grep
2606 do
2607 # Extract the first word of "$ac_prog", so it can be a program name with args.
2608 set dummy $ac_prog; ac_word=$2
2609 echo "$as_me:2609: checking for $ac_word" >&5
2610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2611 if test "${ac_cv_prog_GREP+set}" = set; then
2612 echo $ECHO_N "(cached) $ECHO_C" >&6
2613 else
2614 if test -n "$GREP"; then
2615 ac_cv_prog_GREP="$GREP" # Let the user override the test.
2616 else
2617 ac_save_IFS=$IFS; IFS=$ac_path_separator
2618 ac_dummy="$PATH"
2619 for ac_dir in $ac_dummy; do
2620 IFS=$ac_save_IFS
2621 test -z "$ac_dir" && ac_dir=.
2622 $as_executable_p "$ac_dir/$ac_word" || continue
2623 ac_cv_prog_GREP="$ac_prog"
2624 echo "$as_me:2624: found $ac_dir/$ac_word" >&5
2625 break
2626 done
2627
2628 fi
2629 fi
2630 GREP=$ac_cv_prog_GREP
2631 if test -n "$GREP"; then
2632 echo "$as_me:2632: result: $GREP" >&5
2633 echo "${ECHO_T}$GREP" >&6
2634 else
2635 echo "$as_me:2635: result: no" >&5
2636 echo "${ECHO_T}no" >&6
2637 fi
2638
2639 test -n "$GREP" && break
2640 done
2641 test -n "$GREP" || GREP=": "
2642
2643 echo "$as_me:2643: checking for egrep" >&5
2644 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2645 if test "${ac_cv_path_EGREP+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2649 then ac_cv_path_EGREP="$GREP -E"
2650 else
2651 for ac_prog in gegrep egrep
2652 do
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 echo "$as_me:2655: checking for $ac_word" >&5
2656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2657 if test "${ac_cv_path_EGREP+set}" = set; then
2658 echo $ECHO_N "(cached) $ECHO_C" >&6
2659 else
2660 case $EGREP in
2661 [\\/]* | ?:[\\/]*)
2662 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
2663 ;;
2664 *)
2665 ac_save_IFS=$IFS; IFS=$ac_path_separator
2666 ac_dummy="$PATH"
2667 for ac_dir in $ac_dummy; do
2668 IFS=$ac_save_IFS
2669 test -z "$ac_dir" && ac_dir=.
2670 if $as_executable_p "$ac_dir/$ac_word"; then
2671 ac_cv_path_EGREP="$ac_dir/$ac_word"
2672 echo "$as_me:2672: found $ac_dir/$ac_word" >&5
2673 break
2674 fi
2675 done
2676
2677 ;;
2678 esac
2679 fi
2680 EGREP=$ac_cv_path_EGREP
2681
2682 if test -n "$EGREP"; then
2683 echo "$as_me:2683: result: $EGREP" >&5
2684 echo "${ECHO_T}$EGREP" >&6
2685 else
2686 echo "$as_me:2686: result: no" >&5
2687 echo "${ECHO_T}no" >&6
2688 fi
2689
2690 test -n "$EGREP" && break
2691 done
2692 test -n "$EGREP" || EGREP=": "
2693
2694 test "x$ac_cv_path_EGREP" = "x:" && { { echo "$as_me:2694: error: cannot find workable egrep" >&5
2695 echo "$as_me: error: cannot find workable egrep" >&2;}
2696 { (exit 1); exit 1; }; }
2697 fi
2698 fi
2699 echo "$as_me:2699: result: $ac_cv_path_EGREP" >&5
2700 echo "${ECHO_T}$ac_cv_path_EGREP" >&6
2701 EGREP="$ac_cv_path_EGREP"
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2706 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 ac_main_return="return"
2709 echo "$as_me:2709: checking how to run the C preprocessor" >&5
2710 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2711 # On Suns, sometimes $CPP names a directory.
2712 if test -n "$CPP" && test -d "$CPP"; then
2713 CPP=
2714 fi
2715 if test -z "$CPP"; then
2716 if test "${ac_cv_prog_CPP+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 else
2719 # Double quotes because CPP needs to be expanded
2720 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2721 do
2722 ac_preproc_ok=false
2723 for ac_c_preproc_warn_flag in '' yes
2724 do
2725 # Use a header file that comes with gcc, so configuring glibc
2726 # with a fresh cross-compiler works.
2727 # On the NeXT, cc -E runs the code through the compiler's parser,
2728 # not just through cpp. "Syntax error" is here to catch this case.
2729 cat >"conftest.$ac_ext" <<_ACEOF
2730 #line 2730 "configure"
2731 #include "confdefs.h"
2732 #include <assert.h>
2733 Syntax error
2734 _ACEOF
2735 if { (eval echo "$as_me:2735: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2736 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2737 ac_status=$?
2738 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2739 rm -f conftest.er1
2740 cat conftest.err >&5
2741 echo "$as_me:2741: \$? = $ac_status" >&5
2742 (exit "$ac_status"); } >/dev/null; then
2743 if test -s conftest.err; then
2744 ac_cpp_err=$ac_c_preproc_warn_flag
2745 else
2746 ac_cpp_err=
2747 fi
2748 else
2749 ac_cpp_err=yes
2750 fi
2751 if test -z "$ac_cpp_err"; then
2752 :
2753 else
2754 echo "$as_me: failed program was:" >&5
2755 cat "conftest.$ac_ext" >&5
2756 # Broken: fails on valid input.
2757 continue
2758 fi
2759 rm -f conftest.err "conftest.$ac_ext"
2760
2761 # OK, works on sane cases. Now check whether non-existent headers
2762 # can be detected and how.
2763 cat >"conftest.$ac_ext" <<_ACEOF
2764 #line 2764 "configure"
2765 #include "confdefs.h"
2766 #include <ac_nonexistent.h>
2767 _ACEOF
2768 if { (eval echo "$as_me:2768: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2769 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2770 ac_status=$?
2771 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2772 rm -f conftest.er1
2773 cat conftest.err >&5
2774 echo "$as_me:2774: \$? = $ac_status" >&5
2775 (exit "$ac_status"); } >/dev/null; then
2776 if test -s conftest.err; then
2777 ac_cpp_err=$ac_c_preproc_warn_flag
2778 else
2779 ac_cpp_err=
2780 fi
2781 else
2782 ac_cpp_err=yes
2783 fi
2784 if test -z "$ac_cpp_err"; then
2785 # Broken: success on invalid input.
2786 continue
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 cat "conftest.$ac_ext" >&5
2790 # Passes both tests.
2791 ac_preproc_ok=:
2792 break
2793 fi
2794 rm -f conftest.err "conftest.$ac_ext"
2795
2796 done
2797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2798 rm -f conftest.err "conftest.$ac_ext"
2799 if $ac_preproc_ok; then
2800 break
2801 fi
2802
2803 done
2804 ac_cv_prog_CPP=$CPP
2805
2806 fi
2807 CPP=$ac_cv_prog_CPP
2808 else
2809 ac_cv_prog_CPP=$CPP
2810 fi
2811 echo "$as_me:2811: result: $CPP" >&5
2812 echo "${ECHO_T}$CPP" >&6
2813 ac_preproc_ok=false
2814 for ac_c_preproc_warn_flag in '' yes
2815 do
2816 # Use a header file that comes with gcc, so configuring glibc
2817 # with a fresh cross-compiler works.
2818 # On the NeXT, cc -E runs the code through the compiler's parser,
2819 # not just through cpp. "Syntax error" is here to catch this case.
2820 cat >"conftest.$ac_ext" <<_ACEOF
2821 #line 2821 "configure"
2822 #include "confdefs.h"
2823 #include <assert.h>
2824 Syntax error
2825 _ACEOF
2826 if { (eval echo "$as_me:2826: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2827 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2828 ac_status=$?
2829 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2830 rm -f conftest.er1
2831 cat conftest.err >&5
2832 echo "$as_me:2832: \$? = $ac_status" >&5
2833 (exit "$ac_status"); } >/dev/null; then
2834 if test -s conftest.err; then
2835 ac_cpp_err=$ac_c_preproc_warn_flag
2836 else
2837 ac_cpp_err=
2838 fi
2839 else
2840 ac_cpp_err=yes
2841 fi
2842 if test -z "$ac_cpp_err"; then
2843 :
2844 else
2845 echo "$as_me: failed program was:" >&5
2846 cat "conftest.$ac_ext" >&5
2847 # Broken: fails on valid input.
2848 continue
2849 fi
2850 rm -f conftest.err "conftest.$ac_ext"
2851
2852 # OK, works on sane cases. Now check whether non-existent headers
2853 # can be detected and how.
2854 cat >"conftest.$ac_ext" <<_ACEOF
2855 #line 2855 "configure"
2856 #include "confdefs.h"
2857 #include <ac_nonexistent.h>
2858 _ACEOF
2859 if { (eval echo "$as_me:2859: \"$ac_cpp "conftest.$ac_ext"\"") >&5
2860 (eval $ac_cpp "conftest.$ac_ext") 2>conftest.er1
2861 ac_status=$?
2862 $EGREP -v '^ *\+' conftest.er1 >conftest.err
2863 rm -f conftest.er1
2864 cat conftest.err >&5
2865 echo "$as_me:2865: \$? = $ac_status" >&5
2866 (exit "$ac_status"); } >/dev/null; then
2867 if test -s conftest.err; then
2868 ac_cpp_err=$ac_c_preproc_warn_flag
2869 else
2870 ac_cpp_err=
2871 fi
2872 else
2873 ac_cpp_err=yes
2874 fi
2875 if test -z "$ac_cpp_err"; then
2876 # Broken: success on invalid input.
2877 continue
2878 else
2879 echo "$as_me: failed program was:" >&5
2880 cat "conftest.$ac_ext" >&5
2881 # Passes both tests.
2882 ac_preproc_ok=:
2883 break
2884 fi
2885 rm -f conftest.err "conftest.$ac_ext"
2886
2887 done
2888 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2889 rm -f conftest.err "conftest.$ac_ext"
2890 if $ac_preproc_ok; then
2891 :
2892 else
2893 { { echo "$as_me:2893: error: C preprocessor \"$CPP\" fails sanity check" >&5
2894 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2895 { (exit 1); exit 1; }; }
2896 fi
2897
2898 ac_ext=c
2899 ac_cpp='$CPP $CPPFLAGS'
2900 ac_compile='$CC -c $CFLAGS $CPPFLAGS "conftest.$ac_ext" >&5'
2901 ac_link='$CC -o "conftest$ac_exeext" $CFLAGS $CPPFLAGS $LDFLAGS "conftest.$ac_ext" $LIBS >&5'
2902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903 ac_main_return="return"
2904
2905 if test $ac_cv_c_compiler_gnu = yes; then
2906 echo "$as_me:2906: checking whether $CC needs -traditional" >&5
2907 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2908 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 ac_pattern="Autoconf.*'x'"
2912 cat >"conftest.$ac_ext" <<_ACEOF
2913 #line 2913 "configure"
2914 #include "confdefs.h"
2915 #include <sgtty.h>
2916 int Autoconf = TIOCGETP;
2917 _ACEOF
2918 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2919 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2920 ac_cv_prog_gcc_traditional=yes
2921 else
2922 ac_cv_prog_gcc_traditional=no
2923 fi
2924 rm -rf conftest*
2925
2926 if test $ac_cv_prog_gcc_traditional = no; then
2927 cat >"conftest.$ac_ext" <<_ACEOF
2928 #line 2928 "configure"
2929 #include "confdefs.h"
2930 #include <termio.h>
2931 int Autoconf = TCGETA;
2932 _ACEOF
2933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2934 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2935 ac_cv_prog_gcc_traditional=yes
2936 fi
2937 rm -rf conftest*
2938
2939 fi
2940 fi
2941 echo "$as_me:2941: result: $ac_cv_prog_gcc_traditional" >&5
2942 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2943 if test $ac_cv_prog_gcc_traditional = yes; then
2944 CC="$CC -traditional"
2945 fi
2946 fi
2947
2948 echo "$as_me:2948: checking whether ${MAKE-make} sets \${MAKE}" >&5
2949 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
2950 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
2951 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2952 echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954 cat >conftest.make <<\EOF
2955 all:
2956 @echo 'ac_maketemp="${MAKE}"'
2957 EOF
2958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2959 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2960 if test -n "$ac_maketemp"; then
2961 eval ac_cv_prog_make_${ac_make}_set=yes
2962 else
2963 eval ac_cv_prog_make_${ac_make}_set=no
2964 fi
2965 rm -f conftest.make
2966 fi
2967 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2968 echo "$as_me:2968: result: yes" >&5
2969 echo "${ECHO_T}yes" >&6
2970 SET_MAKE=
2971 else
2972 echo "$as_me:2972: result: no" >&5
2973 echo "${ECHO_T}no" >&6
2974 SET_MAKE="MAKE=${MAKE-make}"
2975 fi
2976
2977 # Find a good install program. We prefer a C program (faster),
2978 # so one script is as good as another. But avoid the broken or
2979 # incompatible versions:
2980 # SysV /etc/install, /usr/sbin/install
2981 # SunOS /usr/etc/install
2982 # IRIX /sbin/install
2983 # AIX /bin/install
2984 # AmigaOS /C/install, which installs bootblocks on floppy discs
2985 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2986 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2987 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2988 # ./install, which can be erroneously created by make from ./install.sh.
2989 echo "$as_me:2989: checking for a BSD compatible install" >&5
2990 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
2991 if test -z "$INSTALL"; then
2992 if test "${ac_cv_path_install+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 ac_save_IFS=$IFS; IFS=$ac_path_separator
2996 for ac_dir in $PATH; do
2997 IFS=$ac_save_IFS
2998 # Account for people who put trailing slashes in PATH elements.
2999 case $ac_dir/ in
3000 / | ./ | .// | /cC/* \
3001 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
3002 | /usr/ucb/* ) ;;
3003 *)
3004 # OSF1 and SCO ODT 3.0 have their own names for install.
3005 # Don't use installbsd from OSF since it installs stuff as root
3006 # by default.
3007 for ac_prog in ginstall scoinst install; do
3008 if $as_executable_p "$ac_dir/$ac_prog"; then
3009 if test $ac_prog = install &&
3010 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3011 # AIX install. It has an incompatible calling convention.
3012 :
3013 elif test $ac_prog = install &&
3014 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
3015 # program-specific install script used by HP pwplus--don't use.
3016 :
3017 else
3018 ac_cv_path_install="$ac_dir/$ac_prog -c"
3019 break 2
3020 fi
3021 fi
3022 done
3023 ;;
3024 esac
3025 done
3026
3027 fi
3028 if test "${ac_cv_path_install+set}" = set; then
3029 INSTALL=$ac_cv_path_install
3030 else
3031 # As a last resort, use the slow shell script. We don't cache a
3032 # path for INSTALL within a source directory, because that will
3033 # break other packages using the cache if that directory is
3034 # removed, or if the path is relative.
3035 INSTALL=$ac_install_sh
3036 fi
3037 fi
3038 echo "$as_me:3038: result: $INSTALL" >&5
3039 echo "${ECHO_T}$INSTALL" >&6
3040
3041 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3042 # It thinks the first close brace ends the variable substitution.
3043 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3044
3045 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3046
3047 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3048
3049 if test "${cf_cv_prog_YACC+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052
3053 if test -n "$YACC" ; then
3054 cf_cv_prog_YACC="$YACC" # Let the user override the test.
3055 else
3056 cat >conftest.y <<EOF
3057 %{
3058 int yylex(void);
3059 void yyerror(const char *s);
3060 void yyerror(const char *s) { (void)s; }
3061 %}
3062 %token NUMBER
3063 %%
3064 time : NUMBER ':' NUMBER
3065 ;
3066 %%
3067 int yylex(void) { return NUMBER; }
3068 int main(void) { return yyparse(); }
3069 EOF
3070 for cf_prog in 'bison -y' byacc yacc
3071 do
3072 rm -f y.tab.ch
3073 echo "$as_me:3073: checking for $cf_prog" >&5
3074 echo $ECHO_N "checking for $cf_prog... $ECHO_C" >&6
3075 cf_command="$cf_prog conftest.y"
3076 cf_result=no
3077 if { (eval echo "$as_me:3077: \"$cf_command\"") >&5
3078 (eval $cf_command) 2>&5
3079 ac_status=$?
3080 echo "$as_me:3080: \$? = $ac_status" >&5
3081 (exit "$ac_status"); } && test -s y.tab.c ; then
3082 mv y.tab.c conftest.c
3083 rm -f y.tab.h
3084 if test "$cf_prog" = 'bison -y' ; then
3085 if { (eval echo "$as_me:3085: \"$ac_link\"") >&5
3086 (eval $ac_link) 2>&5
3087 ac_status=$?
3088 echo "$as_me:3088: \$? = $ac_status" >&5
3089 (exit "$ac_status"); } && test -s conftest ; then
3090 cf_result=yes
3091 fi
3092 else
3093 cf_result=yes
3094 fi
3095 fi
3096 echo "$as_me:3096: result: $cf_result" >&5
3097 echo "${ECHO_T}$cf_result" >&6
3098 if test $cf_result = yes ; then
3099 cf_cv_prog_YACC="$cf_prog"
3100 break
3101 fi
3102 done
3103 fi
3104
3105 fi
3106
3107 YACC="$cf_cv_prog_YACC"
3108
3109 for ac_prog in lint alint lclint tdlint splint
3110 do
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 echo "$as_me:3113: checking for $ac_word" >&5
3114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3115 if test "${ac_cv_prog_LINT+set}" = set; then
3116 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118 if test -n "$LINT"; then
3119 ac_cv_prog_LINT="$LINT" # Let the user override the test.
3120 else
3121 ac_save_IFS=$IFS; IFS=$ac_path_separator
3122 ac_dummy="$PATH"
3123 for ac_dir in $ac_dummy; do
3124 IFS=$ac_save_IFS
3125 test -z "$ac_dir" && ac_dir=.
3126 $as_executable_p "$ac_dir/$ac_word" || continue
3127 ac_cv_prog_LINT="$ac_prog"
3128 echo "$as_me:3128: found $ac_dir/$ac_word" >&5
3129 break
3130 done
3131
3132 fi
3133 fi
3134 LINT=$ac_cv_prog_LINT
3135 if test -n "$LINT"; then
3136 echo "$as_me:3136: result: $LINT" >&5
3137 echo "${ECHO_T}$LINT" >&6
3138 else
3139 echo "$as_me:3139: result: no" >&5
3140 echo "${ECHO_T}no" >&6
3141 fi
3142
3143 test -n "$LINT" && break
3144 done
3145 test -n "$LINT" || LINT=":"
3146
3147 echo "$as_me:3147: checking if the POSIX test-macros are already defined" >&5
3148 echo $ECHO_N "checking if the POSIX test-macros are already defined... $ECHO_C" >&6
3149 if test "${cf_cv_posix_visible+set}" = set; then
3150 echo $ECHO_N "(cached) $ECHO_C" >&6
3151 else
3152
3153 cat >"conftest.$ac_ext" <<_ACEOF
3154 #line 3154 "configure"
3155 #include "confdefs.h"
3156 #include <stdio.h>
3157 int
3158 main (void)
3159 {
3160
3161 #if defined(__POSIX_VISIBLE) && ((__POSIX_VISIBLE - 0L) > 0) \
3162 && defined(__XSI_VISIBLE) && ((__XSI_VISIBLE - 0L) > 0) \
3163 && defined(__BSD_VISIBLE) && ((__BSD_VISIBLE - 0L) > 0) \
3164 && defined(__ISO_C_VISIBLE) && ((__ISO_C_VISIBLE - 0L) > 0)
3165 #error conflicting symbols found
3166 #endif
3167
3168 ;
3169 return 0;
3170 }
3171 _ACEOF
3172 rm -f "conftest.$ac_objext"
3173 if { (eval echo "$as_me:3173: \"$ac_compile\"") >&5
3174 (eval $ac_compile) 2>&5
3175 ac_status=$?
3176 echo "$as_me:3176: \$? = $ac_status" >&5
3177 (exit "$ac_status"); } &&
3178 { ac_try='test -s "conftest.$ac_objext"'
3179 { (eval echo "$as_me:3179: \"$ac_try\"") >&5
3180 (eval $ac_try) 2>&5
3181 ac_status=$?
3182 echo "$as_me:3182: \$? = $ac_status" >&5
3183 (exit "$ac_status"); }; }; then
3184 cf_cv_posix_visible=no
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 cat "conftest.$ac_ext" >&5
3188 cf_cv_posix_visible=yes
3189 fi
3190 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3191
3192 fi
3193 echo "$as_me:3193: result: $cf_cv_posix_visible" >&5
3194 echo "${ECHO_T}$cf_cv_posix_visible" >&6
3195
3196 if test "$cf_cv_posix_visible" = no; then
3197
3198 cf_XOPEN_SOURCE=500
3199 cf_POSIX_C_SOURCE=199506L
3200 cf_xopen_source=
3201
3202 case "$host_os" in
3203 aix[4-7]*)
3204 cf_xopen_source="-D_ALL_SOURCE"
3205 ;;
3206 msys)
3207 cf_XOPEN_SOURCE=600
3208 ;;
3209 darwin[0-8].*)
3210 cf_xopen_source="-D_APPLE_C_SOURCE"
3211 ;;
3212 darwin*)
3213 cf_xopen_source="-D_DARWIN_C_SOURCE"
3214 cf_XOPEN_SOURCE=
3215 ;;
3216 freebsd*|dragonfly*|midnightbsd*)
3217 # 5.x headers associate
3218 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3219 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3220 cf_POSIX_C_SOURCE=200112L
3221 cf_XOPEN_SOURCE=600
3222 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3223 ;;
3224 hpux11*)
3225 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3226 ;;
3227 hpux*)
3228 cf_xopen_source="-D_HPUX_SOURCE"
3229 ;;
3230 irix[56].*)
3231 cf_xopen_source="-D_SGI_SOURCE"
3232 cf_XOPEN_SOURCE=
3233 ;;
3234 linux*gnu|linux*gnuabi64|linux*gnuabin32|linux*gnueabi|linux*gnueabihf|linux*gnux32|uclinux*|gnu*|mint*|k*bsd*-gnu|cygwin)
3235
3236 cf_gnu_xopen_source=$cf_XOPEN_SOURCE
3237
3238 echo "$as_me:3238: checking if this is the GNU C library" >&5
3239 echo $ECHO_N "checking if this is the GNU C library... $ECHO_C" >&6
3240 if test "${cf_cv_gnu_library+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 else
3243
3244 cat >"conftest.$ac_ext" <<_ACEOF
3245 #line 3245 "configure"
3246 #include "confdefs.h"
3247 #include <sys/types.h>
3248 int
3249 main (void)
3250 {
3251
3252 #if __GLIBC__ > 0 && __GLIBC_MINOR__ >= 0
3253 return 0;
3254 #elif __NEWLIB__ > 0 && __NEWLIB_MINOR__ >= 0
3255 return 0;
3256 #else
3257 # error not GNU C library
3258 #endif
3259 ;
3260 return 0;
3261 }
3262 _ACEOF
3263 rm -f "conftest.$ac_objext"
3264 if { (eval echo "$as_me:3264: \"$ac_compile\"") >&5
3265 (eval $ac_compile) 2>&5
3266 ac_status=$?
3267 echo "$as_me:3267: \$? = $ac_status" >&5
3268 (exit "$ac_status"); } &&
3269 { ac_try='test -s "conftest.$ac_objext"'
3270 { (eval echo "$as_me:3270: \"$ac_try\"") >&5
3271 (eval $ac_try) 2>&5
3272 ac_status=$?
3273 echo "$as_me:3273: \$? = $ac_status" >&5
3274 (exit "$ac_status"); }; }; then
3275 cf_cv_gnu_library=yes
3276 else
3277 echo "$as_me: failed program was:" >&5
3278 cat "conftest.$ac_ext" >&5
3279 cf_cv_gnu_library=no
3280 fi
3281 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3282
3283 fi
3284 echo "$as_me:3284: result: $cf_cv_gnu_library" >&5
3285 echo "${ECHO_T}$cf_cv_gnu_library" >&6
3286
3287 if test x$cf_cv_gnu_library = xyes; then
3288
3289 # With glibc 2.19 (13 years after this check was begun), _DEFAULT_SOURCE
3290 # was changed to help a little. newlib incorporated the change about 4
3291 # years later.
3292 echo "$as_me:3292: checking if _DEFAULT_SOURCE can be used as a basis" >&5
3293 echo $ECHO_N "checking if _DEFAULT_SOURCE can be used as a basis... $ECHO_C" >&6
3294 if test "${cf_cv_gnu_library_219+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297
3298 cf_save="$CPPFLAGS"
3299
3300 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3301 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3302
3303 cat >"conftest.$ac_ext" <<_ACEOF
3304 #line 3304 "configure"
3305 #include "confdefs.h"
3306 #include <sys/types.h>
3307 int
3308 main (void)
3309 {
3310
3311 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 19) || (__GLIBC__ > 2)
3312 return 0;
3313 #elif (__NEWLIB__ == 2 && __NEWLIB_MINOR__ >= 4) || (__GLIBC__ > 3)
3314 return 0;
3315 #else
3316 # error GNU C library __GLIBC__.__GLIBC_MINOR__ is too old
3317 #endif
3318 ;
3319 return 0;
3320 }
3321 _ACEOF
3322 rm -f "conftest.$ac_objext"
3323 if { (eval echo "$as_me:3323: \"$ac_compile\"") >&5
3324 (eval $ac_compile) 2>&5
3325 ac_status=$?
3326 echo "$as_me:3326: \$? = $ac_status" >&5
3327 (exit "$ac_status"); } &&
3328 { ac_try='test -s "conftest.$ac_objext"'
3329 { (eval echo "$as_me:3329: \"$ac_try\"") >&5
3330 (eval $ac_try) 2>&5
3331 ac_status=$?
3332 echo "$as_me:3332: \$? = $ac_status" >&5
3333 (exit "$ac_status"); }; }; then
3334 cf_cv_gnu_library_219=yes
3335 else
3336 echo "$as_me: failed program was:" >&5
3337 cat "conftest.$ac_ext" >&5
3338 cf_cv_gnu_library_219=no
3339 fi
3340 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3341 CPPFLAGS="$cf_save"
3342
3343 fi
3344 echo "$as_me:3344: result: $cf_cv_gnu_library_219" >&5
3345 echo "${ECHO_T}$cf_cv_gnu_library_219" >&6
3346
3347 if test "x$cf_cv_gnu_library_219" = xyes; then
3348 cf_save="$CPPFLAGS"
3349 echo "$as_me:3349: checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE" >&5
3350 echo $ECHO_N "checking if _XOPEN_SOURCE=$cf_gnu_xopen_source works with _DEFAULT_SOURCE... $ECHO_C" >&6
3351 if test "${cf_cv_gnu_dftsrc_219+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354
3355 cf_fix_cppflags=no
3356 cf_new_cflags=
3357 cf_new_cppflags=
3358 cf_new_extra_cppflags=
3359
3360 for cf_add_cflags in -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=$cf_gnu_xopen_source
3361 do
3362 case "$cf_fix_cppflags" in
3363 no)
3364 case "$cf_add_cflags" in
3365 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3366 case "$cf_add_cflags" in
3367 -D*)
3368 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3369
3370 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3371 && test -z "${cf_tst_cflags}" \
3372 && cf_fix_cppflags=yes
3373
3374 if test "$cf_fix_cppflags" = yes ; then
3375
3376 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3377 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3378
3379 continue
3380 elif test "${cf_tst_cflags}" = "\"'" ; then
3381
3382 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3383 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3384
3385 continue
3386 fi
3387 ;;
3388 esac
3389 case "$CPPFLAGS" in
3390 *$cf_add_cflags)
3391 ;;
3392 *)
3393 case "$cf_add_cflags" in
3394 -D*)
3395 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3396
3397 CPPFLAGS=`echo "$CPPFLAGS" | \
3398 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3399 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3400
3401 ;;
3402 esac
3403
3404 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3405 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3406
3407 ;;
3408 esac
3409 ;;
3410 *)
3411
3412 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3413 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3414
3415 ;;
3416 esac
3417 ;;
3418 yes)
3419
3420 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3421 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3422
3423 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3424
3425 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3426 && test -z "${cf_tst_cflags}" \
3427 && cf_fix_cppflags=no
3428 ;;
3429 esac
3430 done
3431
3432 if test -n "$cf_new_cflags" ; then
3433
3434 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3435 CFLAGS="${CFLAGS}$cf_new_cflags"
3436
3437 fi
3438
3439 if test -n "$cf_new_cppflags" ; then
3440
3441 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3442 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3443
3444 fi
3445
3446 if test -n "$cf_new_extra_cppflags" ; then
3447
3448 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3449 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3450
3451 fi
3452
3453 cat >"conftest.$ac_ext" <<_ACEOF
3454 #line 3454 "configure"
3455 #include "confdefs.h"
3456
3457 #include <limits.h>
3458 #include <sys/types.h>
3459
3460 int
3461 main (void)
3462 {
3463
3464 #if (_XOPEN_SOURCE >= $cf_gnu_xopen_source) && (MB_LEN_MAX > 1)
3465 return 0;
3466 #else
3467 # error GNU C library is too old
3468 #endif
3469 ;
3470 return 0;
3471 }
3472 _ACEOF
3473 rm -f "conftest.$ac_objext"
3474 if { (eval echo "$as_me:3474: \"$ac_compile\"") >&5
3475 (eval $ac_compile) 2>&5
3476 ac_status=$?
3477 echo "$as_me:3477: \$? = $ac_status" >&5
3478 (exit "$ac_status"); } &&
3479 { ac_try='test -s "conftest.$ac_objext"'
3480 { (eval echo "$as_me:3480: \"$ac_try\"") >&5
3481 (eval $ac_try) 2>&5
3482 ac_status=$?
3483 echo "$as_me:3483: \$? = $ac_status" >&5
3484 (exit "$ac_status"); }; }; then
3485 cf_cv_gnu_dftsrc_219=yes
3486 else
3487 echo "$as_me: failed program was:" >&5
3488 cat "conftest.$ac_ext" >&5
3489 cf_cv_gnu_dftsrc_219=no
3490 fi
3491 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3492
3493 fi
3494 echo "$as_me:3494: result: $cf_cv_gnu_dftsrc_219" >&5
3495 echo "${ECHO_T}$cf_cv_gnu_dftsrc_219" >&6
3496 test "x$cf_cv_gnu_dftsrc_219" = "xyes" || CPPFLAGS="$cf_save"
3497 else
3498 cf_cv_gnu_dftsrc_219=maybe
3499 fi
3500
3501 if test "x$cf_cv_gnu_dftsrc_219" != xyes; then
3502
3503 echo "$as_me:3503: checking if we must define _GNU_SOURCE" >&5
3504 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3505 if test "${cf_cv_gnu_source+set}" = set; then
3506 echo $ECHO_N "(cached) $ECHO_C" >&6
3507 else
3508
3509 cat >"conftest.$ac_ext" <<_ACEOF
3510 #line 3510 "configure"
3511 #include "confdefs.h"
3512 #include <sys/types.h>
3513 int
3514 main (void)
3515 {
3516
3517 #ifndef _XOPEN_SOURCE
3518 #error expected _XOPEN_SOURCE to be defined
3519 #endif
3520 ;
3521 return 0;
3522 }
3523 _ACEOF
3524 rm -f "conftest.$ac_objext"
3525 if { (eval echo "$as_me:3525: \"$ac_compile\"") >&5
3526 (eval $ac_compile) 2>&5
3527 ac_status=$?
3528 echo "$as_me:3528: \$? = $ac_status" >&5
3529 (exit "$ac_status"); } &&
3530 { ac_try='test -s "conftest.$ac_objext"'
3531 { (eval echo "$as_me:3531: \"$ac_try\"") >&5
3532 (eval $ac_try) 2>&5
3533 ac_status=$?
3534 echo "$as_me:3534: \$? = $ac_status" >&5
3535 (exit "$ac_status"); }; }; then
3536 cf_cv_gnu_source=no
3537 else
3538 echo "$as_me: failed program was:" >&5
3539 cat "conftest.$ac_ext" >&5
3540 cf_save="$CPPFLAGS"
3541
3542 cf_fix_cppflags=no
3543 cf_new_cflags=
3544 cf_new_cppflags=
3545 cf_new_extra_cppflags=
3546
3547 for cf_add_cflags in -D_GNU_SOURCE
3548 do
3549 case "$cf_fix_cppflags" in
3550 no)
3551 case "$cf_add_cflags" in
3552 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3553 case "$cf_add_cflags" in
3554 -D*)
3555 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3556
3557 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3558 && test -z "${cf_tst_cflags}" \
3559 && cf_fix_cppflags=yes
3560
3561 if test "$cf_fix_cppflags" = yes ; then
3562
3563 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3564 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3565
3566 continue
3567 elif test "${cf_tst_cflags}" = "\"'" ; then
3568
3569 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3570 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3571
3572 continue
3573 fi
3574 ;;
3575 esac
3576 case "$CPPFLAGS" in
3577 *$cf_add_cflags)
3578 ;;
3579 *)
3580 case "$cf_add_cflags" in
3581 -D*)
3582 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3583
3584 CPPFLAGS=`echo "$CPPFLAGS" | \
3585 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3586 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3587
3588 ;;
3589 esac
3590
3591 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3592 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3593
3594 ;;
3595 esac
3596 ;;
3597 *)
3598
3599 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3600 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3601
3602 ;;
3603 esac
3604 ;;
3605 yes)
3606
3607 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3608 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3609
3610 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3611
3612 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3613 && test -z "${cf_tst_cflags}" \
3614 && cf_fix_cppflags=no
3615 ;;
3616 esac
3617 done
3618
3619 if test -n "$cf_new_cflags" ; then
3620
3621 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3622 CFLAGS="${CFLAGS}$cf_new_cflags"
3623
3624 fi
3625
3626 if test -n "$cf_new_cppflags" ; then
3627
3628 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3629 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
3630
3631 fi
3632
3633 if test -n "$cf_new_extra_cppflags" ; then
3634
3635 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
3636 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
3637
3638 fi
3639
3640 cat >"conftest.$ac_ext" <<_ACEOF
3641 #line 3641 "configure"
3642 #include "confdefs.h"
3643 #include <sys/types.h>
3644 int
3645 main (void)
3646 {
3647
3648 #ifdef _XOPEN_SOURCE
3649 #error expected _XOPEN_SOURCE to be undefined
3650 #endif
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 rm -f "conftest.$ac_objext"
3656 if { (eval echo "$as_me:3656: \"$ac_compile\"") >&5
3657 (eval $ac_compile) 2>&5
3658 ac_status=$?
3659 echo "$as_me:3659: \$? = $ac_status" >&5
3660 (exit "$ac_status"); } &&
3661 { ac_try='test -s "conftest.$ac_objext"'
3662 { (eval echo "$as_me:3662: \"$ac_try\"") >&5
3663 (eval $ac_try) 2>&5
3664 ac_status=$?
3665 echo "$as_me:3665: \$? = $ac_status" >&5
3666 (exit "$ac_status"); }; }; then
3667 cf_cv_gnu_source=no
3668 else
3669 echo "$as_me: failed program was:" >&5
3670 cat "conftest.$ac_ext" >&5
3671 cf_cv_gnu_source=yes
3672 fi
3673 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3674 CPPFLAGS="$cf_save"
3675
3676 fi
3677 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3678
3679 fi
3680 echo "$as_me:3680: result: $cf_cv_gnu_source" >&5
3681 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3682
3683 if test "$cf_cv_gnu_source" = yes
3684 then
3685 echo "$as_me:3685: checking if we should also define _DEFAULT_SOURCE" >&5
3686 echo $ECHO_N "checking if we should also define _DEFAULT_SOURCE... $ECHO_C" >&6
3687 if test "${cf_cv_default_source+set}" = set; then
3688 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 else
3690
3691 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3692 CPPFLAGS="${CPPFLAGS}-D_GNU_SOURCE"
3693
3694 cat >"conftest.$ac_ext" <<_ACEOF
3695 #line 3695 "configure"
3696 #include "confdefs.h"
3697 #include <sys/types.h>
3698 int
3699 main (void)
3700 {
3701
3702 #ifdef _DEFAULT_SOURCE
3703 #error expected _DEFAULT_SOURCE to be undefined
3704 #endif
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 rm -f "conftest.$ac_objext"
3710 if { (eval echo "$as_me:3710: \"$ac_compile\"") >&5
3711 (eval $ac_compile) 2>&5
3712 ac_status=$?
3713 echo "$as_me:3713: \$? = $ac_status" >&5
3714 (exit "$ac_status"); } &&
3715 { ac_try='test -s "conftest.$ac_objext"'
3716 { (eval echo "$as_me:3716: \"$ac_try\"") >&5
3717 (eval $ac_try) 2>&5
3718 ac_status=$?
3719 echo "$as_me:3719: \$? = $ac_status" >&5
3720 (exit "$ac_status"); }; }; then
3721 cf_cv_default_source=no
3722 else
3723 echo "$as_me: failed program was:" >&5
3724 cat "conftest.$ac_ext" >&5
3725 cf_cv_default_source=yes
3726 fi
3727 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3728
3729 fi
3730 echo "$as_me:3730: result: $cf_cv_default_source" >&5
3731 echo "${ECHO_T}$cf_cv_default_source" >&6
3732 if test "$cf_cv_default_source" = yes
3733 then
3734
3735 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3736 CPPFLAGS="${CPPFLAGS}-D_DEFAULT_SOURCE"
3737
3738 fi
3739 fi
3740 fi
3741
3742 fi
3743
3744 ;;
3745 minix*)
3746 cf_xopen_source="-D_NETBSD_SOURCE" # POSIX.1-2001 features are ifdef'd with this...
3747 ;;
3748 mirbsd*)
3749 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3750 cf_XOPEN_SOURCE=
3751
3752 if test "$cf_cv_posix_visible" = no; then
3753
3754 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3755
3756 cf_save_CFLAGS="$CFLAGS"
3757 cf_save_CPPFLAGS="$CPPFLAGS"
3758
3759 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3760 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3761 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3762
3763 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3764 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3765 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3766
3767 echo "$as_me:3767: checking if we should define _POSIX_C_SOURCE" >&5
3768 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3769 if test "${cf_cv_posix_c_source+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772
3773 echo "${as_me:-configure}:3773: testing if the symbol is already defined go no further ..." 1>&5
3774
3775 cat >"conftest.$ac_ext" <<_ACEOF
3776 #line 3776 "configure"
3777 #include "confdefs.h"
3778 #include <sys/types.h>
3779 int
3780 main (void)
3781 {
3782
3783 #ifndef _POSIX_C_SOURCE
3784 make an error
3785 #endif
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f "conftest.$ac_objext"
3791 if { (eval echo "$as_me:3791: \"$ac_compile\"") >&5
3792 (eval $ac_compile) 2>&5
3793 ac_status=$?
3794 echo "$as_me:3794: \$? = $ac_status" >&5
3795 (exit "$ac_status"); } &&
3796 { ac_try='test -s "conftest.$ac_objext"'
3797 { (eval echo "$as_me:3797: \"$ac_try\"") >&5
3798 (eval $ac_try) 2>&5
3799 ac_status=$?
3800 echo "$as_me:3800: \$? = $ac_status" >&5
3801 (exit "$ac_status"); }; }; then
3802 cf_cv_posix_c_source=no
3803 else
3804 echo "$as_me: failed program was:" >&5
3805 cat "conftest.$ac_ext" >&5
3806 cf_want_posix_source=no
3807 case .$cf_POSIX_C_SOURCE in
3808 .[12]??*)
3809 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3810 ;;
3811 .2)
3812 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3813 cf_want_posix_source=yes
3814 ;;
3815 .*)
3816 cf_want_posix_source=yes
3817 ;;
3818 esac
3819 if test "$cf_want_posix_source" = yes ; then
3820 cat >"conftest.$ac_ext" <<_ACEOF
3821 #line 3821 "configure"
3822 #include "confdefs.h"
3823 #include <sys/types.h>
3824 int
3825 main (void)
3826 {
3827
3828 #ifdef _POSIX_SOURCE
3829 make an error
3830 #endif
3831 ;
3832 return 0;
3833 }
3834 _ACEOF
3835 rm -f "conftest.$ac_objext"
3836 if { (eval echo "$as_me:3836: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>&5
3838 ac_status=$?
3839 echo "$as_me:3839: \$? = $ac_status" >&5
3840 (exit "$ac_status"); } &&
3841 { ac_try='test -s "conftest.$ac_objext"'
3842 { (eval echo "$as_me:3842: \"$ac_try\"") >&5
3843 (eval $ac_try) 2>&5
3844 ac_status=$?
3845 echo "$as_me:3845: \$? = $ac_status" >&5
3846 (exit "$ac_status"); }; }; then
3847 :
3848 else
3849 echo "$as_me: failed program was:" >&5
3850 cat "conftest.$ac_ext" >&5
3851 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3852 fi
3853 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3854 fi
3855
3856 echo "${as_me:-configure}:3856: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3857
3858 CFLAGS="$cf_trim_CFLAGS"
3859 CPPFLAGS="$cf_trim_CPPFLAGS"
3860
3861 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
3862 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
3863
3864 echo "${as_me:-configure}:3864: testing if the second compile does not leave our definition intact error ..." 1>&5
3865
3866 cat >"conftest.$ac_ext" <<_ACEOF
3867 #line 3867 "configure"
3868 #include "confdefs.h"
3869 #include <sys/types.h>
3870 int
3871 main (void)
3872 {
3873
3874 #ifndef _POSIX_C_SOURCE
3875 make an error
3876 #endif
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 rm -f "conftest.$ac_objext"
3882 if { (eval echo "$as_me:3882: \"$ac_compile\"") >&5
3883 (eval $ac_compile) 2>&5
3884 ac_status=$?
3885 echo "$as_me:3885: \$? = $ac_status" >&5
3886 (exit "$ac_status"); } &&
3887 { ac_try='test -s "conftest.$ac_objext"'
3888 { (eval echo "$as_me:3888: \"$ac_try\"") >&5
3889 (eval $ac_try) 2>&5
3890 ac_status=$?
3891 echo "$as_me:3891: \$? = $ac_status" >&5
3892 (exit "$ac_status"); }; }; then
3893 :
3894 else
3895 echo "$as_me: failed program was:" >&5
3896 cat "conftest.$ac_ext" >&5
3897 cf_cv_posix_c_source=no
3898 fi
3899 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3900 CFLAGS="$cf_save_CFLAGS"
3901 CPPFLAGS="$cf_save_CPPFLAGS"
3902
3903 fi
3904 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
3905
3906 fi
3907 echo "$as_me:3907: result: $cf_cv_posix_c_source" >&5
3908 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3909
3910 if test "$cf_cv_posix_c_source" != no ; then
3911 CFLAGS="$cf_trim_CFLAGS"
3912 CPPFLAGS="$cf_trim_CPPFLAGS"
3913
3914 cf_fix_cppflags=no
3915 cf_new_cflags=
3916 cf_new_cppflags=
3917 cf_new_extra_cppflags=
3918
3919 for cf_add_cflags in $cf_cv_posix_c_source
3920 do
3921 case "$cf_fix_cppflags" in
3922 no)
3923 case "$cf_add_cflags" in
3924 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
3925 case "$cf_add_cflags" in
3926 -D*)
3927 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3928
3929 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3930 && test -z "${cf_tst_cflags}" \
3931 && cf_fix_cppflags=yes
3932
3933 if test "$cf_fix_cppflags" = yes ; then
3934
3935 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3936 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3937
3938 continue
3939 elif test "${cf_tst_cflags}" = "\"'" ; then
3940
3941 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3942 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3943
3944 continue
3945 fi
3946 ;;
3947 esac
3948 case "$CPPFLAGS" in
3949 *$cf_add_cflags)
3950 ;;
3951 *)
3952 case "$cf_add_cflags" in
3953 -D*)
3954 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3955
3956 CPPFLAGS=`echo "$CPPFLAGS" | \
3957 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3958 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3959
3960 ;;
3961 esac
3962
3963 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
3964 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
3965
3966 ;;
3967 esac
3968 ;;
3969 *)
3970
3971 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
3972 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
3973
3974 ;;
3975 esac
3976 ;;
3977 yes)
3978
3979 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
3980 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
3981
3982 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
3983
3984 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
3985 && test -z "${cf_tst_cflags}" \
3986 && cf_fix_cppflags=no
3987 ;;
3988 esac
3989 done
3990
3991 if test -n "$cf_new_cflags" ; then
3992
3993 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
3994 CFLAGS="${CFLAGS}$cf_new_cflags"
3995
3996 fi
3997
3998 if test -n "$cf_new_cppflags" ; then
3999
4000 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4001 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4002
4003 fi
4004
4005 if test -n "$cf_new_extra_cppflags" ; then
4006
4007 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4008 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4009
4010 fi
4011
4012 fi
4013
4014 fi # cf_cv_posix_visible
4015
4016 ;;
4017 netbsd*)
4018 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
4019 ;;
4020 openbsd[6-9]*)
4021 # OpenBSD 6.x has broken locale support, both compile-time and runtime.
4022 # see https://www.mail-archive.com/bugs@openbsd.org/msg13200.html
4023 # Abusing the conformance level is a workaround.
4024 { echo "$as_me:4024: WARNING: this system does not provide usable locale support" >&5
4025 echo "$as_me: WARNING: this system does not provide usable locale support" >&2;}
4026 cf_xopen_source="-D_BSD_SOURCE"
4027 cf_XOPEN_SOURCE=700
4028 ;;
4029 openbsd[4-5]*)
4030 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
4031 cf_xopen_source="-D_BSD_SOURCE"
4032 cf_XOPEN_SOURCE=600
4033 ;;
4034 openbsd*)
4035 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
4036 ;;
4037 osf[45]*)
4038 cf_xopen_source="-D_OSF_SOURCE"
4039 ;;
4040 nto-qnx*)
4041 cf_xopen_source="-D_QNX_SOURCE"
4042 ;;
4043 sco*)
4044 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
4045 ;;
4046 solaris2.*)
4047 cf_xopen_source="-D__EXTENSIONS__"
4048 cf_cv_xopen_source=broken
4049 ;;
4050 sysv4.2uw2.*) # Novell/SCO UnixWare 2.x (tested on 2.1.2)
4051 cf_XOPEN_SOURCE=
4052 cf_POSIX_C_SOURCE=
4053 ;;
4054 *)
4055
4056 echo "$as_me:4056: checking if we should define _XOPEN_SOURCE" >&5
4057 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4058 if test "${cf_cv_xopen_source+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061
4062 cat >"conftest.$ac_ext" <<_ACEOF
4063 #line 4063 "configure"
4064 #include "confdefs.h"
4065
4066 #include <stdlib.h>
4067 #include <string.h>
4068 #include <sys/types.h>
4069
4070 int
4071 main (void)
4072 {
4073
4074 #ifndef _XOPEN_SOURCE
4075 make an error
4076 #endif
4077
4078 ;
4079 return 0;
4080 }
4081 _ACEOF
4082 rm -f "conftest.$ac_objext"
4083 if { (eval echo "$as_me:4083: \"$ac_compile\"") >&5
4084 (eval $ac_compile) 2>&5
4085 ac_status=$?
4086 echo "$as_me:4086: \$? = $ac_status" >&5
4087 (exit "$ac_status"); } &&
4088 { ac_try='test -s "conftest.$ac_objext"'
4089 { (eval echo "$as_me:4089: \"$ac_try\"") >&5
4090 (eval $ac_try) 2>&5
4091 ac_status=$?
4092 echo "$as_me:4092: \$? = $ac_status" >&5
4093 (exit "$ac_status"); }; }; then
4094 cf_cv_xopen_source=no
4095 else
4096 echo "$as_me: failed program was:" >&5
4097 cat "conftest.$ac_ext" >&5
4098 cf_save="$CPPFLAGS"
4099
4100 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4101 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4102
4103 cat >"conftest.$ac_ext" <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4106
4107 #include <stdlib.h>
4108 #include <string.h>
4109 #include <sys/types.h>
4110
4111 int
4112 main (void)
4113 {
4114
4115 #ifndef _XOPEN_SOURCE
4116 make an error
4117 #endif
4118
4119 ;
4120 return 0;
4121 }
4122 _ACEOF
4123 rm -f "conftest.$ac_objext"
4124 if { (eval echo "$as_me:4124: \"$ac_compile\"") >&5
4125 (eval $ac_compile) 2>&5
4126 ac_status=$?
4127 echo "$as_me:4127: \$? = $ac_status" >&5
4128 (exit "$ac_status"); } &&
4129 { ac_try='test -s "conftest.$ac_objext"'
4130 { (eval echo "$as_me:4130: \"$ac_try\"") >&5
4131 (eval $ac_try) 2>&5
4132 ac_status=$?
4133 echo "$as_me:4133: \$? = $ac_status" >&5
4134 (exit "$ac_status"); }; }; then
4135 cf_cv_xopen_source=no
4136 else
4137 echo "$as_me: failed program was:" >&5
4138 cat "conftest.$ac_ext" >&5
4139 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4140 fi
4141 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4142 CPPFLAGS="$cf_save"
4143
4144 fi
4145 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4146
4147 fi
4148 echo "$as_me:4148: result: $cf_cv_xopen_source" >&5
4149 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4150
4151 if test "$cf_cv_xopen_source" != no ; then
4152
4153 CFLAGS=`echo "$CFLAGS" | \
4154 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4155 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4156
4157 CPPFLAGS=`echo "$CPPFLAGS" | \
4158 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4159 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4160
4161 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4162
4163 for cf_add_cflags in $cf_temp_xopen_source
4164 do
4165 case "x$cf_add_cflags" in
4166 x-[DU]*)
4167
4168 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4169 while true
4170 do
4171 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4172 test "$CFLAGS" != "$cf_old_cflag" || break
4173
4174 CFLAGS="$cf_old_cflag"
4175 done
4176
4177 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4178 while true
4179 do
4180 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4181 test "$CPPFLAGS" != "$cf_old_cflag" || break
4182
4183 CPPFLAGS="$cf_old_cflag"
4184 done
4185
4186 ;;
4187 esac
4188
4189 cf_fix_cppflags=no
4190 cf_new_cflags=
4191 cf_new_cppflags=
4192 cf_new_extra_cppflags=
4193
4194 for cf_add_cflags in $cf_add_cflags
4195 do
4196 case "$cf_fix_cppflags" in
4197 no)
4198 case "$cf_add_cflags" in
4199 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4200 case "$cf_add_cflags" in
4201 -D*)
4202 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4203
4204 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4205 && test -z "${cf_tst_cflags}" \
4206 && cf_fix_cppflags=yes
4207
4208 if test "$cf_fix_cppflags" = yes ; then
4209
4210 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4211 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4212
4213 continue
4214 elif test "${cf_tst_cflags}" = "\"'" ; then
4215
4216 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4217 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4218
4219 continue
4220 fi
4221 ;;
4222 esac
4223 case "$CPPFLAGS" in
4224 *$cf_add_cflags)
4225 ;;
4226 *)
4227 case "$cf_add_cflags" in
4228 -D*)
4229 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4230
4231 CPPFLAGS=`echo "$CPPFLAGS" | \
4232 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4233 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4234
4235 ;;
4236 esac
4237
4238 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4239 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4240
4241 ;;
4242 esac
4243 ;;
4244 *)
4245
4246 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4247 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4248
4249 ;;
4250 esac
4251 ;;
4252 yes)
4253
4254 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4255 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4256
4257 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4258
4259 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4260 && test -z "${cf_tst_cflags}" \
4261 && cf_fix_cppflags=no
4262 ;;
4263 esac
4264 done
4265
4266 if test -n "$cf_new_cflags" ; then
4267
4268 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4269 CFLAGS="${CFLAGS}$cf_new_cflags"
4270
4271 fi
4272
4273 if test -n "$cf_new_cppflags" ; then
4274
4275 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4276 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4277
4278 fi
4279
4280 if test -n "$cf_new_extra_cppflags" ; then
4281
4282 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4283 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4284
4285 fi
4286
4287 done
4288
4289 fi
4290
4291 cf_save_xopen_cppflags="$CPPFLAGS"
4292
4293 if test "$cf_cv_posix_visible" = no; then
4294
4295 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4296
4297 cf_save_CFLAGS="$CFLAGS"
4298 cf_save_CPPFLAGS="$CPPFLAGS"
4299
4300 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4301 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4302 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4303
4304 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4305 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4306 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4307
4308 echo "$as_me:4308: checking if we should define _POSIX_C_SOURCE" >&5
4309 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4310 if test "${cf_cv_posix_c_source+set}" = set; then
4311 echo $ECHO_N "(cached) $ECHO_C" >&6
4312 else
4313
4314 echo "${as_me:-configure}:4314: testing if the symbol is already defined go no further ..." 1>&5
4315
4316 cat >"conftest.$ac_ext" <<_ACEOF
4317 #line 4317 "configure"
4318 #include "confdefs.h"
4319 #include <sys/types.h>
4320 int
4321 main (void)
4322 {
4323
4324 #ifndef _POSIX_C_SOURCE
4325 make an error
4326 #endif
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 rm -f "conftest.$ac_objext"
4332 if { (eval echo "$as_me:4332: \"$ac_compile\"") >&5
4333 (eval $ac_compile) 2>&5
4334 ac_status=$?
4335 echo "$as_me:4335: \$? = $ac_status" >&5
4336 (exit "$ac_status"); } &&
4337 { ac_try='test -s "conftest.$ac_objext"'
4338 { (eval echo "$as_me:4338: \"$ac_try\"") >&5
4339 (eval $ac_try) 2>&5
4340 ac_status=$?
4341 echo "$as_me:4341: \$? = $ac_status" >&5
4342 (exit "$ac_status"); }; }; then
4343 cf_cv_posix_c_source=no
4344 else
4345 echo "$as_me: failed program was:" >&5
4346 cat "conftest.$ac_ext" >&5
4347 cf_want_posix_source=no
4348 case .$cf_POSIX_C_SOURCE in
4349 .[12]??*)
4350 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4351 ;;
4352 .2)
4353 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4354 cf_want_posix_source=yes
4355 ;;
4356 .*)
4357 cf_want_posix_source=yes
4358 ;;
4359 esac
4360 if test "$cf_want_posix_source" = yes ; then
4361 cat >"conftest.$ac_ext" <<_ACEOF
4362 #line 4362 "configure"
4363 #include "confdefs.h"
4364 #include <sys/types.h>
4365 int
4366 main (void)
4367 {
4368
4369 #ifdef _POSIX_SOURCE
4370 make an error
4371 #endif
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 rm -f "conftest.$ac_objext"
4377 if { (eval echo "$as_me:4377: \"$ac_compile\"") >&5
4378 (eval $ac_compile) 2>&5
4379 ac_status=$?
4380 echo "$as_me:4380: \$? = $ac_status" >&5
4381 (exit "$ac_status"); } &&
4382 { ac_try='test -s "conftest.$ac_objext"'
4383 { (eval echo "$as_me:4383: \"$ac_try\"") >&5
4384 (eval $ac_try) 2>&5
4385 ac_status=$?
4386 echo "$as_me:4386: \$? = $ac_status" >&5
4387 (exit "$ac_status"); }; }; then
4388 :
4389 else
4390 echo "$as_me: failed program was:" >&5
4391 cat "conftest.$ac_ext" >&5
4392 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4393 fi
4394 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4395 fi
4396
4397 echo "${as_me:-configure}:4397: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4398
4399 CFLAGS="$cf_trim_CFLAGS"
4400 CPPFLAGS="$cf_trim_CPPFLAGS"
4401
4402 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4403 CPPFLAGS="${CPPFLAGS}$cf_cv_posix_c_source"
4404
4405 echo "${as_me:-configure}:4405: testing if the second compile does not leave our definition intact error ..." 1>&5
4406
4407 cat >"conftest.$ac_ext" <<_ACEOF
4408 #line 4408 "configure"
4409 #include "confdefs.h"
4410 #include <sys/types.h>
4411 int
4412 main (void)
4413 {
4414
4415 #ifndef _POSIX_C_SOURCE
4416 make an error
4417 #endif
4418 ;
4419 return 0;
4420 }
4421 _ACEOF
4422 rm -f "conftest.$ac_objext"
4423 if { (eval echo "$as_me:4423: \"$ac_compile\"") >&5
4424 (eval $ac_compile) 2>&5
4425 ac_status=$?
4426 echo "$as_me:4426: \$? = $ac_status" >&5
4427 (exit "$ac_status"); } &&
4428 { ac_try='test -s "conftest.$ac_objext"'
4429 { (eval echo "$as_me:4429: \"$ac_try\"") >&5
4430 (eval $ac_try) 2>&5
4431 ac_status=$?
4432 echo "$as_me:4432: \$? = $ac_status" >&5
4433 (exit "$ac_status"); }; }; then
4434 :
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 cat "conftest.$ac_ext" >&5
4438 cf_cv_posix_c_source=no
4439 fi
4440 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4441 CFLAGS="$cf_save_CFLAGS"
4442 CPPFLAGS="$cf_save_CPPFLAGS"
4443
4444 fi
4445 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4446
4447 fi
4448 echo "$as_me:4448: result: $cf_cv_posix_c_source" >&5
4449 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4450
4451 if test "$cf_cv_posix_c_source" != no ; then
4452 CFLAGS="$cf_trim_CFLAGS"
4453 CPPFLAGS="$cf_trim_CPPFLAGS"
4454
4455 cf_fix_cppflags=no
4456 cf_new_cflags=
4457 cf_new_cppflags=
4458 cf_new_extra_cppflags=
4459
4460 for cf_add_cflags in $cf_cv_posix_c_source
4461 do
4462 case "$cf_fix_cppflags" in
4463 no)
4464 case "$cf_add_cflags" in
4465 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4466 case "$cf_add_cflags" in
4467 -D*)
4468 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4469
4470 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4471 && test -z "${cf_tst_cflags}" \
4472 && cf_fix_cppflags=yes
4473
4474 if test "$cf_fix_cppflags" = yes ; then
4475
4476 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4477 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4478
4479 continue
4480 elif test "${cf_tst_cflags}" = "\"'" ; then
4481
4482 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4483 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4484
4485 continue
4486 fi
4487 ;;
4488 esac
4489 case "$CPPFLAGS" in
4490 *$cf_add_cflags)
4491 ;;
4492 *)
4493 case "$cf_add_cflags" in
4494 -D*)
4495 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4496
4497 CPPFLAGS=`echo "$CPPFLAGS" | \
4498 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4499 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4500
4501 ;;
4502 esac
4503
4504 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4505 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4506
4507 ;;
4508 esac
4509 ;;
4510 *)
4511
4512 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4513 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4514
4515 ;;
4516 esac
4517 ;;
4518 yes)
4519
4520 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4521 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4522
4523 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4524
4525 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4526 && test -z "${cf_tst_cflags}" \
4527 && cf_fix_cppflags=no
4528 ;;
4529 esac
4530 done
4531
4532 if test -n "$cf_new_cflags" ; then
4533
4534 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4535 CFLAGS="${CFLAGS}$cf_new_cflags"
4536
4537 fi
4538
4539 if test -n "$cf_new_cppflags" ; then
4540
4541 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4542 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4543
4544 fi
4545
4546 if test -n "$cf_new_extra_cppflags" ; then
4547
4548 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4549 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4550
4551 fi
4552
4553 fi
4554
4555 fi # cf_cv_posix_visible
4556
4557 # Some of these niche implementations use copy/paste, double-check...
4558 test -n "$verbose" && echo " checking if _POSIX_C_SOURCE inteferes" 1>&6
4559
4560 echo "${as_me:-configure}:4560: testing checking if _POSIX_C_SOURCE inteferes ..." 1>&5
4561
4562 cat >"conftest.$ac_ext" <<_ACEOF
4563 #line 4563 "configure"
4564 #include "confdefs.h"
4565
4566 #include <stdlib.h>
4567 #include <string.h>
4568 #include <sys/types.h>
4569
4570 int
4571 main (void)
4572 {
4573
4574 #ifndef _XOPEN_SOURCE
4575 make an error
4576 #endif
4577
4578 ;
4579 return 0;
4580 }
4581 _ACEOF
4582 rm -f "conftest.$ac_objext"
4583 if { (eval echo "$as_me:4583: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>&5
4585 ac_status=$?
4586 echo "$as_me:4586: \$? = $ac_status" >&5
4587 (exit "$ac_status"); } &&
4588 { ac_try='test -s "conftest.$ac_objext"'
4589 { (eval echo "$as_me:4589: \"$ac_try\"") >&5
4590 (eval $ac_try) 2>&5
4591 ac_status=$?
4592 echo "$as_me:4592: \$? = $ac_status" >&5
4593 (exit "$ac_status"); }; }; then
4594 :
4595 else
4596 echo "$as_me: failed program was:" >&5
4597 cat "conftest.$ac_ext" >&5
4598
4599 { echo "$as_me:4599: WARNING: _POSIX_C_SOURCE definition is not usable" >&5
4600 echo "$as_me: WARNING: _POSIX_C_SOURCE definition is not usable" >&2;}
4601 CPPFLAGS="$cf_save_xopen_cppflags"
4602 fi
4603 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4604 ;;
4605 esac
4606
4607 if test -n "$cf_xopen_source" ; then
4608
4609 for cf_add_cflags in $cf_xopen_source
4610 do
4611 case "x$cf_add_cflags" in
4612 x-[DU]*)
4613
4614 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4615 while true
4616 do
4617 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4618 test "$CFLAGS" != "$cf_old_cflag" || break
4619 test -n "$verbose" && echo " removing old option $cf_add_cflags from CFLAGS" 1>&6
4620
4621 echo "${as_me:-configure}:4621: testing removing old option $cf_add_cflags from CFLAGS ..." 1>&5
4622
4623 CFLAGS="$cf_old_cflag"
4624 done
4625
4626 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4627 while true
4628 do
4629 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4630 test "$CPPFLAGS" != "$cf_old_cflag" || break
4631 test -n "$verbose" && echo " removing old option $cf_add_cflags from CPPFLAGS" 1>&6
4632
4633 echo "${as_me:-configure}:4633: testing removing old option $cf_add_cflags from CPPFLAGS ..." 1>&5
4634
4635 CPPFLAGS="$cf_old_cflag"
4636 done
4637
4638 ;;
4639 esac
4640
4641 cf_fix_cppflags=no
4642 cf_new_cflags=
4643 cf_new_cppflags=
4644 cf_new_extra_cppflags=
4645
4646 for cf_add_cflags in $cf_add_cflags
4647 do
4648 case "$cf_fix_cppflags" in
4649 no)
4650 case "$cf_add_cflags" in
4651 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4652 case "$cf_add_cflags" in
4653 -D*)
4654 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4655
4656 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4657 && test -z "${cf_tst_cflags}" \
4658 && cf_fix_cppflags=yes
4659
4660 if test "$cf_fix_cppflags" = yes ; then
4661
4662 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4663 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4664
4665 continue
4666 elif test "${cf_tst_cflags}" = "\"'" ; then
4667
4668 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4669 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4670
4671 continue
4672 fi
4673 ;;
4674 esac
4675 case "$CPPFLAGS" in
4676 *$cf_add_cflags)
4677 ;;
4678 *)
4679 case "$cf_add_cflags" in
4680 -D*)
4681 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4682
4683 CPPFLAGS=`echo "$CPPFLAGS" | \
4684 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4685 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4686
4687 ;;
4688 esac
4689
4690 test -n "$cf_new_cppflags" && cf_new_cppflags="$cf_new_cppflags "
4691 cf_new_cppflags="${cf_new_cppflags}$cf_add_cflags"
4692
4693 ;;
4694 esac
4695 ;;
4696 *)
4697
4698 test -n "$cf_new_cflags" && cf_new_cflags="$cf_new_cflags "
4699 cf_new_cflags="${cf_new_cflags}$cf_add_cflags"
4700
4701 ;;
4702 esac
4703 ;;
4704 yes)
4705
4706 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4707 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4708
4709 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^[^"]*"'\''//'`
4710
4711 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4712 && test -z "${cf_tst_cflags}" \
4713 && cf_fix_cppflags=no
4714 ;;
4715 esac
4716 done
4717
4718 if test -n "$cf_new_cflags" ; then
4719 test -n "$verbose" && echo " add to \$CFLAGS $cf_new_cflags" 1>&6
4720
4721 echo "${as_me:-configure}:4721: testing add to \$CFLAGS $cf_new_cflags ..." 1>&5
4722
4723 test -n "$CFLAGS" && CFLAGS="$CFLAGS "
4724 CFLAGS="${CFLAGS}$cf_new_cflags"
4725
4726 fi
4727
4728 if test -n "$cf_new_cppflags" ; then
4729 test -n "$verbose" && echo " add to \$CPPFLAGS $cf_new_cppflags" 1>&6
4730
4731 echo "${as_me:-configure}:4731: testing add to \$CPPFLAGS $cf_new_cppflags ..." 1>&5
4732
4733 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4734 CPPFLAGS="${CPPFLAGS}$cf_new_cppflags"
4735
4736 fi
4737
4738 if test -n "$cf_new_extra_cppflags" ; then
4739 test -n "$verbose" && echo " add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags" 1>&6
4740
4741 echo "${as_me:-configure}:4741: testing add to \$EXTRA_CPPFLAGS $cf_new_extra_cppflags ..." 1>&5
4742
4743 test -n "$EXTRA_CPPFLAGS" && EXTRA_CPPFLAGS="$EXTRA_CPPFLAGS "
4744 EXTRA_CPPFLAGS="${EXTRA_CPPFLAGS}$cf_new_extra_cppflags"
4745
4746 fi
4747
4748 done
4749
4750 fi
4751
4752 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4753 echo "$as_me:4753: checking if _XOPEN_SOURCE really is set" >&5
4754 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4755 cat >"conftest.$ac_ext" <<_ACEOF
4756 #line 4756 "configure"
4757 #include "confdefs.h"
4758 #include <stdlib.h>
4759 int
4760 main (void)
4761 {
4762
4763 #ifndef _XOPEN_SOURCE
4764 make an error
4765 #endif
4766 ;
4767 return 0;
4768 }
4769 _ACEOF
4770 rm -f "conftest.$ac_objext"
4771 if { (eval echo "$as_me:4771: \"$ac_compile\"") >&5
4772 (eval $ac_compile) 2>&5
4773 ac_status=$?
4774 echo "$as_me:4774: \$? = $ac_status" >&5
4775 (exit "$ac_status"); } &&
4776 { ac_try='test -s "conftest.$ac_objext"'
4777 { (eval echo "$as_me:4777: \"$ac_try\"") >&5
4778 (eval $ac_try) 2>&5
4779 ac_status=$?
4780 echo "$as_me:4780: \$? = $ac_status" >&5
4781 (exit "$ac_status"); }; }; then
4782 cf_XOPEN_SOURCE_set=yes
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 cat "conftest.$ac_ext" >&5
4786 cf_XOPEN_SOURCE_set=no
4787 fi
4788 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4789 echo "$as_me:4789: result: $cf_XOPEN_SOURCE_set" >&5
4790 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4791 if test "$cf_XOPEN_SOURCE_set" = yes
4792 then
4793 cat >"conftest.$ac_ext" <<_ACEOF
4794 #line 4794 "configure"
4795 #include "confdefs.h"
4796 #include <stdlib.h>
4797 int
4798 main (void)
4799 {
4800
4801 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4802 make an error
4803 #endif
4804 ;
4805 return 0;
4806 }
4807 _ACEOF
4808 rm -f "conftest.$ac_objext"
4809 if { (eval echo "$as_me:4809: \"$ac_compile\"") >&5
4810 (eval $ac_compile) 2>&5
4811 ac_status=$?
4812 echo "$as_me:4812: \$? = $ac_status" >&5
4813 (exit "$ac_status"); } &&
4814 { ac_try='test -s "conftest.$ac_objext"'
4815 { (eval echo "$as_me:4815: \"$ac_try\"") >&5
4816 (eval $ac_try) 2>&5
4817 ac_status=$?
4818 echo "$as_me:4818: \$? = $ac_status" >&5
4819 (exit "$ac_status"); }; }; then
4820 cf_XOPEN_SOURCE_set_ok=yes
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 cat "conftest.$ac_ext" >&5
4824 cf_XOPEN_SOURCE_set_ok=no
4825 fi
4826 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4827 if test "$cf_XOPEN_SOURCE_set_ok" = no
4828 then
4829 { echo "$as_me:4829: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4830 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4831 fi
4832 else
4833
4834 echo "$as_me:4834: checking if we should define _XOPEN_SOURCE" >&5
4835 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4836 if test "${cf_cv_xopen_source+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839
4840 cat >"conftest.$ac_ext" <<_ACEOF
4841 #line 4841 "configure"
4842 #include "confdefs.h"
4843
4844 #include <stdlib.h>
4845 #include <string.h>
4846 #include <sys/types.h>
4847
4848 int
4849 main (void)
4850 {
4851
4852 #ifndef _XOPEN_SOURCE
4853 make an error
4854 #endif
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f "conftest.$ac_objext"
4861 if { (eval echo "$as_me:4861: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4863 ac_status=$?
4864 echo "$as_me:4864: \$? = $ac_status" >&5
4865 (exit "$ac_status"); } &&
4866 { ac_try='test -s "conftest.$ac_objext"'
4867 { (eval echo "$as_me:4867: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:4870: \$? = $ac_status" >&5
4871 (exit "$ac_status"); }; }; then
4872 cf_cv_xopen_source=no
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 cat "conftest.$ac_ext" >&5
4876 cf_save="$CPPFLAGS"
4877
4878 test -n "$CPPFLAGS" && CPPFLAGS="$CPPFLAGS "
4879 CPPFLAGS="${CPPFLAGS}-D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4880
4881 cat >"conftest.$ac_ext" <<_ACEOF
4882 #line 4882 "configure"
4883 #include "confdefs.h"
4884
4885 #include <stdlib.h>
4886 #include <string.h>
4887 #include <sys/types.h>
4888
4889 int
4890 main (void)
4891 {
4892
4893 #ifndef _XOPEN_SOURCE
4894 make an error
4895 #endif
4896
4897 ;
4898 return 0;
4899 }
4900 _ACEOF
4901 rm -f "conftest.$ac_objext"
4902 if { (eval echo "$as_me:4902: \"$ac_compile\"") >&5
4903 (eval $ac_compile) 2>&5
4904 ac_status=$?
4905 echo "$as_me:4905: \$? = $ac_status" >&5
4906 (exit "$ac_status"); } &&
4907 { ac_try='test -s "conftest.$ac_objext"'
4908 { (eval echo "$as_me:4908: \"$ac_try\"") >&5
4909 (eval $ac_try) 2>&5
4910 ac_status=$?
4911 echo "$as_me:4911: \$? = $ac_status" >&5
4912 (exit "$ac_status"); }; }; then
4913 cf_cv_xopen_source=no
4914 else
4915 echo "$as_me: failed program was:" >&5
4916 cat "conftest.$ac_ext" >&5
4917 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4918 fi
4919 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4920 CPPFLAGS="$cf_save"
4921
4922 fi
4923 rm -f "conftest.$ac_objext" "conftest.$ac_ext"
4924
4925 fi
4926 echo "$as_me:4926: result: $cf_cv_xopen_source" >&5
4927 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4928
4929 if test "$cf_cv_xopen_source" != no ; then
4930
4931 CFLAGS=`echo "$CFLAGS" | \
4932 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4933 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4934
4935 CPPFLAGS=`echo "$CPPFLAGS" | \
4936 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4937 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4938
4939 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4940
4941 for cf_add_cflags in $cf_temp_xopen_source
4942 do
4943 case "x$cf_add_cflags" in
4944 x-[DU]*)
4945
4946 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4947 while true
4948 do
4949 cf_old_cflag=`echo "x$CFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4950 test "$CFLAGS" != "$cf_old_cflag" || break
4951
4952 CFLAGS="$cf_old_cflag"
4953 done
4954
4955 cf_tmp_cflag=`echo "x$cf_add_cflags" | sed -e 's/^.//' -e 's/=.*//'`
4956 while true
4957 do
4958 cf_old_cflag=`echo "x$CPPFLAGS" | sed -e 's/^.//' -e 's/[ ][ ]*-/ -/g' -e "s%$cf_tmp_cflag\\(=[^ ][^ ]*\\)\?%%" -e 's/^[ ]*//' -e 's%[ ][ ]*-D% -D%g' -e 's%[ ][ ]*-I% -I%g'`
4959 test "$CPPFLAGS" != "$cf_old_cflag" || break
4960
4961 CPPFLAGS="$cf_old_cflag"
4962 done
4963
4964 ;;
4965 esac
4966
4967 cf_fix_cppflags=no
4968 cf_new_cflags=
4969 cf_new_cppflags=
4970 cf_new_extra_cppflags=
4971
4972 for cf_add_cflags in $cf_add_cflags
4973 do
4974 case "$cf_fix_cppflags" in
4975 no)
4976 case "$cf_add_cflags" in
4977 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C)
4978 case "$cf_add_cflags" in
4979 -D*)
4980 cf_tst_cflags=`echo "${cf_add_cflags}" |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4981
4982 test "x${cf_add_cflags}" != "x${cf_tst_cflags}" \
4983 && test -z "${cf_tst_cflags}" \
4984 && cf_fix_cppflags=yes
4985
4986 if test "$cf_fix_cppflags" = yes ; then
4987
4988 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4989 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4990
4991 continue
4992 elif test "${cf_tst_cflags}" = "\"'" ; then
4993
4994 test -n "$cf_new_extra_cppflags" && cf_new_extra_cppflags="$cf_new_extra_cppflags "
4995 cf_new_extra_cppflags="${cf_new_extra_cppflags}$cf_add_cflags"
4996
4997 continue
4998 fi
4999 ;;
5000 esac
5001 case "$CPPFLAGS" in
5002 *$cf_add_cflags)
5003 ;;
5004 *)
5005 case "$cf_add_cflags"