]> git.cameronkatri.com Git - apple_cmds.git/blob - patch_cmds/diffstat/configure
system_cmds: Fix wait4path BINDIR
[apple_cmds.git] / patch_cmds / diffstat / configure
1 #! /bin/sh
2 # From configure.in Revision: 1.22 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by Autoconf 2.52.20101002.
5 #
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= MAKEFLAGS=
101 SHELL=${CONFIG_SHELL-/bin/sh}
102
103 # Maximum number of lines to put in a shell here document.
104 # This variable seems obsolete. It should probably be removed, and
105 # only ac_max_sed_lines should be used.
106 : ${ac_max_here_lines=38}
107
108 ac_unique_file="diffstat.c"
109 # Factoring default headers for most tests.
110 ac_includes_default="\
111 #include <stdio.h>
112 #if HAVE_SYS_TYPES_H
113 # include <sys/types.h>
114 #endif
115 #if HAVE_SYS_STAT_H
116 # include <sys/stat.h>
117 #endif
118 #if STDC_HEADERS
119 # include <stdlib.h>
120 # include <stddef.h>
121 #else
122 # if HAVE_STDLIB_H
123 # include <stdlib.h>
124 # endif
125 #endif
126 #if HAVE_STRING_H
127 # if !STDC_HEADERS && HAVE_MEMORY_H
128 # include <memory.h>
129 # endif
130 # include <string.h>
131 #endif
132 #if HAVE_STRINGS_H
133 # include <strings.h>
134 #endif
135 #if HAVE_INTTYPES_H
136 # include <inttypes.h>
137 #else
138 # if HAVE_STDINT_H
139 # include <stdint.h>
140 # endif
141 #endif
142 #if HAVE_UNISTD_H
143 # include <unistd.h>
144 #endif"
145
146 # Initialize some variables set by options.
147 ac_init_help=
148 ac_init_version=false
149 # The variables have the same names as the options, with
150 # dashes changed to underlines.
151 cache_file=/dev/null
152 exec_prefix=NONE
153 no_create=
154 no_recursion=
155 prefix=NONE
156 program_prefix=NONE
157 program_suffix=NONE
158 program_transform_name=s,x,x,
159 silent=
160 site=
161 srcdir=
162 verbose=
163 x_includes=NONE
164 x_libraries=NONE
165
166 # Installation directory options.
167 # These are left unexpanded so users can "make install exec_prefix=/foo"
168 # and all the variables that are supposed to be based on exec_prefix
169 # by default will actually change.
170 # Use braces instead of parens because sh, perl, etc. also accept them.
171 bindir='${exec_prefix}/bin'
172 sbindir='${exec_prefix}/sbin'
173 libexecdir='${exec_prefix}/libexec'
174 datadir='${prefix}/share'
175 sysconfdir='${prefix}/etc'
176 sharedstatedir='${prefix}/com'
177 localstatedir='${prefix}/var'
178 libdir='${exec_prefix}/lib'
179 includedir='${prefix}/include'
180 oldincludedir='/usr/include'
181 infodir='${prefix}/info'
182 mandir='${prefix}/man'
183
184 # Identity of this package.
185 PACKAGE_NAME=
186 PACKAGE_TARNAME=
187 PACKAGE_VERSION=
188 PACKAGE_STRING=
189 PACKAGE_BUGREPORT=
190
191 ac_prev=
192 for ac_option
193 do
194 # If the previous option needs an argument, assign it.
195 if test -n "$ac_prev"; then
196 eval "$ac_prev=\$ac_option"
197 ac_prev=
198 continue
199 fi
200
201 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
202
203 # Accept the important Cygnus configure options, so we can diagnose typos.
204
205 case $ac_option in
206
207 -bindir | --bindir | --bindi | --bind | --bin | --bi)
208 ac_prev=bindir ;;
209 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
210 bindir=$ac_optarg ;;
211
212 -build | --build | --buil | --bui | --bu)
213 ac_prev=build_alias ;;
214 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
215 build_alias=$ac_optarg ;;
216
217 -cache-file | --cache-file | --cache-fil | --cache-fi \
218 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
219 ac_prev=cache_file ;;
220 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
221 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
222 cache_file=$ac_optarg ;;
223
224 --config-cache | -C)
225 cache_file=config.cache ;;
226
227 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
228 ac_prev=datadir ;;
229 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
230 | --da=*)
231 datadir=$ac_optarg ;;
232
233 -disable-* | --disable-*)
234 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
235 # Reject names that are not valid shell variable names.
236 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
237 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
238 { (exit 1); exit 1; }; }
239 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
240 eval "enable_$ac_feature=no" ;;
241
242 -enable-* | --enable-*)
243 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
244 # Reject names that are not valid shell variable names.
245 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
246 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
247 { (exit 1); exit 1; }; }
248 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
249 case $ac_option in
250 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
251 *) ac_optarg=yes ;;
252 esac
253 eval "enable_$ac_feature='$ac_optarg'" ;;
254
255 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
256 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
257 | --exec | --exe | --ex)
258 ac_prev=exec_prefix ;;
259 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
260 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
261 | --exec=* | --exe=* | --ex=*)
262 exec_prefix=$ac_optarg ;;
263
264 -gas | --gas | --ga | --g)
265 # Obsolete; use --with-gas.
266 with_gas=yes ;;
267
268 -help | --help | --hel | --he | -h)
269 ac_init_help=long ;;
270 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
271 ac_init_help=recursive ;;
272 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
273 ac_init_help=short ;;
274
275 -host | --host | --hos | --ho)
276 ac_prev=host_alias ;;
277 -host=* | --host=* | --hos=* | --ho=*)
278 host_alias=$ac_optarg ;;
279
280 -includedir | --includedir | --includedi | --included | --include \
281 | --includ | --inclu | --incl | --inc)
282 ac_prev=includedir ;;
283 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
284 | --includ=* | --inclu=* | --incl=* | --inc=*)
285 includedir=$ac_optarg ;;
286
287 -infodir | --infodir | --infodi | --infod | --info | --inf)
288 ac_prev=infodir ;;
289 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
290 infodir=$ac_optarg ;;
291
292 -libdir | --libdir | --libdi | --libd)
293 ac_prev=libdir ;;
294 -libdir=* | --libdir=* | --libdi=* | --libd=*)
295 libdir=$ac_optarg ;;
296
297 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
298 | --libexe | --libex | --libe)
299 ac_prev=libexecdir ;;
300 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
301 | --libexe=* | --libex=* | --libe=*)
302 libexecdir=$ac_optarg ;;
303
304 -localstatedir | --localstatedir | --localstatedi | --localstated \
305 | --localstate | --localstat | --localsta | --localst \
306 | --locals | --local | --loca | --loc | --lo)
307 ac_prev=localstatedir ;;
308 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
309 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
310 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
311 localstatedir=$ac_optarg ;;
312
313 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
314 ac_prev=mandir ;;
315 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
316 mandir=$ac_optarg ;;
317
318 -nfp | --nfp | --nf)
319 # Obsolete; use --without-fp.
320 with_fp=no ;;
321
322 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
323 | --no-cr | --no-c)
324 no_create=yes ;;
325
326 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
327 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
328 no_recursion=yes ;;
329
330 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
331 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
332 | --oldin | --oldi | --old | --ol | --o)
333 ac_prev=oldincludedir ;;
334 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
335 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
336 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
337 oldincludedir=$ac_optarg ;;
338
339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
340 ac_prev=prefix ;;
341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
342 prefix=$ac_optarg ;;
343
344 -program-prefix | --program-prefix | --program-prefi | --program-pref \
345 | --program-pre | --program-pr | --program-p)
346 ac_prev=program_prefix ;;
347 -program-prefix=* | --program-prefix=* | --program-prefi=* \
348 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
349 program_prefix=$ac_optarg ;;
350
351 -program-suffix | --program-suffix | --program-suffi | --program-suff \
352 | --program-suf | --program-su | --program-s)
353 ac_prev=program_suffix ;;
354 -program-suffix=* | --program-suffix=* | --program-suffi=* \
355 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
356 program_suffix=$ac_optarg ;;
357
358 -program-transform-name | --program-transform-name \
359 | --program-transform-nam | --program-transform-na \
360 | --program-transform-n | --program-transform- \
361 | --program-transform | --program-transfor \
362 | --program-transfo | --program-transf \
363 | --program-trans | --program-tran \
364 | --progr-tra | --program-tr | --program-t)
365 ac_prev=program_transform_name ;;
366 -program-transform-name=* | --program-transform-name=* \
367 | --program-transform-nam=* | --program-transform-na=* \
368 | --program-transform-n=* | --program-transform-=* \
369 | --program-transform=* | --program-transfor=* \
370 | --program-transfo=* | --program-transf=* \
371 | --program-trans=* | --program-tran=* \
372 | --progr-tra=* | --program-tr=* | --program-t=*)
373 program_transform_name=$ac_optarg ;;
374
375 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
376 | -silent | --silent | --silen | --sile | --sil)
377 silent=yes ;;
378
379 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
380 ac_prev=sbindir ;;
381 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
382 | --sbi=* | --sb=*)
383 sbindir=$ac_optarg ;;
384
385 -sharedstatedir | --sharedstatedir | --sharedstatedi \
386 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
387 | --sharedst | --shareds | --shared | --share | --shar \
388 | --sha | --sh)
389 ac_prev=sharedstatedir ;;
390 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
391 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
392 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
393 | --sha=* | --sh=*)
394 sharedstatedir=$ac_optarg ;;
395
396 -site | --site | --sit)
397 ac_prev=site ;;
398 -site=* | --site=* | --sit=*)
399 site=$ac_optarg ;;
400
401 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
402 ac_prev=srcdir ;;
403 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
404 srcdir=$ac_optarg ;;
405
406 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
407 | --syscon | --sysco | --sysc | --sys | --sy)
408 ac_prev=sysconfdir ;;
409 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
410 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
411 sysconfdir=$ac_optarg ;;
412
413 -target | --target | --targe | --targ | --tar | --ta | --t)
414 ac_prev=target_alias ;;
415 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
416 target_alias=$ac_optarg ;;
417
418 -v | -verbose | --verbose | --verbos | --verbo | --verb)
419 verbose=yes ;;
420
421 -version | --version | --versio | --versi | --vers | -V)
422 ac_init_version=: ;;
423
424 -with-* | --with-*)
425 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid package name: $ac_package" >&2
429 { (exit 1); exit 1; }; }
430 ac_package=`echo $ac_package| sed 's/-/_/g'`
431 case $ac_option in
432 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
433 *) ac_optarg=yes ;;
434 esac
435 eval "with_$ac_package='$ac_optarg'" ;;
436
437 -without-* | --without-*)
438 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
439 # Reject names that are not valid shell variable names.
440 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
441 { echo "$as_me: error: invalid package name: $ac_package" >&2
442 { (exit 1); exit 1; }; }
443 ac_package=`echo $ac_package | sed 's/-/_/g'`
444 eval "with_$ac_package=no" ;;
445
446 --x)
447 # Obsolete; use --with-x.
448 with_x=yes ;;
449
450 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
451 | --x-incl | --x-inc | --x-in | --x-i)
452 ac_prev=x_includes ;;
453 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
454 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
455 x_includes=$ac_optarg ;;
456
457 -x-libraries | --x-libraries | --x-librarie | --x-librari \
458 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
459 ac_prev=x_libraries ;;
460 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
461 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
462 x_libraries=$ac_optarg ;;
463
464 -*) { echo "$as_me: error: unrecognized option: $ac_option
465 Try \`$0 --help' for more information." >&2
466 { (exit 1); exit 1; }; }
467 ;;
468
469 *=*)
470 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
471 # Reject names that are not valid shell variable names.
472 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
473 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
474 { (exit 1); exit 1; }; }
475 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
476 eval "$ac_envvar='$ac_optarg'"
477 export $ac_envvar ;;
478
479 *)
480 # FIXME: should be removed in autoconf 3.0.
481 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
482 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
483 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
484 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
485 ;;
486
487 esac
488 done
489
490 if test -n "$ac_prev"; then
491 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
492 { echo "$as_me: error: missing argument to $ac_option" >&2
493 { (exit 1); exit 1; }; }
494 fi
495
496 # Be sure to have absolute paths.
497 for ac_var in exec_prefix prefix
498 do
499 eval ac_val=$`echo $ac_var`
500 case $ac_val in
501 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
502 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
503 { (exit 1); exit 1; }; };;
504 esac
505 done
506
507 # Be sure to have absolute paths.
508 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
509 localstatedir libdir includedir oldincludedir infodir mandir
510 do
511 eval ac_val=$`echo $ac_var`
512 case $ac_val in
513 [\\/$]* | ?:[\\/]* ) ;;
514 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
515 { (exit 1); exit 1; }; };;
516 esac
517 done
518
519 # There might be people who depend on the old broken behavior: `$host'
520 # used to hold the argument of --host etc.
521 build=$build_alias
522 host=$host_alias
523 target=$target_alias
524
525 # FIXME: should be removed in autoconf 3.0.
526 if test "x$host_alias" != x; then
527 if test "x$build_alias" = x; then
528 cross_compiling=maybe
529 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
530 If a cross compiler is detected then cross compile mode will be used." >&2
531 elif test "x$build_alias" != "x$host_alias"; then
532 cross_compiling=yes
533 fi
534 fi
535
536 ac_tool_prefix=
537 test -n "$host_alias" && ac_tool_prefix=$host_alias-
538
539 test "$silent" = yes && exec 6>/dev/null
540
541 # Find the source files, if location was not specified.
542 if test -z "$srcdir"; then
543 ac_srcdir_defaulted=yes
544 # Try the directory containing this script, then its parent.
545 ac_prog=$0
546 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
547 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
548 srcdir=$ac_confdir
549 if test ! -r $srcdir/$ac_unique_file; then
550 srcdir=..
551 fi
552 else
553 ac_srcdir_defaulted=no
554 fi
555 if test ! -r $srcdir/$ac_unique_file; then
556 if test "$ac_srcdir_defaulted" = yes; then
557 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
558 { (exit 1); exit 1; }; }
559 else
560 { echo "$as_me: error: cannot find sources in $srcdir" >&2
561 { (exit 1); exit 1; }; }
562 fi
563 fi
564 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
565 ac_env_build_alias_set=${build_alias+set}
566 ac_env_build_alias_value=$build_alias
567 ac_cv_env_build_alias_set=${build_alias+set}
568 ac_cv_env_build_alias_value=$build_alias
569 ac_env_host_alias_set=${host_alias+set}
570 ac_env_host_alias_value=$host_alias
571 ac_cv_env_host_alias_set=${host_alias+set}
572 ac_cv_env_host_alias_value=$host_alias
573 ac_env_target_alias_set=${target_alias+set}
574 ac_env_target_alias_value=$target_alias
575 ac_cv_env_target_alias_set=${target_alias+set}
576 ac_cv_env_target_alias_value=$target_alias
577 ac_env_CC_set=${CC+set}
578 ac_env_CC_value=$CC
579 ac_cv_env_CC_set=${CC+set}
580 ac_cv_env_CC_value=$CC
581 ac_env_CFLAGS_set=${CFLAGS+set}
582 ac_env_CFLAGS_value=$CFLAGS
583 ac_cv_env_CFLAGS_set=${CFLAGS+set}
584 ac_cv_env_CFLAGS_value=$CFLAGS
585 ac_env_LDFLAGS_set=${LDFLAGS+set}
586 ac_env_LDFLAGS_value=$LDFLAGS
587 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
588 ac_cv_env_LDFLAGS_value=$LDFLAGS
589 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
590 ac_env_CPPFLAGS_value=$CPPFLAGS
591 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
592 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
593 ac_env_CPP_set=${CPP+set}
594 ac_env_CPP_value=$CPP
595 ac_cv_env_CPP_set=${CPP+set}
596 ac_cv_env_CPP_value=$CPP
597
598 #
599 # Report the --help message.
600 #
601 if test "$ac_init_help" = "long"; then
602 # Omit some internal or obsolete options to make the list less imposing.
603 # This message is too long to be a string in the A/UX 3.1 sh.
604 cat <<EOF
605 \`configure' configures this package to adapt to many kinds of systems.
606
607 Usage: $0 [OPTION]... [VAR=VALUE]...
608
609 To assign environment variables (e.g., CC, CFLAGS...), specify them as
610 VAR=VALUE. See below for descriptions of some of the useful variables.
611
612 Defaults for the options are specified in brackets.
613
614 Configuration:
615 -h, --help display this help and exit
616 --help=short display options specific to this package
617 --help=recursive display the short help of all the included packages
618 -V, --version display version information and exit
619 -q, --quiet, --silent do not print \`checking...' messages
620 --cache-file=FILE cache test results in FILE [disabled]
621 -C, --config-cache alias for \`--cache-file=config.cache'
622 -n, --no-create do not create output files
623 --srcdir=DIR find the sources in DIR [configure dir or \`..']
624
625 EOF
626
627 cat <<EOF
628 Installation directories:
629 --prefix=PREFIX install architecture-independent files in PREFIX
630 [$ac_default_prefix]
631 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
632 [PREFIX]
633
634 By default, \`make install' will install all the files in
635 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
636 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
637 for instance \`--prefix=\$HOME'.
638
639 For better control, use the options below.
640
641 Fine tuning of the installation directories:
642 --bindir=DIR user executables [EPREFIX/bin]
643 --sbindir=DIR system admin executables [EPREFIX/sbin]
644 --libexecdir=DIR program executables [EPREFIX/libexec]
645 --datadir=DIR read-only architecture-independent data [PREFIX/share]
646 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
647 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
648 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
649 --libdir=DIR object code libraries [EPREFIX/lib]
650 --includedir=DIR C header files [PREFIX/include]
651 --oldincludedir=DIR C header files for non-gcc [/usr/include]
652 --infodir=DIR info documentation [PREFIX/info]
653 --mandir=DIR man documentation [PREFIX/man]
654 EOF
655
656 cat <<\EOF
657
658 System types:
659 --build=BUILD configure for building on BUILD [guessed]
660 --host=HOST build programs to run on HOST [BUILD]
661 EOF
662 fi
663
664 if test -n "$ac_init_help"; then
665
666 cat <<\EOF
667
668 Optional Features:
669 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
670 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
671
672 Optional Packages:
673 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
674 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
675
676 --disable-echo display "compiling" commands
677 --with-install-prefix=XXX sets DESTDIR, useful for packaging
678 --with-warnings test: turn on gcc warnings
679 --with-dmalloc test: use Gray Watson's dmalloc library
680 --with-dbmalloc test: use Conor Cahill's dbmalloc library
681 --with-valgrind test: use valgrind
682 --disable-leaks test: free permanent memory, analyze leaks
683
684 Some influential environment variables:
685 CC C compiler command
686 CFLAGS C compiler flags
687 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
688 nonstandard directory <lib dir>
689 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
690 headers in a nonstandard directory <include dir>
691 CPP C preprocessor
692
693 Use these variables to override the choices made by `configure' or to help
694 it to find libraries and programs with nonstandard names/locations.
695
696 EOF
697 fi
698
699 if test "$ac_init_help" = "recursive"; then
700 # If there are subdirs, report their specific --help.
701 ac_popdir=`pwd`
702 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
703 cd $ac_subdir
704 # A "../" for each directory in /$ac_subdir.
705 ac_dots=`echo $ac_subdir |
706 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
707
708 case $srcdir in
709 .) # No --srcdir option. We are building in place.
710 ac_sub_srcdir=$srcdir ;;
711 [\\/]* | ?:[\\/]* ) # Absolute path.
712 ac_sub_srcdir=$srcdir/$ac_subdir ;;
713 *) # Relative path.
714 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
715 esac
716
717 # Check for guested configure; otherwise get Cygnus style configure.
718 if test -f $ac_sub_srcdir/configure.gnu; then
719 echo
720 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
721 elif test -f $ac_sub_srcdir/configure; then
722 echo
723 $SHELL $ac_sub_srcdir/configure --help=recursive
724 elif test -f $ac_sub_srcdir/configure.ac ||
725 test -f $ac_sub_srcdir/configure.in; then
726 echo
727 $ac_configure --help
728 else
729 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
730 fi
731 cd $ac_popdir
732 done
733 fi
734
735 test -n "$ac_init_help" && exit 0
736 if $ac_init_version; then
737 cat <<\EOF
738
739 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
740 Free Software Foundation, Inc.
741 This configure script is free software; the Free Software Foundation
742 gives unlimited permission to copy, distribute and modify it.
743 EOF
744 exit 0
745 fi
746 exec 5>config.log
747 cat >&5 <<EOF
748 This file contains any messages produced by compilers while
749 running configure, to aid debugging if configure makes a mistake.
750
751 It was created by $as_me, which was
752 generated by GNU Autoconf 2.52.20101002. Invocation command line was
753
754 $ $0 $@
755
756 EOF
757 {
758 cat <<_ASUNAME
759 ## ---------- ##
760 ## Platform. ##
761 ## ---------- ##
762
763 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
764 uname -m = `(uname -m) 2>/dev/null || echo unknown`
765 uname -r = `(uname -r) 2>/dev/null || echo unknown`
766 uname -s = `(uname -s) 2>/dev/null || echo unknown`
767 uname -v = `(uname -v) 2>/dev/null || echo unknown`
768
769 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
770 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
771
772 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
773 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
774 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
775 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
776 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
777 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
778 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
779
780 PATH = $PATH
781
782 _ASUNAME
783 } >&5
784
785 cat >&5 <<EOF
786 ## ------------ ##
787 ## Core tests. ##
788 ## ------------ ##
789
790 EOF
791
792 # Keep a trace of the command line.
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell meta-characters.
795 ac_configure_args=
796 ac_sep=
797 for ac_arg
798 do
799 case $ac_arg in
800 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
801 | --no-cr | --no-c) ;;
802 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
803 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
804 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
805 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
806 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
807 ac_sep=" " ;;
808 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
809 ac_sep=" " ;;
810 esac
811 # Get rid of the leading space.
812 done
813
814 # When interrupted or exit'd, cleanup temporary files, and complete
815 # config.log. We remove comments because anyway the quotes in there
816 # would cause problems or look ugly.
817 trap 'exit_status=$?
818 # Save into config.log some information that might help in debugging.
819 echo >&5
820 echo "## ----------------- ##" >&5
821 echo "## Cache variables. ##" >&5
822 echo "## ----------------- ##" >&5
823 echo >&5
824 # The following way of writing the cache mishandles newlines in values,
825 {
826 (set) 2>&1 |
827 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
828 *ac_space=\ *)
829 sed -n \
830 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
831 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
832 ;;
833 *)
834 sed -n \
835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
836 ;;
837 esac;
838 } >&5
839 sed "/^$/d" confdefs.h >conftest.log
840 if test -s conftest.log; then
841 echo >&5
842 echo "## ------------ ##" >&5
843 echo "## confdefs.h. ##" >&5
844 echo "## ------------ ##" >&5
845 echo >&5
846 cat conftest.log >&5
847 fi
848 (echo; echo) >&5
849 test "$ac_signal" != 0 &&
850 echo "$as_me: caught signal $ac_signal" >&5
851 echo "$as_me: exit $exit_status" >&5
852 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
853 exit $exit_status
854 ' 0
855 for ac_signal in 1 2 13 15; do
856 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
857 done
858 ac_signal=0
859
860 # confdefs.h avoids OS command line length limits that DEFS can exceed.
861 rm -rf conftest* confdefs.h
862 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
863 echo >confdefs.h
864
865 # Let the site file select an alternate cache file if it wants to.
866 # Prefer explicitly selected file to automatically selected ones.
867 if test -z "$CONFIG_SITE"; then
868 if test "x$prefix" != xNONE; then
869 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
870 else
871 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
872 fi
873 fi
874 for ac_site_file in $CONFIG_SITE; do
875 if test -r "$ac_site_file"; then
876 { echo "$as_me:876: loading site script $ac_site_file" >&5
877 echo "$as_me: loading site script $ac_site_file" >&6;}
878 cat "$ac_site_file" >&5
879 . "$ac_site_file"
880 fi
881 done
882
883 if test -r "$cache_file"; then
884 # Some versions of bash will fail to source /dev/null (special
885 # files actually), so we avoid doing that.
886 if test -f "$cache_file"; then
887 { echo "$as_me:887: loading cache $cache_file" >&5
888 echo "$as_me: loading cache $cache_file" >&6;}
889 case $cache_file in
890 [\\/]* | ?:[\\/]* ) . $cache_file;;
891 *) . ./$cache_file;;
892 esac
893 fi
894 else
895 { echo "$as_me:895: creating cache $cache_file" >&5
896 echo "$as_me: creating cache $cache_file" >&6;}
897 >$cache_file
898 fi
899
900 # Check that the precious variables saved in the cache have kept the same
901 # value.
902 ac_cache_corrupted=false
903 for ac_var in `(set) 2>&1 |
904 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
905 eval ac_old_set=\$ac_cv_env_${ac_var}_set
906 eval ac_new_set=\$ac_env_${ac_var}_set
907 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
908 eval ac_new_val="\$ac_env_${ac_var}_value"
909 case $ac_old_set,$ac_new_set in
910 set,)
911 { echo "$as_me:911: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
912 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
913 ac_cache_corrupted=: ;;
914 ,set)
915 { echo "$as_me:915: error: \`$ac_var' was not set in the previous run" >&5
916 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
917 ac_cache_corrupted=: ;;
918 ,);;
919 *)
920 if test "x$ac_old_val" != "x$ac_new_val"; then
921 { echo "$as_me:921: error: \`$ac_var' has changed since the previous run:" >&5
922 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
923 { echo "$as_me:923: former value: $ac_old_val" >&5
924 echo "$as_me: former value: $ac_old_val" >&2;}
925 { echo "$as_me:925: current value: $ac_new_val" >&5
926 echo "$as_me: current value: $ac_new_val" >&2;}
927 ac_cache_corrupted=:
928 fi;;
929 esac
930 # Pass precious variables to config.status. It doesn't matter if
931 # we pass some twice (in addition to the command line arguments).
932 if test "$ac_new_set" = set; then
933 case $ac_new_val in
934 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
935 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
936 ac_configure_args="$ac_configure_args '$ac_arg'"
937 ;;
938 *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
939 ;;
940 esac
941 fi
942 done
943 if $ac_cache_corrupted; then
944 { echo "$as_me:944: error: changes in the environment can compromise the build" >&5
945 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
946 { { echo "$as_me:946: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
947 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
948 { (exit 1); exit 1; }; }
949 fi
950
951 ac_ext=c
952 ac_cpp='$CPP $CPPFLAGS'
953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
956 ac_main_return=return
957
958 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
959 *c*,-n*) ECHO_N= ECHO_C='
960 ' ECHO_T=' ' ;;
961 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
962 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
963 esac
964 echo "#! $SHELL" >conftest.sh
965 echo "exit 0" >>conftest.sh
966 chmod +x conftest.sh
967 if { (echo "$as_me:967: PATH=\".;.\"; conftest.sh") >&5
968 (PATH=".;."; conftest.sh) 2>&5
969 ac_status=$?
970 echo "$as_me:970: \$? = $ac_status" >&5
971 (exit $ac_status); }; then
972 ac_path_separator=';'
973 else
974 ac_path_separator=:
975 fi
976 PATH_SEPARATOR="$ac_path_separator"
977 rm -f conftest.sh
978
979 ac_config_headers="$ac_config_headers config.h:config_h.in"
980
981 ac_ext=c
982 ac_cpp='$CPP $CPPFLAGS'
983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
986 ac_main_return=return
987 if test -n "$ac_tool_prefix"; then
988 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
989 set dummy ${ac_tool_prefix}gcc; ac_word=$2
990 echo "$as_me:990: checking for $ac_word" >&5
991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
992 if test "${ac_cv_prog_CC+set}" = set; then
993 echo $ECHO_N "(cached) $ECHO_C" >&6
994 else
995 if test -n "$CC"; then
996 ac_cv_prog_CC="$CC" # Let the user override the test.
997 else
998 ac_save_IFS=$IFS; IFS=$ac_path_separator
999 ac_dummy="$PATH"
1000 for ac_dir in $ac_dummy; do
1001 IFS=$ac_save_IFS
1002 test -z "$ac_dir" && ac_dir=.
1003 $as_executable_p "$ac_dir/$ac_word" || continue
1004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1005 echo "$as_me:1005: found $ac_dir/$ac_word" >&5
1006 break
1007 done
1008
1009 fi
1010 fi
1011 CC=$ac_cv_prog_CC
1012 if test -n "$CC"; then
1013 echo "$as_me:1013: result: $CC" >&5
1014 echo "${ECHO_T}$CC" >&6
1015 else
1016 echo "$as_me:1016: result: no" >&5
1017 echo "${ECHO_T}no" >&6
1018 fi
1019
1020 fi
1021 if test -z "$ac_cv_prog_CC"; then
1022 ac_ct_CC=$CC
1023 # Extract the first word of "gcc", so it can be a program name with args.
1024 set dummy gcc; ac_word=$2
1025 echo "$as_me:1025: checking for $ac_word" >&5
1026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1027 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1028 echo $ECHO_N "(cached) $ECHO_C" >&6
1029 else
1030 if test -n "$ac_ct_CC"; then
1031 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1032 else
1033 ac_save_IFS=$IFS; IFS=$ac_path_separator
1034 ac_dummy="$PATH"
1035 for ac_dir in $ac_dummy; do
1036 IFS=$ac_save_IFS
1037 test -z "$ac_dir" && ac_dir=.
1038 $as_executable_p "$ac_dir/$ac_word" || continue
1039 ac_cv_prog_ac_ct_CC="gcc"
1040 echo "$as_me:1040: found $ac_dir/$ac_word" >&5
1041 break
1042 done
1043
1044 fi
1045 fi
1046 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1047 if test -n "$ac_ct_CC"; then
1048 echo "$as_me:1048: result: $ac_ct_CC" >&5
1049 echo "${ECHO_T}$ac_ct_CC" >&6
1050 else
1051 echo "$as_me:1051: result: no" >&5
1052 echo "${ECHO_T}no" >&6
1053 fi
1054
1055 CC=$ac_ct_CC
1056 else
1057 CC="$ac_cv_prog_CC"
1058 fi
1059
1060 if test -z "$CC"; then
1061 if test -n "$ac_tool_prefix"; then
1062 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1063 set dummy ${ac_tool_prefix}cc; ac_word=$2
1064 echo "$as_me:1064: checking for $ac_word" >&5
1065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1066 if test "${ac_cv_prog_CC+set}" = set; then
1067 echo $ECHO_N "(cached) $ECHO_C" >&6
1068 else
1069 if test -n "$CC"; then
1070 ac_cv_prog_CC="$CC" # Let the user override the test.
1071 else
1072 ac_save_IFS=$IFS; IFS=$ac_path_separator
1073 ac_dummy="$PATH"
1074 for ac_dir in $ac_dummy; do
1075 IFS=$ac_save_IFS
1076 test -z "$ac_dir" && ac_dir=.
1077 $as_executable_p "$ac_dir/$ac_word" || continue
1078 ac_cv_prog_CC="${ac_tool_prefix}cc"
1079 echo "$as_me:1079: found $ac_dir/$ac_word" >&5
1080 break
1081 done
1082
1083 fi
1084 fi
1085 CC=$ac_cv_prog_CC
1086 if test -n "$CC"; then
1087 echo "$as_me:1087: result: $CC" >&5
1088 echo "${ECHO_T}$CC" >&6
1089 else
1090 echo "$as_me:1090: result: no" >&5
1091 echo "${ECHO_T}no" >&6
1092 fi
1093
1094 fi
1095 if test -z "$ac_cv_prog_CC"; then
1096 ac_ct_CC=$CC
1097 # Extract the first word of "cc", so it can be a program name with args.
1098 set dummy cc; ac_word=$2
1099 echo "$as_me:1099: checking for $ac_word" >&5
1100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1101 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1102 echo $ECHO_N "(cached) $ECHO_C" >&6
1103 else
1104 if test -n "$ac_ct_CC"; then
1105 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1106 else
1107 ac_save_IFS=$IFS; IFS=$ac_path_separator
1108 ac_dummy="$PATH"
1109 for ac_dir in $ac_dummy; do
1110 IFS=$ac_save_IFS
1111 test -z "$ac_dir" && ac_dir=.
1112 $as_executable_p "$ac_dir/$ac_word" || continue
1113 ac_cv_prog_ac_ct_CC="cc"
1114 echo "$as_me:1114: found $ac_dir/$ac_word" >&5
1115 break
1116 done
1117
1118 fi
1119 fi
1120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1121 if test -n "$ac_ct_CC"; then
1122 echo "$as_me:1122: result: $ac_ct_CC" >&5
1123 echo "${ECHO_T}$ac_ct_CC" >&6
1124 else
1125 echo "$as_me:1125: result: no" >&5
1126 echo "${ECHO_T}no" >&6
1127 fi
1128
1129 CC=$ac_ct_CC
1130 else
1131 CC="$ac_cv_prog_CC"
1132 fi
1133
1134 fi
1135 if test -z "$CC"; then
1136 # Extract the first word of "cc", so it can be a program name with args.
1137 set dummy cc; ac_word=$2
1138 echo "$as_me:1138: checking for $ac_word" >&5
1139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1140 if test "${ac_cv_prog_CC+set}" = set; then
1141 echo $ECHO_N "(cached) $ECHO_C" >&6
1142 else
1143 if test -n "$CC"; then
1144 ac_cv_prog_CC="$CC" # Let the user override the test.
1145 else
1146 ac_prog_rejected=no
1147 ac_save_IFS=$IFS; IFS=$ac_path_separator
1148 ac_dummy="$PATH"
1149 for ac_dir in $ac_dummy; do
1150 IFS=$ac_save_IFS
1151 test -z "$ac_dir" && ac_dir=.
1152 $as_executable_p "$ac_dir/$ac_word" || continue
1153 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1154 ac_prog_rejected=yes
1155 continue
1156 fi
1157 ac_cv_prog_CC="cc"
1158 echo "$as_me:1158: found $ac_dir/$ac_word" >&5
1159 break
1160 done
1161
1162 if test $ac_prog_rejected = yes; then
1163 # We found a bogon in the path, so make sure we never use it.
1164 set dummy $ac_cv_prog_CC
1165 shift
1166 if test $# != 0; then
1167 # We chose a different compiler from the bogus one.
1168 # However, it has the same basename, so the bogon will be chosen
1169 # first if we set CC to just the basename; use the full file name.
1170 shift
1171 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1172 shift
1173 ac_cv_prog_CC="$@"
1174 fi
1175 fi
1176 fi
1177 fi
1178 CC=$ac_cv_prog_CC
1179 if test -n "$CC"; then
1180 echo "$as_me:1180: result: $CC" >&5
1181 echo "${ECHO_T}$CC" >&6
1182 else
1183 echo "$as_me:1183: result: no" >&5
1184 echo "${ECHO_T}no" >&6
1185 fi
1186
1187 fi
1188 if test -z "$CC"; then
1189 if test -n "$ac_tool_prefix"; then
1190 for ac_prog in cl
1191 do
1192 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1193 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1194 echo "$as_me:1194: checking for $ac_word" >&5
1195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1196 if test "${ac_cv_prog_CC+set}" = set; then
1197 echo $ECHO_N "(cached) $ECHO_C" >&6
1198 else
1199 if test -n "$CC"; then
1200 ac_cv_prog_CC="$CC" # Let the user override the test.
1201 else
1202 ac_save_IFS=$IFS; IFS=$ac_path_separator
1203 ac_dummy="$PATH"
1204 for ac_dir in $ac_dummy; do
1205 IFS=$ac_save_IFS
1206 test -z "$ac_dir" && ac_dir=.
1207 $as_executable_p "$ac_dir/$ac_word" || continue
1208 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1209 echo "$as_me:1209: found $ac_dir/$ac_word" >&5
1210 break
1211 done
1212
1213 fi
1214 fi
1215 CC=$ac_cv_prog_CC
1216 if test -n "$CC"; then
1217 echo "$as_me:1217: result: $CC" >&5
1218 echo "${ECHO_T}$CC" >&6
1219 else
1220 echo "$as_me:1220: result: no" >&5
1221 echo "${ECHO_T}no" >&6
1222 fi
1223
1224 test -n "$CC" && break
1225 done
1226 fi
1227 if test -z "$CC"; then
1228 ac_ct_CC=$CC
1229 for ac_prog in cl
1230 do
1231 # Extract the first word of "$ac_prog", so it can be a program name with args.
1232 set dummy $ac_prog; ac_word=$2
1233 echo "$as_me:1233: checking for $ac_word" >&5
1234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1236 echo $ECHO_N "(cached) $ECHO_C" >&6
1237 else
1238 if test -n "$ac_ct_CC"; then
1239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1240 else
1241 ac_save_IFS=$IFS; IFS=$ac_path_separator
1242 ac_dummy="$PATH"
1243 for ac_dir in $ac_dummy; do
1244 IFS=$ac_save_IFS
1245 test -z "$ac_dir" && ac_dir=.
1246 $as_executable_p "$ac_dir/$ac_word" || continue
1247 ac_cv_prog_ac_ct_CC="$ac_prog"
1248 echo "$as_me:1248: found $ac_dir/$ac_word" >&5
1249 break
1250 done
1251
1252 fi
1253 fi
1254 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1255 if test -n "$ac_ct_CC"; then
1256 echo "$as_me:1256: result: $ac_ct_CC" >&5
1257 echo "${ECHO_T}$ac_ct_CC" >&6
1258 else
1259 echo "$as_me:1259: result: no" >&5
1260 echo "${ECHO_T}no" >&6
1261 fi
1262
1263 test -n "$ac_ct_CC" && break
1264 done
1265
1266 CC=$ac_ct_CC
1267 fi
1268
1269 fi
1270
1271 test -z "$CC" && { { echo "$as_me:1271: error: no acceptable cc found in \$PATH" >&5
1272 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1273 { (exit 1); exit 1; }; }
1274
1275 # Provide some information about the compiler.
1276 echo "$as_me:1276:" \
1277 "checking for C compiler version" >&5
1278 ac_compiler=`set X $ac_compile; echo $2`
1279 { (eval echo "$as_me:1279: \"$ac_compiler --version </dev/null >&5\"") >&5
1280 (eval $ac_compiler --version </dev/null >&5) 2>&5
1281 ac_status=$?
1282 echo "$as_me:1282: \$? = $ac_status" >&5
1283 (exit $ac_status); }
1284 { (eval echo "$as_me:1284: \"$ac_compiler -v </dev/null >&5\"") >&5
1285 (eval $ac_compiler -v </dev/null >&5) 2>&5
1286 ac_status=$?
1287 echo "$as_me:1287: \$? = $ac_status" >&5
1288 (exit $ac_status); }
1289 { (eval echo "$as_me:1289: \"$ac_compiler -V </dev/null >&5\"") >&5
1290 (eval $ac_compiler -V </dev/null >&5) 2>&5
1291 ac_status=$?
1292 echo "$as_me:1292: \$? = $ac_status" >&5
1293 (exit $ac_status); }
1294
1295 cat >conftest.$ac_ext <<_ACEOF
1296 #line 1296 "configure"
1297 #include "confdefs.h"
1298
1299 int
1300 main ()
1301 {
1302
1303 ;
1304 return 0;
1305 }
1306 _ACEOF
1307 ac_clean_files_save=$ac_clean_files
1308 ac_clean_files="$ac_clean_files a.out a.exe"
1309 # Try to create an executable without -o first, disregard a.out.
1310 # It will help us diagnose broken compilers, and finding out an intuition
1311 # of exeext.
1312 echo "$as_me:1312: checking for C compiler default output" >&5
1313 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1314 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1315 if { (eval echo "$as_me:1315: \"$ac_link_default\"") >&5
1316 (eval $ac_link_default) 2>&5
1317 ac_status=$?
1318 echo "$as_me:1318: \$? = $ac_status" >&5
1319 (exit $ac_status); }; then
1320 # Find the output, starting from the most likely. This scheme is
1321 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1322 # resort.
1323 for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1324 ls a.out conftest 2>/dev/null;
1325 ls a.* conftest.* 2>/dev/null`; do
1326 case $ac_file in
1327 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1328 a.out ) # We found the default executable, but exeext='' is most
1329 # certainly right.
1330 break;;
1331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1332 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1333 export ac_cv_exeext
1334 break;;
1335 * ) break;;
1336 esac
1337 done
1338 else
1339 echo "$as_me: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341 { { echo "$as_me:1341: error: C compiler cannot create executables" >&5
1342 echo "$as_me: error: C compiler cannot create executables" >&2;}
1343 { (exit 77); exit 77; }; }
1344 fi
1345
1346 ac_exeext=$ac_cv_exeext
1347 echo "$as_me:1347: result: $ac_file" >&5
1348 echo "${ECHO_T}$ac_file" >&6
1349
1350 # Check the compiler produces executables we can run. If not, either
1351 # the compiler is broken, or we cross compile.
1352 echo "$as_me:1352: checking whether the C compiler works" >&5
1353 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1354 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1355 # If not cross compiling, check that we can run a simple program.
1356 if test "$cross_compiling" != yes; then
1357 if { ac_try='./$ac_file'
1358 { (eval echo "$as_me:1358: \"$ac_try\"") >&5
1359 (eval $ac_try) 2>&5
1360 ac_status=$?
1361 echo "$as_me:1361: \$? = $ac_status" >&5
1362 (exit $ac_status); }; }; then
1363 cross_compiling=no
1364 else
1365 if test "$cross_compiling" = maybe; then
1366 cross_compiling=yes
1367 else
1368 { { echo "$as_me:1368: error: cannot run C compiled programs.
1369 If you meant to cross compile, use \`--host'." >&5
1370 echo "$as_me: error: cannot run C compiled programs.
1371 If you meant to cross compile, use \`--host'." >&2;}
1372 { (exit 1); exit 1; }; }
1373 fi
1374 fi
1375 fi
1376 echo "$as_me:1376: result: yes" >&5
1377 echo "${ECHO_T}yes" >&6
1378
1379 rm -f a.out a.exe conftest$ac_cv_exeext
1380 ac_clean_files=$ac_clean_files_save
1381 # Check the compiler produces executables we can run. If not, either
1382 # the compiler is broken, or we cross compile.
1383 echo "$as_me:1383: checking whether we are cross compiling" >&5
1384 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1385 echo "$as_me:1385: result: $cross_compiling" >&5
1386 echo "${ECHO_T}$cross_compiling" >&6
1387
1388 echo "$as_me:1388: checking for executable suffix" >&5
1389 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1390 if { (eval echo "$as_me:1390: \"$ac_link\"") >&5
1391 (eval $ac_link) 2>&5
1392 ac_status=$?
1393 echo "$as_me:1393: \$? = $ac_status" >&5
1394 (exit $ac_status); }; then
1395 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1396 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1397 # work properly (i.e., refer to `conftest.exe'), while it won't with
1398 # `rm'.
1399 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1400 case $ac_file in
1401 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1402 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1403 export ac_cv_exeext
1404 break;;
1405 * ) break;;
1406 esac
1407 done
1408 else
1409 { { echo "$as_me:1409: error: cannot compute EXEEXT: cannot compile and link" >&5
1410 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1411 { (exit 1); exit 1; }; }
1412 fi
1413
1414 rm -f conftest$ac_cv_exeext
1415 echo "$as_me:1415: result: $ac_cv_exeext" >&5
1416 echo "${ECHO_T}$ac_cv_exeext" >&6
1417
1418 rm -f conftest.$ac_ext
1419 EXEEXT=$ac_cv_exeext
1420 ac_exeext=$EXEEXT
1421 echo "$as_me:1421: checking for object suffix" >&5
1422 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1423 if test "${ac_cv_objext+set}" = set; then
1424 echo $ECHO_N "(cached) $ECHO_C" >&6
1425 else
1426 cat >conftest.$ac_ext <<_ACEOF
1427 #line 1427 "configure"
1428 #include "confdefs.h"
1429
1430 int
1431 main ()
1432 {
1433
1434 ;
1435 return 0;
1436 }
1437 _ACEOF
1438 rm -f conftest.o conftest.obj
1439 if { (eval echo "$as_me:1439: \"$ac_compile\"") >&5
1440 (eval $ac_compile) 2>&5
1441 ac_status=$?
1442 echo "$as_me:1442: \$? = $ac_status" >&5
1443 (exit $ac_status); }; then
1444 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1445 case $ac_file in
1446 *.$ac_ext | *.xcoff | *.tds | *.d | *.dbg | *.pdb | *.xSYM | *.map | *.inf ) ;;
1447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1448 break;;
1449 esac
1450 done
1451 else
1452 echo "$as_me: failed program was:" >&5
1453 cat conftest.$ac_ext >&5
1454 { { echo "$as_me:1454: error: cannot compute OBJEXT: cannot compile" >&5
1455 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1456 { (exit 1); exit 1; }; }
1457 fi
1458
1459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1460 fi
1461 echo "$as_me:1461: result: $ac_cv_objext" >&5
1462 echo "${ECHO_T}$ac_cv_objext" >&6
1463 OBJEXT=$ac_cv_objext
1464 ac_objext=$OBJEXT
1465 echo "$as_me:1465: checking whether we are using the GNU C compiler" >&5
1466 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 cat >conftest.$ac_ext <<_ACEOF
1471 #line 1471 "configure"
1472 #include "confdefs.h"
1473
1474 int
1475 main ()
1476 {
1477 #ifndef __GNUC__
1478 choke me
1479 #endif
1480
1481 ;
1482 return 0;
1483 }
1484 _ACEOF
1485 rm -f conftest.$ac_objext
1486 if { (eval echo "$as_me:1486: \"$ac_compile\"") >&5
1487 (eval $ac_compile) 2>&5
1488 ac_status=$?
1489 echo "$as_me:1489: \$? = $ac_status" >&5
1490 (exit $ac_status); } &&
1491 { ac_try='test -s conftest.$ac_objext'
1492 { (eval echo "$as_me:1492: \"$ac_try\"") >&5
1493 (eval $ac_try) 2>&5
1494 ac_status=$?
1495 echo "$as_me:1495: \$? = $ac_status" >&5
1496 (exit $ac_status); }; }; then
1497 ac_compiler_gnu=yes
1498 else
1499 echo "$as_me: failed program was:" >&5
1500 cat conftest.$ac_ext >&5
1501 ac_compiler_gnu=no
1502 fi
1503 rm -f conftest.$ac_objext conftest.$ac_ext
1504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1505
1506 fi
1507 echo "$as_me:1507: result: $ac_cv_c_compiler_gnu" >&5
1508 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1509 GCC=`test $ac_compiler_gnu = yes && echo yes`
1510 ac_test_CFLAGS=${CFLAGS+set}
1511 ac_save_CFLAGS=$CFLAGS
1512 CFLAGS="-g"
1513 echo "$as_me:1513: checking whether $CC accepts -g" >&5
1514 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1515 if test "${ac_cv_prog_cc_g+set}" = set; then
1516 echo $ECHO_N "(cached) $ECHO_C" >&6
1517 else
1518 cat >conftest.$ac_ext <<_ACEOF
1519 #line 1519 "configure"
1520 #include "confdefs.h"
1521
1522 int
1523 main ()
1524 {
1525
1526 ;
1527 return 0;
1528 }
1529 _ACEOF
1530 rm -f conftest.$ac_objext
1531 if { (eval echo "$as_me:1531: \"$ac_compile\"") >&5
1532 (eval $ac_compile) 2>&5
1533 ac_status=$?
1534 echo "$as_me:1534: \$? = $ac_status" >&5
1535 (exit $ac_status); } &&
1536 { ac_try='test -s conftest.$ac_objext'
1537 { (eval echo "$as_me:1537: \"$ac_try\"") >&5
1538 (eval $ac_try) 2>&5
1539 ac_status=$?
1540 echo "$as_me:1540: \$? = $ac_status" >&5
1541 (exit $ac_status); }; }; then
1542 ac_cv_prog_cc_g=yes
1543 else
1544 echo "$as_me: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 ac_cv_prog_cc_g=no
1547 fi
1548 rm -f conftest.$ac_objext conftest.$ac_ext
1549 fi
1550 echo "$as_me:1550: result: $ac_cv_prog_cc_g" >&5
1551 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1552 if test "$ac_test_CFLAGS" = set; then
1553 CFLAGS=$ac_save_CFLAGS
1554 elif test $ac_cv_prog_cc_g = yes; then
1555 if test "$GCC" = yes; then
1556 CFLAGS="-g -O2"
1557 else
1558 CFLAGS="-g"
1559 fi
1560 else
1561 if test "$GCC" = yes; then
1562 CFLAGS="-O2"
1563 else
1564 CFLAGS=
1565 fi
1566 fi
1567 # Some people use a C++ compiler to compile C. Since we use `exit',
1568 # in C++ we need to declare it. In case someone uses the same compiler
1569 # for both compiling C and C++ we need to have the C++ compiler decide
1570 # the declaration of exit, since it's the most demanding environment.
1571 cat >conftest.$ac_ext <<_ACEOF
1572 #ifndef __cplusplus
1573 choke me
1574 #endif
1575 _ACEOF
1576 rm -f conftest.$ac_objext
1577 if { (eval echo "$as_me:1577: \"$ac_compile\"") >&5
1578 (eval $ac_compile) 2>&5
1579 ac_status=$?
1580 echo "$as_me:1580: \$? = $ac_status" >&5
1581 (exit $ac_status); } &&
1582 { ac_try='test -s conftest.$ac_objext'
1583 { (eval echo "$as_me:1583: \"$ac_try\"") >&5
1584 (eval $ac_try) 2>&5
1585 ac_status=$?
1586 echo "$as_me:1586: \$? = $ac_status" >&5
1587 (exit $ac_status); }; }; then
1588 for ac_declaration in \
1589 ''\
1590 '#include <stdlib.h>' \
1591 'extern "C" void std::exit (int) throw (); using std::exit;' \
1592 'extern "C" void std::exit (int); using std::exit;' \
1593 'extern "C" void exit (int) throw ();' \
1594 'extern "C" void exit (int);' \
1595 'void exit (int);'
1596 do
1597 cat >conftest.$ac_ext <<_ACEOF
1598 #line 1598 "configure"
1599 #include "confdefs.h"
1600 #include <stdlib.h>
1601 $ac_declaration
1602 int
1603 main ()
1604 {
1605 exit (42);
1606 ;
1607 return 0;
1608 }
1609 _ACEOF
1610 rm -f conftest.$ac_objext
1611 if { (eval echo "$as_me:1611: \"$ac_compile\"") >&5
1612 (eval $ac_compile) 2>&5
1613 ac_status=$?
1614 echo "$as_me:1614: \$? = $ac_status" >&5
1615 (exit $ac_status); } &&
1616 { ac_try='test -s conftest.$ac_objext'
1617 { (eval echo "$as_me:1617: \"$ac_try\"") >&5
1618 (eval $ac_try) 2>&5
1619 ac_status=$?
1620 echo "$as_me:1620: \$? = $ac_status" >&5
1621 (exit $ac_status); }; }; then
1622 :
1623 else
1624 echo "$as_me: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 continue
1627 fi
1628 rm -f conftest.$ac_objext conftest.$ac_ext
1629 cat >conftest.$ac_ext <<_ACEOF
1630 #line 1630 "configure"
1631 #include "confdefs.h"
1632 $ac_declaration
1633 int
1634 main ()
1635 {
1636 exit (42);
1637 ;
1638 return 0;
1639 }
1640 _ACEOF
1641 rm -f conftest.$ac_objext
1642 if { (eval echo "$as_me:1642: \"$ac_compile\"") >&5
1643 (eval $ac_compile) 2>&5
1644 ac_status=$?
1645 echo "$as_me:1645: \$? = $ac_status" >&5
1646 (exit $ac_status); } &&
1647 { ac_try='test -s conftest.$ac_objext'
1648 { (eval echo "$as_me:1648: \"$ac_try\"") >&5
1649 (eval $ac_try) 2>&5
1650 ac_status=$?
1651 echo "$as_me:1651: \$? = $ac_status" >&5
1652 (exit $ac_status); }; }; then
1653 break
1654 else
1655 echo "$as_me: failed program was:" >&5
1656 cat conftest.$ac_ext >&5
1657 fi
1658 rm -f conftest.$ac_objext conftest.$ac_ext
1659 done
1660 rm -rf conftest*
1661 if test -n "$ac_declaration"; then
1662 echo '#ifdef __cplusplus' >>confdefs.h
1663 echo $ac_declaration >>confdefs.h
1664 echo '#endif' >>confdefs.h
1665 fi
1666
1667 else
1668 echo "$as_me: failed program was:" >&5
1669 cat conftest.$ac_ext >&5
1670 fi
1671 rm -f conftest.$ac_objext conftest.$ac_ext
1672 ac_ext=c
1673 ac_cpp='$CPP $CPPFLAGS'
1674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1677 ac_main_return=return
1678
1679 ac_aux_dir=
1680 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1681 if test -f $ac_dir/install-sh; then
1682 ac_aux_dir=$ac_dir
1683 ac_install_sh="$ac_aux_dir/install-sh -c"
1684 break
1685 elif test -f $ac_dir/install.sh; then
1686 ac_aux_dir=$ac_dir
1687 ac_install_sh="$ac_aux_dir/install.sh -c"
1688 break
1689 elif test -f $ac_dir/shtool; then
1690 ac_aux_dir=$ac_dir
1691 ac_install_sh="$ac_aux_dir/shtool install -c"
1692 break
1693 fi
1694 done
1695 if test -z "$ac_aux_dir"; then
1696 { { echo "$as_me:1696: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1697 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1698 { (exit 1); exit 1; }; }
1699 fi
1700 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1701 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1702 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1703
1704 # Find a good install program. We prefer a C program (faster),
1705 # so one script is as good as another. But avoid the broken or
1706 # incompatible versions:
1707 # SysV /etc/install, /usr/sbin/install
1708 # SunOS /usr/etc/install
1709 # IRIX /sbin/install
1710 # AIX /bin/install
1711 # AmigaOS /C/install, which installs bootblocks on floppy discs
1712 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1713 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1714 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1715 # ./install, which can be erroneously created by make from ./install.sh.
1716 echo "$as_me:1716: checking for a BSD compatible install" >&5
1717 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1718 if test -z "$INSTALL"; then
1719 if test "${ac_cv_path_install+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1721 else
1722 ac_save_IFS=$IFS; IFS=$ac_path_separator
1723 for ac_dir in $PATH; do
1724 IFS=$ac_save_IFS
1725 # Account for people who put trailing slashes in PATH elements.
1726 case $ac_dir/ in
1727 / | ./ | .// | /cC/* \
1728 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1729 | /usr/ucb/* ) ;;
1730 *)
1731 # OSF1 and SCO ODT 3.0 have their own names for install.
1732 # Don't use installbsd from OSF since it installs stuff as root
1733 # by default.
1734 for ac_prog in ginstall scoinst install; do
1735 if $as_executable_p "$ac_dir/$ac_prog"; then
1736 if test $ac_prog = install &&
1737 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1738 # AIX install. It has an incompatible calling convention.
1739 :
1740 elif test $ac_prog = install &&
1741 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1742 # program-specific install script used by HP pwplus--don't use.
1743 :
1744 else
1745 ac_cv_path_install="$ac_dir/$ac_prog -c"
1746 break 2
1747 fi
1748 fi
1749 done
1750 ;;
1751 esac
1752 done
1753
1754 fi
1755 if test "${ac_cv_path_install+set}" = set; then
1756 INSTALL=$ac_cv_path_install
1757 else
1758 # As a last resort, use the slow shell script. We don't cache a
1759 # path for INSTALL within a source directory, because that will
1760 # break other packages using the cache if that directory is
1761 # removed, or if the path is relative.
1762 INSTALL=$ac_install_sh
1763 fi
1764 fi
1765 echo "$as_me:1765: result: $INSTALL" >&5
1766 echo "${ECHO_T}$INSTALL" >&6
1767
1768 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1769 # It thinks the first close brace ends the variable substitution.
1770 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1771
1772 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1773
1774 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1775
1776 for ac_prog in tdlint lint alint splint lclint
1777 do
1778 # Extract the first word of "$ac_prog", so it can be a program name with args.
1779 set dummy $ac_prog; ac_word=$2
1780 echo "$as_me:1780: checking for $ac_word" >&5
1781 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1782 if test "${ac_cv_prog_LINT+set}" = set; then
1783 echo $ECHO_N "(cached) $ECHO_C" >&6
1784 else
1785 if test -n "$LINT"; then
1786 ac_cv_prog_LINT="$LINT" # Let the user override the test.
1787 else
1788 ac_save_IFS=$IFS; IFS=$ac_path_separator
1789 ac_dummy="$PATH"
1790 for ac_dir in $ac_dummy; do
1791 IFS=$ac_save_IFS
1792 test -z "$ac_dir" && ac_dir=.
1793 $as_executable_p "$ac_dir/$ac_word" || continue
1794 ac_cv_prog_LINT="$ac_prog"
1795 echo "$as_me:1795: found $ac_dir/$ac_word" >&5
1796 break
1797 done
1798
1799 fi
1800 fi
1801 LINT=$ac_cv_prog_LINT
1802 if test -n "$LINT"; then
1803 echo "$as_me:1803: result: $LINT" >&5
1804 echo "${ECHO_T}$LINT" >&6
1805 else
1806 echo "$as_me:1806: result: no" >&5
1807 echo "${ECHO_T}no" >&6
1808 fi
1809
1810 test -n "$LINT" && break
1811 done
1812
1813 echo "$as_me:1813: checking if filesystem supports mixed-case filenames" >&5
1814 echo $ECHO_N "checking if filesystem supports mixed-case filenames... $ECHO_C" >&6
1815 if test "${cf_cv_mixedcase+set}" = set; then
1816 echo $ECHO_N "(cached) $ECHO_C" >&6
1817 else
1818
1819 if test "$cross_compiling" = yes ; then
1820 case $target_alias in #(vi
1821 *-os2-emx*|*-msdosdjgpp*|*-cygwin*|*-mingw32*|*-uwin*) #(vi
1822 cf_cv_mixedcase=no
1823 ;;
1824 *)
1825 cf_cv_mixedcase=yes
1826 ;;
1827 esac
1828 else
1829 rm -f conftest CONFTEST
1830 echo test >conftest
1831 if test -f CONFTEST ; then
1832 cf_cv_mixedcase=no
1833 else
1834 cf_cv_mixedcase=yes
1835 fi
1836 rm -f conftest CONFTEST
1837 fi
1838
1839 fi
1840 echo "$as_me:1840: result: $cf_cv_mixedcase" >&5
1841 echo "${ECHO_T}$cf_cv_mixedcase" >&6
1842 test "$cf_cv_mixedcase" = yes && cat >>confdefs.h <<\EOF
1843 #define MIXEDCASE_FILENAMES 1
1844 EOF
1845
1846 for ac_prog in exctags ctags
1847 do
1848 # Extract the first word of "$ac_prog", so it can be a program name with args.
1849 set dummy $ac_prog; ac_word=$2
1850 echo "$as_me:1850: checking for $ac_word" >&5
1851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1852 if test "${ac_cv_prog_CTAGS+set}" = set; then
1853 echo $ECHO_N "(cached) $ECHO_C" >&6
1854 else
1855 if test -n "$CTAGS"; then
1856 ac_cv_prog_CTAGS="$CTAGS" # Let the user override the test.
1857 else
1858 ac_save_IFS=$IFS; IFS=$ac_path_separator
1859 ac_dummy="$PATH"
1860 for ac_dir in $ac_dummy; do
1861 IFS=$ac_save_IFS
1862 test -z "$ac_dir" && ac_dir=.
1863 $as_executable_p "$ac_dir/$ac_word" || continue
1864 ac_cv_prog_CTAGS="$ac_prog"
1865 echo "$as_me:1865: found $ac_dir/$ac_word" >&5
1866 break
1867 done
1868
1869 fi
1870 fi
1871 CTAGS=$ac_cv_prog_CTAGS
1872 if test -n "$CTAGS"; then
1873 echo "$as_me:1873: result: $CTAGS" >&5
1874 echo "${ECHO_T}$CTAGS" >&6
1875 else
1876 echo "$as_me:1876: result: no" >&5
1877 echo "${ECHO_T}no" >&6
1878 fi
1879
1880 test -n "$CTAGS" && break
1881 done
1882
1883 for ac_prog in exetags etags
1884 do
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:1887: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_ETAGS+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1891 else
1892 if test -n "$ETAGS"; then
1893 ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
1894 else
1895 ac_save_IFS=$IFS; IFS=$ac_path_separator
1896 ac_dummy="$PATH"
1897 for ac_dir in $ac_dummy; do
1898 IFS=$ac_save_IFS
1899 test -z "$ac_dir" && ac_dir=.
1900 $as_executable_p "$ac_dir/$ac_word" || continue
1901 ac_cv_prog_ETAGS="$ac_prog"
1902 echo "$as_me:1902: found $ac_dir/$ac_word" >&5
1903 break
1904 done
1905
1906 fi
1907 fi
1908 ETAGS=$ac_cv_prog_ETAGS
1909 if test -n "$ETAGS"; then
1910 echo "$as_me:1910: result: $ETAGS" >&5
1911 echo "${ECHO_T}$ETAGS" >&6
1912 else
1913 echo "$as_me:1913: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917 test -n "$ETAGS" && break
1918 done
1919
1920 # Extract the first word of "${CTAGS:-ctags}", so it can be a program name with args.
1921 set dummy ${CTAGS:-ctags}; ac_word=$2
1922 echo "$as_me:1922: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_MAKE_LOWER_TAGS+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 else
1927 if test -n "$MAKE_LOWER_TAGS"; then
1928 ac_cv_prog_MAKE_LOWER_TAGS="$MAKE_LOWER_TAGS" # Let the user override the test.
1929 else
1930 ac_save_IFS=$IFS; IFS=$ac_path_separator
1931 ac_dummy="$PATH"
1932 for ac_dir in $ac_dummy; do
1933 IFS=$ac_save_IFS
1934 test -z "$ac_dir" && ac_dir=.
1935 $as_executable_p "$ac_dir/$ac_word" || continue
1936 ac_cv_prog_MAKE_LOWER_TAGS="yes"
1937 echo "$as_me:1937: found $ac_dir/$ac_word" >&5
1938 break
1939 done
1940
1941 test -z "$ac_cv_prog_MAKE_LOWER_TAGS" && ac_cv_prog_MAKE_LOWER_TAGS="no"
1942 fi
1943 fi
1944 MAKE_LOWER_TAGS=$ac_cv_prog_MAKE_LOWER_TAGS
1945 if test -n "$MAKE_LOWER_TAGS"; then
1946 echo "$as_me:1946: result: $MAKE_LOWER_TAGS" >&5
1947 echo "${ECHO_T}$MAKE_LOWER_TAGS" >&6
1948 else
1949 echo "$as_me:1949: result: no" >&5
1950 echo "${ECHO_T}no" >&6
1951 fi
1952
1953 if test "$cf_cv_mixedcase" = yes ; then
1954 # Extract the first word of "${ETAGS:-etags}", so it can be a program name with args.
1955 set dummy ${ETAGS:-etags}; ac_word=$2
1956 echo "$as_me:1956: checking for $ac_word" >&5
1957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1958 if test "${ac_cv_prog_MAKE_UPPER_TAGS+set}" = set; then
1959 echo $ECHO_N "(cached) $ECHO_C" >&6
1960 else
1961 if test -n "$MAKE_UPPER_TAGS"; then
1962 ac_cv_prog_MAKE_UPPER_TAGS="$MAKE_UPPER_TAGS" # Let the user override the test.
1963 else
1964 ac_save_IFS=$IFS; IFS=$ac_path_separator
1965 ac_dummy="$PATH"
1966 for ac_dir in $ac_dummy; do
1967 IFS=$ac_save_IFS
1968 test -z "$ac_dir" && ac_dir=.
1969 $as_executable_p "$ac_dir/$ac_word" || continue
1970 ac_cv_prog_MAKE_UPPER_TAGS="yes"
1971 echo "$as_me:1971: found $ac_dir/$ac_word" >&5
1972 break
1973 done
1974
1975 test -z "$ac_cv_prog_MAKE_UPPER_TAGS" && ac_cv_prog_MAKE_UPPER_TAGS="no"
1976 fi
1977 fi
1978 MAKE_UPPER_TAGS=$ac_cv_prog_MAKE_UPPER_TAGS
1979 if test -n "$MAKE_UPPER_TAGS"; then
1980 echo "$as_me:1980: result: $MAKE_UPPER_TAGS" >&5
1981 echo "${ECHO_T}$MAKE_UPPER_TAGS" >&6
1982 else
1983 echo "$as_me:1983: result: no" >&5
1984 echo "${ECHO_T}no" >&6
1985 fi
1986
1987 else
1988 MAKE_UPPER_TAGS=no
1989 fi
1990
1991 if test "$MAKE_UPPER_TAGS" = yes ; then
1992 MAKE_UPPER_TAGS=
1993 else
1994 MAKE_UPPER_TAGS="#"
1995 fi
1996
1997 if test "$MAKE_LOWER_TAGS" = yes ; then
1998 MAKE_LOWER_TAGS=
1999 else
2000 MAKE_LOWER_TAGS="#"
2001 fi
2002
2003 # This should have been defined by AC_PROG_CC
2004 : ${CC:=cc}
2005
2006 # Check for user's environment-breakage by stuffing CFLAGS/CPPFLAGS content
2007 # into CC. This will not help with broken scripts that wrap the compiler with
2008 # options, but eliminates a more common category of user confusion.
2009 echo "$as_me:2009: checking \$CC variable" >&5
2010 echo $ECHO_N "checking \$CC variable... $ECHO_C" >&6
2011 case "$CC" in #(vi
2012 *[\ \ ]-[IUD]*)
2013 echo "$as_me:2013: result: broken" >&5
2014 echo "${ECHO_T}broken" >&6
2015 { echo "$as_me:2015: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&5
2016 echo "$as_me: WARNING: your environment misuses the CC variable to hold CFLAGS/CPPFLAGS options" >&2;}
2017 # humor him...
2018 cf_flags=`echo "$CC" | sed -e 's/^[^ ]*[ ]//'`
2019 CC=`echo "$CC" | sed -e 's/[ ].*//'`
2020
2021 cf_fix_cppflags=no
2022 cf_new_cflags=
2023 cf_new_cppflags=
2024 cf_new_extra_cppflags=
2025
2026 for cf_add_cflags in $cf_flags
2027 do
2028 case $cf_fix_cppflags in
2029 no)
2030 case $cf_add_cflags in #(vi
2031 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2032 case $cf_add_cflags in
2033 -D*)
2034 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2035
2036 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2037 && test -z "${cf_tst_cflags}" \
2038 && cf_fix_cppflags=yes
2039
2040 if test $cf_fix_cppflags = yes ; then
2041 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2042 continue
2043 elif test "${cf_tst_cflags}" = "\"'" ; then
2044 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2045 continue
2046 fi
2047 ;;
2048 esac
2049 case "$CPPFLAGS" in
2050 *$cf_add_cflags) #(vi
2051 ;;
2052 *) #(vi
2053 case $cf_add_cflags in #(vi
2054 -D*)
2055 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2056
2057 CPPFLAGS=`echo "$CPPFLAGS" | \
2058 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2059 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2060
2061 ;;
2062 esac
2063 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2064 ;;
2065 esac
2066 ;;
2067 *)
2068 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2069 ;;
2070 esac
2071 ;;
2072 yes)
2073 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2074
2075 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2076
2077 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2078 && test -z "${cf_tst_cflags}" \
2079 && cf_fix_cppflags=no
2080 ;;
2081 esac
2082 done
2083
2084 if test -n "$cf_new_cflags" ; then
2085
2086 CFLAGS="$CFLAGS $cf_new_cflags"
2087 fi
2088
2089 if test -n "$cf_new_cppflags" ; then
2090
2091 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2092 fi
2093
2094 if test -n "$cf_new_extra_cppflags" ; then
2095
2096 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2097 fi
2098
2099 ;;
2100 *)
2101 echo "$as_me:2101: result: ok" >&5
2102 echo "${ECHO_T}ok" >&6
2103 ;;
2104 esac
2105
2106 echo "$as_me:2106: checking for ${CC:-cc} option to accept ANSI C" >&5
2107 echo $ECHO_N "checking for ${CC:-cc} option to accept ANSI C... $ECHO_C" >&6
2108 if test "${cf_cv_ansi_cc+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111
2112 cf_cv_ansi_cc=no
2113 cf_save_CFLAGS="$CFLAGS"
2114 cf_save_CPPFLAGS="$CPPFLAGS"
2115 # Don't try gcc -ansi; that turns off useful extensions and
2116 # breaks some systems' header files.
2117 # AIX -qlanglvl=ansi
2118 # Ultrix and OSF/1 -std1
2119 # HP-UX -Aa -D_HPUX_SOURCE
2120 # SVR4 -Xc
2121 # UnixWare 1.2 (cannot use -Xc, since ANSI/POSIX clashes)
2122 for cf_arg in "-DCC_HAS_PROTOS" \
2123 "" \
2124 -qlanglvl=ansi \
2125 -std1 \
2126 -Ae \
2127 "-Aa -D_HPUX_SOURCE" \
2128 -Xc
2129 do
2130
2131 cf_fix_cppflags=no
2132 cf_new_cflags=
2133 cf_new_cppflags=
2134 cf_new_extra_cppflags=
2135
2136 for cf_add_cflags in $cf_arg
2137 do
2138 case $cf_fix_cppflags in
2139 no)
2140 case $cf_add_cflags in #(vi
2141 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2142 case $cf_add_cflags in
2143 -D*)
2144 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2145
2146 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2147 && test -z "${cf_tst_cflags}" \
2148 && cf_fix_cppflags=yes
2149
2150 if test $cf_fix_cppflags = yes ; then
2151 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2152 continue
2153 elif test "${cf_tst_cflags}" = "\"'" ; then
2154 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2155 continue
2156 fi
2157 ;;
2158 esac
2159 case "$CPPFLAGS" in
2160 *$cf_add_cflags) #(vi
2161 ;;
2162 *) #(vi
2163 case $cf_add_cflags in #(vi
2164 -D*)
2165 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2166
2167 CPPFLAGS=`echo "$CPPFLAGS" | \
2168 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2169 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2170
2171 ;;
2172 esac
2173 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2174 ;;
2175 esac
2176 ;;
2177 *)
2178 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2179 ;;
2180 esac
2181 ;;
2182 yes)
2183 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2184
2185 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2186
2187 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2188 && test -z "${cf_tst_cflags}" \
2189 && cf_fix_cppflags=no
2190 ;;
2191 esac
2192 done
2193
2194 if test -n "$cf_new_cflags" ; then
2195
2196 CFLAGS="$CFLAGS $cf_new_cflags"
2197 fi
2198
2199 if test -n "$cf_new_cppflags" ; then
2200
2201 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2202 fi
2203
2204 if test -n "$cf_new_extra_cppflags" ; then
2205
2206 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2207 fi
2208
2209 cat >conftest.$ac_ext <<_ACEOF
2210 #line 2210 "configure"
2211 #include "confdefs.h"
2212
2213 #ifndef CC_HAS_PROTOS
2214 #if !defined(__STDC__) || (__STDC__ != 1)
2215 choke me
2216 #endif
2217 #endif
2218
2219 int
2220 main ()
2221 {
2222
2223 int test (int i, double x);
2224 struct s1 {int (*f) (int a);};
2225 struct s2 {int (*f) (double a);};
2226 ;
2227 return 0;
2228 }
2229 _ACEOF
2230 rm -f conftest.$ac_objext
2231 if { (eval echo "$as_me:2231: \"$ac_compile\"") >&5
2232 (eval $ac_compile) 2>&5
2233 ac_status=$?
2234 echo "$as_me:2234: \$? = $ac_status" >&5
2235 (exit $ac_status); } &&
2236 { ac_try='test -s conftest.$ac_objext'
2237 { (eval echo "$as_me:2237: \"$ac_try\"") >&5
2238 (eval $ac_try) 2>&5
2239 ac_status=$?
2240 echo "$as_me:2240: \$? = $ac_status" >&5
2241 (exit $ac_status); }; }; then
2242 cf_cv_ansi_cc="$cf_arg"; break
2243 else
2244 echo "$as_me: failed program was:" >&5
2245 cat conftest.$ac_ext >&5
2246 fi
2247 rm -f conftest.$ac_objext conftest.$ac_ext
2248 done
2249 CFLAGS="$cf_save_CFLAGS"
2250 CPPFLAGS="$cf_save_CPPFLAGS"
2251
2252 fi
2253 echo "$as_me:2253: result: $cf_cv_ansi_cc" >&5
2254 echo "${ECHO_T}$cf_cv_ansi_cc" >&6
2255
2256 if test "$cf_cv_ansi_cc" != "no"; then
2257 if test ".$cf_cv_ansi_cc" != ".-DCC_HAS_PROTOS"; then
2258
2259 cf_fix_cppflags=no
2260 cf_new_cflags=
2261 cf_new_cppflags=
2262 cf_new_extra_cppflags=
2263
2264 for cf_add_cflags in $cf_cv_ansi_cc
2265 do
2266 case $cf_fix_cppflags in
2267 no)
2268 case $cf_add_cflags in #(vi
2269 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
2270 case $cf_add_cflags in
2271 -D*)
2272 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
2273
2274 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2275 && test -z "${cf_tst_cflags}" \
2276 && cf_fix_cppflags=yes
2277
2278 if test $cf_fix_cppflags = yes ; then
2279 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2280 continue
2281 elif test "${cf_tst_cflags}" = "\"'" ; then
2282 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2283 continue
2284 fi
2285 ;;
2286 esac
2287 case "$CPPFLAGS" in
2288 *$cf_add_cflags) #(vi
2289 ;;
2290 *) #(vi
2291 case $cf_add_cflags in #(vi
2292 -D*)
2293 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
2294
2295 CPPFLAGS=`echo "$CPPFLAGS" | \
2296 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
2297 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
2298
2299 ;;
2300 esac
2301 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
2302 ;;
2303 esac
2304 ;;
2305 *)
2306 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
2307 ;;
2308 esac
2309 ;;
2310 yes)
2311 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
2312
2313 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
2314
2315 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
2316 && test -z "${cf_tst_cflags}" \
2317 && cf_fix_cppflags=no
2318 ;;
2319 esac
2320 done
2321
2322 if test -n "$cf_new_cflags" ; then
2323
2324 CFLAGS="$CFLAGS $cf_new_cflags"
2325 fi
2326
2327 if test -n "$cf_new_cppflags" ; then
2328
2329 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
2330 fi
2331
2332 if test -n "$cf_new_extra_cppflags" ; then
2333
2334 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
2335 fi
2336
2337 else
2338 cat >>confdefs.h <<\EOF
2339 #define CC_HAS_PROTOS 1
2340 EOF
2341
2342 fi
2343 fi
2344
2345 if test "$cf_cv_ansi_cc" = "no"; then
2346 { { echo "$as_me:2346: error: Your compiler does not appear to recognize prototypes.
2347 You have the following choices:
2348 a. adjust your compiler options
2349 b. get an up-to-date compiler
2350 c. use a wrapper such as unproto" >&5
2351 echo "$as_me: error: Your compiler does not appear to recognize prototypes.
2352 You have the following choices:
2353 a. adjust your compiler options
2354 b. get an up-to-date compiler
2355 c. use a wrapper such as unproto" >&2;}
2356 { (exit 1); exit 1; }; }
2357 fi
2358
2359 echo "$as_me:2359: checking if you want to see long compiling messages" >&5
2360 echo $ECHO_N "checking if you want to see long compiling messages... $ECHO_C" >&6
2361
2362 # Check whether --enable-echo or --disable-echo was given.
2363 if test "${enable_echo+set}" = set; then
2364 enableval="$enable_echo"
2365 test "$enableval" != no && enableval=yes
2366 if test "$enableval" != "yes" ; then
2367
2368 ECHO_LT='--silent'
2369 ECHO_LD='@echo linking $@;'
2370 RULE_CC='@echo compiling $<'
2371 SHOW_CC='@echo compiling $@'
2372 ECHO_CC='@'
2373
2374 else
2375
2376 ECHO_LT=''
2377 ECHO_LD=''
2378 RULE_CC=''
2379 SHOW_CC=''
2380 ECHO_CC=''
2381
2382 fi
2383 else
2384 enableval=yes
2385
2386 ECHO_LT=''
2387 ECHO_LD=''
2388 RULE_CC=''
2389 SHOW_CC=''
2390 ECHO_CC=''
2391
2392 fi;
2393 echo "$as_me:2393: result: $enableval" >&5
2394 echo "${ECHO_T}$enableval" >&6
2395
2396 # Make sure we can run config.sub.
2397 $ac_config_sub sun4 >/dev/null 2>&1 ||
2398 { { echo "$as_me:2398: error: cannot run $ac_config_sub" >&5
2399 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2400 { (exit 1); exit 1; }; }
2401
2402 echo "$as_me:2402: checking build system type" >&5
2403 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2404 if test "${ac_cv_build+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2406 else
2407 ac_cv_build_alias=$build_alias
2408 test -z "$ac_cv_build_alias" &&
2409 ac_cv_build_alias=`$ac_config_guess`
2410 test -z "$ac_cv_build_alias" &&
2411 { { echo "$as_me:2411: error: cannot guess build type; you must specify one" >&5
2412 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2413 { (exit 1); exit 1; }; }
2414 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2415 { { echo "$as_me:2415: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2416 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2417 { (exit 1); exit 1; }; }
2418
2419 fi
2420 echo "$as_me:2420: result: $ac_cv_build" >&5
2421 echo "${ECHO_T}$ac_cv_build" >&6
2422 build=$ac_cv_build
2423 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2424 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2425 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2426
2427 if test -f $srcdir/config.guess || test -f $ac_aux_dir/config.guess ; then
2428 echo "$as_me:2428: checking host system type" >&5
2429 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2430 if test "${ac_cv_host+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 else
2433 ac_cv_host_alias=$host_alias
2434 test -z "$ac_cv_host_alias" &&
2435 ac_cv_host_alias=$ac_cv_build_alias
2436 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2437 { { echo "$as_me:2437: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2438 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2439 { (exit 1); exit 1; }; }
2440
2441 fi
2442 echo "$as_me:2442: result: $ac_cv_host" >&5
2443 echo "${ECHO_T}$ac_cv_host" >&6
2444 host=$ac_cv_host
2445 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2446 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2447 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2448
2449 system_name="$host_os"
2450 else
2451 system_name="`(uname -s -r) 2>/dev/null`"
2452 if test -z "$system_name" ; then
2453 system_name="`(hostname) 2>/dev/null`"
2454 fi
2455 fi
2456 test -n "$system_name" && cat >>confdefs.h <<EOF
2457 #define SYSTEM_NAME "$system_name"
2458 EOF
2459
2460 if test "${cf_cv_system_name+set}" = set; then
2461 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 else
2463 cf_cv_system_name="$system_name"
2464 fi
2465
2466 test -z "$system_name" && system_name="$cf_cv_system_name"
2467 test -n "$cf_cv_system_name" && echo "$as_me:2467: result: Configuring for $cf_cv_system_name" >&5
2468 echo "${ECHO_T}Configuring for $cf_cv_system_name" >&6
2469
2470 if test ".$system_name" != ".$cf_cv_system_name" ; then
2471 echo "$as_me:2471: result: Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&5
2472 echo "${ECHO_T}Cached system name ($system_name) does not agree with actual ($cf_cv_system_name)" >&6
2473 { { echo "$as_me:2473: error: \"Please remove config.cache and try again.\"" >&5
2474 echo "$as_me: error: \"Please remove config.cache and try again.\"" >&2;}
2475 { (exit 1); exit 1; }; }
2476 fi
2477
2478 case $cf_cv_system_name in
2479 os2*)
2480 CFLAGS="$CFLAGS -Zmt"
2481 CPPFLAGS="$CPPFLAGS -D__ST_MT_ERRNO__"
2482 CXXFLAGS="$CXXFLAGS -Zmt"
2483 # autoconf's macro sets -Zexe and suffix both, which conflict:w
2484 LDFLAGS="$LDFLAGS -Zmt -Zcrtdll"
2485 ac_cv_exeext=.exe
2486 ;;
2487 esac
2488
2489 PROG_EXT="$EXEEXT"
2490
2491 test -n "$PROG_EXT" && cat >>confdefs.h <<EOF
2492 #define PROG_EXT "$PROG_EXT"
2493 EOF
2494
2495 echo "$as_me:2495: checking for install-prefix" >&5
2496 echo $ECHO_N "checking for install-prefix... $ECHO_C" >&6
2497
2498 # Check whether --with-install-prefix or --without-install-prefix was given.
2499 if test "${with_install_prefix+set}" = set; then
2500 withval="$with_install_prefix"
2501 cf_opt_with_install_prefix=$withval
2502 else
2503 cf_opt_with_install_prefix=${DESTDIR:-no}
2504 fi;
2505 echo "$as_me:2505: result: $cf_opt_with_install_prefix" >&5
2506 echo "${ECHO_T}$cf_opt_with_install_prefix" >&6
2507 if test "$cf_opt_with_install_prefix" != no ; then
2508
2509 if test "x$prefix" != xNONE; then
2510 cf_path_syntax="$prefix"
2511 else
2512 cf_path_syntax="$ac_default_prefix"
2513 fi
2514
2515 case ".$cf_opt_with_install_prefix" in #(vi
2516 .\$\(*\)*|.\'*\'*) #(vi
2517 ;;
2518 ..|./*|.\\*) #(vi
2519 ;;
2520 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2521 ;;
2522 .\${*prefix}*) #(vi
2523 eval cf_opt_with_install_prefix="$cf_opt_with_install_prefix"
2524 case ".$cf_opt_with_install_prefix" in #(vi
2525 .NONE/*)
2526 cf_opt_with_install_prefix=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
2527 ;;
2528 esac
2529 ;; #(vi
2530 .no|.NONE/*)
2531 cf_opt_with_install_prefix=`echo $cf_opt_with_install_prefix | sed -e s%NONE%$cf_path_syntax%`
2532 ;;
2533 *)
2534 { { echo "$as_me:2534: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&5
2535 echo "$as_me: error: expected a pathname, not \"$cf_opt_with_install_prefix\"" >&2;}
2536 { (exit 1); exit 1; }; }
2537 ;;
2538 esac
2539
2540 DESTDIR=$cf_opt_with_install_prefix
2541 fi
2542
2543 with_full_paths=no
2544
2545 case $cf_cv_system_name in
2546 os2*) PATH_SEPARATOR=';' ;;
2547 *) PATH_SEPARATOR=':' ;;
2548 esac
2549
2550 test -z "$BZCAT" && BZCAT=bzcat
2551 for ac_prog in $BZCAT bzcat
2552 do
2553 # Extract the first word of "$ac_prog", so it can be a program name with args.
2554 set dummy $ac_prog; ac_word=$2
2555 echo "$as_me:2555: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2557 if test "${ac_cv_path_BZCAT+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2559 else
2560 case $BZCAT in
2561 [\\/]* | ?:[\\/]*)
2562 ac_cv_path_BZCAT="$BZCAT" # Let the user override the test with a path.
2563 ;;
2564 *)
2565 ac_save_IFS=$IFS; IFS=$ac_path_separator
2566 ac_dummy="$PATH"
2567 for ac_dir in $ac_dummy; do
2568 IFS=$ac_save_IFS
2569 test -z "$ac_dir" && ac_dir=.
2570 if $as_executable_p "$ac_dir/$ac_word"; then
2571 ac_cv_path_BZCAT="$ac_dir/$ac_word"
2572 echo "$as_me:2572: found $ac_dir/$ac_word" >&5
2573 break
2574 fi
2575 done
2576
2577 ;;
2578 esac
2579 fi
2580 BZCAT=$ac_cv_path_BZCAT
2581
2582 if test -n "$BZCAT"; then
2583 echo "$as_me:2583: result: $BZCAT" >&5
2584 echo "${ECHO_T}$BZCAT" >&6
2585 else
2586 echo "$as_me:2586: result: no" >&5
2587 echo "${ECHO_T}no" >&6
2588 fi
2589
2590 test -n "$BZCAT" && break
2591 done
2592 test -n "$BZCAT" || BZCAT="$BZCAT"
2593
2594 cf_path_prog=""
2595 cf_path_args=""
2596 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
2597 for cf_temp in $ac_cv_path_BZCAT
2598 do
2599 if test -z "$cf_path_prog" ; then
2600 if test "$with_full_paths" = yes ; then
2601
2602 if test "x$prefix" != xNONE; then
2603 cf_path_syntax="$prefix"
2604 else
2605 cf_path_syntax="$ac_default_prefix"
2606 fi
2607
2608 case ".$cf_temp" in #(vi
2609 .\$\(*\)*|.\'*\'*) #(vi
2610 ;;
2611 ..|./*|.\\*) #(vi
2612 ;;
2613 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2614 ;;
2615 .\${*prefix}*) #(vi
2616 eval cf_temp="$cf_temp"
2617 case ".$cf_temp" in #(vi
2618 .NONE/*)
2619 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2620 ;;
2621 esac
2622 ;; #(vi
2623 .no|.NONE/*)
2624 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2625 ;;
2626 *)
2627 break
2628 ;;
2629 esac
2630
2631 cf_path_prog="$cf_temp"
2632 else
2633 cf_path_prog="`basename $cf_temp`"
2634 fi
2635 elif test -z "$cf_path_args" ; then
2636 cf_path_args="$cf_temp"
2637 else
2638 cf_path_args="$cf_path_args $cf_temp"
2639 fi
2640 done
2641 IFS="$cf_save_ifs"
2642
2643 if test -n "$cf_path_prog" ; then
2644
2645 echo "${as_me:-configure}:2645: testing defining path for ${cf_path_prog} ..." 1>&5
2646
2647 cat >>confdefs.h <<EOF
2648 #define BZCAT_PATH "$cf_path_prog"
2649 EOF
2650
2651 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
2652 #define BZCAT_ARGS "$cf_path_args"
2653 EOF
2654
2655 fi
2656
2657 test -z "$BZIP2" && BZIP2=bzip2
2658 for ac_prog in $BZIP2 bzip2
2659 do
2660 # Extract the first word of "$ac_prog", so it can be a program name with args.
2661 set dummy $ac_prog; ac_word=$2
2662 echo "$as_me:2662: checking for $ac_word" >&5
2663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2664 if test "${ac_cv_path_BZIP2+set}" = set; then
2665 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 else
2667 case $BZIP2 in
2668 [\\/]* | ?:[\\/]*)
2669 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
2670 ;;
2671 *)
2672 ac_save_IFS=$IFS; IFS=$ac_path_separator
2673 ac_dummy="$PATH"
2674 for ac_dir in $ac_dummy; do
2675 IFS=$ac_save_IFS
2676 test -z "$ac_dir" && ac_dir=.
2677 if $as_executable_p "$ac_dir/$ac_word"; then
2678 ac_cv_path_BZIP2="$ac_dir/$ac_word"
2679 echo "$as_me:2679: found $ac_dir/$ac_word" >&5
2680 break
2681 fi
2682 done
2683
2684 ;;
2685 esac
2686 fi
2687 BZIP2=$ac_cv_path_BZIP2
2688
2689 if test -n "$BZIP2"; then
2690 echo "$as_me:2690: result: $BZIP2" >&5
2691 echo "${ECHO_T}$BZIP2" >&6
2692 else
2693 echo "$as_me:2693: result: no" >&5
2694 echo "${ECHO_T}no" >&6
2695 fi
2696
2697 test -n "$BZIP2" && break
2698 done
2699 test -n "$BZIP2" || BZIP2="$BZIP2"
2700
2701 cf_path_prog=""
2702 cf_path_args=""
2703 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
2704 for cf_temp in $ac_cv_path_BZIP2
2705 do
2706 if test -z "$cf_path_prog" ; then
2707 if test "$with_full_paths" = yes ; then
2708
2709 if test "x$prefix" != xNONE; then
2710 cf_path_syntax="$prefix"
2711 else
2712 cf_path_syntax="$ac_default_prefix"
2713 fi
2714
2715 case ".$cf_temp" in #(vi
2716 .\$\(*\)*|.\'*\'*) #(vi
2717 ;;
2718 ..|./*|.\\*) #(vi
2719 ;;
2720 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2721 ;;
2722 .\${*prefix}*) #(vi
2723 eval cf_temp="$cf_temp"
2724 case ".$cf_temp" in #(vi
2725 .NONE/*)
2726 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2727 ;;
2728 esac
2729 ;; #(vi
2730 .no|.NONE/*)
2731 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2732 ;;
2733 *)
2734 break
2735 ;;
2736 esac
2737
2738 cf_path_prog="$cf_temp"
2739 else
2740 cf_path_prog="`basename $cf_temp`"
2741 fi
2742 elif test -z "$cf_path_args" ; then
2743 cf_path_args="$cf_temp"
2744 else
2745 cf_path_args="$cf_path_args $cf_temp"
2746 fi
2747 done
2748 IFS="$cf_save_ifs"
2749
2750 if test -n "$cf_path_prog" ; then
2751
2752 echo "${as_me:-configure}:2752: testing defining path for ${cf_path_prog} ..." 1>&5
2753
2754 cat >>confdefs.h <<EOF
2755 #define BZIP2_PATH "$cf_path_prog"
2756 EOF
2757
2758 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
2759 #define BZIP2_ARGS "$cf_path_args"
2760 EOF
2761
2762 fi
2763
2764 test -z "$COMPRESS" && COMPRESS=compress
2765 for ac_prog in $COMPRESS compress gzip
2766 do
2767 # Extract the first word of "$ac_prog", so it can be a program name with args.
2768 set dummy $ac_prog; ac_word=$2
2769 echo "$as_me:2769: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_path_COMPRESS+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774 case $COMPRESS in
2775 [\\/]* | ?:[\\/]*)
2776 ac_cv_path_COMPRESS="$COMPRESS" # Let the user override the test with a path.
2777 ;;
2778 *)
2779 ac_save_IFS=$IFS; IFS=$ac_path_separator
2780 ac_dummy="$PATH"
2781 for ac_dir in $ac_dummy; do
2782 IFS=$ac_save_IFS
2783 test -z "$ac_dir" && ac_dir=.
2784 if $as_executable_p "$ac_dir/$ac_word"; then
2785 ac_cv_path_COMPRESS="$ac_dir/$ac_word"
2786 echo "$as_me:2786: found $ac_dir/$ac_word" >&5
2787 break
2788 fi
2789 done
2790
2791 ;;
2792 esac
2793 fi
2794 COMPRESS=$ac_cv_path_COMPRESS
2795
2796 if test -n "$COMPRESS"; then
2797 echo "$as_me:2797: result: $COMPRESS" >&5
2798 echo "${ECHO_T}$COMPRESS" >&6
2799 else
2800 echo "$as_me:2800: result: no" >&5
2801 echo "${ECHO_T}no" >&6
2802 fi
2803
2804 test -n "$COMPRESS" && break
2805 done
2806 test -n "$COMPRESS" || COMPRESS="$COMPRESS"
2807
2808 cf_path_prog=""
2809 cf_path_args=""
2810 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
2811 for cf_temp in $ac_cv_path_COMPRESS
2812 do
2813 if test -z "$cf_path_prog" ; then
2814 if test "$with_full_paths" = yes ; then
2815
2816 if test "x$prefix" != xNONE; then
2817 cf_path_syntax="$prefix"
2818 else
2819 cf_path_syntax="$ac_default_prefix"
2820 fi
2821
2822 case ".$cf_temp" in #(vi
2823 .\$\(*\)*|.\'*\'*) #(vi
2824 ;;
2825 ..|./*|.\\*) #(vi
2826 ;;
2827 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2828 ;;
2829 .\${*prefix}*) #(vi
2830 eval cf_temp="$cf_temp"
2831 case ".$cf_temp" in #(vi
2832 .NONE/*)
2833 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2834 ;;
2835 esac
2836 ;; #(vi
2837 .no|.NONE/*)
2838 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2839 ;;
2840 *)
2841 break
2842 ;;
2843 esac
2844
2845 cf_path_prog="$cf_temp"
2846 else
2847 cf_path_prog="`basename $cf_temp`"
2848 fi
2849 elif test -z "$cf_path_args" ; then
2850 cf_path_args="$cf_temp"
2851 else
2852 cf_path_args="$cf_path_args $cf_temp"
2853 fi
2854 done
2855 IFS="$cf_save_ifs"
2856
2857 if test -n "$cf_path_prog" ; then
2858
2859 echo "${as_me:-configure}:2859: testing defining path for ${cf_path_prog} ..." 1>&5
2860
2861 cat >>confdefs.h <<EOF
2862 #define COMPRESS_PATH "$cf_path_prog"
2863 EOF
2864
2865 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
2866 #define COMPRESS_ARGS "$cf_path_args"
2867 EOF
2868
2869 fi
2870
2871 test -z "$GZIP" && GZIP=gzip
2872 for ac_prog in $GZIP gzip
2873 do
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 echo "$as_me:2876: checking for $ac_word" >&5
2877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2878 if test "${ac_cv_path_GZIP+set}" = set; then
2879 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 else
2881 case $GZIP in
2882 [\\/]* | ?:[\\/]*)
2883 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
2884 ;;
2885 *)
2886 ac_save_IFS=$IFS; IFS=$ac_path_separator
2887 ac_dummy="$PATH"
2888 for ac_dir in $ac_dummy; do
2889 IFS=$ac_save_IFS
2890 test -z "$ac_dir" && ac_dir=.
2891 if $as_executable_p "$ac_dir/$ac_word"; then
2892 ac_cv_path_GZIP="$ac_dir/$ac_word"
2893 echo "$as_me:2893: found $ac_dir/$ac_word" >&5
2894 break
2895 fi
2896 done
2897
2898 ;;
2899 esac
2900 fi
2901 GZIP=$ac_cv_path_GZIP
2902
2903 if test -n "$GZIP"; then
2904 echo "$as_me:2904: result: $GZIP" >&5
2905 echo "${ECHO_T}$GZIP" >&6
2906 else
2907 echo "$as_me:2907: result: no" >&5
2908 echo "${ECHO_T}no" >&6
2909 fi
2910
2911 test -n "$GZIP" && break
2912 done
2913 test -n "$GZIP" || GZIP="$GZIP"
2914
2915 cf_path_prog=""
2916 cf_path_args=""
2917 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
2918 for cf_temp in $ac_cv_path_GZIP
2919 do
2920 if test -z "$cf_path_prog" ; then
2921 if test "$with_full_paths" = yes ; then
2922
2923 if test "x$prefix" != xNONE; then
2924 cf_path_syntax="$prefix"
2925 else
2926 cf_path_syntax="$ac_default_prefix"
2927 fi
2928
2929 case ".$cf_temp" in #(vi
2930 .\$\(*\)*|.\'*\'*) #(vi
2931 ;;
2932 ..|./*|.\\*) #(vi
2933 ;;
2934 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
2935 ;;
2936 .\${*prefix}*) #(vi
2937 eval cf_temp="$cf_temp"
2938 case ".$cf_temp" in #(vi
2939 .NONE/*)
2940 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2941 ;;
2942 esac
2943 ;; #(vi
2944 .no|.NONE/*)
2945 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
2946 ;;
2947 *)
2948 break
2949 ;;
2950 esac
2951
2952 cf_path_prog="$cf_temp"
2953 else
2954 cf_path_prog="`basename $cf_temp`"
2955 fi
2956 elif test -z "$cf_path_args" ; then
2957 cf_path_args="$cf_temp"
2958 else
2959 cf_path_args="$cf_path_args $cf_temp"
2960 fi
2961 done
2962 IFS="$cf_save_ifs"
2963
2964 if test -n "$cf_path_prog" ; then
2965
2966 echo "${as_me:-configure}:2966: testing defining path for ${cf_path_prog} ..." 1>&5
2967
2968 cat >>confdefs.h <<EOF
2969 #define GZIP_PATH "$cf_path_prog"
2970 EOF
2971
2972 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
2973 #define GZIP_ARGS "$cf_path_args"
2974 EOF
2975
2976 fi
2977
2978 test -z "$LZCAT" && LZCAT=lzcat
2979 for ac_prog in $LZCAT lzcat xz
2980 do
2981 # Extract the first word of "$ac_prog", so it can be a program name with args.
2982 set dummy $ac_prog; ac_word=$2
2983 echo "$as_me:2983: checking for $ac_word" >&5
2984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2985 if test "${ac_cv_path_LZCAT+set}" = set; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 case $LZCAT in
2989 [\\/]* | ?:[\\/]*)
2990 ac_cv_path_LZCAT="$LZCAT" # Let the user override the test with a path.
2991 ;;
2992 *)
2993 ac_save_IFS=$IFS; IFS=$ac_path_separator
2994 ac_dummy="$PATH"
2995 for ac_dir in $ac_dummy; do
2996 IFS=$ac_save_IFS
2997 test -z "$ac_dir" && ac_dir=.
2998 if $as_executable_p "$ac_dir/$ac_word"; then
2999 ac_cv_path_LZCAT="$ac_dir/$ac_word"
3000 echo "$as_me:3000: found $ac_dir/$ac_word" >&5
3001 break
3002 fi
3003 done
3004
3005 ;;
3006 esac
3007 fi
3008 LZCAT=$ac_cv_path_LZCAT
3009
3010 if test -n "$LZCAT"; then
3011 echo "$as_me:3011: result: $LZCAT" >&5
3012 echo "${ECHO_T}$LZCAT" >&6
3013 else
3014 echo "$as_me:3014: result: no" >&5
3015 echo "${ECHO_T}no" >&6
3016 fi
3017
3018 test -n "$LZCAT" && break
3019 done
3020 test -n "$LZCAT" || LZCAT="$LZCAT"
3021
3022 cf_path_prog=""
3023 cf_path_args=""
3024 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
3025 for cf_temp in $ac_cv_path_LZCAT
3026 do
3027 if test -z "$cf_path_prog" ; then
3028 if test "$with_full_paths" = yes ; then
3029
3030 if test "x$prefix" != xNONE; then
3031 cf_path_syntax="$prefix"
3032 else
3033 cf_path_syntax="$ac_default_prefix"
3034 fi
3035
3036 case ".$cf_temp" in #(vi
3037 .\$\(*\)*|.\'*\'*) #(vi
3038 ;;
3039 ..|./*|.\\*) #(vi
3040 ;;
3041 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3042 ;;
3043 .\${*prefix}*) #(vi
3044 eval cf_temp="$cf_temp"
3045 case ".$cf_temp" in #(vi
3046 .NONE/*)
3047 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3048 ;;
3049 esac
3050 ;; #(vi
3051 .no|.NONE/*)
3052 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3053 ;;
3054 *)
3055 break
3056 ;;
3057 esac
3058
3059 cf_path_prog="$cf_temp"
3060 else
3061 cf_path_prog="`basename $cf_temp`"
3062 fi
3063 elif test -z "$cf_path_args" ; then
3064 cf_path_args="$cf_temp"
3065 else
3066 cf_path_args="$cf_path_args $cf_temp"
3067 fi
3068 done
3069 IFS="$cf_save_ifs"
3070
3071 if test -n "$cf_path_prog" ; then
3072
3073 echo "${as_me:-configure}:3073: testing defining path for ${cf_path_prog} ..." 1>&5
3074
3075 cat >>confdefs.h <<EOF
3076 #define LZCAT_PATH "$cf_path_prog"
3077 EOF
3078
3079 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
3080 #define LZCAT_ARGS "$cf_path_args"
3081 EOF
3082
3083 fi
3084
3085 test -z "$PCAT" && PCAT=pcat
3086 for ac_prog in $PCAT pcat
3087 do
3088 # Extract the first word of "$ac_prog", so it can be a program name with args.
3089 set dummy $ac_prog; ac_word=$2
3090 echo "$as_me:3090: checking for $ac_word" >&5
3091 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3092 if test "${ac_cv_path_PCAT+set}" = set; then
3093 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 else
3095 case $PCAT in
3096 [\\/]* | ?:[\\/]*)
3097 ac_cv_path_PCAT="$PCAT" # Let the user override the test with a path.
3098 ;;
3099 *)
3100 ac_save_IFS=$IFS; IFS=$ac_path_separator
3101 ac_dummy="$PATH"
3102 for ac_dir in $ac_dummy; do
3103 IFS=$ac_save_IFS
3104 test -z "$ac_dir" && ac_dir=.
3105 if $as_executable_p "$ac_dir/$ac_word"; then
3106 ac_cv_path_PCAT="$ac_dir/$ac_word"
3107 echo "$as_me:3107: found $ac_dir/$ac_word" >&5
3108 break
3109 fi
3110 done
3111
3112 ;;
3113 esac
3114 fi
3115 PCAT=$ac_cv_path_PCAT
3116
3117 if test -n "$PCAT"; then
3118 echo "$as_me:3118: result: $PCAT" >&5
3119 echo "${ECHO_T}$PCAT" >&6
3120 else
3121 echo "$as_me:3121: result: no" >&5
3122 echo "${ECHO_T}no" >&6
3123 fi
3124
3125 test -n "$PCAT" && break
3126 done
3127 test -n "$PCAT" || PCAT="$PCAT"
3128
3129 cf_path_prog=""
3130 cf_path_args=""
3131 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
3132 for cf_temp in $ac_cv_path_PCAT
3133 do
3134 if test -z "$cf_path_prog" ; then
3135 if test "$with_full_paths" = yes ; then
3136
3137 if test "x$prefix" != xNONE; then
3138 cf_path_syntax="$prefix"
3139 else
3140 cf_path_syntax="$ac_default_prefix"
3141 fi
3142
3143 case ".$cf_temp" in #(vi
3144 .\$\(*\)*|.\'*\'*) #(vi
3145 ;;
3146 ..|./*|.\\*) #(vi
3147 ;;
3148 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3149 ;;
3150 .\${*prefix}*) #(vi
3151 eval cf_temp="$cf_temp"
3152 case ".$cf_temp" in #(vi
3153 .NONE/*)
3154 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3155 ;;
3156 esac
3157 ;; #(vi
3158 .no|.NONE/*)
3159 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3160 ;;
3161 *)
3162 break
3163 ;;
3164 esac
3165
3166 cf_path_prog="$cf_temp"
3167 else
3168 cf_path_prog="`basename $cf_temp`"
3169 fi
3170 elif test -z "$cf_path_args" ; then
3171 cf_path_args="$cf_temp"
3172 else
3173 cf_path_args="$cf_path_args $cf_temp"
3174 fi
3175 done
3176 IFS="$cf_save_ifs"
3177
3178 if test -n "$cf_path_prog" ; then
3179
3180 echo "${as_me:-configure}:3180: testing defining path for ${cf_path_prog} ..." 1>&5
3181
3182 cat >>confdefs.h <<EOF
3183 #define PCAT_PATH "$cf_path_prog"
3184 EOF
3185
3186 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
3187 #define PCAT_ARGS "$cf_path_args"
3188 EOF
3189
3190 fi
3191
3192 test -z "$UNCOMPRESS" && UNCOMPRESS=uncompress.real
3193 for ac_prog in $UNCOMPRESS uncompress.real uncompress
3194 do
3195 # Extract the first word of "$ac_prog", so it can be a program name with args.
3196 set dummy $ac_prog; ac_word=$2
3197 echo "$as_me:3197: checking for $ac_word" >&5
3198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3199 if test "${ac_cv_path_UNCOMPRESS+set}" = set; then
3200 echo $ECHO_N "(cached) $ECHO_C" >&6
3201 else
3202 case $UNCOMPRESS in
3203 [\\/]* | ?:[\\/]*)
3204 ac_cv_path_UNCOMPRESS="$UNCOMPRESS" # Let the user override the test with a path.
3205 ;;
3206 *)
3207 ac_save_IFS=$IFS; IFS=$ac_path_separator
3208 ac_dummy="$PATH"
3209 for ac_dir in $ac_dummy; do
3210 IFS=$ac_save_IFS
3211 test -z "$ac_dir" && ac_dir=.
3212 if $as_executable_p "$ac_dir/$ac_word"; then
3213 ac_cv_path_UNCOMPRESS="$ac_dir/$ac_word"
3214 echo "$as_me:3214: found $ac_dir/$ac_word" >&5
3215 break
3216 fi
3217 done
3218
3219 ;;
3220 esac
3221 fi
3222 UNCOMPRESS=$ac_cv_path_UNCOMPRESS
3223
3224 if test -n "$UNCOMPRESS"; then
3225 echo "$as_me:3225: result: $UNCOMPRESS" >&5
3226 echo "${ECHO_T}$UNCOMPRESS" >&6
3227 else
3228 echo "$as_me:3228: result: no" >&5
3229 echo "${ECHO_T}no" >&6
3230 fi
3231
3232 test -n "$UNCOMPRESS" && break
3233 done
3234 test -n "$UNCOMPRESS" || UNCOMPRESS="$UNCOMPRESS"
3235
3236 cf_path_prog=""
3237 cf_path_args=""
3238 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
3239 for cf_temp in $ac_cv_path_UNCOMPRESS
3240 do
3241 if test -z "$cf_path_prog" ; then
3242 if test "$with_full_paths" = yes ; then
3243
3244 if test "x$prefix" != xNONE; then
3245 cf_path_syntax="$prefix"
3246 else
3247 cf_path_syntax="$ac_default_prefix"
3248 fi
3249
3250 case ".$cf_temp" in #(vi
3251 .\$\(*\)*|.\'*\'*) #(vi
3252 ;;
3253 ..|./*|.\\*) #(vi
3254 ;;
3255 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3256 ;;
3257 .\${*prefix}*) #(vi
3258 eval cf_temp="$cf_temp"
3259 case ".$cf_temp" in #(vi
3260 .NONE/*)
3261 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3262 ;;
3263 esac
3264 ;; #(vi
3265 .no|.NONE/*)
3266 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3267 ;;
3268 *)
3269 break
3270 ;;
3271 esac
3272
3273 cf_path_prog="$cf_temp"
3274 else
3275 cf_path_prog="`basename $cf_temp`"
3276 fi
3277 elif test -z "$cf_path_args" ; then
3278 cf_path_args="$cf_temp"
3279 else
3280 cf_path_args="$cf_path_args $cf_temp"
3281 fi
3282 done
3283 IFS="$cf_save_ifs"
3284
3285 if test -n "$cf_path_prog" ; then
3286
3287 echo "${as_me:-configure}:3287: testing defining path for ${cf_path_prog} ..." 1>&5
3288
3289 cat >>confdefs.h <<EOF
3290 #define UNCOMPRESS_PATH "$cf_path_prog"
3291 EOF
3292
3293 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
3294 #define UNCOMPRESS_ARGS "$cf_path_args"
3295 EOF
3296
3297 fi
3298
3299 test -z "$XZ" && XZ=xz
3300 for ac_prog in $XZ xz lzcat
3301 do
3302 # Extract the first word of "$ac_prog", so it can be a program name with args.
3303 set dummy $ac_prog; ac_word=$2
3304 echo "$as_me:3304: checking for $ac_word" >&5
3305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3306 if test "${ac_cv_path_XZ+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3308 else
3309 case $XZ in
3310 [\\/]* | ?:[\\/]*)
3311 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
3312 ;;
3313 *)
3314 ac_save_IFS=$IFS; IFS=$ac_path_separator
3315 ac_dummy="$PATH"
3316 for ac_dir in $ac_dummy; do
3317 IFS=$ac_save_IFS
3318 test -z "$ac_dir" && ac_dir=.
3319 if $as_executable_p "$ac_dir/$ac_word"; then
3320 ac_cv_path_XZ="$ac_dir/$ac_word"
3321 echo "$as_me:3321: found $ac_dir/$ac_word" >&5
3322 break
3323 fi
3324 done
3325
3326 ;;
3327 esac
3328 fi
3329 XZ=$ac_cv_path_XZ
3330
3331 if test -n "$XZ"; then
3332 echo "$as_me:3332: result: $XZ" >&5
3333 echo "${ECHO_T}$XZ" >&6
3334 else
3335 echo "$as_me:3335: result: no" >&5
3336 echo "${ECHO_T}no" >&6
3337 fi
3338
3339 test -n "$XZ" && break
3340 done
3341 test -n "$XZ" || XZ="$XZ"
3342
3343 cf_path_prog=""
3344 cf_path_args=""
3345 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
3346 for cf_temp in $ac_cv_path_XZ
3347 do
3348 if test -z "$cf_path_prog" ; then
3349 if test "$with_full_paths" = yes ; then
3350
3351 if test "x$prefix" != xNONE; then
3352 cf_path_syntax="$prefix"
3353 else
3354 cf_path_syntax="$ac_default_prefix"
3355 fi
3356
3357 case ".$cf_temp" in #(vi
3358 .\$\(*\)*|.\'*\'*) #(vi
3359 ;;
3360 ..|./*|.\\*) #(vi
3361 ;;
3362 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3363 ;;
3364 .\${*prefix}*) #(vi
3365 eval cf_temp="$cf_temp"
3366 case ".$cf_temp" in #(vi
3367 .NONE/*)
3368 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3369 ;;
3370 esac
3371 ;; #(vi
3372 .no|.NONE/*)
3373 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3374 ;;
3375 *)
3376 break
3377 ;;
3378 esac
3379
3380 cf_path_prog="$cf_temp"
3381 else
3382 cf_path_prog="`basename $cf_temp`"
3383 fi
3384 elif test -z "$cf_path_args" ; then
3385 cf_path_args="$cf_temp"
3386 else
3387 cf_path_args="$cf_path_args $cf_temp"
3388 fi
3389 done
3390 IFS="$cf_save_ifs"
3391
3392 if test -n "$cf_path_prog" ; then
3393
3394 echo "${as_me:-configure}:3394: testing defining path for ${cf_path_prog} ..." 1>&5
3395
3396 cat >>confdefs.h <<EOF
3397 #define XZ_PATH "$cf_path_prog"
3398 EOF
3399
3400 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
3401 #define XZ_ARGS "$cf_path_args"
3402 EOF
3403
3404 fi
3405
3406 test -z "$ZCAT" && ZCAT=zcat
3407 for ac_prog in $ZCAT zcat
3408 do
3409 # Extract the first word of "$ac_prog", so it can be a program name with args.
3410 set dummy $ac_prog; ac_word=$2
3411 echo "$as_me:3411: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3413 if test "${ac_cv_path_ZCAT+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 case $ZCAT in
3417 [\\/]* | ?:[\\/]*)
3418 ac_cv_path_ZCAT="$ZCAT" # Let the user override the test with a path.
3419 ;;
3420 *)
3421 ac_save_IFS=$IFS; IFS=$ac_path_separator
3422 ac_dummy="$PATH"
3423 for ac_dir in $ac_dummy; do
3424 IFS=$ac_save_IFS
3425 test -z "$ac_dir" && ac_dir=.
3426 if $as_executable_p "$ac_dir/$ac_word"; then
3427 ac_cv_path_ZCAT="$ac_dir/$ac_word"
3428 echo "$as_me:3428: found $ac_dir/$ac_word" >&5
3429 break
3430 fi
3431 done
3432
3433 ;;
3434 esac
3435 fi
3436 ZCAT=$ac_cv_path_ZCAT
3437
3438 if test -n "$ZCAT"; then
3439 echo "$as_me:3439: result: $ZCAT" >&5
3440 echo "${ECHO_T}$ZCAT" >&6
3441 else
3442 echo "$as_me:3442: result: no" >&5
3443 echo "${ECHO_T}no" >&6
3444 fi
3445
3446 test -n "$ZCAT" && break
3447 done
3448 test -n "$ZCAT" || ZCAT="$ZCAT"
3449
3450 cf_path_prog=""
3451 cf_path_args=""
3452 IFS="${IFS:- }"; cf_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR"
3453 for cf_temp in $ac_cv_path_ZCAT
3454 do
3455 if test -z "$cf_path_prog" ; then
3456 if test "$with_full_paths" = yes ; then
3457
3458 if test "x$prefix" != xNONE; then
3459 cf_path_syntax="$prefix"
3460 else
3461 cf_path_syntax="$ac_default_prefix"
3462 fi
3463
3464 case ".$cf_temp" in #(vi
3465 .\$\(*\)*|.\'*\'*) #(vi
3466 ;;
3467 ..|./*|.\\*) #(vi
3468 ;;
3469 .[a-zA-Z]:[\\/]*) #(vi OS/2 EMX
3470 ;;
3471 .\${*prefix}*) #(vi
3472 eval cf_temp="$cf_temp"
3473 case ".$cf_temp" in #(vi
3474 .NONE/*)
3475 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3476 ;;
3477 esac
3478 ;; #(vi
3479 .no|.NONE/*)
3480 cf_temp=`echo $cf_temp | sed -e s%NONE%$cf_path_syntax%`
3481 ;;
3482 *)
3483 break
3484 ;;
3485 esac
3486
3487 cf_path_prog="$cf_temp"
3488 else
3489 cf_path_prog="`basename $cf_temp`"
3490 fi
3491 elif test -z "$cf_path_args" ; then
3492 cf_path_args="$cf_temp"
3493 else
3494 cf_path_args="$cf_path_args $cf_temp"
3495 fi
3496 done
3497 IFS="$cf_save_ifs"
3498
3499 if test -n "$cf_path_prog" ; then
3500
3501 echo "${as_me:-configure}:3501: testing defining path for ${cf_path_prog} ..." 1>&5
3502
3503 cat >>confdefs.h <<EOF
3504 #define ZCAT_PATH "$cf_path_prog"
3505 EOF
3506
3507 test -n "$cf_path_args" && cat >>confdefs.h <<EOF
3508 #define ZCAT_ARGS "$cf_path_args"
3509 EOF
3510
3511 fi
3512
3513 cf_XOPEN_SOURCE=500
3514 cf_POSIX_C_SOURCE=199506L
3515 cf_xopen_source=
3516
3517 case $host_os in #(vi
3518 aix[4-7]*) #(vi
3519 cf_xopen_source="-D_ALL_SOURCE"
3520 ;;
3521 cygwin) #(vi
3522 cf_XOPEN_SOURCE=600
3523 ;;
3524 darwin[0-8].*) #(vi
3525 cf_xopen_source="-D_APPLE_C_SOURCE"
3526 ;;
3527 darwin*) #(vi
3528 cf_xopen_source="-D_DARWIN_C_SOURCE"
3529 ;;
3530 freebsd*|dragonfly*) #(vi
3531 # 5.x headers associate
3532 # _XOPEN_SOURCE=600 with _POSIX_C_SOURCE=200112L
3533 # _XOPEN_SOURCE=500 with _POSIX_C_SOURCE=199506L
3534 cf_POSIX_C_SOURCE=200112L
3535 cf_XOPEN_SOURCE=600
3536 cf_xopen_source="-D_BSD_TYPES -D__BSD_VISIBLE -D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3537 ;;
3538 hpux11*) #(vi
3539 cf_xopen_source="-D_HPUX_SOURCE -D_XOPEN_SOURCE=500"
3540 ;;
3541 hpux*) #(vi
3542 cf_xopen_source="-D_HPUX_SOURCE"
3543 ;;
3544 irix[56].*) #(vi
3545 cf_xopen_source="-D_SGI_SOURCE"
3546 cf_XOPEN_SOURCE=
3547 ;;
3548 linux*|gnu*|mint*|k*bsd*-gnu) #(vi
3549
3550 echo "$as_me:3550: checking if we must define _GNU_SOURCE" >&5
3551 echo $ECHO_N "checking if we must define _GNU_SOURCE... $ECHO_C" >&6
3552 if test "${cf_cv_gnu_source+set}" = set; then
3553 echo $ECHO_N "(cached) $ECHO_C" >&6
3554 else
3555
3556 cat >conftest.$ac_ext <<_ACEOF
3557 #line 3557 "configure"
3558 #include "confdefs.h"
3559 #include <sys/types.h>
3560 int
3561 main ()
3562 {
3563
3564 #ifndef _XOPEN_SOURCE
3565 make an error
3566 #endif
3567 ;
3568 return 0;
3569 }
3570 _ACEOF
3571 rm -f conftest.$ac_objext
3572 if { (eval echo "$as_me:3572: \"$ac_compile\"") >&5
3573 (eval $ac_compile) 2>&5
3574 ac_status=$?
3575 echo "$as_me:3575: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -s conftest.$ac_objext'
3578 { (eval echo "$as_me:3578: \"$ac_try\"") >&5
3579 (eval $ac_try) 2>&5
3580 ac_status=$?
3581 echo "$as_me:3581: \$? = $ac_status" >&5
3582 (exit $ac_status); }; }; then
3583 cf_cv_gnu_source=no
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 cat conftest.$ac_ext >&5
3587 cf_save="$CPPFLAGS"
3588 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3589 cat >conftest.$ac_ext <<_ACEOF
3590 #line 3590 "configure"
3591 #include "confdefs.h"
3592 #include <sys/types.h>
3593 int
3594 main ()
3595 {
3596
3597 #ifdef _XOPEN_SOURCE
3598 make an error
3599 #endif
3600 ;
3601 return 0;
3602 }
3603 _ACEOF
3604 rm -f conftest.$ac_objext
3605 if { (eval echo "$as_me:3605: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3607 ac_status=$?
3608 echo "$as_me:3608: \$? = $ac_status" >&5
3609 (exit $ac_status); } &&
3610 { ac_try='test -s conftest.$ac_objext'
3611 { (eval echo "$as_me:3611: \"$ac_try\"") >&5
3612 (eval $ac_try) 2>&5
3613 ac_status=$?
3614 echo "$as_me:3614: \$? = $ac_status" >&5
3615 (exit $ac_status); }; }; then
3616 cf_cv_gnu_source=no
3617 else
3618 echo "$as_me: failed program was:" >&5
3619 cat conftest.$ac_ext >&5
3620 cf_cv_gnu_source=yes
3621 fi
3622 rm -f conftest.$ac_objext conftest.$ac_ext
3623 CPPFLAGS="$cf_save"
3624
3625 fi
3626 rm -f conftest.$ac_objext conftest.$ac_ext
3627
3628 fi
3629 echo "$as_me:3629: result: $cf_cv_gnu_source" >&5
3630 echo "${ECHO_T}$cf_cv_gnu_source" >&6
3631 test "$cf_cv_gnu_source" = yes && CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
3632
3633 ;;
3634 mirbsd*) #(vi
3635 # setting _XOPEN_SOURCE or _POSIX_SOURCE breaks <sys/select.h> and other headers which use u_int / u_short types
3636 cf_XOPEN_SOURCE=
3637
3638 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
3639
3640 cf_save_CFLAGS="$CFLAGS"
3641 cf_save_CPPFLAGS="$CPPFLAGS"
3642
3643 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
3644 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3645 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3646
3647 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
3648 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3649 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
3650
3651 echo "$as_me:3651: checking if we should define _POSIX_C_SOURCE" >&5
3652 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
3653 if test "${cf_cv_posix_c_source+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656
3657 echo "${as_me:-configure}:3657: testing if the symbol is already defined go no further ..." 1>&5
3658
3659 cat >conftest.$ac_ext <<_ACEOF
3660 #line 3660 "configure"
3661 #include "confdefs.h"
3662 #include <sys/types.h>
3663 int
3664 main ()
3665 {
3666
3667 #ifndef _POSIX_C_SOURCE
3668 make an error
3669 #endif
3670 ;
3671 return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:3675: \"$ac_compile\"") >&5
3676 (eval $ac_compile) 2>&5
3677 ac_status=$?
3678 echo "$as_me:3678: \$? = $ac_status" >&5
3679 (exit $ac_status); } &&
3680 { ac_try='test -s conftest.$ac_objext'
3681 { (eval echo "$as_me:3681: \"$ac_try\"") >&5
3682 (eval $ac_try) 2>&5
3683 ac_status=$?
3684 echo "$as_me:3684: \$? = $ac_status" >&5
3685 (exit $ac_status); }; }; then
3686 cf_cv_posix_c_source=no
3687 else
3688 echo "$as_me: failed program was:" >&5
3689 cat conftest.$ac_ext >&5
3690 cf_want_posix_source=no
3691 case .$cf_POSIX_C_SOURCE in #(vi
3692 .[12]??*) #(vi
3693 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3694 ;;
3695 .2) #(vi
3696 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
3697 cf_want_posix_source=yes
3698 ;;
3699 .*)
3700 cf_want_posix_source=yes
3701 ;;
3702 esac
3703 if test "$cf_want_posix_source" = yes ; then
3704 cat >conftest.$ac_ext <<_ACEOF
3705 #line 3705 "configure"
3706 #include "confdefs.h"
3707 #include <sys/types.h>
3708 int
3709 main ()
3710 {
3711
3712 #ifdef _POSIX_SOURCE
3713 make an error
3714 #endif
3715 ;
3716 return 0;
3717 }
3718 _ACEOF
3719 rm -f conftest.$ac_objext
3720 if { (eval echo "$as_me:3720: \"$ac_compile\"") >&5
3721 (eval $ac_compile) 2>&5
3722 ac_status=$?
3723 echo "$as_me:3723: \$? = $ac_status" >&5
3724 (exit $ac_status); } &&
3725 { ac_try='test -s conftest.$ac_objext'
3726 { (eval echo "$as_me:3726: \"$ac_try\"") >&5
3727 (eval $ac_try) 2>&5
3728 ac_status=$?
3729 echo "$as_me:3729: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 :
3732 else
3733 echo "$as_me: failed program was:" >&5
3734 cat conftest.$ac_ext >&5
3735 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
3736 fi
3737 rm -f conftest.$ac_objext conftest.$ac_ext
3738 fi
3739
3740 echo "${as_me:-configure}:3740: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
3741
3742 CFLAGS="$cf_trim_CFLAGS"
3743 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
3744
3745 echo "${as_me:-configure}:3745: testing if the second compile does not leave our definition intact error ..." 1>&5
3746
3747 cat >conftest.$ac_ext <<_ACEOF
3748 #line 3748 "configure"
3749 #include "confdefs.h"
3750 #include <sys/types.h>
3751 int
3752 main ()
3753 {
3754
3755 #ifndef _POSIX_C_SOURCE
3756 make an error
3757 #endif
3758 ;
3759 return 0;
3760 }
3761 _ACEOF
3762 rm -f conftest.$ac_objext
3763 if { (eval echo "$as_me:3763: \"$ac_compile\"") >&5
3764 (eval $ac_compile) 2>&5
3765 ac_status=$?
3766 echo "$as_me:3766: \$? = $ac_status" >&5
3767 (exit $ac_status); } &&
3768 { ac_try='test -s conftest.$ac_objext'
3769 { (eval echo "$as_me:3769: \"$ac_try\"") >&5
3770 (eval $ac_try) 2>&5
3771 ac_status=$?
3772 echo "$as_me:3772: \$? = $ac_status" >&5
3773 (exit $ac_status); }; }; then
3774 :
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 cat conftest.$ac_ext >&5
3778 cf_cv_posix_c_source=no
3779 fi
3780 rm -f conftest.$ac_objext conftest.$ac_ext
3781 CFLAGS="$cf_save_CFLAGS"
3782 CPPFLAGS="$cf_save_CPPFLAGS"
3783
3784 fi
3785 rm -f conftest.$ac_objext conftest.$ac_ext
3786
3787 fi
3788 echo "$as_me:3788: result: $cf_cv_posix_c_source" >&5
3789 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
3790
3791 if test "$cf_cv_posix_c_source" != no ; then
3792 CFLAGS="$cf_trim_CFLAGS"
3793 CPPFLAGS="$cf_trim_CPPFLAGS"
3794
3795 cf_fix_cppflags=no
3796 cf_new_cflags=
3797 cf_new_cppflags=
3798 cf_new_extra_cppflags=
3799
3800 for cf_add_cflags in $cf_cv_posix_c_source
3801 do
3802 case $cf_fix_cppflags in
3803 no)
3804 case $cf_add_cflags in #(vi
3805 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
3806 case $cf_add_cflags in
3807 -D*)
3808 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
3809
3810 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3811 && test -z "${cf_tst_cflags}" \
3812 && cf_fix_cppflags=yes
3813
3814 if test $cf_fix_cppflags = yes ; then
3815 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3816 continue
3817 elif test "${cf_tst_cflags}" = "\"'" ; then
3818 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3819 continue
3820 fi
3821 ;;
3822 esac
3823 case "$CPPFLAGS" in
3824 *$cf_add_cflags) #(vi
3825 ;;
3826 *) #(vi
3827 case $cf_add_cflags in #(vi
3828 -D*)
3829 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
3830
3831 CPPFLAGS=`echo "$CPPFLAGS" | \
3832 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
3833 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
3834
3835 ;;
3836 esac
3837 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
3838 ;;
3839 esac
3840 ;;
3841 *)
3842 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
3843 ;;
3844 esac
3845 ;;
3846 yes)
3847 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
3848
3849 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
3850
3851 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
3852 && test -z "${cf_tst_cflags}" \
3853 && cf_fix_cppflags=no
3854 ;;
3855 esac
3856 done
3857
3858 if test -n "$cf_new_cflags" ; then
3859
3860 CFLAGS="$CFLAGS $cf_new_cflags"
3861 fi
3862
3863 if test -n "$cf_new_cppflags" ; then
3864
3865 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
3866 fi
3867
3868 if test -n "$cf_new_extra_cppflags" ; then
3869
3870 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
3871 fi
3872
3873 fi
3874
3875 ;;
3876 netbsd*) #(vi
3877 cf_xopen_source="-D_NETBSD_SOURCE" # setting _XOPEN_SOURCE breaks IPv6 for lynx on NetBSD 1.6, breaks xterm, is not needed for ncursesw
3878 ;;
3879 openbsd[4-9]*) #(vi
3880 # setting _XOPEN_SOURCE lower than 500 breaks g++ compile with wchar.h, needed for ncursesw
3881 cf_XOPEN_SOURCE=600
3882 ;;
3883 openbsd*) #(vi
3884 # setting _XOPEN_SOURCE breaks xterm on OpenBSD 2.8, is not needed for ncursesw
3885 ;;
3886 osf[45]*) #(vi
3887 cf_xopen_source="-D_OSF_SOURCE"
3888 ;;
3889 nto-qnx*) #(vi
3890 cf_xopen_source="-D_QNX_SOURCE"
3891 ;;
3892 sco*) #(vi
3893 # setting _XOPEN_SOURCE breaks Lynx on SCO Unix / OpenServer
3894 ;;
3895 solaris2.*) #(vi
3896 cf_xopen_source="-D__EXTENSIONS__"
3897 ;;
3898 *)
3899
3900 echo "$as_me:3900: checking if we should define _XOPEN_SOURCE" >&5
3901 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
3902 if test "${cf_cv_xopen_source+set}" = set; then
3903 echo $ECHO_N "(cached) $ECHO_C" >&6
3904 else
3905
3906 cat >conftest.$ac_ext <<_ACEOF
3907 #line 3907 "configure"
3908 #include "confdefs.h"
3909
3910 #include <stdlib.h>
3911 #include <string.h>
3912 #include <sys/types.h>
3913
3914 int
3915 main ()
3916 {
3917
3918 #ifndef _XOPEN_SOURCE
3919 make an error
3920 #endif
3921 ;
3922 return 0;
3923 }
3924 _ACEOF
3925 rm -f conftest.$ac_objext
3926 if { (eval echo "$as_me:3926: \"$ac_compile\"") >&5
3927 (eval $ac_compile) 2>&5
3928 ac_status=$?
3929 echo "$as_me:3929: \$? = $ac_status" >&5
3930 (exit $ac_status); } &&
3931 { ac_try='test -s conftest.$ac_objext'
3932 { (eval echo "$as_me:3932: \"$ac_try\"") >&5
3933 (eval $ac_try) 2>&5
3934 ac_status=$?
3935 echo "$as_me:3935: \$? = $ac_status" >&5
3936 (exit $ac_status); }; }; then
3937 cf_cv_xopen_source=no
3938 else
3939 echo "$as_me: failed program was:" >&5
3940 cat conftest.$ac_ext >&5
3941 cf_save="$CPPFLAGS"
3942 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
3943 cat >conftest.$ac_ext <<_ACEOF
3944 #line 3944 "configure"
3945 #include "confdefs.h"
3946
3947 #include <stdlib.h>
3948 #include <string.h>
3949 #include <sys/types.h>
3950
3951 int
3952 main ()
3953 {
3954
3955 #ifdef _XOPEN_SOURCE
3956 make an error
3957 #endif
3958 ;
3959 return 0;
3960 }
3961 _ACEOF
3962 rm -f conftest.$ac_objext
3963 if { (eval echo "$as_me:3963: \"$ac_compile\"") >&5
3964 (eval $ac_compile) 2>&5
3965 ac_status=$?
3966 echo "$as_me:3966: \$? = $ac_status" >&5
3967 (exit $ac_status); } &&
3968 { ac_try='test -s conftest.$ac_objext'
3969 { (eval echo "$as_me:3969: \"$ac_try\"") >&5
3970 (eval $ac_try) 2>&5
3971 ac_status=$?
3972 echo "$as_me:3972: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3974 cf_cv_xopen_source=no
3975 else
3976 echo "$as_me: failed program was:" >&5
3977 cat conftest.$ac_ext >&5
3978 cf_cv_xopen_source=$cf_XOPEN_SOURCE
3979 fi
3980 rm -f conftest.$ac_objext conftest.$ac_ext
3981 CPPFLAGS="$cf_save"
3982
3983 fi
3984 rm -f conftest.$ac_objext conftest.$ac_ext
3985
3986 fi
3987 echo "$as_me:3987: result: $cf_cv_xopen_source" >&5
3988 echo "${ECHO_T}$cf_cv_xopen_source" >&6
3989
3990 if test "$cf_cv_xopen_source" != no ; then
3991
3992 CFLAGS=`echo "$CFLAGS" | \
3993 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3994 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3995
3996 CPPFLAGS=`echo "$CPPFLAGS" | \
3997 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
3998 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
3999
4000 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4001
4002 cf_fix_cppflags=no
4003 cf_new_cflags=
4004 cf_new_cppflags=
4005 cf_new_extra_cppflags=
4006
4007 for cf_add_cflags in $cf_temp_xopen_source
4008 do
4009 case $cf_fix_cppflags in
4010 no)
4011 case $cf_add_cflags in #(vi
4012 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4013 case $cf_add_cflags in
4014 -D*)
4015 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4016
4017 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4018 && test -z "${cf_tst_cflags}" \
4019 && cf_fix_cppflags=yes
4020
4021 if test $cf_fix_cppflags = yes ; then
4022 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4023 continue
4024 elif test "${cf_tst_cflags}" = "\"'" ; then
4025 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4026 continue
4027 fi
4028 ;;
4029 esac
4030 case "$CPPFLAGS" in
4031 *$cf_add_cflags) #(vi
4032 ;;
4033 *) #(vi
4034 case $cf_add_cflags in #(vi
4035 -D*)
4036 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4037
4038 CPPFLAGS=`echo "$CPPFLAGS" | \
4039 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4040 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4041
4042 ;;
4043 esac
4044 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4045 ;;
4046 esac
4047 ;;
4048 *)
4049 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4050 ;;
4051 esac
4052 ;;
4053 yes)
4054 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4055
4056 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4057
4058 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4059 && test -z "${cf_tst_cflags}" \
4060 && cf_fix_cppflags=no
4061 ;;
4062 esac
4063 done
4064
4065 if test -n "$cf_new_cflags" ; then
4066
4067 CFLAGS="$CFLAGS $cf_new_cflags"
4068 fi
4069
4070 if test -n "$cf_new_cppflags" ; then
4071
4072 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4073 fi
4074
4075 if test -n "$cf_new_extra_cppflags" ; then
4076
4077 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4078 fi
4079
4080 fi
4081
4082 cf_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE
4083
4084 cf_save_CFLAGS="$CFLAGS"
4085 cf_save_CPPFLAGS="$CPPFLAGS"
4086
4087 cf_trim_CFLAGS=`echo "$cf_save_CFLAGS" | \
4088 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4089 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4090
4091 cf_trim_CPPFLAGS=`echo "$cf_save_CPPFLAGS" | \
4092 sed -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4093 -e 's/-[UD]'"_POSIX_C_SOURCE"'\(=[^ ]*\)\?$//g'`
4094
4095 echo "$as_me:4095: checking if we should define _POSIX_C_SOURCE" >&5
4096 echo $ECHO_N "checking if we should define _POSIX_C_SOURCE... $ECHO_C" >&6
4097 if test "${cf_cv_posix_c_source+set}" = set; then
4098 echo $ECHO_N "(cached) $ECHO_C" >&6
4099 else
4100
4101 echo "${as_me:-configure}:4101: testing if the symbol is already defined go no further ..." 1>&5
4102
4103 cat >conftest.$ac_ext <<_ACEOF
4104 #line 4104 "configure"
4105 #include "confdefs.h"
4106 #include <sys/types.h>
4107 int
4108 main ()
4109 {
4110
4111 #ifndef _POSIX_C_SOURCE
4112 make an error
4113 #endif
4114 ;
4115 return 0;
4116 }
4117 _ACEOF
4118 rm -f conftest.$ac_objext
4119 if { (eval echo "$as_me:4119: \"$ac_compile\"") >&5
4120 (eval $ac_compile) 2>&5
4121 ac_status=$?
4122 echo "$as_me:4122: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -s conftest.$ac_objext'
4125 { (eval echo "$as_me:4125: \"$ac_try\"") >&5
4126 (eval $ac_try) 2>&5
4127 ac_status=$?
4128 echo "$as_me:4128: \$? = $ac_status" >&5
4129 (exit $ac_status); }; }; then
4130 cf_cv_posix_c_source=no
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 cat conftest.$ac_ext >&5
4134 cf_want_posix_source=no
4135 case .$cf_POSIX_C_SOURCE in #(vi
4136 .[12]??*) #(vi
4137 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4138 ;;
4139 .2) #(vi
4140 cf_cv_posix_c_source="-D_POSIX_C_SOURCE=$cf_POSIX_C_SOURCE"
4141 cf_want_posix_source=yes
4142 ;;
4143 .*)
4144 cf_want_posix_source=yes
4145 ;;
4146 esac
4147 if test "$cf_want_posix_source" = yes ; then
4148 cat >conftest.$ac_ext <<_ACEOF
4149 #line 4149 "configure"
4150 #include "confdefs.h"
4151 #include <sys/types.h>
4152 int
4153 main ()
4154 {
4155
4156 #ifdef _POSIX_SOURCE
4157 make an error
4158 #endif
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 rm -f conftest.$ac_objext
4164 if { (eval echo "$as_me:4164: \"$ac_compile\"") >&5
4165 (eval $ac_compile) 2>&5
4166 ac_status=$?
4167 echo "$as_me:4167: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -s conftest.$ac_objext'
4170 { (eval echo "$as_me:4170: \"$ac_try\"") >&5
4171 (eval $ac_try) 2>&5
4172 ac_status=$?
4173 echo "$as_me:4173: \$? = $ac_status" >&5
4174 (exit $ac_status); }; }; then
4175 :
4176 else
4177 echo "$as_me: failed program was:" >&5
4178 cat conftest.$ac_ext >&5
4179 cf_cv_posix_c_source="$cf_cv_posix_c_source -D_POSIX_SOURCE"
4180 fi
4181 rm -f conftest.$ac_objext conftest.$ac_ext
4182 fi
4183
4184 echo "${as_me:-configure}:4184: testing ifdef from value $cf_POSIX_C_SOURCE ..." 1>&5
4185
4186 CFLAGS="$cf_trim_CFLAGS"
4187 CPPFLAGS="$cf_trim_CPPFLAGS $cf_cv_posix_c_source"
4188
4189 echo "${as_me:-configure}:4189: testing if the second compile does not leave our definition intact error ..." 1>&5
4190
4191 cat >conftest.$ac_ext <<_ACEOF
4192 #line 4192 "configure"
4193 #include "confdefs.h"
4194 #include <sys/types.h>
4195 int
4196 main ()
4197 {
4198
4199 #ifndef _POSIX_C_SOURCE
4200 make an error
4201 #endif
4202 ;
4203 return 0;
4204 }
4205 _ACEOF
4206 rm -f conftest.$ac_objext
4207 if { (eval echo "$as_me:4207: \"$ac_compile\"") >&5
4208 (eval $ac_compile) 2>&5
4209 ac_status=$?
4210 echo "$as_me:4210: \$? = $ac_status" >&5
4211 (exit $ac_status); } &&
4212 { ac_try='test -s conftest.$ac_objext'
4213 { (eval echo "$as_me:4213: \"$ac_try\"") >&5
4214 (eval $ac_try) 2>&5
4215 ac_status=$?
4216 echo "$as_me:4216: \$? = $ac_status" >&5
4217 (exit $ac_status); }; }; then
4218 :
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 cat conftest.$ac_ext >&5
4222 cf_cv_posix_c_source=no
4223 fi
4224 rm -f conftest.$ac_objext conftest.$ac_ext
4225 CFLAGS="$cf_save_CFLAGS"
4226 CPPFLAGS="$cf_save_CPPFLAGS"
4227
4228 fi
4229 rm -f conftest.$ac_objext conftest.$ac_ext
4230
4231 fi
4232 echo "$as_me:4232: result: $cf_cv_posix_c_source" >&5
4233 echo "${ECHO_T}$cf_cv_posix_c_source" >&6
4234
4235 if test "$cf_cv_posix_c_source" != no ; then
4236 CFLAGS="$cf_trim_CFLAGS"
4237 CPPFLAGS="$cf_trim_CPPFLAGS"
4238
4239 cf_fix_cppflags=no
4240 cf_new_cflags=
4241 cf_new_cppflags=
4242 cf_new_extra_cppflags=
4243
4244 for cf_add_cflags in $cf_cv_posix_c_source
4245 do
4246 case $cf_fix_cppflags in
4247 no)
4248 case $cf_add_cflags in #(vi
4249 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4250 case $cf_add_cflags in
4251 -D*)
4252 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4253
4254 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4255 && test -z "${cf_tst_cflags}" \
4256 && cf_fix_cppflags=yes
4257
4258 if test $cf_fix_cppflags = yes ; then
4259 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4260 continue
4261 elif test "${cf_tst_cflags}" = "\"'" ; then
4262 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4263 continue
4264 fi
4265 ;;
4266 esac
4267 case "$CPPFLAGS" in
4268 *$cf_add_cflags) #(vi
4269 ;;
4270 *) #(vi
4271 case $cf_add_cflags in #(vi
4272 -D*)
4273 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4274
4275 CPPFLAGS=`echo "$CPPFLAGS" | \
4276 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4277 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4278
4279 ;;
4280 esac
4281 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4282 ;;
4283 esac
4284 ;;
4285 *)
4286 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4287 ;;
4288 esac
4289 ;;
4290 yes)
4291 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4292
4293 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4294
4295 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4296 && test -z "${cf_tst_cflags}" \
4297 && cf_fix_cppflags=no
4298 ;;
4299 esac
4300 done
4301
4302 if test -n "$cf_new_cflags" ; then
4303
4304 CFLAGS="$CFLAGS $cf_new_cflags"
4305 fi
4306
4307 if test -n "$cf_new_cppflags" ; then
4308
4309 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4310 fi
4311
4312 if test -n "$cf_new_extra_cppflags" ; then
4313
4314 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4315 fi
4316
4317 fi
4318
4319 ;;
4320 esac
4321
4322 if test -n "$cf_xopen_source" ; then
4323
4324 cf_fix_cppflags=no
4325 cf_new_cflags=
4326 cf_new_cppflags=
4327 cf_new_extra_cppflags=
4328
4329 for cf_add_cflags in $cf_xopen_source
4330 do
4331 case $cf_fix_cppflags in
4332 no)
4333 case $cf_add_cflags in #(vi
4334 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4335 case $cf_add_cflags in
4336 -D*)
4337 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4338
4339 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4340 && test -z "${cf_tst_cflags}" \
4341 && cf_fix_cppflags=yes
4342
4343 if test $cf_fix_cppflags = yes ; then
4344 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4345 continue
4346 elif test "${cf_tst_cflags}" = "\"'" ; then
4347 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4348 continue
4349 fi
4350 ;;
4351 esac
4352 case "$CPPFLAGS" in
4353 *$cf_add_cflags) #(vi
4354 ;;
4355 *) #(vi
4356 case $cf_add_cflags in #(vi
4357 -D*)
4358 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4359
4360 CPPFLAGS=`echo "$CPPFLAGS" | \
4361 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4362 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4363
4364 ;;
4365 esac
4366 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4367 ;;
4368 esac
4369 ;;
4370 *)
4371 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4372 ;;
4373 esac
4374 ;;
4375 yes)
4376 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4377
4378 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4379
4380 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4381 && test -z "${cf_tst_cflags}" \
4382 && cf_fix_cppflags=no
4383 ;;
4384 esac
4385 done
4386
4387 if test -n "$cf_new_cflags" ; then
4388
4389 CFLAGS="$CFLAGS $cf_new_cflags"
4390 fi
4391
4392 if test -n "$cf_new_cppflags" ; then
4393
4394 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4395 fi
4396
4397 if test -n "$cf_new_extra_cppflags" ; then
4398
4399 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4400 fi
4401
4402 fi
4403
4404 if test -n "$cf_XOPEN_SOURCE" && test -z "$cf_cv_xopen_source" ; then
4405 echo "$as_me:4405: checking if _XOPEN_SOURCE really is set" >&5
4406 echo $ECHO_N "checking if _XOPEN_SOURCE really is set... $ECHO_C" >&6
4407 cat >conftest.$ac_ext <<_ACEOF
4408 #line 4408 "configure"
4409 #include "confdefs.h"
4410 #include <stdlib.h>
4411 int
4412 main ()
4413 {
4414
4415 #ifndef _XOPEN_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 cf_XOPEN_SOURCE_set=yes
4435 else
4436 echo "$as_me: failed program was:" >&5
4437 cat conftest.$ac_ext >&5
4438 cf_XOPEN_SOURCE_set=no
4439 fi
4440 rm -f conftest.$ac_objext conftest.$ac_ext
4441 echo "$as_me:4441: result: $cf_XOPEN_SOURCE_set" >&5
4442 echo "${ECHO_T}$cf_XOPEN_SOURCE_set" >&6
4443 if test $cf_XOPEN_SOURCE_set = yes
4444 then
4445 cat >conftest.$ac_ext <<_ACEOF
4446 #line 4446 "configure"
4447 #include "confdefs.h"
4448 #include <stdlib.h>
4449 int
4450 main ()
4451 {
4452
4453 #if (_XOPEN_SOURCE - 0) < $cf_XOPEN_SOURCE
4454 make an error
4455 #endif
4456 ;
4457 return 0;
4458 }
4459 _ACEOF
4460 rm -f conftest.$ac_objext
4461 if { (eval echo "$as_me:4461: \"$ac_compile\"") >&5
4462 (eval $ac_compile) 2>&5
4463 ac_status=$?
4464 echo "$as_me:4464: \$? = $ac_status" >&5
4465 (exit $ac_status); } &&
4466 { ac_try='test -s conftest.$ac_objext'
4467 { (eval echo "$as_me:4467: \"$ac_try\"") >&5
4468 (eval $ac_try) 2>&5
4469 ac_status=$?
4470 echo "$as_me:4470: \$? = $ac_status" >&5
4471 (exit $ac_status); }; }; then
4472 cf_XOPEN_SOURCE_set_ok=yes
4473 else
4474 echo "$as_me: failed program was:" >&5
4475 cat conftest.$ac_ext >&5
4476 cf_XOPEN_SOURCE_set_ok=no
4477 fi
4478 rm -f conftest.$ac_objext conftest.$ac_ext
4479 if test $cf_XOPEN_SOURCE_set_ok = no
4480 then
4481 { echo "$as_me:4481: WARNING: _XOPEN_SOURCE is lower than requested" >&5
4482 echo "$as_me: WARNING: _XOPEN_SOURCE is lower than requested" >&2;}
4483 fi
4484 else
4485
4486 echo "$as_me:4486: checking if we should define _XOPEN_SOURCE" >&5
4487 echo $ECHO_N "checking if we should define _XOPEN_SOURCE... $ECHO_C" >&6
4488 if test "${cf_cv_xopen_source+set}" = set; then
4489 echo $ECHO_N "(cached) $ECHO_C" >&6
4490 else
4491
4492 cat >conftest.$ac_ext <<_ACEOF
4493 #line 4493 "configure"
4494 #include "confdefs.h"
4495
4496 #include <stdlib.h>
4497 #include <string.h>
4498 #include <sys/types.h>
4499
4500 int
4501 main ()
4502 {
4503
4504 #ifndef _XOPEN_SOURCE
4505 make an error
4506 #endif
4507 ;
4508 return 0;
4509 }
4510 _ACEOF
4511 rm -f conftest.$ac_objext
4512 if { (eval echo "$as_me:4512: \"$ac_compile\"") >&5
4513 (eval $ac_compile) 2>&5
4514 ac_status=$?
4515 echo "$as_me:4515: \$? = $ac_status" >&5
4516 (exit $ac_status); } &&
4517 { ac_try='test -s conftest.$ac_objext'
4518 { (eval echo "$as_me:4518: \"$ac_try\"") >&5
4519 (eval $ac_try) 2>&5
4520 ac_status=$?
4521 echo "$as_me:4521: \$? = $ac_status" >&5
4522 (exit $ac_status); }; }; then
4523 cf_cv_xopen_source=no
4524 else
4525 echo "$as_me: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4527 cf_save="$CPPFLAGS"
4528 CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=$cf_XOPEN_SOURCE"
4529 cat >conftest.$ac_ext <<_ACEOF
4530 #line 4530 "configure"
4531 #include "confdefs.h"
4532
4533 #include <stdlib.h>
4534 #include <string.h>
4535 #include <sys/types.h>
4536
4537 int
4538 main ()
4539 {
4540
4541 #ifdef _XOPEN_SOURCE
4542 make an error
4543 #endif
4544 ;
4545 return 0;
4546 }
4547 _ACEOF
4548 rm -f conftest.$ac_objext
4549 if { (eval echo "$as_me:4549: \"$ac_compile\"") >&5
4550 (eval $ac_compile) 2>&5
4551 ac_status=$?
4552 echo "$as_me:4552: \$? = $ac_status" >&5
4553 (exit $ac_status); } &&
4554 { ac_try='test -s conftest.$ac_objext'
4555 { (eval echo "$as_me:4555: \"$ac_try\"") >&5
4556 (eval $ac_try) 2>&5
4557 ac_status=$?
4558 echo "$as_me:4558: \$? = $ac_status" >&5
4559 (exit $ac_status); }; }; then
4560 cf_cv_xopen_source=no
4561 else
4562 echo "$as_me: failed program was:" >&5
4563 cat conftest.$ac_ext >&5
4564 cf_cv_xopen_source=$cf_XOPEN_SOURCE
4565 fi
4566 rm -f conftest.$ac_objext conftest.$ac_ext
4567 CPPFLAGS="$cf_save"
4568
4569 fi
4570 rm -f conftest.$ac_objext conftest.$ac_ext
4571
4572 fi
4573 echo "$as_me:4573: result: $cf_cv_xopen_source" >&5
4574 echo "${ECHO_T}$cf_cv_xopen_source" >&6
4575
4576 if test "$cf_cv_xopen_source" != no ; then
4577
4578 CFLAGS=`echo "$CFLAGS" | \
4579 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4580 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4581
4582 CPPFLAGS=`echo "$CPPFLAGS" | \
4583 sed -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?[ ]/ /g' \
4584 -e 's/-[UD]'"_XOPEN_SOURCE"'\(=[^ ]*\)\?$//g'`
4585
4586 cf_temp_xopen_source="-D_XOPEN_SOURCE=$cf_cv_xopen_source"
4587
4588 cf_fix_cppflags=no
4589 cf_new_cflags=
4590 cf_new_cppflags=
4591 cf_new_extra_cppflags=
4592
4593 for cf_add_cflags in $cf_temp_xopen_source
4594 do
4595 case $cf_fix_cppflags in
4596 no)
4597 case $cf_add_cflags in #(vi
4598 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
4599 case $cf_add_cflags in
4600 -D*)
4601 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
4602
4603 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4604 && test -z "${cf_tst_cflags}" \
4605 && cf_fix_cppflags=yes
4606
4607 if test $cf_fix_cppflags = yes ; then
4608 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4609 continue
4610 elif test "${cf_tst_cflags}" = "\"'" ; then
4611 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4612 continue
4613 fi
4614 ;;
4615 esac
4616 case "$CPPFLAGS" in
4617 *$cf_add_cflags) #(vi
4618 ;;
4619 *) #(vi
4620 case $cf_add_cflags in #(vi
4621 -D*)
4622 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
4623
4624 CPPFLAGS=`echo "$CPPFLAGS" | \
4625 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
4626 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
4627
4628 ;;
4629 esac
4630 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
4631 ;;
4632 esac
4633 ;;
4634 *)
4635 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
4636 ;;
4637 esac
4638 ;;
4639 yes)
4640 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
4641
4642 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
4643
4644 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
4645 && test -z "${cf_tst_cflags}" \
4646 && cf_fix_cppflags=no
4647 ;;
4648 esac
4649 done
4650
4651 if test -n "$cf_new_cflags" ; then
4652
4653 CFLAGS="$CFLAGS $cf_new_cflags"
4654 fi
4655
4656 if test -n "$cf_new_cppflags" ; then
4657
4658 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
4659 fi
4660
4661 if test -n "$cf_new_extra_cppflags" ; then
4662
4663 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
4664 fi
4665
4666 fi
4667
4668 fi
4669 fi
4670
4671 GCC_VERSION=none
4672 if test "$GCC" = yes ; then
4673 echo "$as_me:4673: checking version of $CC" >&5
4674 echo $ECHO_N "checking version of $CC... $ECHO_C" >&6
4675 GCC_VERSION="`${CC} --version 2>/dev/null | sed -e '2,$d' -e 's/^.*(GCC) //' -e 's/^[^0-9.]*//' -e 's/[^0-9.].*//'`"
4676 test -z "$GCC_VERSION" && GCC_VERSION=unknown
4677 echo "$as_me:4677: result: $GCC_VERSION" >&5
4678 echo "${ECHO_T}$GCC_VERSION" >&6
4679 fi
4680
4681 if ( test "$GCC" = yes || test "$GXX" = yes )
4682 then
4683 echo "$as_me:4683: checking if you want to check for gcc warnings" >&5
4684 echo $ECHO_N "checking if you want to check for gcc warnings... $ECHO_C" >&6
4685
4686 # Check whether --with-warnings or --without-warnings was given.
4687 if test "${with_warnings+set}" = set; then
4688 withval="$with_warnings"
4689 cf_opt_with_warnings=$withval
4690 else
4691 cf_opt_with_warnings=no
4692 fi;
4693 echo "$as_me:4693: result: $cf_opt_with_warnings" >&5
4694 echo "${ECHO_T}$cf_opt_with_warnings" >&6
4695 if test "$cf_opt_with_warnings" != no ; then
4696
4697 if test "$GCC" = yes
4698 then
4699 cat > conftest.i <<EOF
4700 #ifndef GCC_PRINTF
4701 #define GCC_PRINTF 0
4702 #endif
4703 #ifndef GCC_SCANF
4704 #define GCC_SCANF 0
4705 #endif
4706 #ifndef GCC_NORETURN
4707 #define GCC_NORETURN /* nothing */
4708 #endif
4709 #ifndef GCC_UNUSED
4710 #define GCC_UNUSED /* nothing */
4711 #endif
4712 EOF
4713 if test "$GCC" = yes
4714 then
4715 { echo "$as_me:4715: checking for $CC __attribute__ directives..." >&5
4716 echo "$as_me: checking for $CC __attribute__ directives..." >&6;}
4717 cat > conftest.$ac_ext <<EOF
4718 #line 4718 "${as_me:-configure}"
4719 #include "confdefs.h"
4720 #include "conftest.h"
4721 #include "conftest.i"
4722 #if GCC_PRINTF
4723 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4724 #else
4725 #define GCC_PRINTFLIKE(fmt,var) /*nothing*/
4726 #endif
4727 #if GCC_SCANF
4728 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4729 #else
4730 #define GCC_SCANFLIKE(fmt,var) /*nothing*/
4731 #endif
4732 extern void wow(char *,...) GCC_SCANFLIKE(1,2);
4733 extern void oops(char *,...) GCC_PRINTFLIKE(1,2) GCC_NORETURN;
4734 extern void foo(void) GCC_NORETURN;
4735 int main(int argc GCC_UNUSED, char *argv[] GCC_UNUSED) { return 0; }
4736 EOF
4737 cf_printf_attribute=no
4738 cf_scanf_attribute=no
4739 for cf_attribute in scanf printf unused noreturn
4740 do
4741
4742 cf_ATTRIBUTE=`echo "$cf_attribute" | sed y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%`
4743
4744 cf_directive="__attribute__(($cf_attribute))"
4745 echo "checking for $CC $cf_directive" 1>&5
4746
4747 case $cf_attribute in #(vi
4748 printf) #(vi
4749 cf_printf_attribute=yes
4750 cat >conftest.h <<EOF
4751 #define GCC_$cf_ATTRIBUTE 1
4752 EOF
4753 ;;
4754 scanf) #(vi
4755 cf_scanf_attribute=yes
4756 cat >conftest.h <<EOF
4757 #define GCC_$cf_ATTRIBUTE 1
4758 EOF
4759 ;;
4760 *) #(vi
4761 cat >conftest.h <<EOF
4762 #define GCC_$cf_ATTRIBUTE $cf_directive
4763 EOF
4764 ;;
4765 esac
4766
4767 if { (eval echo "$as_me:4767: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>&5
4769 ac_status=$?
4770 echo "$as_me:4770: \$? = $ac_status" >&5
4771 (exit $ac_status); }; then
4772 test -n "$verbose" && echo "$as_me:4772: result: ... $cf_attribute" >&5
4773 echo "${ECHO_T}... $cf_attribute" >&6
4774 cat conftest.h >>confdefs.h
4775 case $cf_attribute in #(vi
4776 printf) #(vi
4777 if test "$cf_printf_attribute" = no ; then
4778 cat >>confdefs.h <<EOF
4779 #define GCC_PRINTFLIKE(fmt,var) /* nothing */
4780 EOF
4781 else
4782 cat >>confdefs.h <<EOF
4783 #define GCC_PRINTFLIKE(fmt,var) __attribute__((format(printf,fmt,var)))
4784 EOF
4785 fi
4786 ;;
4787 scanf) #(vi
4788 if test "$cf_scanf_attribute" = no ; then
4789 cat >>confdefs.h <<EOF
4790 #define GCC_SCANFLIKE(fmt,var) /* nothing */
4791 EOF
4792 else
4793 cat >>confdefs.h <<EOF
4794 #define GCC_SCANFLIKE(fmt,var) __attribute__((format(scanf,fmt,var)))
4795 EOF
4796 fi
4797 ;;
4798 esac
4799 fi
4800 done
4801 else
4802 fgrep define conftest.i >>confdefs.h
4803 fi
4804 rm -rf conftest*
4805 fi
4806
4807 INTEL_COMPILER=no
4808
4809 if test "$GCC" = yes ; then
4810 case $host_os in
4811 linux*|gnu*)
4812 echo "$as_me:4812: checking if this is really Intel C compiler" >&5
4813 echo $ECHO_N "checking if this is really Intel C compiler... $ECHO_C" >&6
4814 cf_save_CFLAGS="$CFLAGS"
4815 CFLAGS="$CFLAGS -no-gcc"
4816 cat >conftest.$ac_ext <<_ACEOF
4817 #line 4817 "configure"
4818 #include "confdefs.h"
4819
4820 int
4821 main ()
4822 {
4823
4824 #ifdef __INTEL_COMPILER
4825 #else
4826 make an error
4827 #endif
4828
4829 ;
4830 return 0;
4831 }
4832 _ACEOF
4833 rm -f conftest.$ac_objext
4834 if { (eval echo "$as_me:4834: \"$ac_compile\"") >&5
4835 (eval $ac_compile) 2>&5
4836 ac_status=$?
4837 echo "$as_me:4837: \$? = $ac_status" >&5
4838 (exit $ac_status); } &&
4839 { ac_try='test -s conftest.$ac_objext'
4840 { (eval echo "$as_me:4840: \"$ac_try\"") >&5
4841 (eval $ac_try) 2>&5
4842 ac_status=$?
4843 echo "$as_me:4843: \$? = $ac_status" >&5
4844 (exit $ac_status); }; }; then
4845 INTEL_COMPILER=yes
4846 cf_save_CFLAGS="$cf_save_CFLAGS -we147 -no-gcc"
4847
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 cat conftest.$ac_ext >&5
4851 fi
4852 rm -f conftest.$ac_objext conftest.$ac_ext
4853 CFLAGS="$cf_save_CFLAGS"
4854 echo "$as_me:4854: result: $INTEL_COMPILER" >&5
4855 echo "${ECHO_T}$INTEL_COMPILER" >&6
4856 ;;
4857 esac
4858 fi
4859
4860 cat > conftest.$ac_ext <<EOF
4861 #line 4861 "${as_me:-configure}"
4862 int main(int argc, char *argv[]) { return (argv[argc-1] == 0) ; }
4863 EOF
4864
4865 if test "$INTEL_COMPILER" = yes
4866 then
4867 # The "-wdXXX" options suppress warnings:
4868 # remark #1419: external declaration in primary source file
4869 # remark #1683: explicit conversion of a 64-bit integral type to a smaller integral type (potential portability problem)
4870 # remark #1684: conversion from pointer to same-sized integral type (potential portability problem)
4871 # remark #193: zero used for undefined preprocessing identifier
4872 # remark #593: variable "curs_sb_left_arrow" was set but never used
4873 # remark #810: conversion from "int" to "Dimension={unsigned short}" may lose significant bits
4874 # remark #869: parameter "tw" was never referenced
4875 # remark #981: operands are evaluated in unspecified order
4876 # warning #279: controlling expression is constant
4877
4878 { echo "$as_me:4878: checking for $CC warning options..." >&5
4879 echo "$as_me: checking for $CC warning options..." >&6;}
4880 cf_save_CFLAGS="$CFLAGS"
4881 EXTRA_CFLAGS="-Wall"
4882 for cf_opt in \
4883 wd1419 \
4884 wd1683 \
4885 wd1684 \
4886 wd193 \
4887 wd593 \
4888 wd279 \
4889 wd810 \
4890 wd869 \
4891 wd981
4892 do
4893 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4894 if { (eval echo "$as_me:4894: \"$ac_compile\"") >&5
4895 (eval $ac_compile) 2>&5
4896 ac_status=$?
4897 echo "$as_me:4897: \$? = $ac_status" >&5
4898 (exit $ac_status); }; then
4899 test -n "$verbose" && echo "$as_me:4899: result: ... -$cf_opt" >&5
4900 echo "${ECHO_T}... -$cf_opt" >&6
4901 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4902 fi
4903 done
4904 CFLAGS="$cf_save_CFLAGS"
4905
4906 elif test "$GCC" = yes
4907 then
4908 { echo "$as_me:4908: checking for $CC warning options..." >&5
4909 echo "$as_me: checking for $CC warning options..." >&6;}
4910 cf_save_CFLAGS="$CFLAGS"
4911 EXTRA_CFLAGS=
4912 cf_warn_CONST=""
4913 test "$with_ext_const" = yes && cf_warn_CONST="Wwrite-strings"
4914 for cf_opt in W Wall \
4915 Wbad-function-cast \
4916 Wcast-align \
4917 Wcast-qual \
4918 Winline \
4919 Wmissing-declarations \
4920 Wmissing-prototypes \
4921 Wnested-externs \
4922 Wpointer-arith \
4923 Wshadow \
4924 Wstrict-prototypes \
4925 Wundef $cf_warn_CONST
4926 do
4927 CFLAGS="$cf_save_CFLAGS $EXTRA_CFLAGS -$cf_opt"
4928 if { (eval echo "$as_me:4928: \"$ac_compile\"") >&5
4929 (eval $ac_compile) 2>&5
4930 ac_status=$?
4931 echo "$as_me:4931: \$? = $ac_status" >&5
4932 (exit $ac_status); }; then
4933 test -n "$verbose" && echo "$as_me:4933: result: ... -$cf_opt" >&5
4934 echo "${ECHO_T}... -$cf_opt" >&6
4935 case $cf_opt in #(vi
4936 Wcast-qual) #(vi
4937 CPPFLAGS="$CPPFLAGS -DXTSTRINGDEFINES"
4938 ;;
4939 Winline) #(vi
4940 case $GCC_VERSION in
4941 [34].*)
4942 test -n "$verbose" && echo " feature is broken in gcc $GCC_VERSION" 1>&6
4943
4944 echo "${as_me:-configure}:4944: testing feature is broken in gcc $GCC_VERSION ..." 1>&5
4945
4946 continue;;
4947 esac
4948 ;;
4949 esac
4950 EXTRA_CFLAGS="$EXTRA_CFLAGS -$cf_opt"
4951 fi
4952 done
4953 CFLAGS="$cf_save_CFLAGS"
4954 fi
4955 rm -rf conftest*
4956
4957 fi
4958 fi
4959
4960 echo "$as_me:4960: checking for $CC option to accept ANSI C" >&5
4961 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4962 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4963 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 else
4965 ac_cv_prog_cc_stdc=no
4966 ac_save_CC=$CC
4967 cat >conftest.$ac_ext <<_ACEOF
4968 #line 4968 "configure"
4969 #include "confdefs.h"
4970 #include <stdarg.h>
4971 #include <stdio.h>
4972 #include <sys/types.h>
4973 #include <sys/stat.h>
4974 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4975 struct buf { int x; };
4976 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4977 static char *e (p, i)
4978 char **p;
4979 int i;
4980 {
4981 return p[i];
4982 }
4983 static char *f (char * (*g) (char **, int), char **p, ...)
4984 {
4985 char *s;
4986 va_list v;
4987 va_start (v,p);
4988 s = g (p, va_arg (v,int));
4989 va_end (v);
4990 return s;
4991 }
4992 int test (int i, double x);
4993 struct s1 {int (*f) (int a);};
4994 struct s2 {int (*f) (double a);};
4995 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4996 int argc;
4997 char **argv;
4998 int
4999 main ()
5000 {
5001 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5002 ;
5003 return 0;
5004 }
5005 _ACEOF
5006 # Don't try gcc -ansi; that turns off useful extensions and
5007 # breaks some systems' header files.
5008 # AIX -qlanglvl=ansi
5009 # Ultrix and OSF/1 -std1
5010 # HP-UX 10.20 and later -Ae
5011 # HP-UX older versions -Aa -D_HPUX_SOURCE
5012 # SVR4 -Xc -D__EXTENSIONS__
5013 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5014 do
5015 CC="$ac_save_CC $ac_arg"
5016 rm -f conftest.$ac_objext
5017 if { (eval echo "$as_me:5017: \"$ac_compile\"") >&5
5018 (eval $ac_compile) 2>&5
5019 ac_status=$?
5020 echo "$as_me:5020: \$? = $ac_status" >&5
5021 (exit $ac_status); } &&
5022 { ac_try='test -s conftest.$ac_objext'
5023 { (eval echo "$as_me:5023: \"$ac_try\"") >&5
5024 (eval $ac_try) 2>&5
5025 ac_status=$?
5026 echo "$as_me:5026: \$? = $ac_status" >&5
5027 (exit $ac_status); }; }; then
5028 ac_cv_prog_cc_stdc=$ac_arg
5029 break
5030 else
5031 echo "$as_me: failed program was:" >&5
5032 cat conftest.$ac_ext >&5
5033 fi
5034 rm -f conftest.$ac_objext
5035 done
5036 rm -f conftest.$ac_ext conftest.$ac_objext
5037 CC=$ac_save_CC
5038
5039 fi
5040
5041 case "x$ac_cv_prog_cc_stdc" in
5042 x|xno)
5043 echo "$as_me:5043: result: none needed" >&5
5044 echo "${ECHO_T}none needed" >&6 ;;
5045 *)
5046 echo "$as_me:5046: result: $ac_cv_prog_cc_stdc" >&5
5047 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5048 CC="$CC $ac_cv_prog_cc_stdc" ;;
5049 esac
5050
5051 echo "$as_me:5051: checking for an ANSI C-conforming const" >&5
5052 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
5053 if test "${ac_cv_c_const+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5055 else
5056 cat >conftest.$ac_ext <<_ACEOF
5057 #line 5057 "configure"
5058 #include "confdefs.h"
5059
5060 int
5061 main ()
5062 {
5063 /* FIXME: Include the comments suggested by Paul. */
5064 #ifndef __cplusplus
5065 /* Ultrix mips cc rejects this. */
5066 typedef int charset[2];
5067 const charset x;
5068 /* SunOS 4.1.1 cc rejects this. */
5069 char const *const *ccp;
5070 char **p;
5071 /* NEC SVR4.0.2 mips cc rejects this. */
5072 struct point {int x, y;};
5073 static struct point const zero = {0,0};
5074 /* AIX XL C 1.02.0.0 rejects this.
5075 It does not let you subtract one const X* pointer from another in
5076 an arm of an if-expression whose if-part is not a constant
5077 expression */
5078 const char *g = "string";
5079 ccp = &g + (g ? g-g : 0);
5080 /* HPUX 7.0 cc rejects these. */
5081 ++ccp;
5082 p = (char**) ccp;
5083 ccp = (char const *const *) p;
5084 { /* SCO 3.2v4 cc rejects this. */
5085 char *t;
5086 char const *s = 0 ? (char *) 0 : (char const *) 0;
5087
5088 *t++ = 0;
5089 }
5090 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5091 int x[] = {25, 17};
5092 const int *foo = &x[0];
5093 ++foo;
5094 }
5095 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5096 typedef const int *iptr;
5097 iptr p = 0;
5098 ++p;
5099 }
5100 { /* AIX XL C 1.02.0.0 rejects this saying
5101 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5102 struct s { int j; const int *ap[3]; };
5103 struct s *b; b->j = 5;
5104 }
5105 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5106 const int foo = 10;
5107 }
5108 #endif
5109
5110 ;
5111 return 0;
5112 }
5113 _ACEOF
5114 rm -f conftest.$ac_objext
5115 if { (eval echo "$as_me:5115: \"$ac_compile\"") >&5
5116 (eval $ac_compile) 2>&5
5117 ac_status=$?
5118 echo "$as_me:5118: \$? = $ac_status" >&5
5119 (exit $ac_status); } &&
5120 { ac_try='test -s conftest.$ac_objext'
5121 { (eval echo "$as_me:5121: \"$ac_try\"") >&5
5122 (eval $ac_try) 2>&5
5123 ac_status=$?
5124 echo "$as_me:5124: \$? = $ac_status" >&5
5125 (exit $ac_status); }; }; then
5126 ac_cv_c_const=yes
5127 else
5128 echo "$as_me: failed program was:" >&5
5129 cat conftest.$ac_ext >&5
5130 ac_cv_c_const=no
5131 fi
5132 rm -f conftest.$ac_objext conftest.$ac_ext
5133 fi
5134 echo "$as_me:5134: result: $ac_cv_c_const" >&5
5135 echo "${ECHO_T}$ac_cv_c_const" >&6
5136 if test $ac_cv_c_const = no; then
5137
5138 cat >>confdefs.h <<\EOF
5139 #define const
5140 EOF
5141
5142 fi
5143
5144 ac_ext=c
5145 ac_cpp='$CPP $CPPFLAGS'
5146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 ac_main_return=return
5150 echo "$as_me:5150: checking how to run the C preprocessor" >&5
5151 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5152 # On Suns, sometimes $CPP names a directory.
5153 if test -n "$CPP" && test -d "$CPP"; then
5154 CPP=
5155 fi
5156 if test -z "$CPP"; then
5157 if test "${ac_cv_prog_CPP+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 # Double quotes because CPP needs to be expanded
5161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5162 do
5163 ac_preproc_ok=false
5164 for ac_c_preproc_warn_flag in '' yes
5165 do
5166 # Use a header file that comes with gcc, so configuring glibc
5167 # with a fresh cross-compiler works.
5168 # On the NeXT, cc -E runs the code through the compiler's parser,
5169 # not just through cpp. "Syntax error" is here to catch this case.
5170 cat >conftest.$ac_ext <<_ACEOF
5171 #line 5171 "configure"
5172 #include "confdefs.h"
5173 #include <assert.h>
5174 Syntax error
5175 _ACEOF
5176 if { (eval echo "$as_me:5176: \"$ac_cpp conftest.$ac_ext\"") >&5
5177 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5178 ac_status=$?
5179 egrep -v '^ *\+' conftest.er1 >conftest.err
5180 rm -f conftest.er1
5181 cat conftest.err >&5
5182 echo "$as_me:5182: \$? = $ac_status" >&5
5183 (exit $ac_status); } >/dev/null; then
5184 if test -s conftest.err; then
5185 ac_cpp_err=$ac_c_preproc_warn_flag
5186 else
5187 ac_cpp_err=
5188 fi
5189 else
5190 ac_cpp_err=yes
5191 fi
5192 if test -z "$ac_cpp_err"; then
5193 :
5194 else
5195 echo "$as_me: failed program was:" >&5
5196 cat conftest.$ac_ext >&5
5197 # Broken: fails on valid input.
5198 continue
5199 fi
5200 rm -f conftest.err conftest.$ac_ext
5201
5202 # OK, works on sane cases. Now check whether non-existent headers
5203 # can be detected and how.
5204 cat >conftest.$ac_ext <<_ACEOF
5205 #line 5205 "configure"
5206 #include "confdefs.h"
5207 #include <ac_nonexistent.h>
5208 _ACEOF
5209 if { (eval echo "$as_me:5209: \"$ac_cpp conftest.$ac_ext\"") >&5
5210 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211 ac_status=$?
5212 egrep -v '^ *\+' conftest.er1 >conftest.err
5213 rm -f conftest.er1
5214 cat conftest.err >&5
5215 echo "$as_me:5215: \$? = $ac_status" >&5
5216 (exit $ac_status); } >/dev/null; then
5217 if test -s conftest.err; then
5218 ac_cpp_err=$ac_c_preproc_warn_flag
5219 else
5220 ac_cpp_err=
5221 fi
5222 else
5223 ac_cpp_err=yes
5224 fi
5225 if test -z "$ac_cpp_err"; then
5226 # Broken: success on invalid input.
5227 continue
5228 else
5229 echo "$as_me: failed program was:" >&5
5230 cat conftest.$ac_ext >&5
5231 # Passes both tests.
5232 ac_preproc_ok=:
5233 break
5234 fi
5235 rm -f conftest.err conftest.$ac_ext
5236
5237 done
5238 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5239 rm -f conftest.err conftest.$ac_ext
5240 if $ac_preproc_ok; then
5241 break
5242 fi
5243
5244 done
5245 ac_cv_prog_CPP=$CPP
5246
5247 fi
5248 CPP=$ac_cv_prog_CPP
5249 else
5250 ac_cv_prog_CPP=$CPP
5251 fi
5252 echo "$as_me:5252: result: $CPP" >&5
5253 echo "${ECHO_T}$CPP" >&6
5254 ac_preproc_ok=false
5255 for ac_c_preproc_warn_flag in '' yes
5256 do
5257 # Use a header file that comes with gcc, so configuring glibc
5258 # with a fresh cross-compiler works.
5259 # On the NeXT, cc -E runs the code through the compiler's parser,
5260 # not just through cpp. "Syntax error" is here to catch this case.
5261 cat >conftest.$ac_ext <<_ACEOF
5262 #line 5262 "configure"
5263 #include "confdefs.h"
5264 #include <assert.h>
5265 Syntax error
5266 _ACEOF
5267 if { (eval echo "$as_me:5267: \"$ac_cpp conftest.$ac_ext\"") >&5
5268 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5269 ac_status=$?
5270 egrep -v '^ *\+' conftest.er1 >conftest.err
5271 rm -f conftest.er1
5272 cat conftest.err >&5
5273 echo "$as_me:5273: \$? = $ac_status" >&5
5274 (exit $ac_status); } >/dev/null; then
5275 if test -s conftest.err; then
5276 ac_cpp_err=$ac_c_preproc_warn_flag
5277 else
5278 ac_cpp_err=
5279 fi
5280 else
5281 ac_cpp_err=yes
5282 fi
5283 if test -z "$ac_cpp_err"; then
5284 :
5285 else
5286 echo "$as_me: failed program was:" >&5
5287 cat conftest.$ac_ext >&5
5288 # Broken: fails on valid input.
5289 continue
5290 fi
5291 rm -f conftest.err conftest.$ac_ext
5292
5293 # OK, works on sane cases. Now check whether non-existent headers
5294 # can be detected and how.
5295 cat >conftest.$ac_ext <<_ACEOF
5296 #line 5296 "configure"
5297 #include "confdefs.h"
5298 #include <ac_nonexistent.h>
5299 _ACEOF
5300 if { (eval echo "$as_me:5300: \"$ac_cpp conftest.$ac_ext\"") >&5
5301 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5302 ac_status=$?
5303 egrep -v '^ *\+' conftest.er1 >conftest.err
5304 rm -f conftest.er1
5305 cat conftest.err >&5
5306 echo "$as_me:5306: \$? = $ac_status" >&5
5307 (exit $ac_status); } >/dev/null; then
5308 if test -s conftest.err; then
5309 ac_cpp_err=$ac_c_preproc_warn_flag
5310 else
5311 ac_cpp_err=
5312 fi
5313 else
5314 ac_cpp_err=yes
5315 fi
5316 if test -z "$ac_cpp_err"; then
5317 # Broken: success on invalid input.
5318 continue
5319 else
5320 echo "$as_me: failed program was:" >&5
5321 cat conftest.$ac_ext >&5
5322 # Passes both tests.
5323 ac_preproc_ok=:
5324 break
5325 fi
5326 rm -f conftest.err conftest.$ac_ext
5327
5328 done
5329 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5330 rm -f conftest.err conftest.$ac_ext
5331 if $ac_preproc_ok; then
5332 :
5333 else
5334 { { echo "$as_me:5334: error: C preprocessor \"$CPP\" fails sanity check" >&5
5335 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
5336 { (exit 1); exit 1; }; }
5337 fi
5338
5339 ac_ext=c
5340 ac_cpp='$CPP $CPPFLAGS'
5341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 ac_main_return=return
5345
5346 echo "$as_me:5346: checking for ANSI C header files" >&5
5347 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5348 if test "${ac_cv_header_stdc+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5350 else
5351 cat >conftest.$ac_ext <<_ACEOF
5352 #line 5352 "configure"
5353 #include "confdefs.h"
5354 #include <stdlib.h>
5355 #include <stdarg.h>
5356 #include <string.h>
5357 #include <float.h>
5358
5359 _ACEOF
5360 if { (eval echo "$as_me:5360: \"$ac_cpp conftest.$ac_ext\"") >&5
5361 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5362 ac_status=$?
5363 egrep -v '^ *\+' conftest.er1 >conftest.err
5364 rm -f conftest.er1
5365 cat conftest.err >&5
5366 echo "$as_me:5366: \$? = $ac_status" >&5
5367 (exit $ac_status); } >/dev/null; then
5368 if test -s conftest.err; then
5369 ac_cpp_err=$ac_c_preproc_warn_flag
5370 else
5371 ac_cpp_err=
5372 fi
5373 else
5374 ac_cpp_err=yes
5375 fi
5376 if test -z "$ac_cpp_err"; then
5377 ac_cv_header_stdc=yes
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 cat conftest.$ac_ext >&5
5381 ac_cv_header_stdc=no
5382 fi
5383 rm -f conftest.err conftest.$ac_ext
5384
5385 if test $ac_cv_header_stdc = yes; then
5386 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5387 cat >conftest.$ac_ext <<_ACEOF
5388 #line 5388 "configure"
5389 #include "confdefs.h"
5390 #include <string.h>
5391
5392 _ACEOF
5393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5394 egrep "memchr" >/dev/null 2>&1; then
5395 :
5396 else
5397 ac_cv_header_stdc=no
5398 fi
5399 rm -rf conftest*
5400
5401 fi
5402
5403 if test $ac_cv_header_stdc = yes; then
5404 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5405 cat >conftest.$ac_ext <<_ACEOF
5406 #line 5406 "configure"
5407 #include "confdefs.h"
5408 #include <stdlib.h>
5409
5410 _ACEOF
5411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5412 egrep "free" >/dev/null 2>&1; then
5413 :
5414 else
5415 ac_cv_header_stdc=no
5416 fi
5417 rm -rf conftest*
5418
5419 fi
5420
5421 if test $ac_cv_header_stdc = yes; then
5422 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5423 if test "$cross_compiling" = yes; then
5424 :
5425 else
5426 cat >conftest.$ac_ext <<_ACEOF
5427 #line 5427 "configure"
5428 #include "confdefs.h"
5429 #include <ctype.h>
5430 #if ((' ' & 0x0FF) == 0x020)
5431 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5432 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5433 #else
5434 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
5435 || ('j' <= (c) && (c) <= 'r') \
5436 || ('s' <= (c) && (c) <= 'z'))
5437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5438 #endif
5439
5440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5441 int
5442 main ()
5443 {
5444 int i;
5445 for (i = 0; i < 256; i++)
5446 if (XOR (islower (i), ISLOWER (i))
5447 || toupper (i) != TOUPPER (i))
5448 $ac_main_return(2);
5449 $ac_main_return (0);
5450 }
5451 _ACEOF
5452 rm -f conftest$ac_exeext
5453 if { (eval echo "$as_me:5453: \"$ac_link\"") >&5
5454 (eval $ac_link) 2>&5
5455 ac_status=$?
5456 echo "$as_me:5456: \$? = $ac_status" >&5
5457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5458 { (eval echo "$as_me:5458: \"$ac_try\"") >&5
5459 (eval $ac_try) 2>&5
5460 ac_status=$?
5461 echo "$as_me:5461: \$? = $ac_status" >&5
5462 (exit $ac_status); }; }; then
5463 :
5464 else
5465 echo "$as_me: program exited with status $ac_status" >&5
5466 echo "$as_me: failed program was:" >&5
5467 cat conftest.$ac_ext >&5
5468 ac_cv_header_stdc=no
5469 fi
5470 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5471 fi
5472 fi
5473 fi
5474 echo "$as_me:5474: result: $ac_cv_header_stdc" >&5
5475 echo "${ECHO_T}$ac_cv_header_stdc" >&6
5476 if test $ac_cv_header_stdc = yes; then
5477
5478 cat >>confdefs.h <<\EOF
5479 #define STDC_HEADERS 1
5480 EOF
5481
5482 fi
5483
5484 for ac_header in \
5485 malloc.h \
5486 search.h \
5487 string.h \
5488
5489 do
5490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5491 echo "$as_me:5491: checking for $ac_header" >&5
5492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5494 echo $ECHO_N "(cached) $ECHO_C" >&6
5495 else
5496 cat >conftest.$ac_ext <<_ACEOF
5497 #line 5497 "configure"
5498 #include "confdefs.h"
5499 #include <$ac_header>
5500 _ACEOF
5501 if { (eval echo "$as_me:5501: \"$ac_cpp conftest.$ac_ext\"") >&5
5502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5503 ac_status=$?
5504 egrep -v '^ *\+' conftest.er1 >conftest.err
5505 rm -f conftest.er1
5506 cat conftest.err >&5
5507 echo "$as_me:5507: \$? = $ac_status" >&5
5508 (exit $ac_status); } >/dev/null; then
5509 if test -s conftest.err; then
5510 ac_cpp_err=$ac_c_preproc_warn_flag
5511 else
5512 ac_cpp_err=
5513 fi
5514 else
5515 ac_cpp_err=yes
5516 fi
5517 if test -z "$ac_cpp_err"; then
5518 eval "$as_ac_Header=yes"
5519 else
5520 echo "$as_me: failed program was:" >&5
5521 cat conftest.$ac_ext >&5
5522 eval "$as_ac_Header=no"
5523 fi
5524 rm -f conftest.err conftest.$ac_ext
5525 fi
5526 echo "$as_me:5526: result: `eval echo '${'$as_ac_Header'}'`" >&5
5527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5529 cat >>confdefs.h <<EOF
5530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5531 EOF
5532
5533 fi
5534 done
5535
5536 for ac_header in unistd.h getopt.h
5537 do
5538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5539 echo "$as_me:5539: checking for $ac_header" >&5
5540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5541 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 cat >conftest.$ac_ext <<_ACEOF
5545 #line 5545 "configure"
5546 #include "confdefs.h"
5547 #include <$ac_header>
5548 _ACEOF
5549 if { (eval echo "$as_me:5549: \"$ac_cpp conftest.$ac_ext\"") >&5
5550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5551 ac_status=$?
5552 egrep -v '^ *\+' conftest.er1 >conftest.err
5553 rm -f conftest.er1
5554 cat conftest.err >&5
5555 echo "$as_me:5555: \$? = $ac_status" >&5
5556 (exit $ac_status); } >/dev/null; then
5557 if test -s conftest.err; then
5558 ac_cpp_err=$ac_c_preproc_warn_flag
5559 else
5560 ac_cpp_err=
5561 fi
5562 else
5563 ac_cpp_err=yes
5564 fi
5565 if test -z "$ac_cpp_err"; then
5566 eval "$as_ac_Header=yes"
5567 else
5568 echo "$as_me: failed program was:" >&5
5569 cat conftest.$ac_ext >&5
5570 eval "$as_ac_Header=no"
5571 fi
5572 rm -f conftest.err conftest.$ac_ext
5573 fi
5574 echo "$as_me:5574: result: `eval echo '${'$as_ac_Header'}'`" >&5
5575 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5577 cat >>confdefs.h <<EOF
5578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5579 EOF
5580
5581 fi
5582 done
5583
5584 echo "$as_me:5584: checking for header declaring getopt variables" >&5
5585 echo $ECHO_N "checking for header declaring getopt variables... $ECHO_C" >&6
5586 if test "${cf_cv_getopt_header+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5588 else
5589
5590 cf_cv_getopt_header=none
5591 for cf_header in stdio.h stdlib.h unistd.h getopt.h
5592 do
5593 cat >conftest.$ac_ext <<_ACEOF
5594 #line 5594 "configure"
5595 #include "confdefs.h"
5596
5597 #include <$cf_header>
5598 int
5599 main ()
5600 {
5601 int x = optind; char *y = optarg
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (eval echo "$as_me:5607: \"$ac_compile\"") >&5
5608 (eval $ac_compile) 2>&5
5609 ac_status=$?
5610 echo "$as_me:5610: \$? = $ac_status" >&5
5611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest.$ac_objext'
5613 { (eval echo "$as_me:5613: \"$ac_try\"") >&5
5614 (eval $ac_try) 2>&5
5615 ac_status=$?
5616 echo "$as_me:5616: \$? = $ac_status" >&5
5617 (exit $ac_status); }; }; then
5618 cf_cv_getopt_header=$cf_header
5619 break
5620 else
5621 echo "$as_me: failed program was:" >&5
5622 cat conftest.$ac_ext >&5
5623 fi
5624 rm -f conftest.$ac_objext conftest.$ac_ext
5625 done
5626
5627 fi
5628 echo "$as_me:5628: result: $cf_cv_getopt_header" >&5
5629 echo "${ECHO_T}$cf_cv_getopt_header" >&6
5630 if test $cf_cv_getopt_header != none ; then
5631 cat >>confdefs.h <<\EOF
5632 #define HAVE_GETOPT_HEADER 1
5633 EOF
5634
5635 fi
5636
5637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5638
5639 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5640 inttypes.h stdint.h unistd.h
5641 do
5642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5643 echo "$as_me:5643: checking for $ac_header" >&5
5644 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5645 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 else
5648 cat >conftest.$ac_ext <<_ACEOF
5649 #line 5649 "configure"
5650 #include "confdefs.h"
5651 $ac_includes_default
5652 #include <$ac_header>
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (eval echo "$as_me:5655: \"$ac_compile\"") >&5
5656 (eval $ac_compile) 2>&5
5657 ac_status=$?
5658 echo "$as_me:5658: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -s conftest.$ac_objext'
5661 { (eval echo "$as_me:5661: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:5664: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 eval "$as_ac_Header=yes"
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 eval "$as_ac_Header=no"
5671 fi
5672 rm -f conftest.$ac_objext conftest.$ac_ext
5673 fi
5674 echo "$as_me:5674: result: `eval echo '${'$as_ac_Header'}'`" >&5
5675 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5677 cat >>confdefs.h <<EOF
5678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5679 EOF
5680
5681 fi
5682 done
5683
5684 echo "$as_me:5684: checking for size_t" >&5
5685 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
5686 if test "${ac_cv_type_size_t+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 else
5689 cat >conftest.$ac_ext <<_ACEOF
5690 #line 5690 "configure"
5691 #include "confdefs.h"
5692 $ac_includes_default
5693 int
5694 main ()
5695 {
5696 if ((size_t *) 0)
5697 return 0;
5698 if (sizeof (size_t))
5699 return 0;
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (eval echo "$as_me:5705: \"$ac_compile\"") >&5
5706 (eval $ac_compile) 2>&5
5707 ac_status=$?
5708 echo "$as_me:5708: \$? = $ac_status" >&5
5709 (exit $ac_status); } &&
5710 { ac_try='test -s conftest.$ac_objext'
5711 { (eval echo "$as_me:5711: \"$ac_try\"") >&5
5712 (eval $ac_try) 2>&5
5713 ac_status=$?
5714 echo "$as_me:5714: \$? = $ac_status" >&5
5715 (exit $ac_status); }; }; then
5716 ac_cv_type_size_t=yes
5717 else
5718 echo "$as_me: failed program was:" >&5
5719 cat conftest.$ac_ext >&5
5720 ac_cv_type_size_t=no
5721 fi
5722 rm -f conftest.$ac_objext conftest.$ac_ext
5723 fi
5724 echo "$as_me:5724: result: $ac_cv_type_size_t" >&5
5725 echo "${ECHO_T}$ac_cv_type_size_t" >&6
5726 if test $ac_cv_type_size_t = yes; then
5727 :
5728 else
5729
5730 cat >>confdefs.h <<EOF
5731 #define size_t unsigned
5732 EOF
5733
5734 fi
5735
5736 for ac_func in \
5737 mkdtemp \
5738 popen \
5739 tsearch \
5740
5741 do
5742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5743 echo "$as_me:5743: checking for $ac_func" >&5
5744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5745 if eval "test \"\${$as_ac_var+set}\" = set"; then
5746 echo $ECHO_N "(cached) $ECHO_C" >&6
5747 else
5748 cat >conftest.$ac_ext <<_ACEOF
5749 #line 5749 "configure"
5750 #include "confdefs.h"
5751 /* System header to define __stub macros and hopefully few prototypes,
5752 which can conflict with char $ac_func (); below. */
5753 #include <assert.h>
5754 /* Override any gcc2 internal prototype to avoid an error. */
5755 #ifdef __cplusplus
5756 extern "C"
5757 #endif
5758 /* We use char because int might match the return type of a gcc2
5759 builtin and then its argument prototype would still apply. */
5760 char $ac_func ();
5761 char (*f) ();
5762
5763 int
5764 main ()
5765 {
5766 /* The GNU C library defines this for functions which it implements
5767 to always fail with ENOSYS. Some functions are actually named
5768 something starting with __ and the normal name is an alias. */
5769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5770 choke me
5771 #else
5772 f = $ac_func;
5773 #endif
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 rm -f conftest.$ac_objext conftest$ac_exeext
5780 if { (eval echo "$as_me:5780: \"$ac_link\"") >&5
5781 (eval $ac_link) 2>&5
5782 ac_status=$?
5783 echo "$as_me:5783: \$? = $ac_status" >&5
5784 (exit $ac_status); } &&
5785 { ac_try='test -s conftest$ac_exeext'
5786 { (eval echo "$as_me:5786: \"$ac_try\"") >&5
5787 (eval $ac_try) 2>&5
5788 ac_status=$?
5789 echo "$as_me:5789: \$? = $ac_status" >&5
5790 (exit $ac_status); }; }; then
5791 eval "$as_ac_var=yes"
5792 else
5793 echo "$as_me: failed program was:" >&5
5794 cat conftest.$ac_ext >&5
5795 eval "$as_ac_var=no"
5796 fi
5797 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5798 fi
5799 echo "$as_me:5799: result: `eval echo '${'$as_ac_var'}'`" >&5
5800 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5801 if test `eval echo '${'$as_ac_var'}'` = yes; then
5802 cat >>confdefs.h <<EOF
5803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5804 EOF
5805
5806 fi
5807 done
5808
5809 cf_stdio_unlocked=no
5810
5811 for ac_func in getc_unlocked
5812 do
5813 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5814 echo "$as_me:5814: checking for $ac_func" >&5
5815 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5816 if eval "test \"\${$as_ac_var+set}\" = set"; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 cat >conftest.$ac_ext <<_ACEOF
5820 #line 5820 "configure"
5821 #include "confdefs.h"
5822 /* System header to define __stub macros and hopefully few prototypes,
5823 which can conflict with char $ac_func (); below. */
5824 #include <assert.h>
5825 /* Override any gcc2 internal prototype to avoid an error. */
5826 #ifdef __cplusplus
5827 extern "C"
5828 #endif
5829 /* We use char because int might match the return type of a gcc2
5830 builtin and then its argument prototype would still apply. */
5831 char $ac_func ();
5832 char (*f) ();
5833
5834 int
5835 main ()
5836 {
5837 /* The GNU C library defines this for functions which it implements
5838 to always fail with ENOSYS. Some functions are actually named
5839 something starting with __ and the normal name is an alias. */
5840 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5841 choke me
5842 #else
5843 f = $ac_func;
5844 #endif
5845
5846 ;
5847 return 0;
5848 }
5849 _ACEOF
5850 rm -f conftest.$ac_objext conftest$ac_exeext
5851 if { (eval echo "$as_me:5851: \"$ac_link\"") >&5
5852 (eval $ac_link) 2>&5
5853 ac_status=$?
5854 echo "$as_me:5854: \$? = $ac_status" >&5
5855 (exit $ac_status); } &&
5856 { ac_try='test -s conftest$ac_exeext'
5857 { (eval echo "$as_me:5857: \"$ac_try\"") >&5
5858 (eval $ac_try) 2>&5
5859 ac_status=$?
5860 echo "$as_me:5860: \$? = $ac_status" >&5
5861 (exit $ac_status); }; }; then
5862 eval "$as_ac_var=yes"
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 cat conftest.$ac_ext >&5
5866 eval "$as_ac_var=no"
5867 fi
5868 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5869 fi
5870 echo "$as_me:5870: result: `eval echo '${'$as_ac_var'}'`" >&5
5871 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5872 if test `eval echo '${'$as_ac_var'}'` = yes; then
5873 cat >>confdefs.h <<EOF
5874 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5875 EOF
5876 cf_stdio_unlocked=$ac_func
5877 fi
5878 done
5879
5880 if test "$cf_stdio_unlocked" != no ; then
5881 case "$CPPFLAGS" in #(vi
5882 *-D_REENTRANT*) #(vi
5883 ;;
5884 *)
5885 echo "$as_me:5885: checking if we should define _REENTRANT" >&5
5886 echo $ECHO_N "checking if we should define _REENTRANT... $ECHO_C" >&6
5887 if test "${cf_cv_stdio_unlocked+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5889 else
5890
5891 cat >conftest.$ac_ext <<_ACEOF
5892 #line 5892 "configure"
5893 #include "confdefs.h"
5894 #include <stdio.h>
5895 int
5896 main ()
5897 {
5898
5899 extern void *$cf_stdio_unlocked(void *);
5900 void *dummy = $cf_stdio_unlocked(0)
5901 ;
5902 return 0;
5903 }
5904 _ACEOF
5905 rm -f conftest.$ac_objext
5906 if { (eval echo "$as_me:5906: \"$ac_compile\"") >&5
5907 (eval $ac_compile) 2>&5
5908 ac_status=$?
5909 echo "$as_me:5909: \$? = $ac_status" >&5
5910 (exit $ac_status); } &&
5911 { ac_try='test -s conftest.$ac_objext'
5912 { (eval echo "$as_me:5912: \"$ac_try\"") >&5
5913 (eval $ac_try) 2>&5
5914 ac_status=$?
5915 echo "$as_me:5915: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 cf_cv_stdio_unlocked=yes
5918 else
5919 echo "$as_me: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5921 cf_cv_stdio_unlocked=no
5922 fi
5923 rm -f conftest.$ac_objext conftest.$ac_ext
5924 fi
5925 echo "$as_me:5925: result: $cf_cv_stdio_unlocked" >&5
5926 echo "${ECHO_T}$cf_cv_stdio_unlocked" >&6
5927 if test "$cf_cv_stdio_unlocked" = yes ; then
5928 cat >>confdefs.h <<\EOF
5929 #define _REENTRANT 1
5930 EOF
5931
5932 fi
5933 ;;
5934 esac
5935 fi
5936
5937 echo "$as_me:5937: checking if you want to use dmalloc for testing" >&5
5938 echo $ECHO_N "checking if you want to use dmalloc for testing... $ECHO_C" >&6
5939
5940 # Check whether --with-dmalloc or --without-dmalloc was given.
5941 if test "${with_dmalloc+set}" = set; then
5942 withval="$with_dmalloc"
5943 cat >>confdefs.h <<\EOF
5944 #define USE_DMALLOC 1
5945 EOF
5946
5947 : ${with_cflags:=-g}
5948 : ${with_no_leaks:=yes}
5949 with_dmalloc=yes
5950 else
5951 with_dmalloc=
5952 fi;
5953 echo "$as_me:5953: result: ${with_dmalloc:-no}" >&5
5954 echo "${ECHO_T}${with_dmalloc:-no}" >&6
5955
5956 case .$with_cflags in #(vi
5957 .*-g*)
5958 case .$CFLAGS in #(vi
5959 .*-g*) #(vi
5960 ;;
5961 *)
5962
5963 cf_fix_cppflags=no
5964 cf_new_cflags=
5965 cf_new_cppflags=
5966 cf_new_extra_cppflags=
5967
5968 for cf_add_cflags in -g
5969 do
5970 case $cf_fix_cppflags in
5971 no)
5972 case $cf_add_cflags in #(vi
5973 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
5974 case $cf_add_cflags in
5975 -D*)
5976 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
5977
5978 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
5979 && test -z "${cf_tst_cflags}" \
5980 && cf_fix_cppflags=yes
5981
5982 if test $cf_fix_cppflags = yes ; then
5983 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5984 continue
5985 elif test "${cf_tst_cflags}" = "\"'" ; then
5986 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
5987 continue
5988 fi
5989 ;;
5990 esac
5991 case "$CPPFLAGS" in
5992 *$cf_add_cflags) #(vi
5993 ;;
5994 *) #(vi
5995 case $cf_add_cflags in #(vi
5996 -D*)
5997 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
5998
5999 CPPFLAGS=`echo "$CPPFLAGS" | \
6000 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6001 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6002
6003 ;;
6004 esac
6005 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6006 ;;
6007 esac
6008 ;;
6009 *)
6010 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6011 ;;
6012 esac
6013 ;;
6014 yes)
6015 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6016
6017 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6018
6019 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6020 && test -z "${cf_tst_cflags}" \
6021 && cf_fix_cppflags=no
6022 ;;
6023 esac
6024 done
6025
6026 if test -n "$cf_new_cflags" ; then
6027
6028 CFLAGS="$CFLAGS $cf_new_cflags"
6029 fi
6030
6031 if test -n "$cf_new_cppflags" ; then
6032
6033 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
6034 fi
6035
6036 if test -n "$cf_new_extra_cppflags" ; then
6037
6038 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6039 fi
6040
6041 ;;
6042 esac
6043 ;;
6044 esac
6045
6046 if test "$with_dmalloc" = yes ; then
6047 echo "$as_me:6047: checking for dmalloc.h" >&5
6048 echo $ECHO_N "checking for dmalloc.h... $ECHO_C" >&6
6049 if test "${ac_cv_header_dmalloc_h+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 #line 6053 "configure"
6054 #include "confdefs.h"
6055 #include <dmalloc.h>
6056 _ACEOF
6057 if { (eval echo "$as_me:6057: \"$ac_cpp conftest.$ac_ext\"") >&5
6058 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6059 ac_status=$?
6060 egrep -v '^ *\+' conftest.er1 >conftest.err
6061 rm -f conftest.er1
6062 cat conftest.err >&5
6063 echo "$as_me:6063: \$? = $ac_status" >&5
6064 (exit $ac_status); } >/dev/null; then
6065 if test -s conftest.err; then
6066 ac_cpp_err=$ac_c_preproc_warn_flag
6067 else
6068 ac_cpp_err=
6069 fi
6070 else
6071 ac_cpp_err=yes
6072 fi
6073 if test -z "$ac_cpp_err"; then
6074 ac_cv_header_dmalloc_h=yes
6075 else
6076 echo "$as_me: failed program was:" >&5
6077 cat conftest.$ac_ext >&5
6078 ac_cv_header_dmalloc_h=no
6079 fi
6080 rm -f conftest.err conftest.$ac_ext
6081 fi
6082 echo "$as_me:6082: result: $ac_cv_header_dmalloc_h" >&5
6083 echo "${ECHO_T}$ac_cv_header_dmalloc_h" >&6
6084 if test $ac_cv_header_dmalloc_h = yes; then
6085
6086 echo "$as_me:6086: checking for dmalloc_debug in -ldmalloc" >&5
6087 echo $ECHO_N "checking for dmalloc_debug in -ldmalloc... $ECHO_C" >&6
6088 if test "${ac_cv_lib_dmalloc_dmalloc_debug+set}" = set; then
6089 echo $ECHO_N "(cached) $ECHO_C" >&6
6090 else
6091 ac_check_lib_save_LIBS=$LIBS
6092 LIBS="-ldmalloc $LIBS"
6093 cat >conftest.$ac_ext <<_ACEOF
6094 #line 6094 "configure"
6095 #include "confdefs.h"
6096
6097 /* Override any gcc2 internal prototype to avoid an error. */
6098 #ifdef __cplusplus
6099 extern "C"
6100 #endif
6101 /* We use char because int might match the return type of a gcc2
6102 builtin and then its argument prototype would still apply. */
6103 char dmalloc_debug ();
6104 int
6105 main ()
6106 {
6107 dmalloc_debug ();
6108 ;
6109 return 0;
6110 }
6111 _ACEOF
6112 rm -f conftest.$ac_objext conftest$ac_exeext
6113 if { (eval echo "$as_me:6113: \"$ac_link\"") >&5
6114 (eval $ac_link) 2>&5
6115 ac_status=$?
6116 echo "$as_me:6116: \$? = $ac_status" >&5
6117 (exit $ac_status); } &&
6118 { ac_try='test -s conftest$ac_exeext'
6119 { (eval echo "$as_me:6119: \"$ac_try\"") >&5
6120 (eval $ac_try) 2>&5
6121 ac_status=$?
6122 echo "$as_me:6122: \$? = $ac_status" >&5
6123 (exit $ac_status); }; }; then
6124 ac_cv_lib_dmalloc_dmalloc_debug=yes
6125 else
6126 echo "$as_me: failed program was:" >&5
6127 cat conftest.$ac_ext >&5
6128 ac_cv_lib_dmalloc_dmalloc_debug=no
6129 fi
6130 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6131 LIBS=$ac_check_lib_save_LIBS
6132 fi
6133 echo "$as_me:6133: result: $ac_cv_lib_dmalloc_dmalloc_debug" >&5
6134 echo "${ECHO_T}$ac_cv_lib_dmalloc_dmalloc_debug" >&6
6135 if test $ac_cv_lib_dmalloc_dmalloc_debug = yes; then
6136 cat >>confdefs.h <<EOF
6137 #define HAVE_LIBDMALLOC 1
6138 EOF
6139
6140 LIBS="-ldmalloc $LIBS"
6141
6142 fi
6143
6144 fi
6145
6146 fi
6147
6148 echo "$as_me:6148: checking if you want to use dbmalloc for testing" >&5
6149 echo $ECHO_N "checking if you want to use dbmalloc for testing... $ECHO_C" >&6
6150
6151 # Check whether --with-dbmalloc or --without-dbmalloc was given.
6152 if test "${with_dbmalloc+set}" = set; then
6153 withval="$with_dbmalloc"
6154 cat >>confdefs.h <<\EOF
6155 #define USE_DBMALLOC 1
6156 EOF
6157
6158 : ${with_cflags:=-g}
6159 : ${with_no_leaks:=yes}
6160 with_dbmalloc=yes
6161 else
6162 with_dbmalloc=
6163 fi;
6164 echo "$as_me:6164: result: ${with_dbmalloc:-no}" >&5
6165 echo "${ECHO_T}${with_dbmalloc:-no}" >&6
6166
6167 case .$with_cflags in #(vi
6168 .*-g*)
6169 case .$CFLAGS in #(vi
6170 .*-g*) #(vi
6171 ;;
6172 *)
6173
6174 cf_fix_cppflags=no
6175 cf_new_cflags=
6176 cf_new_cppflags=
6177 cf_new_extra_cppflags=
6178
6179 for cf_add_cflags in -g
6180 do
6181 case $cf_fix_cppflags in
6182 no)
6183 case $cf_add_cflags in #(vi
6184 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6185 case $cf_add_cflags in
6186 -D*)
6187 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6188
6189 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6190 && test -z "${cf_tst_cflags}" \
6191 && cf_fix_cppflags=yes
6192
6193 if test $cf_fix_cppflags = yes ; then
6194 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6195 continue
6196 elif test "${cf_tst_cflags}" = "\"'" ; then
6197 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6198 continue
6199 fi
6200 ;;
6201 esac
6202 case "$CPPFLAGS" in
6203 *$cf_add_cflags) #(vi
6204 ;;
6205 *) #(vi
6206 case $cf_add_cflags in #(vi
6207 -D*)
6208 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6209
6210 CPPFLAGS=`echo "$CPPFLAGS" | \
6211 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6212 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6213
6214 ;;
6215 esac
6216 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6217 ;;
6218 esac
6219 ;;
6220 *)
6221 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6222 ;;
6223 esac
6224 ;;
6225 yes)
6226 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6227
6228 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6229
6230 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6231 && test -z "${cf_tst_cflags}" \
6232 && cf_fix_cppflags=no
6233 ;;
6234 esac
6235 done
6236
6237 if test -n "$cf_new_cflags" ; then
6238
6239 CFLAGS="$CFLAGS $cf_new_cflags"
6240 fi
6241
6242 if test -n "$cf_new_cppflags" ; then
6243
6244 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
6245 fi
6246
6247 if test -n "$cf_new_extra_cppflags" ; then
6248
6249 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6250 fi
6251
6252 ;;
6253 esac
6254 ;;
6255 esac
6256
6257 if test "$with_dbmalloc" = yes ; then
6258 echo "$as_me:6258: checking for dbmalloc.h" >&5
6259 echo $ECHO_N "checking for dbmalloc.h... $ECHO_C" >&6
6260 if test "${ac_cv_header_dbmalloc_h+set}" = set; then
6261 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 else
6263 cat >conftest.$ac_ext <<_ACEOF
6264 #line 6264 "configure"
6265 #include "confdefs.h"
6266 #include <dbmalloc.h>
6267 _ACEOF
6268 if { (eval echo "$as_me:6268: \"$ac_cpp conftest.$ac_ext\"") >&5
6269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6270 ac_status=$?
6271 egrep -v '^ *\+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:6274: \$? = $ac_status" >&5
6275 (exit $ac_status); } >/dev/null; then
6276 if test -s conftest.err; then
6277 ac_cpp_err=$ac_c_preproc_warn_flag
6278 else
6279 ac_cpp_err=
6280 fi
6281 else
6282 ac_cpp_err=yes
6283 fi
6284 if test -z "$ac_cpp_err"; then
6285 ac_cv_header_dbmalloc_h=yes
6286 else
6287 echo "$as_me: failed program was:" >&5
6288 cat conftest.$ac_ext >&5
6289 ac_cv_header_dbmalloc_h=no
6290 fi
6291 rm -f conftest.err conftest.$ac_ext
6292 fi
6293 echo "$as_me:6293: result: $ac_cv_header_dbmalloc_h" >&5
6294 echo "${ECHO_T}$ac_cv_header_dbmalloc_h" >&6
6295 if test $ac_cv_header_dbmalloc_h = yes; then
6296
6297 echo "$as_me:6297: checking for debug_malloc in -ldbmalloc" >&5
6298 echo $ECHO_N "checking for debug_malloc in -ldbmalloc... $ECHO_C" >&6
6299 if test "${ac_cv_lib_dbmalloc_debug_malloc+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302 ac_check_lib_save_LIBS=$LIBS
6303 LIBS="-ldbmalloc $LIBS"
6304 cat >conftest.$ac_ext <<_ACEOF
6305 #line 6305 "configure"
6306 #include "confdefs.h"
6307
6308 /* Override any gcc2 internal prototype to avoid an error. */
6309 #ifdef __cplusplus
6310 extern "C"
6311 #endif
6312 /* We use char because int might match the return type of a gcc2
6313 builtin and then its argument prototype would still apply. */
6314 char debug_malloc ();
6315 int
6316 main ()
6317 {
6318 debug_malloc ();
6319 ;
6320 return 0;
6321 }
6322 _ACEOF
6323 rm -f conftest.$ac_objext conftest$ac_exeext
6324 if { (eval echo "$as_me:6324: \"$ac_link\"") >&5
6325 (eval $ac_link) 2>&5
6326 ac_status=$?
6327 echo "$as_me:6327: \$? = $ac_status" >&5
6328 (exit $ac_status); } &&
6329 { ac_try='test -s conftest$ac_exeext'
6330 { (eval echo "$as_me:6330: \"$ac_try\"") >&5
6331 (eval $ac_try) 2>&5
6332 ac_status=$?
6333 echo "$as_me:6333: \$? = $ac_status" >&5
6334 (exit $ac_status); }; }; then
6335 ac_cv_lib_dbmalloc_debug_malloc=yes
6336 else
6337 echo "$as_me: failed program was:" >&5
6338 cat conftest.$ac_ext >&5
6339 ac_cv_lib_dbmalloc_debug_malloc=no
6340 fi
6341 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6342 LIBS=$ac_check_lib_save_LIBS
6343 fi
6344 echo "$as_me:6344: result: $ac_cv_lib_dbmalloc_debug_malloc" >&5
6345 echo "${ECHO_T}$ac_cv_lib_dbmalloc_debug_malloc" >&6
6346 if test $ac_cv_lib_dbmalloc_debug_malloc = yes; then
6347 cat >>confdefs.h <<EOF
6348 #define HAVE_LIBDBMALLOC 1
6349 EOF
6350
6351 LIBS="-ldbmalloc $LIBS"
6352
6353 fi
6354
6355 fi
6356
6357 fi
6358
6359 echo "$as_me:6359: checking if you want to use valgrind for testing" >&5
6360 echo $ECHO_N "checking if you want to use valgrind for testing... $ECHO_C" >&6
6361
6362 # Check whether --with-valgrind or --without-valgrind was given.
6363 if test "${with_valgrind+set}" = set; then
6364 withval="$with_valgrind"
6365 cat >>confdefs.h <<\EOF
6366 #define USE_VALGRIND 1
6367 EOF
6368
6369 : ${with_cflags:=-g}
6370 : ${with_no_leaks:=yes}
6371 with_valgrind=yes
6372 else
6373 with_valgrind=
6374 fi;
6375 echo "$as_me:6375: result: ${with_valgrind:-no}" >&5
6376 echo "${ECHO_T}${with_valgrind:-no}" >&6
6377
6378 case .$with_cflags in #(vi
6379 .*-g*)
6380 case .$CFLAGS in #(vi
6381 .*-g*) #(vi
6382 ;;
6383 *)
6384
6385 cf_fix_cppflags=no
6386 cf_new_cflags=
6387 cf_new_cppflags=
6388 cf_new_extra_cppflags=
6389
6390 for cf_add_cflags in -g
6391 do
6392 case $cf_fix_cppflags in
6393 no)
6394 case $cf_add_cflags in #(vi
6395 -undef|-nostdinc*|-I*|-D*|-U*|-E|-P|-C) #(vi
6396 case $cf_add_cflags in
6397 -D*)
6398 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^-D[^=]*='\''\"[^"]*//'`
6399
6400 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6401 && test -z "${cf_tst_cflags}" \
6402 && cf_fix_cppflags=yes
6403
6404 if test $cf_fix_cppflags = yes ; then
6405 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6406 continue
6407 elif test "${cf_tst_cflags}" = "\"'" ; then
6408 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6409 continue
6410 fi
6411 ;;
6412 esac
6413 case "$CPPFLAGS" in
6414 *$cf_add_cflags) #(vi
6415 ;;
6416 *) #(vi
6417 case $cf_add_cflags in #(vi
6418 -D*)
6419 cf_tst_cppflags=`echo "x$cf_add_cflags" | sed -e 's/^...//' -e 's/=.*//'`
6420
6421 CPPFLAGS=`echo "$CPPFLAGS" | \
6422 sed -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?[ ]/ /g' \
6423 -e 's/-[UD]'"$cf_tst_cppflags"'\(=[^ ]*\)\?$//g'`
6424
6425 ;;
6426 esac
6427 cf_new_cppflags="$cf_new_cppflags $cf_add_cflags"
6428 ;;
6429 esac
6430 ;;
6431 *)
6432 cf_new_cflags="$cf_new_cflags $cf_add_cflags"
6433 ;;
6434 esac
6435 ;;
6436 yes)
6437 cf_new_extra_cppflags="$cf_new_extra_cppflags $cf_add_cflags"
6438
6439 cf_tst_cflags=`echo ${cf_add_cflags} |sed -e 's/^[^"]*"'\''//'`
6440
6441 test "${cf_add_cflags}" != "${cf_tst_cflags}" \
6442 && test -z "${cf_tst_cflags}" \
6443 && cf_fix_cppflags=no
6444 ;;
6445 esac
6446 done
6447
6448 if test -n "$cf_new_cflags" ; then
6449
6450 CFLAGS="$CFLAGS $cf_new_cflags"
6451 fi
6452
6453 if test -n "$cf_new_cppflags" ; then
6454
6455 CPPFLAGS="$CPPFLAGS $cf_new_cppflags"
6456 fi
6457
6458 if test -n "$cf_new_extra_cppflags" ; then
6459
6460 EXTRA_CPPFLAGS="$cf_new_extra_cppflags $EXTRA_CPPFLAGS"
6461 fi
6462
6463 ;;
6464 esac
6465 ;;
6466 esac
6467
6468 echo "$as_me:6468: checking if you want to perform memory-leak testing" >&5
6469 echo $ECHO_N "checking if you want to perform memory-leak testing... $ECHO_C" >&6
6470
6471 # Check whether --enable-leaks or --disable-leaks was given.
6472 if test "${enable_leaks+set}" = set; then
6473 enableval="$enable_leaks"
6474 if test "x$enableval" = xno; then with_no_leaks=yes; else with_no_leaks=no; fi
6475 else
6476 : ${with_no_leaks:=no}
6477 fi;
6478 echo "$as_me:6478: result: $with_no_leaks" >&5
6479 echo "${ECHO_T}$with_no_leaks" >&6
6480
6481 if test "$with_no_leaks" = yes ; then
6482 cat >>confdefs.h <<\EOF
6483 #define NO_LEAKS 1
6484 EOF
6485
6486 cat >>confdefs.h <<\EOF
6487 #define YY_NO_LEAKS 1
6488 EOF
6489
6490 fi
6491
6492 ### output makefile and config.h
6493 ac_config_files="$ac_config_files makefile"
6494 ac_config_commands="$ac_config_commands default"
6495 cat >confcache <<\_ACEOF
6496 # This file is a shell script that caches the results of configure
6497 # tests run on this system so they can be shared between configure
6498 # scripts and configure runs, see configure's option --config-cache.
6499 # It is not useful on other systems. If it contains results you don't
6500 # want to keep, you may remove or edit it.
6501 #
6502 # config.status only pays attention to the cache file if you give it
6503 # the --recheck option to rerun configure.
6504 #
6505 # `ac_cv_env_foo' variables (set or unset) will be overriden when
6506 # loading this file, other *unset* `ac_cv_foo' will be assigned the
6507 # following values.
6508
6509 _ACEOF
6510
6511 # The following way of writing the cache mishandles newlines in values,
6512 # but we know of no workaround that is simple, portable, and efficient.
6513 # So, don't put newlines in cache variables' values.
6514 # Ultrix sh set writes to stderr and can't be redirected directly,
6515 # and sets the high bit in the cache file unless we assign to the vars.
6516 {
6517 (set) 2>&1 |
6518 case `(ac_space=' '; set | grep ac_space) 2>&1` in
6519 *ac_space=\ *)
6520 # `set' does not quote correctly, so add quotes (double-quote
6521 # substitution turns \\\\ into \\, and sed turns \\ into \).
6522 sed -n \
6523 "s/'/'\\\\''/g;
6524 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6525 ;;
6526 *)
6527 # `set' quotes correctly as required by POSIX, so do not add quotes.
6528 sed -n \
6529 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6530 ;;
6531 esac;
6532 } |
6533 sed '
6534 t clear
6535 : clear
6536 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6537 t end
6538 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6539 : end' >>confcache
6540 if cmp -s $cache_file confcache; then :; else
6541 if test -w $cache_file; then
6542 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6543 cat confcache >$cache_file
6544 else
6545 echo "not updating unwritable cache $cache_file"
6546 fi
6547 fi
6548 rm -f confcache
6549
6550 test "x$prefix" = xNONE && prefix=$ac_default_prefix
6551 # Let make expand exec_prefix.
6552 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6553
6554 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6555 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6556 # trailing colons and then remove the whole line if VPATH becomes empty
6557 # (actually we leave an empty line to preserve line numbers).
6558 if test "x$srcdir" = x.; then
6559 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6560 s/:*\$(srcdir):*/:/;
6561 s/:*\${srcdir}:*/:/;
6562 s/:*@srcdir@:*/:/;
6563 s/^\([^=]*=[ ]*\):*/\1/;
6564 s/:*$//;
6565 s/^[^=]*=[ ]*$//;
6566 }'
6567 fi
6568
6569 DEFS=-DHAVE_CONFIG_H
6570
6571 : ${CONFIG_STATUS=./config.status}
6572 ac_clean_files_save=$ac_clean_files
6573 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6574 { echo "$as_me:6574: creating $CONFIG_STATUS" >&5
6575 echo "$as_me: creating $CONFIG_STATUS" >&6;}
6576 cat >$CONFIG_STATUS <<_ACEOF
6577 #! $SHELL
6578 # Generated automatically by configure.
6579 # Run this file to recreate the current configuration.
6580 # Compiler output produced by configure, useful for debugging
6581 # configure, is in config.log if it exists.
6582
6583 debug=false
6584 SHELL=\${CONFIG_SHELL-$SHELL}
6585 ac_cs_invocation="\$0 \$@"
6586
6587 _ACEOF
6588
6589 cat >>$CONFIG_STATUS <<\_ACEOF
6590 # Be Bourne compatible
6591 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6592 emulate sh
6593 NULLCMD=:
6594 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6595 set -o posix
6596 fi
6597
6598 # Name of the executable.
6599 as_me=`echo "$0" |sed 's,.*[\\/],,'`
6600
6601 if expr a : '\(a\)' >/dev/null 2>&1; then
6602 as_expr=expr
6603 else
6604 as_expr=false
6605 fi
6606
6607 rm -f conf$$ conf$$.exe conf$$.file
6608 echo >conf$$.file
6609 if ln -s conf$$.file conf$$ 2>/dev/null; then
6610 # We could just check for DJGPP; but this test a) works b) is more generic
6611 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6612 if test -f conf$$.exe; then
6613 # Don't use ln at all; we don't have any links
6614 as_ln_s='cp -p'
6615 else
6616 as_ln_s='ln -s'
6617 fi
6618 elif ln conf$$.file conf$$ 2>/dev/null; then
6619 as_ln_s=ln
6620 else
6621 as_ln_s='cp -p'
6622 fi
6623 rm -f conf$$ conf$$.exe conf$$.file
6624
6625 as_executable_p="test -f"
6626
6627 # Support unset when possible.
6628 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6629 as_unset=unset
6630 else
6631 as_unset=false
6632 fi
6633
6634 # NLS nuisances.
6635 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
6636 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
6637 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
6638 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
6639 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
6640 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
6641 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
6642 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
6643
6644 # IFS
6645 # We need space, tab and new line, in precisely that order.
6646 as_nl='
6647 '
6648 IFS=" $as_nl"
6649
6650 # CDPATH.
6651 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
6652
6653 exec 6>&1
6654
6655 _ACEOF
6656
6657 # Files that config.status was made for.
6658 if test -n "$ac_config_files"; then
6659 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6660 fi
6661
6662 if test -n "$ac_config_headers"; then
6663 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6664 fi
6665
6666 if test -n "$ac_config_links"; then
6667 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6668 fi
6669
6670 if test -n "$ac_config_commands"; then
6671 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6672 fi
6673
6674 cat >>$CONFIG_STATUS <<\EOF
6675
6676 ac_cs_usage="\
6677 \`$as_me' instantiates files from templates according to the
6678 current configuration.
6679
6680 Usage: $0 [OPTIONS] [FILE]...
6681
6682 -h, --help print this help, then exit
6683 -V, --version print version number, then exit
6684 -d, --debug don't remove temporary files
6685 --recheck update $as_me by reconfiguring in the same conditions
6686 --file=FILE[:TEMPLATE]
6687 instantiate the configuration file FILE
6688 --header=FILE[:TEMPLATE]
6689 instantiate the configuration header FILE
6690
6691 Configuration files:
6692 $config_files
6693
6694 Configuration headers:
6695 $config_headers
6696
6697 Configuration commands:
6698 $config_commands
6699
6700 Report bugs to <dickey@invisible-island.net>."
6701 EOF
6702
6703 cat >>$CONFIG_STATUS <<EOF
6704 ac_cs_version="\\
6705 config.status
6706 configured by $0, generated by GNU Autoconf 2.52.20101002,
6707 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6708
6709 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6710 Free Software Foundation, Inc.
6711 This config.status script is free software; the Free Software Foundation
6712 gives unlimited permission to copy, distribute and modify it."
6713 srcdir=$srcdir
6714 INSTALL="$INSTALL"
6715 EOF
6716
6717 cat >>$CONFIG_STATUS <<\EOF
6718 # If no file are specified by the user, then we need to provide default
6719 # value. By we need to know if files were specified by the user.
6720 ac_need_defaults=:
6721 while test $# != 0
6722 do
6723 case $1 in
6724 --*=*)
6725 ac_option=`expr "x$1" : 'x\([^=]*\)='`
6726 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6727 shift
6728 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6729 shift
6730 ;;
6731 -*);;
6732 *) # This is not an option, so the user has probably given explicit
6733 # arguments.
6734 ac_need_defaults=false;;
6735 esac
6736
6737 case $1 in
6738 # Handling of the options.
6739 EOF
6740 cat >>$CONFIG_STATUS <<EOF
6741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6742 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6743 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6744 EOF
6745 cat >>$CONFIG_STATUS <<\EOF
6746 --version | --vers* | -V )
6747 echo "$ac_cs_version"; exit 0 ;;
6748 --he | --h)
6749 # Conflict between --help and --header
6750 { { echo "$as_me:6750: error: ambiguous option: $1
6751 Try \`$0 --help' for more information." >&5
6752 echo "$as_me: error: ambiguous option: $1
6753 Try \`$0 --help' for more information." >&2;}
6754 { (exit 1); exit 1; }; };;
6755 --help | --hel | -h )
6756 echo "$ac_cs_usage"; exit 0 ;;
6757 --debug | --d* | -d )
6758 debug=: ;;
6759 --file | --fil | --fi | --f )
6760 shift
6761 CONFIG_FILES="$CONFIG_FILES $1"
6762 ac_need_defaults=false;;
6763 --header | --heade | --head | --hea )
6764 shift
6765 CONFIG_HEADERS="$CONFIG_HEADERS $1"
6766 ac_need_defaults=false;;
6767
6768 # This is an error.
6769 -*) { { echo "$as_me:6769: error: unrecognized option: $1
6770 Try \`$0 --help' for more information." >&5
6771 echo "$as_me: error: unrecognized option: $1
6772 Try \`$0 --help' for more information." >&2;}
6773 { (exit 1); exit 1; }; } ;;
6774
6775 *) ac_config_targets="$ac_config_targets $1" ;;
6776
6777 esac
6778 shift
6779 done
6780
6781 exec 5>>config.log
6782 cat >&5 << _ACEOF
6783
6784 ## ----------------------- ##
6785 ## Running config.status. ##
6786 ## ----------------------- ##
6787
6788 This file was extended by $as_me 2.52.20101002, executed with
6789 CONFIG_FILES = $CONFIG_FILES
6790 CONFIG_HEADERS = $CONFIG_HEADERS
6791 CONFIG_LINKS = $CONFIG_LINKS
6792 CONFIG_COMMANDS = $CONFIG_COMMANDS
6793 > $ac_cs_invocation
6794 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6795
6796 _ACEOF
6797 EOF
6798
6799 cat >>$CONFIG_STATUS <<\EOF
6800 for ac_config_target in $ac_config_targets
6801 do
6802 case "$ac_config_target" in
6803 # Handling of arguments.
6804 "makefile" ) CONFIG_FILES="$CONFIG_FILES makefile" ;;
6805 "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
6806 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config_h.in" ;;
6807 *) { { echo "$as_me:6807: error: invalid argument: $ac_config_target" >&5
6808 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6809 { (exit 1); exit 1; }; };;
6810 esac
6811 done
6812
6813 # If the user did not use the arguments to specify the items to instantiate,
6814 # then the envvar interface is used. Set only those that are not.
6815 # We use the long form for the default assignment because of an extremely
6816 # bizarre bug on SunOS 4.1.3.
6817 if $ac_need_defaults; then
6818 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6819 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6821 fi
6822
6823 # Create a temporary directory, and hook for its removal unless debugging.
6824 $debug ||
6825 {
6826 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6827 trap '{ (exit 1); exit 1; }' 1 2 13 15
6828 }
6829
6830 # Create a (secure) tmp directory for tmp files.
6831 : ${TMPDIR=/tmp}
6832 {
6833 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6834 test -n "$tmp" && test -d "$tmp"
6835 } ||
6836 {
6837 tmp=$TMPDIR/cs$$-$RANDOM
6838 (umask 077 && mkdir $tmp)
6839 } ||
6840 {
6841 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6842 { (exit 1); exit 1; }
6843 }
6844
6845 EOF
6846
6847 cat >>$CONFIG_STATUS <<EOF
6848
6849 #
6850 # CONFIG_FILES section.
6851 #
6852
6853 # No need to generate the scripts if there are no CONFIG_FILES.
6854 # This happens for instance when ./config.status config.h
6855 if test -n "\$CONFIG_FILES"; then
6856 # Protect against being on the right side of a sed subst in config.status.
6857 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6858 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6859 s,@SHELL@,$SHELL,;t t
6860 s,@exec_prefix@,$exec_prefix,;t t
6861 s,@prefix@,$prefix,;t t
6862 s,@program_transform_name@,$program_transform_name,;t t
6863 s,@bindir@,$bindir,;t t
6864 s,@sbindir@,$sbindir,;t t
6865 s,@libexecdir@,$libexecdir,;t t
6866 s,@datadir@,$datadir,;t t
6867 s,@sysconfdir@,$sysconfdir,;t t
6868 s,@sharedstatedir@,$sharedstatedir,;t t
6869 s,@localstatedir@,$localstatedir,;t t
6870 s,@libdir@,$libdir,;t t
6871 s,@includedir@,$includedir,;t t
6872 s,@oldincludedir@,$oldincludedir,;t t
6873 s,@infodir@,$infodir,;t t
6874 s,@mandir@,$mandir,;t t
6875 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6876 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6877 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6878 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6879 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6880 s,@build_alias@,$build_alias,;t t
6881 s,@host_alias@,$host_alias,;t t
6882 s,@target_alias@,$target_alias,;t t
6883 s,@ECHO_C@,$ECHO_C,;t t
6884 s,@ECHO_N@,$ECHO_N,;t t
6885 s,@ECHO_T@,$ECHO_T,;t t
6886 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6887 s,@DEFS@,$DEFS,;t t
6888 s,@LIBS@,$LIBS,;t t
6889 s,@CC@,$CC,;t t
6890 s,@CFLAGS@,$CFLAGS,;t t
6891 s,@LDFLAGS@,$LDFLAGS,;t t
6892 s,@CPPFLAGS@,$CPPFLAGS,;t t
6893 s,@ac_ct_CC@,$ac_ct_CC,;t t
6894 s,@EXEEXT@,$EXEEXT,;t t
6895 s,@OBJEXT@,$OBJEXT,;t t
6896 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
6897 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
6898 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
6899 s,@LINT@,$LINT,;t t
6900 s,@LINT_OPTS@,$LINT_OPTS,;t t
6901 s,@CTAGS@,$CTAGS,;t t
6902 s,@ETAGS@,$ETAGS,;t t
6903 s,@MAKE_LOWER_TAGS@,$MAKE_LOWER_TAGS,;t t
6904 s,@MAKE_UPPER_TAGS@,$MAKE_UPPER_TAGS,;t t
6905 s,@EXTRA_CPPFLAGS@,$EXTRA_CPPFLAGS,;t t
6906 s,@ECHO_LT@,$ECHO_LT,;t t
6907 s,@ECHO_LD@,$ECHO_LD,;t t
6908 s,@RULE_CC@,$RULE_CC,;t t
6909 s,@SHOW_CC@,$SHOW_CC,;t t
6910 s,@ECHO_CC@,$ECHO_CC,;t t
6911 s,@build@,$build,;t t
6912 s,@build_cpu@,$build_cpu,;t t
6913 s,@build_vendor@,$build_vendor,;t t
6914 s,@build_os@,$build_os,;t t
6915 s,@host@,$host,;t t
6916 s,@host_cpu@,$host_cpu,;t t
6917 s,@host_vendor@,$host_vendor,;t t
6918 s,@host_os@,$host_os,;t t
6919 s,@PROG_EXT@,$PROG_EXT,;t t
6920 s,@DESTDIR@,$DESTDIR,;t t
6921 s,@BZCAT@,$BZCAT,;t t
6922 s,@BZIP2@,$BZIP2,;t t
6923 s,@COMPRESS@,$COMPRESS,;t t
6924 s,@GZIP@,$GZIP,;t t
6925 s,@LZCAT@,$LZCAT,;t t
6926 s,@PCAT@,$PCAT,;t t
6927 s,@UNCOMPRESS@,$UNCOMPRESS,;t t
6928 s,@XZ@,$XZ,;t t
6929 s,@ZCAT@,$ZCAT,;t t
6930 s,@EXTRA_CFLAGS@,$EXTRA_CFLAGS,;t t
6931 s,@CPP@,$CPP,;t t
6932 CEOF
6933
6934 EOF
6935
6936 cat >>$CONFIG_STATUS <<\EOF
6937 # Split the substitutions into bite-sized pieces for seds with
6938 # small command number limits, like on Digital OSF/1 and HP-UX.
6939 ac_max_sed_lines=48
6940 ac_sed_frag=1 # Number of current file.
6941 ac_beg=1 # First line for current file.
6942 ac_end=$ac_max_sed_lines # Line after last line for current file.
6943 ac_more_lines=:
6944 ac_sed_cmds=
6945 while $ac_more_lines; do
6946 if test $ac_beg -gt 1; then
6947 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6948 else
6949 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
6950 fi
6951 if test ! -s $tmp/subs.frag; then
6952 ac_more_lines=false
6953 else
6954 # The purpose of the label and of the branching condition is to
6955 # speed up the sed processing (if there are no `@' at all, there
6956 # is no need to browse any of the substitutions).
6957 # These are the two extra sed commands mentioned above.
6958 (echo ':t
6959 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
6960 if test -z "$ac_sed_cmds"; then
6961 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
6962 else
6963 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
6964 fi
6965 ac_sed_frag=`expr $ac_sed_frag + 1`
6966 ac_beg=$ac_end
6967 ac_end=`expr $ac_end + $ac_max_sed_lines`
6968 fi
6969 done
6970 if test -z "$ac_sed_cmds"; then
6971 ac_sed_cmds=cat
6972 fi
6973 fi # test -n "$CONFIG_FILES"
6974
6975 EOF
6976 cat >>$CONFIG_STATUS <<\EOF
6977 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
6978 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6979 case $ac_file in
6980 - | *:- | *:-:* ) # input from stdin
6981 cat >$tmp/stdin
6982 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6983 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6984 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
6985 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
6986 * ) ac_file_in=$ac_file.in ;;
6987 esac
6988
6989 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
6990 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6991 X"$ac_file" : 'X\(//\)[^/]' \| \
6992 X"$ac_file" : 'X\(//\)$' \| \
6993 X"$ac_file" : 'X\(/\)' \| \
6994 . : '\(.\)' 2>/dev/null ||
6995 echo X"$ac_file" |
6996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
6997 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
6998 /^X\(\/\/\)$/{ s//\1/; q; }
6999 /^X\(\/\).*/{ s//\1/; q; }
7000 s/.*/./; q'`
7001 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7002 { case "$ac_dir" in
7003 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7004 *) as_incr_dir=.;;
7005 esac
7006 as_dummy="$ac_dir"
7007 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7008 case $as_mkdir_dir in
7009 # Skip DOS drivespec
7010 ?:) as_incr_dir=$as_mkdir_dir ;;
7011 *)
7012 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7013 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7014 ;;
7015 esac
7016 done; }
7017
7018 ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
7019 # A "../" for each directory in $ac_dir_suffix.
7020 ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
7021 else
7022 ac_dir_suffix= ac_dots=
7023 fi
7024
7025 case $srcdir in
7026 .) ac_srcdir=.
7027 if test -z "$ac_dots"; then
7028 ac_top_srcdir=.
7029 else
7030 ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
7031 fi ;;
7032 [\\/]* | ?:[\\/]* )
7033 ac_srcdir=$srcdir$ac_dir_suffix;
7034 ac_top_srcdir=$srcdir ;;
7035 *) # Relative path.
7036 ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
7037 ac_top_srcdir=$ac_dots$srcdir ;;
7038 esac
7039
7040 case $INSTALL in
7041 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7042 *) ac_INSTALL=$ac_dots$INSTALL ;;
7043 esac
7044
7045 if test x"$ac_file" != x-; then
7046 { echo "$as_me:7046: creating $ac_file" >&5
7047 echo "$as_me: creating $ac_file" >&6;}
7048 rm -f "$ac_file"
7049 fi
7050 # Let's still pretend it is `configure' which instantiates (i.e., don't
7051 # use $as_me), people would be surprised to read:
7052 # /* config.h. Generated automatically by config.status. */
7053 configure_input="Generated automatically from `echo $ac_file_in |
7054 sed 's,.*/,,'` by configure."
7055
7056 # First look for the input files in the build tree, otherwise in the
7057 # src tree.
7058 ac_file_inputs=`IFS=:
7059 for f in $ac_file_in; do
7060 case $f in
7061 -) echo $tmp/stdin ;;
7062 [\\/$]*)
7063 # Absolute (can't be DOS-style, as IFS=:)
7064 test -f "$f" || { { echo "$as_me:7064: error: cannot find input file: $f" >&5
7065 echo "$as_me: error: cannot find input file: $f" >&2;}
7066 { (exit 1); exit 1; }; }
7067 echo $f;;
7068 *) # Relative
7069 if test -f "$f"; then
7070 # Build tree
7071 echo $f
7072 elif test -f "$srcdir/$f"; then
7073 # Source tree
7074 echo $srcdir/$f
7075 else
7076 # /dev/null tree
7077 { { echo "$as_me:7077: error: cannot find input file: $f" >&5
7078 echo "$as_me: error: cannot find input file: $f" >&2;}
7079 { (exit 1); exit 1; }; }
7080 fi;;
7081 esac
7082 done` || { (exit 1); exit 1; }
7083 EOF
7084 cat >>$CONFIG_STATUS <<EOF
7085 sed "$ac_vpsub
7086 $extrasub
7087 EOF
7088 cat >>$CONFIG_STATUS <<\EOF
7089 :t
7090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7091 s,@configure_input@,$configure_input,;t t
7092 s,@srcdir@,$ac_srcdir,;t t
7093 s,@top_srcdir@,$ac_top_srcdir,;t t
7094 s,@INSTALL@,$ac_INSTALL,;t t
7095 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7096 rm -f $tmp/stdin
7097 if test x"$ac_file" != x-; then
7098 mv $tmp/out $ac_file
7099 else
7100 cat $tmp/out
7101 rm -f $tmp/out
7102 fi
7103
7104 done
7105 EOF
7106 cat >>$CONFIG_STATUS <<\EOF
7107
7108 #
7109 # CONFIG_HEADER section.
7110 #
7111
7112 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
7113 # NAME is the cpp macro being defined and VALUE is the value it is being given.
7114 #
7115 # ac_d sets the value in "#define NAME VALUE" lines.
7116 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
7117 ac_dB='[ ].*$,\1#\2'
7118 ac_dC=' '
7119 ac_dD=',;t'
7120 # ac_i turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
7121 ac_iA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7122 ac_iB='\([ ]\),\1#\2define\3'
7123 ac_iC=' '
7124 ac_iD='\4,;t'
7125 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
7126 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
7127 ac_uB='$,\1#\2define\3'
7128 ac_uC=' '
7129 ac_uD=',;t'
7130
7131 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
7132 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7133 case $ac_file in
7134 - | *:- | *:-:* ) # input from stdin
7135 cat >$tmp/stdin
7136 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7137 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7138 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7139 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7140 * ) ac_file_in=$ac_file.in ;;
7141 esac
7142
7143 test x"$ac_file" != x- && { echo "$as_me:7143: creating $ac_file" >&5
7144 echo "$as_me: creating $ac_file" >&6;}
7145
7146 # First look for the input files in the build tree, otherwise in the
7147 # src tree.
7148 ac_file_inputs=`IFS=:
7149 for f in $ac_file_in; do
7150 case $f in
7151 -) echo $tmp/stdin ;;
7152 [\\/$]*)
7153 # Absolute (can't be DOS-style, as IFS=:)
7154 test -f "$f" || { { echo "$as_me:7154: error: cannot find input file: $f" >&5
7155 echo "$as_me: error: cannot find input file: $f" >&2;}
7156 { (exit 1); exit 1; }; }
7157 echo $f;;
7158 *) # Relative
7159 if test -f "$f"; then
7160 # Build tree
7161 echo $f
7162 elif test -f "$srcdir/$f"; then
7163 # Source tree
7164 echo $srcdir/$f
7165 else
7166 # /dev/null tree
7167 { { echo "$as_me:7167: error: cannot find input file: $f" >&5
7168 echo "$as_me: error: cannot find input file: $f" >&2;}
7169 { (exit 1); exit 1; }; }
7170 fi;;
7171 esac
7172 done` || { (exit 1); exit 1; }
7173 # Remove the trailing spaces.
7174 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
7175
7176 EOF
7177
7178 # Transform confdefs.h into a list of #define's. We won't use it as a sed
7179 # script, but as data to insert where we see @DEFS@. We expect AC_SAVE_DEFS to
7180 # be either 'cat' or 'sort'.
7181 cat confdefs.h | uniq >conftest.vals
7182
7183 # Break up conftest.vals because some shells have a limit on
7184 # the size of here documents, and old seds have small limits too.
7185
7186 rm -f conftest.tail
7187 echo ' rm -f conftest.frag' >> $CONFIG_STATUS
7188 while grep . conftest.vals >/dev/null
7189 do
7190 # Write chunks of a limited-size here document to conftest.frag.
7191 echo ' cat >> conftest.frag <<CEOF' >> $CONFIG_STATUS
7192 sed ${ac_max_here_lines}q conftest.vals | sed -e 's/#ifdef.*/#if 0/' >> $CONFIG_STATUS
7193 echo 'CEOF' >> $CONFIG_STATUS
7194 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
7195 rm -f conftest.vals
7196 mv conftest.tail conftest.vals
7197 done
7198 rm -f conftest.vals
7199
7200 # Run sed to substitute the contents of conftest.frag into $tmp/in at the
7201 # marker @DEFS@.
7202 echo ' cat >> conftest.edit <<CEOF
7203 /@DEFS@/r conftest.frag
7204 /@DEFS@/d
7205 CEOF
7206 sed -f conftest.edit $tmp/in > $tmp/out
7207 rm -f $tmp/in
7208 mv $tmp/out $tmp/in
7209 rm -f conftest.edit conftest.frag
7210 ' >> $CONFIG_STATUS
7211
7212 cat >>$CONFIG_STATUS <<\EOF
7213 # Let's still pretend it is `configure' which instantiates (i.e., don't
7214 # use $as_me), people would be surprised to read:
7215 # /* config.h. Generated automatically by config.status. */
7216 if test x"$ac_file" = x-; then
7217 echo "/* Generated automatically by configure. */" >$tmp/config.h
7218 else
7219 echo "/* $ac_file. Generated automatically by configure. */" >$tmp/config.h
7220 fi
7221 cat $tmp/in >>$tmp/config.h
7222 rm -f $tmp/in
7223 if test x"$ac_file" != x-; then
7224 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
7225 { echo "$as_me:7225: $ac_file is unchanged" >&5
7226 echo "$as_me: $ac_file is unchanged" >&6;}
7227 else
7228 ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7229 X"$ac_file" : 'X\(//\)[^/]' \| \
7230 X"$ac_file" : 'X\(//\)$' \| \
7231 X"$ac_file" : 'X\(/\)' \| \
7232 . : '\(.\)' 2>/dev/null ||
7233 echo X"$ac_file" |
7234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
7236 /^X\(\/\/\)$/{ s//\1/; q; }
7237 /^X\(\/\).*/{ s//\1/; q; }
7238 s/.*/./; q'`
7239 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
7240 { case "$ac_dir" in
7241 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
7242 *) as_incr_dir=.;;
7243 esac
7244 as_dummy="$ac_dir"
7245 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7246 case $as_mkdir_dir in
7247 # Skip DOS drivespec
7248 ?:) as_incr_dir=$as_mkdir_dir ;;
7249 *)
7250 as_incr_dir=$as_incr_dir/$as_mkdir_dir
7251 test -d "$as_incr_dir" || mkdir "$as_incr_dir"
7252 ;;
7253 esac
7254 done; }
7255
7256 fi
7257 rm -f $ac_file
7258 mv $tmp/config.h $ac_file
7259 fi
7260 else
7261 cat $tmp/config.h
7262 rm -f $tmp/config.h
7263 fi
7264 done
7265 EOF
7266
7267 cat >>$CONFIG_STATUS <<\EOF
7268
7269 { (exit 0); exit 0; }
7270 EOF
7271 chmod +x $CONFIG_STATUS
7272 ac_clean_files=$ac_clean_files_save
7273
7274 # configure is writing to config.log, and then calls config.status.
7275 # config.status does its own redirection, appending to config.log.
7276 # Unfortunately, on DOS this fails, as config.log is still kept open
7277 # by configure, so config.status won't be able to write to it; its
7278 # output is simply discarded. So we exec the FD to /dev/null,
7279 # effectively closing config.log, so it can be properly (re)opened and
7280 # appended to by config.status. When coming back to configure, we
7281 # need to make the FD available again.
7282 if test "$no_create" != yes; then
7283 ac_cs_success=:
7284 exec 5>/dev/null
7285 $SHELL $CONFIG_STATUS || ac_cs_success=false
7286 exec 5>>config.log
7287 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7288 # would make configure fail if this is the last instruction.
7289 $ac_cs_success || { (exit 1); exit 1; }
7290 fi
7291